/* Schwarmpreis: warm, fotografisch, ein Ziel pro Seite (die Vormerkung). */
@font-face {
  font-family: 'Gabarito';
  src: url('/fonts/gabarito-latin.woff2') format('woff2');
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/fonts/figtree-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --ground: #F2F7F3;
  --surface: #FFFFFF;
  --ink: #15302A;
  --muted: #4D635C;
  --line: #D7E3DB;
  --accent: #FFC233;
  --green: #1E7A52;
  --mint: #DDF2E5;
  --peach: #FFE2D1;
  --sky: #D9E9FB;
  --error: #A8321F;
  --font-display: 'Gabarito', 'Arial Rounded MT Bold', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Figtree', 'Helvetica Neue', Arial, sans-serif;
  --radius: 26px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.55 var(--font-body);
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--green); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
.display { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 12px; color: #fff; }

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 0;
  font: 800 17px/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
}
.btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink); font-weight: 700; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 16px; }
.btn-lg { min-height: 58px; font-size: 18px; width: 100%; }
.link { background: none; border: 0; padding: 8px 0; font: 600 15px var(--font-body); color: var(--muted); text-decoration: underline; cursor: pointer; }

/* Kopf */
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 25px/1 var(--font-display); letter-spacing: -0.01em; min-height: 44px; }
.nav { display: flex; gap: 26px; font-weight: 600; }
.nav a { text-decoration: none; padding: 10px 0; }
@media (max-width: 820px) { .nav { display: none; } }

