:root {
  --leinen: #f7f2ea;
  --papier: #ffffff;
  --salbei: #e9f0e7;
  --wald: #2c4134;
  --aktion: #006e2d;
  --tinte: #1f2a22;
  --gedaempft: #5d6b60;
  --linie: #ece6dc;
  --inaktiv: #e2ded4;
  --auf-wald: #cfe0d2;
  --navigation: calc(70px + env(safe-area-inset-bottom));
  --eingabe: 106px;
}

* { box-sizing: border-box; }

html { background: var(--leinen); }

body {
  margin: 0;
  color: var(--tinte);
  background: var(--leinen);
  font: 17px/1.48 "Figtree", system-ui, sans-serif;
  padding-bottom: var(--navigation);
}

button, input { font: inherit; }
button { color: inherit; }

h1, h2, h3, p, figure, blockquote { margin-top: 0; }
h1, h2, h3 { font-family: "Newsreader", Georgia, serif; font-weight: 500; line-height: 1.05; }
h1 { font-size: clamp(2.25rem, 10vw, 4rem); margin-bottom: .25rem; }
h2 { font-size: 2rem; margin: 2.25rem 0 1rem; }
h3 { font-size: 1.35rem; }

.seitenbreite { width: min(100% - 32px, 800px); margin-inline: auto; }
.bereich { min-height: calc(100svh - var(--navigation)); padding-bottom: 36px; }
#bereich-fragen { padding-bottom: calc(var(--eingabe) + 30px); }
.bereich[hidden] { display: none; }

