/* Öffentliche Webseite Fibre-Hub (M32, live seit 27.10.2026) - eigenständig, ohne externe Schriften/Skripte.
   Farben wie die Anwendung (Navy #14284a, Brand #2f6fed, Sky #7dd3fc).
   Zwei Varianten aus denselben Seiten: V1 dunkler Einstieg (Standard), V2 hell mit weißem Grund
   (<body data-variante="hell">, Wunsch David 13.10.2026) - nur die Farbwerte unten unterscheiden sich. */
:root {
  --navy: #14284a; --navy-dunkel: #0b1830; --brand: #2f6fed; --brand-dunkel: #2559c9; --sky: #7dd3fc;
  --text: #1f2937; --text-leise: #4b5563; --linie: #e5e7eb; --flaeche: #f5f7fb; --karte: #ffffff;
  --pruefen-bg: #fff7e6; --pruefen-fg: #7a4b00; --pruefen-rand: #f3c56b;
  /* Kopfzeile und Einstieg (V1: immer dunkel) */
  --kopf-bg: rgba(11, 24, 48, .92); --kopf-rand: transparent; --marke-f: #ffffff; --marke-h: var(--sky);
  --symbol-fg: rgba(255, 255, 255, .85); --symbol-rand: rgba(255, 255, 255, .28); --symbol-hover: rgba(255, 255, 255, .14);
  --symbol-hover-fg: #ffffff; --tipp-bg: #ffffff; --tipp-fg: var(--navy);
  --hero-bg: radial-gradient(1200px 600px at 50% -10%, #1e3a6b 0%, var(--navy) 45%, var(--navy-dunkel) 100%);
  --hero-text: #ffffff; --hero-leise: rgba(255, 255, 255, .85); --hero-akzent: var(--sky); --hinweis: rgba(255, 255, 255, .7);
  --hinweis-hover: #ffffff;
  --netz-farbe: 125, 211, 252; --netz-linie: .38; --netz-knoten: .42;
  --kontakt-bg: linear-gradient(135deg, #e8effc 0%, #d9e5fa 100%); --kontakt-text: var(--navy);
  --kontakt-leise: #3f4e68; --kontakt-rand: #c8d7f3;
  /* Karten, Schatten, Akzent-Hauch */
  --oberflaeche: #ffffff; --brand-hauch: rgba(47, 111, 237, .1); --brand-rand: rgba(47, 111, 237, .45);
  --knopf-glas: rgba(47, 111, 237, .72); --knopf-glas-hover: rgba(47, 111, 237, .84); --knopf-glas-aktiv: rgba(37, 89, 201, .88); --knopf-kante: rgba(255, 255, 255, .22); --knopf-saettigung: 180%;
  --schatten-klein: 0 1px 2px rgba(20, 40, 74, .05), 0 2px 6px rgba(20, 40, 74, .04);
  --schatten: 0 2px 4px rgba(20, 40, 74, .05), 0 10px 28px rgba(20, 40, 74, .09);
  /* Faden und Bilder in "So einfach geht's" */
  --faden-grund: #d5dce8; --faden-glanz: rgba(47, 111, 237, .55); --knoten-ring: rgba(47, 111, 237, .16);
  --bild-grund: #f8fafd; --bild-strasse: #e7ecf4; --bild-text: #5b6577;
  --netz-1: #8fb3f5; --netz-2: #6cc9bb; --netz-3: #b7a2ef;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --text: #e5e7eb; --text-leise: #9ca3af; --linie: #1f2a3d; --flaeche: #0b1220; --karte: #111a2b;
    --pruefen-bg: #2a2010; --pruefen-fg: #f5c46b; --pruefen-rand: #6b5420;
    --faden-grund: #26334a; --knoten-ring: rgba(47, 111, 237, .3); --bild-grund: #0e1626; --bild-strasse: #1a2538; --bild-text: #9ca3af;
    --netz-1: #5d86d6; --netz-2: #3f9e91; --netz-3: #8c78cc; --oberflaeche: #111a2b; --brand-hauch: rgba(47, 111, 237, .2); --knopf-glas: rgba(64, 120, 236, .3); --knopf-glas-hover: rgba(64, 120, 236, .4); --knopf-glas-aktiv: rgba(64, 120, 236, .5); --knopf-kante: rgba(255, 255, 255, .14); --knopf-saettigung: 120%; --kontakt-bg: linear-gradient(135deg, rgba(47, 111, 237, .16) 0%, rgba(125, 211, 252, .07) 100%); --kontakt-text: #e5e7eb;
    --kontakt-leise: #aab4c3; --kontakt-rand: rgba(125, 211, 252, .2); 
    --schatten-klein: 0 1px 2px rgba(0, 0, 0, .35); --schatten: 0 2px 4px rgba(0, 0, 0, .3), 0 12px 30px rgba(0, 0, 0, .35); color-scheme: dark; }
}
:root[data-theme="dark"] { --text: #e5e7eb; --text-leise: #9ca3af; --linie: #1f2a3d; --flaeche: #0b1220; --karte: #111a2b;
  --pruefen-bg: #2a2010; --pruefen-fg: #f5c46b; --pruefen-rand: #6b5420;
  --faden-grund: #26334a; --knoten-ring: rgba(47, 111, 237, .3); --bild-grund: #0e1626; --bild-strasse: #1a2538; --bild-text: #9ca3af;
  --netz-1: #5d86d6; --netz-2: #3f9e91; --netz-3: #8c78cc; --oberflaeche: #111a2b; --brand-hauch: rgba(47, 111, 237, .2); --knopf-glas: rgba(64, 120, 236, .3); --knopf-glas-hover: rgba(64, 120, 236, .4); --knopf-glas-aktiv: rgba(64, 120, 236, .5); --knopf-kante: rgba(255, 255, 255, .14); --knopf-saettigung: 120%; --kontakt-bg: linear-gradient(135deg, rgba(47, 111, 237, .16) 0%, rgba(125, 211, 252, .07) 100%); --kontakt-text: #e5e7eb;
    --kontakt-leise: #aab4c3; --kontakt-rand: rgba(125, 211, 252, .2); 
  --schatten-klein: 0 1px 2px rgba(0, 0, 0, .35); --schatten: 0 2px 4px rgba(0, 0, 0, .3), 0 12px 30px rgba(0, 0, 0, .35); color-scheme: dark; }

/* V2 hell: immer heller Grund (auch bei dunkel eingestelltem System) - bewusst nur eine Darstellung */
:root:has(body[data-variante="hell"]) { color-scheme: light; }
body[data-variante="hell"] {
  /* Rückmeldung David 13.10.2026: Grund nicht reinweiß, mehr Kontrast - weiße Karten mit Schatten auf blaugrauem Grund,
     Abschnitte wechseln zwischen Grund und Weiß; Kontaktbalken sanft statt kräftigem Blau */
  --text: #172338; --text-leise: #4a566b; --linie: #dde4ee; --flaeche: #edf1f7; --karte: #ffffff; --oberflaeche: #ffffff;
  --pruefen-bg: #fff7e6; --pruefen-fg: #7a4b00; --pruefen-rand: #f3c56b;
  --kopf-bg: rgba(255, 255, 255, .92); --kopf-rand: #dde4ee; --marke-f: var(--navy); --marke-h: var(--brand);
  --symbol-fg: var(--navy); --symbol-rand: #cdd6e4; --symbol-hover: #eaf1fe; --symbol-hover-fg: var(--brand);
  --tipp-bg: var(--navy); --tipp-fg: #ffffff;
  --hero-bg: radial-gradient(1100px 560px at 72% -12%, #d6e3fa 0%, #e4ebf7 48%, #edf1f7 100%);
  --hero-text: var(--navy); --hero-leise: #43516b; --hero-akzent: var(--brand); --hinweis: #5d6a82; --hinweis-hover: var(--brand);
  --netz-farbe: 47, 111, 237; --netz-linie: .24; --netz-knoten: .6;
  --kontakt-bg: linear-gradient(135deg, #e6eefc 0%, #d5e2f9 100%); --kontakt-text: var(--navy); --kontakt-leise: #3f4e68;
  --kontakt-rand: #c8d7f3;
  --brand-hauch: rgba(47, 111, 237, .1); --brand-rand: rgba(47, 111, 237, .45);
  --knopf-glas: rgba(47, 111, 237, .72); --knopf-glas-hover: rgba(47, 111, 237, .84); --knopf-glas-aktiv: rgba(37, 89, 201, .88); --knopf-kante: rgba(255, 255, 255, .22); --knopf-saettigung: 180%;
  --schatten-klein: 0 1px 2px rgba(20, 40, 74, .07), 0 3px 10px rgba(20, 40, 74, .06);
  --schatten: 0 2px 5px rgba(20, 40, 74, .07), 0 14px 34px rgba(20, 40, 74, .12);
  --faden-grund: #cfd8e6; --faden-glanz: rgba(47, 111, 237, .45); --knoten-ring: rgba(47, 111, 237, .14);
  --bild-grund: #ffffff; --bild-strasse: #e9eef5; --bild-text: #4f5a6d;
  --netz-1: #8fb3f5; --netz-2: #6cc9bb; --netz-3: #b7a2ef;
  color-scheme: light;
}
body[data-variante="hell"] .kopf { box-shadow: 0 4px 18px rgba(20, 40, 74, .06); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
       color: var(--text); background: var(--flaeche); line-height: 1.6; }
a { color: var(--brand); }
.breite { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }
.breite > * { min-width: 0; }

/* Kopf */
.kopf { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--kopf-bg); backdrop-filter: blur(6px);
        border-bottom: 1px solid var(--kopf-rand); }
.kopf .breite { display: flex; align-items: center; justify-content: space-between; height: 60px; }
/* Kopfzeile über die volle Breite: Marke links, Sprachen und Login rechts, mit Abstand zum Rand (Wunsch David 26.10.2026) */
.kopf .breite { max-width: none; padding-inline: max(clamp(20px, 3.5vw, 48px), env(safe-area-inset-left, 0px)) max(clamp(20px, 3.5vw, 48px), env(safe-area-inset-right, 0px)); }
.marke { font-weight: 800; font-size: 1.35rem; text-decoration: none; letter-spacing: -.01em; }
.marke .f { color: var(--marke-f); } .marke .h { color: var(--marke-h); }
.kopf nav { display: flex; gap: 18px; align-items: center; }
.knopf { display: inline-block; padding: .65rem 1.2rem; border-radius: .6rem; font-weight: 600; text-decoration: none; }
/* Hauptknopf als Glas wie in iOS (Rückmeldung David 13.10.2026: kein Hochglanz, kein Schimmer): leicht
   durchscheinend und unscharf hinterlegt, gleichmäßig feine Kante (keine zusätzliche Lichtkante oben - die wirkte
   wie ein ungleich dicker Rand), weicher Schatten; auf dunklem Grund deutlich zurückgenommen */
.knopf.primaer { position: relative; color: #fff; border-radius: .8rem;
  background: var(--knopf-glas); border: 1px solid var(--knopf-kante);
  -webkit-backdrop-filter: blur(16px) saturate(var(--knopf-saettigung)); backdrop-filter: blur(16px) saturate(var(--knopf-saettigung));
  box-shadow: 0 6px 20px rgba(15, 30, 60, .16), 0 1px 3px rgba(15, 30, 60, .12);
  transition: background .25s ease, box-shadow .25s ease, transform .25s ease; }
.knopf.primaer:hover { background: var(--knopf-glas-hover); transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(15, 30, 60, .2), 0 1px 3px rgba(15, 30, 60, .12); }
.knopf.primaer:active { transform: translateY(0); background: var(--knopf-glas-aktiv); }
.knopf.primaer:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .knopf.primaer { transition: none; } }

/* Anmelden als Personen-Symbol, beim Darüberfahren erscheint darunter "Login" (Wunsch David 13.10.2026) */
.nutzer { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
          border-radius: 999px; color: var(--symbol-fg); border: 1px solid var(--symbol-rand); text-decoration: none;
          transition: background .2s, color .2s, border-color .2s; }
.nutzer svg { width: 21px; height: 21px; }
.nutzer:hover, .nutzer:focus-visible { background: var(--symbol-hover); color: var(--symbol-hover-fg); border-color: var(--symbol-hover-fg); }
.nutzer:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.nutzer-tipp { position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, -4px); padding: 3px 9px;
               border-radius: 6px; background: var(--tipp-bg); color: var(--tipp-fg); font-size: .72rem; font-weight: 600;
               letter-spacing: .02em; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s;
               box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.nutzer-tipp::before { content: ""; position: absolute; left: 50%; top: -4px; width: 8px; height: 8px; background: inherit;
                       transform: translateX(-50%) rotate(45deg); }
.nutzer:hover .nutzer-tipp, .nutzer:focus-visible .nutzer-tipp { opacity: 1; transform: translate(-50%, 0); }

/* Hero: füllt den Bildschirm (abzüglich Kopfzeile), unten ein Hinweis zum Weiterscrollen */
.hero { position: relative; overflow: hidden; color: var(--hero-text); display: flex; flex-direction: column; justify-content: center;
        min-height: calc(100vh - 60px); background: var(--hero-bg); }
@supports (height: 100svh) { .hero { min-height: calc(100svh - 60px); } }
.hero { --knopf-glas: rgba(64, 120, 236, .3); --knopf-glas-hover: rgba(64, 120, 236, .4); --knopf-glas-aktiv: rgba(64, 120, 236, .5); --knopf-kante: rgba(255, 255, 255, .14); --knopf-saettigung: 120%; }
body[data-variante="hell"] .hero { --knopf-glas: rgba(47, 111, 237, .72); --knopf-glas-hover: rgba(47, 111, 237, .84); --knopf-glas-aktiv: rgba(37, 89, 201, .88); --knopf-kante: rgba(255, 255, 255, .22); --knopf-saettigung: 180%; }
.hero canvas.netz { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 2s ease; }
.hero canvas.netz.sichtbar { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero canvas.netz { transition: none; } }
.hero .hero-inhalt { position: relative; padding-block: 72px 110px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.12; margin: 0 0 20px; max-width: 800px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--hero-akzent); }
.hero p.unter { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--hero-leise); max-width: 660px; margin: 0 0 30px; }
.hero .aktionen { display: flex; gap: 12px; flex-wrap: wrap; }

