/* glasfaserbau.ch – 3D-Fassung: ein Glasfaserkabel vom Strassenschacht bis zur OTO-Dose.
   Inhalte wie im Onepager, erzählt entlang des Kabels. Bühne: js/szene.js, Konzept: docs/3d-konzept.md */

/* Inter, selbst ausgeliefert (SIL Open Font License, fonts/OFL-Inter.txt) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/inter-latin.woff2) format("woff2");
}

:root {
  /* Farben: hell ist Standard (Markenpalette wie css/style.css). Dunkel = der bisherige Auftritt,
     über den Schalter oben, gesetzt als data-theme="dark" auf <html> (Inline-Skript im <head>). */
  --grund: #F3F6FB;                      /* Seite und Bühne */
  --schleier: 255, 255, 255;             /* RGB der Flächen über der Szene, die Text lesbar halten */
  --panel: #FFFFFF;
  --panel-2: #EEF4FD;
  --linie: rgba(15, 23, 42, .10);
  --linie-stark: rgba(15, 23, 42, .17);
  --text: #1F2937;
  --text-neben: #4B5563;
  --titel: #111827;
  --blau: #0066FF;
  --blau-dunkel: #0052CC;
  --blau-text: #0052CC;                  /* kleine blaue Schrift auf Weiss: dunkleres Blau */
  --blau-hell: #EFF6FF;
  --claim: #0066FF;
  --faser: #D69A00;                      /* Faser als Linie, Punkt, Fläche: tiefes Gold */
  --faser-blass: rgba(214, 154, 0, .25);
  --faser-text: #8A5A00;                 /* Faser-Farbe als Schrift */
  --faser-auf: #111827;                  /* Schrift auf der Faser-Fläche */
  --licht: #0066FF;                      /* Hotspots */
  --gruen: #16A34A;
  /* Schemazeichnung FTTH (Inline-SVG im Rundum-Paket) */
  --schema-flaeche: #FFFFFF; --schema-geschoss: #F3F6FB; --schema-label: #E5EAF2; --schema-linie: #1F2937;
  --schema-text: #1F2937; --schema-titel: #111827; --schema-neben: #4B5563; --schema-gruen: #16A34A;
  --schema-faser: #D69A00; --schema-rot: #DC2626; --schema-boden: #9CA3AF;
  --flaeche: 255, 255, 255;              /* RGB der Karten (FAQ, Technik, Referenzen) */
  --flaeche-hover: 255, 255, 255;
  --flaeche-schatten: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .05);
  --akzent: #EAF2FF;                     /* Nummern, Chips, Zeit-Etiketten */
  --akzent-leicht: #EAF2FF;
  --akzent-rand: rgba(0, 102, 255, .24);
  --akzent-rand-leicht: rgba(0, 102, 255, .18);
  --karte-hover-rand: rgba(214, 154, 0, .6);
  --status-grund: rgba(255, 255, 255, .9);
  --fokus: #0066FF;
  --schatten-knopf: 0 6px 18px rgba(0, 102, 255, .26);
  --schatten-knopf-hover: 0 8px 24px rgba(0, 102, 255, .36);
  --nr-schatten: 0 0 0 4px rgba(0, 102, 255, .12), 0 4px 14px rgba(0, 102, 255, .30);
  --portal-schatten: 0 28px 70px rgba(15, 23, 42, .16), 0 0 0 1px rgba(15, 23, 42, .04), 0 0 60px rgba(0, 102, 255, .10);
  --karte-grund: #FFFFFF;                /* Detailkarte an den Stationen */
  --karte-schatten: 0 24px 60px rgba(15, 23, 42, .18), 0 0 0 1px rgba(0, 102, 255, .08);
  --foto-grund: #EEF2F7;
  --otdr-achse: rgba(75, 85, 99, .5);
  --otdr-kurve: #0066FF;
  --otdr-marke: #B07A00;
  --otdr-text: #4B5563;
  --hs-grund: rgba(255, 255, 255, .92);
  --hs-schatten: 0 0 0 4px rgba(0, 102, 255, .12), 0 2px 10px rgba(0, 82, 204, .35);
  --hs-label: rgba(255, 255, 255, .95);
  --hs-label-schatten: 0 4px 14px rgba(15, 23, 42, .10);
  --rail-glanz: 0 0 0 4px rgba(214, 154, 0, .22);
  --fortschritt: linear-gradient(90deg, var(--faser), var(--blau));
  --fortschritt-schein: none;
  --hinweis-licht: var(--blau);
  --logo-schein: none;
  --logo-1: #225283;
  --logo-2: #2F6FD0;
  --logo-3: #4C8EF0;
  --logo-tld: var(--blau);
  --buehne-glanz-1: rgba(0, 102, 255, .07);
  --buehne-glanz-2: rgba(214, 154, 0, .05);
  --buchung-schatten: 0 30px 80px rgba(0, 82, 204, .22), 0 0 0 1px rgba(0, 82, 204, .08);
  /* Buchungskarte hell: deckend und dunkler, damit weisse Schrift AA besteht (Weiss auf #0052CC 6.8:1) */
  --buchung-grund: linear-gradient(135deg, #0052CC, #003E9E);
  --buchung-neben: #fff;
  --buchung-pl: #fff;
  --rail-punkt: #6B7A90;                 /* noch nicht erreichte Stationen: Ring mind. 3:1 zur Szene */
  --rail-erreicht: #9A6A00;              /* erreichte Stationen: Gold mit dunklerem Goldrand, 3:1 zur Szene */
  --fuss-grund: #F7F9FC;
  --fuss-text: #4B5563;
  --fuss-titel: #111827;
  --fuss-linie: #E5E7EB;
  --fuss-neben: #4B5563;
  --fuss-hinweis: #6B7280;
  color-scheme: light;

  --radius-knopf: 8px;
  --radius-karte: 14px;
  --schrift: "Inter", system-ui, -apple-system, sans-serif;

  --nav-h: 68px;
  --links: clamp(24px, 6vw, 112px);
  --spalte: min(600px, 46vw);
  --hero-rechts: clamp(24px, 4vw, 64px);
}

