/* LAXspa — Ratgeber, FAQ, Glossar, Blog, Videothek, Wasserpflege, Termin.
   Baut auf seiten.css (Seitenkopf, Lesetext) und komponenten.css (Lesekarte, Akkordeon, Formular) auf.
   Kein Zwangsscrollen: nichts pinnt außer der kurzen Randspalte der Leseseiten (seiten.css). Nur Tokens. */

/* ---------- Brotkrumen ---------- */
.krumen { color: var(--text-leise); line-height: 1.5; }
.krumen a { color: inherit; text-underline-offset: 0.2em; }
.krumen a:hover { color: var(--link); }

/* ---------- Themenleiste (Sprungmarken bzw. Filter als Links) ---------- */
.themenleiste { margin-top: var(--raum-2); }
a.chip { text-decoration: none; display: inline-flex; align-items: center; gap: 0.5em; }
a.chip[aria-current] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip--leise { border-style: dashed; }
.chip__zahl { font-size: var(--gr-mini); font-variant-numeric: tabular-nums; padding: 0.1em 0.5em; border-radius: var(--radius-knopf); background: color-mix(in srgb, currentColor 14%, transparent); }
.themenblock { scroll-margin-top: var(--kopf-hoehe); }
/* Kachelraster und Abstand Kopf → Kacheln: komponenten.css (.raster--karten, .stapel > .raster--karten) */
.themenblock > .huelle > p { max-width: var(--breite-text); }

/* ---------- Leseseite: Bild über dem Text, Schritte, Merksätze ---------- */
.lese__bild { max-width: 54rem; margin-bottom: var(--raum-6); border-radius: var(--radius-l); }
.lese .lesetext + * { margin-top: var(--raum-7); }
.lese .cahinweis { margin-top: var(--raum-6); }
.lese #fragen { max-width: 46rem; }
.lese .inhaltsliste ol { margin-top: var(--raum-3); }
.lesetext .schrittliste { gap: var(--raum-4); }
.lesetext .schrittliste > li { padding: var(--raum-4) var(--raum-4) var(--raum-4) 3.4rem; border: 1px solid var(--linie); border-radius: var(--radius-m); background: var(--flaeche); }
.lesetext .schrittliste > li::before { left: var(--raum-4); top: var(--raum-4); font-weight: 600; }
.lesetext .merk { margin-top: 2.6em; padding: var(--raum-5); border-radius: var(--radius-m); background: var(--flaeche); border-left: 3px solid var(--akzent); }
.lesetext .merk h2 { margin-top: 0; padding-top: 0; border-top: 0; display: block; }
.lesetext .merk h2::before { content: none; }
.lesetext table { width: 100%; border-collapse: collapse; font-size: 0.92em; display: block; overflow-x: auto; }
.lesetext th, .lesetext td { text-align: left; padding: 0.6em 0.8em 0.6em 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
.lesetext th { font-weight: 600; color: var(--text); }

/* ---------- FAQ ---------- */
.lese .akkordeon summary { font-size: var(--gr-gross); }
.lese section[id] { scroll-margin-top: calc(var(--kopf-hoehe) + var(--raum-5)); }

/* ---------- Glossar ---------- */
.buchstaben { display: flex; flex-wrap: wrap; gap: var(--raum-1); }
.buchstaben a { display: grid; place-items: center; min-width: 2.5rem; height: 2.5rem; border: 1px solid var(--linie); border-radius: var(--radius-s); color: var(--text); text-decoration: none; font-weight: 500; transition: background var(--dauer-2) ease, color var(--dauer-2) ease, border-color var(--dauer-2) ease; }
.buchstaben a:hover, .buchstaben a:focus-visible { background: var(--text); color: var(--bg); border-color: var(--text); }
.glossar { display: grid; max-width: 54rem; margin: 0; }
.glossar__buchstabe { margin-top: var(--raum-7); padding-bottom: var(--raum-2); border-bottom: 1px solid var(--text); color: var(--link);
  font-family: var(--schrift-display); font-weight: var(--display-gewicht); font-stretch: var(--display-breite); font-size: var(--gr-h2); line-height: 1; scroll-margin-top: calc(var(--kopf-hoehe) + var(--raum-5)); }
.glossar__buchstabe:first-child { margin-top: 0; }
.glossar__zeile { display: grid; gap: var(--raum-1) var(--raum-6); padding: var(--raum-4) 0; border-bottom: 1px solid var(--linie); scroll-margin-top: calc(var(--kopf-hoehe) + var(--raum-5)); }
.glossar__zeile dt { font-weight: 600; font-size: var(--gr-gross); line-height: 1.3; overflow-wrap: anywhere; hyphens: auto; }
.glossar__zeile dd { margin: 0; color: var(--text-leise); line-height: 1.6; }
.glossar__zeile:target dt { color: var(--link); }
@media (min-width: 48rem) { .glossar__zeile { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); align-items: baseline; } }

