/* Elbert Speiseplan – Anzeige auf der Website. Übernommen aus dem favorisierten Entwurf (marken/web-haus-elbert.html):
   Graphit, Kräutergrün, Zitrone auf Kalk, Schrift Atkinson Hyperlegible (vom Theme geladen).
   Alle Klassen mit ep-, Farben als Variablen, damit es auch in einem anderen Theme lesbar bleibt. */
.ep-plan, .ep-haeuser, .ep-admin-vorschau {
  --ep-graphit: #263238;
  --ep-gruen-text: #246E45;
  --ep-gruen-hell: #E2F0E7;
  --ep-kalk: #F3F6F4;
  --ep-zitrone: #F2D24B;
  --ep-zitrone-hell: #FFF3BF;
  --ep-weiss: #FFFFFF;
  --ep-text-2: #4A5A60;
  --ep-linie: #CBD5D0;
  --ep-linie-stark: #6B7A75;
  --ep-radius: 6px;
  --ep-breite: 72rem;
  --ep-rand: 1rem;
  color: var(--ep-graphit);
  font-variant-numeric: tabular-nums;
}
@media (min-width: 48rem) { .ep-plan, .ep-haeuser { --ep-rand: 2rem; } }
.ep-plan *, .ep-plan *::before, .ep-plan *::after, .ep-haeuser * { box-sizing: border-box; }
.ep-plan [hidden], .ep-admin-vorschau [hidden] { display: none !important; }

.ep-wrap { max-width: var(--ep-breite); margin: 0 auto; padding: 0 var(--ep-rand); }
.ep-band { padding: clamp(2.5rem, 2rem + 2.5vw, 4.5rem) 0; }
.ep-band-kalk { background: var(--ep-kalk); }
.ep-plan h2 { font-size: clamp(1.75rem, 1.45rem + 1.1vw, 2.25rem); line-height: 1.15; margin: 0 0 .5em; }
.ep-plan p { max-width: 64ch; }
.ep-dezent { color: var(--ep-text-2); }
.ep-anker { display: block; position: relative; top: -1rem; }

.ep-muster { background: var(--ep-graphit); color: var(--ep-weiss); font-size: 1rem; line-height: 1.4; }
.ep-muster .ep-wrap { padding-top: .6rem; padding-bottom: .6rem; }
.ep-plan .ep-muster p { margin: 0; max-width: none; font-weight: 700; color: var(--ep-zitrone); }

.ep-kopfzeile { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin-bottom: 1rem; }
.ep-kopfzeile h2 { margin: 0; }
.ep-haus-titel { font-size: 1.3125rem; margin: 1.5rem 0 .75rem; }
.ep-plan.ep-mit-js .ep-haus-titel { display: none; }
.ep-tag-datum { font-size: 1.25rem; margin: 0 0 1rem; }
.ep-tag-art { display: inline-block; background: var(--ep-graphit); color: var(--ep-weiss); font-weight: 700; font-size: 1rem; padding: .1rem .6rem; border-radius: 4px; margin-right: .4rem; }
.ep-leer, .ep-ort-leer { background: var(--ep-weiss); border: 2px dashed var(--ep-linie-stark); border-radius: var(--ep-radius); padding: 1.25rem; font-size: 1.125rem; margin: 0; max-width: none !important; }
.ep-stand, .ep-preishinweis { font-size: 1rem; color: var(--ep-text-2); margin: .75rem 0 0; }

/* Knöpfe */
.ep-knopf { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .5rem 1.25rem; border-radius: var(--ep-radius);
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; background: var(--ep-gruen-text); color: var(--ep-weiss); border: 2px solid var(--ep-gruen-text); }
.ep-knopf:hover { background: var(--ep-graphit); border-color: var(--ep-graphit); color: var(--ep-weiss); }
.ep-knopf-2 { background: var(--ep-weiss); color: var(--ep-graphit); border-color: var(--ep-graphit); }
.ep-knopf-2:hover { background: var(--ep-gruen-hell); color: var(--ep-graphit); }
.ep-plan button:focus-visible, .ep-plan input:focus-visible { outline: 3px solid var(--ep-zitrone); outline-offset: 0; box-shadow: inset 0 0 0 2px var(--ep-graphit), 0 0 0 5px var(--ep-graphit); }