/* Dunkel: die Werte des bisherigen Auftritts, unverändert */
:root[data-theme="dark"] {
  --grund: #050A14;
  --schleier: 5, 10, 20;
  --panel: #0B1527;
  --panel-2: #101D34;
  --linie: rgba(140, 170, 220, .16);
  --linie-stark: rgba(140, 170, 220, .30);
  --text: #C9D3E3;
  --text-neben: #9AA9C0;
  --titel: #F5F8FC;
  --blau-text: #74ADFF;
  --claim: #60A5FA;
  --faser: #F6C623;
  --faser-blass: rgba(246, 198, 35, .25);
  --faser-text: #F6C623;
  --faser-auf: #050A14;
  --licht: #A9D2FF;
  --gruen: #22C55E;
  --schema-flaeche: #0B1527; --schema-geschoss: #101D34; --schema-label: #1A2A45; --schema-linie: #AFC0DA;
  --schema-text: #C9D3E3; --schema-titel: #F5F8FC; --schema-neben: #9AA9C0; --schema-gruen: #22C55E;
  --schema-faser: #F6C623; --schema-rot: #F87171; --schema-boden: #4B5563;
  --flaeche: 11, 21, 39;
  --flaeche-hover: 16, 29, 52;
  --flaeche-schatten: none;
  --akzent: rgba(0, 102, 255, .16);
  --akzent-leicht: rgba(0, 102, 255, .14);
  --akzent-rand: rgba(116, 173, 255, .35);
  --akzent-rand-leicht: rgba(116, 173, 255, .25);
  --karte-hover-rand: rgba(246, 198, 35, .45);
  --status-grund: rgba(16, 29, 52, .8);
  --fokus: rgba(116, 173, 255, .7);
  --schatten-knopf: 0 6px 24px rgba(0, 102, 255, .35);
  --schatten-knopf-hover: 0 8px 30px rgba(0, 102, 255, .5);
  --nr-schatten: 0 0 0 4px rgba(0, 102, 255, .18), 0 0 20px rgba(0, 102, 255, .45);
  --portal-schatten: 0 34px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 102, 255, .18), 0 0 70px rgba(0, 102, 255, .22);
  --karte-grund: rgba(9, 17, 32, .97);
  --karte-schatten: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 102, 255, .12);
  --foto-grund: #0d1626;
  --otdr-achse: rgba(154, 169, 192, .45);
  --otdr-kurve: #A9D2FF;
  --otdr-marke: #F6C623;
  --otdr-text: #9AA9C0;
  --hs-grund: rgba(5, 10, 20, .55);
  --hs-schatten: 0 0 0 4px rgba(169, 210, 255, .12), 0 0 18px rgba(116, 173, 255, .55);
  --hs-label: rgba(5, 10, 20, .78);
  --hs-label-schatten: none;
  --rail-glanz: 0 0 0 4px rgba(246, 198, 35, .2), 0 0 14px rgba(169, 210, 255, .8);
  --fortschritt: linear-gradient(90deg, var(--faser), #fff 70%, var(--licht));
  --fortschritt-schein: 0 0 10px rgba(169, 210, 255, .8);
  --hinweis-licht: #fff;
  --logo-schein: drop-shadow(0 0 6px rgba(76, 142, 240, .35));
  --logo-1: #2F6FD0;
  --logo-2: #4C8EF0;
  --logo-3: #8CBEFF;
  --logo-tld: var(--blau-text);
  --buehne-glanz-1: rgba(0, 102, 255, .16);
  --buehne-glanz-2: rgba(246, 198, 35, .07);
  --buchung-schatten: 0 40px 120px rgba(0, 0, 0, .5), 0 0 80px rgba(0, 102, 255, .25);
  --buchung-grund: linear-gradient(135deg, rgba(0, 102, 255, .95), rgba(0, 72, 190, .95));
  --buchung-neben: rgba(255, 255, 255, .92);
  --buchung-pl: rgba(255, 255, 255, .9);
  --rail-punkt: rgba(140, 170, 220, .30);
  --rail-erreicht: var(--faser);
  --fuss-grund: #03070F;
  --fuss-text: #B7C2D3;
  --fuss-titel: #fff;
  --fuss-linie: #1C2738;
  --fuss-neben: #9AA9C0;
  --fuss-hinweis: #8796AD;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--grund); }
/* Abstand für den festen Kopf am Ziel statt als scroll-padding am Fenster: sonst gilt alles im Kopf
   als verdeckt, und Fokus auf Telefon, Knopf, Design-Schalter oder Login scrollt die Seite jedes Mal hoch */
main, main *, .footer * { scroll-margin-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--grund);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4 { color: var(--titel); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(36px, 4.4vw, 60px); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(28px, 2.8vw, 40px); font-weight: 750; letter-spacing: -.02em; }
h3 { font-size: 18px; font-weight: 650; }
p { margin: 0 0 1em; }
a { color: var(--blau-text); }
img { max-width: 100%; display: block; }
strong { color: var(--titel); }

.icon {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-neben); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: #111; padding: 8px 12px; }

/* ---------- Knopf ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blau); color: #fff;
  font: 650 16px/1.2 var(--schrift);
  padding: 16px 30px;
  border: 0; border-radius: var(--radius-knopf);
  box-shadow: var(--schatten-knopf);
  text-decoration: none; cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--blau-dunkel); box-shadow: var(--schatten-knopf-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, button:focus-visible {
  outline: 3px solid var(--fokus); outline-offset: 2px;
}
.btn--sm { padding: 10px 18px; font-size: 15px; }
.btn--light { background: #fff; color: var(--blau); box-shadow: none; }
.btn--light:hover { background: var(--blau-hell); box-shadow: none; }

/* ---------- Bühne (3D) ---------- */
.stage {
  /* feste Höhe (grosser Viewport): die Adressleiste auf dem Handy löst keinen Neuaufbau aus */
  position: fixed; inset: 0 0 auto 0; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 72% 58%, var(--buehne-glanz-1), transparent 70%),
    radial-gradient(40% 30% at 70% 70%, var(--buehne-glanz-2), transparent 70%),
    var(--grund);
}
.stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.is-3d .stage__canvas { opacity: 1; }
/* Ohne WebGL, hell: gezeichnete Faser (img/faser-hell.svg) auf hellem Grund, ruhig */
.no-3d .stage {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .6) 45%, rgba(255, 255, 255, 0) 100%),
    url(../img/faser-hell.svg) 70% 50% / cover no-repeat,
    radial-gradient(55% 60% at 70% 38%, rgba(0, 102, 255, .10), transparent 70%),
    var(--grund);
}
/* Ohne WebGL, dunkel: Standbild leuchtender Fasern (Higgsfield), ruhig */
:root[data-theme="dark"].no-3d .stage {
  background:
    linear-gradient(90deg, rgba(5, 10, 20, .95) 0%, rgba(5, 10, 20, .7) 45%, rgba(5, 10, 20, .25) 100%),
    url(../img/faser-poster-1600.webp) 70% 50% / cover no-repeat,
    var(--grund);
}
@media (max-width: 860px) {
  .no-3d .stage { background: linear-gradient(180deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, .85) 60%), url(../img/faser-hell.svg) 60% 0 / cover no-repeat, radial-gradient(70% 40% at 60% 20%, rgba(0, 102, 255, .10), transparent 70%), var(--grund); }
  :root[data-theme="dark"].no-3d .stage { background: linear-gradient(180deg, rgba(5, 10, 20, .2) 0%, rgba(5, 10, 20, .85) 60%), url(../img/faser-poster-800.webp) 60% 0 / cover no-repeat, var(--grund); }
}
/* Ruhige Fläche links (hell: weiss, dunkel: Nacht), damit Text immer lesbar bleibt */
.stage__shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(var(--schleier), .95) 0,
    rgba(var(--schleier), .94) calc(var(--links) + var(--spalte) + 24px),
    rgba(var(--schleier), .55) calc(var(--links) + var(--spalte) + 140px),
    rgba(var(--schleier), 0) calc(var(--links) + var(--spalte) + 320px));
  transition: opacity .6s ease;
}
/* Hell: Weiss über der Szene wirkt als Nebel, darum endet der Schleier kurz nach der Textspalte (Text bleibt auf .94) */
:root:not([data-theme="dark"]) .stage__shade {
  background: linear-gradient(90deg,
    rgba(var(--schleier), .95) 0,
    rgba(var(--schleier), .94) calc(var(--links) + var(--spalte) + 16px),
    rgba(var(--schleier), .4) calc(var(--links) + var(--spalte) + 80px),
    rgba(var(--schleier), 0) calc(var(--links) + var(--spalte) + 190px));
}
.stage__shade::after { /* oben und unten abdunkeln für Navigation und Fuss */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(var(--schleier), .55) 0, transparent 140px, transparent calc(100% - 120px), rgba(var(--schleier), .6) 100%);
}
.is-buchung .stage__shade { opacity: 1; }

