/* Stevens Agents — Gestaltung der Seite.
   Aufbau: 1 Schriften · 2 Grundwerte · 3 Grundlagen · 4 Kopf · 5 Abschnitte und Faden
           6 Bausteine · 7 einzelne Abschnitte · 8 Formular · 9 Fuß, Rechtsseiten
           10 Bewegung · 11 Hilfen */

/* ── 1 Schriften (liegen lokal im Projekt) ───────────────────────────── */
@font-face {
  font-family: 'Newsreader'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('/assets/fonts/newsreader-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader'; font-style: italic; font-weight: 400 600; font-display: swap;
  src: url('/assets/fonts/newsreader-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('/assets/fonts/inter-normal.woff2') format('woff2');
}

/* ── 2 Grundwerte ────────────────────────────────────────────────────── */
:root {
  --navy: #0A1628;
  --navy-2: #0F1F38;
  --gold: #C9A84C;
  --gold-tief: #7A5F12;       /* Gold für kleine Schrift auf Hell */
  --papier: #F4EFE5;
  --hell: #F2EDE2;            /* Schrift auf Navy */
  --hell-leise: #AEB7C6;
  --tinte: #0A1628;
  --tinte-leise: #485264;
  --rot: #9B2C1F;

  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --rand: 20px;               /* Abstand zum rechten Rand */
  --faden-x: 20px;            /* Lage des Fadens von links */
  --einzug: 46px;             /* Beginn des Textes von links */
  --breite: 1200px;
  --kopf: 56px;
  --p: 1;                     /* Fortschritt bewegter Grafiken: ohne Skript der Endzustand */
}
@media (min-width: 720px) {
  :root { --rand: 40px; --faden-x: 40px; --einzug: 96px; --kopf: 64px; }
}
@media (min-width: 1040px) {
  :root { --rand: 48px; --faden-x: 48px; --einzug: 132px; }
}

/* ── 3 Grundlagen ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--navy); color-scheme: dark; scroll-padding-top: calc(var(--kopf) + 16px); }
body {
  margin: 0; background: var(--navy); color: var(--hell);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.62; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-wrap: break-word;
}
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote, fieldset, table { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--akzent, var(--gold)); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
a[href^='mailto:'], a[href^='tel:'] { hyphens: none; -webkit-hyphens: none; white-space: nowrap; }
strong, b { font-weight: 600; }
::selection { background: var(--gold); color: var(--navy); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.blatt--hell :focus-visible { outline-color: var(--navy); }

h1, h2, .satz-gross {
  font-family: var(--serif); font-weight: 500; letter-spacing: -0.012em;
  font-optical-sizing: auto; text-wrap: balance; hyphens: manual;
}
h1 { font-size: clamp(2.15rem, 8.8vw, 4.7rem); line-height: 1.04; }
h2 { font-size: clamp(1.8rem, 6.6vw, 3.25rem); line-height: 1.1; }
h3 { font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }
p, li, td { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 14 6 6; -webkit-hyphenate-limit-before: 6; -webkit-hyphenate-limit-after: 6; text-wrap: pretty; }
@media (min-width: 720px) { p, li, td { hyphens: manual; -webkit-hyphens: manual; } }
em { font-style: italic; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.sprung {
  position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--gold); color: var(--navy);
  padding: 10px 16px; font-weight: 600; text-decoration: none; border-radius: 2px;
}
.sprung:focus { top: 12px; }

/* ── 4 Kopf ──────────────────────────────────────────────────────────── */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--kopf);
  background: var(--navy); color: var(--hell);
  border-bottom: 1px solid rgba(201, 168, 76, 0.28);
}
.kopf-innen {
  max-width: var(--breite); margin-inline: auto; height: 100%;
  padding-left: calc(var(--faden-x) - 9px); padding-right: var(--rand);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.marke {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--serif); font-size: 1.2rem; font-weight: 500; letter-spacing: 0.005em; white-space: nowrap;
}
.marke svg { width: 20px; height: 20px; flex: none; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: 2px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.knopf--gold { background: var(--gold); color: var(--navy); }
.knopf--gold:hover { background: #D8BA63; }
.knopf--navy { background: var(--navy); color: var(--hell); }
.knopf--navy:hover { background: #16294A; }
.knopf--navy[disabled] { opacity: 0.6; cursor: progress; }
.kopf .knopf { min-height: 44px; padding: 8px 14px; font-size: 0.875rem; background: transparent; color: var(--gold); border-color: var(--gold); }
.kopf .knopf:hover, .kopf .knopf:active { background: var(--gold); color: var(--navy); }
@media (max-width: 374px) {
  .marke svg { display: none; }
  .kopf .knopf { padding: 8px 12px; }
}
@media (max-width: 359px) {
  .marke svg { display: none; }
  .marke { font-size: 1.05rem; }
  .kopf .knopf { padding: 8px 10px; font-size: 0.8125rem; }
}
@media (min-width: 720px) {
  .marke { font-size: 1.3rem; }
  .kopf .knopf { min-height: 44px; padding: 10px 18px; font-size: 0.9375rem; }
}

/* ── 5 Abschnitte und Faden ──────────────────────────────────────────── */
main { position: relative; display: block; }

.blatt {
  position: relative; background: var(--flaeche); color: var(--farbe);
  padding-block: clamp(72px, 17vw, 148px);
}
.blatt--dunkel { --flaeche: var(--navy); --farbe: var(--hell); --leise: var(--hell-leise); --linie: rgba(201, 168, 76, 0.3); --linie-fein: rgba(242, 237, 226, 0.14); --akzent: var(--gold); color-scheme: dark; }
.blatt--hell { --flaeche: var(--papier); --farbe: var(--tinte); --leise: var(--tinte-leise); --linie: rgba(10, 22, 40, 0.55); --linie-fein: rgba(10, 22, 40, 0.14); --akzent: var(--gold-tief); color-scheme: light; }
.blatt--folge { padding-top: 0; }                 /* schließt an einen Abschnitt gleicher Farbe an */
.blatt--folge > .spalte::before {
  content: ''; display: block; height: 1px; background: var(--linie-fein);
  margin-bottom: clamp(56px, 12vw, 104px); grid-column: 1 / -1;
}

.spalte {
  position: relative; max-width: var(--breite); margin-inline: auto;
  padding-left: var(--einzug); padding-right: var(--rand);
}

.blatt--folge.ohne-linie > .spalte::before { background: transparent; }
@media (max-width: 1039px) { .blatt--folge.ohne-linie-schmal > .spalte::before { background: transparent; } }

/* Der Faden: eine Linie am linken Rand. Ohne Skript und bei reduzierter Bewegung
   steht sie ruhig durch. Mit Skript wird sie beim Scrollen bis zur Lesehöhe gezogen. */
.faden {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  max-width: var(--breite); margin-inline: auto;
}
.faden-fenster { position: absolute; inset: 0; }
.faden-linie {
  position: absolute; top: 0; bottom: 0; left: calc(var(--faden-x) - 0.75px); width: 1.5px;
  background: var(--gold); opacity: 0.55; transform-origin: 0 0;
}
.bewegt .faden-fenster { position: sticky; inset: auto; top: 0; height: 100vh; overflow: hidden; }
.bewegt .faden-linie { opacity: 0.9; will-change: transform; transform: translateY(0) scaleY(0); }

.knoten {
  position: absolute; z-index: 4; left: calc(var(--faden-x) - 5.5px);
  width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid var(--gold); background: var(--gold);
  margin-top: 0.42em;
}
.knoten--klein { width: 9px; height: 9px; left: calc(var(--faden-x) - 4.5px); margin-top: 0.5em; }
.knoten--frage, .knoten--antwort { width: 17px; height: 17px; left: calc(var(--faden-x) - 8.5px); margin-top: 0.2em; }
.knoten--frage { background: var(--flaeche); }
.knoten--eckig { border-radius: 0; transform: rotate(45deg); }
.bewegt .knoten { background: var(--flaeche); transition: background-color 0.18s ease; }
.bewegt .knoten.erreicht { background: var(--gold); }
.bewegt .knoten--frage, .bewegt .knoten--frage.erreicht { background: var(--flaeche); }

/* ── 6 Bausteine ─────────────────────────────────────────────────────── */
.oben {                                     /* kleine Zeile über einer Überschrift */
  display: block; margin-bottom: 18px; color: var(--akzent);
  font: 600 0.78rem/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
}
.text { max-width: 35rem; }
.text > * + * { margin-top: 1.05em; }
.blatt h2 + .text, .blatt h2 + p, .blatt h1 + .text { margin-top: clamp(24px, 5vw, 36px); }
.leise { color: var(--leise); }
.satz-gross { font-size: clamp(1.35rem, 4.6vw, 1.75rem); line-height: 1.28; letter-spacing: -0.005em; }
.ziffer { font-family: var(--serif); font-weight: 400; color: var(--akzent); font-variant-numeric: lining-nums; }
.nowrap { white-space: nowrap; }

/* Linierte Liste: das wiederkehrende Motiv (Auftragsbuch) */
.buch { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.4; }
.buch th, .buch td { text-align: left; vertical-align: baseline; padding: 15px 0; border-bottom: 1px solid var(--linie-fein); font-weight: 400; }
.buch thead th {
  padding: 0 0 10px; border-bottom: 1px solid var(--linie);
  font: 600 0.74rem/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--leise);
}
.buch .wer { width: 38%; padding-left: 16px; }
.buch .schreiblinie { display: block; height: 1.1em; border-bottom: 1px solid var(--linie); opacity: 0.75; }

/* Nummerierte Liste mit Linien (enthalten, Risiken) */
.posten { border-top: 1px solid var(--linie); counter-reset: posten; }
.posten > li {
  display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: 8px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--linie-fein); counter-increment: posten;
}
.posten > li::before {
  content: counter(posten); font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--akzent);
  font-variant-numeric: lining-nums;
}
.posten b { display: block; font-weight: 600; grid-column: 2; }
.posten span { display: block; color: var(--leise); margin-top: 2px; grid-column: 2; }
@media (min-width: 720px) {
  .posten > li { grid-template-columns: 3.4rem minmax(0, 15rem) minmax(0, 1fr); column-gap: 20px; padding: 20px 0; }
  .posten span { margin-top: 0; grid-column: 3; }
  .posten--weit > li { grid-template-columns: 3.4rem minmax(0, 13rem) minmax(0, 1fr); }
}
@media (min-width: 1040px) {
  .posten--weit > li { grid-template-columns: 3.4rem minmax(0, 19rem) minmax(0, 1fr); }
}

