/* WLAN-Doktor Wien – Handy-/Router-Animation aus Code.
   Die Grundfarbe prägt die Seite wie der Hintergrund des Profilbilds – Startbereich und Termin
   als Verlauf, dazwischen eine helle Fläche, Fuß in der tiefen Grundfarbe. Dunkel nur Handy, Formular-Karte und Anruf-Fenster.
   Linien statt Boxen. Schrift: die des Geräts, nichts von fremden Servern. */
:root {
  /* Grundfarbe in Tönen (Profilbild: Mitte hell, Rand tiefer) */
  --m: #e20074;          /* Weiß darauf ≈ 4,7:1 */
  --m-hell: #f71a8b;     /* nur als Schein hinter dem Handy, kein Text darauf */
  --m-tief: #c0005f;     /* Weiß darauf ≈ 6,2:1; als Text auf Weiß ≈ 6,2:1 */
  --m-dunkel: #a3004f;   /* Fuß, Weiß darauf ≈ 7,9:1 */
  /* helle Flächen */
  --hell: #fff5fa;
  --rosa: #fde3ef;
  --rosa-linie: #f3c3da;
  --tinte: #2a0f1d;      /* Text auf Hell ≈ 16:1 */
  --tinte-leise: #6a4a5b;/* ≈ 7,4:1 auf --hell */
  /* dunkle Kontrast-Teile (Formular-Karte, Anruf-Fenster) – wie bisher */
  --grund: #0b0d12;
  --flaeche: #141821;
  --linie: #262c38;
  --pink: #e20074;
  --pink-tief: #c0005f;
  --akzent: #ff4fa3;
  --text: #f4f1ea;
  --leise: #a9b0bd;
  --rot: #ff8a7a;
  --fokus: var(--m-tief);
  --rund: 14px;
  --kurve: cubic-bezier(.22, 1, .36, 1);
  --schrift: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--hell); color: var(--tinte); font: 400 17px/1.55 var(--schrift); overflow-x: hidden; }
a { color: var(--m-tief); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.02em; }
h2 { font-size: clamp(34px, 7vw, 64px); font-weight: 800; margin-bottom: 28px; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 14px; }
.huelle { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.akzent { color: #ffd1e8; }
.lead { font-size: clamp(17px, 2.1vw, 20px); color: var(--tinte-leise); max-width: 34em; }
.offen { color: var(--m-tief); font-weight: 600; }
/* Flächen in der Grundfarbe: weiße Schrift, weißer Fokus-Rahmen */
.auf-m, .held, .termin, .fuss, .kopf { --fokus: #fff; }
.formular, .ruf-fenster { --fokus: var(--akzent); }
/* Kartei-Reiter über den Überschriften (Befund, Terminzettel) */
.kartei { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 5px 12px 5px 10px; border: 1px solid var(--rosa-linie); border-radius: 8px; background: var(--rosa); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--m-dunkel); }
.kartei::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--m); }

