/* Weihnachtsmärkte rund um Frankfurt
   Modern: klare Flächen, tiefes Tannengrün, Bratapfel-Orange als Akzent, Kerzenlicht als Signatur.
   Schriften lokal: Bricolage Grotesque (Titel, Zahlen) und Schibsted Grotesk (Text). Beide OFL. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  src: url("/static/fonts/bricolage-grotesque-latin-standard-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  src: url("/static/fonts/bricolage-grotesque-latin-ext-standard-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("/static/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("/static/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF;
}

:root {
  color-scheme: light dark;
  --grund: oklch(97.6% 0.006 110);
  --flaeche: oklch(100% 0 0);
  --flaeche-2: oklch(95.2% 0.01 130);
  --linie: oklch(90.5% 0.012 140);
  --tinte: oklch(21% 0.025 165);
  --tinte-2: oklch(38% 0.025 165);
  --tanne: oklch(36% 0.075 162);
  --tanne-hover: oklch(42% 0.085 160);
  --tanne-tief: oklch(23% 0.045 168);
  --tanne-tint: oklch(93.5% 0.035 158);
  --auf-dunkel: oklch(97% 0.008 110);
  --auf-dunkel-2: oklch(82% 0.03 150);
  --akzent: oklch(64% 0.185 42);
  --akzent-text: oklch(50% 0.165 40);
  --licht: oklch(83% 0.15 78);
  --licht-tint: oklch(95.5% 0.05 85);
  --display: "Bricolage Grotesque", "Schibsted Grotesk", system-ui, sans-serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-gross: 1.1rem;
  --r: 0.75rem;
  --r-klein: 0.5rem;
  --tab-h: 4rem;
  --schatten: 0 1px 2px oklch(25% 0.03 160 / 0.06), 0 8px 24px -12px oklch(25% 0.03 160 / 0.18);
  --schatten-hoch: 0 2px 6px oklch(25% 0.03 160 / 0.08), 0 18px 40px -16px oklch(25% 0.03 160 / 0.32);
  /* Kalender-Heatmap */
  --s0: var(--flaeche);
  --s1: oklch(94.5% 0.04 158);
  --s2: oklch(86% 0.075 158);
  --s3: oklch(58% 0.1 160);
  --s4: oklch(36% 0.075 162);
  /* Kartenmarker (Hex, weil MapLibre kein OKLCH liest) */
  --pin-belegt: #2f6b4f;
  --pin-geprueft: #2f6b4f;
  --pin-geprueft-ring: #f0a630;
  --pin-offen: #f2b63d;
  --pin-vorjahr: #a49e90;
  --pin-gruppe: #d4612a;
  --pin-ring: #ffffff;
  --pin-start: #15241c;
}

@media (prefers-color-scheme: dark) {
html:not([data-theme]) {
    --grund: oklch(16.5% 0.018 168);
    --flaeche: oklch(21% 0.022 168);
    --flaeche-2: oklch(25% 0.025 166);
    --linie: oklch(30% 0.025 166);
    --tinte: oklch(95% 0.01 110);
    --tinte-2: oklch(82% 0.02 140);
    --tanne: oklch(74% 0.12 158);
    --tanne-hover: oklch(80% 0.12 158);
    --tanne-tief: oklch(13.5% 0.02 168);
    --tanne-tint: oklch(30% 0.05 160);
    --akzent: oklch(72% 0.16 48);
    --akzent-text: oklch(78% 0.14 52);
    --licht-tint: oklch(29% 0.05 80);
    --schatten: 0 1px 2px oklch(0% 0 0 / 0.3), 0 8px 24px -12px oklch(0% 0 0 / 0.6);
    --schatten-hoch: 0 2px 6px oklch(0% 0 0 / 0.35), 0 18px 40px -16px oklch(0% 0 0 / 0.75);
    --s0: var(--flaeche);
    --s1: oklch(27% 0.04 160);
    --s2: oklch(36% 0.07 160);
    --s3: oklch(52% 0.1 158);
    --s4: oklch(72% 0.12 156);
    --pin-belegt: #6cc79b;
    --pin-geprueft: #6cc79b;
    --pin-geprueft-ring: #f4b54b;
    --pin-offen: #f2b63d;
    --pin-vorjahr: #7f8b83;
    --pin-gruppe: #e47b42;
    --pin-ring: #13201a;
    --pin-start: #f3efe4;
  }
}
html[data-theme="dark"] {
    --grund: oklch(16.5% 0.018 168);
    --flaeche: oklch(21% 0.022 168);
    --flaeche-2: oklch(25% 0.025 166);
    --linie: oklch(30% 0.025 166);
    --tinte: oklch(95% 0.01 110);
    --tinte-2: oklch(82% 0.02 140);
    --tanne: oklch(74% 0.12 158);
    --tanne-hover: oklch(80% 0.12 158);
    --tanne-tief: oklch(13.5% 0.02 168);
    --tanne-tint: oklch(30% 0.05 160);
    --akzent: oklch(72% 0.16 48);
    --akzent-text: oklch(78% 0.14 52);
    --licht-tint: oklch(29% 0.05 80);
    --schatten: 0 1px 2px oklch(0% 0 0 / 0.3), 0 8px 24px -12px oklch(0% 0 0 / 0.6);
    --schatten-hoch: 0 2px 6px oklch(0% 0 0 / 0.35), 0 18px 40px -16px oklch(0% 0 0 / 0.75);
    --s0: var(--flaeche);
    --s1: oklch(27% 0.04 160);
    --s2: oklch(36% 0.07 160);
    --s3: oklch(52% 0.1 158);
    --s4: oklch(72% 0.12 156);
    --pin-belegt: #6cc79b;
    --pin-geprueft: #6cc79b;
    --pin-geprueft-ring: #f4b54b;
    --pin-offen: #f2b63d;
    --pin-vorjahr: #7f8b83;
    --pin-gruppe: #e47b42;
    --pin-ring: #13201a;
    --pin-start: #f3efe4;
  }

