/* YUKADO MEDIA – Funnel (01_DESIGN/DESIGN_SYSTEM.md, RESPONSIVE_SPEC.md). Keine externen Ressourcen. */
:root {
  --navy-900: #0b2545;
  --navy-700: #163a5f;
  --blue: #2563eb;
  --text: #0f172a;
  --text-2: #475569;
  --border: #e2e8f0;
  --input-border: #7c8ba1;
  --surface: #f8fafc;
  --white: #ffffff;
  --success: #15803d;
  --error: #b91c1c;
  --warn-bg: #fef6e4;
  --warn-border: #b45309;
  --select-bg: #f1f5fb;
  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-input: 8px;
  --radius-media: 12px;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(16px, 0.95rem + 0.2vw, 18px);
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-wrap: anywhere;
}

img, svg, iframe { max-width: 100%; }

h1, h2, h3, h4 { color: var(--navy-900); line-height: 1.1; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 700; }
.h3, h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); font-weight: 650; }
.h4, h4 { font-size: 1.1rem; font-weight: 650; }
.h1-sub { color: var(--text-2); font-weight: 600; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); color: var(--text-2); max-width: 46rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 700; color: var(--navy-700); margin-bottom: 0.75rem; }

a { color: var(--blue); }
.link { color: var(--blue); text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .link:hover { color: var(--navy-900); } }
.link--target { display: inline-flex; align-items: center; min-height: 44px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.sr-only, .default-submit {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link { position: absolute; left: 16px; top: -100px; background: var(--navy-900); color: var(--white); padding: 12px 16px; border-radius: var(--radius-btn); z-index: 10; }
.skip-link:focus { top: 12px; }

/* Layout */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: calc(820px + 2 * var(--gutter)); }
.section { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(40px, 6vw, 88px); }
.section--form { padding-top: clamp(28px, 4vw, 56px); }

.site-header { background: var(--white); border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; flex-wrap: wrap; }
.wordmark { font-weight: 800; letter-spacing: 0.06em; color: var(--navy-900); text-decoration: none; font-size: 1.1rem; padding: 10px 0; }
.wordmark span { font-weight: 500; }
.site-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.site-nav__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--navy-900); font-weight: 600; text-decoration: none; border-radius: var(--radius-btn); }
@media (hover: hover) and (pointer: fine) { .site-nav__link:hover { background: var(--surface); } }
.inline-form { display: inline; margin: 0; }

.site-main { min-height: 60vh; }
.site-footer { border-top: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 0.95rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; }
.site-footer__brand { margin: 0; }
.site-footer__nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer__withdrawal-group { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: 32rem; }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy-900); }
/* Widerrufsfunktion (§ 356a Abs. 1 BGB): hervorgehoben vor den übrigen Rechtslinks, fett mit Rahmen, Tippfläche ≥ 44 px. */
.site-footer__withdrawal { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 6px 16px; border: 2px solid var(--navy-900); border-radius: 10px; background: #fff; color: var(--navy-900); font-weight: 700; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .site-footer__withdrawal:hover { background: var(--navy-900); color: #fff; } }

/* Buttons */
/* `display` unten überstimmt sonst das Attribut `hidden`: Knöpfe, die das Skript ausblendet (Zwischenstand speichern,
   Hochladen) oder erst einblendet (Link kopieren), blieben sichtbar. */
.btn[hidden] { display: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius-btn);
  border: 1px solid transparent; font: inherit; font-weight: 650; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 100ms cubic-bezier(0.23, 1, 0.32, 1);
  text-align: center;
}
/* Druck (DH-1, 01.11.2026): beim Aufsetzen, nicht beim Loslassen; nicht bei deaktivierten Knöpfen. */
.btn:active:not(:disabled):not([aria-disabled="true"]) { transform: scale(0.97); }
.btn--primary { background: var(--navy-900); color: var(--white); }
.btn--primary::after { content: "→"; font-weight: 400; }
@media (hover: hover) and (pointer: fine) { .btn--primary:hover { background: var(--navy-700); } }
.btn--secondary { background: var(--white); color: var(--navy-900); border-color: var(--navy-900); }
@media (hover: hover) and (pointer: fine) { .btn--secondary:hover { background: var(--surface); } }
.btn--ghost { background: transparent; color: var(--navy-900); border-color: var(--border); }
@media (hover: hover) and (pointer: fine) { .btn--ghost:hover { background: var(--surface); } }
.btn--link { background: none; border: 0; padding: 8px 10px; min-height: 44px; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .btn--link:hover { color: var(--navy-900); } }
.btn--small { min-height: 44px; padding: 10px 16px; font-size: 0.95rem; }
.btn--block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Karten */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); margin-bottom: 24px; }
.card--details > summary { cursor: pointer; font-weight: 650; color: var(--navy-900); min-height: 44px; display: flex; align-items: center; }
.card--details[open] > summary { margin-bottom: 12px; }
.badge { display: inline-block; align-self: flex-start; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--white); background: var(--navy-900); border-radius: 999px; padding: 4px 12px; margin-bottom: 16px; }
.badge--muted { background: var(--surface); color: var(--navy-900); border: 1px solid var(--border); }
.badge--offer { background: var(--white); color: var(--navy-900); border: 1px solid var(--navy-900); text-transform: none; letter-spacing: 0; font-size: 0.9rem; }

