/* =====================================================================================
   Vorlage 27 Optiker · Gestaltung
   Bautyp Sehtest-Tafel: alles mittig, jede Tafel ein weißes Brett mit schmalem Rahmen, die Überschriften
   werden von Tafel zu Tafel eine Stufe kleiner (wie die Zeilen auf der Sehtafel), links die Visus-Stufe,
   dazwischen die Dioptrie-Skala als Fortschritt. Navigation: eine Buchstabenreihe E F P T O Z.
   Aufbau: Grundlagen · Kopf · Knöpfe · Tafel · Skala · Straße (Brillenglas) · Vom Sehtest zur Brille ·
   ruhige Tafeln · Auftritt · Fuß · schmale Bildschirme
   ===================================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--schrift); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.behaelter { width: min(100% - 40px, var(--breite)); margin-inline: auto; }
.sprung { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: var(--radius-klein); background: var(--text); color: #fff; }
.sprung:focus { top: 12px; }
.marke { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.leise { color: var(--muted); }
.klein { font-size: 14px; }
h1 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
h2 { line-height: 1.1; letter-spacing: -.015em; font-weight: 700; text-wrap: balance; }
h3 { font-size: 21px; line-height: 1.25; font-weight: 700; }
.nur-finger { display: none; }
@media (hover: none) { .nur-maus { display: none; } .nur-finger { display: inline; } }

/* ---------- Kopf: Logo, Buchstabenreihe, Telefon, Termin ---------- */
.kopf { position: sticky; top: 0; z-index: 30; height: var(--kopf); background: rgba(236, 238, 241, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(17, 20, 23, .08); }
.kopf-innen { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; justify-self: start; color: var(--text); text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: -.01em; }
.logo-zeichen { width: 30px; height: 30px; }
.reihe { display: flex; gap: 4px; justify-self: center; }
.reihe a { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-klein); color: var(--text); text-decoration: none; font-weight: 700; font-size: 24px; line-height: 1; transition: background .2s, color .2s; }
.reihe a:hover, .reihe a:focus-visible, .reihe a.ist-aktiv { background: var(--text); color: #fff; }
.reihe a span { position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, -4px); padding: 6px 12px; border-radius: var(--radius-klein); background: var(--text); color: #fff; font-size: 14px; font-weight: 400; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.reihe a span::before { content: ""; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; transform: translateX(-50%) rotate(45deg); background: var(--text); }
.reihe a:hover span, .reihe a:focus-visible span { opacity: 1; transform: translate(-50%, 0); }
.kopf-rechts { display: flex; align-items: center; gap: 18px; justify-self: end; }
.kopf-tel { color: var(--text); text-decoration: none; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Knöpfe: rund, schwarz, großer Text ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border: 0; border-radius: var(--rund); background: var(--text); color: #fff; font: inherit; font-weight: 700; font-size: 19px; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.knopf:hover { background: #2a3038; }
.knopf:active { transform: translateY(1px); }
.knopf-klein { min-height: 44px; padding: 0 20px; font-size: 16px; }
.knopf-leise { background: #fff; color: var(--text); box-shadow: inset 0 0 0 2px var(--text); }
.knopf-leise:hover { background: var(--surface-2); }

/* =====================================================================================
   Tafel: ein weißes Brett, schmaler Rahmen, viel Luft, alles mittig.
   --n ist die Stufe der Tafel (1 bis 10): Überschrift wird je Stufe 2,75 px kleiner.
   ===================================================================================== */
.tafel { position: relative; margin-inline: auto; width: min(100% - 40px, var(--breite)); padding: clamp(36px, 5vw, 64px) clamp(20px, 4vw, 56px); border: 2px solid var(--rahmen); border-radius: var(--radius); background: var(--surface); text-align: center; }
.tafel-kopf { max-width: 44rem; margin-inline: auto; }
.tafel-kopf .leise { margin-top: 14px; font-size: 18px; }
.tafel h2 { font-size: min(calc(48px - (var(--n, 2) - 2) * 2.75px), 8.4vw); }
.visus { position: absolute; left: 18px; top: 18px; display: inline-flex; align-items: center; height: 30px; padding: 0 10px; white-space: nowrap; border: 1.5px solid var(--text); border-radius: var(--radius-klein); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.visus::after { content: "Visus"; margin-left: 6px; font-size: 11px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tafel-fuss { margin-top: 28px; }

/* ---------- Dioptrie-Skala: Zwischenstufen zwischen den Tafeln ... ---------- */
.skala-schritt { position: relative; display: flex; justify-content: center; align-items: center; height: var(--abstand); margin: 0; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
.skala-schritt::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--border); transform: translateX(-50%); }
.skala-schritt span { position: relative; padding: 2px 10px; border-radius: var(--rund); background: var(--bg); }
.skala-schritt span::after { content: " dpt"; font-weight: 400; }
.skala-schritt b { display: block; position: absolute; left: 50%; width: 14px; height: 2px; background: var(--muted); transform: translateX(-50%); }
.skala-schritt b:first-child { top: 25%; }
.skala-schritt b:last-child { top: 75%; }

/* ---------- ... und die feste Skala am rechten Rand (nur breite Bildschirme, js/main.js) ---------- */
.skala { display: none; position: fixed; right: 22px; top: 50%; z-index: 20; transform: translateY(-50%); width: 56px; height: min(420px, 60vh); pointer-events: none; }
.skala-strich { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: #b9c0c8; transform: translateX(-50%); }
.skala-ticks { position: absolute; inset: 0; }
.skala-ticks i { position: absolute; left: 50%; width: 12px; height: 2px; background: #9aa3ad; transform: translateX(-50%); }
.skala-ticks i:nth-child(odd) { width: 18px; }
.skala-oben, .skala-unten { position: absolute; left: 0; right: 0; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.skala-oben { top: -30px; }
.skala-unten { bottom: -30px; }
.skala-marke { position: absolute; left: 50%; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--border); will-change: transform; }
.skala-wert { position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); padding: 3px 9px; border-radius: var(--radius-klein); background: var(--text); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.skala-wert::after { content: ""; position: absolute; left: 100%; top: 50%; border: 5px solid transparent; border-left-color: var(--text); transform: translateY(-50%); }
html.js.skala-an .skala { display: block; }

/* =====================================================================================
   Die Straße von Krems: unten die weiche Ebene (einmal gerechnet, ruht), darüber das Brillenglas:
   ein rundes Fenster, das nur mit transform wandert; darin die scharfe Zeichnung, gegenläufig verschoben.
   Ohne JavaScript: die scharfe Zeichnung ganz, keine weiche Ebene, kein Schieber.
   ===================================================================================== */
.strasse-tafel { padding-bottom: clamp(28px, 4vw, 44px); }
.strasse-tafel h1 { margin-top: 2px; }
.strasse-tafel .tafel-kopf { max-width: 50rem; }
.einleitung { max-width: 34rem; margin: 14px auto 0; font-size: 20px; color: var(--muted); }
.strasse-rahmen { position: relative; width: min(100%, calc(52vh * 12 / 7)); margin: 22px auto 0; aspect-ratio: 12 / 7; overflow: hidden; border-radius: var(--radius); background: var(--himmel); border: 1.5px solid var(--text); }
.strasse-ebene { position: absolute; inset: 0; width: 100%; height: 100%; }
.strasse-unscharf { display: none; }
html.js .strasse-unscharf { display: block; filter: blur(7px); transform: scale(1.04); will-change: transform; }
.glas-fenster { position: relative; width: 100%; height: 100%; }
.glas-inhalt { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
html.js .glas-fenster { position: absolute; left: 0; top: 0; width: 200px; height: 200px; border-radius: 50%; overflow: hidden; transform: translate(-999px, -999px); will-change: transform; }
html.js .glas-inhalt { will-change: transform; }
.glas-ring { display: none; position: absolute; left: 0; top: 0; width: 200px; height: 200px; border-radius: 50%; pointer-events: none; transform: translate(-999px, -999px); will-change: transform; box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px var(--text), 0 18px 40px rgba(17, 20, 23, .28), inset 0 0 0 1px rgba(255, 255, 255, .5); }
.glas-ring::after { content: ""; position: absolute; left: 14%; top: 10%; width: 28%; height: 16%; border-radius: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0)); transform: rotate(-24deg); }
html.js .glas-ring { display: block; }
html.js .glas-am-finger .strasse-rahmen { touch-action: pan-y; }

/* Schieber Glasstärke */
.glas-steuer { display: none; max-width: 36rem; margin: 22px auto 0; }
html.js .glas-steuer { display: block; }
.glas-steuer-zeile { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.glas-steuer label { font-weight: 700; font-size: 16px; white-space: nowrap; }
.glas-steuer output { min-width: 6.2em; text-align: right; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.schieber { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; }
.schieber::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--border), var(--text)); }
.schieber::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--border), var(--text)); }
.schieber::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -12px; border-radius: 50%; background: #fff; border: 3px solid var(--text); box-shadow: 0 2px 8px rgba(17, 20, 23, .25); }
.schieber::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--text); box-shadow: 0 2px 8px rgba(17, 20, 23, .25); }
.glas-hinweis { margin-top: 6px; font-size: 15px; color: var(--muted); min-height: 1.5em; }
.glas-hinweis::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 9px; border-radius: 50%; border: 2px solid var(--text); vertical-align: -1px; }
.strasse-knoepfe { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* =====================================================================================
   Vom Sehtest zur Brille: klebende Bühne links, fünf Schritte rechts (js/sehtest.js)
   Ohne .sehtest-an (ohne JavaScript, starr, schmal): Bühne oben im Endzustand, Schritte als Karten darunter.
   ===================================================================================== */
.weg-raster { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; margin-top: 36px; text-align: left; align-items: start; }
.weg-buehne { display: flex; flex-direction: column; gap: 14px; }
.buehne { position: relative; width: 100%; aspect-ratio: 4 / 3; border: 1.5px solid var(--text); border-radius: var(--radius); background: var(--surface-2); overflow: hidden; }
.buehne svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.buehne-weich { opacity: 0; }
html.js.sehtest-an .buehne-weich { filter: blur(4px); will-change: transform; }
.anzeige { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; align-items: baseline; padding: 14px 18px; border-radius: var(--radius); background: var(--text); color: #fff; text-align: left; }
.anzeige-titel { grid-column: 1 / -1; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #aeb6bf; }
.anzeige b { font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.anzeige-text { font-size: 15px; color: #d6dbe1; }
.punkte { display: flex; justify-content: center; gap: 10px; }
.punkte li { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--text); transition: background .3s; }
.punkte li.ist-aktiv { background: var(--text); }
.schritte { display: grid; gap: 14px; }
.schritt { padding: 22px 24px; border: 1.5px solid var(--border); border-radius: var(--radius); background: #fff; }
.schritt-nr { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.schritt h3 { margin: 4px 0 8px; }
.schritt p { color: var(--muted); font-size: 17px; }
.schritt-werte { margin-top: 12px !important; font-weight: 700; font-size: 18px; color: var(--text) !important; font-variant-numeric: tabular-nums; }
.schritt .knopf { margin-top: 16px; }
html.sehtest-an #weg { padding-left: 28px; padding-right: 28px; }
html.sehtest-an .weg-raster { align-items: stretch; gap: 32px; }
html.sehtest-an .weg-buehne { position: sticky; top: calc(var(--kopf) + 16px); height: calc(100vh - var(--kopf) - 32px); justify-content: center; }
html.sehtest-an .buehne { width: min(100%, calc((100vh - var(--kopf) - 220px) * 4 / 3)); margin-inline: auto; }
html.sehtest-an .schritte { gap: 0; }
html.sehtest-an .schritt { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; padding: 0 0 0 26px; border: 0; border-left: 3px solid var(--border); border-radius: 0; background: transparent; opacity: .35; transition: opacity .4s, border-color .4s; }
html.sehtest-an .schritt.ist-aktiv { opacity: 1; border-left-color: var(--text); }

/* ---------- Leistungen: Symbole zeichnen sich beim Hereinscrollen ---------- */
.leistungen-liste { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 36px; }
.leistung { padding: 24px 16px 22px; border: 1.5px solid var(--border); border-radius: var(--radius); background: #fff; }
.leistung svg { width: 56px; height: 56px; margin: 0 auto 14px; }
.zeichnet path, .zeichnet circle, .zeichnet rect, .zeichnet line { fill: none; stroke: var(--text); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.zeichnet .akzent { stroke: var(--accent); }
.leistung h3 { font-size: 18px; }
.leistung p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.leistung .preis { margin-top: 10px; font-weight: 700; color: var(--text); font-size: 15px; }
html.js[data-bewegung="mittel"] .zeichnet [pathLength], html.js[data-bewegung="dynamisch"] .zeichnet [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s ease .15s; }
html.js [data-auftritt].ist-da .zeichnet [pathLength] { stroke-dashoffset: 0; }

/* ---------- Fassungen: ruhiges Raster, Karten kippen herein ---------- */
.fassungen-liste { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.fassung { padding: 22px 18px 20px; border: 1.5px solid var(--border); border-radius: var(--radius); background: #fff; }
.fassung svg { width: 100%; max-width: 220px; height: auto; margin: 0 auto 12px; }
.fassung h3 { font-size: 19px; }
.fassung p { margin-top: 4px; font-size: 15px; color: var(--muted); }
.fassung .preis { margin-top: 8px; font-weight: 700; color: var(--text); }
html.js[data-bewegung="mittel"] .fassung[data-auftritt], html.js[data-bewegung="dynamisch"] .fassung[data-auftritt] { transform: perspective(700px) rotateX(14deg) translateY(18px); }

/* ---------- Preise: Zahlen zählen hoch ---------- */
.preis-liste { max-width: 40rem; margin: 32px auto 0; text-align: left; }
.preis-liste > div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 14px 0; border-top: 1.5px solid var(--border); }
.preis-liste > div:last-child { border-bottom: 1.5px solid var(--border); }
.preis-liste dt { font-size: 17px; }
.preis-liste dt span { display: block; font-size: 14px; color: var(--muted); }
.preis-liste dd { font-weight: 700; font-size: 20px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.preis-liste dd small { font-weight: 400; font-size: 14px; color: var(--muted); }

/* ---------- Wann zum Sehtest: Zeilen öffnen sich von links ---------- */
.wann-liste { max-width: 38rem; margin: 30px auto 0; text-align: left; display: grid; gap: 10px; }
.wann-liste li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); font-size: 17px; }
.wann-liste svg { width: 24px; height: 24px; margin-top: 3px; }
.wann-liste svg path { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
html.js[data-bewegung="mittel"] .wann-liste li[data-auftritt], html.js[data-bewegung="dynamisch"] .wann-liste li[data-auftritt] { transform: none; clip-path: inset(0 100% 0 0 round var(--radius)); transition: clip-path .6s ease, opacity .3s; }
html.js .wann-liste li[data-auftritt].ist-da { clip-path: inset(0 0 0 0 round var(--radius)); }
.hinweis-arzt { max-width: 38rem; margin: 22px auto 0; padding: 14px 18px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 15px; color: var(--muted); text-align: left; }

/* ---------- Stimmen ---------- */
.stimmen-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; text-align: left; }
.stimme { padding: 24px 26px; border: 1.5px solid var(--border); border-radius: var(--radius); background: #fff; }
.stimme blockquote p { font-size: 19px; line-height: 1.45; }
.stimme figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ---------- Fragen ---------- */
.fragen-liste { max-width: 44rem; margin: 28px auto 0; text-align: left; }
details { border-top: 1.5px solid var(--border); }
details:last-child { border-bottom: 1.5px solid var(--border); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 4px; font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--text); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { padding: 0 4px 18px; color: var(--muted); }

/* ---------- Die Schrift: Buchstabenpaare, die man leicht verwechselt ---------- */
.schrift-paare { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.schrift-paare li { padding: 10px 20px 6px; border: 1.5px solid var(--border); border-radius: var(--radius); background: #fff; }
.schrift-paare b { display: block; font-size: 44px; line-height: 1; letter-spacing: .08em; }
.schrift-paare span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.schrift-text { max-width: 40rem; margin: 22px auto 0; color: var(--muted); font-size: 17px; }

/* ---------- Foto-Platzhalter (wird im Kundenprojekt durch ein img ersetzt, Liste in img/BILDLISTE.md) ---------- */
.bild-platzhalter { position: relative; display: flex; align-items: flex-end; margin: 0; overflow: hidden; aspect-ratio: var(--format, 3 / 2); border: 1.5px solid var(--border); border-radius: var(--radius); background: radial-gradient(110% 80% at 85% 12%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 60%), repeating-linear-gradient(135deg, rgba(11, 95, 165, .07) 0 1px, transparent 1px 13px), var(--accent-hell); }
.bild-platzhalter figcaption { margin: 14px; padding: 8px 12px; border-radius: var(--radius-klein); max-width: calc(100% - 28px); background: rgba(255, 255, 255, .94); color: var(--text); font-size: 14px; font-weight: 700; line-height: 1.35; text-align: left; }

/* ---------- Termin und Kontakt ---------- */
.termin-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 36px 48px; margin-top: 32px; text-align: left; }
.termin-text address { font-style: normal; margin-top: 16px; line-height: 1.6; }
.zeiten { margin-top: 16px; display: grid; gap: 4px; font-size: 17px; }
.zeiten div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-top: 1px solid var(--border); }
.zeiten dt { color: var(--muted); }
.zeiten dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.formular { display: grid; gap: 14px; padding: 24px; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.feld { display: grid; gap: 6px; }
.feld label { font-weight: 700; font-size: 15px; }
.feld input, .feld select, .feld textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #b9c0c8; border-radius: var(--radius-klein); background: #fff; color: var(--text); font: inherit; font-size: 17px; }
.feld textarea { resize: vertical; }
.formular .knopf { justify-self: start; }
.formular-meldung { font-weight: 700; color: var(--accent); min-height: 1.5em; }
.formular-meldung:empty { display: none; }

/* ---------- Auftritt: Abschnitte blenden beim Hereinscrollen ein (nicht bei starr, nicht bei „Bewegung reduzieren") ---------- */
html.js[data-bewegung="mittel"] [data-auftritt], html.js[data-bewegung="dynamisch"] [data-auftritt] { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s cubic-bezier(.2, .8, .2, 1); }
html.js [data-auftritt].ist-da { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  html.js [data-auftritt] { opacity: 1 !important; transform: none !important; transition: none !important; clip-path: none !important; }
  html.js .zeichnet [pathLength] { stroke-dashoffset: 0 !important; transition: none !important; }
  .reihe a, .reihe a span, .knopf, .punkte li { transition: none !important; }
}

/* ---------- Anruf-Leiste am Handy ---------- */
.anruf-leiste { display: none; }

/* ---------- Fuß ---------- */
.fuss { margin-top: var(--abstand); padding: 44px 0 0; border-top: 2px solid var(--text); color: var(--muted); font-size: 15px; text-align: center; }
.fuss-raster { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.fuss address { font-style: normal; }
.fuss a { color: var(--text); }
.fuss-logo { margin-bottom: 6px; color: var(--text); font-weight: 700; font-size: 22px; }
.fuss-links a { margin: 0 8px; }
.fuss-demo { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 14px; }
.fuss-zeile { width: 100%; max-width: none; margin: 0; padding: 18px 20px 24px; text-align: center; font-size: 13px; color: var(--muted); }
.fuss-zeile a { color: #4b5560; }

/* =====================================================================================
   Schmale und niedrige Bildschirme
   ===================================================================================== */
@media (max-width: 980px) {
  .weg-raster { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .leistungen-liste { grid-template-columns: repeat(2, 1fr); }
  .leistungen-liste .leistung:last-child { grid-column: 1 / -1; }
  .fassungen-liste { grid-template-columns: repeat(2, 1fr); }
  .termin-raster { grid-template-columns: minmax(0, 1fr); }
  .stimmen-raster { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  :root { --kopf: 112px; }
  .kopf-innen { grid-template-columns: 1fr auto; grid-template-rows: 52px 56px; gap: 0 12px; align-content: start; }
  .reihe { grid-column: 1 / -1; grid-row: 2; justify-self: center; gap: 2px; }
  .reihe a { width: 40px; height: 40px; font-size: 22px; }
  .reihe a span { display: none; }
  .kopf-tel { display: none; }
  .kopf-rechts { align-self: center; }
  .logo { align-self: center; }
  .tafel { width: min(100% - 24px, var(--breite)); padding: 64px 16px 32px; }
  .visus { left: 14px; top: 14px; }
  .einleitung { font-size: 18px; }
  .strasse-rahmen { width: 100%; margin-top: 22px; }
  .glas-steuer-zeile { grid-template-columns: 1fr auto; }
  .glas-steuer label { grid-column: 1 / -1; }
  .leistungen-liste, .fassungen-liste { grid-template-columns: minmax(0, 1fr); }
  .leistungen-liste .leistung:last-child { grid-column: auto; }
  .fuss-raster { grid-template-columns: minmax(0, 1fr); }
  .schritt { padding: 18px; }
  .preis-liste dd { font-size: 18px; }
  .anruf-leiste { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 25; display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: var(--rund); background: var(--text); color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; box-shadow: 0 10px 30px rgba(17, 20, 23, .28); }
  .fuss { padding-bottom: 72px; }
}