/* ---------- Videothek ---------- */
.vseite > * { max-width: 72rem; }
.vbuehne { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-l); background: var(--wasser-tief); isolation: isolate; }
.vbuehne > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vbuehne::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgb(3 12 18 / 0.32); pointer-events: none; transition: opacity var(--dauer-2) ease; }
.vbuehne:has(iframe)::after { opacity: 0; }
.vbuehne iframe { z-index: 3; }
.vbuehne__start { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: var(--raum-3); padding: 0.6rem 1.6rem 0.6rem 0.6rem; border-radius: var(--radius-knopf);
  background: #fff; color: #06131c; font: inherit; font-weight: 500; font-size: var(--gr-gross); white-space: nowrap; cursor: pointer;
  box-shadow: 0 18px 50px -18px rgb(0 0 0 / 0.7); transition: transform var(--dauer-3) var(--kurve-aus); }
.vbuehne__start:hover { transform: translate(-50%, -50%) scale(1.04); }
.vbuehne__start:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.vbuehne__zeichen { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: var(--radius-knopf); background: #06131c; color: #fff; }
.vbuehne__zeichen svg { margin-left: 0.15rem; }
.vmeta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-2) var(--raum-5); }
@media (max-width: 30rem) { .vbuehne__start { font-size: var(--gr-text); padding-right: 1.1rem; } .vbuehne__zeichen { width: 2.6rem; height: 2.6rem; } }

/* ---------- Wasserpflege: Shop-Karten ---------- */
.shopkarte:hover { transform: none; }
.shopkarte__bild { aspect-ratio: 1; background: #fff; }
.shopkarte__bild img { object-fit: contain; padding: var(--raum-4); }
.shopkarte .lesekarte__text { gap: var(--raum-3); }

/* ---------- Abschluss „Noch Fragen?“ ---------- */
.fragekarte { display: grid; gap: var(--raum-5); align-items: center; padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); border: 1px solid var(--linie); border-radius: var(--radius-l); background: var(--flaeche); }
.fragekarte__text { display: grid; gap: var(--raum-3); }
@media (min-width: 64rem) { .fragekarte { grid-template-columns: minmax(0, 1fr) auto; } .fragekarte .knopfreihe { justify-content: flex-end; max-width: 30rem; } }

