/* trailstatus.de
   Idee: Die Seite ist die Anzeigetafel an der Talstation, gesetzt auf Wegweiser-Gelb.
   Eine Schrift (Zilla Slab, wie gefräste Holzschilder), drei Flächenfarben, keine Linien,
   keine Schatten, keine Verläufe. Flächen werden über Tonstufen getrennt. */

@font-face { font-family: "Zilla Slab"; src: url("../fonts/zilla-slab-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Zilla Slab"; src: url("../fonts/zilla-slab-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Zilla Slab"; src: url("../fonts/zilla-slab-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Zilla Slab"; src: url("../fonts/zilla-slab-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Flächen */
  --yellow: #f7c600;
  --yellow-2: #ebba00;
  --paper: #ffffff;
  --paper-2: #eef1f2;
  --paper-3: #e1e6e8;
  --hover: #fff3c4;
  --ink: #0d1b21;
  --ink-2: #1a2d35;
  --ink-3: #24404a;

  /* Text */
  --text: var(--ink);
  --text-soft-yellow: #4a3e00;
  --text-soft: #4c585e;
  --board-text: #eef3f4;
  --board-soft: #a9b6bb;

  /* Status: Textfarbe auf Weiß / Lampe auf der Tafel */
  --open: #15753f;      --open-lamp: #2cd36a;
  --caution: #8a5a00;   --caution-lamp: #ffb21e;
  --closed: #c22a20;    --closed-lamp: #ff4b3a;
  --unknown: #66737a;   --unknown-lamp: #97a3a8;
  --ok-bg: #dff3e6;     --err-bg: #fde3df;

  /* Schwierigkeit wie auf den Schildern im Park */
  --d-green: #1b7a3d;
  --d-blue: #1c5fc4;
  --d-red: #d2302a;
  --d-black: #0d1b21;

  --font: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --font-code: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace; /* taste-skill-ignore: nur für echte Code-Blöcke */

  /* Fünf Größen, mehr nicht */
  --s-small: 0.875rem;
  --s-body: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --s-lead: clamp(1.25rem, 1.08rem + 0.7vw, 1.625rem);
  --s-head: clamp(2rem, 1.35rem + 2.7vw, 3.5rem);
  --s-display: clamp(2.75rem, 1.4rem + 5vw, 5.75rem);

  --m: clamp(16px, 3vw, 32px);
  --wrap: 1320px;
  --gap-section: clamp(72px, 10vw, 160px);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--yellow);
  color: var(--text);
  font: 400 var(--s-body)/1.5 var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-weight: 600; line-height: 1.02; letter-spacing: -0.025em; margin: 0; text-wrap: balance; overflow-wrap: anywhere; min-width: 0; }
h1 { font-size: var(--s-display); }
h2 { font-size: var(--s-head); }
h3 { font-size: var(--s-lead); letter-spacing: -0.01em; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.f-ink :focus-visible, .board :focus-visible, .foot :focus-visible { outline-color: var(--yellow); }
::selection { background: var(--ink); color: var(--yellow); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--m); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--yellow); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.soft { color: var(--text-soft); }
.f-yellow .soft, .head .soft { color: var(--text-soft-yellow); }
.small { font-size: var(--s-small); }

/* ---------- Flächen ---------- */
.f-yellow { background: var(--yellow); }
.f-white { background: var(--paper); }
.f-tone { background: var(--paper-2); }
.f-ink { background: var(--ink); color: var(--board-text); }
.f-ink .soft { color: var(--board-soft); }
.section { padding-block: var(--gap-section); }

/* ---------- Kopfleiste ---------- */
.bar { background: var(--yellow); }
.bar__inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.6rem; letter-spacing: -0.03em; margin-right: auto; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; font-weight: 500; padding: 6px 0; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; }
.bar .btn { min-height: 44px; }
@media (max-width: 860px) {
  .bar__inner { flex-wrap: wrap; gap: 0 16px; padding-top: 10px; }
  .nav { order: 3; width: calc(100% + 2 * var(--m)); margin-inline: calc(-1 * var(--m)); padding: 4px var(--m) 10px; overflow-x: auto; scrollbar-width: none; gap: 20px; }
}

/* ---------- Buttons: eckig, ein Füllton ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border: 0; border-radius: 0;
  background: var(--ink); color: var(--yellow);
  font: 600 var(--s-body)/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 140ms var(--ease), transform 140ms var(--ease);
}
.btn:hover { background: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: var(--yellow-2); }
.btn--tone { background: var(--paper-2); color: var(--ink); }
.btn--tone:hover { background: var(--paper-3); }
.btn--small { min-height: 40px; padding: 0 14px; font-size: var(--s-small); }

/* ---------- Lampen, Status, Schilder ---------- */
.lamp { display: inline-block; flex: none; width: 13px; height: 13px; border-radius: 50%; background: var(--unknown-lamp); }
.lamp--open { background: var(--open-lamp); }
.lamp--caution { background: var(--caution-lamp); }
.lamp--closed { background: var(--closed-lamp); }
.lamp--lg { width: 24px; height: 24px; }
.state { font-weight: 600; }
.state--open { color: var(--open); }
.state--caution { color: var(--caution); }
.state--closed { color: var(--closed); }
.state--unknown { color: var(--unknown); }
.plate { display: inline-block; padding: 3px 9px 2px; font: 600 var(--s-small)/1.25 var(--font); color: var(--paper); white-space: nowrap; }
.plate--green { background: var(--d-green); }
.plate--blue { background: var(--d-blue); }
.plate--red { background: var(--d-red); }
.plate--black { background: var(--d-black); }
.f-ink .plate--black, .board .plate--black { background: var(--paper); color: var(--ink); }

/* Absperrband: die einzige Ornamentik, oben auf Tafel und Ticket */
.stripe { display: flex; height: 40px; overflow: hidden; width: 100%; min-width: 0; }
.stripe span { flex: 0 0 28px; background: var(--yellow); }
.stripe span:nth-child(even) { background: var(--ink); }
.stripe--on-yellow span { background: var(--ink); }
.stripe--on-yellow span:nth-child(even) { background: var(--paper); }

/* ---------- Startseite: Tafel neben dem Foto ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 0 12px 12px; align-items: start; }
.board { background: var(--ink); color: var(--board-text); }
.board__body { padding: clamp(24px, 3.4vw, 48px); }
.board h1 { color: var(--board-text); font-size: clamp(2.75rem, 1rem + 4.4vw, 5.25rem); line-height: .98; }
.board__answer { font-size: var(--s-lead); line-height: 1.35; margin: 20px 0 28px; max-width: 30ch; }
.board__answer strong { color: var(--yellow); }
.ask { display: flex; max-width: 34rem; }
.ask input {
  flex: 1; min-width: 0; height: 56px; padding: 0 16px; border: 0; border-radius: 0;
  background: var(--paper); color: var(--ink); font: 500 var(--s-body) var(--font);
}
.ask input::placeholder { color: var(--unknown); }
.ask .btn { height: 56px; }
.board__list { list-style: none; margin: 28px 0 0; padding: 0; }
.board__row a { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 13px 14px; margin-inline: -14px; text-decoration: none; }
.board__row:nth-child(odd) a { background: var(--ink-2); }
.board__row a:hover { background: var(--ink-3); }
.board__name { display: block; font-weight: 600; font-size: var(--s-lead); line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board__park { display: block; color: var(--board-soft); font-size: var(--s-small); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board__state { text-align: right; font-weight: 600; line-height: 1.2; }
.board__state small { display: block; font-weight: 400; color: var(--board-soft); font-size: var(--s-small); }
.board__empty { padding: 14px 0; color: var(--board-soft); }
.board__links { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 26px; }
.board__links a { font-weight: 500; }

.hero__photo { position: sticky; top: 12px; height: calc(100svh - 24px); min-height: 520px; overflow: hidden; background: var(--ink-2); }
.hero__photo figure { margin: 0; position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero__photo figure.is-on { opacity: 1; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo figcaption { position: absolute; left: 0; bottom: 0; background: var(--ink); color: var(--board-soft); font-size: var(--s-small); padding: 6px 12px; max-width: 100%; }
.hero__photo figcaption a { color: var(--board-text); }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__photo { order: -1; position: relative; top: 0; height: 48svh; min-height: 300px; }
  .hero .board { margin-top: -24px; position: relative; }
  .board__links { gap: 8px 18px; }
}

/* ---------- Gedruckter Bogen mit gewellter Kante ---------- */
.sheet {
  --scallop: 14px;
  background: var(--paper); max-width: 760px; margin-inline: auto;
  padding: calc(var(--scallop) + clamp(32px, 5vw, 64px)) clamp(22px, 5vw, 64px);
  -webkit-mask: radial-gradient(var(--scallop) at 50% 0, #0000 98%, #000) 50% 0 / calc(2 * var(--scallop)) 51% repeat-x, /* taste-skill-ignore: Maske der Wellenkante, kein sichtbarer Verlauf */
                radial-gradient(var(--scallop) at 50% 100%, #0000 98%, #000) 50% 100% / calc(2 * var(--scallop)) 51% repeat-x; /* taste-skill-ignore: Maske der Wellenkante, kein sichtbarer Verlauf */
          mask: radial-gradient(var(--scallop) at 50% 0, #0000 98%, #000) 50% 0 / calc(2 * var(--scallop)) 51% repeat-x, /* taste-skill-ignore: Maske der Wellenkante, kein sichtbarer Verlauf */
                radial-gradient(var(--scallop) at 50% 100%, #0000 98%, #000) 50% 100% / calc(2 * var(--scallop)) 51% repeat-x; /* taste-skill-ignore: Maske der Wellenkante, kein sichtbarer Verlauf */
}
.sheet--wide { max-width: 980px; }
.sheet > h2 { text-align: center; }
.sheet__note { text-align: center; margin: 14px auto 0; max-width: 48ch; text-wrap: balance; }
.sheet__group { margin-top: 52px; }
.sheet__group > h3 { text-align: center; margin-bottom: 18px; }
.sheet__group > h3 a { text-decoration: none; }
.sheet__group > h3 a:hover { text-decoration: underline; }
.sheet__items { list-style: none; margin: 0 auto; padding: 0; max-width: 560px; display: grid; gap: 14px; }
.sheet__item a { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 4px 14px; align-items: baseline; text-decoration: none; }
.sheet__item a:hover .sheet__name { text-decoration: underline; }
.sheet__item .lamp { align-self: center; }
.sheet__name { font-weight: 600; }
.sheet__count { text-align: right; white-space: nowrap; }
.sheet__sub { grid-column: 2 / -1; color: var(--text-soft); font-size: var(--s-small); margin-top: -2px; }
.sheet__end { text-align: center; margin: 52px 0 0; }

/* ---------- Karten-Teller mit Tabs ---------- */
.plate-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 88svh; }
.plate-split__img { display: grid; place-items: center; align-content: center; padding: 40px; }
.plate-split__img img { width: 100%; max-width: 640px; aspect-ratio: 1; object-fit: cover; }
.plate-split__text { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(32px, 5vw, 80px) var(--m) clamp(32px, 5vw, 80px) 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.tabs a { font: 500 var(--s-lead)/1.3 var(--font); color: var(--text-soft); text-decoration: none; }
.tabs a:hover { color: var(--ink); }
.tabs [aria-selected="true"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.plate-split h2 { margin-bottom: 24px; }
.plate-split p { max-width: 38ch; }
.cells { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cells a { display: flex; align-items: center; padding: 0 20px; min-height: 72px; text-decoration: none; font-weight: 600; background: var(--paper-2); }
.cells a:first-child { background: var(--ink); color: var(--yellow); }
.cells a:hover { background: var(--yellow); color: var(--ink); }
.map-credit { font-size: var(--s-small); color: var(--text-soft); margin: 10px 0 0; text-align: center; }
@media (max-width: 900px) {
  .plate-split { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .plate-split__img { padding: 16px; }
  .plate-split__text { padding: 8px var(--m) 48px; }
  .cells { grid-template-columns: minmax(0, 1fr); }
  .cells a { min-height: 60px; }
}

/* ---------- Titel, Notiz, Faktenreihe ---------- */
.intro__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; align-items: end; }
.intro__top h2 { grid-column: 1 / 7; }
.intro__top p { grid-column: 9 / 13; margin: 0; }
.facts { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 32px; margin-top: clamp(64px, 8vw, 120px); }
.facts + .facts { margin-top: 64px; }
.fact { flex: 1 1 200px; max-width: 280px; }
.fact__big { display: flex; align-items: center; gap: 12px; font-size: var(--s-lead); font-weight: 500; line-height: 1.1; margin-bottom: 8px; }
.fact p { margin: 0; font-size: var(--s-small); }
@media (max-width: 900px) {
  .intro__top { display: block; }
  .intro__top p { margin-top: 16px; max-width: 40em; }
}
@media (max-width: 760px) {
  .fact { flex-basis: 40%; }
}

/* ---------- Fragen ---------- */
.faq { display: grid; gap: 40px; margin-top: 56px; }
.faq__item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px 48px; }
.faq__item h3 { font-size: var(--s-lead); }
.faq__item p { margin: 0; max-width: 62ch; }
@media (max-width: 760px) { .faq__item { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Satz mit Lücke (Betreiber) ---------- */
.blank { font-size: clamp(1.5rem, 1rem + 2vw, 2.25rem); line-height: 1.55; font-weight: 500; max-width: 30em; margin: 0; }
.blank input {
  font: inherit; width: 9em; max-width: 100%; height: 1.4em; padding: 0 .3em; border: 0; border-radius: 0;
  background: var(--paper-2); color: var(--ink); vertical-align: baseline;
}
.blank input::placeholder { color: var(--unknown); }
.blank button { font: inherit; height: 1.4em; padding: 0 .35em; border: 0; border-radius: 0; background: var(--ink); color: var(--yellow); cursor: pointer; }
.blank button:hover { background: var(--ink-2); }
.blank__note { margin-top: 18px; max-width: 52ch; }

/* ---------- Unterseiten: gelber Kopf, weiße Fläche ---------- */
.head { padding-block: 8px clamp(40px, 6vw, 80px); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 clamp(28px, 4vw, 48px); padding: 0; font-size: var(--s-small); }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs a { text-decoration-thickness: 1px; }
.head h1 { max-width: 18ch; font-size: clamp(2.25rem, 1.1rem + 4.6vw, 5.25rem); }
.head__answer { font-size: var(--s-lead); line-height: 1.35; margin: 22px 0 0; max-width: 40ch; }
.head__answer .lamp { vertical-align: 0.05em; margin-right: 8px; }
.head__sub { margin: 14px 0 0; font-size: var(--s-lead); }
.head__sub a { font-weight: 600; }
.head__aside { margin: 22px 0 0; }
.page { padding-block: clamp(48px, 7vw, 96px) var(--gap-section); }

/* ---------- Listen wie Tafelzeilen, getrennt durch Tonstufen ---------- */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li:nth-child(odd) > a { background: var(--paper-2); }
.row { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px; text-decoration: none; }
.rows > li > a.row:hover { background: var(--hover); }
.row__name { display: block; font-weight: 600; font-size: var(--s-lead); line-height: 1.12; }
.row__meta { display: block; color: var(--text-soft); font-size: var(--s-small); margin-top: 2px; }
.row__side { display: flex; align-items: center; gap: 18px; }
.row__state { min-width: 8rem; text-align: right; line-height: 1.2; }
.row__state small { display: block; font-weight: 400; color: var(--text-soft); font-size: var(--s-small); }
@media (max-width: 640px) {
  .row { grid-template-columns: 14px minmax(0, 1fr); align-items: start; }
  .row .lamp { margin-top: 8px; }
  .row__side { grid-column: 2; justify-content: space-between; }
  .row__state { min-width: 0; }
}

.filters { display: grid; gap: 14px; margin-top: 32px; }
.seg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.seg__label { font-weight: 600; min-width: 7.5rem; }
.seg a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; background: var(--yellow-2); text-decoration: none; font-weight: 500; }
.seg a:hover { background: var(--paper); }
.seg a[aria-current="true"] { background: var(--ink); color: var(--yellow); }
@media (max-width: 640px) { .seg__label { flex-basis: 100%; } }
.count { margin: 0 0 16px; font-weight: 500; }
.empty { padding: 32px 16px; background: var(--paper-2); }
.empty p { margin: 0 0 .4em; }
.more { margin-top: 28px; }

/* ---------- Detailseiten ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: clamp(32px, 5vw, 72px); }
@media (max-width: 960px) { .detail { grid-template-columns: minmax(0, 1fr); } }
.status-card { margin-bottom: 40px; }
.status-card .board__body { display: grid; gap: 14px; }
.status-card__top { display: flex; align-items: center; gap: 16px; }
.status-card__label { font-size: var(--s-head); font-weight: 600; line-height: 1; margin: 0; letter-spacing: -0.02em; }
.status-card p { margin: 0; }
.status-card__note { background: var(--ink-2); padding: 16px 18px; }
.status-card__note strong { display: block; color: var(--yellow); }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; margin: 0 0 72px; padding: 20px 24px; background: var(--paper-2); }
.tiles div { padding: 4px 0; }
.tiles dt { font-size: var(--s-small); color: var(--text-soft); }
.tiles dd { margin: 6px 0 0; font-size: var(--s-lead); font-weight: 600; line-height: 1.1; }
@media (max-width: 600px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.prose { max-width: 40em; }
.prose h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); margin: 1.4em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.4em 0 .4em; }
.prose code, pre.code { font-family: var(--font-code); font-size: .88em; }
.prose code { background: var(--paper-2); padding: 1px 5px; }
pre.code { margin: 0 0 24px; padding: 18px 20px; overflow-x: auto; background: var(--ink); color: var(--board-text); line-height: 1.55; }
.h2-gap { margin: 88px 0 24px; }
.prose > h2:first-child { padding-top: 8px; }

.map { height: 400px; background: var(--paper-2); margin: 0; z-index: 0; }
.map--full { height: min(72svh, 760px); }
.map-note { font-size: var(--s-small); color: var(--text-soft); margin: 10px 0 48px; }

.side-block { background: var(--paper-2); padding: 24px; margin-bottom: 8px; }
.side-block h2 { font-size: var(--s-lead); margin-bottom: 12px; }
.side-block p:last-child { margin-bottom: 0; }
.side-block--ink { background: var(--ink); color: var(--board-text); }
.side-block--ink a { color: var(--yellow); font-weight: 600; }
.siblings { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.siblings a { display: flex; align-items: center; gap: 12px; padding: 8px 0; text-decoration: none; }
.siblings a:hover span:last-child { text-decoration: underline; }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 18px; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { display: block; font-size: var(--s-small); color: var(--text-soft); margin-top: 6px; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 0;
  background: var(--paper); color: var(--ink); font: 400 var(--s-body) var(--font);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:not([type="checkbox"]):not([type="radio"]):focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--yellow); outline-offset: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choice { display: flex; flex-wrap: wrap; gap: 6px; }
.choice label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; background: var(--paper); font-weight: 500; cursor: pointer; margin: 0; }
.choice input { width: auto; min-height: 0; accent-color: var(--ink); }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--ink); }
.choice label:has(input:checked) { background: var(--ink); color: var(--yellow); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: unsichtbares Hilfsfeld */
.notice { padding: 16px 18px; background: var(--ok-bg); margin-bottom: 20px; }
.notice--error { background: var(--err-bg); }
.report { background: var(--paper-2); padding: clamp(20px, 3vw, 32px); }
.report summary { cursor: pointer; font-size: var(--s-lead); font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.report summary::-webkit-details-marker { display: none; }
.report summary::after { content: "+"; font-weight: 700; }
.report[open] summary::after { content: "×"; }
.report[open] summary { margin-bottom: 18px; }

/* ---------- Ticket (Betreiber) ---------- */
.ticket { background: var(--paper); clip-path: polygon(0 0, 100% 0, 100% calc(50% - 18px), calc(100% - 18px) 50%, 100% calc(50% + 18px), 100% 100%, 0 100%, 0 calc(50% + 18px), 18px 50%, 0 calc(50% - 18px)); }
.ticket__body { padding: clamp(28px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
.ticket__stub { border-left: 6px dotted var(--yellow); padding-left: clamp(24px, 4vw, 56px); }
.ticket h2 { margin-bottom: 24px; }
.ticket ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 22px; }
.ticket ol h3 { margin-bottom: 4px; }
.ticket ol p { margin: 0; }
@media (max-width: 860px) { .ticket__body { grid-template-columns: minmax(0, 1fr); } .ticket__stub { border-left: 0; border-top: 6px dotted var(--yellow); padding: 28px 0 0; } }
.embed-preview { border: 0; width: 100%; height: 260px; background: var(--paper); }

/* ---------- API-Doku ---------- */
.endpoint { background: var(--paper-2); padding: 22px 24px; margin-bottom: 6px; }
.endpoint h3 { font-family: var(--font-code); font-size: 1.05rem; letter-spacing: 0; font-weight: 600; display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.endpoint h3 span { background: var(--ink); color: var(--yellow); padding: 2px 8px; font-size: .85rem; }
.params { width: 100%; border-collapse: collapse; font-size: var(--s-small); margin-top: 10px; }
.params th, .params td { text-align: left; padding: 8px 12px 8px 8px; vertical-align: top; }
.params th { color: var(--text-soft); font-weight: 600; }
.params tr:nth-child(even) td { background: var(--paper-3); }
.params td:first-child { font-family: var(--font-code); white-space: nowrap; }
.table-scroll { overflow-x: auto; }

/* ---------- Fuß: Foto und Menü ---------- */
.foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 88svh; background: var(--ink); color: var(--board-text); }
.foot__photo { position: relative; overflow: hidden; margin: 0; }
.foot__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.foot__photo figcaption { position: absolute; left: 0; bottom: 0; background: var(--ink); color: var(--board-soft); font-size: var(--s-small); padding: 6px 12px; max-width: 100%; }
.foot__photo figcaption a, .photo-band figcaption a { color: inherit; }
.foot__menu { padding: clamp(40px, 6vw, 80px) var(--m) 28px clamp(28px, 5vw, 80px); display: flex; flex-direction: column; }
.foot__brand { font-weight: 700; font-size: 1.4rem; letter-spacing: -0.03em; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; }
.foot__brand svg { width: 28px; height: 28px; }
.foot__links { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 10px; }
.foot__links a { font-size: clamp(1.6rem, 1rem + 1.8vw, 2.5rem); font-weight: 600; letter-spacing: -0.02em; text-decoration: none; display: inline-block; transition: transform 160ms var(--ease), color 160ms; }
.foot__links a:hover { transform: translateX(12px); color: var(--yellow); }
.foot__small { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 56px; font-size: var(--s-small); color: var(--board-soft); }
.foot__small a { color: var(--board-text); }
.foot__small p { margin: 0 0 6px; }
.foot__legal { margin-top: auto; padding-top: 40px; font-size: var(--s-small); color: var(--board-soft); }
.foot__legal a { color: var(--board-soft); }
@media (max-width: 860px) {
  .foot { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .foot__photo { height: 46svh; }
  .foot__small { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Fehler, Wartung ---------- */
.error-page { padding-block: clamp(64px, 12vw, 160px); }
.error-page h1 { max-width: 14ch; }
.error-page p { font-size: var(--s-lead); max-width: 34ch; margin-top: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

/* ---------- Leaflet ---------- */
.leaflet-container { font: 400 1rem/1.4 var(--font); }
.leaflet-control-attribution { font-size: 13px !important; }
.leaflet-tile-pane { filter: saturate(.4) brightness(1.06) contrast(.94); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { border-radius: 0; box-shadow: none; } /* taste-skill-ignore: Schatten wird hier entfernt */
.leaflet-popup-content { margin: 14px 16px; }
.map-pop strong { display: block; font-size: 1.15rem; line-height: 1.15; }
.map-pop span { display: block; color: var(--text-soft); margin: 2px 0 8px; }
.map-pin { display: block; width: 20px; height: 20px; border-radius: 50%; border: 4px solid var(--ink); background: var(--unknown-lamp); }
.map-pin--open { background: var(--open-lamp); }
.map-pin--caution { background: var(--caution-lamp); }
.map-pin--closed { background: var(--closed-lamp); }
.legend-row { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 18px 0; }
.legend-row span { display: inline-flex; align-items: center; gap: 10px; }

/* ---------- Bewegung: Teile eines Abschnitts kommen nacheinander ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* app.js setzt .rise nur auf Teile unterhalb des sichtbaren Bereichs, ohne JS bleibt alles sichtbar */
  .rise { opacity: 0; transform: translateY(24px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); transition-delay: var(--d, 0ms); }
  .rise.is-in { opacity: 1; transform: none; }
  .board__row { animation: flip 460ms var(--ease) backwards; }
  .board__row:nth-child(2) { animation-delay: 60ms; } .board__row:nth-child(3) { animation-delay: 120ms; }
  .board__row:nth-child(4) { animation-delay: 180ms; } .board__row:nth-child(5) { animation-delay: 240ms; }
  .board__row:nth-child(6) { animation-delay: 300ms; }
  @keyframes flip { from { transform: perspective(700px) rotateX(-75deg); transform-origin: top; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .hero__photo figure:not(:first-child) { display: none; }
  .hero__photo figure:first-child { opacity: 1; }
}

.f-yellow .sheet { margin-bottom: clamp(48px, 7vw, 96px); }
.h2-gap:first-child { margin-top: 0; }
mark { background: #ffe9a6; color: var(--ink); padding: 0 4px; }

.board .soft, .status-card .soft { color: var(--board-soft); }
.photo-band { margin: 0; }
.photo-band img { width: 100%; height: clamp(260px, 42vw, 560px); object-fit: cover; }
.photo-band figcaption { font-size: var(--s-small); color: var(--text-soft); padding: 8px var(--m); }
.field__error { display: block; color: var(--closed); font-weight: 600; margin-top: 6px; }

/* ---------- Cookie-Banner: unten, gleich gewichtete Knöpfe, blockiert nicht ---------- */
.consent { position: fixed; inset: auto 12px 12px 12px; z-index: 900; display: flex; justify-content: center; pointer-events: none; }
.consent__inner { pointer-events: auto; width: 100%; max-width: 860px; max-height: calc(100svh - 24px); overflow: auto; background: var(--ink); color: var(--board-text); padding: clamp(20px, 3vw, 32px); border-top: 10px solid var(--yellow); }
.consent h2 { font-size: var(--s-lead); margin-bottom: 10px; color: var(--board-text); }
.consent p { font-size: var(--s-small); max-width: 70ch; }
.consent a { color: var(--yellow); }
.consent .soft { color: var(--board-soft); }
.consent__links { display: flex; gap: 18px; }
.consent__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.consent__actions .btn { background: var(--yellow); color: var(--ink); min-height: 48px; white-space: normal; text-align: center; }
.consent__actions .btn:hover { background: var(--paper); }
.consent__group { background: var(--ink-2); padding: 14px 16px; margin-bottom: 8px; }
.consent__group p { margin: 8px 0 0; }
.consent__toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.consent__toggle input { width: 20px; height: 20px; accent-color: var(--yellow); }
.consent details { margin-top: 8px; font-size: var(--s-small); }
.consent summary { cursor: pointer; color: var(--yellow); }
.consent :focus-visible { outline-color: var(--yellow); }
@media (max-width: 560px) { .consent__actions { grid-template-columns: minmax(0, 1fr); } }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-decoration-thickness: 1px; cursor: pointer; }
.consent h2:focus { outline: none; }

/* Mindestgröße für Tippflächen (WCAG 2.5.8): kleine Links bekommen Luft nach oben und unten */
.foot__legal a, .foot__legal .linkish { display: inline-block; padding: 4px 0; }
.consent__links a { display: inline-block; padding: 4px 0; }
.consent summary { padding: 4px 0; }
.crumbs a { display: inline-block; padding: 3px 0; }

/* SEO B1: Footer-Linkblöcke, Cookie-Überschrift ohne h2, Herkunft des Status */
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; font-size: var(--s-small); }
.foot__cols ul { list-style: none; margin: 0; padding: 0; }
.foot__cols a { display: inline-block; padding: 4px 0; color: var(--board-text); text-decoration-thickness: 1px; }
.foot__cols a:hover { color: var(--yellow); }
.foot__head { margin: 0 0 8px; color: var(--board-soft); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.75rem; }
@media (max-width: 560px) { .foot__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.consent .consent__title { font-size: var(--s-lead); font-weight: 600; line-height: 1.02; letter-spacing: -0.025em; margin: 0 0 10px; color: var(--board-text); max-width: none; }
.consent__title:focus { outline: none; }
.status-card__origin a { text-decoration-thickness: 1px; }

/* SEO C: Hub-Seiten (Land, Bundesland, Saisonende) */
.sheet__group > h2 { text-align: center; margin-bottom: 18px; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.sheet__group > h2 a { text-decoration: none; }
.sheet__group > h2 a:hover { text-decoration: underline; }
.hub-sub { text-align: center; color: var(--text-soft); font-size: var(--s-small); margin: 28px 0 14px; }
.season-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.season-table th, .season-table td { text-align: left; padding: 12px 16px 12px 8px; vertical-align: top; }
.season-table thead th { color: var(--text-soft); font-weight: 600; font-size: var(--s-small); }
.season-table tbody tr:nth-child(odd) > * { background: var(--paper-2); }
.season-table tbody th { font-weight: 600; }
.season-table small { display: block; color: var(--text-soft); font-size: var(--s-small); }
.season-table .lamp { margin-right: 6px; }

/* SEO B2: Herkunft des Status im Seitenkopf, Startseiten-Kicker, Länderlinks */
.head__source { margin: 14px 0 0; font-size: var(--s-small); color: var(--text-soft-yellow); max-width: 60ch; }
.head__source a { color: inherit; text-decoration-thickness: 1px; }
.board__kicker { margin: 0 0 12px; color: var(--yellow); font-weight: 600; font-size: var(--s-lead); }
.board h1.board__title { font-size: clamp(2.25rem, 1rem + 3.2vw, 4rem); line-height: 1.02; }
.sheet > h2 a { text-decoration: none; }
.sheet > h2 a:hover { text-decoration: underline; }
.home-countries { margin-top: 52px; }
.home-countries h3 { text-align: center; margin-bottom: 18px; }
.home-countries ul { list-style: none; margin: 0 auto; padding: 0; max-width: 560px; display: grid; gap: 10px; }
.home-countries a { display: inline-block; padding: 3px 0; font-weight: 600; }
