/* ML-Solutions: Nachfass-Autopilot
   Farbwelt: Petrol (Fläche, Ruhe) + Signalgelb (nur Handlungen) auf warmem Papier.
   Alle Farben stehen hier, ein Tausch dauert Sekunden. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 500 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-next-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Anthrazit/Schwarz (Logo), warmes Off-White, Rubinrot als einziger Akzent */
  --paper: oklch(0.975 0.004 60);
  --paper-2: oklch(0.94 0.006 60);
  --ink: oklch(0.17 0.008 25);
  --ink-2: oklch(0.42 0.012 25);
  --dark: oklch(0.19 0.008 25);
  --dark-deep: oklch(0.13 0.006 25);
  --on-dark: oklch(0.975 0.004 60);
  --on-dark-2: oklch(0.78 0.01 40);
  --accent: oklch(0.56 0.2 27);
  --accent-hover: oklch(0.5 0.2 27);
  --accent-on-dark: oklch(0.72 0.17 27);
  --on-accent: oklch(0.985 0.003 60);
  --line: oklch(0.82 0.01 60);
  --error-on-dark: oklch(0.82 0.12 25);
  --error-on-light: oklch(0.45 0.17 27);
  --focus: var(--ink);

  --f-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-body: "Atkinson Hyperlegible Next", "Segoe UI", Arial, sans-serif;

  --s-1: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
  --s-2: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  --s-3: clamp(1.5rem, 1.1rem + 2vw, 2.5rem);
  --s-4: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  --section: clamp(3.5rem, 2rem + 7vw, 7.5rem);
  --radius: 0.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.75rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem); line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.on-dark { --focus: var(--on-dark); }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--accent); color: var(--on-accent); padding: 0.75rem 1rem; border-radius: var(--radius); z-index: 100; font-weight: 700; }
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * clamp(1rem, 4vw, 2rem), 72rem); margin-inline: auto; }
.section { padding-block: var(--section); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0.7rem 1.5rem;
  font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; line-height: 1.1; letter-spacing: 0;
  text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background-color 0.15s ease-out, transform 0.15s ease-out;
}
.btn-signal { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-signal:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-signal:active { transform: translateY(1px); }
.btn-ghost { color: var(--on-dark); border-color: var(--on-dark-2); }
.btn-ghost:hover { background: oklch(1 0 0 / 0.08); }
.btn-sm { min-height: 2.75rem; padding: 0.5rem 1rem; font-size: 0.95rem; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: var(--s-2); min-height: 4rem; justify-content: space-between; }
.brand-logo { height: 1.9rem; width: auto; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; }
.nav { display: none; gap: 1.75rem; font-weight: 600; font-size: 1rem; }
.nav a { text-decoration: none; padding-block: 0.5rem; }
.nav a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
@media (min-width: 56rem) { .nav { display: flex; } }
@media (max-width: 24rem) { .brand-name { display: none; } }

/* Hero */
.hero { background: var(--dark); color: var(--on-dark); --focus: var(--on-dark); padding-block: clamp(2.5rem, 1rem + 6vw, 6rem) clamp(3rem, 1rem + 6vw, 6rem); }
.hero-grid { display: grid; gap: var(--s-4); align-items: center; }
@media (min-width: 56rem) { .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: clamp(2rem, 5vw, 5rem); } }
.eyebrow { font-family: var(--f-display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em; margin-bottom: 1.25rem; color: var(--on-dark-2); max-width: 40ch; }
.problem .eyebrow { color: var(--accent-hover); }
.hero h1 { font-size: clamp(2.9rem, 1.4rem + 7.4vw, 6rem); font-weight: 850; line-height: 0.95; letter-spacing: -0.03em; margin-bottom: 1.5rem; }
.lead { font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem); line-height: 1.5; max-width: 44ch; margin-bottom: 1.75rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.75rem; }
.cta-row .btn { flex: 1 1 14rem; }
@media (min-width: 40rem) { .cta-row .btn { flex: 0 0 auto; } }
.ticks { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-weight: 600; font-size: 1rem; }
.ticks li, .checks li { position: relative; padding-left: 1.75rem; }
.ticks li::before, .checks li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 1.1rem; height: 1.1rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ticks li::before { color: var(--accent-on-dark); }