/* Standortwahl */
.ep-ortwahl-platz { background: var(--ep-weiss); border: 3px solid var(--ep-graphit); border-radius: var(--ep-radius); padding: clamp(1rem, .8rem + 1vw, 1.75rem); margin: 0 0 2.25rem; }
.ep-ortwahl { border: 0; margin: 0; padding: 0; min-width: 0; }
.ep-ortwahl legend { display: flex; align-items: center; gap: .6rem; padding: 0; font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); line-height: 1.2; font-weight: 700; margin-bottom: .35rem; }
.ep-ortwahl legend svg { width: 2.2rem; height: 2.2rem; flex: none; }
.ep-ort-hinweis { margin: 0 0 1rem; font-size: 1.125rem; max-width: none !important; }
.ep-ortkarten { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.ep-ortkarte { position: relative; display: flex; flex-direction: column; border: 3px solid var(--ep-graphit); border-radius: var(--ep-radius); background: var(--ep-weiss); overflow: hidden; cursor: pointer; }
.ep-ortkarte input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
.ep-ort-bild { position: relative; height: 10rem; flex: none; background: var(--ep-kalk); }
.ep-ort-bild img, .ep-ort-bild svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-ort-text { padding: 1rem 1.1rem 0; display: flex; flex-direction: column; gap: .15rem; }
.ep-ort-name { font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); font-weight: 700; line-height: 1.2; color: var(--ep-graphit); }
.ep-ort-adresse { color: var(--ep-text-2); font-size: 1rem; }
.ep-ort-knopf { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.25rem; margin: 1rem 1.1rem 1.1rem; border-radius: var(--ep-radius);
  background: var(--ep-graphit); color: var(--ep-weiss); font-weight: 700; font-size: 1.125rem; text-align: center; padding: .4rem .8rem; }
.ep-ort-knopf svg { width: 1.3rem; height: 1.3rem; flex: none; }
.ep-ortkarte.aktiv { background: var(--ep-gruen-text); border-color: var(--ep-gruen-text); box-shadow: 0 0 0 5px var(--ep-gruen-hell), 0 0 0 7px var(--ep-gruen-text); }
.ep-ortkarte.aktiv .ep-ort-name, .ep-ortkarte.aktiv .ep-ort-adresse { color: var(--ep-weiss); }
.ep-ortkarte.aktiv .ep-ort-knopf { background: var(--ep-weiss); color: var(--ep-gruen-text); font-size: 1.25rem; }
.ep-hat-wahl .ep-ortkarte:not(.aktiv) { background: #E3E7E5; border: 3px solid #9AA6A1; }
.ep-hat-wahl .ep-ortkarte:not(.aktiv) .ep-ort-name { color: #3D4A4F; }
.ep-hat-wahl .ep-ortkarte:not(.aktiv) .ep-ort-bild { filter: grayscale(1); opacity: .6; }
.ep-hat-wahl .ep-ortkarte:not(.aktiv) .ep-ort-knopf { background: var(--ep-weiss); color: var(--ep-graphit); border: 2px solid var(--ep-linie-stark); }
.ep-ortkarte:not(.aktiv):hover .ep-ort-knopf { background: var(--ep-gruen-text); color: var(--ep-weiss); border-color: var(--ep-gruen-text); }
.ep-ortkarte:has(input:focus-visible) { outline: 3px solid var(--ep-zitrone); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ep-graphit); }
.ep-ort-bestaetigung { display: flex; align-items: center; gap: .6rem; margin: .9rem 0 0; padding: .85rem 1.1rem; border-radius: var(--ep-radius); font-size: 1.1875rem; background: var(--ep-gruen-text); color: var(--ep-weiss); max-width: none !important; }
.ep-ort-bestaetigung svg { width: 1.6rem; height: 1.6rem; flex: none; }
.ep-ort-bestaetigung strong { color: var(--ep-weiss); text-decoration: underline; text-underline-offset: 3px; }
.ep-ort-bestaetigung.offen { background: var(--ep-weiss); color: var(--ep-graphit); border: 2px dashed var(--ep-graphit); }
@media (max-width: 40rem) {
  .ep-ortkarten { gap: .75rem; }
  .ep-ort-bild { height: 6rem; }
  .ep-ort-text { padding: .6rem .7rem 0; }
  .ep-ort-name { font-size: 1.0625rem; hyphens: auto; -webkit-hyphens: auto; }
  .ep-ort-adresse { display: none; }
  .ep-ort-knopf { margin: .6rem .7rem .7rem; font-size: 1rem; min-height: 2.75rem; }
}

/* Filterhinweis über Heute und Woche */
.ep-filterhinweis { margin: 0 0 1.25rem; }
.ep-filterhinweis p { margin: 0; }
.ep-filterhinweis .aktiv { display: inline-flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: center; background: var(--ep-zitrone-hell); padding: .4rem .75rem; border-radius: var(--ep-radius); }
.ep-filterhinweis svg { width: 1.25rem; height: 1.25rem; }

/* Gerichte (Heute) */
.ep-gerichte { list-style: none; margin: 0; padding: 0; background: var(--ep-weiss); border-radius: var(--ep-radius); }
.ep-plan .ep-gericht { display: grid; gap: .35rem 1.5rem; padding: 1.25rem; border-top: 1px solid var(--ep-linie); margin: 0; max-width: none; }
.ep-gericht:first-child { border-top: 0; }
@media (min-width: 48rem) { .ep-gericht { grid-template-columns: 10.5rem 1fr auto; padding: 1.4rem 1.75rem; } }
.ep-g-linie { font-weight: 700; color: var(--ep-gruen-text); }
.ep-g-name { font-size: 1.375rem; line-height: 1.2; margin: 0 0 .15em; }
.ep-g-haupt p { margin: 0 0 .3em; }
.ep-g-beilage { color: var(--ep-text-2); }
.ep-kz-liste { display: flex; flex-wrap: wrap; gap: .35rem; margin: .35rem 0 .45rem !important; padding: 0 !important; list-style: none; }
.ep-kz { font-size: 1rem; line-height: 1.3; padding: .1rem .55rem; border: 1px solid var(--ep-linie-stark); border-radius: 999px; background: var(--ep-weiss); margin: 0; }
.ep-kcal, .ep-zusatz-zeile { font-size: 1rem; color: var(--ep-text-2); }
.ep-lbl { font-weight: 700; }
.ep-a.markiert { background: var(--ep-zitrone); color: var(--ep-graphit); font-weight: 700; padding: 0 .15em; border-radius: 2px; }
.ep-preise { margin: 0; display: grid; gap: .2rem; align-content: start; min-width: 12rem; }
.ep-preise div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; }
.ep-preise dt { color: var(--ep-text-2); }
.ep-preise dd { margin: 0; font-weight: 700; white-space: nowrap; }
@media (min-width: 48rem) { .ep-preise dd { min-width: 4.5rem; text-align: right; } }
.ep-warn { display: flex; gap: .5rem; align-items: flex-start; background: var(--ep-zitrone); color: var(--ep-graphit); font-weight: 700; padding: .35rem .65rem; border-radius: 4px; margin: 0 0 .5rem; max-width: max-content; }
.ep-warn svg { width: 1.3rem; height: 1.3rem; flex: none; margin-top: .15rem; }
.ep-trifft { background: var(--ep-zitrone-hell) !important; }

