/* ============================================================
   VeloFaces – style.css
   Eine Datei für alle Seiten. Alle Farben sind Variablen.
   Dunkelmodus überschreibt NUR die Variablen (siehe Abschnitt 2).

   Haltung: ein gesetztes Dokument, keine Agenturseite. Strenge
   linke Kante, Haarlinien als Struktur, Akzent sparsam wie ein
   Rotstift. Bewegung nur als Rückmeldung auf eine Eingabe —
   keine Ladeanimationen, keine Scroll-Effekte, kein Parallax.
   ============================================================ */

/* ---------- 1. Schriften (selbst gehostet, OFL) ---------- */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 2. Tokens ---------- */
:root {
  /* Markenfarben (Markengrundlage) */
  --ink: #12141A;
  --paper: #F7F4EF;
  --accent: #E0523C;
  --muted: #6E7480;

  /* Abgeleitete Rollen – nur diese werden im Dunkelmodus getauscht */
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-muted: #5E6470;        /* 5.4:1 auf Paper – --muted selbst hat nur 4.3:1 */
  --line: #DFDAD0;
  --line-strong: #C9C2B5;
  --surface: #FFFFFF;
  --surface-2: #EFEBE3;
  --accent-ink: var(--ink);   /* Ink auf Accent = 4.8:1; Paper auf Accent nur 3.5:1 */
  --accent-press: #C94330;
  --accent-text: #B33A26;     /* Akzent als Textfarbe auf Paper: 5.1:1 */
  --focus: var(--accent);
  --footer-bg: var(--ink);
  --footer-fg: var(--paper);
  --footer-muted: #A3A8B3;
  --shadow-card: 0 1px 2px rgba(18, 20, 26, .04), 0 8px 24px -12px rgba(18, 20, 26, .10);

  /* Bewegung – starke Kurven, kurze Dauern (Emil-Prinzipien) */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --t-press: 140ms;
  --t-hover: 180ms;

  /* Maße */
  --wrap: 780px;
  --measure: 58ch;
  --gutter: 20px;
  --radius: 8px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1014;
    --fg: var(--paper);
    --fg-muted: #A3A8B3;      /* 7.7:1 auf Ink */
    --line: #262A33;
    --line-strong: #383D48;
    --surface: #161920;
    --surface-2: #1C2028;
    --accent-text: #F0705C;   /* 6.3:1 auf dunklem Grund */
    --footer-bg: #090B0E;
    --shadow-card: none;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1014;
  --fg: var(--paper);
  --fg-muted: #A3A8B3;
  --line: #262A33;
  --line-strong: #383D48;
  --surface: #161920;
  --surface-2: #1C2028;
  --accent-text: #F0705C;
  --footer-bg: #090B0E;
  --shadow-card: none;
}

/* ---------- 3. Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration-thickness: 2px; }
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.125rem, 7.2vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4.4vw, 2.125rem); }
h3 { font-size: 1.0625rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
strong { font-weight: 500; }
.muted { color: var(--fg-muted); }
.lead {
  font-size: clamp(1.0625rem, 2.4vw, 1.1875rem);
  font-weight: 400; color: var(--fg-muted);
  max-width: 34em; line-height: 1.55;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink); padding: 10px 14px; font-weight: 500;
}
.skip:focus { left: 8px; top: 8px; z-index: 10; }

/* ---------- 4. Kopf (identisch auf allen Seiten) ---------- */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 70px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 28px; width: auto; }
.brand-sub {
  margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line-strong);
  font-size: .8125rem; color: var(--fg-muted); white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: 18px; font-size: .9375rem; font-weight: 500; }
.site-nav a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 500;
  padding: 14px 24px; border: 0; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: transform var(--t-press) var(--ease-out),
              background-color var(--t-hover) ease;
}
/* Rückmeldung auf den Druck – das Einzige, was sich hier bewegt. */
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--accent-press); text-decoration: none; }
}
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-ghost {
  background: transparent; color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover { background: var(--surface-2); }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .btn-ghost, .card, .field input, .field textarea { transition-duration: 1ms; }
  .btn:active { transform: none; }
}

/* ---------- 6. Sektionen ---------- */
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section-inner { max-width: 640px; }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-muted); margin: 0 0 16px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--accent); flex: none; }

/* Hero */
.hero { padding: 84px 0 68px; }
.hero h1 { margin-bottom: 22px; max-width: 11em; }
.hero .lead { margin-bottom: 32px; }

/* „Einer wird zu vielen" – die Idee aus der Markengrundlage, die im Zeichen
   selbst nicht funktioniert hat. Rein dekorativ, statisch, ohne Bewegung. */
.echo { display: flex; align-items: center; gap: 14px; margin-top: 44px; }
.echo img { height: 26px; width: auto; flex: none; }
/* Die Abstufung sitzt auf <picture>, nicht auf <img>: im <picture> ist das
   <img> stets das letzte Kind, ein nth-child auf dem img träfe alle gleich. */
.echo > picture { flex: none; line-height: 0; }
.echo > picture:nth-child(2) { opacity: .55; }
.echo > picture:nth-child(3) { opacity: .3; }
.echo > picture:nth-child(4) { opacity: .16; }
.echo > picture:nth-child(5) { opacity: .07; }
.echo span {
  font-size: .8125rem; color: var(--fg-muted); margin-left: 6px;
  border-left: 1px solid var(--line-strong); padding-left: 16px; line-height: 1.4;
}