.phone-wrap { margin: 0; justify-self: center; width: min(100%, 22rem); }
.phone { background: var(--dark-deep); padding: 0.6rem; border-radius: 2.4rem; box-shadow: 0 1.5rem 3rem oklch(0.15 0.03 205 / 0.45); }
.phone img { border-radius: 1.9rem; width: 100%; background: var(--paper); }
.phone-wrap figcaption { margin-top: 0.9rem; font-size: 0.95rem; color: var(--on-dark-2); text-align: center; }

/* Problem */
.split { display: grid; gap: var(--s-3); }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; } }
.prose p { font-size: 1.2rem; }
.prose .strong { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); line-height: 1.25; margin-top: 1.5rem; }
.prose-lead { font-size: 1.2rem; color: var(--ink-2); max-width: 54ch; }

/* Outcome */
.outcome { background: var(--paper-2); }
.outcome h2 { max-width: 20ch; margin-bottom: var(--s-3); }
.outcome-list { display: grid; gap: var(--s-2); }
@media (min-width: 56rem) { .outcome-list { grid-template-columns: repeat(3, 1fr); gap: var(--s-3); } }
.outcome-list li { border-top: 3px solid var(--ink); padding-top: 1rem; font-size: 1.1rem; }
.outcome-list strong { display: block; font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; line-height: 1.2; margin-bottom: 0.4rem; }

/* Ablauf */
.ablauf h2 { margin-bottom: var(--s-3); }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 1rem clamp(1rem, 3vw, 2.5rem); padding-block: clamp(1.25rem, 3vw, 2rem); border-top: 2px solid var(--ink); align-items: baseline; }
.steps li:last-child { border-bottom: 2px solid var(--ink); }
.num { font-family: var(--f-display); font-weight: 900; font-size: clamp(2.75rem, 2rem + 4vw, 5rem); line-height: 0.9; color: var(--accent); min-width: 1.1ch; }
.steps p { margin: 0.35rem 0 0; color: var(--ink-2); font-size: 1.1rem; }
.note { margin-top: var(--s-2); font-weight: 600; max-width: 60ch; }

/* Demo */
.demo { background: var(--dark-deep); color: var(--on-dark); --focus: var(--on-dark); }
.demo h2 { margin-bottom: 0.75rem; }
.demo-sub { color: var(--on-dark-2); margin-bottom: var(--s-3); }
.shots { display: flex; gap: var(--s-2); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; margin-inline: calc(-1 * clamp(1rem, 4vw, 2rem)); padding-inline: clamp(1rem, 4vw, 2rem); scrollbar-width: thin; }
.shots figure { margin: 0; flex: 0 0 min(80%, 19rem); scroll-snap-align: center; }
.shot { background: var(--dark); padding: 0.5rem; border-radius: 1.75rem; }
.shot img { border-radius: 1.3rem; width: 100%; background: var(--paper); }
.shots figcaption { margin-top: 0.9rem; font-size: 1rem; color: var(--on-dark-2); }
.shots figcaption b { color: var(--on-dark); }
@media (min-width: 56rem) {
  .shots { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; gap: var(--s-3); }
  .shots figure { flex: none; }
}