/* Raster für breite Bildschirme: Text links, Grafik rechts versetzt */
@media (min-width: 1040px) {
  .zweispaltig { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 28px; align-items: start; }
  .zweispaltig > .links { grid-column: 1 / span 7; }
  .zweispaltig > .rechts { grid-column: 9 / span 4; }
  .zweispaltig > .links-schmal { grid-column: 1 / span 5; }
  .zweispaltig > .rechts-breit { grid-column: 7 / span 6; }
  .zweispaltig > .ganz { grid-column: 1 / -1; }
}

/* ── 7 Einzelne Abschnitte ───────────────────────────────────────────── */

/* A01 Einstieg */
.einstieg { padding-top: calc(var(--kopf) + clamp(44px, 11vw, 112px)); padding-bottom: clamp(64px, 12vw, 120px); min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.einstieg .spalte { width: 100%; }
.einstieg h1 { max-width: 13.5em; }
.einstieg h1 .zeile { display: block; }
.einstieg h1 em { font-style: italic; font-weight: 400; }
.einstieg .text { margin-top: clamp(24px, 5vw, 36px); font-size: 1.125rem; max-width: 31rem; }
.frage { margin-top: clamp(40px, 9vw, 72px); max-width: 31rem; }
.frage .leise { font-size: 0.95rem; }
.frage .satz-gross { margin-top: 6px; font-style: italic; font-weight: 400; color: var(--gold); }
.einstieg .buch { margin-top: clamp(48px, 10vw, 72px); max-width: 26rem; }
@media (min-width: 1040px) {
  .einstieg .zweispaltig { align-items: end; }
  .einstieg h1 { font-size: clamp(3.4rem, 5.6vw, 4.5rem); max-width: none; }
  .einstieg h1 .zeile { white-space: nowrap; }
  .einstieg .buch { margin-top: 0; margin-bottom: 8px; }
}

/* A02 Zweifel */
.zweifel { margin-top: clamp(32px, 7vw, 56px); display: grid; gap: clamp(28px, 6vw, 40px); max-width: 35rem; }
.zweifel > li { border-top: 1px solid var(--linie); padding-top: 18px; }
.zweifel .oben { margin-bottom: 10px; }
.zweifel .satz-gross { font-size: clamp(1.4rem, 5vw, 1.8rem); }
.zweifel .leise { margin-top: 0.55em; }
.nach-zweifel { margin-top: clamp(36px, 8vw, 60px); }
@media (min-width: 1040px) {
  .zweifel { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 54rem; column-gap: 56px; }
}

/* A03 Drei Wege */
.wege { margin-top: clamp(32px, 7vw, 56px); border-top: 1px solid var(--linie); max-width: 54rem; }
.wege > li { padding: 20px 0 22px; border-bottom: 1px solid var(--linie-fein); display: grid; gap: 4px; }
.wege .wenn { color: var(--leise); }
.wege .dann { font-family: var(--serif); font-size: clamp(1.35rem, 4.8vw, 1.8rem); line-height: 1.22; letter-spacing: -0.005em; }
.wege .zahl { display: block; font-size: clamp(1.7rem, 7vw, 2.6rem); line-height: 1.05; letter-spacing: -0.02em; margin: 6px 0 4px; font-variant-numeric: lining-nums; }
.wege + .text { margin-top: clamp(32px, 7vw, 52px); }
@media (min-width: 720px) { .wege .zahl { font-size: clamp(2rem, 4.2vw, 2.6rem); } }
@media (min-width: 1040px) { .wege .zahl { white-space: nowrap; } }
@media (min-width: 720px) {
  .wege > li { grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); column-gap: 32px; align-items: baseline; }
}

