/* Mediares – Design-System (apple.com-Dialekt: hell, ruhig, eine Akzentfarbe)
   Schrift: system-ui (SF auf Apple-Geräten), sonst Inter/Segoe/Roboto. Keine externen Fonts. */

:root {
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --hairline: #d2d2d7;
  --brand: #e8192c;     /* Logo-Rot, nur für Flächen ab 24 px */
  --accent: #d0152a;    /* Rot für Buttons und Links, 5,5:1 auf Weiß */
  --accent-hover: #b0101f;
  --r-card: 28px;
  --r-tile: 18px;
  --r-pill: 980px;
  --section-y: 112px;
  --content: 980px;
  --content-wide: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 17px/1.47 var(--font);
  letter-spacing: -0.016em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: var(--content); margin-inline: auto; padding-inline: 22px; }
.wrap-wide { max-width: var(--content-wide); margin-inline: auto; padding-inline: 22px; }
section { padding-block: var(--section-y); }
.section-alt { background: var(--bg-alt); }
.center { text-align: center; }

/* Typo-Skala */
.eyebrow { display: block; font: 600 17px/1.24 var(--font); letter-spacing: -0.01em; color: var(--accent); margin-bottom: 14px; }
.hero { font: 600 clamp(44px, 7.4vw, 88px)/1.04 var(--font); letter-spacing: -0.03em; }
.headline { font: 600 clamp(36px, 5.4vw, 60px)/1.06 var(--font); letter-spacing: -0.025em; }
.title { font: 600 clamp(28px, 3.6vw, 40px)/1.1 var(--font); letter-spacing: -0.02em; }
.intro { font: 400 clamp(19px, 2vw, 22px)/1.4 var(--font); letter-spacing: -0.01em; color: var(--text-2); }
.intro strong, .muted strong { color: var(--text); font-weight: 600; }
.muted { color: var(--text-2); }
.small { font-size: 14px; line-height: 1.43; color: var(--text-3); letter-spacing: -0.01em; }
.stack > * + * { margin-top: 20px; }
.mt-lg { margin-top: 48px; }
.mt-xl { margin-top: 72px; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.center .btns { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  font: 500 17px/1.2 var(--font); letter-spacing: -0.01em;
  border-radius: var(--r-pill); border: 1px solid transparent;
  background: var(--accent); color: #fff; cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--hairline); }
.btn-outline:hover { background: var(--bg-alt); }
.btn svg { width: 20px; height: 20px; flex: none; }
.link-arrow { font-weight: 500; }
.link-arrow::after { content: " ›"; }

/* Navigation (dünn, halbtransparent) */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 24px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text); font-size: 14px; }
.nav-links a[aria-current="page"] { color: var(--accent); }
.nav-links .btn { min-height: 36px; padding: 7px 16px; font-size: 14px; color: #fff; }
@media (max-width: 734px) {
  .nav-links a:not(.btn) { display: none; }
}

/* Hero */
.hero-section { padding-top: 96px; padding-bottom: 56px; }
.hero-section .intro { max-width: 640px; margin: 24px auto 0; }
.hero-section .btns { margin-top: 36px; }

/* Reel-Wand */
.reels {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 220px);
  gap: 16px; overflow-x: auto; padding: 8px 22px 28px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  justify-content: start;
}
.reels::-webkit-scrollbar { display: none; }
@media (min-width: 1069px) { .reels { justify-content: center; overflow: hidden; } }
.reel {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-tile); overflow: hidden;
  background: var(--bg-alt); scroll-snap-align: center;
}
.reel video, .reel img { width: 100%; height: 100%; object-fit: cover; }
.reels-note { text-align: center; }

/* Zahlen */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { background: var(--bg); border-radius: var(--r-card); padding: 36px 32px; }
.section-alt .stat { background: var(--bg); }
.stat-num { font: 600 clamp(40px, 5vw, 56px)/1 var(--font); letter-spacing: -0.03em; }
.stat-label { margin-top: 12px; color: var(--text-2); }
.stat-num small { font-size: .5em; letter-spacing: -0.01em; }
@media (max-width: 734px) { .stats { grid-template-columns: 1fr; } }

/* Karten / Raster */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 734px) { .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--bg-alt); border-radius: var(--r-card); padding: 40px 36px; }
.section-alt .card { background: var(--bg); }
.card h3 { font: 600 26px/1.15 var(--font); letter-spacing: -0.02em; margin-bottom: 12px; }
.card p { color: var(--text-2); }
.card .step { font: 600 15px/1 var(--font); color: var(--accent); margin-bottom: 18px; display: block; }
.list { list-style: none; padding: 0; margin: 20px 0 0; }
.list li { padding: 12px 0; border-top: 1px solid var(--hairline); color: var(--text-2); }
.list li:first-child { border-top: 0; }