/* Rechner */
.rechner-grid { display: grid; gap: var(--s-4); }
@media (min-width: 56rem) { .rechner-grid { grid-template-columns: 1fr 0.9fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; } }
.rechner h2 { margin-bottom: 1rem; }
.calc { display: grid; gap: 1.25rem; margin-top: var(--s-2); }
.field label { display: block; font-weight: 700; margin-bottom: 0.4rem; line-height: 1.3; }
.field input[type="number"], .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select {
  width: 100%; min-height: 3.25rem; padding: 0.6rem 0.9rem;
  font: inherit; font-size: 1.15rem; color: var(--ink); background: #fff;
  border: 2px solid var(--ink); border-radius: var(--radius);
}
.field input:hover, .field select:hover { border-color: var(--accent); }
.hint { font-size: 0.95rem; color: var(--ink-2); margin: 0.4rem 0 0; }
.result { background: var(--dark); color: var(--on-dark); --focus: var(--on-dark); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 0.75rem; position: sticky; top: 5.5rem; }
.result-label { font-family: var(--f-display); font-weight: 600; font-size: 1rem; color: var(--on-dark-2); margin-bottom: 0.25rem; }
.result-big { font-family: var(--f-display); font-weight: 900; font-size: clamp(2.75rem, 1.5rem + 6vw, 4.75rem); line-height: 1; letter-spacing: -0.03em; margin-bottom: 1.25rem; font-variant-numeric: tabular-nums; }
.result-dl { margin: 0 0 1.25rem; display: grid; gap: 0.1rem; }
.result-dl div { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.6rem; border-top: 1px solid oklch(1 0 0 / 0.25); }
.result-dl dt { color: var(--on-dark-2); }
.result-dl dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.result-note { font-size: 0.95rem; color: var(--on-dark-2); }

/* Pilot */
.pilot { background: var(--dark); color: var(--on-dark); --focus: var(--on-dark); }
.pilot-grid { display: grid; gap: var(--s-3); }
@media (min-width: 56rem) { .pilot-grid { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; } }
.pilot h2 { margin-bottom: 1.25rem; }
.checks { display: grid; gap: 0.9rem; margin-bottom: 1.75rem; font-weight: 600; }
.checks li::before { color: var(--accent-on-dark); }
.checks-ink li::before { color: var(--accent); }
.pilot-ask, .pilot-why { color: var(--on-dark); }
.pilot .btn { margin-top: 0.5rem; }

/* Preis */
.preis h2 { margin-bottom: var(--s-3); }
.preis-grid { display: grid; gap: var(--s-2); margin-bottom: var(--s-3); }
@media (min-width: 48rem) { .preis-grid { grid-template-columns: 1fr 1fr; } }
.preis-box { border: 2px solid var(--ink); border-radius: 0.75rem; padding: clamp(1.25rem, 3vw, 2rem); }
.preis-box p:last-child { margin-bottom: 0; color: var(--ink-2); }
.preis-label { font-family: var(--f-display); font-weight: 700; margin-bottom: 0.25rem; }
.preis-wert { font-family: var(--f-display); font-weight: 900; font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem); line-height: 1; margin-bottom: 0.5rem; }
.preis-wert span { font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.preis-monat { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem); }
.garantie { margin-top: var(--s-3); background: var(--paper-2); border-radius: 0.75rem; padding: clamp(1.5rem, 4vw, 2.5rem); }
.garantie h3 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); margin-bottom: 0.75rem; max-width: 24ch; }
.garantie p { margin-bottom: 0; max-width: 62ch; }

/* Datenschutz / Wer */
.datenschutz { background: var(--paper-2); }
.datenschutz h2 { margin-bottom: 1rem; }
.checks-ink { margin-bottom: 0; }
.textlink { font-weight: 700; text-underline-offset: 0.25em; text-decoration-thickness: 2px; }

/* FAQ */
.faq h2 { margin-bottom: var(--s-3); }
.faq-list { max-width: 52rem; }
details { border-top: 2px solid var(--ink); }
details:last-child { border-bottom: 2px solid var(--ink); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.1rem; min-height: 3.5rem; font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; font-size: 1.75rem; font-weight: 500; line-height: 1; transition: transform 0.2s ease-out; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding-bottom: 1.25rem; color: var(--ink-2); margin: 0; }