/* Wochenwahl */
.ep-wochenwahl { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.ep-wochenknopf { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .45rem; min-height: 3rem; padding: .45rem 1rem; border: 2px solid var(--ep-graphit);
  border-radius: 999px; background: var(--ep-weiss); color: var(--ep-graphit); font: inherit; cursor: pointer; }
.ep-wochenknopf small { font-size: .9375rem; }
.ep-wochenknopf small:empty { display: none; }
.ep-wochenknopf[aria-pressed="true"] { background: var(--ep-graphit); color: var(--ep-weiss); }
.ep-wochenknopf:hover:not([aria-pressed="true"]) { background: var(--ep-gruen-hell); }

/* Wochentabelle */
.ep-tabelle-huelle { margin-top: 1rem; overflow-x: auto; }
table.ep-woche { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.45; margin: 0; }
.ep-woche caption { text-align: left; caption-side: top; padding: 0 0 .75rem; color: var(--ep-text-2); }
.ep-woche th, .ep-woche td { text-align: left; vertical-align: top; padding: .8rem .65rem; border: 0; border-bottom: 1px solid var(--ep-linie); }
.ep-woche thead th { background: var(--ep-kalk); border-bottom: 2px solid var(--ep-graphit); font-size: 1.125rem; }
.ep-woche tbody th { width: 7rem; font-size: 1.0625rem; }
.ep-woche tbody th small { display: block; font-weight: 400; color: var(--ep-text-2); font-size: 1rem; }
.ep-heute-marke { display: inline-block; margin-top: .35rem; background: var(--ep-graphit); color: var(--ep-weiss); font-size: .9375rem; font-weight: 700; padding: .05rem .5rem; border-radius: 4px; }
.ep-woche tr.ist-heute th, .ep-woche tr.ist-heute td:not(.ep-trifft) { background: var(--ep-gruen-hell); }
.ep-z-label { display: none; }
.ep-z-name { display: block; font-weight: 700; font-size: 1.125rem; }
.ep-z-beilage { display: block; color: var(--ep-text-2); }
.ep-z-preise { display: block; margin-top: .35rem; }
.ep-z-all { display: block; margin-top: .35rem; font-size: 1rem; }
.ep-z-kz { display: block; margin-top: .3rem; font-size: 1rem; color: var(--ep-text-2); }
@media (min-width: 68.0625rem) {
  table.ep-woche { table-layout: fixed; }
  .ep-woche tbody th, .ep-woche thead th:first-child { width: 8.25rem; white-space: nowrap; }
  .ep-woche td { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
}
@media (max-width: 68rem) {
  table.ep-woche, .ep-woche caption, .ep-woche thead, .ep-woche tbody, .ep-woche tr, .ep-woche th, .ep-woche td { display: block; }
  .ep-woche thead tr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ep-woche tbody tr { border: 1px solid var(--ep-linie); border-radius: var(--ep-radius); margin-bottom: 1.25rem; overflow: hidden; }
  .ep-woche tbody th { width: auto; background: var(--ep-graphit); color: var(--ep-weiss); border: 0; padding: .7rem 1rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; }
  .ep-woche tbody th small { color: #DDE5E1; display: inline; }
  .ep-woche tr.ist-heute th { background: var(--ep-graphit); }
  .ep-heute-marke { background: var(--ep-zitrone); color: var(--ep-graphit); margin: 0; }
  .ep-woche td { padding: .9rem 1rem; }
  .ep-woche tbody tr td:last-child { border-bottom: 0; }
  .ep-z-label { display: block; font-weight: 700; color: var(--ep-gruen-text); margin-bottom: .1rem; }
}
.ep-salatbar { margin-top: 1.5rem; padding: 1.1rem 1.25rem; background: var(--ep-kalk); border-radius: var(--ep-radius); }
.ep-salatbar h3 { margin: 0 0 .3em; }
.ep-salatbar p { margin: 0 0 .3em; }

/* Allergenfilter */
.ep-filter { border: 0; padding: 0; margin: 1.5rem 0 0; min-width: 0; }
.ep-filter legend { font-size: 1.3125rem; font-weight: 700; padding: 0; margin-bottom: .75rem; }
.ep-filter-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); }
.ep-filter-liste li { margin: 0; }
.ep-check { display: flex; align-items: center; gap: .75rem; min-height: 3.25rem; height: 100%; padding: .55rem .9rem; border: 2px solid var(--ep-linie); border-radius: var(--ep-radius); background: var(--ep-weiss); cursor: pointer; line-height: 1.3; }
.ep-check:hover { border-color: var(--ep-linie-stark); }
.ep-check input { width: 1.5rem; height: 1.5rem; margin: 0; flex: none; accent-color: var(--ep-graphit); cursor: pointer; }
.ep-code { color: var(--ep-text-2); }
.ep-check:has(input:checked) { border-color: var(--ep-graphit); background: var(--ep-zitrone-hell); font-weight: 700; }
.ep-filter-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.25rem; }
.ep-filter-fuss p { margin: 0; font-weight: 700; }

