/* ==========================================================================
   Webmansion GmbH, Kanzlei-KI
   Design-System v2: heller Grund, eine Akzentfarbe, runde Formen, große Schrift
   ========================================================================== */

:root {
  --bg: #F8F9FB;
  --bg-soft: #FFFFFF;
  --card: #FFFFFF;
  --line: #E5E8EE;
  --line-strong: #D5DAE3;
  --text: #0F172A;
  --muted: #5B6472;
  --navy: #0F172A;

  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-soft: #EAF1FF;
  --accent-text: #1E4FC2;

  --green: #15803D;
  --green-soft: #E7F6EC;

  --font-head: "Manrope", "Satoshi", system-ui, -apple-system, sans-serif;
  --font-body: "Manrope", "Satoshi", system-ui, -apple-system, sans-serif;

  --radius-pill: 999px;
  --radius-card: 20px;
  --radius-card-sm: 14px;

  --space-1: 8px;  --space-2: 16px; --space-3: 24px; --space-4: 32px;
  --space-5: 40px; --space-6: 48px; --space-8: 64px; --space-12: 96px;

  --section: 96px;
  --measure: 65ch;
  --container: 1300px;
  --gutter: 24px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
}

/* ---------- Reset ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { font-size: 18px; } }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 var(--space-2);
  text-wrap: balance;
  letter-spacing: -0.025em;
  color: var(--text);
}
h1 { font-size: clamp(2.25rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.3; }
h4 { font-size: 1.0625rem; font-weight: 600; }

p { margin: 0 0 var(--space-2); max-width: var(--measure); color: var(--text); }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
small, .small { font-size: 0.875rem; color: var(--muted); }
table { border-collapse: collapse; font-variant-numeric: tabular-nums; }
strong { font-weight: 700; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: #FFFFFF; }

.skip-link {
  position: absolute; left: var(--space-2); top: -100px;
  background: var(--card); color: var(--text);
  padding: var(--space-1) var(--space-2); border-radius: 8px; z-index: 100;
}
.skip-link:focus { top: var(--space-2); }

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

/* ---------- Layout ---------- */

.container {
  width: 100%; max-width: var(--container); margin: 0 auto;
  padding-left: var(--gutter); padding-right: var(--gutter);
}
@media (max-width: 480px) { :root { --gutter: 16px; } }

.section { padding-top: var(--section); padding-bottom: var(--section); }
.section + .section { padding-top: 0; }
@media (max-width: 767px) { :root { --section: 56px; } }

.section-alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-alt + .section, .section + .section-alt { padding-top: var(--section); }

.section-head { margin-bottom: var(--space-6); max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.125rem; }
.section-head.center p { margin-left: auto; margin-right: auto; }

.lead { font-size: 1.1875rem; }
.text-muted { color: var(--muted); }
.center { text-align: center; }
.center p, .center h1, .center h2 { margin-left: auto; margin-right: auto; }

/* Eyebrow über Überschriften */
.eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: var(--space-2);
}

.highlight { color: var(--accent); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1);
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #FFFFFF; border-color: var(--accent); box-shadow: 0 6px 16px rgba(37, 99, 235, 0.22); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--text); }
.btn-note { display: block; margin-top: var(--space-1); font-size: 0.9375rem; color: var(--muted); }
.btn-block { width: 100%; }

/* ---------- Header: nur Logo, ohne Navigation ---------- */

.site-header { padding: var(--space-3) 0 0; }
.site-header .container { display: flex; align-items: center; }
.logo {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; color: var(--text);
}
.logo img { height: 30px; width: auto; }
@media (max-width: 480px) { .logo img { height: 24px; } }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: var(--space-8);
  padding-bottom: var(--space-12);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(37, 99, 235, 0.10), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(37, 99, 235, 0.06), transparent 60%),
    var(--bg);
}
@media (max-width: 767px) { .hero { padding-top: var(--space-4); padding-bottom: var(--space-6); } }

.hero .container { display: grid; grid-template-columns: 1fr; gap: var(--space-6); align-items: center; }
@media (min-width: 960px) { .hero .container { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }

.hero h1 { margin-bottom: var(--space-3); }
.hero .subline { font-size: 1.1875rem; color: var(--muted); margin-bottom: var(--space-4); }
.hero .claim { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text); margin: calc(-1 * var(--space-1)) 0 var(--space-3); }

.badges { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); margin-top: var(--space-4); padding: 0; list-style: none; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9375rem; font-weight: 500; color: var(--muted);
}
.badge::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E4FC2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.final-cta .badges { justify-content: center; }