/* Gegenüberstellung */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 734px) { .compare { grid-template-columns: 1fr; } }
.compare .card.dark { background: var(--text); color: #f5f5f7; }
.compare .card.dark p, .compare .card.dark li { color: #a1a1a6; }
.compare .card.dark .list li { border-color: #424245; }
.compare .card.dark h3 { color: #f5f5f7; }

/* Großes Zitat */
.statement { font: 600 clamp(30px, 4.4vw, 52px)/1.12 var(--font); letter-spacing: -0.025em; max-width: 880px; margin-inline: auto; }
.statement .grey { color: var(--text-3); }

/* Ergebnisse */
.result { display: flex; flex-direction: column; justify-content: space-between; min-height: 240px; }
.result .stat-num { margin-top: 28px; }

/* FAQ */
.faq { max-width: 760px; margin-inline: auto; }
.faq details { border-top: 1px solid var(--hairline); }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
  font: 600 19px/1.3 var(--font); letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg);
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 26px; color: var(--text-2); max-width: 680px; }

/* Schluss-CTA */
.cta-final { text-align: center; }
.cta-final .intro { max-width: 560px; margin: 20px auto 0; }
.cta-final .btns { margin-top: 32px; }

/* Formular */
.form-wrap { max-width: 724px; margin-inline: auto; padding-inline: 22px; }
.form { display: grid; gap: 22px; margin-top: 48px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field label, .field legend { font: 600 15px/1.3 var(--font); letter-spacing: -0.01em; }
.field .hint { font-size: 14px; color: var(--text-3); font-weight: 400; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="date"], .form select, .form textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  font: 400 17px/1.3 var(--font); color: var(--text);
  background: var(--bg-alt); border: 1px solid transparent; border-radius: 12px;
  transition: border-color .2s ease, background-color .2s ease;
  -webkit-appearance: none; appearance: none;
}
.form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2386868b' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px;
  border-radius: var(--r-pill); background: var(--bg-alt); border: 1px solid transparent;
  font-size: 15px; cursor: pointer; transition: all .2s ease; user-select: none;
}
.chip input:checked + span { background: var(--text); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; min-height: 56px; font-size: 18px; }
.form-error { background: #fff1f2; color: #9f1239; border-radius: 12px; padding: 14px 16px; font-size: 15px; }

/* Danke */
.video-box { max-width: 360px; margin: 48px auto 0; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 9 / 16; background: var(--bg-alt); }
.video-box video { width: 100%; height: 100%; object-fit: cover; }

/* Rechtstexte */
.legal { max-width: 760px; }
.legal h1 { font: 600 clamp(36px, 5vw, 48px)/1.08 var(--font); letter-spacing: -0.025em; margin-bottom: 40px; }
.legal h2 { font: 600 24px/1.2 var(--font); letter-spacing: -0.02em; margin: 48px 0 14px; }
.legal h3 { font: 600 18px/1.3 var(--font); margin: 28px 0 8px; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; }

/* Footer */
.footer { background: var(--bg-alt); padding: 56px 0 40px; font-size: 14px; color: var(--text-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 734px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { margin: 0 0 12px; font: 600 14px/1.3 var(--font); color: var(--text); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li + li { margin-top: 8px; }
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--text-3); font-size: 12px; }

/* Mobile WhatsApp-Leiste */
.mobile-bar { display: none; }
@media (max-width: 734px) {
  :root { --section-y: 72px; }
  .mobile-bar {
    display: flex; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
    padding: 8px; border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
    transform: translateY(140%); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  }
  .mobile-bar.show { transform: none; }
  .mobile-bar .btn { flex: 1; min-height: 44px; padding: 10px 14px; font-size: 15px; }
  body.has-bar { padding-bottom: 76px; }
}

/* Einblenden beim Scrollen (zurückhaltend) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Consent-Hinweis (nur aktiv, wenn ein Tracking-Dienst eingetragen ist) */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 520px; margin-inline: auto;
  background: #fff; border-radius: 20px; padding: 22px; box-shadow: 0 12px 40px rgba(0, 0, 0, .16);
  font-size: 15px; color: var(--text-2);
}
.consent .btns { margin-top: 16px; }
.consent .btn { min-height: 42px; padding: 9px 18px; font-size: 15px; }

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

/* Schritt-für-Schritt-Anfrage */
.steps { gap: 0; margin-top: 40px; }
.step { border: 0; padding: 0; margin: 0 0 40px; min-width: 0; display: grid; gap: 18px; }
.step-q { font: 600 clamp(24px, 3.4vw, 32px)/1.15 var(--font); letter-spacing: -0.02em; padding: 0; margin-bottom: 4px; }
.step-hint { color: var(--text-2); margin-top: -6px; }
.opts { display: grid; gap: 10px; }
.opts-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .opts-2 { grid-template-columns: 1fr; } }
.opt { position: relative; display: block; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: flex; align-items: center; min-height: 60px; padding: 16px 52px 16px 20px;
  background: var(--bg-alt); border: 1px solid transparent; border-radius: 16px;
  font: 500 17px/1.3 var(--font); cursor: pointer; user-select: none;
  transition: background-color .2s ease, border-color .2s ease, transform .15s ease;
}
.opt span::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  border-radius: 50%; border: 2px solid var(--hairline); background: #fff; transition: all .2s ease;
}
.opt:hover span { background: #ececf0; }
.opt input:checked + span { background: #fff; border-color: var(--text); }
.opt input:checked + span::after { border: 6px solid var(--accent); }
.opt input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.opt:active span { transform: scale(.99); }
.progress, .step-count, .step-nav .step-back, .step-nav .step-next { display: none; }
.step-nav { display: flex; gap: 12px; }
.step-nav .btn { flex: 1; min-height: 56px; font-size: 18px; width: auto; }

/* Mit JS: eine Frage pro Bildschirm */
.steps.js .step { display: none; margin: 0; }
.steps.js .step.active { display: grid; animation: stepIn .35s cubic-bezier(.2, .8, .2, 1); }
.steps.js .progress { display: block; height: 4px; background: var(--bg-alt); border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.steps.js .progress-bar { height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width .35s ease; }
.steps.js .step-count { display: block; margin-bottom: 20px; }
.steps.js .step-nav { margin-top: 32px; }
.steps.js .step-nav .step-back, .steps.js .step-nav .step-next { display: inline-flex; }
.steps.js .step-nav .btn[hidden] { display: none; }
.steps.js > .small.center { margin-top: 20px; }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .steps.js .step.active { animation: none; } }
.steps.js .step-nav .step-back { flex: 0 0 auto; padding-inline: 26px; }
.steps.js .step-nav .step-next, .steps.js .step-nav .step-submit { flex: 1 1 auto; white-space: nowrap; }

/* ===== Handy zuerst (Traffic kommt fast nur von Instagram/Ads) ===== */
@media (max-width: 734px) {
  :root { --section-y: 56px; }
  .hide-m { display: none; }
  .mt-lg { margin-top: 28px; }
  .eyebrow { font-size: 15px; margin-bottom: 10px; }
  .headline { font-size: 32px; line-height: 1.1; }
  .intro { font-size: 17px; line-height: 1.45; }

  /* Hero: Reels gehören in den ersten Bildschirm */
  .hero-section { padding-top: 28px; padding-bottom: 20px; }
  .hero { font-size: 40px; line-height: 1.06; }
  .hero-section .intro { margin-top: 14px; }
  .hero-section .btns { margin-top: 20px; }
  .hero-btns { flex-wrap: nowrap; gap: 10px; }
  .hero-btns .btn { flex: 1 1 0; min-height: 48px; padding: 10px 14px; font-size: 16px; }
  .reels { grid-auto-columns: 148px; gap: 10px; padding: 4px 22px 24px; }
  .reel { border-radius: 14px; }

  /* Zahlen: drei Kennzahlen in einer Reihe */
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { padding: 16px 10px; border-radius: 16px; text-align: center; }
  .stat-num { font-size: 28px; }
  .stat-label { margin-top: 6px; font-size: 12px; line-height: 1.3; }
  .result { min-height: 0; }
  .result .stat-num { margin-top: 14px; font-size: 36px; }

  /* Karten als Wisch-Karussell, nächste Karte schaut rein */
  .swipe {
    display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%;
    gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: -22px; padding: 2px 22px 6px; scroll-padding-inline: 22px; scrollbar-width: none;
  }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { scroll-snap-align: start; }
  .card { padding: 26px 22px; border-radius: 22px; }
  .card h3 { font-size: 22px; }
  .card .step { margin-bottom: 12px; }
  .list { margin-top: 12px; }
  .list li { padding: 9px 0; font-size: 15px; }

  .statement { font-size: 26px; line-height: 1.18; }
  .faq summary { padding: 18px 36px 18px 0; font-size: 17px; }
  .cta-final .intro { margin-top: 12px; }
  .cta-final .btns { margin-top: 22px; }
  .footer { padding: 40px 0 28px; }
}
.show-m { display: none; }
@media (max-width: 734px) {
  .show-m { display: inline; }
  .compare .card.dark { order: -1; }
}
@media (max-width: 734px) {
  .stats .stat { padding: 16px 6px; }
  .stats .stat-num { font-size: 24px; white-space: nowrap; letter-spacing: -0.035em; }
}