/* Leistungen im Einstieg - Alternative zu den Highlight-Kacheln (Idee Oli, Wunsch David 23.10.2026): eine Glasfaser mit
   sechs Knoten, ein Lichtpuls läuft sie entlang und lässt die Punkte nacheinander aufleuchten (seite.js, Teil 1b) */
.hero { --leist-bg: rgba(11, 24, 48, .42); --leist-rand: rgba(255, 255, 255, .14); --leist-faser: rgba(255, 255, 255, .18);
        --leist-knoten: rgba(255, 255, 255, .55); --leist-glanz: rgba(125, 211, 252, .55); }
body[data-variante="hell"] .hero { --leist-bg: rgba(255, 255, 255, .74); --leist-rand: #dde4ee; --leist-faser: #d5dce8;
        --leist-knoten: #b9c6dc; --leist-glanz: rgba(47, 111, 237, .45); }
.hero-text { min-width: 0; }
.leistungen { --l-text: var(--hero-text); --l-leise: var(--hero-leise); --l-akzent: var(--hero-akzent); }
.leistungen { position: relative; min-width: 0; padding: 22px 24px 22px 22px; border-radius: 18px; background: var(--leist-bg);
              border: 1px solid var(--leist-rand); backdrop-filter: blur(8px) saturate(140%); -webkit-backdrop-filter: blur(8px) saturate(140%);
              box-shadow: 0 18px 50px rgba(11, 24, 48, .18); }
.leistungen ul { position: relative; list-style: none; margin: 0; padding: 0 0 0 34px; display: grid; gap: 4px; }
.leistungen ul::before { content: ""; position: absolute; left: 11px; top: 16px; bottom: 16px; width: 2px; border-radius: 2px;
                         background: var(--leist-faser); }
.leistungen li { position: relative; padding: 8px 0; transition: opacity .5s ease, transform .5s ease; }
.leistungen.bewegt li { opacity: .58; }   /* nur mit laufendem Skript gedimmt - ohne Skript alles voll lesbar */
.leistungen li strong { display: block; font-size: 1rem; line-height: 1.3; color: var(--l-text); }
.leistungen .leistung-zeile { display: block; font-size: .88rem; line-height: 1.4; color: var(--l-leise); }
.leistung-knoten { position: absolute; left: -28px; top: 12px; width: 12px; height: 12px; border-radius: 999px; box-sizing: border-box;
                   background: var(--leist-bg); border: 2px solid var(--leist-knoten); transition: background .4s, border-color .4s, box-shadow .4s; }
.leistungen.bewegt li.an { opacity: 1; transform: translateX(3px); }
.leistungen li.an .leistung-knoten, .leistungen li.war .leistung-knoten { border-color: var(--l-akzent); }
.leistungen li.an .leistung-knoten { background: var(--l-akzent); box-shadow: 0 0 0 5px var(--brand-hauch), 0 0 16px var(--leist-glanz); }
.leistungen-puls { position: absolute; left: 51px; top: 30px; width: 10px; height: 34px; margin: -17px 0 0 -4px; border-radius: 999px;
                   pointer-events: none; opacity: 0; background: radial-gradient(closest-side, var(--l-akzent), transparent);
                   filter: blur(1px); transition: top .9s cubic-bezier(.6, 0, .25, 1), opacity .4s; }
.leistungen.laeuft .leistungen-puls { opacity: 1; }
@media (min-width: 980px) {
  .hero .hero-inhalt { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; align-items: center; }
}
@media (max-width: 979px) { .hero .leistungen { margin-top: 34px; max-width: 560px; } }
@media (max-width: 480px) { .leistungen { padding: 16px 16px 16px 14px; } .leistungen li strong { font-size: .96rem; } }
@media (prefers-reduced-motion: reduce) { .leistungen li, .leistung-knoten { transition: none; } .leistungen-puls { display: none; } }
/* Einstieg aufgelockert, Leistungen dort ohne Lichtpuls, nur mit Überschriften und etwas kleiner (Wunsch David 26.10.2026): breiter,
   mehr Abstand zwischen Text und Liste, mehr Luft in der Liste */
.hero .breite { max-width: 1200px; }
@media (min-width: 980px) { .hero .hero-inhalt { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 88px; } }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.hero p.unter { line-height: 1.6; margin-bottom: 36px; }
.hero .leistungen { padding: 24px 30px 24px 26px; }
.hero .leistungen ul { gap: 4px; }
.hero .leistungen li { padding: 8px 0; }
.hero .leistungen li strong { font-size: .96rem; font-weight: 600; }
.hero .leistung-knoten { top: 12px; }
@media (max-width: 480px) { .hero .leistungen { padding: 18px 18px 18px 14px; } .hero .leistungen li { padding: 7px 0; } }
/* Ganz sachte Animation (Wunsch David 26.10.2026): die Knoten leuchten langsam nacheinander auf und klingen weich ab, ohne
   Lichtpuls und ohne den Text abzudunkeln - alle 3 s der nächste, 18 s je Durchlauf, je ca. 2 s an- und 2,5 s abschwellend.
   Aus bei prefers-reduced-motion und "Bewegung reduzieren" (html.a11y-ruhig) */
@keyframes knoten-sacht {
  0%, 25%, 100% { background: var(--leist-bg); border-color: var(--leist-knoten); box-shadow: 0 0 0 0 transparent; }
  11% { background: var(--l-akzent); border-color: var(--l-akzent); box-shadow: 0 0 0 4px var(--brand-hauch), 0 0 12px var(--leist-glanz); }
}
/* Aktiver Punkt: Schrift etwas größer (scale - die Liste springt nicht), die übrigen leicht abgeblendet; alle drei
   Animationen laufen im selben Takt (--verz je Punkt). Mouseover hält den Ablauf an und hebt den Punkt unter der Maus
   genauso hervor. Ohne Animation (Bewegung reduzieren) bleiben alle Punkte voll sichtbar. */
@keyframes punkt-sacht { 0%, 25%, 100% { opacity: .6; } 11% { opacity: 1; } }
@keyframes schrift-sacht { 0%, 25%, 100% { transform: none; } 11% { transform: scale(1.08); } }
.hero .leistungen li strong { transform-origin: left center; transition: transform .35s ease; }
.hero .leistungen li { --verz: 0s; animation: punkt-sacht 18s ease-in-out infinite var(--verz); transition: opacity .35s ease; }
.hero .leistungen li strong { animation: schrift-sacht 18s ease-in-out infinite var(--verz); }
.hero .leistungen li .leistung-knoten { animation: knoten-sacht 18s ease-in-out infinite var(--verz); }
.hero .leistungen li:nth-child(2) { --verz: 3s; }
.hero .leistungen li:nth-child(3) { --verz: 6s; }
.hero .leistungen li:nth-child(4) { --verz: 9s; }
.hero .leistungen li:nth-child(5) { --verz: 12s; }
.hero .leistungen li:nth-child(6) { --verz: 15s; }
.hero .leistungen ul:hover li, .hero .leistungen ul:hover li strong, .hero .leistungen ul:hover .leistung-knoten { animation: none; }
.hero .leistungen ul:hover li { opacity: .6; }
.hero .leistungen ul:hover li:hover { opacity: 1; }
.hero .leistungen ul:hover li:hover strong { transform: scale(1.08); }
.hero .leistungen ul:hover li:hover .leistung-knoten { background: var(--l-akzent); border-color: var(--l-akzent);
                                                      box-shadow: 0 0 0 4px var(--brand-hauch), 0 0 12px var(--leist-glanz); }
/* Kasten im Einstieg durchsichtiger, damit er sich ins Bild einfügt (Wunsch David 26.10.2026) */
.hero { --leist-bg: rgba(11, 24, 48, .22); --leist-rand: rgba(255, 255, 255, .09); }
body[data-variante="hell"] .hero { --leist-bg: rgba(255, 255, 255, .4); --leist-rand: rgba(221, 228, 238, .65); }
.hero .leistungen { box-shadow: 0 10px 30px rgba(11, 24, 48, .07); backdrop-filter: blur(4px) saturate(115%);
                    -webkit-backdrop-filter: blur(4px) saturate(115%); }
@media (prefers-reduced-motion: reduce) { .hero .leistungen li, .hero .leistungen li strong, .hero .leistungen li .leistung-knoten { animation: none; } }

/* Variante 3: eigener Abschnitt über den Kacheln - gleiche Faser, zweispaltig, Knoten mit Symbol, volle Texte */
.leistungen-gross { --l-text: var(--text); --l-leise: var(--text-leise); --l-akzent: var(--brand); --leist-bg: var(--karte);
                    --leist-rand: var(--linie); --leist-faser: var(--faden-grund); --leist-knoten: var(--brand-rand); --leist-glanz: var(--faden-glanz);
                    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 56px; margin-top: 26px; padding: 0;
                    background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (max-width: 820px) { .leistungen-gross { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.leistungen-gross ul { padding-left: 64px; gap: 12px; }
.leistungen-gross ul::before { left: 20px; top: 28px; bottom: 28px; }
.leistungen-gross li { padding: 10px 0 12px; }
.leistungen-gross.bewegt li { opacity: .7; }   /* volle Texte: weniger stark gedimmt */
.leistungen-gross li strong { font-size: 1.06rem; margin-bottom: 4px; }
.leistungen-gross .leistung-zeile { font-size: .95rem; line-height: 1.55; }
.leistungen-gross .leistung-knoten { left: -64px; top: 4px; width: 42px; height: 42px; display: grid; place-items: center;
                                      background: var(--karte); color: var(--l-akzent); }
.leistungen-gross .leistung-knoten svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8;
                                          stroke-linecap: round; stroke-linejoin: round; }
.leistungen-gross li.an .leistung-knoten { color: #fff; }
.leistungen-gross .leistungen-puls { width: 16px; height: 60px; margin: -30px 0 0 -7px; }
.scroll-hinweis { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column;
                  align-items: center; gap: 2px; color: var(--hinweis); text-decoration: none; font-size: .8rem; }
.scroll-hinweis:hover { color: var(--hinweis-hover); }
.scroll-hinweis svg { animation: hinweis 2.2s ease-in-out infinite; }
@keyframes hinweis { 0%, 100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(6px); opacity: 1; } }

/* Aufbau beim Scrollen: ohne Skript bzw. bei reduzierter Bewegung sofort sichtbar */
.mit-aufbau .aufbau { opacity: .35; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.mit-aufbau .aufbau.sichtbar { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .scroll-hinweis svg { animation: none; } }

/* Abschnitte */
section.abschnitt { padding-block: 80px; }
section.abschnitt.alt { background: var(--karte); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 10px; color: var(--text); text-wrap: balance; }
.einleitung { color: var(--text-leise); max-width: 680px; margin: 0 0 36px; font-size: 1.05rem; }
.zweispaltig { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 820px) { .zweispaltig { grid-template-columns: 1fr; } }

/* Zielgruppen (Anfragende, Netzbetreiber, Generalunternehmer): Kopf bleibt beim Scrollen stehen, die Punkte erscheinen
   nacheinander (Wunsch David 13.10.2026; zweite Runde: etwas langsamer - 0,7 s je Punkt, 220 ms Abstand) */
.eyebrow { display: inline-block; margin-bottom: 8px; font-size: .74rem; font-weight: 700; letter-spacing: .09em;
           text-transform: uppercase; color: var(--brand); }
@media (min-width: 821px) { .zg-kopf { position: sticky; top: 96px; } }
ul.vorteile { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
ul.vorteile li { position: relative; padding: 13px 16px 13px 50px; background: var(--oberflaeche); border: 1px solid var(--linie);
                 border-radius: 12px; box-shadow: var(--schatten-klein); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
ul.vorteile li::before { content: ""; position: absolute; left: 14px; top: 13px; width: 24px; height: 24px; border-radius: 999px;
                         background: var(--brand-hauch); }
ul.vorteile li::after { content: ""; position: absolute; left: 21px; top: 20px; width: 10px; height: 5px;
                        border-left: 2.2px solid var(--brand); border-bottom: 2.2px solid var(--brand); transform: rotate(-45deg); }
ul.vorteile li:hover { transform: translateX(4px); border-color: var(--brand-rand); box-shadow: var(--schatten); }
.mit-nacheinander [data-nacheinander] > li { opacity: 0; transform: translateY(18px); transition: none; }
.mit-nacheinander [data-nacheinander].da > li { opacity: 1; transform: none;
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1), box-shadow .2s ease, border-color .2s ease; }
.mit-nacheinander [data-nacheinander].da > li:hover { transform: translateX(4px); }

/* Sicherheit: vier Schichten als Ringe um die Daten; Ringe zeichnen sich von innen nach außen, Zeigen auf einen Eintrag
   hebt seinen Ring hervor (und umgekehrt) */
.schichten { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px; align-items: center; }
.schichten-bild svg { display: block; width: 100%; height: auto; overflow: visible; }
.ring { fill: none; stroke: var(--brand); stroke-width: 28; stroke-dasharray: 100; stroke-dashoffset: 0;
        transform: rotate(-90deg); transform-origin: 160px 160px; transition: stroke-opacity .25s ease; }
.ring[data-schicht="1"] { stroke-opacity: .5; } .ring[data-schicht="2"] { stroke-opacity: .36; }
.ring[data-schicht="3"] { stroke-opacity: .24; } .ring[data-schicht="4"] { stroke-opacity: .14; }
.ring.aktiv { stroke-opacity: .85; }
.ring-text { fill: var(--text); font: 700 9px system-ui, sans-serif; letter-spacing: .14em; pointer-events: none; }
.kern { fill: var(--brand); filter: drop-shadow(0 4px 10px rgba(47, 111, 237, .45)); }
.kern-schloss { stroke: #ffffff; }
.schichten-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.schichten-liste > li { position: relative; padding: 14px 18px 14px 46px; border-radius: 12px; border: 1px solid transparent;
                      cursor: default; transition: background .2s, border-color .2s, box-shadow .2s; }
.schichten-liste > li::before { content: ""; position: absolute; left: 16px; top: 19px; width: 14px; height: 14px; border-radius: 999px;
                              background: var(--brand); }
.schichten-liste > li[data-schicht="1"]::before { opacity: .55; } .schichten-liste > li[data-schicht="2"]::before { opacity: .42; }
.schichten-liste > li[data-schicht="3"]::before { opacity: .3; } .schichten-liste > li[data-schicht="4"]::before { opacity: .2; }
.schichten-liste > li.aktiv { background: var(--oberflaeche); border-color: var(--linie); box-shadow: var(--schatten); }
.schichten-liste h3 { margin: 0 0 4px; font-size: 1.05rem; }
.schichten-liste p { margin: 0; color: var(--text-leise); font-size: .95rem; }
/* Merkmale je Schicht als kleine Marken (Erweiterung 22.10.2026) */
.merkmale { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.merkmale li { font-size: .78rem; font-weight: 600; line-height: 1.3; padding: 4px 10px; border-radius: 999px; color: var(--text);
               background: var(--brand-hauch); border: 1px solid transparent; }
.schichten-liste > li.aktiv .merkmale li { border-color: var(--brand-rand); }
.mit-nacheinander .schichten.da .ring { transition: stroke-dashoffset .8s ease, stroke-opacity .25s ease; }
.mit-nacheinander .schichten.da .ring[data-schicht="2"] { transition-delay: .25s, 0s; }
.mit-nacheinander .schichten.da .ring[data-schicht="3"] { transition-delay: .5s, 0s; }
.mit-nacheinander .schichten.da .ring[data-schicht="4"] { transition-delay: .75s, 0s; }
.mit-nacheinander .schichten:not(.da) .ring { stroke-dashoffset: 100; }
.mit-nacheinander .schichten.da .ring-text { transition: opacity .5s ease 1.2s; }
.mit-nacheinander .schichten:not(.da) .ring-text { opacity: 0; }
@media (max-width: 820px) {
  .schichten { grid-template-columns: 1fr; gap: 24px; }
  .schichten-bild { max-width: 260px; justify-self: center; width: 100%; }
}

/* Highlights unter dem Einstieg (22.10.2026): sechs Kacheln, 3 / 2 / 1 Spalten */
.highlights { padding-block: 64px; }
.highlights h2 { margin-bottom: 28px; }
.highlight-raster { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .highlight-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .highlight-raster { grid-template-columns: 1fr; } }
.highlight-raster > li { padding: 20px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px;
                         transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
body[data-variante="hell"] .highlight-raster > li { background: var(--flaeche); }
.highlight-raster > li:hover, .mit-nacheinander .highlight-raster.da > li:hover { transform: translateY(-3px); border-color: var(--brand-rand); box-shadow: var(--schatten); }
.highlight-symbol { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px;
                    background: var(--brand-hauch); color: var(--brand); }
.highlight-symbol svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.highlight-raster h3 { margin: 0 0 6px; font-size: 1.04rem; color: var(--text); text-wrap: balance; }
.highlight-raster p { margin: 0; color: var(--text-leise); font-size: .93rem; }

/* Sprachwahl im Kopf */
.sprachen { display: flex; gap: 2px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.sprachen a { color: var(--symbol-fg); text-decoration: none; padding: 5px 7px; border-radius: 7px; opacity: .7; }
.sprachen a:hover, .sprachen a:focus-visible { opacity: 1; background: var(--symbol-hover); color: var(--symbol-hover-fg); }
.sprachen a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* "So einfach geht's": Faden mit Knoten in der Mitte, Text und Bild wechseln die Seite.
   Schmal: Faden links, Bild unter dem Text. Ohne Skript: einfache Linie, alles sichtbar. */
#so-gehts .einleitung { margin-bottom: 48px; }
.faden-weg { position: relative; }
.faden { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; display: none; }
.mit-faden .faden { display: block; }
.faden-grund { fill: none; stroke: var(--faden-grund); stroke-width: 2; }
.faden-licht { fill: none; stroke: var(--brand); stroke-width: 2.6; stroke-linecap: round; filter: drop-shadow(0 0 4px var(--faden-glanz)); }
.faden-kopf { r: 5px; fill: var(--brand); stroke: var(--karte); stroke-width: 2; opacity: 0; transition: opacity .3s;
              filter: drop-shadow(0 0 6px var(--faden-glanz)); }
.faden-kopf.an { opacity: 1; }
.schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 64px; position: relative; }
.schritte::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--faden-grund); }
.mit-faden .schritte::before { display: none; }
.schritt { display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); align-items: center; }
.schritt-text { grid-column: 1; grid-row: 1; text-align: right; }
.schritt-knoten { grid-column: 2; grid-row: 1; justify-self: center; }
.schritt-bild { grid-column: 3; grid-row: 1; justify-self: start; width: 100%; max-width: 340px; }
.schritt:nth-child(even) .schritt-text { grid-column: 3; text-align: left; }
.schritt:nth-child(even) .schritt-bild { grid-column: 1; justify-self: end; }
.schritt-text h3 { margin: 0 0 6px; font-size: 1.2rem; text-wrap: balance; }
.schritt-text p { margin: 0; color: var(--text-leise); max-width: 400px; display: inline-block; }
.schritt-knoten { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center;
                  font-weight: 700; background: var(--flaeche); color: var(--brand); border: 2px solid var(--brand);
                  font-variant-numeric: tabular-nums; }
.mit-faden .schritt-knoten { color: var(--text-leise); border-color: var(--faden-grund);
                             transition: background .4s, color .4s, border-color .4s, box-shadow .4s; }
.mit-faden .schritt.erreicht .schritt-knoten { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 0 0 7px var(--knoten-ring); }
.bewegt .schritt.erreicht .schritt-knoten::after { content: ""; position: absolute; inset: -2px; border-radius: 999px;
  border: 2px solid var(--brand); animation: knoten-welle 1.1s ease-out 1 forwards; }
@keyframes knoten-welle { from { transform: scale(1); opacity: .8; } to { transform: scale(2.1); opacity: 0; } }
.bewegt .schritt-text, .bewegt .schritt-bild { transition: opacity .7s ease, transform .7s ease; }
.bewegt .schritt:not(.erreicht) .schritt-text, .bewegt .schritt:not(.erreicht) .schritt-bild { opacity: .32; transform: translateY(18px); }
.bewegt .schritt-bild { transition-delay: .12s; }

@media (max-width: 759px) {
  .schritte { gap: 44px; }
  .schritte::before { left: 22px; }
  .schritt { grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 16px; align-items: start; }
  .schritt-knoten { grid-column: 1; grid-row: 1; }
  .schritt-text, .schritt:nth-child(even) .schritt-text { grid-column: 2; grid-row: 1; text-align: left; padding-top: 6px; }
  .schritt-bild, .schritt:nth-child(even) .schritt-bild { grid-column: 2; grid-row: 2; justify-self: start; }
}

/* Bilder zu den Schritten (Inhalt bleibt ohne Skript vollständig sichtbar; Bewegung nur mit .bewegt) */
.bild { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: var(--schatten); }
.b-grund { fill: var(--bild-grund); stroke: var(--linie); }
.b-strasse { fill: none; stroke: var(--bild-strasse); stroke-width: 6; stroke-linecap: round; }
.b-luftlinie { fill: none; stroke: var(--brand); stroke-width: 1.5; stroke-dasharray: 4 5; }
.b-pin path { fill: var(--brand); }
.b-pin text { fill: #fff; font: 700 10px system-ui, sans-serif; text-anchor: middle; }
.b-text { fill: var(--bild-text); font: 500 10px ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.b-text-gross { fill: var(--bild-text); font: 600 10.5px system-ui, sans-serif; }
.b-netz { fill: none; stroke-width: 4; stroke-linecap: round; opacity: .55; }
.b-netz-1 { stroke: var(--netz-1); } .b-netz-2 { stroke: var(--netz-2); } .b-netz-3 { stroke: var(--netz-3); }
.b-route { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.b-luecke { fill: none; stroke: var(--brand); stroke-width: 2; stroke-dasharray: 3 4; }
.b-punkt { fill: var(--bild-grund); stroke: var(--brand); stroke-width: 2.5; }
.b-uebergabe { fill: var(--bild-grund); stroke: var(--text); stroke-width: 2; }
.bewegt .b-pin { transition: transform .55s cubic-bezier(.3, 1.6, .5, 1), opacity .3s; }
.bewegt .b-pin-b { transition-delay: .3s; }
.bewegt .b-luftlinie, .bewegt .b-koord { transition: opacity .6s .8s; }
.bewegt .schritt:not(.erreicht) .b-pin { transform: translateY(-18px); opacity: 0; }
.bewegt .schritt:not(.erreicht) .b-luftlinie, .bewegt .schritt:not(.erreicht) .b-koord { opacity: 0; }
.bewegt .b-route { transition: stroke-dashoffset 1s ease .2s; }
.bewegt .b-route-2 { transition-delay: 1.35s; }
.bewegt .b-luecke, .bewegt .b-uebergabe, .bewegt .b-legende { transition: opacity .4s 1.15s; }
.bewegt .b-ziel { transition: opacity .4s 2.2s; }
.bewegt .schritt:not(.erreicht) .b-route { stroke-dashoffset: 100; }
.bewegt .schritt:not(.erreicht) .b-luecke, .bewegt .schritt:not(.erreicht) .b-uebergabe,
.bewegt .schritt:not(.erreicht) .b-legende, .bewegt .schritt:not(.erreicht) .b-ziel { opacity: 0; }

/* Ergebnis-Karte (Schritt 3) */
.ergebnis { background: var(--bild-grund); border: 1px solid var(--linie); border-radius: 14px; padding: 16px 18px; font-size: .9rem;
             box-shadow: var(--schatten); }
.ergebnis-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px;
                 font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-leise); }
.ergebnis-pdf { font-weight: 700; letter-spacing: .04em; color: var(--brand); border: 1.5px solid var(--brand); border-radius: 5px; padding: 0 6px; }
.ergebnis dl { margin: 0; display: grid; grid-template-columns: 1fr auto; row-gap: 6px; column-gap: 12px; }
.ergebnis dt { color: var(--text-leise); }
.ergebnis dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.ergebnis-balken { display: flex; height: 8px; border-radius: 99px; overflow: hidden; margin-top: 12px; background: var(--bild-strasse); gap: 2px; }
.ergebnis-balken span { display: block; height: 100%; flex: 0 0 auto; width: var(--anteil); }
.ergebnis-balken .netz { background: var(--brand); } .ergebnis-balken .luecke { background: #f59e0b; } .ergebnis-balken .erschl { background: var(--netz-2); }
.ergebnis-legende { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: .74rem; color: var(--text-leise); }
.ergebnis-legende i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: 0; }
.bewegt .ergebnis-balken span { transition: width .9s ease .25s; }
.bewegt .schritt:not(.erreicht) .ergebnis-balken span { width: 0; }

/* Auftrag (Schritt 4): Stationen haken sich nacheinander ab */
.auftrag { background: var(--bild-grund); border: 1px solid var(--linie); border-radius: 14px; padding: 14px 18px; margin: 0;
           list-style: none; display: grid; gap: 2px; font-size: .9rem; box-shadow: var(--schatten); }
.auftrag li { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.auftrag li + li { border-top: 1px dashed var(--linie); }
.auftrag .haken-kreis { flex: none; width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center;
                        background: var(--brand); color: #fff; }
.auftrag .haken-kreis svg { width: 13px; height: 13px; }
.bewegt .auftrag .haken-kreis { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), background .3s; }
.bewegt .auftrag li:nth-child(2) .haken-kreis { transition-delay: .35s; }
.bewegt .auftrag li:nth-child(3) .haken-kreis { transition-delay: .7s; }
.bewegt .auftrag li:nth-child(4) .haken-kreis { transition-delay: 1.05s; }
.bewegt .auftrag li:nth-child(5) .haken-kreis { transition-delay: 1.4s; }
.bewegt .schritt:not(.erreicht) .auftrag .haken-kreis { transform: scale(0); }

@media (prefers-reduced-motion: reduce) {
  .bewegt .schritt-knoten::after { animation: none; }
}

/* Kontakt */
.kontakt { background: var(--kontakt-bg); color: var(--kontakt-text); border: 1px solid var(--kontakt-rand); border-radius: 18px;
           padding: 40px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
           box-shadow: var(--schatten); }
.kontakt h2 { color: var(--kontakt-text); }
.kontakt p { color: var(--kontakt-leise); margin: 0; max-width: 560px; }

/* Fuß: mittig - Rechtliches, darunter Copyright */
footer.fuss { padding-block: 34px; padding-inline: 20px; color: var(--text-leise); font-size: .88rem; display: flex;
              flex-direction: column; align-items: center; gap: 8px; text-align: center; }
footer.fuss nav { display: flex; gap: 18px; }

/* Anfrage-Fenster (hidden-Attribut muss "display: flex" schlagen) */
[hidden] { display: none !important; }
.modal { position: fixed; inset: 0; z-index: 1050; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-hintergrund { position: absolute; inset: 0; background: rgba(5, 12, 26, .65); backdrop-filter: blur(3px); }
.modal-fenster { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto;
                 background: var(--karte); color: var(--text); border-radius: 16px; padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
body[data-variante="hell"] .modal-fenster { background: #fff; }
.modal-fenster h2 { font-size: 1.35rem; margin: 0 0 16px; }
.modal-zu { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 1.6rem; line-height: 1;
            color: var(--text-leise); cursor: pointer; }
#anfrage_form { display: flex; flex-direction: column; gap: 14px; }
#anfrage_form label { display: flex; flex-direction: column; gap: 5px; font-size: .88rem; font-weight: 600; }
#anfrage_form input[type=text], #anfrage_form input[type=email], #anfrage_form input[type=tel], #anfrage_form textarea {
  font: inherit; font-weight: 400; padding: .55rem .7rem; border: 1px solid var(--linie); border-radius: 8px;
  background: var(--flaeche); color: var(--text); }
body[data-variante="hell"] #anfrage_form input[type=text], body[data-variante="hell"] #anfrage_form input[type=email],
body[data-variante="hell"] #anfrage_form input[type=tel], body[data-variante="hell"] #anfrage_form textarea { background: var(--karte); }
#anfrage_form input:focus, #anfrage_form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.felder { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .felder { grid-template-columns: 1fr; } }
.rolle { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.rolle legend { font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
#anfrage_form .rolle label, #anfrage_form .einwilligung { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; }
#anfrage_form .einwilligung input { margin-top: 4px; flex: none; }
.optional { font-weight: 400; color: var(--text-leise); }
.lockfeld { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formular-fehler { color: #b91c1c; margin: 0; font-size: .9rem; }
.formular-erfolg { display: grid; gap: .4rem; padding: .5rem 0 .25rem; }
.formular-erfolg p { margin: 0; }
button.knopf { border: 0; cursor: pointer; font: inherit; font-weight: 600; }

/* Rechtstexte */
.rechtstext { max-width: 820px; margin: 0 auto; padding: 48px 20px 64px; }
.rechtstext h1 { font-size: 2rem; margin: 0 0 24px; }
.rechtstext h2 { font-size: 1.3rem; margin: 34px 0 8px; }
.rechtstext h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.rechtstext p, .rechtstext li { color: var(--text); }
.rechtstext p.klein { font-size: .85rem; color: var(--text-leise); margin-top: -4px; }  /* Register, Geschäftsführung, Steuer (Oli 26.10.2026) */
.pruefen { background: var(--pruefen-bg); color: var(--pruefen-fg); border: 1px solid var(--pruefen-rand); border-radius: 8px; padding: 8px 12px; font-size: .9rem; }

/* ===== Fachbegriffe & FAQ (Wunsch David 27.10.2026) ===== */
.glossar { max-width: 900px; }
.glossar h1 { margin-bottom: 12px; text-wrap: balance; }
.glossar p.glossar-einleitung { font-size: 1.08rem; color: var(--text-leise); max-width: 68ch; margin: 0 0 22px; }
.glossar-inhalt { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.glossar-inhalt a { padding: 6px 12px; border: 1px solid var(--linie); border-radius: 999px; background: var(--karte);
                    color: var(--text); text-decoration: none; font-size: .88rem; font-weight: 600; }
.glossar-inhalt a:hover, .glossar-inhalt a:focus-visible { border-color: var(--brand-rand); color: var(--brand); background: var(--brand-hauch); }
.glossar-gruppe { scroll-margin-top: 76px; }
.glossar-gruppe h2 { margin-top: 40px; padding-bottom: 8px; border-bottom: 1px solid var(--linie); }
.glossar dl { display: grid; gap: 4px; margin: 0; }
.glossar dl > div { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 4px 24px; padding: 14px 0;
                    border-bottom: 1px solid var(--linie); }
.glossar dt { font-weight: 700; color: var(--text); }
.glossar dd { margin: 0; color: var(--text); }
@media (max-width: 640px) { .glossar dl > div { grid-template-columns: minmax(0, 1fr); } }
.glossar-fragen { display: grid; gap: 10px; margin-top: 14px; }
.glossar details { border: 1px solid var(--linie); border-radius: 12px; background: var(--karte); }
.glossar summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--text); list-style-position: inside; }
.glossar summary:hover { color: var(--brand); }
.glossar summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 12px; }
.glossar details p { margin: 0; padding: 0 18px 16px; }
.glossar-kontakt { margin-top: 48px; padding: 28px; }
.glossar-kontakt h2 { margin: 0 0 6px; }
.glossar .kontakt p { color: var(--kontakt-leise); }

/* ===== Nach oben (Wunsch David 23.10.2026) ===== */
.nach-oben { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
             z-index: 1200; width: 46px; height: 46px; border-radius: 999px; display: grid; place-items: center;
             background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(20, 40, 74, .28); text-decoration: none;
             opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: opacity .3s, transform .3s, background .2s; }
.nach-oben.sichtbar { opacity: 1; transform: none; pointer-events: auto; }
.nach-oben:hover { background: var(--brand-dunkel); }
.nach-oben:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.nach-oben svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Barrierefreiheit: Blase am rechten Rand + Einstellungen (Wunsch David 23.10.2026) ===== */
.a11y { position: fixed; right: 0; top: 50%; z-index: 1300; transform: translateY(-50%); }
.a11y-knopf { display: grid; place-items: center; width: 44px; height: 48px; padding: 0 0 0 4px; border: 0; cursor: pointer;
              border-radius: 24px 0 0 24px; background: var(--navy); color: #fff; box-shadow: -2px 4px 14px rgba(20, 40, 74, .25);
              padding-right: env(safe-area-inset-right, 0px); }
.a11y-knopf:hover { background: var(--brand); }
.a11y-knopf:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.a11y-knopf svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.a11y-knopf svg .voll { fill: currentColor; stroke: none; }
.a11y-feld { position: absolute; right: 52px; top: 50%; transform: translateY(-50%); width: min(300px, calc(100vw - 76px));
             background: var(--karte); color: var(--text); border: 1px solid var(--linie); border-radius: 14px;
             box-shadow: 0 18px 48px rgba(20, 40, 74, .25); padding: 14px 16px 12px; display: grid; gap: 10px; font-size: .95rem; }
.a11y-kopf { display: flex; align-items: center; justify-content: space-between; }
.a11y-kopf h2 { margin: 0; font-size: 1.05rem; }
.a11y-zu { border: 0; background: none; color: var(--text-leise); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.a11y-gruppe { display: grid; gap: 6px; }
.a11y-gruppe > span { font-weight: 600; }
.a11y-stufen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.a11y-stufen button { padding: 7px 0; border-radius: 8px; border: 1px solid var(--linie); background: var(--flaeche); color: var(--text);
                      font-weight: 700; cursor: pointer; }
.a11y-stufen button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.a11y-schalter { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 8px 10px;
                 border-radius: 8px; border: 1px solid var(--linie); background: var(--flaeche); color: var(--text);
                 font: inherit; text-align: left; cursor: pointer; }
.a11y-schalter i { flex: none; width: 36px; height: 20px; border-radius: 999px; background: var(--linie); position: relative; transition: background .2s; }
.a11y-schalter i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 999px;
                          background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.a11y-schalter[aria-checked="true"] i { background: var(--brand); }
.a11y-schalter[aria-checked="true"] i::after { transform: translateX(16px); }
.a11y-stufen button:focus-visible, .a11y-schalter:focus-visible, .a11y-zurueck:focus-visible, .a11y-zu:focus-visible
  { outline: 2px solid var(--brand); outline-offset: 2px; }
.a11y-zurueck { justify-self: start; border: 0; background: none; color: var(--brand); text-decoration: underline; cursor: pointer; padding: 2px 0; font: inherit; }
.a11y-hinweis { margin: 0; font-size: .8rem; color: var(--text-leise); }

/* Wirkung der Einstellungen (Klassen am <html>, seite.js) */
html.a11y-gross-1 { font-size: 112.5%; }
html.a11y-gross-2 { font-size: 125%; }
html.a11y-links a:not(.knopf):not(.marke):not(.nutzer):not(.nach-oben) { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-ruhig *, html.a11y-ruhig *::before, html.a11y-ruhig *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-ruhig .leistungen-puls, html.a11y-ruhig .faden-kopf { display: none; }
html.a11y-ruhig .leistungen.bewegt li { opacity: 1; transform: none; }
/* hoher Kontrast: Text ganz schwarz bzw. weiß, deutlichere Linien, Netz im Hintergrund nur angedeutet */
html.a11y-kontrast body { --text: #000; --text-leise: #1a1a1a; --linie: #5b6472; --brand: #1a47b8; --brand-rand: #1a47b8;
                          --faden-grund: #5b6472; --hero-leise: #ffffff; }
html.a11y-kontrast body[data-variante="hell"] { --hero-text: #000; --hero-leise: #111; --hero-akzent: #1a47b8; --hinweis: #111; }
@media (prefers-color-scheme: dark) {
  html.a11y-kontrast body:not([data-variante="hell"]) { --text: #fff; --text-leise: #f1f3f6; --linie: #aab3c2; --faden-grund: #aab3c2; }
}
html.a11y-kontrast .hero canvas.netz { opacity: .3 !important; }
html.a11y-kontrast .leistungen.bewegt li { opacity: 1; }
html.a11y-kontrast .hero .leistungen li, html.a11y-kontrast .hero .leistungen ul:hover li { animation: none; opacity: 1; }  /* hoher Kontrast: nichts abblenden */
html.a11y-kontrast .leistungen { --leist-faser: currentColor; }
/* Tastatur: Sprung zum Inhalt, erst beim Fokus sichtbar (Barrierefreiheit 23.10.2026) */
.zum-inhalt { position: absolute; left: 12px; top: -60px; z-index: 1400; padding: 10px 16px; border-radius: 8px;
              background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; transition: top .15s; }
.zum-inhalt:focus { top: 12px; outline: 3px solid var(--sky); outline-offset: 2px; }
#inhalt:focus { outline: none; }

/* ===== Bestätigung der Zugangsanfrage (Link aus der Mail, 27.10.2026): Startseiten-Hintergrund, danach Weiterleitung ===== */
.bestaetigen-hero .hero-inhalt { padding-block: 96px 120px; }
.bestaetigen-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.weiterleitung { max-width: 440px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.weiterleitung p { margin: 0; }
.lade-kreis { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--linie); border-top-color: var(--brand);
              animation: lade-drehen .9s linear infinite; margin-bottom: 6px; }
@keyframes lade-drehen { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lade-kreis { animation-duration: 2.5s; } }