/* ---------- Produktkarte im Hero (gebaut, mit GSAP-Sequenz) ---------- */

.g-mockup {
  position: relative;
  background: var(--card); color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 0.9375rem;
}
.g-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.g-bar-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.9375rem; }
.g-bar-title i {
  width: 32px; height: 32px; border-radius: 9px; background: var(--accent-soft);
  display: grid; place-items: center;
}
.g-bar-title i svg { width: 16px; height: 16px; stroke: var(--accent-text); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.g-bar-title small { display: block; font-weight: 500; color: var(--muted); font-size: 0.75rem; }
.g-bar-title small::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 5px; vertical-align: 1px; }
.g-bar-tag { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.g-body { display: grid; grid-template-columns: 1fr; min-height: 340px; }
@media (min-width: 560px) { .g-body { grid-template-columns: 1.25fr 1fr; } }

.g-chat { padding: 18px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--line); }
@media (max-width: 559px) { .g-chat { border-right: 0; border-bottom: 1px solid var(--line); } }

.g-input {
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px;
  background: var(--bg); min-height: 46px; display: flex; align-items: center;
}
.g-input .g-q { white-space: pre-wrap; }
.g-caret { display: inline-block; width: 2px; height: 18px; background: var(--text); margin-left: 2px; vertical-align: -3px; }
.g-thinking { display: flex; gap: 6px; padding: 4px 2px; height: 20px; }
.g-thinking i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: 0.4; }
.g-answer { padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); line-height: 1.55; }
.g-answer .g-line { display: block; }
.g-source {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 10px;
  border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--line);
  font-size: 0.8125rem; font-weight: 500; transform-origin: left center;
}
.g-source::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.g-doc { padding: 18px; background: var(--bg); position: relative; overflow: hidden; }
.g-page {
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px 16px;
  display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-sm); transform-origin: center;
}
.g-ln { height: 7px; border-radius: 4px; background: #E6E9EF; }
.g-ln.w40 { width: 40%; } .g-ln.w60 { width: 60%; } .g-ln.w70 { width: 70%; } .g-ln.w85 { width: 85%; }
.g-hl { position: relative; border-radius: 6px; padding: 8px 10px; font-size: 0.8125rem; line-height: 1.45; border-left: 3px solid transparent; overflow: hidden; }
.g-hl::before { content: ""; position: absolute; inset: 0; background: var(--green-soft); transform: scaleX(var(--sx, 0)); transform-origin: left center; }
.g-hl span { position: relative; }
.g-hl.is-on { border-left-color: var(--green); }
.g-caption { margin-top: 12px; font-size: 0.8125rem; color: var(--muted); padding-right: 96px; }
.g-badge-page { position: absolute; top: 12px; right: 12px; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--text); color: #fff; font-size: 0.75rem; font-weight: 700; }

.g-replay {
  position: absolute; right: 14px; bottom: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 6px 12px; font: inherit; font-size: 0.8125rem; font-weight: 600; color: var(--muted); cursor: pointer;
}
.g-replay:hover { color: var(--text); border-color: var(--line-strong); }

/* ---------- Fakten-Zeile ---------- */

.facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3);
  list-style: none; padding: var(--space-5) 0; margin: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