.hero { padding-bottom: 16px; }
.entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 0; }
.entry-card { border: 1px solid var(--border); border-radius: var(--radius-card); padding: clamp(24px, 3vw, 40px); background: var(--white); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.entry-card--primary { border-color: var(--navy-900); }
.entry-card__form { margin-top: auto; padding-top: 16px; }
.check-list { list-style: none; padding: 0; margin: 0 0 16px; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 0.45em; width: 12px; height: 7px; border-left: 2px solid var(--navy-900); border-bottom: 2px solid var(--navy-900); transform: rotate(-45deg); }
.promise { border-left: 4px solid var(--navy-900); background: var(--surface); border-radius: var(--radius-card); padding: 24px; margin-bottom: 16px; }

/* Hinweise */
.notices { margin: 0 0 24px; }
.notice { border-radius: 12px; padding: 14px 18px; margin: 0 0 12px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--navy-900); }
.notice > :last-child { margin-bottom: 0; }
.notice--warn { background: var(--warn-bg); border-color: #f3d9a4; border-left-color: var(--warn-border); }
.notice--success { background: #effaf2; border-color: #bfe5cb; border-left-color: var(--success); }
.notice--error { background: #fdf0f0; border-color: #f2c4c4; border-left-color: var(--error); }
.issue-list { margin: 0; padding-left: 20px; }
.issue-list a { color: var(--error); font-weight: 600; }

/* Fortschritt (nicht sticky, verdeckt keine Inhalte) */
.steps { margin: 8px 0 28px; }
.steps__summary { font-weight: 650; color: var(--navy-900); margin-bottom: 8px; }
.steps__bar { width: 100%; height: 8px; appearance: none; border: 0; border-radius: 999px; background: var(--border); overflow: hidden; display: block; margin-bottom: 12px; }
.steps__bar::-webkit-progress-bar { background: var(--border); border-radius: 999px; }
.steps__bar::-webkit-progress-value { background: var(--navy-900); border-radius: 999px; }
.steps__bar::-moz-progress-bar { background: var(--navy-900); border-radius: 999px; }
.steps__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.steps__item a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-2); text-decoration: none; font-size: 0.92rem; background: var(--white); }
.steps__item.is-complete a::before { content: "✓"; margin-right: 6px; color: var(--success); font-weight: 700; }
.steps__item.is-current a { border-color: var(--navy-900); color: var(--navy-900); font-weight: 650; background: var(--select-bg); }
.step-intro { color: var(--text-2); }

progress { width: 100%; height: 8px; accent-color: var(--navy-900); }

/* Formular */
.q-form { margin-top: 8px; }
.q { border: 0; padding: 0; margin: 0 0 36px; min-width: 0; }
.q-group { border-top: 1px solid var(--border); padding-top: 28px; margin-top: 12px; }
.q-label { display: block; font-weight: 650; color: var(--navy-900); font-size: 1.05rem; margin-bottom: 6px; padding: 0; }
.q-optional { font-weight: 400; color: var(--text-2); font-size: 0.92rem; }
.q-help, .q-hint { color: var(--text-2); font-size: 0.95rem; margin: 0 0 10px; }
.q-example { white-space: pre-line; }
.q-more { margin-top: 8px; }
.q-more summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: 0.95rem; min-height: 44px; display: inline-flex; align-items: center; }
.q-more p { color: var(--text-2); font-size: 0.95rem; margin: 4px 0 8px; padding-left: 12px; border-left: 2px solid var(--border); }
.q-errors { list-style: none; margin: 0 0 10px; padding: 0; color: var(--error); font-weight: 600; font-size: 0.95rem; }
.q--error .input, .q--error .choice { border-color: var(--error); }
/* Rechte-Erklärung (Slice 2): Nur der Haken, der fehlt, ist rot; hochgeladene Dateien derselben Frage bleiben neutral, und die
   Meldung steht über dem Haken statt am Kopf der Frage. */
.q--error .choice--file { border-color: var(--input-border); }
.choice--consent:has(input[aria-invalid="true"]) { border-color: var(--error); }
.q-errors--inline { margin: 0 0 8px; }
.rights { margin: 0 0 12px; }
.rights .q-hint { margin: 6px 0 0; }
.sub-label { display: block; font-weight: 600; font-size: 0.92rem; color: var(--text); margin: 12px 0 6px; }

.input {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--text);
  background: var(--white); border: 1px solid var(--input-border); border-radius: var(--radius-input);
}
textarea.input { min-height: 96px; resize: vertical; line-height: 1.5; }
select.input { padding-right: 36px; }
.input:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--navy-900); }
.input[aria-invalid="true"] { border-color: var(--error); }
.input--file { padding: 10px; }
.input--position { width: auto; min-width: 88px; }

.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.choices--compact { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.choices--stack { grid-template-columns: 1fr; }
.choice {
  position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: 48px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--white);
  cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease, transform 100ms cubic-bezier(0.23, 1, 0.32, 1);
}
.choice:active:not(:has(input:disabled)) { transform: scale(0.98); }
.choice input:checked { animation: dh-haken 160ms cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes dh-haken { from { transform: scale(0.9); opacity: 0.6; } to { transform: scale(1); opacity: 1; } }
@media (hover: hover) and (pointer: fine) { .choice:hover { border-color: var(--input-border); } }
.choice input[type="radio"], .choice input[type="checkbox"] { width: 22px; height: 22px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--navy-900); }
.choice:has(input:checked), .choice.is-selected { border-color: var(--navy-900); background: var(--select-bg); box-shadow: inset 0 0 0 1px var(--navy-900); }
.choice:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.choice--special { border-style: dashed; }
.choice--small { min-height: 44px; padding: 10px 12px; font-size: 0.95rem; }
/* Begriffs-Chips (P04, Punkt 38): bis zu drei, über der Höchstzahl gesperrt */
.choices--chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice--chip { min-height: 44px; padding: 8px 14px; border-radius: 999px; align-items: center; gap: 8px; }
.choice--chip:has(input:disabled) { opacity: 0.5; cursor: not-allowed; }
/* „Keine Präferenz“ bleibt eine volle Zeile unter den Chips. */
.choices--chips .choice--special { flex: 1 1 100%; }
.choice--consent { border-color: var(--input-border); }
.choice__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.choice__label { font-weight: 600; color: var(--text); }
.choice__hint { font-size: 0.9rem; color: var(--text-2); }