/* Status – ein Hinweiskasten, kein Werbeblock */
.notice {
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  padding: 26px 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.notice h2 { font-size: clamp(1.3125rem, 3.6vw, 1.5rem); margin-bottom: .55em; }
.notice p { max-width: 40em; }

/* Schritte */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  display: grid; grid-template-columns: 58px 1fr; gap: 4px 20px;
  padding: 24px 0; border-top: 1px solid var(--line);
}
.steps li:first-child { border-top: 0; padding-top: 6px; }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  grid-row: 1 / span 2;
  font-weight: 700; font-size: 2.125rem; line-height: .95; letter-spacing: -.04em;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}
.steps h3 { margin: 0 0 2px; }
.steps p { margin: 0; color: var(--fg-muted); }

/* Listen */
.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
  position: relative; padding: 13px 0 13px 28px;
  border-top: 1px solid var(--line);
}
.checks li:first-child { border-top: 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 23px;
  width: 10px; height: 10px; background: var(--accent); border-radius: 2px;
}

.plain p { max-width: var(--measure); }

/* ---------- 7. Formular ---------- */
.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px; margin-top: 30px;
  box-shadow: var(--shadow-card);
}
.form-intro { margin-bottom: 26px; }
.form-intro p { max-width: 42em; color: var(--fg-muted); }
.price {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-size: 1.0625rem; font-weight: 500; color: var(--fg);
  margin-bottom: .75em;
}
.price b { font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }

.field { margin-bottom: 20px; }
.field > label {
  display: block; font-weight: 500; font-size: .9375rem; margin-bottom: 7px;
}
.field .hint { font-weight: 400; color: var(--fg-muted); }
.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field textarea {
  width: 100%; font: inherit; color: var(--fg);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 6px;
  padding: 12px 14px; line-height: 1.4;
  transition: border-color var(--t-hover) ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-muted); opacity: .75; }
.field.is-invalid input, .field.is-invalid textarea {
  border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent);
}

.field-check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.field-check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--accent); }
.field-check > label { font-weight: 400; font-size: .9375rem; margin: 0; line-height: 1.5; }
.field-check .field-error { grid-column: 1 / -1; }

.field-error {
  display: none; margin: 8px 0 0; padding-left: 12px;
  border-left: 2px solid var(--accent);
  font-size: .875rem; font-weight: 500; color: var(--fg);
  max-width: none;
}
.field.is-invalid .field-error { display: block; }

/* Honeypot: für Menschen unsichtbar, für Screenreader per aria-hidden ausgeblendet.
   Bewusst NICHT display:none – manche Bots prüfen genau das. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 10px; }
.form-status {
  margin-top: 20px; padding: 16px 18px; border-radius: 6px;
  border: 1px solid var(--line-strong); background: var(--surface-2);
  max-width: none;
}
.form-status:empty { display: none; }
.form-status.ok, .form-status.err { border-left: 3px solid var(--accent); }

/* ---------- 8. Rechtstexte ---------- */
.legal { padding: 52px 0 68px; }
.legal .section-inner { max-width: 660px; }
.legal h1 { font-size: clamp(1.875rem, 5.5vw, 2.625rem); margin-bottom: 10px; }
.legal h2 { font-size: 1.1875rem; margin-top: 40px; }
.legal h3 { margin-top: 26px; font-size: 1rem; }
.legal address { font-style: normal; }
.legal ul { padding-left: 1.2em; max-width: var(--measure); }
.legal li { margin-bottom: .35em; }
.legal .stand { color: var(--fg-muted); font-size: .9375rem; margin-bottom: 34px; }
.tldr {
  background: var(--surface-2); border-left: 3px solid var(--accent);
  padding: 20px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 34px;
}
.tldr p { max-width: 42em; }
.placeholder {
  display: inline-block; padding: 1px 8px; border-radius: 3px;
  background: var(--surface-2); border: 1px dashed var(--fg-muted);
  font-weight: 500; font-size: .9em;
}

/* ---------- 9. Fuß (identisch auf allen Seiten) ---------- */
.site-foot {
  background: var(--footer-bg); color: var(--footer-fg);
  padding: 48px 0 40px; margin-top: 0;
}
.site-foot .wrap {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  justify-content: space-between; gap: 26px 40px;
}
.foot-brand img { height: 24px; width: auto; margin-bottom: 14px; }
.foot-brand p { color: var(--footer-muted); font-size: .875rem; margin: 0; max-width: 30em; }
.foot-links { list-style: none; margin: 0; padding: 0; font-size: .9375rem; }
.foot-links li { margin-bottom: 9px; }
.foot-links a { color: var(--footer-fg); }

/* ---------- 10. Mobil ---------- */
@media (max-width: 600px) {
  .brand-sub { display: none; }
  .hero { padding: 56px 0 50px; }
  .section { padding: 50px 0; }
  .steps li { grid-template-columns: 46px 1fr; gap: 2px 14px; }
  .steps li::before { font-size: 1.75rem; }
  .form-card { padding: 24px 18px; }
  .notice { padding: 22px 20px; }
  .btn { width: 100%; text-align: center; }
  .echo { gap: 10px; flex-wrap: wrap; }
  .echo img { height: 22px; }
  .echo span { border-left: 0; padding-left: 0; margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 420px) {
  :root { --gutter: 18px; }
}

/* ---------- 11. Ausdruck ---------- */
@media print {
  .site-head, .site-foot, .form-actions, .echo { display: none; }
  body { background: #fff; color: #000; }
  .legal { padding: 0; }
}