/* Häuser und Zeiten */
.ep-haeuser { display: grid; gap: 2.5rem 2rem; margin: 2rem 0; }
@media (min-width: 50rem) { .ep-haeuser { grid-template-columns: 1fr 1fr; } }
.ep-haus-karte { display: flex; flex-direction: column; }
.ep-haus-dach { display: block; width: 100%; height: 2.75rem; overflow: visible; }
.ep-haus-koerper { flex: 1; background: var(--ep-kalk); border-radius: 0 0 var(--ep-radius) var(--ep-radius); padding: 1.5rem 1.5rem 1.75rem; margin: 0 6%; }
.ep-haus-karte h3 { font-size: 1.5rem; margin: 0 0 .2em; }
.ep-adresse { font-style: normal; margin-bottom: 1.1rem; }
.ep-zeiten { margin: 0 0 1.1rem; }
.ep-zeiten div { padding: .55rem 0; border-top: 1px solid #B9C5BF; }
.ep-zeiten dt { font-weight: 700; }
.ep-zeiten dd { margin: 0; }
.ep-zeiten dd span { display: block; }
.ep-angebot { margin-bottom: .6rem; }

@media print {
  .ep-ortwahl-platz, .ep-filter, .ep-filterhinweis, .ep-wochenwahl, #allergene { display: none !important; }
  .ep-band { padding: 1rem 0; }
}