/* A04 Ben */
.tag { margin-top: clamp(40px, 9vw, 72px); }
.uhr { position: relative; width: 132px; height: 132px; margin-bottom: 36px; }
.uhr svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.uhr circle { fill: none; stroke-width: 1.5; }
.uhr .bahn { stroke: var(--linie-fein); }
.uhr .lauf { stroke: var(--gold); stroke-dasharray: 100; stroke-dashoffset: calc((1 - var(--p)) * 100); stroke-linecap: butt; }
.uhr-zeit { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-family: var(--serif); font-size: 2.4rem; line-height: 1; letter-spacing: -0.01em; font-variant-numeric: lining-nums; }
.uhr-zeit small { display: block; margin-top: 6px; font: 600 0.68rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--leise); }
.schritte > li { padding: 0 0 clamp(26px, 6vw, 40px); max-width: 30rem; }
.schritte > li:last-child { padding-bottom: 0; }
.schritte .was { font-family: var(--serif); font-size: clamp(1.35rem, 4.8vw, 1.7rem); line-height: 1.22; letter-spacing: -0.005em; }
.schritte .dazu { display: block; margin-top: 4px; color: var(--leise); }
.schritte .freigabe { border: 1px solid var(--gold); padding: 16px 18px 18px; margin: 0 0 clamp(26px, 6vw, 40px); max-width: 26rem; }
.schritte .freigabe .was { color: var(--gold); }
.schritte .freigabe .dazu { color: var(--hell); }
.tag + .text { margin-top: clamp(40px, 8vw, 64px); }
@media (min-width: 1040px) {
  .tag { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 28px; align-items: start; }
  .tag-uhr { grid-column: 9 / span 4; grid-row: 1; position: sticky; top: calc(var(--kopf) + 14vh); justify-self: end; }
  .uhr { width: 240px; height: 240px; margin: 0; }
  .uhr-zeit { font-size: 4.2rem; }
  .uhr-zeit small { font-size: 0.74rem; margin-top: 10px; }
  .schritte { grid-column: 1 / span 7; grid-row: 1; }
  .schritte > li { padding-bottom: 56px; }
  .schritte .freigabe { margin-bottom: 56px; }
}