/* ---------- Hotspots an den Stationen ---------- */
.hotspots { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.hs {
  position: absolute; left: 0; top: 0; pointer-events: auto;
  width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0;
  border: 0; background: none; cursor: pointer; border-radius: 50%;
  opacity: 0; transition: opacity .35s ease; will-change: transform;
}
.hs[data-sichtbar="1"] { opacity: 1; }
.hs[data-sichtbar="0"] { pointer-events: none; }
.hs__ring {
  position: absolute; inset: 11px; border-radius: 50%;
  border: 2px solid var(--licht); background: var(--hs-grund);
  box-shadow: var(--hs-schatten);
}
.hs__ring::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--licht); }
.hs::before {
  content: ""; position: absolute; inset: 11px; border-radius: 50%; border: 1px solid var(--licht);
  animation: hs-puls 2.4s ease-out infinite;
}
@keyframes hs-puls { from { transform: scale(1); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.hs__label {
  position: absolute; left: 40px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; font: 600 12px/1 var(--schrift); letter-spacing: .06em; text-transform: uppercase;
  color: var(--titel); background: var(--hs-label); border: 1px solid var(--linie-stark);
  padding: 6px 9px; border-radius: 6px; box-shadow: var(--hs-label-schatten);
}
/* Hell: Etikett der OTO-Dose links vom Ring, sonst deckt es die Dose zur Hälfte ab (dunkel wie bisher) */
:root:not([data-theme="dark"]) .hs--links .hs__label { left: auto; right: 40px; }
.hs[aria-expanded="true"] .hs__ring { background: var(--blau); }
.hs[aria-expanded="true"] .hs__label { opacity: 0; }

.karte {
  position: fixed; z-index: 60; width: min(320px, calc(100vw - 32px));
  background: var(--karte-grund); color: var(--text);
  border: 1px solid var(--linie-stark); border-radius: var(--radius-karte);
  box-shadow: var(--karte-schatten);
  padding: 16px 18px 18px; font-size: 14px; line-height: 1.5;
}
.karte[hidden] { display: none; }
.karte__titel { font-weight: 700; color: var(--titel); font-size: 16px; margin: 0 0 2px; padding-right: 28px; }
.karte__sub { color: var(--faser-text); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 10px; }
.karte dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; }
.karte dt { color: var(--text-neben); }
.karte dd { margin: 0; color: var(--titel); font-weight: 600; font-variant-numeric: tabular-nums; }
/* Fotos ganz zeigen (auch Hochformat), nicht in der Mitte abschneiden */
.karte img { width: 100%; height: 200px; object-fit: contain; border-radius: 8px; margin-top: 12px; background: var(--foto-grund); }
.karte figcaption { font-size: 12px; color: var(--text-neben); margin-top: 6px; }
.karte figure { margin: 0; }
.karte__zu {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text-neben); font: 400 22px/1 var(--schrift); cursor: pointer;
}
.karte__zu:hover { color: var(--titel); background: var(--panel-2); }
.karte svg.otdr { width: 100%; height: 86px; margin-top: 12px; display: block; background: rgba(0, 102, 255, .06); border-radius: 8px; }
.otdr__achse { stroke: var(--otdr-achse); }
.otdr__kurve { stroke: var(--otdr-kurve); }
.otdr__marke { stroke: var(--otdr-marke); }
.otdr__text { fill: var(--otdr-text); }
.karte__hinweis { font-size: 12px; color: var(--text-neben); margin: 10px 0 0; }

