/* seite.css · die Gestaltung von Marek & Voss Strafverteidigung (Beispiel), lp-211.
 * Eine helle Seite ohne Grün (Martin, 31.10.2026): Weiß, Tintenblau, Bernstein. Das Büro ist hell, die Nacht steht vor dem Fenster.
 * Kalt (Blaugrau) ist die Behörde, warm (Bernstein) ist die Kanzlei; bei 04:05 kippt die Seite von kalt auf warm.
 * Schriften lokal: Oswald (Überschriften, Uhr, Preise), Jost (Text). Die große Schrift gibt es nur an einer Stelle: die Uhr. */

@font-face { font-family: "Oswald"; src: url("../fonts/oswald-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("../fonts/oswald-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --schrift-display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --schrift-text: "Jost", system-ui, "Segoe UI", sans-serif;
  --bild-h: clamp(200px, calc(100svh - var(--kopf-hoehe) - 350px), 54svh);   /* Fensterbild: nimmt, was der Text (Uhr, Überschrift, Knopf) übrig lässt */
  --zahl-b: 21.5rem;                                 /* Breite der Uhr-Spalte links vom Text */
  --zahl-h: 0rem;                                    /* Höhe der Uhr-Zeile über dem Text (Handy) */
  --t-uhr: clamp(3.2rem, 1rem + 8vw, 8.4rem);
}
@media (max-width: 899px) { :root { --bild-h: 30svh; --zahl-b: 0rem; --zahl-h: 3.4rem; --t-uhr: 3rem; } }

h1, h2, h3 { letter-spacing: 0; }
.titel { letter-spacing: 0; line-height: 1.02; }
.marke { font-weight: 700; letter-spacing: 0.01em; }
.marke-zusatz { margin-left: 12px; font-family: var(--schrift-text); font-weight: 400; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); }
@media (max-width: 700px) { .marke-zusatz { display: none; } }
.menue-anruf { display: none !important; }
@media (max-width: 860px) { .menue-anruf { display: inline-flex !important; font-weight: 600; } }

/* ---------- Zeitleiste, Grundfassung (ohne JavaScript, mit „Bewegung reduzieren“): die fünf Schritte stehen untereinander */
.zeit { background: var(--kalt); scroll-margin-top: calc(-1 * (var(--kopf-hoehe) + 16px)); }   /* Sprungmarke landet genau am Anfang der Bühne (Fortschritt 0) */
.zeit-grund, .zeit-anzeige, .zeit-himmel, .zeit-leiste { display: none; }
.schritt-bild { margin: 0; }
.schritt-bild img { width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 58svh; object-fit: cover; }
#schritt-0 .schritt-bild { margin-top: var(--kopf-hoehe); }
.schritt + .schritt { border-top: 1px solid var(--linie); }
#schritt-3, #schritt-4 { background: var(--warm); }
.schritt-text { padding-block: clamp(26px, 3.6vw, 52px); }
.schritt-text h2 { font-size: var(--t-gross); max-width: 24ch; }
.schritt-text h2 + p { margin-top: 14px; max-width: 38rem; color: var(--text-2); font-size: var(--t-mittel); line-height: 1.4; }
.uhrzeit { margin-right: 0.35em; color: var(--blau); font-variant-numeric: tabular-nums; }
.zeit .titel { font-size: var(--t-riesig); }
.zeit .unterzeile { max-width: 52rem; margin-top: 12px; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); }
.zeit .beleg { margin-top: 8px; font-size: 0.95rem; }
.zeit .handlung { margin-top: 18px; }