/* A05 Vorgangsliste mit wandernder Eintragung */
.blatt .buch--gross { margin-top: clamp(32px, 7vw, 52px); max-width: 54rem; }
.buch--gross td:first-child { font-family: var(--serif); font-size: clamp(1.15rem, 4.2vw, 1.4rem); line-height: 1.25; padding-right: 8px; }
.buch--gross .wer { width: 34%; white-space: nowrap; }
.buch--gross .wer { vertical-align: bottom; }
.buch--gross .schreiblinie { height: 1.5em; transition: border-color 0.16s ease; }
.eintrag { display: block; font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.5; color: var(--akzent); border-bottom: 1px solid var(--linie); transition: border-color 0.16s ease; }
.eintrag-zusatz { display: block; font: 400 0.8rem/1.3 var(--sans); color: var(--leise); white-space: normal; }
.bewegt .buch--gross tr.aktiv .schreiblinie, .bewegt .buch--gross tr.aktiv .eintrag { border-bottom: 2px solid var(--gold); opacity: 1; }
.buch--gross tr .marker { display: none; }
.buch--gross + .text { margin-top: clamp(28px, 6vw, 44px); }

/* A06 Freigabe-Beleg */
.grundsaetze { margin-top: clamp(28px, 6vw, 44px); max-width: 35rem; border-top: 1px solid var(--linie); }
.grundsaetze { counter-reset: grenze; }
.grundsaetze > li { hyphens: manual; -webkit-hyphens: manual; padding: 18px 0 18px 2.4rem; border-bottom: 1px solid var(--linie-fein); position: static; counter-increment: grenze; text-indent: 0; }
.grundsaetze > li::before { content: counter(grenze); float: left; margin-left: -2.4rem; font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; color: var(--akzent); font-variant-numeric: lining-nums; }
.grundsaetze .beispiel { display: block; margin-top: 0.55em; color: var(--leise); }
.beleg {
  margin-top: clamp(40px, 9vw, 64px); max-width: 21rem; padding: 24px 22px 20px;
  border: 1px solid var(--linie); background: #FBF8F1;
}
.beleg-kopf { font: 600 0.74rem/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--leise); }
.beleg-titel { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; margin-top: 6px; }
.beleg-zeilen { margin-top: 18px; display: grid; gap: 9px; }
.beleg-zeilen i { display: block; height: 1px; background: var(--linie-fein); }
.beleg-zeilen i:nth-child(2) { width: 82%; } .beleg-zeilen i:nth-child(3) { width: 64%; }
.beleg-unterschrift { margin-top: 26px; position: relative; height: 46px; border-bottom: 1px solid var(--linie); }
.beleg-unterschrift svg { position: absolute; left: 4px; bottom: -6px; width: 150px; height: 52px; overflow: visible; }
.beleg-unterschrift path { fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: calc((1 - var(--p)) * 100); }
.beleg-fuss { margin-top: 8px; font-size: 0.86rem; color: var(--leise); line-height: 1.4; }
@media (min-width: 1040px) { .beleg { margin-top: 12px; margin-left: auto; } }