/* Kopf: Grundfarbe. Über dem Startbereich oben durchsichtig, beim Scrollen voll (ohne Milchglas, flüssig am Handy) */
.kopf { position: fixed; inset: 0 0 auto; z-index: 20; background: var(--m); border-bottom: 1px solid rgba(255, 255, 255, .22); transition: background-color .5s, border-color .5s, box-shadow .5s; }
.kopf.ueber-held:not(.unten) { background: transparent; border-color: transparent; }
.kopf.unten { background: rgba(226, 0, 116, .97); box-shadow: 0 10px 30px -18px rgba(90, 0, 45, .7); }
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.marke { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.marke em { font-style: normal; font-weight: 500; color: #fff; }
/* Logo = Profilbild (WLAN-Zeichen, Arztkittel), rund, mit weißem Ring, damit es sich vom Grund abhebt */
.marke-bild { flex: none; width: 36px; height: 36px; border-radius: 50%; display: block; box-shadow: 0 0 0 2px #fff; }

/* Knöpfe (Grundform wie bisher: auf dunklen Teilen Grundfarbe mit weißer Schrift) */
.knopf { --h: 46px; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h); padding: 0 20px; border-radius: 999px; font: 700 16px/1 var(--schrift); text-decoration: none; cursor: pointer; border: 2px solid var(--pink); color: var(--text); background: transparent; transition: transform .25s var(--kurve), background-color .25s, color .25s, box-shadow .25s; -webkit-tap-highlight-color: transparent; }
.knopf svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.knopf:active { transform: scale(.97); }
.knopf-voll { background: var(--pink); color: #fff; box-shadow: 0 14px 34px -16px rgba(226, 0, 116, .85); }
.knopf-voll:hover { background: var(--pink-tief); border-color: var(--pink-tief); }
.knopf-rand { background: transparent; }
.knopf-rand:hover { background: rgba(226, 0, 116, .14); }
.knopf-gross { --h: 72px; font-size: 21px; padding: 0 32px; gap: 12px; letter-spacing: -.01em; }
.knopf-gross svg { width: 28px; height: 28px; stroke-width: 2.2; }
.knopf-klein { --h: 40px; font-size: 15px; padding: 0 16px; }
.knopf[aria-disabled="true"] { opacity: .7; cursor: progress; }
/* Auf der Grundfarbe: voller Knopf weiß mit tiefer Grundfarbe (≈ 6,2:1), Rand-Knopf weiß umrandet */
.kopf .knopf, .held .knopf-voll { background: #fff; border-color: #fff; color: var(--m-tief); box-shadow: 0 16px 36px -18px rgba(70, 0, 35, .8); }
.kopf .knopf:hover, .held .knopf-voll:hover { background: #ffe6f2; border-color: #ffe6f2; }
.held .knopf-rand { border-color: #fff; color: #fff; }
.held .knopf-rand:hover { background: rgba(255, 255, 255, .16); }
.anrufen { position: relative; isolation: isolate; }
.anrufen::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid #fff; z-index: -1; opacity: 0; }
.bewegt .anrufen::after { animation: ruf 2.4s var(--kurve) infinite 1.6s; }
@keyframes ruf { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.12, 1.4); opacity: 0; } }

/* Start: großer Verlauf wie das Profilbild (heller Schein hinter dem Handy), feines EKG-Papier */
.held { position: relative; padding: 96px 0 56px; overflow: hidden; color: #fff;
  background: radial-gradient(70% 45% at 50% 78%, var(--m-hell) 0%, var(--m) 55%, var(--m-tief) 100%); }
.held::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 24px 24px; }
.held .lead { color: #fff; }
.ekg { position: absolute; left: 0; right: 0; top: 46%; width: 100%; height: 180px; fill: none; stroke: #fff; stroke-width: 2; opacity: .22; pointer-events: none; }
.ekg path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.bewegt .ekg path { stroke-dashoffset: 1; animation: zeichnen 2.6s var(--kurve) .3s forwards; }
@keyframes zeichnen { to { stroke-dashoffset: 0; } }
.held-raster { position: relative; display: grid; gap: 40px; }
.vorzeile { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.puls-punkt { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
.bewegt .puls-punkt { animation: punkt 1.8s ease-out infinite; }
@keyframes punkt { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); } 100% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); } }
h1 { font-size: clamp(52px, 13vw, 116px); font-weight: 850; letter-spacing: -.045em; line-height: .95; margin-bottom: 22px; }
h1 .zeile { display: inline-block; }
.zwei-knoepfe { display: grid; gap: 12px; margin-top: 24px; }

/* Handy mit Untersuchung (nur Zeichnung, kein echtes Messergebnis). In 3D geneigt, folgt der Maus (wlan.js) */
.handy-buehne { position: relative; display: grid; place-items: center; min-height: 440px; perspective: 1100px; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.handy-schatten { position: absolute; left: 50%; bottom: 2px; width: 210px; height: 36px; margin-left: -105px; border-radius: 50%; background: radial-gradient(closest-side, rgba(80, 0, 40, .5), transparent); transform: translateX(var(--sx, -14px)) scaleX(var(--ss, 1)); pointer-events: none; }
/* Grundhaltung schräg (auch bei „weniger Bewegung“ – steht dann still) */
.handy-kipp { position: relative; z-index: 2; transform: rotateX(8deg) rotateY(-18deg) rotateZ(3deg); will-change: transform; }
.handy { position: relative; width: 220px; height: 420px; border-radius: 38px; padding: 10px; background: #1d1219; border: 1px solid #3a2733; overflow: hidden; box-shadow: 0 40px 80px -24px rgba(70, 0, 35, .75), inset 0 0 0 2px #120a10; }
.handy-schirm { position: relative; height: 100%; border-radius: 29px; background: linear-gradient(180deg, #fff 0%, #fff0f7 100%); color: var(--tinte); overflow: hidden; display: flex; flex-direction: column; padding: 14px 16px; }
/* Lichtreflex wandert mit der Neigung */
.handy-glanz { position: absolute; inset: -10% -60%; z-index: 3; pointer-events: none; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .5) 49%, transparent 58%); opacity: .55; transform: translateX(var(--glanz, 0px)); }
.h-leiste { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; color: var(--tinte); }
.h-wlan { width: 20px; height: 15px; fill: var(--tinte); stroke: var(--tinte); stroke-width: 2; stroke-linecap: round; }
.h-wlan path { fill: none; transition: stroke .3s; }
.h-befund { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.h-klein { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--tinte-leise); margin: 0 0 8px; }
.h-ring { width: 140px; height: 140px; overflow: visible; }
.h-ring circle { fill: none; stroke-width: 6; }
.r-grund { stroke: #f6d3e5; }
.r-lauf { stroke: var(--m); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: 60px 60px; }
.r-wlan path { fill: none; stroke: var(--tinte); stroke-width: 7; stroke-linecap: round; transition: stroke .3s; }
.r-wlan circle { fill: var(--tinte); stroke: none; }
.r-wlan .r-schlauch { stroke: var(--m); stroke-width: 4; }
.r-wlan .r-kopf { fill: none; stroke: var(--m); stroke-width: 4; }
.r-steth { transform-origin: 50px 84px; }
.h-status { position: relative; height: 22px; margin: 12px 0 0; font-size: 14px; font-weight: 700; width: 100%; }
.h-status span { position: absolute; inset: 0; }
.st-a { opacity: 0; }
.h-ekg { width: 100%; height: 34px; fill: none; stroke: var(--m); stroke-width: 2; }
.h-ekg path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.h-video { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px; border-radius: 12px; background: var(--rosa); }
.h-play { width: 0; height: 0; border-left: 10px solid var(--tinte); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.h-balken { flex: 1; height: 4px; border-radius: 2px; background: var(--rosa-linie); overflow: hidden; }
.h-balken i { display: block; width: 100%; height: 100%; background: var(--m); transform-origin: left; }
.welle { position: absolute; z-index: 1; left: 50%; top: 210px; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .55); opacity: 0; pointer-events: none; }

/* Ablauf der Handy-Animation (8 s, Schleife): Striche fallen weg, Ring sucht, Striche kommen einzeln zurück, Video läuft weiter */
.bewegt .handy { animation: schweben 6s ease-in-out infinite; }
@keyframes schweben { 50% { transform: translateY(-10px); } }
.bewegt .r-lauf { animation: ring 8s var(--kurve) infinite; }
@keyframes ring { 0%, 8% { stroke-dashoffset: 1; } 55%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.bewegt .b1 { animation: strich1 8s infinite; }
.bewegt .b2 { animation: strich2 8s infinite; }
.bewegt .b3 { animation: strich3 8s infinite; }
@keyframes strich1 { 0%, 10% { opacity: 1; } 14%, 30% { opacity: .15; } 34%, 100% { opacity: 1; } }
@keyframes strich2 { 0%, 8% { opacity: 1; } 12%, 40% { opacity: .15; } 45%, 100% { opacity: 1; } }
@keyframes strich3 { 0%, 6% { opacity: 1; } 10%, 50% { opacity: .15; } 56%, 100% { opacity: 1; } }
.bewegt .h-wlan .s3 { animation: strich3 8s infinite; }
.bewegt .h-wlan .s2 { animation: strich2 8s infinite; }
.bewegt .st-a { animation: status-a 8s infinite; }
.bewegt .st-b { animation: status-b 8s infinite; }
@keyframes status-a { 0%, 8% { opacity: 0; transform: translateY(6px); } 12%, 52% { opacity: 1; transform: none; } 56%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes status-b { 0%, 56% { opacity: 0; transform: translateY(6px); } 60%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.bewegt .h-ekg path { animation: ekg 2s linear infinite; }
@keyframes ekg { 0% { stroke-dashoffset: 1; } 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
.bewegt .h-balken i { animation: video 8s infinite; }
@keyframes video { 0% { transform: scaleX(.05); } 10%, 50% { transform: scaleX(.18); } 100% { transform: scaleX(1); } }
.bewegt .welle { animation: welle 3.6s ease-out infinite; }
.bewegt .w2 { animation-delay: 1.2s; }
.bewegt .w3 { animation-delay: 2.4s; }
@keyframes welle { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
/* Stethoskop pendelt leise; wackelt kräftig bei schneller Maus oder Antippen */
.bewegt .r-steth { animation: pendeln 3.4s ease-in-out infinite; }
@keyframes pendeln { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg); } }
.bewegt .r-steth.wackelt { animation: wackeln .9s ease-out; }
@keyframes wackeln { 0% { transform: rotate(0); } 18% { transform: rotate(-24deg); } 40% { transform: rotate(17deg); } 60% { transform: rotate(-9deg); } 80% { transform: rotate(4deg); } 100% { transform: rotate(0); } }
/* Maus nah am Handy: WLAN-Striche füllen sich einzeln in der Grundfarbe (Stufe 1–3, wlan.js) */
.handy-buehne.voll1 .b1, .handy-buehne.voll2 .b2, .handy-buehne.voll3 .b3,
.handy-buehne.voll1 .h-wlan .s1, .handy-buehne.voll2 .h-wlan .s2, .handy-buehne.voll3 .h-wlan .s3 { animation: none; opacity: 1; stroke: var(--m); }
/* Antippen: Welle und Funken an der Stelle des Fingers bzw. der Maus */
.funke-ring, .funke { position: absolute; z-index: 4; left: var(--fx); top: var(--fy); border-radius: 50%; pointer-events: none; }
.funke-ring { width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid var(--m); box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); animation: funke-ring .65s var(--kurve) forwards; }
@keyframes funke-ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(5.5); opacity: 0; } }
.funke { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--farbe, #fff); box-shadow: 0 0 0 1.5px var(--m); animation: funke .75s var(--kurve) forwards; }
@keyframes funke { from { transform: rotate(var(--w)) translateX(0) scale(1); opacity: 1; } to { transform: rotate(var(--w)) translateX(var(--weit, 70px)) scale(.2); opacity: 0; } }
.held.ruht *, .held.ruht *::before, .held.ruht *::after { animation-play-state: paused !important; }

/* Abschnitte: hell (Ablauf) und Grundfarbe (Termin) im Wechsel */
.abschnitt { padding: 72px 0; }
.ablauf { background: var(--hell); }
.ablauf h2 { color: var(--tinte); }
.schritte { list-style: none; margin: 0; padding: 0; }
.schritte p { color: var(--tinte-leise); margin: 6px 0 0; }
.schritte { position: relative; padding-left: 34px; }
.schritte::before, .schritte::after { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--rosa-linie); }
.schritte::after { background: var(--m); transform-origin: top; transform: scaleY(var(--fuellung, 1)); }
.schritte li { position: relative; padding: 0 0 34px; }
.schritte li:last-child { padding-bottom: 0; }
.sch-punkt { position: absolute; left: -34px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--hell); border: 2px solid var(--m); z-index: 1; }
.sch-name { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--m-tief); }
.partner { margin: 40px 0 0; padding-top: 18px; border-top: 1px dashed var(--rosa-linie); font-size: 14px; color: var(--m-tief); }

/* Termin: Fläche in der Grundfarbe, das Formular als dunkle Karte darauf (Rezept-Zettel, Felder wie bisher) */
.termin { color: #fff; background: linear-gradient(160deg, var(--m) 0%, var(--m-tief) 100%); }
.termin .kartei { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4); color: #fff; }
.termin .kartei::before { background: #fff; }
.termin-kopf .lead { color: #fff; }
.termin-raster { display: grid; gap: 28px; }
.oder { color: #fff; font-weight: 600; }
.oder a { color: #fff; }
.formular { position: relative; display: grid; gap: 16px; padding: 22px 18px; border-radius: 22px; background: var(--flaeche); border: 1px solid var(--linie); color: var(--text); box-shadow: 0 40px 80px -30px rgba(60, 0, 30, .75); }
.formular a { color: var(--akzent); }
.rezept-kopf { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 2px dashed var(--linie); font-weight: 800; font-size: 15px; line-height: 1.25; }
.rezept-kopf small { font-weight: 600; font-size: 13px; color: var(--leise); }
/* Über dem Formular das runde Profilbild-Logo */
.rezept-logo { flex: none; width: 44px; height: 44px; border-radius: 50%; display: block; box-shadow: 0 0 0 2px var(--m); }
.rezept-kopf svg { width: 60px; height: 20px; margin-left: auto; fill: none; stroke: var(--akzent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feld-reihe { display: grid; gap: 16px; }
.formular label { display: grid; gap: 7px; font-size: 15px; font-weight: 650; }
.formular input:not([type=radio]):not([type=checkbox]) { width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #7a8497; background: #0e1117; color: var(--text); font: 400 17px/1.3 var(--schrift); }
.formular input::placeholder { color: #8a92a2; }
.formular input:focus { border-color: var(--akzent); outline: none; box-shadow: 0 0 0 3px rgba(226, 0, 116, .3); }
.formular input[type=date] { color-scheme: dark; }
.formular .falsch { border-color: var(--rot) !important; box-shadow: inset 0 0 0 1px var(--rot) !important; }
.feld-fehler { display: block; font-size: 14px; font-weight: 600; color: var(--rot); margin-top: -2px; }
.wahl { border: 0; margin: 0; padding: 0; min-width: 0; }
.wahl legend { padding: 0; margin-bottom: 9px; font-size: 15px; font-weight: 650; }
.wahl-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wahl-reihe label { position: relative; display: block; }
.wahl-reihe input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.wahl-reihe span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 10px; border-radius: 12px; border: 1.5px solid #7a8497; font-weight: 650; text-align: center; transition: background-color .2s, border-color .2s, color .2s; }
.wahl-reihe input:checked + span { background: var(--pink); border-color: var(--pink); color: #fff; }
.wahl-reihe input:focus-visible + span { outline: 3px solid var(--akzent); outline-offset: 2px; }
.wahl.falsch-gruppe .wahl-reihe span { border-color: var(--rot); }
.haken { grid-template-columns: 26px 1fr; align-items: start; font-weight: 400 !important; font-size: 15px !important; color: var(--leise); }
.haken input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--pink); }
.haken.falsch-gruppe span { color: var(--rot); }
.formular-falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formular-hinweis { font-size: 14px; color: var(--leise); margin: 0; }
.formular-fehler { margin: 0; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--rot); color: var(--rot); font-weight: 600; font-size: 15px; }
.formular-fehler ul { margin: 6px 0 0; padding-left: 20px; }
.formular button { width: 100%; }

/* Anruf-Fenster (nur am Computer; am Handy öffnet „Jetzt anrufen“ direkt das Telefon) – unverändert dunkel */
.ruf-fenster { width: min(92vw, 380px); padding: 0; border: 1px solid var(--linie); border-radius: 22px; background: var(--flaeche); color: var(--text); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9); }
.ruf-fenster a { color: var(--akzent); }
.ruf-fenster::backdrop { background: rgba(5, 6, 9, .72); }
.ruf-fenster[open] { animation: fenster .3s var(--kurve); }
@keyframes fenster { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.ruf-innen { display: grid; justify-items: center; padding: 28px 24px 24px; text-align: center; }
.ruf-innen img { width: 56px; height: 56px; border-radius: 50%; margin-bottom: 14px; }
.ruf-titel { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--leise); }
.ruf-nummer { margin: 0 0 22px; font-size: 30px; font-weight: 850; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; user-select: all; }
.ruf-knoepfe { display: grid; gap: 10px; width: 100%; }
.ruf-knoepfe .knopf { --h: 52px; font-size: 17px; width: 100%; }
.ruf-knoepfe .knopf-voll { color: #fff; }

/* Fuß: tiefe Grundfarbe mit großer Wortmarke */
.fuss { background: var(--m-dunkel); padding: 36px 0 0; overflow: hidden; color: rgba(255, 255, 255, .88); font-size: 15px; }
.fuss-oben { display: grid; gap: 14px; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.fuss nav a { color: #fff; display: inline-flex; min-height: 44px; align-items: center; }
.wortmarke { margin: 18px 0 -0.18em; font-size: 17.5vw; font-weight: 900; letter-spacing: -.06em; line-height: 1; white-space: nowrap; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .4); user-select: none; }

/* Einblenden beim Scrollen (nur mit Skript und ohne „weniger Bewegung“) */
.js.bewegt [data-zeigen] { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--kurve), transform .5s var(--kurve); transition-delay: var(--verzug, 0s); }
.js.bewegt [data-zeigen].da { opacity: 1; transform: none; }

/* Danke- und Rechtsseiten: helle Fläche, Kopf und Fuß in der Grundfarbe */
.schlicht .recht-text, .recht-text { padding-top: 104px; padding-bottom: 64px; max-width: 760px; }
.recht-text h1 { font-size: clamp(40px, 9vw, 72px); margin-bottom: 24px; color: var(--tinte); }
.recht-text h2 { font-size: 22px; margin: 34px 0 10px; color: var(--m-tief); }
.recht-text p, .recht-text li { color: var(--tinte-leise); }
.danke-zeichen { width: 92px; height: 92px; margin-bottom: 22px; fill: none; stroke: var(--m); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.danke-zeichen path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.bewegt .danke-zeichen path { stroke-dashoffset: 1; animation: zeichnen 1.2s var(--kurve) .2s forwards; }

@media (max-width: 420px) {
  .marke { font-size: 15px; gap: 8px; }
  .marke-bild { width: 30px; height: 30px; }
  .kopf .knopf-klein { font-size: 14px; padding: 0 12px; }
}
/* Schmale Handys: „Wien“ im Kopf weg, damit Logo und „Termin buchen“ in eine Zeile passen */
@media (max-width: 399px) {
  .huelle.kopf-innen { padding: 0 16px; }
  .marke em { display: none; }
}
/* Sehr schmale Handys (320 px): Kopf etwas enger, damit „Termin buchen“ mit Rand ganz sichtbar bleibt */
@media (max-width: 340px) {
  .kopf-innen { gap: 6px; }
  .marke { font-size: 13px; gap: 6px; }
  .kopf .knopf-klein { font-size: 13px; padding: 0 9px; }
}
@media (min-width: 640px) {
  .zwei-knoepfe { grid-template-columns: auto auto; justify-content: start; gap: 14px; }
  .feld-reihe { grid-template-columns: 1fr 1fr; }
  .plz-ort { grid-template-columns: 120px 1fr; }
  .wahl-reihe { grid-template-columns: repeat(4, 1fr); }
  .formular { padding: 30px; }
}
@media (min-width: 960px) {
  .held { padding: 140px 0 90px; min-height: 100svh; display: flex; align-items: center;
    background: radial-gradient(48% 62% at 80% 52%, var(--m-hell) 0%, var(--m) 58%, var(--m-tief) 100%); }
  .held-raster { grid-template-columns: 1.15fr .85fr; align-items: center; }
  .handy-buehne { min-height: 580px; justify-items: end; }
  .handy-kipp { margin-right: 10px; }
  .handy { width: 250px; height: 480px; }
  .handy-schatten { left: auto; right: 30px; margin-left: 0; }
  .welle { top: 50%; left: auto; right: 5px; margin: -130px 0 0 0; }
  .knopf-gross { --h: 76px; font-size: 22px; padding: 0 36px; }
  .termin-raster { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
  .termin-kopf { position: sticky; top: 100px; }
  .fuss-oben { grid-template-columns: 1fr auto; align-items: center; }
  .abschnitt { padding: 110px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
