/* seite.css · Goldstunde (Beispiel), Solarium in Villach.
 * Design-Lesart: Pendlermorgen hinter nassem Zugfenster in Stahlblau und Beton, der in der Mitte der Seite in Honiggold
 * kippt; Space Grotesk mit Uhrzeit-Ziffern, Literata wie die Zeitung im Zug, Honiggold als einziges warmes Licht.
 * Die ganze Seite hat zwei Farbwelten (Stadt und Gold); --w (0 bis 1) setzt js/wende.js beim Wendepunkt „Licht an.“ */

@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-var.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

/* ---------- Farbwelt: Stadt (s) und Gold (g), dazwischen mischt --w. Fest dunkel. */
:root {
  --w: 0;
  --s-grund: #141a21;  --g-grund: #21150a;
  --s-grund-2: #1d252e; --g-grund-2: #2e1f10;
  --s-text: #e7ecf1;   --g-text: #f8ebd4;
  --s-text-2: #b0bbc6; --g-text-2: #e2cba6;
  --s-text-3: #909ca8; --g-text-3: #c0a683;
  --s-linie: #2c3641;  --g-linie: #4b3520;
  --s-feld: #6f7c89;   --g-feld: #8f7757;

  /* Ohne JavaScript bleibt die Stadt-Farbwelt; js/wende.js mischt beim Wendepunkt alle Farben als rgb() nach Gold. */
  --grund: var(--s-grund);
  --grund-2: var(--s-grund-2);
  --text: var(--s-text);
  --text-2: var(--s-text-2);
  --text-3: var(--s-text-3);
  --linie: var(--s-linie);
  --linie-feld: var(--s-feld);
  --akzent: #e8a53a;
  --auf-akzent: #1d1206;
  --fehler: #ffa596;
  --kopf-grund: rgba(20, 26, 33, 0.92);

  --schrift-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --schrift-text: "Literata", Georgia, serif;

  /* Überschriften bleiben ruhig: höchstens 4,5 rem bei 1440 px */
  --t-titel: clamp(2.35rem, 1.45rem + 3.2vw, 4.5rem);
  --t-gross: clamp(2.1rem, 1.35rem + 2.5vw, 3.6rem);
  --t-mittel: clamp(1.15rem, 1.04rem + 0.45vw, 1.45rem);
  --t-text: clamp(1.0625rem, 1rem + 0.2vw, 1.15rem);

  --rund-knopf: 999px;
  --rund-feld: 12px;
  --rund-bild: 6px;
}

h1, h2, h3 { font-weight: 500; letter-spacing: -0.028em; }
.marke { font-weight: 700; letter-spacing: -0.02em; font-size: 1.2rem; }
.marke::before { content: ""; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; background: var(--akzent); box-shadow: 0 0 14px 2px color-mix(in srgb, var(--akzent) 55%, transparent); }
.menue a, .knopf, .menue-knopf { font-family: var(--schrift-display); }
.knopf { font-weight: 500; letter-spacing: -0.005em; }
.knopf:focus-visible { outline-color: var(--text); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .knopf:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--akzent) 70%, transparent), 0 12px 34px -10px color-mix(in srgb, var(--akzent) 70%, transparent); transform: translateY(-1px); } }
:focus-visible { outline-color: var(--akzent); }
.kopf-fest .kopfzeile { backdrop-filter: none; }