/* ---------- Stationsleiste rechts ---------- */
.rail {
  position: fixed; right: 28px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: none;
}
.rail { transition: opacity .4s ease; }
.rail[data-aus="1"] { opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s .4s; }
.rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; position: relative; z-index: 1; }
.rail a { display: flex; align-items: center; gap: 12px; flex-direction: row-reverse; text-decoration: none; color: var(--text-neben); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.rail__dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--rail-punkt); background: var(--grund); flex: none; transition: border-color .3s, background .3s, box-shadow .3s; }
.rail__txt { opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s; }
.rail:hover .rail__txt, .rail a:focus-visible .rail__txt, .rail a[aria-current="step"] .rail__txt { opacity: 1; transform: none; }
.rail a[data-erreicht="1"] .rail__dot { border-color: var(--rail-erreicht); background: var(--faser); }
.rail a[aria-current="step"] { color: var(--titel); }
.rail a[aria-current="step"] .rail__dot { box-shadow: var(--rail-glanz); }
.rail::before { content: ""; position: absolute; right: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--linie); }
.rail__fill { position: absolute; right: 5px; top: 6px; width: 2px; height: calc(100% - 12px); background: linear-gradient(var(--faser), var(--faser)); transform-origin: top; transform: scaleY(var(--fill, 0)); }
@media (min-width: 1100px) { .rail { display: block; } :root { --hero-rechts: 156px; } }

.fortschritt { position: fixed; left: 0; right: 0; top: var(--nav-h); height: 2px; z-index: 49; pointer-events: none; }
.fortschritt span { display: block; height: 100%; background: var(--fortschritt); transform-origin: left; transform: scaleX(var(--p, 0)); box-shadow: var(--fortschritt-schein); }
@media (min-width: 1100px) { .fortschritt { display: none; } }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(var(--schleier), .82);
  border-bottom: 1px solid var(--linie);
}
@supports (backdrop-filter: blur(1px)) { .nav { backdrop-filter: blur(10px); background: rgba(var(--schleier), .86); } }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--links); }
.nav__actions { display: flex; align-items: center; gap: 20px; }
.nav__tel { display: inline-flex; align-items: center; gap: 6px; color: var(--titel); font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav__tel .icon { color: var(--blau-text); }
.nav__login { color: var(--text-neben); font-size: 14px; text-decoration: none; white-space: nowrap; }
.nav__login:hover { color: var(--titel); text-decoration: underline; }
/* Schalter hell/dunkel: Mond im hellen Design, Sonne im dunklen */
.nav__design {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; flex: none;
  border: 1px solid var(--linie-stark); border-radius: var(--radius-knopf);
  background: transparent; color: var(--titel); cursor: pointer;
  transition: background .15s, border-color .15s;
}
/* nur mit echter Maus: auf Touch bliebe :hover nach dem Antippen kleben und sähe aus wie «eingeschaltet» */
@media (hover: hover) { .nav__design:hover { background: var(--panel-2); border-color: var(--blau-text); } }
.nav__design .icon { width: 20px; height: 20px; }
.nav__design .icon--sonne, :root[data-theme="dark"] .nav__design .icon--mond { display: none; }
:root[data-theme="dark"] .nav__design .icon--sonne { display: block; }
html:not([data-theme]) .nav__design { display: none; } /* ohne JavaScript kein toter Knopf */

/* Anordnung wie im offiziellen Logo (assets/logo.svg): Marke ca. 1.45 × Schriftgrösse hoch, Abstand ca. 0.27 em,
   optisch leicht unter der Mitte der Grossbuchstaben */
.logo { display: inline-flex; align-items: baseline; gap: 7px; text-decoration: none; }
.logo__icon { width: 39px; height: 18.5px; position: relative; top: 1px; flex: none; overflow: visible; filter: var(--logo-schein); }
.logo__icon stop:nth-child(1) { stop-color: var(--logo-1); }
.logo__icon stop:nth-child(2) { stop-color: var(--logo-2); }
.logo__icon stop:nth-child(3) { stop-color: var(--logo-3); }
/* Bildmarke unverändert, dazu ein Lichtimpuls, der wie durch Fasern durch die 13 Linien läuft */
.logo__licht path { stroke-dasharray: 10 100; stroke-dashoffset: 10; opacity: 0; animation: logo-licht 9s cubic-bezier(.45, 0, .2, 1) infinite; animation-delay: calc(.6s + var(--i) * 55ms); }
.logo:hover .logo__licht path, .logo:focus-visible .logo__licht path { animation: logo-licht-hover 1.1s cubic-bezier(.45, 0, .2, 1) both; animation-delay: calc(var(--i) * 35ms); }
@keyframes logo-licht {
  0% { stroke-dashoffset: 10; opacity: 0; }
  2% { opacity: .95; }
  16% { stroke-dashoffset: -100; opacity: .95; }
  17%, 100% { stroke-dashoffset: -100; opacity: 0; }
}
@keyframes logo-licht-hover {
  0% { stroke-dashoffset: 10; opacity: 0; }
  12% { opacity: 1; }
  92% { opacity: 1; }
  100% { stroke-dashoffset: -100; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .logo__licht { display: none; } }
.logo__text { font-weight: 700; font-size: 22px; color: var(--titel); letter-spacing: -.01em; }
.logo__tld { color: var(--logo-tld); }

/* ---------- Kapitel ---------- */
/* Hauptbereich lässt Klicks zur Bühne (Hotspots) durch, nur Inhalte nehmen sie an */
main { position: relative; z-index: 2; pointer-events: none; }
.booking { pointer-events: auto; }
.kap { position: relative; min-height: 100vh; padding: 20vh 0; display: flex; align-items: center; pointer-events: none; }
.kap--kurz { min-height: 80vh; padding: 14vh 0 18vh; }
.spalte { pointer-events: auto; margin-left: var(--links); width: var(--spalte); }

.station {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faser-text);
}
.station span {
  font-variant-numeric: tabular-nums; color: var(--faser-auf); background: var(--faser);
  border-radius: 4px; padding: 3px 6px; letter-spacing: .04em;
}
.station::after { content: ""; width: 56px; height: 2px; background: linear-gradient(90deg, var(--faser), transparent); }
.eyebrow { font-size: 14px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--blau-text); margin-bottom: 10px; }
.kap .btn { margin-top: 32px; }