.hauskopf { position: relative; height: 238px; color: white; background: var(--wald); overflow: hidden; }
.hauskopf::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,14,.08), rgba(18,34,24,.84)); }
.hauskopf img { width: 100%; height: 100%; object-fit: cover; }
.hauskopf-text { position: absolute; z-index: 1; inset: auto 20px 20px; max-width: 760px; margin: auto; }
.hauskopf-text h1 { font-size: clamp(2rem, 9vw, 3.7rem); }
.hauskopf-text p:last-child { margin: 0; color: #f3f6f2; }
.augenbraue { margin-bottom: .3rem; color: var(--aktion); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hauskopf .augenbraue { color: var(--auf-wald); }

.fragen-inhalt { padding-top: 18px; }
.offen-heute { padding: 13px 15px; margin-bottom: 24px; border-left: 4px solid var(--aktion); border-radius: 0 10px 10px 0; background: var(--papier); font-weight: 600; }
.begruessungskarte { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: center; min-height: 72px; padding: 16px 18px; margin-bottom: 24px; overflow: hidden; border: 1px solid var(--linie); border-radius: 13px; background: var(--papier); cursor: pointer; }
.begruessungskarte[hidden] { display: none; }
.begruessungskarte:active { background: #fdfcf9; }
.begruessung-knopf { display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; color: white; background: var(--aktion); cursor: pointer; }
.begruessung-knopf span { font-size: 1rem; line-height: 1; transform: translateX(1px); }
.begruessungskarte.spielt .begruessung-knopf span { transform: none; }
.begruessung-text strong { display: block; font: 500 1.35rem/1.15 "Newsreader", Georgia, serif; }
.begruessung-text p { margin: 4px 0 0; color: var(--gedaempft); font-size: .84rem; }
.begruessung-fortschritt { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: transparent; }
.begruessung-fortschritt span { display: block; width: 0; height: 100%; background: var(--aktion); }
.einstieg-titel { margin-bottom: 10px; font: 500 1.45rem/1.2 "Newsreader", Georgia, serif; }
.vorschlaege { display: flex; flex-wrap: wrap; gap: 9px; padding: 2px 2px 8px; }
.vorschlaege::-webkit-scrollbar { display: none; }
.vorschlag { flex: 0 0 auto; min-height: 44px; padding: 9px 14px; border: 1px solid #ccd8ca; border-radius: 999px; background: var(--salbei); font-size: .94rem; cursor: pointer; }
.vorschlag:active { background: #dae8d8; }

.verlauf { display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }
.nachricht { display: flex; flex-direction: column; }
.nachricht.frage { align-items: flex-end; }
.blase { max-width: min(88%, 650px); padding: 13px 16px; border-radius: 18px; }
.frage .blase { background: var(--salbei); border-bottom-right-radius: 5px; }
.antwort .blase { background: var(--papier); border: 1px solid var(--linie); border-bottom-left-radius: 5px; }
.antwort .blase p { margin: 0; }
.wartehinweis { width: fit-content; margin: 18px 0 0; color: var(--gedaempft); font-style: italic; }

.antwort-bilder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; width: min(92%, 560px); margin-top: 10px; }
.antwort-bilder figure { margin: 0; }
.antwort-bilder img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.antwort-bilder figcaption { margin-top: 5px; color: var(--gedaempft); font-size: .78rem; }
.antwort-vorschlaege { display: flex; flex-wrap: wrap; align-self: flex-start; gap: 8px; width: min(96%, 680px); margin-top: 10px; }
.antwort-vorschlaege .vorschlag { text-align: left; white-space: normal; }
.belege { width: min(96%, 680px); margin-top: 10px; }
.belegkarte { position: relative; margin-top: 8px; overflow: hidden; border: 1px solid var(--linie); border-radius: 12px; background: var(--papier); }
.belegkarte summary { display: grid; grid-template-columns: 5px 1fr 28px; gap: 12px; align-items: stretch; min-height: 58px; list-style: none; cursor: pointer; }
.belegkarte summary::-webkit-details-marker { display: none; }
.belegkarte summary > span:nth-child(2) { display: flex; flex-direction: column; justify-content: center; padding: 10px 0; }
.belegkarte summary strong { font-size: .91rem; }
.belegkarte summary small { color: var(--gedaempft); font-size: .75rem; }
.belegbalken { background: var(--aktion); }
.aufklappen { align-self: center; font-size: 1.35rem; color: var(--aktion); }
.belegkarte[open] .aufklappen { transform: rotate(45deg); }
.beleg-inhalt { padding: 4px 16px 16px 29px; }
.beleg-inhalt blockquote { margin-bottom: 12px; font: italic 1.25rem/1.42 "Newsreader", Georgia, serif; }
.zeitmarke, .original-zeile, .vorbehalt { color: var(--gedaempft); font-size: .82rem; }
.zeitmarke { margin-bottom: 18px; }
.original-zeile { margin-bottom: 6px; font-weight: 600; }
audio { width: 100%; min-height: 44px; }
.vorbehalt { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--linie); }
.website-beleg { display: grid; grid-template-columns: 5px 1fr; gap: 12px; margin-top: 8px; border: 1px dashed #bdb9af; border-radius: 12px; background: rgba(255,255,255,.55); overflow: hidden; }
.website-beleg .belegbalken { background: var(--inaktiv); }
.website-beleg div { padding: 12px 12px 12px 0; }
.website-beleg strong { display: block; font-size: .91rem; }
.website-beleg p, .keine-belege { margin: 3px 0 0; color: var(--gedaempft); font-size: .8rem; }
.keine-belege { padding: 10px 2px; }

.frage-formular { position: fixed; z-index: 20; right: 0; bottom: var(--navigation); left: 0; padding: 12px max(16px, calc((100vw - 800px)/2)); background: linear-gradient(180deg, rgba(247,242,234,.25), var(--leinen) 26%); }
.frage-formular[hidden] { display: none; }
.eingabezeile { display: flex; gap: 8px; }
.frage-formular input { min-width: 0; min-height: 52px; flex: 1; padding: 0 16px; color: var(--tinte); border: 1px solid #d8d2c7; border-radius: 14px; background: var(--papier); }
.frage-formular input:focus { outline: 3px solid rgba(0,110,45,.16); border-color: var(--aktion); }
.frage-formular button[type="submit"] { min-width: 76px; min-height: 52px; padding: 0 15px; color: white; border: 0; border-radius: 14px; background: var(--aktion); font-weight: 700; cursor: pointer; }
.frage-formular button:disabled { opacity: .6; }
.mikrofon-knopf { display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; padding: 0; border: 1px solid var(--aktion); border-radius: 50%; color: var(--aktion); background: var(--papier); cursor: pointer; }
.mikrofon-knopf[hidden] { display: none; }
.mikrofon-knopf svg { width: 25px; height: 25px; fill: currentColor; }
.mikrofon-knopf.aktiv { color: white; background: var(--aktion); animation: mikrofon-puls 2s ease-in-out infinite; }
.hoerhinweis { margin: 7px 4px 0; color: var(--gedaempft); font-size: .86rem; }

@keyframes mikrofon-puls {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,110,45,.18); }
  50% { box-shadow: 0 0 0 7px rgba(0,110,45,.08); }
}

.bereichsleiste { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); height: var(--navigation); padding: 5px 7px max(5px, env(safe-area-inset-bottom)); color: var(--auf-wald); background: var(--wald); box-shadow: 0 -5px 24px rgba(25,35,28,.12); }
.bereichsleiste button { min-height: 52px; border: 0; border-radius: 10px; color: inherit; background: transparent; font-size: .74rem; cursor: pointer; }
.bereichsleiste button span { display: block; height: 25px; font-size: 1.25rem; line-height: 23px; }
.bereichsleiste button.aktiv { color: white; background: rgba(255,255,255,.1); font-weight: 700; }

.seitentitel { padding-top: 30px; margin-bottom: 22px; }
.seitentitel h1 { color: var(--wald); }
.unbelegt-hinweis { padding: 16px; margin-bottom: 28px; border: 1px dashed #aaa69c; border-radius: 12px; background: var(--papier); color: #454b46; font-size: .93rem; }
.menu-zeitraum { color: var(--gedaempft); }
.tageskarten { display: grid; gap: 10px; }
.tageskarte { padding: 15px; border: 1px solid var(--linie); border-radius: 13px; background: var(--papier); }
.tageskarte.heute { border: 2px solid var(--aktion); background: var(--salbei); }
.tageskarte h3 { margin-bottom: 9px; }
.heute-marke { display: inline-block; margin-left: 7px; padding: 2px 7px; border-radius: 999px; color: white; background: var(--aktion); font: 700 .65rem/1.6 "Figtree", sans-serif; text-transform: uppercase; vertical-align: 3px; }
.tageskarte ul, .ankuendigungen { margin: 0; padding-left: 20px; }
.tageskarte li + li, .ankuendigungen li + li { margin-top: 5px; }
.ankuendigungsblock { padding: 18px; margin: 18px 0 32px; border-radius: 13px; color: white; background: var(--wald); }
.ankuendigungsblock h3 { margin-bottom: 10px; color: var(--auf-wald); }
.speisegruppe { margin-bottom: 26px; }
.gericht { display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, auto); gap: 7px 15px; padding: 13px 0; border-bottom: 1px solid var(--linie); }
.gericht-name, .gericht-preis { margin: 0; }
.gericht-preis { text-align: right; font-weight: 700; white-space: normal; }
.allergene { grid-column: 1 / -1; margin: 0; color: var(--gedaempft); font-size: .75rem; }

.quellenhinweis { padding: 16px; margin-bottom: 20px; border-left: 4px solid var(--inaktiv); background: var(--papier); font-size: .9rem; }
.quellenhinweis blockquote { margin: 12px 0 0; color: var(--gedaempft); font: italic 1.08rem/1.35 "Newsreader", Georgia, serif; }
.bilder-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bildkachel { padding: 0; overflow: hidden; text-align: left; border: 0; border-radius: 12px; background: var(--papier); cursor: pointer; }
.bildkachel img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.bildkachel span { display: block; min-height: 50px; padding: 9px 10px; font-weight: 600; font-size: .85rem; }
.bild-dialog { width: min(92vw, 880px); max-height: 90svh; padding: 0; overflow: visible; border: 0; border-radius: 14px; background: var(--papier); }
.bild-dialog::backdrop { background: rgba(20,31,24,.82); }
.bild-dialog figure { margin: 0; }
.bild-dialog img { display: block; width: 100%; max-height: 72svh; object-fit: contain; border-radius: 14px 14px 0 0; background: #18231c; }
.bild-dialog figcaption { padding: 14px 16px 17px; }
.dialog-schliessen { position: absolute; z-index: 1; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; color: white; background: rgba(20,30,24,.75); font-size: 1.8rem; cursor: pointer; }

.herkunft-kette { padding: 0; margin: 0 0 36px; list-style: none; }
.herkunft-kette li { display: grid; grid-template-columns: 46px 1fr; gap: 13px; position: relative; padding-bottom: 22px; }
.herkunft-kette li:not(:last-child)::after { content: ""; position: absolute; top: 42px; bottom: 3px; left: 21px; width: 2px; background: #bfcdbc; }
.herkunft-kette span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: white; background: var(--aktion); font-weight: 700; }
.herkunft-kette strong { font-family: "Newsreader", Georgia, serif; font-size: 1.35rem; font-weight: 500; }
.herkunft-kette p { margin: 2px 0 0; color: var(--gedaempft); }
.audio-block { padding: 17px; margin-bottom: 14px; border: 1px solid var(--linie); border-radius: 13px; background: var(--papier); }
.audio-block h3 { margin-bottom: 7px; }
.audio-block p { color: var(--gedaempft); font-size: .9rem; }
.warnkasten { padding: 15px; margin: 15px 0 0; border: 2px solid var(--aktion); border-radius: 10px; color: var(--tinte) !important; background: var(--salbei); font-weight: 600; }
.aussagenliste .belegkarte { margin-bottom: 9px; }
.kontaktkarte { padding: 18px; margin-top: 35px; border-radius: 13px; color: white; background: var(--wald); }
.kontaktkarte h2 { margin-top: 0; color: var(--auf-wald); }
.kontaktkarte a { display: block; min-height: 44px; color: white; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.nur-lesbar { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid rgba(0,110,45,.35); outline-offset: 2px; }

@media (min-width: 700px) {
  .hauskopf { height: 300px; }
  .hauskopf-text { right: 32px; left: 32px; }
  .bilder-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tageskarten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .mikrofon-knopf.aktiv { animation: none; }
}

/* Monika beantwortet die Frage mit ihrer eigenen Stimme. Der Knopf sitzt in der
   Antwortblase, nicht bei den Belegen: das Hören ist die Antwort, nicht der
   Nachweis darunter. */
.monika-spieler { margin-top: 12px; }
.monika-knopf {
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: 46px; padding: 9px 14px;
  border: 1px solid var(--aktion); border-radius: 999px;
  background: var(--salbei); color: var(--tinte);
  font-family: inherit; font-size: .95rem; text-align: left; cursor: pointer;
}
.monika-knopf:active { background: #dae8d8; }
.monika-zeichen {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 999px;
  background: var(--aktion); color: #fff; font-size: .72rem; line-height: 1;
}
.monika-text { flex: 1 1 auto; }

/* Die Freigabe liegt vor. Der Kasten bestaetigt, er warnt nicht mehr. */
.freigabe-kasten { margin: 14px 0 0; padding: 12px 14px; border: 1px solid var(--aktion); border-radius: 10px; background: var(--salbei); font-size: .9rem; }
.schnitt-hinweis { margin: -6px 0 26px; color: var(--gedaempft); font-size: .85rem; }