/* ---------- Kapitel 1 · Zugfenster */
.anfang { display: block; height: 165svh; min-height: 0; padding: 0; overflow-x: clip; }
.anfang-buehne { position: sticky; top: 0; display: grid; grid-template-rows: minmax(300px, 1fr) auto; align-items: stretch; height: 100svh; min-height: 600px; padding-top: calc(var(--kopf-hoehe) + 2px); overflow: hidden; }
.scheibe { position: relative; margin-inline: clamp(10px, 1.6vw, 26px); border-radius: clamp(24px, 3.4vw, 52px); overflow: hidden; isolation: isolate; background: #2f3b47;
  box-shadow: 0 0 0 clamp(5px, 0.7vw, 10px) #0b1015, 0 0 0 calc(clamp(5px, 0.7vw, 10px) + 1px) #2a333d, 0 40px 70px -40px #000; touch-action: pan-y; }
.scheibe-bild, .scheibe-fx { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scheibe-fx { display: block; }
.scheibe-text { grid-row: 1; grid-column: 1; align-self: end; position: relative; z-index: 2; margin: 0 6% clamp(26px, 6.5vh, 70px) var(--kante); pointer-events: none; }
.scheibe { grid-row: 1; grid-column: 1; }
.scheibe-ort { font-family: var(--schrift-display); font-size: 1.05rem; color: var(--s-text-2); margin-bottom: 14px; font-variant-numeric: tabular-nums; text-shadow: 0 1px 12px rgba(10, 16, 22, 0.7); }
.titel { font-size: var(--t-titel); line-height: 1.0; letter-spacing: -0.035em; max-width: 11.5em; color: var(--s-text); text-shadow: 0 2px 24px rgba(12, 18, 24, 0.45); }
.fx-an .titel { color: transparent; text-shadow: none; }
.fx-an .scheibe-ort { opacity: 0; }
.scheibe-text .titel { max-width: 9.6em; }

.fensterbank { position: relative; display: grid; gap: 14px 40px; padding-block: clamp(18px, 3.2vh, 34px) clamp(18px, 3vh, 30px); align-items: center; }
@media (min-width: 900px) { .fensterbank { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.7fr) auto; } }
.fensterbank .unterzeile { margin: 0; max-width: 30rem; font-size: var(--t-mittel); color: var(--text); line-height: 1.38; }
.fensterbank .beleg { margin: 0; font-family: var(--schrift-display); font-size: 0.98rem; line-height: 1.4; }
.fensterbank .beleg strong { display: block; font-family: var(--schrift-display); font-size: 1.35rem; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.fensterbank .handlung { margin: 0; justify-content: flex-start; }
.fensterbank .beruhigung { max-width: 22rem; font-size: 0.92rem; }
@media (min-width: 900px) { .fensterbank .handlung { flex-direction: column; align-items: flex-start; } }

/* Lichtkante: das wiederkehrende Motiv, zuerst kalt, am Ende warm. Läuft mit dem Scrollen quer durch den Abschnitt. */
.kante-licht { position: absolute; z-index: 3; top: 0; bottom: 0; left: 0; width: 2px; pointer-events: none; opacity: 0; }
.kante-licht--kalt { top: auto; height: clamp(150px, 22vh, 240px); background: linear-gradient(to bottom, transparent, rgba(214, 228, 242, 0.85) 40%, rgba(214, 228, 242, 0.85) 60%, transparent); box-shadow: 0 0 18px 4px rgba(170, 200, 230, 0.35); }
.kante-licht--warm { bottom: auto; top: 0; width: 34vw; height: 2px; background: linear-gradient(to right, transparent, rgba(255, 214, 140, 0.95) 45%, rgba(255, 214, 140, 0.95) 55%, transparent); box-shadow: 0 0 22px 4px rgba(232, 165, 58, 0.45); }

/* ---------- Kapitel 2 · Mittag, die Kamera fährt auf die Tür zu */
.mittag { position: relative; height: 170vh; }
.mittag-buehne { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.mittag-bild { position: absolute; inset: 0; overflow: hidden; background: #0b1015; }
/* ohne JavaScript und ruhig: das Foto steht gerahmt unter dem Text (Anfangsbild der Fahrt), der Text liegt nie auf dem Foto */
html:not(.js) .mittag-bild { clip-path: inset(46% 9% 6% 9% round 24px); }
@media (prefers-reduced-motion: reduce) { .mittag-bild { clip-path: inset(46% 9% 6% 9% round 24px); } }
@media (max-width: 860px) {
  html:not(.js) .mittag-bild { clip-path: inset(60% 5% 4% 5% round 18px); }
  @media (prefers-reduced-motion: reduce) { .mittag-bild { clip-path: inset(60% 5% 4% 5% round 18px); } }
}
.mittag-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; transform-origin: 50% 50%; }
.mittag-text { position: absolute; left: 0; right: 0; top: calc(var(--kopf-hoehe) + clamp(16px, 4vh, 48px)); z-index: 2; }
.mittag-zeit { font-family: var(--schrift-display); font-size: 1.05rem; color: var(--text-2); font-variant-numeric: tabular-nums; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.mittag-zeit::before { content: ""; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; background: conic-gradient(from 0deg, currentColor 0 1.2deg, transparent 1.2deg 90deg, currentColor 90deg 91.5deg, transparent 91.5deg); }
.mittag h2 { font-size: var(--t-gross); max-width: 12em; }
.mittag-satz { margin-top: 16px; max-width: 34rem; color: var(--text-2); font-size: var(--t-mittel); line-height: 1.42; }

/* ---------- Kapitel 3 · Wendepunkt „Licht an.“ */
.licht { position: relative; height: 230vh; }
.licht-buehne { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #1a2027; isolation: isolate; }
.licht-himmel { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.licht-ebene { position: absolute; inset: 0; z-index: 1; }
.licht-gold { z-index: 2; }
.licht-gold { display: none; }
.js .licht-gold { display: block; clip-path: polygon(0 0, 0 0, 0 0); }
.licht-raster { position: relative; height: 100%; display: grid; align-items: center; gap: 24px clamp(32px, 5vw, 80px); padding-top: var(--kopf-hoehe); }
@media (min-width: 861px) { .licht-raster { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); } }
.licht-text { position: relative; z-index: 2; }
.licht h2, .licht-titel-kopie { font-family: var(--schrift-display); font-size: var(--t-titel); font-weight: 500; line-height: 1.0; letter-spacing: -0.035em; margin: 0; }
.licht-satz { margin-top: 20px; max-width: 26rem; font-size: var(--t-mittel); line-height: 1.42; }
.licht-fakt { margin-top: 22px; font-family: var(--schrift-display); font-size: 0.98rem; }
.licht-fakt strong { font-weight: 500; }
.licht-grau .licht-text { color: #edf1f5; }
.licht-grau .licht-satz, .licht-grau .licht-fakt { color: #c6cfd8; }
.licht-gold .licht-text { color: #24160a; }
.licht-gold .licht-satz, .licht-gold .licht-fakt { color: #3d2810; }
.licht-foto { position: relative; margin: 0; height: min(64svh, 640px); border-radius: var(--rund-bild); overflow: hidden; box-shadow: 0 50px 80px -50px rgba(0, 0, 0, 0.85); }
.licht-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; }
.licht-grau .licht-foto img { filter: grayscale(0.92) brightness(0.42) contrast(1.12); }
.licht-kante { position: absolute; z-index: 4; left: 0; top: 0; width: 3px; height: 240vmax; margin-top: -120vmax; pointer-events: none; opacity: 0; transform-origin: 50% 50%;
  background: linear-gradient(to bottom, transparent 4%, rgba(255, 238, 205, 0.95) 30%, rgba(255, 214, 140, 0.95) 70%, transparent 96%);
  box-shadow: 0 0 28px 9px rgba(255, 196, 110, 0.55), 0 0 110px 34px rgba(232, 165, 58, 0.32); }
@media (max-width: 860px) {
  .licht-raster { align-content: start; grid-template-rows: auto auto; padding-top: calc(var(--kopf-hoehe) + 8px); }
  .licht-foto { order: -1; height: 40svh; }
}

/* ---------- Kapitel 4 · Lichtwahl mit Glasprisma */
.lichtwahl { position: relative; }
.prisma-buehne { position: relative; min-height: 100svh; display: grid; align-items: center; padding-block: calc(var(--kopf-hoehe) + 24px) clamp(48px, 9vh, 110px); overflow: hidden; isolation: isolate; }
.prisma-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.prisma-raster { display: grid; align-items: center; gap: 8px clamp(16px, 3vw, 48px); }
@media (min-width: 900px) { .prisma-raster { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr); } }
.prisma-platz { align-self: stretch; min-height: 320px; }
.prisma-titel { font-size: var(--t-titel); line-height: 1.02; letter-spacing: -0.035em; max-width: 8.6em; }
.prisma-titel .w { white-space: nowrap; }
.fx-prisma .prisma-titel { color: transparent; }
.prisma-satz { margin-top: 20px; max-width: 30rem; color: var(--text-2); font-size: var(--t-mittel); line-height: 1.42; }
.stimmung { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; border: 0; }
.stimmung-wahl { position: relative; }
.stimmung-wahl input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.stimmung-wahl span { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--rund-knopf); font-family: var(--schrift-display); font-size: 1.02rem; color: var(--text-2); box-shadow: inset 0 0 0 1.5px var(--linie-feld); transition: box-shadow 0.25s var(--aus), color 0.25s ease; }
.stimmung-wahl span::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--farbe); opacity: 0.55; transition: opacity 0.25s ease, transform 0.25s var(--aus); }
.stimmung-wahl:nth-child(2) { --farbe: #f2b64c; }
.stimmung-wahl:nth-child(3) { --farbe: #d9773d; }
.stimmung-wahl:nth-child(4) { --farbe: #e7a0a0; }
.stimmung-wahl input:checked + span { color: var(--text); box-shadow: inset 0 0 0 2px var(--akzent); }
.stimmung-wahl input:checked + span::before { opacity: 1; transform: scale(1.25); }
.stimmung-wahl input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .stimmung-wahl:hover span { color: var(--text); } }
.stimmung-satz { margin-top: 16px; min-height: 1.6em; color: var(--text); font-size: 1.05rem; }
.preis { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--linie); max-width: 32rem; color: var(--text-2); }
.preis strong { font-family: var(--schrift-display); font-weight: 500; font-size: 1.3rem; color: var(--text); }
@media (max-width: 899px) { .prisma-platz { min-height: 0; height: clamp(170px, 26svh, 240px); } }

/* ---------- Kapitel 5 · Ablauf als Linienplan. Grundform (ohne JavaScript, schmal): senkrechte Linie mit Stationen.
 * js/plan.js setzt .plan--quer (breit: angeheftete Bühne, Stationen am Plan) oder .plan--hoch (schmal: Linie wächst mit). */
.plan { position: relative; --linie-gold: var(--akzent); --linie-bahn: #86a8c8; }
.plan-buehne { position: relative; padding-block: var(--abstand); }
.plan-netz { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.plan-kopf { position: relative; z-index: 2; }
.plan-uhr { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-family: var(--schrift-display); font-size: 1.35rem; color: var(--akzent); font-variant-numeric: tabular-nums; }
.plan-uhr::before { content: ""; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; background: conic-gradient(from 0deg, currentColor 0 1.2deg, transparent 1.2deg 90deg, currentColor 90deg 91.5deg, transparent 91.5deg); }
.plan h2 { font-size: var(--t-gross); max-width: 12em; }
.plan-satz { margin-top: 14px; max-width: 32rem; color: var(--text-2); font-size: var(--t-mittel); line-height: 1.42; }
.plan-karte { position: relative; z-index: 2; margin-top: clamp(36px, 6vh, 64px); }
.plan-halte { position: relative; list-style: none; margin: 0; padding: 0 0 0 72px; display: grid; gap: 34px; }
.halt { position: relative; max-width: 26rem; }
.halt-zeit { font-family: var(--schrift-display); font-size: 0.95rem; color: var(--akzent); font-variant-numeric: tabular-nums; line-height: 1.3; }
.halt-name { margin-top: 2px; font-size: 1.32rem; font-weight: 500; letter-spacing: -0.02em; }
.halt-satz { margin-top: 6px; color: var(--text-2); font-size: 0.98rem; line-height: 1.45; }
/* stille Linie ohne JavaScript: ein Strich und ein Ring je Station */
html:not(.js) .plan-halte::before { content: ""; position: absolute; left: 22px; top: 10px; bottom: 10px; width: 6px; border-radius: 3px; background: var(--akzent); }
html:not(.js) .halt::before { content: ""; position: absolute; left: -59px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--grund); box-shadow: inset 0 0 0 4px var(--text); }
.halt--timer { padding-bottom: 64px; }

.js .plan-netz .pl-linie { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.js .plan-netz .pl-gold { stroke: var(--linie-gold); }
.js .plan-netz .pl-bahn { stroke: var(--linie-bahn); }
.js .plan-netz .pl-huelle { stroke: var(--grund); }
.js .plan-netz .pl-zug-koerper { fill: var(--akzent); stroke: var(--grund); }
.js .plan-netz .pl-zug-fenster { fill: var(--grund); }
.js .plan-netz .pl-schild { fill: var(--text-2); font-size: 12.5px; }
.js .plan-netz .pl-text { font-family: var(--schrift-display); font-size: 12px; fill: var(--text-3); font-variant-numeric: tabular-nums; transition: fill 0.3s ease; }
.js .plan-netz .pl-text.an { fill: var(--akzent); }
.js .plan-netz .pl-strich { stroke: var(--linie-feld); stroke-width: 2; transition: stroke 0.3s ease; }
.js .plan-netz .pl-strich.an { stroke: var(--akzent); }
.js .plan-netz .pl-halt { fill: var(--grund); stroke: var(--text); transition: transform 0.45s var(--aus), opacity 0.3s ease; transform-box: fill-box; transform-origin: center; }
.js .plan-netz .pl-halt:not(.an) { opacity: 0; transform: scale(0.3); }

/* breit: angeheftete Bühne, die Stationen stehen am Plan */
.js .plan--quer { height: 260vh; }
.js .plan--quer .plan-buehne { position: sticky; top: 0; height: 100svh; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.js .plan--quer .plan-kopf { padding-top: calc(var(--kopf-hoehe) + clamp(16px, 4vh, 44px)); }
.js .plan--quer .plan-karte { flex: 1 1 auto; margin-top: 12px; margin-bottom: clamp(20px, 4vh, 44px); }
.js .plan--quer .plan-halte { position: absolute; inset: 0; padding: 0; display: block; }
.js .plan--quer .halt { position: absolute; width: var(--halt-breite, 13rem); padding: 0; }
.js .plan--quer .halt--oben { translate: 0 -100%; }
.js .plan--quer .halt--rechts { translate: -100% 0; text-align: right; }
.js .plan--quer .halt-satz { font-size: 0.94rem; }
.js .plan--still { height: auto; }
.js .plan--still .plan-buehne { position: relative; height: max(100svh, 680px); }
/* schmal: die Linie wächst beim Scrollen mit */
.js .plan--hoch .plan-halte { padding-left: 76px; }

@media (prefers-reduced-motion: no-preference) {
  .js .plan--quer .halt, .js .plan--hoch .halt { opacity: 0.18; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.6s var(--aus); }
  .js .plan--quer .halt.an, .js .plan--hoch .halt.an { opacity: 1; transform: none; }
  .js .plan--quer .plan-kopf { transform: translateY(calc((0.5 - var(--p, 0.5)) * 4vh)); }
}

/* ---------- Kapitel 6 · Hauttyp-Karte und November mit Pausentagen */
.regeln { position: relative; padding-block: var(--abstand); overflow-x: clip; }
.regeln-raster { display: grid; gap: 48px clamp(32px, 5vw, 88px); }
@media (min-width: 1000px) { .regeln-raster { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); align-items: center; } }
.regeln h2 { font-size: var(--t-gross); max-width: 11em; }
.regeln-satz { margin-top: 18px; max-width: 30rem; color: var(--text-2); font-size: var(--t-mittel); line-height: 1.42; }
.pflicht { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; max-width: 30rem; }
.pflicht li { padding-left: 18px; border-left: 2px solid var(--akzent); color: var(--text-2); font-size: 0.98rem; line-height: 1.45; }
.pflicht strong { display: block; font-family: var(--schrift-display); font-weight: 500; font-size: 1.08rem; color: var(--text); }
.regeln-stapel { position: relative; display: grid; gap: 22px; }
@media (min-width: 640px) { .regeln-stapel { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; } }

.karte { position: relative; z-index: 2; margin: 0; padding: 22px 24px 18px; border-radius: var(--rund-feld); background: linear-gradient(160deg, #3a2814, #24170b 70%); box-shadow: inset 0 1px 0 rgba(255, 214, 140, 0.55), 0 0 0 1px #4b3520, 0 40px 60px -30px rgba(0, 0, 0, 0.8); }
@media (min-width: 640px) { .karte { grid-column: 1 / span 9; grid-row: 1; align-self: start; } }
.karte-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--linie); }
.karte-marke { font-family: var(--schrift-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; color: var(--akzent); }
.karte-nr { font-family: var(--schrift-display); font-size: 0.88rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.karte-tabelle { width: 100%; margin-top: 6px; border-collapse: collapse; font-family: var(--schrift-display); font-size: 0.98rem; }
.karte-tabelle thead, .karte-tabelle tbody { display: block; }
.karte-tabelle tr { display: grid; grid-template-columns: clamp(4.4rem, 14vw, 5.4rem) minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--linie); }
.karte-tabelle th, .karte-tabelle td { padding: 0; text-align: left; font-weight: 400; }
.karte-tabelle thead th { font-size: 0.8rem; color: var(--text-2); letter-spacing: 0.02em; }
.karte-tabelle tbody th { font-weight: 500; color: var(--text); }
.karte-tabelle td { color: var(--text-2); }
.karte-du { color: var(--akzent); }
.karte-tabelle .karte-du th, .karte-tabelle .karte-du td { color: var(--akzent); }
.karte-marker { margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 0.74rem; color: var(--auf-akzent); background: var(--akzent); vertical-align: 0.1em; }
.karte-fuss { margin-top: 12px; font-size: 0.84rem; color: var(--text-2); }

.monat { position: relative; z-index: 1; margin: 0; padding: 22px 22px 20px; border-radius: var(--rund-feld); background: var(--grund-2); box-shadow: inset 0 0 0 1px var(--linie); }
@media (min-width: 640px) { .monat { grid-column: 4 / span 9; grid-row: 2; margin-top: -44px; padding-top: 66px; } }
.monat-kopf { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
.monat-name { font-family: var(--schrift-display); font-size: 1.2rem; font-weight: 500; color: var(--text); }
.monat-legende { display: flex; gap: 16px; font-family: var(--schrift-display); font-size: 0.85rem; color: var(--text-2); }
.leg { display: inline-flex; align-items: center; gap: 7px; }
.leg::before { content: ""; width: 12px; height: 12px; border-radius: 50%; }
.leg--besuch::before { background: var(--akzent); }
.leg--pause::before { box-shadow: inset 0 0 0 1.5px var(--text-2); }
.monat-wochentage, .monat-tage { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.monat-wochentage li { padding: 4px 0; text-align: center; font-family: var(--schrift-display); font-size: 0.78rem; color: var(--text-2); }
.tag { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 0.92; font-family: var(--schrift-display); font-size: 0.95rem; color: var(--text-2); font-variant-numeric: tabular-nums; isolation: isolate; }
.tag:first-child { grid-column-start: 7; }
.tag--zu { color: var(--text-3); opacity: 0.55; }
.tag::before { content: ""; position: absolute; z-index: -1; width: min(70%, 40px); aspect-ratio: 1; border-radius: 50%; }
/* Besuchstag: die Zahl selbst ist der Stempel (Hintergrund am Element, damit der Kontrast messbar bleibt) */
.tag-zahl { display: grid; place-items: center; width: min(70%, 40px); aspect-ratio: 1; border-radius: 50%; font-weight: 500; color: var(--auf-akzent); background-color: var(--akzent); background-image: radial-gradient(circle at 38% 34%, rgba(255, 226, 160, 0.75), transparent 60%); box-shadow: 0 0 18px -2px color-mix(in srgb, var(--akzent) 70%, transparent); }
.tag--pause::before { box-shadow: inset 0 0 0 1.5px var(--text-2); }
@media (min-width: 640px) {
  .tag--besuch::after, .tag--pause::after { position: absolute; bottom: -3px; font-size: 0.62rem; letter-spacing: 0.02em; color: var(--text-2); }
  .tag--besuch::after { content: "12:15"; color: var(--akzent); }
  .tag--pause::after { content: "Pause"; }
}
/* Stempel der Besuchstage nacheinander, je Besuch ein Platz in der Reihe */
.tag:nth-child(3), .tag:nth-child(4) { --i: 0; } .tag:nth-child(6), .tag:nth-child(7) { --i: 1; }
.tag:nth-child(10), .tag:nth-child(11) { --i: 2; } .tag:nth-child(13), .tag:nth-child(14) { --i: 3; }
.tag:nth-child(17), .tag:nth-child(18) { --i: 4; } .tag:nth-child(20), .tag:nth-child(21) { --i: 5; }
.tag:nth-child(24), .tag:nth-child(25) { --i: 6; } .tag:nth-child(27), .tag:nth-child(28) { --i: 7; }
.karte-tabelle tbody tr:nth-child(1) { --i: 0; } .karte-tabelle tbody tr:nth-child(2) { --i: 1; }
.karte-tabelle tbody tr:nth-child(3) { --i: 2; } .karte-tabelle tbody tr:nth-child(4) { --i: 3; }

@media (prefers-reduced-motion: no-preference) {
  .js .regeln { --e: clamp(0, calc((var(--p, 1) - 0.04) / 0.36), 1); }
  .js .karte { transform: translateY(calc((1 - var(--e)) * 24vh)) rotate(calc(-2deg - (1 - var(--e)) * 9deg)); }
  .js .monat { transform: translateY(calc((1 - var(--e)) * 12vh)); }
  .js .karte-tabelle tbody tr { --z: clamp(0, calc((var(--p, 1) - 0.14 - var(--i) * 0.055) / 0.08), 1); clip-path: inset(-2px calc((1 - var(--z)) * 100%) -2px -2px); }
  .js .tag--besuch, .js .tag--pause { --z: clamp(0, calc((var(--p, 1) - 0.24 - var(--i) * 0.03) / 0.045), 1); }
  .js .tag-zahl { color: color-mix(in srgb, var(--auf-akzent) calc(var(--z) * 100%), var(--text-2)); background-color: color-mix(in srgb, var(--akzent) calc(var(--z) * 100%), transparent); background-image: none; box-shadow: none; transform: scale(calc(1.45 - var(--z) * 0.45)) rotate(calc((1 - var(--z)) * -24deg)); }
  .js .tag--besuch .tag-zahl { --z: clamp(0, calc((var(--p, 1) - 0.24 - var(--i) * 0.03) / 0.045), 1); }
  .js .tag--pause::before { opacity: var(--z); }
}

/* ---------- Kapitel 7 · Am Abend: kühler Himmel, S-Bahn mit warmen Fenstern */
.abend { position: relative; min-height: 100svh; }
.abend-buehne { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: #1b232c; isolation: isolate; }
.abend-bild, .abend-himmel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.abend-himmel { display: block; }
.abend-text { position: absolute; left: 0; right: 0; top: calc(var(--kopf-hoehe) + clamp(20px, 7vh, 84px)); z-index: 2; color: #edf1f5; }
.abend-zeit { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-family: var(--schrift-display); font-size: 1.05rem; color: #c6cfd8; font-variant-numeric: tabular-nums; }
.abend-zeit::before { content: ""; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; background: conic-gradient(from 0deg, currentColor 0 1.2deg, transparent 1.2deg 175deg, currentColor 175deg 176.5deg, transparent 176.5deg); }
.abend h2 { font-size: var(--t-gross); max-width: 11em; color: #f1f4f7; text-shadow: 0 2px 24px rgba(12, 18, 24, 0.5); }
.abend-satz { margin-top: 16px; max-width: 30rem; font-size: var(--t-mittel); line-height: 1.42; color: #d3dae1; text-shadow: 0 1px 14px rgba(12, 18, 24, 0.6); }
.abend-fakt { margin-top: 20px; font-family: var(--schrift-display); font-size: 0.98rem; color: #d3dae1; }
.abend-fakt strong { font-weight: 500; color: #ffd27e; }
.js .abend { height: 190vh; }
.js .abend-buehne { position: sticky; top: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .abend-text { transform: translateY(calc((0.4 - var(--p, 0.4)) * 10vh)); }
}
@media (prefers-reduced-motion: reduce) { .js .abend { height: auto; } .js .abend-buehne { position: relative; } }

/* ---------- Schluss und Termin: Foto bis an den linken Bildschirmrand (der eine Regelbruch der Seite) */
.termin { position: relative; isolation: isolate; padding-block: clamp(40px, 8vh, 110px) clamp(64px, 10vh, 140px); overflow-x: clip; }
.termin-raster { display: grid; gap: 40px clamp(32px, 5vw, 88px); padding-right: var(--kante); }
@media (min-width: 861px) { .termin-raster { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; } }
.termin-foto { position: relative; margin: 0; height: min(86svh, 860px); overflow: hidden; border-radius: 0 var(--rund-bild) var(--rund-bild) 0; }
@media (min-width: 861px) { .termin-foto { position: sticky; top: calc(var(--kopf-hoehe) + 16px); } }
.termin-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.termin-inhalt { padding-left: 0; }
.termin h2 { font-size: var(--t-gross); max-width: 11em; }
.termin-satz { margin-top: 18px; max-width: 32rem; font-size: var(--t-mittel); color: var(--text-2); line-height: 1.42; }
.termin-hinweis { margin: 22px 0 34px; max-width: 34rem; padding: 14px 18px; border-left: 2px solid var(--akzent); background: var(--grund-2); color: var(--text-2); font-size: 0.95rem; }
.termin .formular { max-width: 32rem; }
.feld-haken { grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; }
.feld-haken input { appearance: none; width: 44px; height: 44px; min-height: 0; margin: 0 0 0 -10px; padding: 0; border: 0; border-radius: 0; cursor: pointer;
  background: linear-gradient(var(--grund-2), var(--grund-2)) center / 21px 21px no-repeat, linear-gradient(var(--linie-feld), var(--linie-feld)) center / 25px 25px no-repeat; }
.feld-haken input:checked { background: linear-gradient(var(--grund-2), var(--grund-2)) center / 9px 9px no-repeat, linear-gradient(var(--akzent), var(--akzent)) center / 25px 25px no-repeat; }
.feld-haken input:focus-visible { outline: 2px solid var(--akzent); outline-offset: -6px; }
.feld-haken input[aria-invalid="true"] { background: linear-gradient(var(--grund-2), var(--grund-2)) center / 21px 21px no-repeat, linear-gradient(var(--fehler), var(--fehler)) center / 25px 25px no-repeat; }
.feld-haken label { font-size: 1rem; color: var(--text); min-height: 44px; display: inline-flex; align-items: center; }
.feld-haken .feld-fehler { grid-column: 1 / -1; }
.termin .direkt { margin-top: 40px; }
.termin .direkt a { font-family: var(--schrift-display); font-size: 1.2rem; }
.termin .direkt p { color: var(--text-2); }
@media (max-width: 860px) {
  .termin-raster { padding-right: 0; }
  .termin-foto { height: 62svh; border-radius: 0; }
  .termin-inhalt { width: min(100% - 2 * var(--rand), var(--inhalt)); margin-inline: auto; }
}
.fuss { border-top-color: var(--linie); }

/* ---------- Bewegung beim Scrollen (nur mit JavaScript und ohne „weniger Bewegung“; sonst steht alles im Endzustand) */
@media (prefers-reduced-motion: no-preference) {
  .js .anfang .scheibe { transform: scale(calc(1 - var(--p, 0) * 0.025)); }
  .js .kante-licht--kalt { opacity: calc(min(1, var(--p, 0) * 8)); transform: translateX(calc(-5vw + var(--p, 0) * 110vw)) skewX(-22deg); }

  .js .mittag { --a: clamp(0, calc(var(--p, 1) / 0.5), 1); --d: clamp(0, calc((var(--p, 1) - 0.7) / 0.28), 1); --zoom: 0.72; }
  /* Heranfahren nur so weit, wie die größte Fassung (2816 px) scharf hergibt */
  @media (min-width: 1700px) { .js .mittag { --zoom: 0.46; } }
  .js .mittag-bild { clip-path: inset(calc((1 - var(--a)) * 46%) calc((1 - var(--a)) * 9%) calc((1 - var(--a)) * 6%) calc((1 - var(--a)) * 9%) round calc((1 - var(--a)) * 30px)); }
  .js .mittag-bild img { transform: scale(calc(1.02 + var(--p, 1) * var(--zoom))); filter: brightness(calc(1 - var(--d) * 0.7)); }
  .js .mittag-text { transform: translateY(calc(var(--a) * -46svh)); opacity: clamp(0, calc(1 - (var(--a) - 0.55) * 2.6), 1); }
  @media (max-width: 860px) {
    .js .mittag-bild { clip-path: inset(calc((1 - var(--a)) * 60%) calc((1 - var(--a)) * 5%) calc((1 - var(--a)) * 4%) calc((1 - var(--a)) * 5%) round calc((1 - var(--a)) * 22px)); }
    .js .mittag-text { transform: translateY(calc(var(--a) * -60svh)); }
  }

  .js .licht-foto { transform: translateY(calc((0.5 - var(--p, 1)) * 14vh)) scale(calc(1.08 - var(--p, 1) * 0.08)); }
  .js .licht-text { transform: translateY(calc((0.5 - var(--p, 1)) * -5vh)); }

  .js .preis { transform: translateY(calc((0.5 - var(--p, 1)) * 5vh)); }

  .js .termin-foto img { transform: scale(calc(1.16 - var(--p, 1) * 0.16)) translateY(calc((0.5 - var(--p, 1)) * 5%)); }
  .js .termin-foto { clip-path: inset(calc(clamp(0, 1 - var(--p, 1) * 2.6, 1) * 30%) 0 0 0); }
  .js .termin-inhalt { transform: translateY(calc((0.5 - var(--p, 1)) * 6vh)); }
  .js .kante-licht--warm { opacity: calc(min(1, var(--p, 0) * 4)); transform: translateX(calc(-36vw + var(--p, 0) * 150vw)); }
}