.price-badge { display: inline-block; align-self: flex-start; font-size: 0.82rem; font-weight: 650; border-radius: 8px; padding: 3px 8px; margin-top: 4px; }
.price-badge--included { background: #effaf2; color: #14532d; }
.price-badge--fixed { background: var(--select-bg); color: var(--navy-900); }
.price-badge--open { background: var(--warn-bg); color: #7c2d12; }

/* Visuelle Beispiele (Buttons, Hero) */
.sample-request { display: block; padding: 16px; border: 2px dashed var(--input-border); border-radius: 8px; background: var(--surface); font-weight: 650; }

/* Farbe */
.color-field { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 16px; align-items: end; }
.color-field input[type="color"] { width: 64px; height: 48px; padding: 4px; border: 1px solid var(--input-border); border-radius: var(--radius-input); background: var(--white); cursor: pointer; }

/* Beispiel-Links */
.links { display: grid; gap: 16px; }
.link-item { border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin: 0; min-width: 0; }
.link-item__title { font-weight: 650; color: var(--navy-900); padding: 0 6px; }
/* Weitere Beispiele aufklappbar (P04, Punkte 41/42) */
.link-more { display: grid; gap: 16px; }
.link-more__summary { cursor: pointer; font-weight: 650; color: var(--navy-900); padding: 8px 0; }

/* Übersicht am Ende des Schnellbriefings (P04, Punkt 61) */
.summary-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.summary-list__item { display: flex; align-items: baseline; gap: 10px; }
.summary-list__mark { display: inline-flex; justify-content: center; width: 1.5em; font-weight: 700; color: var(--text-2); }
.summary-list__item.is-complete .summary-list__mark { color: #15803d; }
.summary-list__state { color: var(--text-2); font-size: 0.95rem; }

/* Uploads */
.file-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.file-item { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.file-item .choice { flex: 1 1 260px; }
.file-item__name { flex: 1 1 220px; }
.file-item__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.file-item__ok { color: var(--success); font-weight: 600; }
.file-item__actions a { display: inline-flex; align-items: center; min-height: 44px; }
.upload-box { border: 1px dashed var(--input-border); border-radius: 14px; padding: 16px; background: var(--surface); }
.upload-box .btn { margin-top: 4px; }

/* Reihenfolge */
.order-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.order-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; min-height: 56px; border: 1px solid var(--border); border-radius: 14px; background: var(--white); }
.order-item__handle { width: 14px; height: 20px; flex: 0 0 auto; background-image: radial-gradient(circle, var(--input-border) 1.5px, transparent 1.6px); background-size: 7px 7px; }
.order-item__label { flex: 1 1 auto; font-weight: 600; }
.order-item__moves { display: inline-flex; gap: 4px; flex: 0 0 auto; }
.btn--icon { min-width: 44px; min-height: 44px; padding: 0; border-color: var(--border); background: var(--white); color: var(--navy-900); font-size: 1.1rem; }
@media (hover: hover) and (pointer: fine) { .btn--icon:hover { background: var(--surface); } }
.btn--icon:disabled { opacity: 0.35; cursor: default; }
.order-list.is-dnd .order-item { cursor: grab; }
.order-item.is-dragging { opacity: 0.55; border-color: var(--navy-900); }

/* Matrix: Tabelle, mobil gestapelt */
.matrix-wrap { width: 100%; }
.matrix { width: 100%; border-collapse: collapse; }
.matrix th, .matrix td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.matrix thead th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-2); }
.matrix tbody th { font-weight: 600; width: 38%; }

/* Rechtstexte (AVV): Tabellen der Anlagen, Unterpunkte, Trennlinie; mobil gestapelt, nichts abgeschnitten */
.legal-text h4 { margin: 20px 0 8px; }
.legal-text hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.legal-text ul ul { margin-top: 4px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; hyphens: auto; }
.legal-table thead th { font-weight: 600; color: var(--text-2); }
.legal-table tbody th { font-weight: 600; width: 28%; }

/* Zusatzseiten / Preise */
.pages-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 4px; }
.price-live { margin-top: 12px; padding: 16px; border-radius: 14px; border: 1px solid var(--navy-900); background: var(--select-bg); }
.price-live__rule { font-weight: 700; color: var(--navy-900); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--border); }
/* Autosave-Status (P13): klebt beim Ausfüllen rechts am unteren Rand, am Formularende steht er über den Knöpfen. Rechts,
   weil Eingaben links beginnen; Klicks gehen durch ihn hindurch auf das Feld darunter. */