html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--grund); color: var(--tinte);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  caret-color: var(--akzent); accent-color: var(--tanne);
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
}
::selection { background: var(--licht); color: oklch(20% 0.03 160); }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -0.025em; font-stretch: 94%; }
h1 { font-size: clamp(2.1rem, 8vw, 3.6rem); font-weight: 750; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.4rem, 4.2vw, 1.9rem); }
h3 { font-size: 1.1rem; letter-spacing: -0.015em; }
p { margin: 0 0 0.9em; max-width: 66ch; text-wrap: pretty; }
a { color: var(--akzent-text); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; border-radius: 6px; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 0.75rem; top: -4rem; background: var(--licht); color: oklch(20% 0.03 160); padding: 0.6rem 1rem; border-radius: var(--r-klein); z-index: 100; font-weight: 650; }
.skip:focus { top: 0.75rem; }
* { scrollbar-width: thin; scrollbar-color: var(--linie) transparent; }

.ico { width: 1.3rem; height: 1.3rem; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--s { width: 1.05rem; height: 1.05rem; }

/* ---- Kopf ------------------------------------------------------------------ */
.kopf { background: var(--tanne-tief); color: var(--auf-dunkel); padding-top: env(safe-area-inset-top); }
.kopf__innen { max-width: 68rem; margin: 0 auto; padding: 0.75rem 1rem 0.85rem; display: flex; flex-direction: column; gap: 0.7rem; }
.marke { display: flex; align-items: center; gap: 0.65rem; color: inherit; text-decoration: none; min-height: 2.75rem; }
.marke img { width: 2.2rem; height: 2.2rem; border-radius: 0.65rem; }
.marke__name { font-family: var(--display); font-weight: 700; font-stretch: 92%; letter-spacing: -0.02em; font-size: clamp(1.15rem, 4.6vw, 1.35rem); line-height: 1.05; }
.kopf nav.haupt { display: none; }

/* Advent-Leiste: vier Kerzen als Segmente */
.leiste { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35rem; }
.kerze { display: flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 2.9rem; padding: 0.35rem 0.4rem; border-radius: var(--r); background: oklch(100% 0 0 / 0.07); color: var(--auf-dunkel-2); text-decoration: none; transition: background 0.2s ease; }
.kerze:hover { background: oklch(100% 0 0 / 0.13); color: var(--auf-dunkel); }
.kerze svg { width: 0.95rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.kerze__wachs { fill: oklch(100% 0 0 / 0.16); stroke: none; }
.kerze__flamme { fill: var(--licht); stroke: none; opacity: 0; transform-origin: 50% 90%; transform-box: fill-box; }
.kerze.brennt { color: var(--auf-dunkel); }
.kerze.brennt .kerze__flamme { opacity: 1; }
.kerze.brennt .kerze__wachs { fill: oklch(97% 0.02 90); }
.kerze.aktuell { background: var(--licht); color: oklch(20% 0.035 160); }
.kerze.aktuell .kerze__wachs { fill: oklch(20% 0.035 160 / 0.85); }
.kerze.aktuell .kerze__flamme { opacity: 1; fill: oklch(58% 0.2 40); }
.kerze__text { display: flex; flex-direction: column; line-height: 1.1; }
.kerze__nr { font-family: var(--display); font-weight: 700; font-size: 0.92rem; white-space: nowrap; letter-spacing: -0.01em; }
.kerze__tag { font-size: 0.8rem; opacity: 0.8; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .kerze.aktuell .kerze__flamme { animation: flackern 3.2s ease-in-out infinite; }
}
@keyframes flackern {
  0%, 100% { transform: scale(1) rotate(0deg); }
  30% { transform: scale(1.07, 0.93) rotate(-3deg); }
  60% { transform: scale(0.95, 1.07) rotate(3deg); }
}
@media (max-width: 26rem) { .kerze { flex-direction: column; gap: 0.15rem; padding-block: 0.4rem; } .kerze__text { align-items: center; } }

/* ---- Navigation: unten auf dem Handy, oben ab 48rem ------------------------ */
.tabs { position: fixed; inset: auto 0 0 0; z-index: 30; background: var(--flaeche); border-top: 1px solid var(--linie); padding-bottom: env(safe-area-inset-bottom); }
.tabs ul { max-width: 40rem; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; min-height: var(--tab-h); color: var(--tinte-2); text-decoration: none; font-size: 0.82rem; font-weight: 650; position: relative; }
.tabs a .ico { padding: 0.15rem 0; width: 3.1rem; height: 1.85rem; border-radius: 1rem; transition: background 0.2s ease; }
.tabs a[aria-current="page"] { color: var(--tinte); }
.tabs a[aria-current="page"] .ico { background: var(--tanne-tint); color: var(--tanne); }
.tabs .zaehler { position: absolute; top: 0.4rem; left: calc(50% + 0.6rem); min-width: 1.15rem; height: 1.15rem; padding: 0 0.3rem; border-radius: 1rem; background: var(--akzent); color: oklch(99% 0.005 90); font-size: 0.68rem; line-height: 1.15rem; text-align: center; font-weight: 750; }

@media (min-width: 48rem) {
  body { padding-bottom: 0; }
  .tabs { display: none; }
  .kopf__innen { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 2rem; padding-top: 0.8rem; }
  .leiste { flex: 1 1 100%; order: 3; }
  .kopf nav.haupt { display: block; margin-left: auto; }
  .kopf nav.haupt ul { display: flex; gap: 0.2rem; }
  .kopf nav.haupt a { display: flex; align-items: center; gap: 0.4rem; color: var(--auf-dunkel-2); text-decoration: none; padding: 0.55rem 0.8rem; border-radius: 2rem; font-weight: 600; min-height: 2.75rem; }
  .kopf nav.haupt a:hover { background: oklch(100% 0 0 / 0.09); color: var(--auf-dunkel); }
  .kopf nav.haupt a[aria-current="page"] { color: oklch(20% 0.035 160); background: var(--auf-dunkel); }
  .kopf nav.haupt .zaehler { background: var(--akzent); color: oklch(99% 0.005 90); font-size: 0.72rem; min-width: 1.25rem; height: 1.25rem; padding: 0 0.3rem; border-radius: 1rem; text-align: center; line-height: 1.25rem; font-weight: 750; }
}

/* ---- Inhalt ---------------------------------------------------------------- */
main { flex: 1; width: 100%; max-width: 68rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
main > h1 { margin: 0.25rem 0 0.5rem; }
.untertitel, .einstieg { color: var(--tinte-2); font-size: 1.02rem; max-width: 60ch; }
.abschnitt { margin-top: 3rem; }
.abschnitt:first-child { margin-top: 0; }
.abschnitt__kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.abschnitt__kopf h2 { margin: 0; }
.abschnitt__datum { color: var(--tinte-2); font-size: 0.95rem; }
.mehr { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 650; min-height: 2.75rem; text-decoration: none; }
.mehr:hover { text-decoration: underline; }
.leer { padding: 1.1rem 1.2rem; color: var(--tinte-2); max-width: none; background: var(--flaeche); border: 1px dashed var(--linie); border-radius: var(--r-gross); }
.leer strong { color: var(--tinte); }
.zwei { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 52rem) { .zwei { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.unterlink { margin: 0.5rem 0 0; }
.tagkopf { margin: 0.2rem 0 0.9rem; font-family: var(--sans); font-weight: 700; font-size: 1rem; letter-spacing: 0; display: flex; justify-content: space-between; gap: 0.6rem; align-items: baseline; }
.tagkopf .abschnitt__datum { font-weight: 500; font-size: 0.88rem; }
.hinweis--tipp { background: var(--licht-tint); }
.hinweise { display: grid; gap: 1rem; margin: 3rem 0 0; }
.hinweise .hinweis { margin: 0; }
@media (min-width: 52rem) { .hinweise { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }

/* ---- Postleitzahl ---------------------------------------------------------- */
.standort { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem 0.75rem; padding: 0.9rem; margin: 0 0 1.75rem; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-gross); box-shadow: var(--schatten); }
main > h1 + .standort, .untertitel + .standort { margin-top: 1rem; }
.standort__feld { display: flex; flex-direction: column; gap: 0.3rem; flex: 1 1 9rem; }
.standort__feld--klein { flex: 0 1 7.5rem; }
.standort__label { font-size: 0.92rem; font-weight: 650; color: var(--tinte-2); }
.standort input, .standort select { font: 600 1.05rem/1.2 var(--sans); color: var(--tinte); background: var(--grund); border: 1px solid var(--linie); border-radius: var(--r); padding: 0.7rem 0.8rem; min-height: 3rem; width: 100%; }
.standort input::placeholder { color: var(--tinte-2); font-weight: 450; }
.standort input:focus, .standort select:focus { border-color: var(--tanne); outline: 3px solid color-mix(in oklch, var(--tanne) 25%, transparent); outline-offset: 0; }
.standort input[aria-invalid="true"] { border-color: oklch(55% 0.19 28); }
.standort .knopf { min-height: 3rem; }
.standort__weg { font-size: 0.9rem; min-height: 3rem; display: inline-flex; align-items: center; color: var(--tinte-2); }
.standort__info, .standort__fehler { flex: 1 1 100%; margin: 0.1rem 0 0; font-size: 0.88rem; color: var(--tinte-2); }
.standort__fehler { color: oklch(52% 0.19 28); font-weight: 600; }
@media (prefers-color-scheme: dark) {
html:not([data-theme]) .standort__fehler { color: oklch(75% 0.14 28); }
}
html[data-theme="dark"] .standort__fehler { color: oklch(75% 0.14 28); }

/* ---- Marktzeilen ----------------------------------------------------------- */
.zeilen { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-gross); overflow: hidden; box-shadow: var(--schatten); }
.zeile { display: flex; align-items: stretch; position: relative; }
.zeile + .zeile, .zeilen > .plan__warn + .zeile { border-top: 1px solid var(--linie); }
.zeile:hover { background: var(--flaeche-2); }
.zeile__link { flex: 1; min-width: 0; display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); column-gap: 1.1rem; row-gap: 0.45rem; align-items: center; padding: 1rem 0.6rem 1rem 1.2rem; color: inherit; text-decoration: none; min-height: 4.5rem; }
.zeile__zeit { display: flex; flex-direction: column; line-height: 1.15; }
.zeile__kopf { font-size: 0.85rem; font-weight: 700; color: var(--akzent-text); }
.zeile__uhr { font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; white-space: nowrap; }
.zeile__uhr--offen { font-family: var(--sans); font-weight: 500; font-size: 0.92rem; color: var(--tinte-2); }
.zeile__text { min-width: 0; }
.zeile__name { display: block; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.zeile__ort { display: block; color: var(--tinte-2); font-size: 0.95rem; margin-top: 0.25rem; line-height: 1.45; }
.zeile__ort [data-km-text]:not(:empty) { font-weight: 650; color: var(--tinte); }
.zeile__meta { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.zeile__meta:empty { display: none; }
.zeile__link > .zeile__zeit { grid-row: 1 / span 2; align-self: start; padding-top: 0.1rem; }
.zeile__link > .zeile__text { align-self: start; }
.zeile__plan { flex: none; width: 5rem; border-left: 1px solid var(--linie); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; padding: 0.4rem 0; background: none; border: 0; cursor: pointer; color: var(--tinte-2); }
.zeile__plan .ico { width: 2.3rem; height: 2.3rem; padding: 0.5rem; border-radius: 50%; border: 1.5px solid var(--linie); transition: background 0.18s ease, border-color 0.18s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
.zeile__plan:hover .ico { border-color: var(--tanne); color: var(--tanne); }
.zeile__plan[aria-pressed="true"] .ico { background: var(--tanne); border-color: var(--tanne); color: var(--flaeche); }
.zeile__plan .ico-an, .zeile__plan[aria-pressed="true"] .ico-aus { display: none; }
.zeile__plan[aria-pressed="true"] .ico-an { display: block; }
@media (prefers-reduced-motion: no-preference) { .zeile__plan:active .ico { transform: scale(0.88); } }
@media (max-width: 30rem) {
  .zeile__link { grid-template-columns: 5.6rem minmax(0, 1fr); column-gap: 0.9rem; padding-left: 1rem; }
  .zeile__uhr { font-size: 0.95rem; }
}

.chip { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.82rem; font-weight: 700; line-height: 1; padding: 0.32rem 0.55rem; border-radius: 2rem; white-space: nowrap; }
.chip--geprueft { background: var(--tanne-tint); color: var(--tanne); }
.chip--belegt { background: var(--flaeche-2); color: var(--tinte-2); }
.chip--offen { background: var(--licht-tint); color: oklch(42% 0.11 60); }
.chip--vorjahr { background: var(--flaeche-2); color: var(--tinte-2); }
@media (prefers-color-scheme: dark) {
html:not([data-theme]) .chip--offen { color: var(--licht); }
}
html[data-theme="dark"] .chip--offen { color: var(--licht); }
.chip .ico { width: 0.8rem; height: 0.8rem; stroke-width: 2.6; }

/* ---- Tagwahl, Filter, Knöpfe ---------------------------------------------- */
.tagwahl { display: flex; gap: 0.45rem; overflow-x: auto; margin: 0 -1rem; padding: 0.15rem 1rem 0.7rem; scroll-snap-type: x proximity; scrollbar-width: none; }
.tagwahl::-webkit-scrollbar { display: none; }
.tagwahl a { scroll-snap-align: start; white-space: nowrap; text-decoration: none; color: var(--tinte); background: var(--flaeche); border: 1px solid var(--linie); border-radius: 2rem; padding: 0.55rem 1rem; font-weight: 620; font-size: 0.92rem; min-height: 2.75rem; display: inline-flex; align-items: center; }
.tagwahl a:hover { border-color: var(--tinte-2); }
.tagwahl a[aria-current="true"] { background: var(--tinte); color: var(--grund); border-color: var(--tinte); }
.filter { margin-top: 0.4rem; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-gross); }
.filter summary { cursor: pointer; padding: 0.8rem 1rem; font-weight: 650; min-height: 3rem; display: flex; align-items: center; gap: 0.5rem; list-style: none; }
.filter summary::-webkit-details-marker { display: none; }
.filter__form { display: grid; gap: 0.9rem 1rem; padding: 0.25rem 1rem 1rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); align-items: end; }
.feld { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.9rem; font-weight: 650; color: var(--tinte-2); }
.feld select { font: 500 0.98rem var(--sans); color: var(--tinte); background: var(--grund); border: 1px solid var(--linie); border-radius: var(--r); padding: 0.6rem 0.7rem; min-height: 2.9rem; }
.haken { display: flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; font-weight: 500; color: var(--tinte); font-size: 0.95rem; }
.haken input { width: 1.25rem; height: 1.25rem; }
.aktionen { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.9rem; padding: 0.6rem 1.2rem; border-radius: 2rem; border: 1px solid var(--tanne); background: var(--tanne); color: var(--flaeche); font-weight: 650; text-decoration: none; cursor: pointer; transition: background 0.18s ease; }
.knopf:hover { background: var(--tanne-hover); border-color: var(--tanne-hover); }
.knopf--leise { background: var(--flaeche); color: var(--tinte); border-color: var(--linie); }
.knopf--leise:hover { background: var(--flaeche-2); border-color: var(--tinte-2); }
@media (prefers-color-scheme: dark) {
html:not([data-theme]) .knopf { color: oklch(17% 0.02 168); }
html:not([data-theme]) .knopf--leise { color: var(--tinte); }
}
html[data-theme="dark"] .knopf { color: oklch(17% 0.02 168); }
html[data-theme="dark"] .knopf--leise { color: var(--tinte); }

.hinweis { display: flex; gap: 0.85rem; align-items: flex-start; background: var(--licht-tint); border-radius: var(--r-gross); padding: 1.1rem 1.3rem; margin: 1.5rem 0; }
.hinweis .ico { margin-top: 0.12rem; color: var(--akzent-text); }
.hinweis p { margin: 0; max-width: 62ch; line-height: 1.6; }
.hinweis--ruhig { background: var(--flaeche-2); }
.listenkopf { display: flex; justify-content: space-between; align-items: end; gap: 0.75rem 1rem; flex-wrap: wrap; margin: 1.5rem 0 0.8rem; }
.listenkopf h2 { font-size: clamp(1.25rem, 3.5vw, 1.55rem); }
.listenkopf__zahl { color: var(--tinte-2); font-size: 0.92rem; }
.sortierung { display: flex; gap: 0.25rem; flex-wrap: wrap; align-items: center; font-size: 0.88rem; color: var(--tinte-2); }
.sortierung a { padding: 0.45rem 0.8rem; border-radius: 2rem; color: var(--tinte-2); text-decoration: none; min-height: 2.5rem; display: inline-flex; align-items: center; font-weight: 600; }
.sortierung a[aria-current="true"] { color: var(--tinte); background: var(--flaeche); box-shadow: inset 0 0 0 1px var(--linie); }

/* ---- Marktseite ------------------------------------------------------------ */
.zurueck { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.75rem; font-weight: 600; text-decoration: none; }
.titelblock { padding: 0.25rem 0 1rem; }
.titelblock h1 { margin: 0.3rem 0 0.5rem; font-size: clamp(2rem, 7vw, 3.2rem); }
.titelblock__ort { color: var(--tinte-2); font-size: 1.05rem; margin: 0; }
.status { display: flex; gap: 0.8rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: var(--r-gross); background: var(--tanne-tint); margin: 0.5rem 0 1.25rem; }
.status .ico { color: var(--tanne); }
.status--offen, .status--vorjahr { background: var(--licht-tint); }
.status--offen .ico, .status--vorjahr .ico { color: var(--akzent-text); }
.status p { margin: 0; }
.status strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em; margin-bottom: 0.15rem; }
.tafel { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-gross); box-shadow: var(--schatten); overflow: hidden; }
.termine { width: 100%; border-collapse: collapse; }
.termine th, .termine td { text-align: left; padding: 0.75rem 0.6rem; vertical-align: middle; }
.termine th:first-child, .termine td:first-child { padding-left: 1rem; }
.termine tr + tr td, .termine tbody tr td { border-top: 1px solid var(--linie); }
.termine thead th { font-size: 0.85rem; color: var(--tinte-2); font-weight: 700; background: var(--flaeche-2); }
.termine td:first-child { font-weight: 620; }
.termine .uhr { font-family: var(--display); font-weight: 700; white-space: nowrap; }
.termine .bem { color: var(--tinte-2); font-size: 0.9rem; }
.termine tr.vorbei td { color: var(--tinte-2); opacity: 0.7; }
.termine .plancell { width: 3.4rem; text-align: right; padding: 0.3rem 0.4rem 0.3rem 0; }
.termine .zeile__plan { width: 3rem; height: 3rem; margin-left: auto; }
.fakten { display: grid; margin: 0; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-gross); overflow: hidden; }
.fakten div { display: grid; gap: 0.2rem; padding: 0.85rem 1rem; }
.fakten div + div { border-top: 1px solid var(--linie); }
.fakten dt { font-size: 0.88rem; color: var(--tinte-2); font-weight: 700; }
.fakten dd { margin: 0; max-width: 68ch; overflow-wrap: anywhere; }
@media (min-width: 40rem) { .fakten div { grid-template-columns: 11rem 1fr; gap: 1rem; } }
.quellen { margin-top: 0.75rem; }
.quellen summary { cursor: pointer; font-weight: 650; min-height: 2.75rem; display: flex; align-items: center; }
.quellen li { padding: 0.6rem 0; border-top: 1px solid var(--linie); font-size: 0.92rem; overflow-wrap: anywhere; }
.quellen small { display: block; color: var(--tinte-2); }

/* ---- Kalender (Heatmap) ---------------------------------------------------- */
.kal { margin-top: 0.25rem; }
.kal__kopf, .kal__woche { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.35rem; }
.kal__kopf { font-size: 0.85rem; font-weight: 700; color: var(--tinte-2); padding: 0 0.1rem 0.4rem; }
.kal__kopf span:nth-child(n+6) { color: var(--akzent-text); }
.kal__woche { margin-bottom: 0.35rem; }
.tag { position: relative; display: grid; grid-template-rows: auto 1fr; min-height: 5rem; padding: 0.5rem 0.55rem 0.45rem; border-radius: var(--r); background: var(--s0); color: var(--tinte); text-decoration: none; box-shadow: inset 0 0 0 1px var(--linie); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.tag:hover { box-shadow: inset 0 0 0 2px var(--tanne); }
@media (prefers-reduced-motion: no-preference) { .tag:hover { transform: translateY(-1px); } }
.tag--s1 { background: var(--s1); box-shadow: none; }
.tag--s2 { background: var(--s2); box-shadow: none; }
.tag--s3 { background: var(--s3); color: oklch(99% 0.005 110); box-shadow: none; }
.tag--s4 { background: var(--s4); color: oklch(99% 0.005 110); box-shadow: none; }
@media (prefers-color-scheme: dark) {
html:not([data-theme]) .tag--s3, html:not([data-theme]) .tag--s4 { color: oklch(16% 0.02 168); }
}
html[data-theme="dark"] .tag--s3, html[data-theme="dark"] .tag--s4 { color: oklch(16% 0.02 168); }
.tag--vorbei { opacity: 0.42; }
.tag--heute { outline: 3px solid var(--akzent); outline-offset: 2px; }
.tag__kopf { display: flex; align-items: baseline; gap: 0.3rem; }
.tag__nr { font-weight: 700; font-size: 0.95rem; }
.tag__monat { font-size: 0.78rem; font-weight: 700; opacity: 0.75; }
.tag__anz { align-self: end; justify-self: end; font-family: var(--display); font-weight: 750; font-stretch: 88%; font-size: clamp(1.35rem, 4.6vw, 2.1rem); line-height: 0.9; letter-spacing: -0.04em; }
.tag--s0 .tag__anz { color: var(--tinte-2); font-weight: 500; opacity: 0.6; }
.tag__advent { position: absolute; top: 0.45rem; right: 0.45rem; display: inline-flex; align-items: center; gap: 0.15rem; font-size: 0.78rem; font-weight: 750; }
.tag__advent svg, .kal__legende-advent svg { width: 0.6rem; height: 0.9rem; }
.tag__advent svg path, .kal__legende-advent svg path { fill: var(--akzent); }
.tag__advent svg rect, .kal__legende-advent svg rect { fill: currentColor; }
.tag__plan { position: absolute; left: 0.45rem; bottom: 0.45rem; height: 1.3rem; padding: 0 0.45rem; border-radius: 1rem; background: var(--akzent); color: oklch(99% 0.005 90); font-size: 0.74rem; font-weight: 750; line-height: 1.15rem; }
@media (max-width: 32rem) {
  .kal__kopf, .kal__woche { gap: 0.22rem; }
  .tag { min-height: 3.9rem; padding: 0.3rem 0.32rem; border-radius: var(--r-klein); }
  .tag__nr { font-size: 0.85rem; }
  .tag__monat { display: none; }
  .tag__advent { top: 0.25rem; right: 0.25rem; font-size: 0; gap: 0; }
  .tag__plan { left: 0.25rem; bottom: 0.25rem; font-size: 0; width: 0.55rem; height: 0.55rem; padding: 0; }
}
.kal__legende { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem; margin-top: 0.9rem; font-size: 0.95rem; color: var(--tinte-2); }
.skala { display: inline-flex; gap: 0.2rem; }
.skala i { width: 1.1rem; height: 1.1rem; border-radius: 0.3rem; background: var(--s0); box-shadow: inset 0 0 0 1px var(--linie); }
.skala i.tag--s1 { background: var(--s1); box-shadow: none; }
.skala i.tag--s2 { background: var(--s2); box-shadow: none; }
.skala i.tag--s3 { background: var(--s3); box-shadow: none; }
.skala i.tag--s4 { background: var(--s4); box-shadow: none; }
.kal__legende-advent { display: inline-flex; align-items: center; gap: 0.35rem; margin-left: 0.8rem; color: var(--tinte-2); }
.kal__hinweis { color: var(--tinte-2); font-size: 0.9rem; margin-top: 0.8rem; }

/* ---- Karte ----------------------------------------------------------------- */
.kartenseite main { max-width: none; padding: 0; position: relative; display: flex; flex-direction: column; }
.karte { flex: 1; min-height: calc(100dvh - 9.5rem - var(--tab-h) - env(safe-area-inset-bottom)); background: var(--flaeche-2); position: relative; }
.karte > .karte__karte { position: absolute; inset: 0; width: 100%; height: 100%; }
.karte__leiste { position: absolute; z-index: 5; top: 0.7rem; left: 0.7rem; right: 3.8rem; display: flex; gap: 0.4rem; flex-wrap: wrap; pointer-events: none; }
.karte__leiste > * { pointer-events: auto; }
.karte__leiste button { background: var(--flaeche); color: var(--tinte); border: 0; border-radius: 2rem; padding: 0.5rem 0.95rem; min-height: 2.75rem; font-weight: 650; font-size: 0.9rem; cursor: pointer; box-shadow: var(--schatten-hoch); }
.karte__leiste button[aria-pressed="true"] { background: var(--tinte); color: var(--grund); }
.karte__blatt { position: absolute; z-index: 7; left: 0.7rem; right: 0.7rem; bottom: 0.7rem; max-width: 30rem; background: var(--flaeche); border-radius: var(--r-gross); padding: 1rem 1.1rem; box-shadow: var(--schatten-hoch); }
.karte__blatt h2 { font-size: 1.3rem; }
.karte__blatt p { margin: 0.35rem 0 0.7rem; color: var(--tinte-2); }
.karte__aus { color: var(--tinte-2); padding: 1.2rem; }
.legende { position: absolute; z-index: 6; left: 0.7rem; bottom: 0.7rem; max-width: min(22rem, calc(100% - 1.4rem)); max-height: calc(100% - 6rem); overflow-y: auto; background: var(--flaeche); border-radius: var(--r-gross); box-shadow: var(--schatten-hoch); font-size: 0.95rem; }
.legende summary { cursor: pointer; list-style: none; padding: 0.6rem 1rem; min-height: 2.75rem; display: flex; align-items: center; gap: 0.5rem; font-weight: 700; }
.legende summary::-webkit-details-marker { display: none; }
.legende summary::before { content: ""; width: 0.55rem; height: 0.55rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-135deg) translate(-1px, -1px); transition: transform 0.2s ease; }
.legende[open] summary::before { transform: rotate(45deg); }
.legende ul { padding: 0 1rem 0.4rem; display: grid; gap: 0.45rem; }
.legende li { display: flex; align-items: center; gap: 0.65rem; line-height: 1.3; }
.legende p { margin: 0; padding: 0.3rem 1rem 0.85rem; color: var(--tinte-2); font-size: 0.88rem; }
.karte__blatt:not([hidden]) ~ .legende, .legende:has(~ .karte__blatt:not([hidden])) { display: none; }
.pin { flex: none; width: 1.05rem; height: 1.05rem; border-radius: 50%; border: 2px solid var(--pin-ring); box-shadow: 0 0 0 1px var(--linie); }
.pin--belegt { background: var(--pin-belegt); }
.pin--geprueft { background: var(--pin-geprueft); border: 3px solid var(--pin-geprueft-ring); box-shadow: none; }
.pin--offen { background: var(--pin-offen); }
.pin--vorjahr { background: var(--pin-vorjahr); }
.pin--gruppe { width: 1.6rem; height: 1.6rem; background: var(--pin-gruppe); color: #fff; font-size: 0.7rem; font-weight: 750; display: grid; place-items: center; }
.pin--start { background: var(--pin-ring); border: 4px solid var(--pin-start); box-shadow: none; }
.maplibregl-ctrl-attrib { font-family: var(--sans); font-size: 0.7rem; }
.maplibregl-ctrl-group { border-radius: var(--r) !important; box-shadow: var(--schatten-hoch) !important; }
.maplibregl-ctrl-group button { min-width: 2.75rem; min-height: 2.75rem; }
.maplibregl-ctrl-bottom-left { display: none; }

/* ---- Plan ------------------------------------------------------------------ */
.plan__tag { margin-top: 1.75rem; }
.plan__tag h2 { font-size: 1.35rem; margin-bottom: 0.7rem; }
.plan__warn { display: flex; gap: 0.5rem; align-items: center; padding: 0.55rem 1rem; color: var(--akzent-text); font-size: 0.88rem; background: var(--licht-tint); }
.plan__leer { padding: 2rem 0; max-width: 52ch; }
.plan__aktion { margin-top: 1.5rem; }

/* ---- Textseiten ------------------------------------------------------------ */
.text h2 { margin: 2.2rem 0 0.6rem; }
.text h3 { margin: 1.4rem 0 0.4rem; font-family: var(--sans); font-weight: 700; font-size: 1.02rem; letter-spacing: 0; }
.text ul { list-style: disc; padding-left: 1.3rem; max-width: 68ch; margin-bottom: 1rem; }
.text li { margin-bottom: 0.3rem; }
.text table { border-collapse: collapse; margin: 0.8rem 0 1.2rem; font-size: 0.95rem; background: var(--flaeche); border-radius: var(--r-gross); overflow: hidden; box-shadow: inset 0 0 0 1px var(--linie); }
.text th, .text td { text-align: left; padding: 0.7rem 1rem; vertical-align: top; }
.text tr + tr th, .text tr + tr td { border-top: 1px solid var(--linie); }
.zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.75rem; margin: 1.25rem 0; }
.zahlen div { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-gross); padding: 0.9rem 1rem; }
.zahlen b { display: block; font-family: var(--display); font-weight: 750; font-stretch: 90%; letter-spacing: -0.04em; font-size: 2.4rem; line-height: 1; }
.zahlen span { color: var(--tinte-2); font-size: 0.9rem; }