/* ---------- Zeitleiste, angeheftet (nur mit JavaScript und ohne reduzierte Bewegung; frueh.js setzt .buehne) */
.js.buehne .zeit { height: 520svh; position: relative; background: none; }
.js.buehne .zeit-buehne { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.js.buehne .zeit-grund { display: block; position: absolute; inset: 0; background: color-mix(in srgb, var(--warm) calc(var(--w, 0) * 100%), var(--kalt)); }
.js.buehne .schritt { position: absolute; inset: 0; pointer-events: none; background: none; border: 0; }
.js.buehne #schritt-3, .js.buehne #schritt-4 { background: none; }
.js.buehne .schritt-bild { position: absolute; inset: var(--kopf-hoehe) 0 auto 0; height: var(--bild-h); margin: 0; -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); }
.js.buehne #schritt-0 .schritt-bild { margin-top: 0; }
.js.buehne .schritt-bild img { height: 100%; max-height: none; aspect-ratio: auto; will-change: opacity; }
.js.buehne #schritt-0 .schritt-bild img { object-position: 74% 66%; }
.js.buehne #schritt-2 .schritt-bild img { object-position: 50% 50%; }
.js.buehne #schritt-3 .schritt-bild img { object-position: 58% 52%; }
.js.buehne #schritt-4 .schritt-bild img { object-position: 36% 78%; }
.js.buehne #schritt-2 .schritt-bild { opacity: var(--k1, 0); }
.js.buehne #schritt-3 .schritt-bild { opacity: var(--k2, 0); }
.js.buehne #schritt-4 .schritt-bild { opacity: var(--k3, 0); }
.js.buehne .schritt-text { position: absolute; left: 0; right: 0; top: calc(var(--kopf-hoehe) + var(--bild-h) + var(--zahl-h) + 22px); bottom: 70px; padding: 0 0 0 var(--zahl-b); margin-inline: auto; overflow: visible; }
.js.buehne #schritt-0 .schritt-text { opacity: var(--t0, 1); transform: translateY(calc((1 - var(--t0, 1)) * 22px)); }
.js.buehne #schritt-1 .schritt-text { opacity: var(--t1, 0); transform: translateY(calc((1 - var(--t1, 0)) * 22px)); }
.js.buehne #schritt-2 .schritt-text { opacity: var(--t2, 0); transform: translateY(calc((1 - var(--t2, 0)) * 22px)); }
.js.buehne #schritt-3 .schritt-text { opacity: var(--t3, 0); transform: translateY(calc((1 - var(--t3, 0)) * 22px)); }
.js.buehne #schritt-4 .schritt-text { opacity: var(--t4, 0); transform: translateY(calc((1 - var(--t4, 0)) * 22px)); }
.js.buehne .schritt.ist-aktiv .schritt-text a, .js.buehne .schritt.ist-aktiv .schritt-text button { pointer-events: auto; }
.js.buehne .uhrzeit { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* die Uhr links zeigt die Zeit, der Text liest sie vor */

.js.buehne .zeit-anzeige { display: flex; align-items: flex-start; position: absolute; z-index: 2; left: var(--kante); top: calc(var(--kopf-hoehe) + var(--bild-h) + 12px); }
.zeit-uhr { display: block; min-width: 4.6ch; font-family: var(--schrift-display); font-weight: 700; font-size: var(--t-uhr); line-height: 0.9; letter-spacing: 0; color: var(--blau); font-variant-numeric: tabular-nums; }
.zeit-uhr.tick { animation: uhr-tick 0.6s var(--aus) both; }
@keyframes uhr-tick { from { opacity: 0.2; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Himmelsscheibe: Mond wird Sonne (Technik aus Effekt 109 Mondphasen: eine dunkle Scheibe rutscht von der hellen) */
.js.buehne .zeit-himmel { display: block; position: absolute; z-index: 2; right: var(--kante); bottom: 62px; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: #1b2a47; }
.zeit-himmel::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: color-mix(in srgb, #e6edf7, #ffb02e calc(var(--himmel, 1) * 100%)); }
.zeit-himmel::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #1b2a47; transform: translateX(calc(30% + var(--himmel, 1) * 110%)); }

.js.buehne .zeit-leiste { display: block; position: absolute; z-index: 2; left: var(--kante); right: var(--kante); bottom: 20px; height: 36px; }
.zeit-leiste::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--linie); }
.zeit-leiste-fuell { position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--text); transform-origin: left; transform: scaleX(var(--p, 0)); }
.zeit-marke { position: absolute; top: 0; padding-top: 16px; font-size: 0.8rem; line-height: 1; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; transform: translateX(-50%); }
.zeit-marke::before { content: ""; position: absolute; left: 50%; top: 1px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--kalt); box-shadow: inset 0 0 0 2px var(--text-3); }
.zeit-marke.erreicht { color: var(--text); font-weight: 500; }
.zeit-marke.erreicht::before { background: var(--akzent); box-shadow: inset 0 0 0 2px var(--text); }
.zeit-marke:nth-of-type(1) { left: 0; transform: none; }
.zeit-marke:nth-of-type(1)::before { left: 6px; }
.zeit-marke:nth-of-type(2) { left: 42%; }
.zeit-marke:nth-of-type(3) { left: 62%; }
.zeit-marke:nth-of-type(4) { left: 84%; }
@media (max-width: 899px) {
  .js.buehne .zeit-himmel { display: none; }
  .zeit-marke { font-size: 0; padding-top: 0; }
  .js.buehne .zeit-leiste { height: 16px; bottom: 14px; }
  .zeit .unterzeile { margin-top: 12px; }
  .zeit .beleg { margin-top: 8px; font-size: 0.9rem; }
  .zeit .handlung { margin-top: 16px; }
  .js.buehne .schritt-text { bottom: 36px; }
}

/* ---------- Kosten: drei Zeilen, jede zieht ihre Linie */
.abschnitt h2 { font-size: var(--t-gross); max-width: 18ch; }
.abschnitt-satz { margin-top: 18px; max-width: 40rem; color: var(--text-2); font-size: var(--t-mittel); line-height: 1.45; }
.kosten-raster { display: grid; gap: 44px clamp(32px, 6vw, 96px); }
@media (min-width: 900px) { .kosten-raster { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; } }
.preis-zeile { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 12px 28px; padding: 28px 0 24px; }
.preis-zeile::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--text); transform-origin: left; }
.preis-name { flex: 1 1 11rem; min-width: 0; overflow-wrap: anywhere; }
.preis-name strong { display: block; font-family: var(--schrift-display); font-weight: 600; font-size: var(--t-mittel); line-height: 1.2; }
.preis-name span { display: block; margin-top: 6px; max-width: 24rem; color: var(--text-2); font-size: 1rem; line-height: 1.4; }
.preis-zahl { flex: none; font-family: var(--schrift-display); font-weight: 700; font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.4rem); line-height: 1; white-space: nowrap; color: var(--text); }
.preis-zahl small { margin-right: 0.3em; font-size: 0.42em; font-weight: 600; color: var(--text-2); }
.preis-zahl--wort { font-size: clamp(1.3rem, 1.05rem + 1.3vw, 2.1rem); color: var(--blau); }
.preis-hinweis { padding-top: 18px; border-top: 1px solid var(--linie); color: var(--text-3); font-size: 0.95rem; }
@media (prefers-reduced-motion: no-preference) {
  .js .preis-zeile { --q: clamp(0, calc((var(--p, 1) - 0.1) * 3), 1); }
  .js .preis-zeile::before { transform: scaleX(var(--q)); }
  .js .preis-zahl { transform: translateY(calc((1 - var(--q)) * 16px)); opacity: calc(0.25 + 0.75 * var(--q)); }
}