.autosave-status { position: sticky; bottom: 8px; z-index: 2; width: fit-content; max-width: 100%; margin: 16px 0 0 auto; padding: 4px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--white); color: var(--text-2); font-size: 0.875rem; box-shadow: var(--shadow); pointer-events: none; }
.autosave-status:empty { margin: 0; padding: 0; border: 0; box-shadow: none; }
.autosave-status[data-state="saved"] { color: var(--success); }
.autosave-status[data-state="saved"]::before { content: "✓ "; content: "✓ " / ""; }
.autosave-status[data-state="failed"], .autosave-status[data-state="invalid"], .autosave-status[data-state="conflict"] { color: var(--error); background: #fdf0f0; border-color: #f2c4c4; }

/* Persönlicher Link */
.linkbox { border: 1px solid var(--border); border-radius: var(--radius-card); padding: 20px; margin: 0 0 24px; background: var(--surface); }
.linkbox--new { border: 2px solid var(--navy-900); background: var(--white); box-shadow: var(--shadow); }
.linkbox__row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.linkbox__row .input { flex: 1 1 260px; font-size: 0.95rem; }

/* Übersicht */
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.status-line { font-size: 1.2rem; font-weight: 650; color: var(--navy-900); }
.link-list { list-style: none; padding: 0; margin: 0 0 16px; }
.link-list a { display: inline-flex; align-items: center; min-height: 44px; }
.progress-item { margin-top: 16px; }
.progress-item__label { margin-bottom: 6px; }
.price-table { margin: 0 0 12px; }
.price-table > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.price-table dt { color: var(--text-2); }
.price-table dd { margin: 0; font-weight: 650; text-align: right; }
.price-table__total dt, .price-table__total dd { color: var(--navy-900); font-weight: 700; }
.price-main { font-size: 1.2rem; font-weight: 700; color: var(--navy-900); }
/* Betrag und Währungszeichen nie trennen („599 €“), auch nicht über overflow-wrap: anywhere am body (funnel/betrag.ts). */
.betrag { white-space: nowrap; }
.card--offer { border-color: var(--navy-900); }
.offer-note { white-space: pre-line; color: var(--text-2); }
.access-list { margin: 0 0 12px; display: grid; gap: 8px; }
.access-list > div { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
.access-list dt { min-width: 120px; color: var(--text-2); }
.access-list dd { margin: 0; }
.access-list code { font-size: 1rem; padding: 4px 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); user-select: all; overflow-wrap: anywhere; }
.timeline { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.timeline__item { counter-increment: step; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); color: var(--text-2); }
.timeline__item::before { content: counter(step) ". "; font-weight: 700; }
.timeline__item.is-done { color: var(--text); }
.timeline__item.is-done::before { content: "✓ "; color: var(--success); }
.timeline__item.is-current { border-color: var(--navy-900); background: var(--select-bg); color: var(--navy-900); font-weight: 650; }
.change-list { margin: 0 0 12px; padding-left: 20px; }

/* Entwurf */
.draft-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; margin-bottom: 32px; }
.preview { display: block; width: 100%; height: 72vh; min-height: 480px; border: 1px solid var(--border); border-radius: var(--radius-media); background: var(--white); box-shadow: var(--shadow); }
.pricebox { border: 2px solid var(--navy-900); border-radius: var(--radius-card); padding: 24px; background: var(--white); box-shadow: var(--shadow); }
.pricebox__main { font-size: 1.35rem; font-weight: 750; color: var(--navy-900); margin-bottom: 8px; }
.pricebox__extra { font-weight: 650; }
.change-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 16px; }
.change-area .sub-label { margin-top: 8px; }