/* ---------- Termin ---------- */
.terminseite > * { max-width: 56rem; }
.terminseite > h2 { margin-top: var(--raum-6); }
.terminseite address { font-style: normal; color: var(--text-leise); line-height: 1.5; }
.terminform { gap: var(--raum-6); }
.terminform fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: var(--raum-3); }
.terminform legend, .terminform__schritt { padding: 0; margin-bottom: var(--raum-2); font-family: var(--schrift-display); font-weight: var(--display-gewicht); font-stretch: var(--display-breite); text-transform: var(--display-versal); letter-spacing: var(--display-weite); font-size: var(--gr-h4); line-height: 1.15; }
.terminform legend small, .terminform label small { font-family: var(--schrift-text); font-weight: 400; font-stretch: 100%; text-transform: none; letter-spacing: 0; font-size: var(--gr-klein); color: var(--text-leise); }
.terminform__schritt { margin: var(--raum-4) 0 calc(var(--raum-3) * -1); padding-top: var(--raum-5); border-top: 1px solid var(--linie); }
.terminform fieldset + fieldset, .terminform fieldset + .feldpaar { padding-top: var(--raum-5); border-top: 1px solid var(--linie); }
.terminform .haken { font-size: var(--gr-text); align-items: center; padding: var(--raum-3) var(--raum-4); border: 1px solid var(--feldrand, var(--linie)); border-radius: var(--radius-m); background: var(--flaeche); cursor: pointer; }
.terminform .haken:has(input:checked) { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.terminform .haken label { cursor: pointer; }
.terminform__empfehlung { margin: 0; padding: var(--raum-3) var(--raum-4); border-left: 3px solid var(--akzent); background: var(--flaeche); border-radius: 0 var(--radius-m) var(--radius-m) 0; }
.terminform__gruppe { margin: var(--raum-2) 0 0; font-size: var(--gr-klein); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-leise); }
.terminform__empfohlen { margin-left: var(--raum-2); vertical-align: middle; }
.terminform:has(#ort-telefon:checked) label[for="telefon"] small { color: var(--text); font-weight: 600; }
/* Ausstellung Wetter: nur Anfrage, wir bestätigen (Holger 20.11.2026) – ohne JS über :has */
.terminform__anfragen, .terminform__wetter { display: none; }
.terminform:has(#ort-wetter:checked) .terminform__buchen { display: none; }
.terminform:has(#ort-wetter:checked) .terminform__anfragen { display: inline; }
.terminform:has(#ort-wetter:checked) .terminform__wetter { display: block; font-weight: 600; color: var(--text); }
.terminform details { border: 1px solid var(--linie); border-radius: var(--radius-m); background: var(--flaeche); }
.terminform details[open] { border-color: var(--feldrand, var(--linie)); }
.terminform summary { display: flex; justify-content: space-between; gap: var(--raum-3); padding: var(--raum-3) var(--raum-4); cursor: pointer; font-weight: 500; }
.terminform summary span { font-weight: 400; font-size: var(--gr-klein); }
.zeiten { display: flex; flex-wrap: wrap; gap: var(--raum-2); padding: 0 var(--raum-4) var(--raum-4); }
.zeit { position: relative; display: inline-flex; }
.zeit input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.zeit label { display: grid; place-items: center; min-width: 4.5rem; min-height: 2.75rem; padding: 0 0.9rem; border: 1px solid var(--feldrand, var(--linie)); border-radius: var(--radius-knopf); font-variant-numeric: tabular-nums; font-weight: 500; transition: background var(--dauer-2) ease, color var(--dauer-2) ease; }
.zeit input:hover + label { border-color: var(--text); }
.zeit input:checked + label { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); }
.zeit input:focus-visible + label { outline: 2px solid var(--link); outline-offset: 3px; }
.terminform > .knopf { justify-self: start; }
@media (max-width: 30rem) { .terminform > .knopf { justify-self: stretch; justify-content: center; white-space: normal; } }

/* ---------- Videoseite: Einordnung (Rubrik, Dauer, Datum, Modell) und Serienliste ---------- */
.vfakten { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 1px; background: var(--linie); border: 1px solid var(--linie); border-radius: var(--radius-m); overflow: hidden; }
.vfakten > div { display: grid; gap: 0.15rem; align-content: start; padding: 0.75rem 1rem; background: var(--bg); }
.vfakten dt { font-size: var(--gr-mini); letter-spacing: var(--weite-versal); text-transform: uppercase; color: var(--text-leise); }
.vfakten dd { margin: 0; font-weight: 500; }
.vfakten a, .vseite p a { color: var(--link); text-underline-offset: 0.2em; }
.vserien { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--raum-2); }
.vserien a { display: inline-flex; align-items: baseline; gap: 0.5rem; min-height: 2.75rem; padding: 0.6rem 1rem; border: 1px solid var(--linie); border-radius: var(--radius-m); color: var(--text); text-decoration: none; }
.vserien a:hover { border-color: var(--link); }
@media (max-width: 36rem) { .vserien { display: grid; } }
/* ---------- Blog-Themenseite: die übrigen Themen ---------- */
.themenliste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: var(--luecke); }
/* Anzahl der Beiträge steht unten, in einer Reihe auf einer Linie */
.themenliste a { display: flex; flex-direction: column; gap: 0.25rem; height: 100%; padding: var(--raum-4); border: 1px solid var(--linie); border-radius: var(--radius-m); background: var(--flaeche); color: var(--text); text-decoration: none; }
.themenliste a:hover { border-color: var(--link); }
.themenliste a > :last-child { margin-top: auto; padding-top: var(--raum-2); }
.themenliste + p a { color: var(--link); text-underline-offset: 0.2em; }