@media (min-width: 860px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts strong { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.facts span { color: var(--muted); font-size: 0.9375rem; }

/* ---------- Problem ---------- */

.problem .container { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
@media (min-width: 960px) { .problem .container { grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: start; } }
.problem p { color: var(--muted); }
.problem p strong { color: var(--text); font-weight: 600; }
.source-note { display: block; margin-top: var(--space-3); font-size: 0.875rem; color: var(--muted); }

/* ---------- Karten allgemein ---------- */

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: var(--space-4); box-shadow: var(--shadow-sm);
}
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft);
  display: grid; place-items: center; margin-bottom: var(--space-3);
}
.card-icon svg { width: 22px; height: 22px; stroke: var(--accent-text); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Schritte ---------- */

.steps { display: grid; grid-template-columns: 1fr; gap: var(--space-3); list-style: none; padding: 0; margin: 0; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { display: flex; flex-direction: column; }
.step .device {
  border: 1px solid var(--line); border-radius: var(--radius-card-sm); background: var(--bg); overflow: hidden; margin-bottom: var(--space-3);
}
.device-bar { height: 26px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 5px; padding: 0 12px; }
.device-bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.device-screen {
  aspect-ratio: 16 / 10; display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, #F8F9FB 0 10px, #F1F3F7 10px 20px);
  color: var(--muted); font-size: 0.875rem; text-align: center; padding: var(--space-2);
}
.step-number {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: var(--space-1);
}
.step h3 { margin-bottom: var(--space-1); }
.step p { max-width: none; color: var(--muted); }

/* ---------- Vertrauen ---------- */

.trust-cols { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 860px) { .trust-cols { grid-template-columns: repeat(3, 1fr); } }
.trust-cols .card p { max-width: none; color: var(--muted); }
.trust-cols h3 { margin-bottom: var(--space-1); }

/* ---------- Vorher / nachher ---------- */

.compare { display: grid; grid-template-columns: 1fr; border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
@media (min-width: 860px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare-col { padding: var(--space-5) var(--space-4); }
.compare-col.before { background: var(--navy); color: #fff; }
.compare-col.after { background: var(--card); }
.compare-col h3 {
  font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--space-3);
}
.compare-col.before h3 { color: rgba(255,255,255,0.6); }
.compare-col.after h3 { color: var(--accent-text); }
.compare-col ol { list-style: none; margin: 0; padding: 0; }
.compare-col li { padding: var(--space-2) 0; border-top: 1px solid rgba(255,255,255,0.12); min-height: 88px; }
.compare-col.before li { color: rgba(255,255,255,0.85); }
.compare-col.after li { border-top-color: var(--line); }
.compare-col.after li::before {
  content: ""; display: inline-block; width: 18px; height: 18px; margin-right: 10px; vertical-align: -3px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.tag {
  display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--accent-text); font-size: 0.75rem; font-weight: 700; vertical-align: middle;
}

/* ---------- Angebot ---------- */

.offer-wrap { display: grid; grid-template-columns: 1fr; gap: var(--space-4); align-items: start; }
@media (min-width: 960px) { .offer-wrap { grid-template-columns: 1fr 1fr; gap: var(--space-4); align-items: stretch; } }
.offer-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: var(--space-5); box-shadow: var(--shadow-md);
}
.offer-card .eyebrow { margin-bottom: var(--space-2); }
.offer-card .price { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 4px; }
.offer-card .price-sub { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: var(--space-3); color: var(--muted); }
.offer-card table { width: 100%; margin-bottom: var(--space-4); }
.offer-card td { padding: 12px 0; border-top: 1px solid var(--line); vertical-align: top; }
.offer-card td:first-child { color: var(--muted); width: 36%; padding-right: var(--space-2); font-weight: 500; }
.offer-card .btn { width: 100%; }

.lead-magnet { padding: var(--space-4); border-radius: var(--radius-card); background: var(--accent-soft); }
.lead-magnet h3 { font-size: 1.125rem; margin-bottom: var(--space-1); }
.lead-magnet p { font-size: 1rem; max-width: none; color: var(--text); }

/* ---------- Formulare ---------- */

.form { display: grid; gap: var(--space-2); margin-top: var(--space-3); }
.form-row { display: grid; gap: 6px; }
label { font-size: 0.9375rem; font-weight: 600; }
input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%; font: inherit; font-size: 1rem; padding: 14px 16px;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); color: var(--text);
}
input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
input[aria-invalid="true"] { border-color: #B42318; }
.form-error { font-size: 0.9375rem; color: #B42318; }
.form-success { padding: var(--space-2) var(--space-3); border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.form-hint { font-size: 0.875rem; color: var(--muted); }

/* ---------- FAQ ---------- */

.faq { max-width: 840px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card-sm); margin-bottom: var(--space-2); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--space-3); font-weight: 700; font-size: 1.0625rem;
  display: flex; justify-content: space-between; gap: var(--space-2); align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-weight: 700;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 var(--space-3) var(--space-3); max-width: none; color: var(--muted); }

/* ---------- Finaler CTA ---------- */

.final-cta .container {
  max-width: 900px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 28px;
  padding: var(--space-8) var(--space-5); box-shadow: var(--shadow-md);
}
.final-cta p { color: var(--muted); margin-left: auto; margin-right: auto; }
.final-cta .btn { margin-top: var(--space-2); }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); color: #fff; padding: var(--space-8) 0 var(--space-5); margin-top: var(--space-6); }
.site-footer .container { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
@media (min-width: 768px) { .site-footer .container { grid-template-columns: 1fr auto; align-items: start; } }
.footer-person { display: flex; gap: var(--space-3); align-items: center; }
.footer-photo {
  width: 88px; height: 88px; flex: none; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
  display: grid; place-items: center; font-size: 0.75rem; color: rgba(255,255,255,0.7); overflow: hidden;
}
.footer-photo img { width: 100%; height: 100%; object-fit: cover; }
.footer-person p { color: rgba(255,255,255,0.8); font-size: 1rem; }
.footer-person strong { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; gap: var(--space-3); }
.footer-links a { color: rgba(255,255,255,0.8); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-legal { grid-column: 1 / -1; padding-top: var(--space-3); border-top: 1px solid rgba(255,255,255,0.14); font-size: 0.875rem; color: rgba(255,255,255,0.6); }

/* ---------- Startseite ---------- */

.paths { display: grid; grid-template-columns: 1fr; gap: var(--space-3); margin-top: var(--space-6); text-align: left; }
@media (min-width: 768px) { .paths { grid-template-columns: 1fr 1fr; } }
.path-card {
  display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: var(--space-5); box-shadow: var(--shadow-sm);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.path-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.path-card h2 { font-size: 1.5rem; margin-bottom: var(--space-1); }
.path-card p { color: var(--muted); max-width: none; }
.path-card .path-link { display: inline-block; margin-top: var(--space-2); font-weight: 700; color: var(--accent-text); }

/* ---------- Rechtsseiten ---------- */

.legal .container { max-width: 760px; }
.legal h2 { font-size: 1.5rem; margin-top: var(--space-5); }
.legal h3 { font-size: 1.125rem; margin-top: var(--space-3); }
.legal address { font-style: normal; }
.legal .placeholder { color: var(--muted); }

/* ---------- Funnel ---------- */

.funnel-page { min-height: 100vh; display: flex; flex-direction: column; }
.funnel-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: var(--space-5) 0 var(--space-12); }
.funnel { width: 100%; max-width: 720px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.progress { height: 6px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; margin-bottom: var(--space-2); }
.progress-bar { height: 100%; width: 0; background: var(--accent); border-radius: var(--radius-pill); transition: width 240ms ease; }
.progress-count { font-size: 0.9375rem; color: var(--muted); margin-bottom: var(--space-4); font-weight: 500; }
.funnel-screen { display: none; }
.funnel-screen.is-active { display: block; }
.funnel-screen h2 { margin-bottom: var(--space-4); }
.funnel h2[tabindex="-1"]:focus, .funnel h2[tabindex="-1"]:focus-visible { outline: none; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); list-style: none; padding: 0; margin: 0; }
.tiles li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 420px) { .tiles { grid-template-columns: 1fr; } }
.tile {
  width: 100%; min-height: 136px; background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--space-3);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: var(--space-2);
  font: inherit; font-weight: 600; font-size: 1.0625rem; text-align: left; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.tile:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.tile.is-selected { background: var(--accent-soft); border-color: var(--accent); }
.tile svg {
  width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--accent-soft);
  stroke: var(--accent-text); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.tile.is-selected svg { background: #fff; }
.funnel-back { display: inline-block; margin-top: var(--space-3); background: none; border: 0; padding: 4px 0; font: inherit; font-size: 0.9375rem; color: var(--muted); cursor: pointer; text-decoration: underline; }
.funnel-back[hidden] { display: none; }
.result { display: none; }
.result.is-active { display: block; }
.result h2 { margin-bottom: var(--space-2); }
.result > p { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-1); list-style: none; padding: 0; margin: var(--space-3) 0; }
.chip { padding: 6px 14px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-text); font-size: 0.9375rem; font-weight: 600; }
.result .btn { margin-top: var(--space-2); }

/* ---------- Scroll-Einblendung ---------- */

.reveal { opacity: 1; transform: none; }
.js .reveal.reveal-pending { opacity: 0.001; transform: translateY(16px); }
.js .reveal { transition: opacity 600ms ease, transform 600ms ease; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal.reveal-pending { opacity: 1; transform: none; }
  .js .reveal, .btn, .tile, .path-card, .progress-bar { transition: none; }
  .btn-primary:hover, .tile:hover, .path-card:hover { transform: none; }
}

/* ---------- Sticky-CTA Mobil ---------- */

.sticky-cta { display: none; }
@media (max-width: 767px) {
  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(248, 249, 251, 0.96); border-top: 1px solid var(--line); z-index: 40;
  }
  .sticky-cta .btn { width: 100%; }
  body.has-sticky-cta { padding-bottom: 88px; }
}