/* Responsive */
@media (max-width: 1023px) {
  .draft-layout, .overview-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .entry-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) {
  .choices, .choices--compact, .change-areas { grid-template-columns: minmax(0, 1fr); }
  .form-actions .btn, .entry-card .btn { width: 100%; }
  .color-field:not(.color-field--compact) { grid-template-columns: minmax(0, 1fr); }
  .matrix, .matrix tbody, .matrix tr, .matrix th, .matrix td { display: block; width: 100%; }
  .matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .matrix tr { border: 1px solid var(--border); border-radius: 14px; padding: 8px 12px; margin-bottom: 10px; }
  .matrix th, .matrix td { border-bottom: 0; padding: 6px 0; }
  .matrix tbody th { width: 100%; }
  .legal-table, .legal-table thead, .legal-table tbody, .legal-table tr, .legal-table th, .legal-table td { display: block; width: 100%; }
  .legal-table tr { border: 1px solid var(--border); border-radius: 14px; padding: 8px 12px; margin-bottom: 10px; }
  .legal-table th, .legal-table td { border-bottom: 0; padding: 4px 0; }
  .legal-table tbody th { width: 100%; }
  .order-item { flex-wrap: wrap; }
  .order-item__label { flex-basis: calc(100% - 30px); }
  .preview { height: 64vh; min-height: 360px; }
  .site-header__inner { min-height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  /* Weniger Bewegung heißt nicht null Rückmeldung (DH-1): Bewegung weg, Farbe und Deckkraft bleiben. */
  *, *::before, *::after { transition-property: color, background-color, border-color, opacity !important; animation: none !important; scroll-behavior: auto !important; }
  .btn:active, .choice:active { transform: none !important; }
}

/* Startseite: ruhiger Hero mit echtem Website-Ausschnitt (Vorgabe Auftraggeber 30.09.2026), Beispiele, Ablauf, Preise, Abschluss. */
.hero__text { min-width: 0; }
.hero__text .lead { margin-bottom: 28px; }
.hero__cta { margin: 0; }
/* Freiwillige Auswahl „Wie hast du uns gefunden?“ im Hero-Formular (Nr. 66). */
.q-code { margin: 0 0 16px; }
.q-code .input { max-width: 22rem; }
.q-code .q-hint { margin: 6px 0 0; }
.hero__meta { margin: 14px 0 0; color: var(--text-2); font-weight: 600; letter-spacing: 0.01em; }
.hero__second { margin: 6px 0 0 -10px; }
.hero__second .btn--link { font-weight: 600; text-decoration: none; }
.hero__second .btn--link::after { content: " →"; }
@media (hover: hover) and (pointer: fine) { .hero__second .btn--link:hover { text-decoration: underline; } }

.section--surface { background: var(--surface); }
.examples { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.example { min-width: 0; }
.example__figure { margin: 0; }
.browser { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--white); box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08); }
.browser__bar { display: flex; gap: 6px; padding: 10px 12px; background: #eef2f7; border-bottom: 1px solid var(--border); }
.browser__bar span { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; }
.browser img { display: block; width: 100%; height: auto; }
.example figcaption { margin-top: 12px; font-weight: 600; color: var(--navy-900); }
.process { list-style: none; counter-reset: step; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.process li { counter-increment: step; min-width: 0; border-top: 2px solid var(--border); padding-top: 16px; }
.process li::before { content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: 12px; border-radius: 50%; background: var(--navy-900); color: var(--white); font-weight: 650; font-size: 0.9rem; }
.process h3 { font-size: 1.05rem; font-weight: 650; margin-bottom: 0.35em; }
.process p { margin: 0; color: var(--text-2); font-size: 0.95rem; }
.price-band__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.price-band__main { min-width: 0; }
.price-band .promise { margin: 0; }
.price-band .promise h3 { font-size: 1.1rem; }
.existing-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 0; }
.existing-band > div { min-width: 0; max-width: 40rem; }
.existing-band h2 { margin-bottom: 0.3em; }
.existing-band p { margin: 0; color: var(--text-2); }
.existing-band .entry-card__form { margin: 0; padding: 0; }
.closing { background: var(--navy-900); color: var(--white); }
.closing__inner { display: grid; justify-items: start; gap: 18px; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.closing h2 { color: var(--white); max-width: 34rem; margin: 0; font-weight: 650; }
.closing .entry-card__form { margin: 0; padding: 0; }
.closing__hint { margin: 0; color: #c7d2e1; font-size: 0.95rem; }
.btn--light { background: var(--white); color: var(--navy-900); }
.btn--light::after { content: "→"; font-weight: 400; }
@media (hover: hover) and (pointer: fine) { .btn--light:hover { background: var(--surface); } }
@media (max-width: 1023px) {
  .hero__row, .price-band__inner { grid-template-columns: minmax(0, 1fr); }
  .examples { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .process { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) {
  .hero__cta .btn, .closing .btn, .existing-band .btn { width: 100%; }
  .hero__cta, .closing .entry-card__form, .existing-band .entry-card__form { width: 100%; }
}

/* ---------------------------------------------------------------------------------------------------------------
   Kurzes Schnellbriefing (Entscheidung Auftraggeber 30.09.2026): einklappbare Gruppen freiwilliger Angaben
   (natives <details>), Stilkarten mit Vorschaubild, lange Optionen als volle Zeile, sinnvolle Spalten am Handy.
   Eigener Block am Dateiende, damit parallele Änderungen weiter oben nicht kollidieren.
   --------------------------------------------------------------------------------------------------------------- */
.q-fold { margin: 0 0 36px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.q-fold__summary { position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 56px; padding: 14px 52px 14px 18px; cursor: pointer; list-style: none; }
.q-fold__summary::-webkit-details-marker { display: none; }
.q-fold__summary::after { content: "+"; position: absolute; right: 18px; top: 14px; font-size: 1.5rem; line-height: 1; color: var(--navy-900); }
.q-fold[open] > .q-fold__summary::after { content: "–"; }
.q-fold__summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: var(--radius-card); }
.q-fold__title { font-weight: 650; font-size: 1.05rem; color: var(--navy-900); }
.q-fold__hint { font-size: 0.92rem; color: var(--text-2); }
.q-fold__body { padding: 24px 18px 0; border-top: 1px solid var(--border); border-radius: 0 0 var(--radius-card) var(--radius-card); background: var(--white); }

/* Kurze Optionen (Ja/Nein, Aspekte) brauchen Platz für ganze Wörter; lange Sonderoptionen stehen als eigene Zeile. */
.choices--compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.choice--special, .choice--wide { grid-column: 1 / -1; }
.choice__label, .choice__hint { overflow-wrap: break-word; hyphens: auto; }

/* Stilkarten: Vorschaubild oben, Auswahl darunter; am Handy Bild links neben dem Text. */
.choices--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice--card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; align-content: start; gap: 10px 12px; padding: 10px 12px 14px; }
.choice__media { grid-column: 1 / -1; display: block; }
.choice__image { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }

@media (max-width: 599px) {
  .choices--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choices--cards { grid-template-columns: minmax(0, 1fr); }
  .choice--card { grid-template-columns: 112px auto minmax(0, 1fr); align-items: center; padding: 10px 12px; }
  .choice--card .choice__media { grid-column: 1; grid-row: 1; }
  .q-fold__body { padding: 20px 12px 0; }
}
/* Entwurf und Entscheidung (Codex-Bewertung 30.09.2026): breite Vorschau, drei klare Wege, Änderungen nur bei Bedarf. */
.draft-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 8px 0 12px; }
.draft-toolbar .q-hint { margin: 0; }
.draft-history { display: grid; gap: 12px; list-style: none; padding: 0; }
.draft-history__item { min-width: 0; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-card); overflow-wrap: anywhere; }
.draft-history__item--current { border: 2px solid var(--navy-900); background: var(--surface); }
.draft-history__item p { margin: 0 0 8px; }
.preview-frame--wide { margin-bottom: 32px; }
.preview--tall { height: min(80vh, 920px); min-height: 520px; }
.draft-decision { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.decision .choice--described .choice__hint { font-weight: 400; }
.decision .change-block { display: grid; gap: 12px; margin: 4px 0 16px; padding: 16px; border-radius: var(--radius-card); background: var(--surface); }
/* Nur mit :has()-Unterstützung ausblenden; ältere Browser zeigen das Formular immer (kein Funktionsverlust). */
.decision form:has(input[name="entscheidung"]):not(:has(input[name="entscheidung"][value="aendern"]:checked)) .change-block { display: none; }
/* P11: Feedback nach jedem Entwurf; Folgefragen je Bewertung, nur mit :has()-Unterstützung ausgeblendet. */
.feedback { margin-bottom: 32px; }
.feedback-branch { display: grid; gap: 12px; margin: 4px 0 16px; padding: 16px; border: 0; border-radius: var(--radius-card); background: var(--surface); min-width: 0; }
.feedback-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.feedback-area { min-width: 0; }
.feedback-area .sub-label { margin-top: 8px; }
.feedback-saved { margin-bottom: 16px; overflow-wrap: anywhere; }
.feedback-saved p { margin: 0 0 8px; }
.feedback-change > summary { cursor: pointer; font-weight: 600; margin-bottom: 12px; }
.feedback-form:not(:has(input[name="bewertung"][value="DIRECTION_OK"]:checked)) .feedback-branch--DIRECTION_OK,
.feedback-form:not(:has(input[name="bewertung"][value="PARTIAL"]:checked)) .feedback-branch--PARTIAL,
.feedback-form:not(:has(input[name="bewertung"][value="OTHER_DIRECTION"]:checked)) .feedback-branch--OTHER_DIRECTION,
.feedback-area:not(:has(input[type="checkbox"]:checked)) .feedback-area__text { display: none; }
.q--compact { margin: 0; border: 0; padding: 0; }
.choices--chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice--chip { min-height: 40px; padding: 8px 12px; border-radius: 999px; }
.choice--chip input[type="checkbox"] { width: 18px; height: 18px; }
@media (max-width: 1023px) {
  .draft-decision { grid-template-columns: minmax(0, 1fr); }
  .preview--tall { height: 70vh; min-height: 420px; }
}

/* Widerrufsfunktion (§ 356a BGB): übermittelte Erklärung zum Ausdrucken; Begriff über Wert, lange Werte brechen um. */
.receipt-list { margin: 0 0 12px; }
.receipt-list > div { padding: 8px 0; border-bottom: 1px solid var(--border); }
.receipt-list dt { color: var(--text-2); font-size: 0.95rem; }
.receipt-list dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; white-space: pre-line; }
@media print {
  .site-header, .site-footer, .skip-link, .no-print { display: none; }
}

/* Kundenzugang S3b: öffentlicher Zugangsschlüssel zum Kopieren, Lösch-Knöpfe in einer Zeile. */
.code-block { font-size: 0.9rem; padding: 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
form.inline { display: inline-block; margin-right: 16px; }

/* Bestätigungsseite des persönlichen Links (Security-Audit 06, Fund 1): eine Frage, zwei Wege, der Hinweis davor. */
.access-confirm { max-width: 46rem; }
.access-confirm .notice { margin-block: 24px; }
.access-confirm__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 520px) { .access-confirm__actions .btn { flex: 1 1 100%; justify-content: center; } }

/* Design 1 (Prüfung 27.11.2026, Befundliste P1 1-3, P2 5): Überschriften brechen am Silbenrand statt mitten im Wort
   (body hat overflow-wrap: anywhere), Footer-Knöpfe gleich breit, größere Beispiel-Entwürfe als Beweis. */
h1, h2, h3, h4 { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 420px) { h1 { font-size: clamp(1.7rem, 7.6vw, 2rem); } }
.hero__versions { margin-top: 10px; }
.site-footer__nav { align-items: center; }
.site-footer__nav a { min-width: 44px; justify-content: center; }
.site-footer__withdrawal-group { display: grid; justify-items: stretch; width: max-content; max-width: 100%; }
.site-footer__withdrawal-group .q-hint { width: 0; min-width: 100%; }
@media (min-width: 1024px) {
  .examples { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .example:first-child { grid-column: 1 / -1; justify-self: center; width: min(100%, 900px); }
}
/* ---------------------------------------------------------------------------------------------------------------
   Design 2, Richtung B (27.11.2026): dunkler Einstieg in Marineblau (#0b2545) mit weißer Schrift, Preiszeile in Blau, Beispiel-
   Ausschnitt schräg angeschnitten, Preisbereich in #0f172a. Nur Darstellung; Formulare, Felder, Texte und Rechtslinks bleiben.
   Kontrast (WCAG 2.1 AA, gerechnet): Weiß auf #0b2545 ca. 15:1; #e2e8f0 auf #0b2545 ca. 12:1; Preiszeile #60a5fa auf #0b2545 ca. 6:1
   (#2563eb wäre dort nur ca. 3:1 und fiele für große Schrift knapp unter die Grenze); Weiß auf Knopf #2563eb ca. 5,2:1.
   --------------------------------------------------------------------------------------------------------------- */
.wordmark { display: inline-flex; align-items: center; }
.wordmark__img { display: block; height: 40px; width: auto; }
.wordmark__img--white { display: none; }
.page-entry .wordmark__img--navy { display: none; }
.page-entry .wordmark__img--white { display: block; }
.page-entry .site-header { background: var(--navy-900); border-bottom: 0; }
.page-entry .site-nav__link, .page-entry .site-nav .btn--link { color: var(--white); }
@media (hover: hover) and (pointer: fine) { .page-entry .site-nav__link:hover { background: var(--navy-700); } }
.page-entry :focus-visible { outline-color: var(--blue); }
.page-entry .site-header :focus-visible, .hero-band :focus-visible { outline-color: var(--white); }

.hero-band { background: var(--navy-900); color: var(--white); overflow: hidden; }
.hero-band .hero { padding-top: clamp(4px, 1.5vw, 20px); padding-bottom: 0; }
/* Zwei Zeilen am Desktop (Satz, dann Preiszeile); am Handy bricht der Satz an der Wortgrenze, nie mitten im Wort (hyphens: manual). */
.hero__title { color: var(--white); font-size: clamp(2.1rem, 10.2vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; margin: 0 0 clamp(24px, 3.4vw, 44px); overflow-wrap: normal; hyphens: manual; }
.hero__line, .hero__price { display: block; }
@media (min-width: 700px) { .hero__title { font-size: clamp(2.6rem, 5.9vw, 5.5rem); } }
.hero__price { color: #60a5fa; }
.hero__row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: stretch; }
.hero__text { padding-bottom: clamp(40px, 5vw, 72px); }
.hero-band .lead { color: var(--surface); font-weight: 600; }
/* Hinweise im Hero behalten ihren hellen Grund: dunkle Schrift und dunkler Fokusrahmen (Codex 28.11.: weiß auf hell, unter 1,1:1). */
.hero-band .notice { color: var(--navy-900); }
.hero-band .notice :focus-visible { outline-color: var(--navy-900); }
.hero-band .notice .link { color: #1d4ed8; }
.hero-band .q-label { color: var(--white); }
.hero-band .q-hint, .hero-band .hero__meta { color: #e2e8f0; }
.hero-band .hero__meta { font-weight: 600; }
.hero-band .q-hint .link { color: #93c5fd; }
@media (hover: hover) and (pointer: fine) { .hero-band .q-hint .link:hover { color: var(--white); } }
.hero-band .btn--primary { background: var(--blue); color: var(--white); }
@media (hover: hover) and (pointer: fine) { .hero-band .btn--primary:hover { background: #1d4ed8; } }
.hero-band .btn--link { color: var(--white); }
.hero__visual { position: relative; margin: 0; min-width: 0; min-height: 260px; }
.hero__shot { position: absolute; left: 0; top: 28px; width: 128%; max-width: none; height: 118%; object-fit: cover; object-position: left top; transform: rotate(-3deg); transform-origin: left top; border-radius: 4px; background: var(--white); }

.price-band { background: var(--text); color: var(--white); padding-top: clamp(56px, 8vw, 120px); padding-bottom: clamp(56px, 8vw, 120px); }
.price-band h2 { color: var(--white); font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); font-weight: 650; margin-bottom: 20px; }
.price-band h2 .betrag { display: block; font-size: clamp(4rem, 13vw, 9.5rem); font-weight: 800; line-height: 0.92; letter-spacing: -0.05em; margin-top: 4px; }
.price-band .check-list li::before { border-color: #93c5fd; }
.price-band .q-hint { color: #cbd5e1; }
.price-band .promise { background: var(--navy-900); border-left-color: #60a5fa; color: #e2e8f0; }
.price-band .promise h3 { color: var(--white); }
.price-band :focus-visible { outline-color: var(--white); }
@media (max-width: 1023px) {
  .hero__row { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { display: none; }
  .hero__visual { min-height: 0; height: clamp(220px, 60vw, 420px); margin-bottom: 0; }
  .hero__shot { left: 4%; top: 14px; width: 118%; height: auto; aspect-ratio: 16 / 10; transform: rotate(-2deg); }
  .hero__text { padding-bottom: 28px; }
}
@media (min-width: 1024px) { .page-entry .wordmark__img { height: 48px; } }

/* ---------------------------------------------------------------------------------------------------------------
   Design 2, Richtung B auf allen Seiten (28.11.2026): dieselben fünf Farben (#0b2545, #2563eb, #ffffff, #f8fafc, #0f172a) und
   die schon verwendeten Ableitungen, Systemschrift (CSP: nur 'self'), dunkler Kopf mit weißem Logo, dunkler Footer, blaue
   Hauptknöpfe, dunkle Preisfläche. Nur Darstellung. Kontrast (WCAG 2.1 AA, gerechnet): Weiß auf #2563eb ca. 5,2:1; #2563eb auf
   Weiß ca. 5,2:1; Weiß auf #0f172a ca. 17:1; #cbd5e1 auf #0f172a ca. 12:1; #93c5fd auf #0f172a ca. 9:1; Weiß auf #0b2545 ca. 15:1.
   --------------------------------------------------------------------------------------------------------------- */
h1 { font-weight: 800; letter-spacing: -0.03em; }
h1, h2, h3 { hyphenate-limit-chars: 9 4 4; }
.eyebrow { color: var(--blue); }
.narrow > h1 { margin-bottom: 0.45em; }

/* Kopf: auf jeder Seite Marineblau mit weißem Logo (die Startseite geht über page-entry nahtlos in den Hero über). */
.site-header { background: var(--navy-900); border-bottom: 0; }
.wordmark__img--navy { display: none; }
.wordmark__img--white { display: block; }
.site-nav__link, .site-nav .btn--link { color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .site-nav__link:hover { background: var(--navy-700); }
  .site-nav .btn--link:hover { color: var(--white); text-decoration-thickness: 2px; }
}
.site-header :focus-visible, .site-footer :focus-visible, .closing :focus-visible, .pricebox :focus-visible { outline-color: var(--white); }
@media print { .wordmark__img--navy { display: block; } .wordmark__img--white { display: none; } }

/* Footer: dunkle Fläche (#0f172a). Widerruf und Kündigung bleiben als umrandete Knöpfe vor den Textlinks (§ 356a, § 312k BGB),
   gleich breit; Impressum, Datenschutz und AGB stehen als Textlinks in einer Zeile daneben. */
.site-footer { background: var(--text); border-top: 0; color: #cbd5e1; margin-top: 0; }
.site-footer__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(32px, 5vw, 56px); }
.site-footer__brand { color: var(--white); font-weight: 700; letter-spacing: 0.02em; }
.site-footer__nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 16px 32px; }
.site-footer__nav a { color: var(--white); text-underline-offset: 3px; }
.site-footer__withdrawal-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: auto; max-width: 100%; justify-items: stretch; }
/* width: 0 + min-width: 100% (Schutz aus Zeile 532): der lange Hinweis darf die Breite der Gruppe nicht bestimmen, sonst bleibt der
   Marke zwischen 900 und 1115 px keine Spalte (Fable-Kreuz 28.11., HIGH). */
.site-footer__withdrawal-group .q-hint { grid-column: 1 / -1; width: 0; min-width: 100%; color: #cbd5e1; margin: 0; }
.site-footer__withdrawal { border-color: var(--white); background: transparent; color: var(--white); text-align: center; justify-content: center; transition: background-color 160ms ease, color 160ms ease; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 0 24px; }
@media (hover: hover) and (pointer: fine) { .site-footer__withdrawal:hover { background: var(--white); color: var(--navy-900); } .site-footer__nav a:hover { color: #93c5fd; } .site-footer__nav a.site-footer__withdrawal:hover { color: var(--navy-900); } }
@media (max-width: 899px) {
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
  .site-footer__nav { justify-content: flex-start; }
}
@media (max-width: 599px) {
  .site-footer__withdrawal-group { grid-template-columns: minmax(0, 1fr); width: 100%; }
  .site-footer__nav { display: grid; width: 100%; gap: 12px; }
}

/* Knöpfe: Hauptaktion in Blau auf allen Seiten, nachgeordnete Aktion mit Marine-Rahmen. */
.btn--primary { background: var(--blue); color: var(--white); }
@media (hover: hover) and (pointer: fine) { .btn--primary:hover { background: #1d4ed8; } }
.btn--secondary { border-width: 2px; }
progress { accent-color: var(--blue); }
.steps__bar::-webkit-progress-value { background: var(--blue); }
.steps__bar::-moz-progress-bar { background: var(--blue); }
.choice input[type="radio"], .choice input[type="checkbox"] { accent-color: var(--blue); }
.choice:has(input:checked), .choice.is-selected { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.steps__item.is-current a, .timeline__item.is-current, .draft-history__item--current { border-color: var(--blue); }
.input:focus-visible { border-color: var(--blue); }
.card { box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06); }
.entry-card--primary, .card--offer, .linkbox--new { border-color: var(--blue); }
.status-line { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); font-weight: 750; letter-spacing: -0.01em; }

/* Preisfläche (Bestellung und Entwurf): dunkel wie der Preisbereich der Startseite. */
.pricebox { background: var(--text); border: 0; color: #e2e8f0; box-shadow: none; }
.pricebox .pricebox__main, .pricebox .pricebox__extra { color: var(--white); }
.pricebox .q-hint { color: #cbd5e1; }
.pricebox a { color: #93c5fd; }

/* Rechtstexte und Formularseiten: ruhige Zeilenlänge, damit lange Rechtstexte lesbar bleiben. */
.legal-text p, .legal-text li { max-width: 70ch; }
.legal-text h3 { margin-top: 1.6em; font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem); }
.legal-text > .eyebrow + h1 { margin-bottom: 0.6em; }

/* Fehler- und Leerzustände: eine ruhige Fläche, Status oben, ein Weg weiter. */
.state-page { min-height: 46vh; }
.state-page .eyebrow { font-size: 0.95rem; }
.state-page .lead { margin-bottom: 1.4em; }
.upload-box, .q-hint { overflow-wrap: break-word; }

/* Platz für den News-Bereich (nur Gestaltung, nichts wird ausgegeben; Regel Tobias 24.11.): Fläche in #f8fafc unter dem Seiteninhalt. */
.news-slot { background: var(--surface); border-top: 1px solid var(--border); }
.news-slot__list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }

/* Startseite: Herkunftsfrage eingeklappt, damit der Hauptknopf früh im Blick steht (Blindbewertung 27.11.). Das Feld liegt im selben
   Formular wie der Knopf und wird auch eingeklappt mitgesendet (leer = keine Angabe). */
.q-code--fold { max-width: 30rem; margin: 0 0 14px; }
.q-code__summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; font-weight: 600; font-size: 0.95rem; color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.q-code__summary::-webkit-details-marker { display: none; }
.q-code__summary::before { content: "+"; font-weight: 700; text-decoration: none; display: inline-block; width: 1em; text-align: center; }
.q-code--fold[open] > .q-code__summary::before { content: "–"; }
.q-code__body { padding-top: 6px; }
.hero__meta { margin-top: 12px; }
.process__notes { margin-top: 28px; max-width: 46rem; }
.process__notes .q-hint { margin-bottom: 8px; }
.price-band__note { margin-top: 8px; }

/* Durchlauf 1 (28.11.2026): Footer sitzt auch auf kurzen Seiten unten, Abschnitt „bestehende Website“ bekommt Abstand zum dunklen
   Preisbereich, Footer-Gruppen beginnen auf einer Linie. */
body { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1 0 auto; min-height: 0; }
.site-footer { flex: 0 0 auto; }
.existing-band { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(40px, 6vw, 88px); }
.site-footer__nav { align-items: flex-start; }
.site-footer__legal a { min-height: 44px; }

/* Rechtsseiten bei schmaler Breite: Der Chrome-Silbentrenner fehlt je nach System; „Geschäftsbedingungen“ muss auch ohne Trennung
   in 280 px passen (Prüfung 28.11.2026, 320 px: Wortbruch „Geschäftsbedingunge/n“). */
@media (max-width: 420px) { .legal-text h1 { font-size: clamp(1.3rem, 6.5vw, 1.7rem); hyphens: manual; } }

/* Durchlauf 2 (28.11.2026, Inspector design-taste-frontend): Abschlusssatz auf zwei Zeilen am Desktop, Beispiel-Fenster ohne Schatten und
   ohne Trennlinie (Tonstufe statt Linie), Hinweis- und Ablauftexte mindestens 16 px (Befundliste P2-6). */
.closing h2 { max-width: 60rem; font-size: clamp(1.4rem, 1rem + 1.8vw, 2.4rem); }
.browser { box-shadow: none; }
.browser__bar { border-bottom: 0; }
.q-hint, .q-help, .process p { font-size: 1rem; }