/* Anfrage */
.anfrage { background: var(--dark); color: var(--on-dark); --focus: var(--on-dark); }
.anfrage-grid { display: grid; gap: var(--s-4); }
@media (min-width: 56rem) { .anfrage-grid { grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; } }
.anfrage h2 { margin-bottom: 1rem; }
.alt { color: var(--on-dark-2); }
.textlink-inv { color: var(--on-dark); }
.form { display: grid; gap: 1.1rem; }
.form .field input, .form .field select { border-color: var(--on-dark); }
.form .field input:hover, .form .field select:hover { border-color: var(--accent-on-dark); }
.req { color: var(--accent-on-dark); }
.err { color: var(--error-on-dark); font-weight: 600; font-size: 0.98rem; margin: 0.4rem 0 0; }
.form [aria-invalid="true"] { border-color: var(--error-on-dark) !important; }
.field.check { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.9rem; align-items: start; }
.field.check input { width: 1.6rem; height: 1.6rem; margin: 0.15rem 0 0; accent-color: var(--accent); }
.field.check label { font-weight: 400; margin: 0; }
.field.check .err { grid-column: 2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 1rem 1.25rem; border-radius: var(--radius); background: oklch(1 0 0 / 0.12); font-weight: 600; margin: 0; max-width: none; }
.form-status.is-ok { background: var(--paper); color: var(--ink); }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark); padding-block: var(--s-3); --focus: var(--on-dark); }
.foot { display: grid; gap: 1rem; font-size: 1rem; }
.foot p { margin: 0; }
@media (min-width: 48rem) { .foot { grid-template-columns: 1fr auto auto; gap: var(--s-3); align-items: start; } }
.site-footer a { text-underline-offset: 0.25em; }

/* Rechtstexte (Impressum, Datenschutz) */
.legal { padding-block: clamp(2.5rem, 1.5rem + 5vw, 5rem) var(--section); }
.legal .wrap { max-width: 48rem; }
.legal h1 { font-size: clamp(1.75rem, 0.9rem + 3.6vw, 3.5rem); margin-bottom: 0.75rem; overflow-wrap: break-word; hyphens: auto; }
.legal .stand { color: var(--ink-2); margin-bottom: var(--s-3); }
.legal h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); margin: var(--s-3) 0 0.6rem; letter-spacing: -0.01em; line-height: 1.15; }
.legal h3 { font-size: 1.15rem; margin: 1.5rem 0 0.4rem; letter-spacing: 0; }
.legal p, .legal li { max-width: 68ch; }
.legal ul { margin: 0 0 1em; padding-left: 1.25rem; list-style: disc; }
.legal li { margin-bottom: 0.35rem; }
.legal a { text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
.legal address { font-style: normal; margin-bottom: 1em; }
.legal .back { display: inline-block; margin-bottom: var(--s-2); }

/* Einblenden, nur mit JS und ohne Bewegungsreduktion */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* Zahlen in der Display-Schrift (die Hyperlegible-Null ist durchgestrichen und wirkt bei Betraegen wie "Ø") */
.field input[type="number"], .result-dl dd { font-family: var(--f-display); font-weight: 600; }

.shots:focus-visible { outline: 3px solid var(--on-dark); outline-offset: 4px; }

/* Schraege Abschlusskanten greifen die Neigung des Logos auf */
:root { --cut: clamp(1.25rem, 3.2vw, 3.25rem); }
.hero { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%); padding-bottom: calc(clamp(3rem, 1rem + 6vw, 6rem) + var(--cut)); }
.demo { clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%); padding-block: calc(var(--section) + var(--cut)); }
.pilot { clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); padding-top: calc(var(--section) + var(--cut)); }
.site-footer .brand-logo { height: 1.6rem; }
.foot-id { display: grid; gap: 0.6rem; justify-items: start; }