/* Einblenden, wenn das Kabel ankommt (nur mit JS und Bewegung) */
.js-reveal .spalte > * { transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js-reveal .kap[data-warten] .spalte > * { opacity: 0; transform: translateY(28px); }
.js-reveal .spalte > *:nth-child(2) { transition-delay: .06s; }
.js-reveal .spalte > *:nth-child(3) { transition-delay: .12s; }
.js-reveal .spalte > *:nth-child(4) { transition-delay: .18s; }
.js-reveal .spalte > *:nth-child(n+5) { transition-delay: .24s; }

/* 1 Hero: links Text, rechts die Portal-Demo (ab 961 px zweispaltig) */
.hero { min-height: calc(100vh - var(--nav-h)); padding: 6vh 0 8vh; }
@media (min-width: 961px) {
  .hero {
    display: grid; align-items: center; column-gap: clamp(32px, 4vw, 72px);
    grid-template-columns: min(520px, 38vw) minmax(0, 1fr);
    padding: 5vh var(--hero-rechts) 7vh var(--links);
  }
  .hero .spalte { margin-left: 0; width: auto; }
  .hero__portal { width: 100%; max-width: min(680px, max(440px, calc((100vh - var(--nav-h) - 12vh - 160px) * 1.06))); justify-self: end; }
}
@media (max-width: 960px) {
  .hero { flex-direction: column; align-items: stretch; }
  .hero__portal { margin: 48px 0 0 var(--links); width: var(--spalte); }
}
/* H1 mit langem Wort «Mehrfamilienhäuser»: Grösse so, dass es auf jeder Breite in die Spalte passt */
.hero h1 { margin-bottom: 22px; font-size: clamp(30px, 3.5vw, 56px); overflow-wrap: break-word; hyphens: manual; }
.hero__h1-main, .hero__claim { display: block; text-wrap: balance; }
.hero__claim { margin-top: .18em; font-size: .62em; line-height: 1.2; color: var(--claim); font-weight: 700; letter-spacing: -.01em; }
.hero__lead { font-size: 18px; color: var(--text); max-width: 560px; margin-bottom: 24px; }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--text);
  background: var(--status-grund); border: 1px solid var(--linie-stark); border-radius: 999px;
  padding: 5px 13px; margin-bottom: 22px;
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gruen); box-shadow: 0 0 0 3px rgba(34, 197, 94, .22), 0 0 10px rgba(34, 197, 94, .8); }
/* Partner-Siegel GGA Maur im ersten Bildschirm (Bauleiter 20.10.2026): neben der Status-Pille, ohne Scrollen sichtbar */
.hero__pills { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 18px; }
.hero__pills .status { margin: 0; }
.status--partner { text-decoration: none; color: var(--titel); padding-left: 8px; }
.status--partner:hover { border-color: var(--faser-text); }
.status__logo { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 6px; background: #fff; }
.status__logo img { display: block; height: 34px; width: auto; }
:root[data-theme="dark"] .status__logo { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.status--partner span:last-child { font-weight: 600; }
.checks { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.checks li { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--titel); }
.checks .icon { color: var(--gruen); stroke-width: 3; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.cta__tel { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--titel); text-decoration: none; }
.cta__tel .icon { color: var(--blau-text); }
.scrollhint { display: flex; align-items: center; gap: 12px; margin: 44px 0 0; font-size: 13px; color: var(--text-neben); letter-spacing: .04em; }
.scrollhint span { width: 2px; height: 38px; background: linear-gradient(var(--faser), transparent); position: relative; overflow: hidden; border-radius: 2px; }
.scrollhint span::after { content: ""; position: absolute; left: 0; top: -12px; width: 2px; height: 12px; background: var(--hinweis-licht); box-shadow: 0 0 8px var(--licht); animation: hint 1.8s ease-in infinite; }
@keyframes hint { to { transform: translateY(54px); } }
@media (prefers-reduced-motion: reduce) { .scrollhint span::after, .hs::before { animation: none; } }

/* Portal-Demo im Hero: Station 00, «Was der Bauleiter sieht». Liegt immer über der 3D-Bühne. */
.hero__portal { pointer-events: auto; position: relative; z-index: 3; min-width: 0; }
.station--portal { margin-bottom: 14px; }
.portal { margin: 0; min-width: 0; max-width: 100%; background: #fff; border: 1px solid var(--linie-stark); border-radius: 14px; overflow: hidden; text-align: left;
  box-shadow: var(--portal-schatten); }
.portal__frame { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #F3F4F6; border-bottom: 1px solid #E5E7EB; }
.portal__frame span { width: 10px; height: 10px; border-radius: 50%; background: #D1D5DB; }
.portal__frame small { margin-left: 10px; font-size: 12px; color: #4B5563; background: #fff; border-radius: 6px; padding: 3px 10px; flex: 1; }
.portal__tabs { display: flex; gap: 4px; padding: 8px 10px 0; background: #0B1220; overflow-x: auto; scrollbar-width: none; }
.portal__tabs::-webkit-scrollbar { display: none; }
.portal__tabs button { appearance: none; border: 0; background: transparent; color: #CBD5E1; font: inherit; font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 8px 8px 0 0; cursor: pointer; white-space: nowrap; flex: 0 0 auto; }
.portal__tabs button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.portal__tabs button[aria-selected="true"] { color: #111827; background: #F1F3F7; }
.portal__tabs button:focus-visible { outline: 2px solid #60A5FA; outline-offset: -2px; }
.portal__view { position: relative; background: #F1F3F7; }
.portal__panel img { display: block; width: 100%; height: auto; }
.portal__panel { animation: portal-in .25s ease; }
@keyframes portal-in { from { opacity: .4; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .portal__panel { animation: none; } }
.portal__note { margin: 0; padding: 9px 14px; font-size: 12px; color: #4B5563; border-top: 1px solid #E5E7EB; background: #F9FAFB; }

/* Station 01: kurzer Text zur Szene */
.station__text { font-size: 18px; line-height: 1.6; color: var(--text); max-width: 520px; margin: 0; }


/* 3 Problem */
.prose p { font-size: 19px; color: var(--text); padding-left: 18px; border-left: 2px solid var(--faser); margin-bottom: 18px; }

/* 4 Rundum-Paket */
.promises { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.promises li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; }
.promises__nr {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--akzent); color: var(--blau-text); border: 1px solid var(--akzent-rand);
  font-weight: 700; display: grid; place-items: center; font-size: 15px;
}
.foto figcaption { font-size: 14px; color: var(--text-neben); margin-top: 10px; }
/* Schemazeichnung FTTH (Bauleiter 20.10.2026): Vorschau in der Spalte, Vergrössern im Dialog */
.schema { margin: 28px 0 0; }
.schema__bild { display: block; width: 100%; padding: 0; border: 1px solid var(--linie-stark); border-radius: 12px; background: var(--schema-flaeche); cursor: zoom-in; overflow: hidden; }
.schema__bild svg { display: block; width: 100%; height: auto; }
.schema figcaption { font-size: 14px; color: var(--text-neben); margin-top: 10px; }
.schema__zoom { padding: 0; border: 0; background: none; font: inherit; color: var(--blau-text); font-weight: 600; cursor: pointer; text-decoration: underline; }
.schema figcaption a { color: var(--blau-text); font-weight: 600; }
.schema-dialog { width: min(96vw, 1400px); max-width: none; padding: 16px; border: 1px solid var(--linie-stark); border-radius: 14px; background: var(--schema-flaeche); color: var(--text); }
.schema-dialog::backdrop { background: rgba(5, 10, 20, .7); }
.schema-dialog__inhalt svg { display: block; width: 100%; height: auto; }
.schema-dialog__close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--linie-stark); background: var(--panel); color: var(--titel); font-size: 22px; line-height: 1; cursor: pointer; }
@media (max-width: 860px) { .schema-dialog { width: 100vw; max-height: 100svh; padding: 44px 8px 12px; border-radius: 0; } .schema-dialog__inhalt { overflow-x: auto; } .schema-dialog__inhalt svg { width: 1000px; max-width: none; } }

/* 5 Für wen */
.cards { display: grid; gap: 14px; margin-top: 28px; }
.card {
  display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start;
  background: rgba(var(--flaeche), .82); border: 1px solid var(--linie); border-radius: var(--radius-karte);
  box-shadow: var(--flaeche-schatten);
  padding: 22px 24px; transition: border-color .2s, background .2s;
}
.card:hover { border-color: var(--karte-hover-rand); background: rgba(var(--flaeche-hover), .9); }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--text); margin-bottom: 10px; }
.card__note { font-size: 14px; font-weight: 600; color: var(--titel); background: var(--akzent); border-radius: 6px; padding: 8px 12px; }
.card__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.card__link:hover { text-decoration: underline; }
.chip {
  width: 48px; height: 48px; border-radius: 12px; background: var(--akzent-leicht); color: var(--blau-text);
  border: 1px solid var(--akzent-rand-leicht); display: grid; place-items: center;
}
.chip .icon { width: 24px; height: 24px; }

/* 6 So läuft es: Ablauf als Faser */
.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 0; position: relative; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 20px; position: relative; padding-bottom: 26px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: linear-gradient(var(--faser), var(--faser-blass)); }
.step:last-child::before { display: none; }
.step__nr {
  position: relative; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%; background: var(--blau); color: #fff;
  display: grid; place-items: center; font-weight: 700; box-shadow: var(--nr-schatten);
}
.step__time { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--blau-text); background: var(--akzent-leicht); border-radius: 999px; padding: 3px 10px; margin: 8px 0 8px; }
.step h3 { margin-bottom: 4px; }
.step p { color: var(--text-neben); font-size: 15px; margin: 0; }

/* 7 Referenzen */
.refs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.ref { background: rgba(var(--flaeche), .85); border: 1px solid var(--linie); border-radius: var(--radius-karte); box-shadow: var(--flaeche-schatten); padding: 12px 12px 18px; }
.ref__foto { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 20%; border-radius: 9px; margin-bottom: 14px; }
.ref h3 { font-size: 16px; padding: 0 4px; }
.ref dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 14px; padding: 0 4px; }
.ref dt { color: var(--text-neben); }
.ref dd { margin: 0; font-weight: 600; color: var(--titel); }
/* Partner GGA Maur */
.partner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 22px 0 0; padding: 14px 18px; border: 1px solid var(--linie-stark); border-radius: 12px; background: rgba(var(--flaeche), .88); }
.partner__label { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faser-text); }
.partner__logo { display: inline-flex; align-items: center; flex: 0 0 auto; padding: 6px 10px; border-radius: 8px; background: #fff; }
.partner__logo img { display: block; height: 56px; width: auto; }
:root[data-theme="dark"] .partner__logo { box-shadow: 0 0 0 1px rgba(255, 255, 255, .10); }
.partner__text { flex: 1 1 260px; min-width: 0; color: var(--text); font-size: 15px; line-height: 1.45; }
.partner__text p { margin: 0; }
.partner__text strong { color: var(--titel); }
.quote { margin: 32px 0 40px; padding: 28px; background: rgba(var(--flaeche), .85); border-left: 3px solid var(--faser); border-radius: 0 var(--radius-karte) var(--radius-karte) 0; }

/* 8 Technik */
.tech { border: 1px solid var(--linie-stark); border-radius: var(--radius-karte); margin-top: 24px; background: rgba(var(--flaeche), .9); box-shadow: var(--flaeche-schatten); }
.tech summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 650; color: var(--titel);
  display: flex; justify-content: space-between; align-items: center;
}
.tech summary::-webkit-details-marker { display: none; }
.tech summary .icon { color: var(--blau-text); transition: transform .2s; }
.tech[open] summary .icon { transform: rotate(180deg); }
.tech__body { padding: 0 22px 22px; }
.tech__list { display: grid; grid-template-columns: 120px 1fr; gap: 10px 18px; margin: 0 0 16px; font-size: 15px; }
.tech__list dt { font-weight: 650; color: var(--faser-text); }
.tech__list dd { margin: 0; }
.tech .muted { margin: 0; font-size: 14px; }
.foto { margin: 28px 0 0; }
.foto--quer img { aspect-ratio: 3 / 2; max-height: none; }
/* Hochformat ganz zeigen, nicht beschneiden: das Gerät steht mittig und gerade */
.foto--hoch { max-width: 460px; }
.foto.foto--hoch img { max-height: none; height: auto; aspect-ratio: auto; object-fit: initial; }
.foto img { width: 100%; max-height: 440px; object-fit: cover; object-position: 50% 30%; border-radius: 12px; border: 1px solid var(--linie-stark); }

/* 9 Einwände */
.faq { margin: 24px 0 0; display: grid; gap: 12px; }
.faq > div { background: rgba(var(--flaeche), .88); box-shadow: var(--flaeche-schatten); border: 1px solid var(--linie); border-radius: var(--radius-karte); padding: 18px 22px; }
.faq dt { font-weight: 700; color: var(--titel); margin-bottom: 4px; }
.faq dd { margin: 0; }

/* ---------- 10 Buchung ---------- */
.booking { position: relative; padding: 18vh 0 14vh; color: #fff; }
.booking::before { /* ruhige, dunkle Fläche über der Szene, nach oben weich auslaufend */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--schleier), 0) 0, rgba(var(--schleier), .82) 22vh, rgba(var(--schleier), .9) 100%);
}
.booking h2, .booking h3 { color: #fff; }
.booking__grid {
  display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: start;
  background: var(--buchung-grund);
  border-radius: 20px; padding: 48px; box-shadow: var(--buchung-schatten);
}
.booking .station { color: #fff; }
.booking .station span { background: #FFE27A; color: #002B6B; }
.booking .station::after { background: linear-gradient(90deg, #FFE27A, transparent); }
.booking__side > p { color: var(--buchung-neben); }
.pl { display: flex; align-items: center; gap: 14px; margin: 24px 0; }
.pl__photo { width: 80px; height: 80px; flex: none; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .18); overflow: hidden; }
.pl__photo img { width: 100%; height: 100%; object-fit: cover; }
.pl strong { display: block; font-size: 17px; color: #fff; }
.pl span { font-size: 14px; color: var(--buchung-pl); }
.booking__tel { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 24px; font-weight: 800; text-decoration: none; }
.booking__tel:hover { text-decoration: underline; }

.callback { margin-top: 32px; padding: 24px; border-radius: var(--radius-karte); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28); }
.callback h3 { margin-bottom: 4px; }
.callback > p { font-size: 14px; color: #fff; } /* volles Weiss: im Rückruf-Kasten sonst unter 4.5:1 */
.callback label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 12px; color: #fff; }
.callback input {
  display: block; width: 100%; margin-top: 4px;
  font: 400 16px var(--schrift); padding: 12px 14px;
  border: 0; border-radius: var(--radius-knopf); color: #111827; background: #fff;
}
.callback .btn { width: 100%; justify-content: center; margin-top: 4px; }
.callback__msg { margin: 12px 0 0; font-size: 14px; font-weight: 600; min-height: 1em; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Buchung (eigener Ablauf, Daten ans Cockpit) – helle Karte, wie bisher */
.bk { background: #fff; color: #1F2937; border-radius: var(--radius-karte); padding: 32px; min-height: 480px; color-scheme: light; }
.bk .muted { color: #4B5563; }
.bk a { color: var(--blau); }
.bk__test { background: #FEF3C7; color: #78350F; font-size: 13px; font-weight: 600; border-radius: 6px; padding: 8px 12px; margin-bottom: 20px; }
.bk__label { font-weight: 700; color: #111827; font-size: 17px; margin-bottom: 16px; }
.bk__days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 20px; }
.bk__day, .bk__slot {
  font: 600 15px/1.2 var(--schrift); color: #111827; background: #fff;
  border: 2px solid #E5E7EB; border-radius: var(--radius-knopf); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.bk__day { padding: 10px 4px; text-align: center; }
.bk__day small { display: block; font-weight: 500; font-size: 12px; color: #4B5563; margin-bottom: 2px; }
.bk__day:hover, .bk__slot:hover { border-color: var(--blau); }
.bk__day[aria-selected="true"] { border-color: var(--blau); background: var(--blau-hell); color: var(--blau-dunkel); }
.bk__day:disabled { opacity: .4; cursor: not-allowed; }
.bk__slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; min-height: 100px; align-content: start; }
.bk__group { grid-column: 1 / -1; font-size: 13px; font-weight: 600; color: #4B5563; margin: 6px 0 0; }
.bk__slot { padding: 12px 8px; }
.bk__slot:hover { background: var(--blau); color: #fff; }
.bk__empty { grid-column: 1 / -1; color: #4B5563; }
.bk__hint { font-size: 14px; margin: 20px 0 0; }
.bk__back { background: none; border: 0; padding: 0; margin-bottom: 16px; font: 600 14px var(--schrift); color: var(--blau); cursor: pointer; }
.bk__back:hover { text-decoration: underline; }
.bk fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.bk legend { font-size: 14px; font-weight: 600; color: #111827; margin-bottom: 8px; padding: 0; }
.bk__roles, .bk__art { display: flex; flex-wrap: wrap; gap: 8px; }
.bk__roles label, .bk__art label { position: relative; }
.bk__roles input, .bk__art input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bk__roles span, .bk__art span {
  display: inline-block; padding: 10px 14px; border: 2px solid #E5E7EB; border-radius: var(--radius-knopf);
  font-size: 14px; font-weight: 600; color: #111827; cursor: pointer;
}
.bk__roles input:checked + span, .bk__art input:checked + span { border-color: var(--blau); background: var(--blau-hell); color: var(--blau-dunkel); }
.bk__roles input:focus-visible + span, .bk__art input:focus-visible + span { outline: 3px solid var(--blau); outline-offset: 2px; }
.bk :focus-visible { outline-color: var(--blau); }
.booking__side :focus-visible { outline-color: #fff; }
.bk__roles .bk__andere {
  position: static; opacity: 1; inset: auto; cursor: text; margin-top: 4px;
  flex-basis: 100%; font: 400 16px var(--schrift); color: #111827; background: #fff;
  padding: 11px 13px; border: 2px solid #E5E7EB; border-radius: var(--radius-knopf);
}
.bk__andere:focus { border-color: var(--blau); outline: 0; }
.bk__andere[aria-invalid="true"] { border-color: #DC2626; }
.bk__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 18px; }
.bk__grid label { font-size: 14px; font-weight: 600; color: #111827; }
.bk__full { grid-column: 1 / -1; }
.bk__grid input {
  display: block; width: 100%; margin-top: 4px; font: 400 16px var(--schrift); color: #111827; background: #fff;
  padding: 11px 13px; border: 2px solid #E5E7EB; border-radius: var(--radius-knopf);
}
.bk__grid input:focus { border-color: var(--blau); outline: 0; }
.bk__grid input[aria-invalid="true"] { border-color: #DC2626; }
.bk__submit { width: 100%; justify-content: center; }
.bk__submit[disabled] { opacity: .6; cursor: wait; }
.bk__msg { color: #DC2626; font-size: 14px; font-weight: 600; margin: 12px 0 0; min-height: 1em; }
.bk__done { text-align: center; padding: 40px 8px; outline: 0; }
.bk__ok { width: 64px; height: 64px; border-radius: 50%; background: #DCFCE7; color: var(--gruen); display: grid; place-items: center; margin: 0 auto 16px; }
.bk__ok .icon { width: 32px; height: 32px; stroke-width: 3; }
.bk__done h3 { color: #111827; font-size: 24px; }
.bk__summary { font-size: 17px; font-weight: 600; color: #111827; }
.bk__ics { margin-top: 8px; }

/* ---------- 11 Fuss ---------- */
.footer { position: relative; z-index: 2; background: var(--fuss-grund); color: var(--fuss-text); padding: 56px 0 24px; font-size: 14px; border-top: 1px solid var(--linie); }
.footer a { color: var(--fuss-titel); text-decoration: none; display: inline-block; padding: 5px 0; }
.footer p { line-height: 1.5; }
.footer a:hover { text-decoration: underline; }
.footer .footer__h { color: var(--fuss-titel); font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.footer address { font-style: normal; margin-top: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr .8fr; gap: 32px; }
.logo--footer .logo__text { color: var(--fuss-titel); }
.logo--footer .logo__icon { filter: none; }
.footer a.logo--footer { display: inline-flex; gap: 7px; }
.footer__bottom { border-top: 1px solid var(--fuss-linie); margin-top: 40px; padding-top: 20px; color: var(--fuss-neben); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer__hinweis { color: var(--fuss-hinweis); }

/* ---------- Responsiv ---------- */
@media (max-width: 1180px) {
  .booking__grid { grid-template-columns: 340px 1fr; padding: 36px; gap: 36px; }
}
@media (max-width: 960px) {
  .booking__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  /* Tablet: Telefon nur als Symbol, damit «Objekt-Check buchen» neben dem Design-Schalter einzeilig bleibt */
  .nav__tel-text { display: none; }
  .nav__tel { width: 40px; height: 40px; justify-content: center; border: 1px solid var(--linie-stark); border-radius: var(--radius-knopf); }
  .nav .btn--sm .icon { display: none; }
  .nav__actions { gap: 12px; }
}

/* Handy und Tablet hoch: Fenster auf die Station, danach Text auf dunkler Fläche */
@media (max-width: 860px) {
  :root { --nav-h: 58px; --links: 16px; --spalte: calc(100vw - 32px); }
  /* auch die hell-Regel (:root:not([data-theme="dark"]) .stage__shade) aufheben: gleiche Spezifität, sonst liegt der Schleier über der ganzen Bühne */
  .stage__shade, :root:not([data-theme="dark"]) .stage__shade { background: none; }
  .stage__shade::after { background: linear-gradient(180deg, rgba(var(--schleier), .5) 0, transparent 120px); }
  .kap { display: block; min-height: 0; padding: 50svh 0 0; }
  .kap .spalte {
    position: relative; width: auto; margin: 0; padding: 36px 16px 56px;
    background: linear-gradient(180deg, rgba(var(--schleier), 0) 0, rgba(var(--schleier), .93) 28px, rgba(var(--schleier), .96) 100%);
  }
  .kap--kurz { min-height: 0; padding-top: 42svh; }
  .hero { min-height: calc(100svh - var(--nav-h)); padding: 30svh 0 0; display: flex; flex-direction: column; justify-content: flex-end; }
  .hero .spalte { padding-bottom: 8px; }
  .hero__portal { width: auto; margin: 0; padding: 24px 16px 48px; background: rgba(var(--schleier), .96); }
  .portal__tabs button { font-size: 12px; padding: 7px 10px; }
  .station { margin-bottom: 12px; }
  .hero__lead { font-size: 16px; line-height: 1.55; }
  .checks { flex-direction: column; gap: 4px; margin-bottom: 22px; font-size: 15px; }
  .cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .cta .btn { justify-content: center; }
  .cta__tel { justify-content: center; }
  .scrollhint { margin-top: 28px; justify-content: center; }
  .prose p { font-size: 17px; }
  .kap .btn { width: 100%; justify-content: center; }
  .card { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .refs { grid-template-columns: 1fr; }
  .tech__list { grid-template-columns: 1fr; gap: 2px; }
  .tech__list dd { margin-bottom: 10px; }
  .booking { padding: 30svh 0 64px; }
  .booking .wrap { padding: 0 12px; }
  .booking__grid { padding: 24px 16px; border-radius: 16px; }
  .bk { padding: 20px 16px; }
  .bk__days { gap: 6px; }
  .bk__day { font-size: 14px; padding: 8px 2px; }
  .bk__grid { grid-template-columns: 1fr; }
  .js-reveal .kap[data-warten] .spalte > * { transform: translateY(18px); }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .logo__text { font-size: 17px; }
  .logo__icon { width: 30px; height: 14.3px; }
  .nav__tel-text { display: none; }
  .nav__tel { width: 40px; height: 40px; justify-content: center; border: 1px solid var(--linie-stark); border-radius: var(--radius-knopf); }
  .nav .btn--sm { padding: 9px 12px; font-size: 14px; white-space: nowrap; }
  .nav .btn--sm .icon { display: none; }
  .nav__actions { gap: 8px; }
  .nav__login { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .hs__label { display: none; }
  .karte { max-height: calc(100dvh - 86px); overflow: auto; }
}
@media (max-width: 480px) {
  .nav .logo__icon { display: none; }
  /* Kopfzeile kompakt, damit Telefon, Knopf und Design-Schalter nebeneinander passen */
  .nav__inner { gap: 12px; }
  .nav__actions { gap: 6px; }
  .nav__design { width: 36px; height: 36px; }
}
@media (max-width: 420px) {
  .logo__text { font-size: 16px; }
  .nav .btn--sm { padding: 8px 10px; font-size: 13px; }
  .nav__tel { width: 36px; height: 36px; }
}
/* Schmale Handys (375 bis 411 px): Knopftext bleibt «Objekt-Check buchen» wie bisher; Platz für den
   Design-Schalter macht das Telefon-Symbol im Kopf (die Nummer steht im Hero, in der Buchung und im Fuss) */
@media (min-width: 375px) and (max-width: 411px) {
  .nav__tel { display: none; }
}
/* Unter 375 px: im Kopf nur «Objekt-Check», vorgelesen wird weiter «Objekt-Check buchen» */
@media (max-width: 374px) {
  .nav__cta-zusatz { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 370px) {
  .logo__text { font-size: 15px; }
}
/* Sehr schmal (320 px): Telefon steht im Hero, in der Buchung und im Fuss */
@media (max-width: 359px) {
  .nav__tel { display: none; }
}