/* A07 Ablauf */
.leiste {
  --tg: 10px;                                /* Abstand der sieben Tagesmarken */
  --dg: 3px;                                 /* Abstand der dreißig feinen Marken */
  --lu: 6px;                                 /* Lücke zwischen Bau und Betreuung */
  margin-top: clamp(40px, 9vw, 64px); max-width: 100%;
}
.leiste-bahn { position: relative; width: max-content; max-width: 100%; }
.leiste-reihe { display: flex; align-items: flex-end; height: 34px; }
.leiste-reihe i { display: block; flex: none; }
.leiste-reihe .vor { width: 9px; height: 9px; border-radius: 50%; background: currentColor; margin: 0 14px 12px 0; }
.leiste-reihe .t { width: 3px; height: 34px; background: currentColor; margin-right: var(--tg); position: relative; }
.leiste-reihe .t::before { content: ''; position: absolute; left: -2px; top: -11px; width: 7px; height: 5px; background: currentColor; }
.leiste-reihe .abstand { width: var(--lu); }
.leiste-reihe .d { width: 2px; height: 16px; background: currentColor; margin-right: var(--dg); }
.leiste-reihe .d:last-child { margin-right: 0; }
.leiste-grund { color: rgba(242, 237, 226, 0.22); }
.leiste-gold { color: var(--gold); position: absolute; inset: 0 auto auto 0; clip-path: inset(-14px calc((1 - var(--p)) * 100%) 0 0); }
.leiste-schrift { display: flex; margin-top: 12px; padding-left: 23px; font: 600 0.7rem/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--leise); white-space: nowrap; }
.leiste-schrift span:first-child { width: calc(7 * (3px + var(--tg)) + var(--lu)); flex: none; }
@media (max-width: 359px) { .leiste { --tg: 9px; --dg: 2px; --lu: 6px; } .leiste-schrift { font-size: 0.64rem; letter-spacing: 0.06em; } }
@media (min-width: 720px) { .leiste { --tg: 22px; --dg: 7px; --lu: 14px; } }
@media (min-width: 1040px) { .leiste { --tg: 32px; --dg: 11px; --lu: 20px; } }
.ablauf { margin-top: clamp(36px, 8vw, 56px); border-top: 1px solid var(--linie); max-width: 54rem; }
.ablauf > li { padding: 18px 0 20px; border-bottom: 1px solid var(--linie-fein); display: grid; gap: 4px; }
.ablauf .wann { font: 600 0.78rem/1.5 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
@media (min-width: 720px) {
  .ablauf > li { grid-template-columns: 13rem minmax(0, 1fr); column-gap: 24px; align-items: baseline; }
}

/* A08 bis A10: Angebot */
.posten { margin-top: clamp(32px, 7vw, 52px); max-width: 54rem; }
.drei-nein { margin-top: 1.05em; }
.drei-nein span { display: block; }
@media (min-width: 720px) { .drei-nein span { display: inline; } }

/* A12 Garantie */
.garantie { position: relative; max-width: 58rem; padding: clamp(28px, 7vw, 64px) clamp(4px, 2vw, 40px) clamp(28px, 6vw, 52px) 0; }
.garantie blockquote { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 7.6vw, 3.9rem); line-height: 1.08; letter-spacing: -0.018em; text-wrap: balance; hyphens: manual; }
.garantie blockquote p { hyphens: manual; }
.strich { position: relative; white-space: nowrap; }
.strich::after { content: ''; position: absolute; left: 0; right: 0; bottom: -0.04em; height: 0.07em; min-height: 3px; background: var(--gold); transform-origin: 0 50%; transform: scaleX(var(--p)); }
.garantie .text { margin-top: clamp(28px, 6vw, 44px); }
.unterschrift { margin-top: 22px; font-family: var(--serif); font-style: italic; font-size: 1.3rem; }
.ecke { position: absolute; width: 22px; height: 22px; border: 0 solid var(--gold-tief); pointer-events: none; }
.ecke--ol { left: calc(-1 * (var(--einzug) - var(--faden-x)) + 18px); top: 0; border-top-width: 1.5px; border-left-width: 1.5px; display: none; }
.ecke--ur { right: 0; bottom: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.ecke--or { right: 0; top: 0; border-top-width: 1.5px; border-right-width: 1.5px; }

/* A13 Zwei Betriebe */
.betriebe { margin-top: clamp(20px, 4vw, 28px); }

/* A14 Wer dahintersteht */
.person { margin-top: clamp(28px, 6vw, 44px); display: grid; gap: clamp(28px, 6vw, 40px); }
.bild-platz {
  width: 9.5rem; aspect-ratio: 4 / 5; background: var(--navy-2);
  border: 1px solid rgba(201, 168, 76, 0.3); display: grid; place-content: center;
}
.bild-platz span { font-family: var(--serif); font-size: 2.4rem; letter-spacing: 0.04em; color: rgba(201, 168, 76, 0.75); line-height: 1; }
.foto { display: block; width: 9.5rem; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--navy-2); border: 1px solid rgba(201, 168, 76, 0.3); }
.kontakt { margin-top: clamp(20px, 4vw, 30px); display: grid; gap: 2px; font-family: var(--serif); font-size: clamp(1.3rem, 4.6vw, 1.6rem); line-height: 1.3; }
.kontakt a { text-decoration-color: rgba(201, 168, 76, 0.6); width: fit-content; padding: 8px 0; }
@media (min-width: 720px) {
  .person { grid-template-columns: 15rem minmax(0, 1fr); column-gap: 56px; align-items: start; }
  .bild-platz { width: 15rem; }
  .foto { width: 15rem; }
  .bild-platz span { font-size: 3.4rem; }
}