/* ---- Fuß ------------------------------------------------------------------- */
.fuss { border-top: 1px solid var(--linie); padding: 1.5rem 1rem 2rem; color: var(--tinte-2); font-size: 0.95rem; }
.fuss__innen { max-width: 68rem; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; align-items: center; }
.fuss a { color: var(--tinte-2); min-height: 2.5rem; display: inline-flex; align-items: center; }
.fuss p { margin: 0; flex: 1 1 100%; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .tabs, .kopf nav, .leiste, .standort { display: none; } .zeile__plan { display: none; } body { background: #fff; color: #000; } }
[hidden] { display: none !important; }

/* ---- Kartenfilter ---------------------------------------------------------- */
.karte__leiste { right: 3.9rem; flex-wrap: nowrap; align-items: center; }
.karte__tage { display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; padding: 0.15rem 0.2rem 0.6rem; margin: -0.15rem -0.2rem -0.6rem; min-width: 0; flex: 0 1 auto; }
.karte__tage::-webkit-scrollbar { display: none; }
.karte__tage button { flex: none; white-space: nowrap; }
.karte__leiste .karte__filterknopf { flex: none; display: inline-flex; align-items: center; gap: 0.4rem; background: var(--tanne); color: var(--flaeche); }
@media (prefers-color-scheme: dark) {
html:not([data-theme]) .karte__leiste .karte__filterknopf { color: oklch(17% 0.02 168); }
}
html[data-theme="dark"] .karte__leiste .karte__filterknopf { color: oklch(17% 0.02 168); }
.karte__filterknopf[aria-expanded="true"] { outline: 3px solid color-mix(in oklch, var(--tanne) 30%, transparent); }
.karte__aktiv { min-width: 1.3rem; height: 1.3rem; padding: 0 0.35rem; border-radius: 1rem; background: var(--akzent); color: oklch(99% 0.005 90); font-size: 0.74rem; font-weight: 750; line-height: 1.3rem; text-align: center; }
.karte__panel { position: absolute; z-index: 8; left: 0.7rem; right: 0.7rem; bottom: 0.7rem; max-height: calc(100% - 5rem); overflow-y: auto; background: var(--flaeche); border-radius: var(--r-gross); box-shadow: var(--schatten-hoch); padding: 1rem 1.1rem 1.1rem; display: grid; gap: 1rem; }
@media (min-width: 48rem) { .karte__panel { left: auto; top: 4.4rem; bottom: auto; width: 23rem; right: 3.9rem; } }
.karte__panelkopf { display: flex; justify-content: space-between; align-items: center; }
.karte__panelkopf h2 { font-size: 1.3rem; }
.knopf--rund { width: 2.75rem; min-height: 2.75rem; padding: 0; }
.karte__panel fieldset { border: 0; margin: 0; padding: 0; }
.karte__panel legend { font-size: 0.78rem; font-weight: 700; color: var(--tinte-2); margin-bottom: 0.5rem; padding: 0; }
.karte__arten { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.wahl { position: relative; }
.wahl input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wahl span { display: inline-flex; align-items: center; min-height: 2.6rem; padding: 0.45rem 0.9rem; border-radius: 2rem; border: 1px solid var(--linie); background: var(--grund); font-weight: 600; font-size: 0.9rem; }
.wahl input:checked + span { background: var(--tinte); color: var(--grund); border-color: var(--tinte); }
.wahl input:focus-visible + span { outline: 3px solid var(--akzent); outline-offset: 2px; }
.karte__haken { display: grid; gap: 0.1rem; }
.karte__zahl { position: absolute; z-index: 5; top: 4.1rem; left: 0.7rem; margin: 0; padding: 0.3rem 0.75rem; border-radius: 2rem; background: var(--tinte); color: var(--grund); font-size: 0.9rem; font-weight: 700; box-shadow: var(--schatten); }
.karte__panel:not([hidden]) ~ .legende, .karte__panel:not([hidden]) ~ .karte__zahl { display: none; }


/* ---- Verständlichkeit und Lesbarkeit ------------------------------------------ */
html.gross { font-size: 118.75%; }
.zeile__plantext { font-size: 0.78rem; font-weight: 650; line-height: 1; }
.zeile__plan[aria-pressed="true"] .zeile__plantext.ico-an { color: var(--tanne); display: block; }
.zeile__plan .zeile__plantext.ico-an { display: none; }
.zeile__plan[aria-pressed="true"] .zeile__plantext.ico-aus { display: none; }
.termine .zeile__plan { width: 3.2rem; height: 3.2rem; }
.termine th.plancell { text-align: right; padding-right: 0.6rem; }
.kopf__innen { position: relative; }
.kopf__hilfe { position: absolute; top: 0.85rem; right: 1rem; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; padding: 0.35rem 0.85rem 0.35rem 0.4rem; border-radius: 2rem; background: oklch(100% 0 0 / 0.1); color: var(--auf-dunkel); text-decoration: none; font-weight: 650; font-size: 0.95rem; }
.kopf__hilfe:hover, .kopf__hilfe[aria-current="page"] { background: oklch(100% 0 0 / 0.2); }
.kopf__fragezeichen { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--licht); color: oklch(20% 0.035 160); font-family: var(--display); font-weight: 800; }
.marke { padding-right: 6.5rem; }
@media (min-width: 48rem) {
  .kopf__hilfe { position: static; order: 2; }
  .marke { padding-right: 0; }
  .kopf nav.haupt { order: 1; }
}
@media (max-width: 22rem) { .kopf__hilfe { font-size: 0; gap: 0; padding: 0.35rem; } .marke { padding-right: 3.5rem; } }
.einfuehrung { background: var(--tanne-tint); border-radius: var(--r-gross); padding: 1.1rem 1.2rem 0.9rem; margin: 0 0 1.25rem; }
.einfuehrung h2 { font-size: clamp(1.2rem, 4vw, 1.45rem); margin-bottom: 0.6rem; }
.schritte { list-style: none; counter-reset: schritt; padding: 0; margin: 0 0 0.6rem; display: grid; gap: 0.55rem; max-width: 66ch; }
.schritte li { counter-increment: schritt; position: relative; padding-left: 2.4rem; min-height: 1.8rem; }
.schritte li::before { content: counter(schritt); position: absolute; left: 0; top: 0; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--tanne); color: var(--flaeche); font-family: var(--display); font-weight: 750; display: grid; place-items: center; font-size: 0.95rem; }
@media (prefers-color-scheme: dark) {
html:not([data-theme]) .schritte li::before { color: oklch(17% 0.02 168); }
}
html[data-theme="dark"] .schritte li::before { color: oklch(17% 0.02 168); }
.einfuehrung__fuss { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; justify-content: space-between; margin: 0; }
.einfuehrung__fuss a { font-weight: 650; min-height: 2.75rem; display: inline-flex; align-items: center; }
.standort__hilfe { font-size: 0.85rem; color: var(--tinte-2); margin-top: -0.15rem; }
.erklaerung { margin: -0.2rem 0 0.9rem; }
.erklaerung summary { cursor: pointer; display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.75rem; font-weight: 650; color: var(--akzent-text); list-style: none; }
.erklaerung summary::-webkit-details-marker { display: none; }
.erklaerung[open] summary { margin-bottom: 0.4rem; }
.zeichen { display: grid; gap: 0; margin: 0 0 1rem; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-gross); overflow: hidden; max-width: 46rem; }
.zeichen div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.9rem; align-items: center; padding: 0.75rem 1rem; }
.zeichen div + div { border-top: 1px solid var(--linie); }
.zeichen dt { display: flex; align-items: center; gap: 0.4rem; font-weight: 650; }
.zeichen dd { margin: 0; }
.zeichen__merken { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 1.5px solid var(--linie); }
.zeichen__merken .ico { width: 1.1rem; height: 1.1rem; }
.zeichen__km { font-weight: 700; }
@media (max-width: 30rem) { .zeichen div { grid-template-columns: 1fr; gap: 0.3rem; } }
.aktionen__hilfe { color: var(--tinte-2); font-size: 0.95rem; margin: 0.7rem 0 0; max-width: 66ch; }
.legende__tipp { padding: 0 1rem 0.5rem !important; color: var(--tinte) !important; font-size: 0.92rem !important; }
.fuss__schrift { min-height: 2.6rem; padding: 0.4rem 1rem; }
.hilfe section { margin-top: 2rem; }
.hilfe section h2 { margin-top: 0; padding-top: 0.5rem; scroll-margin-top: 1rem; }
.hilfe__inhalt { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-gross); padding: 1rem 1.2rem; max-width: 40rem; }
.hilfe__inhalt ol { margin: 0; padding-left: 1.4rem; display: grid; gap: 0.25rem; list-style: decimal; }
.hilfe__inhalt a { display: inline-flex; min-height: 2.4rem; align-items: center; font-weight: 600; }
.text .schritte { padding-left: 0; list-style: none; }