/* ---------- Rückruf: die volle Bernsteinfläche ist der eine Regelbruch dieser Seite (D26) */
.anruf { background: var(--akzent); color: var(--auf-akzent); padding-block: var(--abstand); }
.anruf-raster { display: grid; gap: 40px clamp(32px, 6vw, 96px); grid-template-areas: "kopf" "form" "direkt"; }
@media (min-width: 900px) { .anruf-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "kopf form" "direkt form"; align-items: start; } }
.anruf-kopf { grid-area: kopf; }
.anruf .formular { grid-area: form; max-width: none; }
.anruf .direkt { grid-area: direkt; }
.anruf h2 { font-size: var(--t-gross); max-width: 16ch; }
.anruf .abschnitt-satz { color: var(--text); }
.anruf :focus-visible { outline-color: var(--text); }
.anruf .feld label { color: var(--text); font-weight: 500; }
.anruf .feld input { background: #fff; border-color: var(--text); }
.anruf .feld-fehler { color: #8c1912; font-weight: 600; }
.anruf .knopf { background: var(--text); color: var(--grund); }
@media (hover: hover) and (pointer: fine) { .anruf .knopf:hover { box-shadow: 0 10px 30px -12px var(--text); } }
.formular-hinweis { margin-top: -4px; font-size: 0.95rem; color: var(--text-2); }
.anruf .formular-hinweis { color: var(--text); }
.anruf .direkt a:hover { color: var(--text); }
.direkt-nummer { font-family: var(--schrift-display); font-weight: 700; font-size: clamp(2rem, 1.4rem + 2.2vw, 3.2rem) !important; line-height: 1.1; }
.anruf .direkt p { color: var(--text); }
.rueckruf-uhr { --s: clamp(0, calc((var(--p, 1) - 0.12) * 2.4), 1); position: relative; width: 68px; height: 68px; margin-bottom: 24px; border: 3px solid var(--text); border-radius: 50%; }
.rueckruf-uhr i { position: absolute; left: calc(50% - 1.5px); bottom: 50%; width: 3px; height: 26px; border-radius: 2px; background: var(--text); transform-origin: 50% 100%; transform: rotate(calc(var(--s) * 180deg)); }
.rueckruf-uhr::after { content: ""; position: absolute; left: calc(50% - 4px); top: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--text); }

/* ---------- Schluss: die Tür steht offen. Zwei Flügel aus Bildrand öffnen sich beim Scrollen (Technik aus Effekt 45 Tür auf, hier als Ausschnitt) */
.tuer { padding-bottom: var(--abstand); }
.tuer-bild { --e: clamp(0, calc((var(--p, 1) - 0.06) * 2.6), 1); margin: 0; height: clamp(320px, 64svh, 680px); overflow: hidden; }
.tuer-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 62%; }
@media (prefers-reduced-motion: no-preference) {
  .js .tuer-bild { clip-path: inset(0 calc((1 - var(--e)) * 34%)); }
  .js .tuer-bild img { transform: scale(calc(1.16 - 0.16 * var(--e))); }
}
.tuer-text { padding-top: clamp(36px, 5vw, 72px); }
.tuer-text h2 { font-size: var(--t-gross); }
.tuer-nummer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; margin-top: 22px; }
.tuer-nummer a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--schrift-display); font-weight: 700; font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); line-height: 1.1; text-decoration: none; color: var(--text); }
.tuer-nummer span { color: var(--text-2); }

/* Kleine, flache Handys (zum Beispiel 360 × 640): das Fensterbild wird niedriger, die Uhr kleiner, damit Überschrift, Knopf und Satz im ersten Bildschirm bleiben */
@media (max-width: 899px) and (max-height: 700px) { :root { --bild-h: 22svh; --zahl-h: 2.9rem; --t-uhr: 2.5rem; } }