/* A15 Auflösung mit Konstruktionslinien */
.aufloesung { overflow: hidden; --flaeche: var(--navy-2); }
.plan-linien { position: absolute; inset: 0; pointer-events: none; max-width: var(--breite); margin-inline: auto; }
.plan-linien i { position: absolute; background: var(--gold); opacity: 0.34; display: block; }
.plan-linien .s { top: 0; bottom: 0; width: 1px; transform-origin: 50% 0; transform: scaleY(var(--p)); }
.plan-linien .z { left: 0; right: 0; height: 1px; transform-origin: 0 50%; transform: scaleX(var(--p)); }
/* Die Linien laufen neben dem Text, nie durch ihn hindurch. */
.plan-linien .s:nth-child(1) { left: calc(var(--einzug) - 14px); }
.plan-linien .s.mitte { display: none; }
.plan-linien .s:nth-child(3) { right: calc(var(--rand) - 14px); }
@media (min-width: 1040px) {
  .plan-linien .s.mitte { display: block; left: calc(var(--einzug) + (100% - var(--einzug) - var(--rand)) * 0.72); opacity: 0.18; }
}
.plan-linien .z:nth-child(4) { top: clamp(44px, 10vw, 92px); }
.plan-linien .z:nth-child(5) { bottom: clamp(44px, 10vw, 92px); }
.plan-linien .kreuz { width: 13px; height: 13px; background: none; opacity: calc(var(--p) * 0.9); }
.plan-linien .kreuz::before, .plan-linien .kreuz::after { content: ''; position: absolute; background: var(--gold); }
.plan-linien .kreuz::before { left: 6px; top: 0; width: 1px; height: 13px; }
.plan-linien .kreuz::after { top: 6px; left: 0; height: 1px; width: 13px; }
.plan-linien .kreuz:nth-child(6) { left: calc(var(--einzug) - 20px); top: calc(clamp(44px, 10vw, 92px) - 6px); }
.plan-linien .kreuz:nth-child(7) { right: calc(var(--rand) - 20px); bottom: calc(clamp(44px, 10vw, 92px) - 6px); }
.aufloesung h2 .antwort { display: block; color: var(--gold); font-style: italic; font-weight: 400; }