/* Plan ausdrucken: nur der Plan, gut lesbar */
@media print {
  .zeilen, .zeile, .zeile__link { background: #fff !important; color: #000 !important; }
  .kopf, .fuss, .tabs, .skip, .einfuehrung, [data-aktionen], [data-aktionen-hilfe], .zeile__plan, .untertitel { display: none !important; }
  main { padding: 0; max-width: none; }
  .zeilen { box-shadow: none; border: 1px solid #999; }
  .zeile__link { color: #000; }
  .plan__warn { background: none; color: #000; }
  a { color: #000; text-decoration: none; }
}

/* Große Schrift: nichts darf seitlich überlaufen */
.leiste { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kerze { min-width: 0; }
.kerze__text { min-width: 0; text-align: center; }
.kerze__nr, .kerze__tag { white-space: normal; overflow-wrap: anywhere; }
html.gross .kerze__nr { font-size: 0.82rem; }
html.gross .kerze__tag { font-size: 0.74rem; }
html.gross .marke__name { font-size: 1.05rem; }
html.gross .tabs a { font-size: 0.72rem; }
html.gross .zeile__link { grid-template-columns: 5.8rem minmax(0, 1fr); }
html.gross .standort__feld--klein { flex: 1 1 9rem; }
main, .kopf__innen { min-width: 0; }
body { overflow-x: clip; }


/* ---- Darstellung: Hell, Dunkel, Automatisch -------------------------------- */
.thema { display: inline-flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; border: 0; margin: 0; padding: 0; }
.thema legend { float: left; padding: 0; margin-right: 0.6rem; font-weight: 650; color: var(--tinte); line-height: 2.75rem; }
.thema__knoepfe { display: inline-flex; border: 1px solid var(--linie); border-radius: 2rem; padding: 0.2rem; background: var(--flaeche); gap: 0.15rem; }
.thema__knoepfe button { min-height: 2.5rem; padding: 0.4rem 0.95rem; border: 0; border-radius: 2rem; background: transparent; color: var(--tinte-2); font-weight: 650; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; }
.thema__knoepfe button:hover { background: var(--flaeche-2); color: var(--tinte); }
.thema__knoepfe button[aria-pressed="true"] { background: var(--tinte); color: var(--grund); }
.thema__knoepfe .ico { width: 1.05rem; height: 1.05rem; }
.fuss__einstellungen { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; margin-bottom: 0.4rem; }
@media (max-width: 30rem) { .thema__knoepfe button .thema__text { font-size: 0.9rem; } .thema__knoepfe button { padding: 0.4rem 0.7rem; } }

/* Adventswochenenden: Pfeil rechts, nicht unter dem Text */
.zeile__link--pfeil { grid-template-columns: 6.6rem minmax(0, 1fr) auto; align-items: center; }
.zeile__link--pfeil > .zeile__zeit { grid-row: auto; align-self: center; padding-top: 0; }
.zeile__link--pfeil > .zeile__text { align-self: center; }
.zeile__pfeil { color: var(--tinte-2); width: 1.4rem; height: 1.4rem; margin-right: 0.6rem; }
.zeile__link--pfeil:hover .zeile__pfeil { color: var(--tanne); transform: translateX(2px); }
@media (prefers-reduced-motion: no-preference) { .zeile__pfeil { transition: transform 0.15s ease, color 0.15s ease; } }
@media (max-width: 30rem) { .zeile__link--pfeil { grid-template-columns: 5.6rem minmax(0, 1fr) auto; } }

/* Kopfzeile ab 48rem: Name, Navigation und Hilfe teilen sich eine Zeile */
@media (min-width: 48rem) {
  .kopf__innen { column-gap: 1rem; flex-wrap: wrap; }
  .marke { flex: 1 1 12rem; min-width: 0; }
  .marke__name { font-size: clamp(1.1rem, 1.9vw, 1.35rem); }
  .kopf nav.haupt { flex: none; margin-left: 0; }
  .kopf__hilfe { flex: none; }
}