/* Auftakt mit Formular */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-areas: "copy form" "photo form";
  gap: 28px 52px;
  padding: 28px 0 72px;
  align-items: start;
}
.hero-copy { grid-area: copy; display: flex; flex-direction: column; gap: 20px; padding-top: 12px; }
.hero-form { grid-area: form; scroll-margin-top: 16px; position: sticky; top: 16px; }
.hero-photo { grid-area: photo; position: relative; }
.hero h1 { font-size: clamp(42px, 5.6vw, 76px); line-height: 0.98; }
.pill { align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.lede { font-size: 20px; color: var(--muted); max-width: 34rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 16px; font-weight: 600; }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks li::before {
  content: ""; width: 20px; height: 20px; flex: none; border-radius: 999px; background: var(--mint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E7A52' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.social { font-size: 17px; }
.hero-photo img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: 50% 30%; border-radius: 34px; }
.hero-badge {
  position: absolute; left: 18px; bottom: 18px; max-width: 300px;
  background: var(--surface); border-radius: 22px; padding: 14px 18px;
  box-shadow: 0 12px 32px rgba(21, 48, 42, 0.18);
  display: flex; flex-direction: column; gap: 2px;
}
.hero-badge span { font-size: 13px; font-weight: 800; color: var(--green); }
.hero-badge b { font: 800 42px/1.02 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hero-badge small { font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "form" "photo"; padding-top: 12px; }
  .hero-form { position: static; }
  .lede { font-size: 18px; }
}

/* Karten und Formular */
.card { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: 0 1px 0 var(--line); border: 1px solid var(--line); }
.form { display: flex; flex-direction: column; gap: 16px; }
.form h2 { font: 800 32px/1.05 var(--font-display); letter-spacing: -0.02em; }
.step { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .legend { font-size: 15px; font-weight: 800; }
.input, .field input, .field select {
  width: 100%; min-height: 54px; padding: 0 16px;
  border: 1.5px solid #BFD0C5; border-radius: 16px; background: var(--surface);
  font: 400 17px var(--font-body); color: var(--ink);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 194, 51, 0.55); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.geo-card { display: flex; flex-direction: column; gap: 8px; background: var(--sky); border-radius: 18px; padding: 14px; }
.geo-btn { width: 100%; min-height: 52px; }
.addr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.addr-street { grid-column: span 3; }
.addr-house { grid-column: span 1; }
.addr-plz { grid-column: span 1; }
.addr-city { grid-column: span 3; }
.opt { font-weight: 500; color: var(--muted); }
.plz-row { display: flex; gap: 10px; }
.plz-row input { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; }
.plz-row .btn { min-height: 54px; padding: 0 16px; flex: none; white-space: nowrap; font-size: 15px; }
@media (max-width: 420px) { .plz-row { flex-direction: column; } }
.hint { font-size: 14px; color: var(--muted); }
.hint[data-kind="ok"] { color: var(--green); font-weight: 700; }
.hint[data-kind="warn"] { color: var(--error); }
.check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); }
.error { color: var(--error); font-weight: 700; font-size: 15px; }
.fine { font-size: 13px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Schritt 2: Pakete wählen */
.picks { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 460px) { .picks { grid-template-columns: minmax(0, 1fr); } }
.pick { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 12px 44px; border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer; background: var(--surface); }
.pick input { position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.pick:has(input:checked) { border-color: var(--ink); background: var(--mint); }
.pick b { font-size: 15px; }
.pick span { font-size: 13px; color: var(--muted); }
.pick-extra { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; }
.stepper-ctrl { display: flex; align-items: center; gap: 8px; }
.stepper-ctrl button {
  width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--surface);
  font: 800 22px/1 var(--font-body); color: var(--ink); cursor: pointer;
}
.stepper-ctrl button.plus { background: var(--ink); color: #fff; }
.stepper-ctrl output { min-width: 2ch; text-align: center; font: 800 24px/1 var(--font-display); }

/* Schritt 3: geschafft */
.done { display: flex; flex-direction: column; gap: 16px; }
.done:focus { outline: none; }
.done-icon { width: 72px; height: 72px; border-radius: 999px; background: var(--green); display: grid; place-items: center; }
.done h2 { font: 800 40px/1 var(--font-display); letter-spacing: -0.02em; }
.confirm-box { background: var(--sky); border-radius: 18px; padding: 14px 16px; font-size: 15px; }
.share { background: var(--ink); color: #fff; border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.share h3 { font: 700 22px/1.2 var(--font-display); }
.share p { color: #CFE0D6; font-size: 15px; }
.share .btn-dark { background: #fff; color: var(--ink); }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; min-height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid #3C5A51; background: #1C3B33; color: #fff; font: 400 15px var(--font-body); }
.copy-row .btn { min-height: 46px; padding: 0 16px; font-size: 15px; background: transparent; color: #fff; border-color: #fff; }

/* Abschnitte */
.section { padding: 80px 0; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; max-width: 46rem; }
.section-head h2 { font-size: clamp(34px, 4vw, 48px); line-height: 1.02; }
.white { background: var(--surface); }

.problem { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .problem { grid-template-columns: minmax(0, 1fr); } }
.benefit { background: var(--ground); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.benefit h3 { font: 700 24px/1.2 var(--font-display); }
.benefit p { color: var(--muted); }
.benefit-icon { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--accent); }

/* Produktkarten */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.product { background: var(--surface); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.product-photo { position: relative; }
.product-photo img { width: 100%; height: 230px; object-fit: cover; }
.chip { position: absolute; top: 14px; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 800; }
.chip-brand { left: 14px; background: var(--surface); }
.chip-save { right: 14px; background: var(--accent); font-variant-numeric: tabular-nums; }
.product-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.product-body h3 { font: 700 23px/1.15 var(--font-display); }
.price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.price-label { font-size: 13px; font-weight: 800; color: var(--green); }
.price { font: 800 44px/1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.grund { font-size: 13px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.best { text-align: right; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.best b { display: block; font-size: 18px; color: var(--ink); }
.progress { position: relative; height: 10px; background: #DCE6DF; border-radius: 999px; }
.progress > span { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--green); }
.progress i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); }
.progress-text { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-variant-numeric: tabular-nums; }
.progress-text span { color: var(--muted); }
.product .btn { margin-top: auto; }

/* Sparrechner */
.calc { background: var(--ink); color: #fff; border-radius: 36px; padding: 40px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 36px; }
@media (max-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr); padding: 28px; } }
.calc h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.02; }
.calc .lead { color: #CFE0D6; font-size: 18px; margin-top: 8px; }
.toggles { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1.5px solid #4A6A60; background: transparent; color: #fff; font: 700 16px var(--font-body); cursor: pointer; }
.toggle[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--ink); }
.toggle small { font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; }
.calc .stepper { border-top: 1px solid #2F4A42; padding-top: 18px; }
.calc .stepper-ctrl button { border-color: #fff; background: transparent; color: #fff; }
.calc .stepper-ctrl button.plus { background: #fff; color: var(--ink); }
.result { background: var(--accent); color: var(--ink); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.result .big { font: 800 clamp(60px, 7vw, 84px)/0.95 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.result-line { display: flex; justify-content: space-between; gap: 12px; border-top: 1.5px solid rgba(21, 48, 42, 0.22); padding-top: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.result-line b { font: 800 26px/1 var(--font-display); }
.result .fine { color: #3A3416; }

/* So geht's */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.steps .n { width: 50px; height: 50px; border-radius: 999px; background: var(--accent); display: grid; place-items: center; font: 800 22px/1 var(--font-display); }
.steps h3 { font: 700 24px/1.2 var(--font-display); }
.steps p { color: var(--muted); }

/* Fragen */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px 64px; }
@media (max-width: 900px) { .faq { grid-template-columns: minmax(0, 1fr); } }
.faq h2 { font-size: clamp(34px, 4vw, 48px); }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 800; font-size: 19px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 800 24px/1 var(--font-display); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 8px; max-width: 42rem; }

/* Schluss */
.final { background: var(--peach); border-radius: 36px; padding: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.final h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.04; }
.final p { color: #5A4034; font-size: 19px; margin-top: 8px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 110px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--muted); }

/* Mobile Leiste */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(242, 247, 243, 0.96); border-top: 1px solid var(--line); z-index: 40; display: none; }
.sticky-cta .btn { width: 100%; }
@media (max-width: 900px) { .sticky-cta.show { display: block; } }

/* Rechtstexte und Bestätigung */
.page { padding: 40px 0 80px; }
.page .card { max-width: 760px; }
.prose h1 { font: 800 clamp(34px, 5vw, 48px)/1.05 var(--font-display); letter-spacing: -0.02em; margin-bottom: 16px; }
.prose h2 { font: 700 22px/1.25 var(--font-display); margin: 28px 0 8px; }
.prose p, .prose li { color: #2E4740; margin: 8px 0; }
.prose .todo { background: #FFF1C7; padding: 0 4px; border-radius: 4px; }

/* Verwaltung */
.adm { background: var(--ground); }
.adm-wrap { width: min(1200px, 100% - 40px); margin: 0 auto; padding: 40px 0 64px; display: flex; flex-direction: column; gap: 24px; }
.adm-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.adm-head h1 { font-size: 46px; line-height: 1.02; margin: 6px 0 8px; }
.adm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.adm-tile { background: var(--surface); border-radius: 22px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.adm-tile span, .adm-tile small { color: var(--muted); font-size: 14px; }
.adm-tile b { font: 800 38px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.adm-card { background: var(--surface); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.adm-card h2 { font: 700 24px/1.2 var(--font-display); }
.adm-card h3 { font: 700 18px/1.2 var(--font-display); margin-top: 8px; }
.adm-dark { background: var(--ink); color: #fff; }
.adm-dark .adm-bar { background: #23443B; }
.adm-dark .adm-bar span { background: var(--accent); }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 20px; }
.adm-scroll { overflow-x: auto; }
.adm-table { width: 100%; min-width: 960px; border-collapse: collapse; font-size: 14px; }
.adm-table th { text-align: left; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.adm-table td { padding: 12px; border-bottom: 1px solid #E4ECE6; vertical-align: top; }
.adm-table .num { text-align: right; }
.adm-table small { color: var(--muted); }
.adm-chip { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #E7EEE9; font-size: 13px; font-weight: 800; white-space: nowrap; }
.adm-chip-offer { background: #FFF1C7; color: #6B4A00; }
.adm-chip-go { background: var(--mint); color: #145C3C; }
.adm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.adm-list li { display: grid; grid-template-columns: 54px minmax(0, 1fr) minmax(120px, 1.2fr) auto; align-items: center; gap: 12px; font-size: 14px; }
.adm-list li:only-child:not(:has(b)) { display: block; color: var(--muted); }
.adm-zone { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-list li:not(:has(.adm-zone)) { grid-template-columns: 54px minmax(120px, 1fr) auto; }
.adm-bar { display: block; height: 10px; border-radius: 999px; background: #E7EEE9; }
.adm-bar span { display: block; height: 10px; width: var(--w); border-radius: 999px; background: var(--green); }
.adm-list code { font-size: 14px; }