/* ── 8 Formular ──────────────────────────────────────────────────────── */
.formular { margin-top: clamp(40px, 9vw, 64px); max-width: 39rem; }
.schritt { padding-top: 26px; margin-top: 34px; border-top: 1px solid var(--linie); }
.schritt:first-of-type { margin-top: 0; }
.schritt legend, .schritt-titel {
  float: left; width: 100%; padding: 0; margin-bottom: 18px;
  font: 600 0.78rem/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-tief);
}
.schritt legend + * { clear: both; }
.schritt-hinweis { color: var(--tinte-leise); font-size: 0.95rem; margin-bottom: 14px; }

.kalender { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 719px) { .kalender { gap: 4px; } .formular { margin-top: 28px; } .schritt-hinweis { margin-bottom: 8px; } }
.kalender .wt { text-align: center; font: 600 0.72rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--tinte-leise); padding-bottom: 6px; }
.tagwahl { position: relative; }
.tagwahl input, .zeitwahl input, .dienstwahl input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tagwahl span {
  display: grid; place-content: center; text-align: center; min-height: 52px; padding: 4px 0;
  border: 1px solid rgba(10, 22, 40, 0.3); border-radius: 2px; background: #FBF8F1;
  font-family: var(--serif); font-size: 1.3rem; line-height: 1; font-variant-numeric: lining-nums;
}
.tagwahl span small { display: block; margin-top: 4px; font: 600 0.7rem/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--tinte-leise); }
.tagwahl input:disabled { cursor: default; }
.tagwahl input:disabled + span { border-color: transparent; background: transparent; color: rgba(10, 22, 40, 0.34); }
.tagwahl input:disabled + span small { color: rgba(10, 22, 40, 0.34); }
.tagwahl input:checked + span, .zeitwahl input:checked + span, .dienstwahl input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--hell); }
.tagwahl input:checked + span small { color: var(--gold); }
.tagwahl input:focus-visible + span, .zeitwahl input:focus-visible + span, .dienstwahl input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.tagwahl input:not(:disabled):hover + span, .zeitwahl input:hover + span, .dienstwahl input:hover + span { border-color: var(--navy); }
.kalender .leer { min-height: 52px; }

.zeiten, .dienste { display: flex; flex-wrap: wrap; gap: 8px; }
.zeitwahl, .dienstwahl { position: relative; }
.zeitwahl span, .dienstwahl span {
  display: grid; place-content: center; min-height: 50px; padding: 8px 20px;
  border: 1px solid rgba(10, 22, 40, 0.3); border-radius: 2px; background: #FBF8F1;
  font-weight: 600; font-variant-numeric: tabular-nums lining-nums;
}
.zeiten-leer { color: var(--tinte-leise); }