/* ---------- Kanzlei-Check direkt auf der Seite ---------- */

.funnel-inline .funnel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: var(--shadow-md); padding: var(--space-5) var(--space-4);
}
@media (max-width: 480px) { .funnel-inline .funnel { padding: var(--space-3) var(--space-2); } }
.funnel-inline .tile { background: var(--bg); }
.funnel-inline .tile.is-selected { background: var(--accent-soft); }
.funnel-inline { scroll-margin-top: var(--space-3); }

/* ---------- Animierte Mini-Szenen in den Schritten ---------- */

.steps .device-screen { background: var(--bg); padding: 0; position: relative; overflow: hidden; aspect-ratio: 16 / 11; }
.sc { position: absolute; inset: 0; padding: 14px; font-size: 0.75rem; line-height: 1.3; color: var(--text); text-align: left; }
.sc em { font-style: normal; font-weight: 600; }
.sc small { display: block; font-weight: 400; color: var(--muted); font-size: 0.6875rem; }
.sc-ico { width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); display: grid; place-items: center; flex: none; }
.sc-ico svg { width: 14px; height: 14px; stroke: var(--accent-text); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sc-ok { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: var(--green); display: grid; place-items: center; transform: scale(0); }
.sc-ok svg { width: 10px; height: 10px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* Szene 1 */
.sc1 { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.sc1-src { position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 3px 7px; width: 118px; margin: 2px 0; grid-column: 1; min-height: 32px; }
.sc1-src .sc-ico { width: 22px; height: 22px; }
.sc1-src small { font-size: 0.625rem; line-height: 1.1; }
.sc1 { padding: 10px 14px; }
.sc1-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.sc1-lines path { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0.8; }
.sc1-srv { position: relative; z-index: 1; grid-column: 2; justify-self: end; display: flex; flex-direction: column; align-items: center; gap: 3px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; width: 104px; }
.sc1-srv .sc-ico { width: 26px; height: 26px; }
.sc1-pill { font-style: normal; font-size: 0.625rem; font-weight: 700; color: var(--accent-text); background: var(--accent-soft); border-radius: 999px; padding: 2px 8px; }

/* Szene 2 */
.sc2 { display: grid; grid-template-columns: 92px 1fr; gap: 12px; }
.sc2-in { position: relative; background: #fff; border: 1px dashed var(--line-strong); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.sc2-in em { font-size: 0.6875rem; color: var(--muted); margin-bottom: 2px; }
.sc2-doc { width: 26px; height: 26px; border-radius: 6px; background: var(--accent-soft); display: grid; place-items: center; position: relative; z-index: 2; }
.sc2-doc svg { width: 14px; height: 14px; stroke: var(--accent-text); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sc2-folders { display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.sc2-f { position: relative; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 5px 8px; }
.sc2-f.is-review { border-style: dashed; border-color: var(--accent); background: var(--accent-soft); }
.sc2-f.is-done { border-color: var(--green); }

/* Szene 3 */
.sc3 { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.sc3-q { display: flex; align-items: center; background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 10px; min-height: 34px; }
.sc3-caret { display: inline-block; width: 1.5px; height: 14px; background: var(--text); margin-left: 2px; }
.sc3-dots { display: flex; gap: 4px; padding: 0 4px; height: 12px; }
.sc3-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.sc3-a { background: var(--accent-soft); border-radius: 10px; padding: 8px 10px; }
.sc3-src { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 0.6875rem; font-weight: 500; transform-origin: left center; }
.sc3-src::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* ---------- Hero mit Video ---------- */

@media (min-width: 960px) { .hero-video .container { grid-template-columns: 1.1fr 1fr; } }
.hero-video-wrap { order: 2; }
@media (min-width: 960px) { .hero-video-wrap { order: 0; } }
.hero-player {
  width: 100%; aspect-ratio: 16 / 9; display: block; background: #0F172A;
  border-radius: var(--radius-card); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.hero-video-note { margin-top: var(--space-2); font-size: 0.9375rem; color: var(--muted); }

.benefits { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; gap: 10px; }
.benefits li { position: relative; padding-left: 30px; font-size: 1.0625rem; line-height: 1.5; }
.benefits li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.hero-video .subline { margin-bottom: var(--space-3); }

.showcase-wrap { max-width: 860px; margin: 0 auto; }
.hero-video h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.hero-video .badges { margin-top: var(--space-3); }

.video-section { padding-top: 0; }
.video-wrap { max-width: 900px; margin: 0 auto; text-align: center; }
.center p, .video-wrap p, .final-cta p { max-width: none; }

.form-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-2); }
@media (min-width: 560px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.9375rem; }
.form-check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.form-check a { color: var(--accent-text); }
.form-success p { max-width: none; }

.cta-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: var(--space-5); box-shadow: var(--shadow-md); text-align: center;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.cta-card p { color: var(--muted); max-width: none; }
.cta-card .btn { margin-top: var(--space-2); }
.cta-card .badges { justify-content: center; }
.cta-card h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.thanks-hero .container { align-items: center; }

.calendly-section { padding-top: 0; }
.calendly-section .container { max-width: 1300px; }
.calendly-wrap { margin: 0 auto; }
.calendly-inline-widget { border: 0; border-radius: var(--radius-card); overflow: hidden; background: transparent; }
/* Calendly zeigt die zweispaltige Ansicht erst ab rund 1000 px Breite des Widgets, darunter gestapelt und deshalb höher */
@media (max-width: 1080px) { .calendly-inline-widget { height: 1150px !important; } }
.cta-row { margin-top: var(--space-5); max-width: none; }

/* ---------- Angebot und Demo in einer Karte ---------- */
.offer-combo {
  display: grid; grid-template-columns: minmax(0, 1fr); max-width: 1100px; margin: 0 auto;
  border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--card);
}
@media (min-width: 960px) { .offer-combo { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.offer-combo-left { padding: var(--space-6) var(--space-5); }
.offer-combo-left .eyebrow { margin-bottom: var(--space-2); }
.offer-combo-left .price { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 4px; }
.offer-combo-left .price-sub { font-size: 1.125rem; font-weight: 600; color: var(--muted); margin-bottom: var(--space-3); }
.offer-combo-left table { width: 100%; }
/* Lange Wörter wie „Auftragsverarbeitungsvertrag“ trennen, sonst wird die Spalte am Handy breiter als der Bildschirm */
.offer-combo-left td { padding: 12px 0; border-top: 1px solid var(--line); vertical-align: top; hyphens: auto; overflow-wrap: anywhere; }
.offer-combo-left td:first-child { color: var(--muted); width: 30%; padding-right: var(--space-2); font-weight: 500; }
.offer-combo-right {
  background: var(--navy); color: #fff; padding: var(--space-6) var(--space-5);
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
}
.offer-combo-right h2 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.offer-combo-right p { color: rgba(255,255,255,0.8); max-width: none; }
.offer-combo-right .btn { margin-top: var(--space-2); }
.offer-combo-right .badges { justify-content: center; margin-top: var(--space-3); }
.offer-combo-right .badge { color: rgba(255,255,255,0.85); }
.offer-combo-right .badge::before { background-color: rgba(255,255,255,0.15); }
.eyebrow-light { background: rgba(255,255,255,0.14); color: #fff; }
.offer-combo-right .badge::before { background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23ffffff%27 stroke-width=%273%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M20 6 9 17l-5-5%27/%3E%3C/svg%3E"); }

/* ---------- Mobil: Überschriften, Aktionen und Karten mittig ---------- */
/* Lange Fließtexte (Problem, Vergleich, Tabelle, FAQ, Formulare, Rechtsseiten) bleiben linksbündig. */

@media (max-width: 767px) {
  .hero .container > div:first-child, .hero-video-note { text-align: center; }
  .hero .container > div:first-child p { margin-left: auto; margin-right: auto; }
  .hero .badges { justify-content: center; }

  .section-head { margin-left: auto; margin-right: auto; text-align: center; }
  .section-head p { margin-left: auto; margin-right: auto; }
  .problem .container > div:first-child { text-align: center; }

  .step, .trust-cols .card { text-align: center; }
  .step p, .trust-cols .card p { text-align: left; }
  .card-icon { margin-left: auto; margin-right: auto; }

  .compare-col h3 { text-align: center; }
  .offer-combo-left { text-align: center; }
  .offer-combo-left table { text-align: left; }

  .site-header .container { justify-content: center; }

  .progress-count, .funnel-screen h2, .result h2, .result > p { text-align: center; }
  .result > p { margin-left: auto; margin-right: auto; }
  .chips { justify-content: center; }
  .tile { align-items: center; text-align: center; }
  .funnel-back { display: block; margin-left: auto; margin-right: auto; }

  .footer-person { flex-direction: column; text-align: center; }
  .footer-person p { margin-left: auto; margin-right: auto; }
  .footer-links { justify-content: center; }
  .footer-legal { text-align: center; }
}