.felder { display: grid; gap: 22px; clear: both; }
@media (min-width: 720px) { .felder { grid-template-columns: 1fr 1fr; column-gap: 28px; } .feld--breit { grid-column: 1 / -1; } }
.feld label, .feld .label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.feld .frei { font-weight: 400; color: var(--tinte-leise); }
.feld input, .feld textarea {
  width: 100%; border: 0; border-bottom: 1.5px solid rgba(10, 22, 40, 0.55); border-radius: 0;
  background: transparent; color: var(--tinte); padding: 10px 0 9px; font: 400 1.0625rem/1.4 var(--sans);
  appearance: none; -webkit-appearance: none;
}
.feld textarea { resize: none; field-sizing: content; min-height: 2.9em; }
.feld-hinweis { display: block; margin-top: 6px; font-size: 0.9rem; color: var(--tinte-leise); }
.feld input:focus, .feld textarea:focus { outline: none; border-bottom-color: var(--navy); box-shadow: 0 1.5px 0 0 var(--navy); }
.feld input:focus-visible, .feld textarea:focus-visible { outline: none; }
.feld [aria-invalid='true'] { border-bottom-color: var(--rot); }
.fehler { display: block; margin-top: 6px; color: var(--rot); font-size: 0.92rem; font-weight: 600; }
.fehler:empty { display: none; }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.absenden { margin-top: 30px; }
.absenden .hinweis { font-size: 0.95rem; color: var(--tinte-leise); max-width: 34rem; }
.absenden .knopf { margin-top: 20px; width: 100%; min-height: 56px; font-size: 1.0625rem; }
@media (min-width: 720px) { .absenden .knopf { width: auto; min-width: 17rem; } }
.absenden .nach { margin-top: 12px; font-size: 0.95rem; color: var(--tinte-leise); }
.meldung { margin-top: 20px; padding: 16px 18px; border: 1px solid var(--rot); color: var(--rot); background: #FBF8F1; font-weight: 600; }
.meldung a { color: inherit; }
.meldung[hidden] { display: none; }
.angekommen { margin-top: clamp(40px, 9vw, 64px); max-width: 39rem; padding: 26px 0 0; border-top: 1.5px solid var(--navy); }
.angekommen h3 { font-family: var(--serif); font-size: clamp(1.6rem, 5.6vw, 2.2rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
.angekommen p { margin-top: 14px; max-width: 34rem; }
.angekommen:focus { outline: none; }
.direkt { margin-top: 1.05em; font-size: 0.95rem; color: var(--tinte-leise); max-width: 35rem; }
.ohne-skript { margin-top: clamp(32px, 7vw, 48px); max-width: 35rem; padding: 18px 0; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie-fein); }
.skript .ohne-skript { display: none; }
html:not(.skript) .direkt { display: none; }
[hidden] { display: none !important; }

/* ── 9 Fuß und Rechtsseiten ──────────────────────────────────────────── */
.fuss { background: var(--navy); color: var(--hell-leise); border-top: 1px solid rgba(201, 168, 76, 0.28); padding: 36px 0 44px; font-size: 0.95rem; --akzent: var(--gold); }
.fuss .spalte { display: grid; gap: 14px; }
.fuss strong { color: var(--hell); font-family: var(--serif); font-size: 1.15rem; font-weight: 500; }
.fuss nav { display: flex; gap: 24px; }
.fuss nav a { color: var(--hell); padding: 12px 0; }
@media (min-width: 720px) {
  .fuss .spalte { grid-template-columns: 1fr auto; align-items: baseline; row-gap: 8px; }
  .fuss .ki { grid-column: 1 / -1; }
}

.recht { padding-top: calc(var(--kopf) + clamp(44px, 9vw, 88px)); min-height: 80vh; }
.recht h1 { font-size: clamp(2.1rem, 7.6vw, 3.4rem); }
.recht h2 { font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; margin-top: 2.2em; text-wrap: wrap; }
.recht p, .recht ul { margin-top: 0.7em; max-width: 40rem; }
.recht h1 + p { margin-top: 1.4em; }
.recht ul { list-style: disc; padding-left: 1.2em; }
.recht li + li { margin-top: 0.3em; }
.recht .zurueck { margin-top: 3em; }
.recht h2 + p { margin-top: 0.5em; }
.luecke { border-bottom: 1px dashed var(--gold-tief); padding: 0 2px; }

/* Unterseite Erfahrungsbericht (Entwurf) */
.entwurf-marke { display: inline-block; border: 1px dashed var(--gold); color: var(--gold); padding: 6px 12px; font: 600 0.74rem/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 28px; }
.bericht-person { margin-top: clamp(36px, 8vw, 56px); display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 20px; align-items: center; max-width: 35rem; }
.bericht-person .bild-platz { width: 84px; aspect-ratio: 1; }
.bericht-person .bild-platz span { font-size: 1rem; font-family: var(--sans); letter-spacing: 0.1em; text-transform: uppercase; }
.logo-platz { margin-top: 24px; width: 168px; height: 56px; border: 1px solid var(--linie-fein); display: grid; place-content: center; font: 600 0.7rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--leise); }
.zitat-gross { font-family: var(--serif); font-size: clamp(1.5rem, 5.4vw, 2.3rem); line-height: 1.2; letter-spacing: -0.01em; max-width: 44rem; }

/* 404 */
.verirrt { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--kopf) + 48px); }

/* ── 10 Bewegung ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ── 11 Hilfen ───────────────────────────────────────────────────────── */
/* Platzhalter sichtbar machen: Adresse mit ?platzhalter aufrufen. */
.zeige-platzhalter [data-platzhalter] { outline: 2px dashed #E0489A; outline-offset: 3px; position: relative; }
.zeige-platzhalter [data-platzhalter][hidden] { display: block !important; }
.zeige-platzhalter [data-platzhalter]::after {
  content: 'Platzhalter: ' attr(data-platzhalter); position: absolute; left: 0; top: 100%; z-index: 20;
  background: #E0489A; color: #fff; font: 600 11px/1.3 var(--sans); padding: 3px 6px; white-space: nowrap; letter-spacing: 0;
  text-transform: none;
}

@media print {
  .kopf, .faden, .knoten, .formular, .plan-linien { display: none !important; }
  .blatt { padding-block: 24px; background: #fff !important; color: #000 !important; }
}
.recht h2.teil { font-family: var(--serif); font-size: clamp(1.45rem, 4.6vw, 1.9rem); font-weight: 500; line-height: 1.25; margin-top: 2.4em; }
.recht h3 { font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; line-height: 1.4; margin-top: 2em; }
.recht h3 + p { margin-top: 0.5em; }
.agb p, .agb ul { max-width: 44rem; }
