/* ============================================================
   Algowerk Hauptseite (siehe ../BRAND.md)
   Weißer Canvas, kühle Pastell-Fades, Kobalt als einzige
   Aktionsfarbe, Satoshi self-hosted, Pill-Geometrie.
   Eigenes Stylesheet: styles.css gehört der Sitechecker-Seite.
   ============================================================ */

/* ---------- Fonts (self-hosted, DSGVO) ---------- */
@font-face { font-family: 'Satoshi'; src: url('assets/fonts/satoshi-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('assets/fonts/satoshi-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('assets/fonts/satoshi-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('assets/fonts/satoshi-900.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --canvas: #FFFFFF;
  --panel: #F5F6F8;
  --ink: #23252B;
  --muted: #5F6470;
  --faint: #989DA8;
  --line: #E9EAEE;
  --accent: #2A5CE8;
  --accent-deep: #1F49C6;
  --accent-tint: #EDF2FE;
  --gold: #F0A32B; /* Review-Sterne, klassisches Bewertungs-Gold (nur Sterne, kein Text) */
  --ice: #DDE9FE;
  --mint: #DDF3E4;
  --lilac: #EAE4FA;
  --r-card: 24px;
  --r-inner: 16px;
  --shadow-sm: 0 2px 8px rgba(25, 30, 50, .07);
  --shadow-card: 0 1px 2px rgba(25, 30, 50, .05), 0 16px 40px -16px rgba(37, 55, 110, .16);
  --shadow-pill: inset 0 0 0 1px rgba(160, 165, 180, .45);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, p, ul, dl, dd, dt { margin: 0; }
h1, h2, .hero-sub, .section-head p { text-wrap: balance; }
.bento-card p, .leak p, .case-top p, .step p, .quiz-result-head p { text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }

.container { max-width: 1360px; margin: 0 auto; padding: 0 32px; }

.ic { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: -0.125em; flex-shrink: 0; }
.ic.flip { transform: scaleX(-1); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px;
  padding: 14px 26px;
  font-weight: 700; font-size: 16px; line-height: 1; white-space: nowrap;
  text-decoration: none;
  transition: background .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline-offset: 3px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -6px rgba(42, 92, 232, .5); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-primary:hover:active { transform: scale(.98); }
.btn-sm { padding: 10px 20px; font-size: 15px; }
.btn-ink {
  background: linear-gradient(180deg, #45484F 0%, #26282E 55%, #1D1F24 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -1px 0 rgba(0, 0, 0, .4),
    0 2px 8px rgba(20, 22, 30, .28);
}
.btn-ink:hover {
  background: linear-gradient(180deg, #52555E 0%, #2E3037 55%, #24262C 100%);
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(255, 255, 255, .75);
  color: var(--ink); font-weight: 500;
  box-shadow: var(--shadow-pill);
}
.btn-ghost:hover { background: #fff; box-shadow: inset 0 0 0 1px rgba(120, 126, 140, .55), var(--shadow-sm); }

/* ---------- Icon-Tiles (iOS-App-Icon-Stil) ---------- */
.tile {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 27%;
  flex-shrink: 0;
  width: 40px; height: 40px; font-size: 19px;
}
.tile-md { width: 48px; height: 48px; font-size: 24px; }
.tile-lg { width: 56px; height: 56px; font-size: 28px; }
.tile-ice {
  background: linear-gradient(160deg, #F0F5FF, #CBDDFD);
  color: var(--accent-deep);
  box-shadow: 0 10px 20px -12px rgba(42, 92, 232, .35), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.tile-mint {
  background: linear-gradient(160deg, #EFFBF3, #C4ECD2);
  color: #12824B;
  box-shadow: 0 10px 20px -12px rgba(18, 130, 75, .3), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.tile-lilac {
  background: linear-gradient(160deg, #F7F3FE, #DACDF6);
  color: #6D4FC1;
  box-shadow: 0 10px 20px -12px rgba(109, 79, 193, .3), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.tile-gray {
  background: linear-gradient(160deg, #F6F7F9, #E3E5EA);
  color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

/* ---------- Header ---------- */
.header {
  position: fixed; top: 12px; left: 0; right: 0; z-index: 40;
  padding: 0 16px;
}
.header-bar {
  max-width: 1360px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(233, 234, 238, .9);
  padding: 10px 12px 10px 20px;
  min-height: 60px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  display: inline-flex; width: 32px; height: 32px;
  border-radius: 28%;
  box-shadow: 0 0 0 1px rgba(74, 120, 255, .16), 0 0 12px rgba(74, 120, 255, .38);
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-mark.sm { width: 26px; height: 26px; box-shadow: 0 0 0 1px rgba(74, 120, 255, .14), 0 0 9px rgba(74, 120, 255, .3); }
.brand-word { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }
.header-nav { display: flex; gap: 26px; margin: 0 auto; }
.header-nav a {
  font-size: 15px; font-weight: 500; color: var(--muted);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.header-nav a:hover { color: var(--ink); }
.header-cta { margin-left: auto; }
.header-nav + .header-cta { margin-left: 0; }

/* Anker-Ziele unter der fixen Pill freistellen */
#leistungen, #ergebnisse, #ablauf, #erstgespraech { scroll-margin-top: 92px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 196px 0 116px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, rgba(35, 37, 43, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(35, 37, 43, .035) 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(58px);
  opacity: .95;
  will-change: transform;
}
.blob-ice   { width: 760px; height: 560px; left: -160px; top: -140px; background: radial-gradient(closest-side, var(--ice), transparent 74%); animation: drift-a 26s ease-in-out infinite alternate; }
.blob-lilac { width: 660px; height: 540px; right: -140px; top: -100px; background: radial-gradient(closest-side, var(--lilac), transparent 74%); animation: drift-b 31s ease-in-out infinite alternate; }
.blob-mint  { width: 780px; height: 540px; left: 30%; bottom: -240px; background: radial-gradient(closest-side, var(--mint), transparent 74%); animation: drift-c 36s ease-in-out infinite alternate; }
@keyframes drift-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(90px, 60px) scale(1.12); } }
@keyframes drift-b { from { transform: translate(0, 0) scale(1.08); } to { transform: translate(-80px, 70px) scale(.96); } }
@keyframes drift-c { from { transform: translate(0, 0) scale(1); } to { transform: translate(-70px, -50px) scale(1.15); } }

.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 72px; align-items: center;
}
.hero-copy, .hero-visual { min-width: 0; }
.hero-copy h1 {
  font-size: clamp(2.4rem, 3.6vw, 3.3rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.08;
}
.hero-sub {
  margin: 26px 0 0; max-width: 34em;
  font-size: 17.5px; color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

/* Hero-Entrance (CSS-only, läuft auch ohne JS) */
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-copy h1, .hero-sub, .hero-actions, .hero-proof, .hero-visual { animation: rise-in .7s var(--ease) both; }
.hero-sub { animation-delay: .08s; }
.hero-actions { animation-delay: .16s; }
.hero-proof { animation-delay: .24s; }
.hero-visual { animation-delay: .3s; }

/* ---------- Hero-Bewertungszeile (MOCK, gerendert aus home.js) ---------- */
.hero-proof {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin-top: 34px; min-height: 34px;
}
.avatar-stack { display: inline-flex; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; letter-spacing: .01em;
  box-shadow: 0 0 0 2.5px #fff;
}
.avatar + .avatar { margin-left: -9px; }
/* Stapel-Reihenfolge: erster Avatar liegt oben */
.avatar-stack .avatar { position: relative; }
.avatar-stack .avatar:nth-child(1) { z-index: 4; }
.avatar-stack .avatar:nth-child(2) { z-index: 3; }
.avatar-stack .avatar:nth-child(3) { z-index: 2; }
.avatar-stack .avatar:nth-child(4) { z-index: 1; }
.avatar-ice   { background: linear-gradient(160deg, #EAF1FF, #C4D8FD); color: #1F49C6; }
.avatar-mint  { background: linear-gradient(160deg, #EAF9F0, #BFE9CF); color: #0F6B3E; }
.avatar-lilac { background: linear-gradient(160deg, #F4EFFD, #D6C8F4); color: #5B3FA8; }
.avatar-gray  { background: linear-gradient(160deg, #F3F4F7, #DFE2E8); color: #44474F; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); font-size: 16px; }
.hero-proof-text { font-size: 14.5px; font-weight: 500; color: var(--muted); }
.hero-proof-text strong { color: var(--ink); font-weight: 700; }

/* ---------- Anfrage-Eingang (UI-als-Illustration) ---------- */
.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: -40px -50px;
  background: radial-gradient(60% 60% at 50% 42%, rgba(221, 233, 254, .9), transparent 75%);
  z-index: -1;
}
.inbox-card {
  background: #fff;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(233, 234, 238, .9);
  overflow: hidden;
}
.inbox-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.inbox-title { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.inbox-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: #12824B;
  background: linear-gradient(160deg, #EFFBF3, #DDF3E4);
  border-radius: 999px; padding: 4px 11px;
}
.inbox-live i { width: 7px; height: 7px; border-radius: 50%; background: #12824B; animation: live-pulse 2.4s ease-in-out infinite; }
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.inbox-rows {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 16px 6px;
  height: 296px; overflow: hidden;
}
.inbox-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--panel);
  border-radius: 14px;
  padding: 11px 14px;
  flex-shrink: 0;
}
.inbox-row > div { min-width: 0; }
.inbox-row strong { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-row em { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-row .inbox-time { margin-left: auto; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.js .inbox-row.enter { animation: row-in .55s var(--ease); }
@keyframes row-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }

.inbox-foot {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px 16px;
  border-top: 1px solid var(--line);
}
.inbox-foot-label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.inbox-bars { display: inline-flex; align-items: flex-end; gap: 4px; height: 26px; margin-left: auto; }
.inbox-bars i { width: 7px; height: var(--h); border-radius: 3px; background: #C3D6FC; }
.inbox-bars i:last-child { background: #9DBCF9; }
.inbox-foot strong { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }

.inbox-chip {
  position: absolute; left: -28px; bottom: -34px;
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(233, 234, 238, .9);
  padding: 10px 16px 10px 10px;
  transform: rotate(-2.5deg);
}
.inbox-chip .tile { width: 36px; height: 36px; font-size: 17px; }
.inbox-chip strong { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.inbox-chip em { display: block; font-style: normal; font-size: 12px; color: var(--muted); }

/* ---------- Sections (Premium-Spacing: viel Luft, keine Deko) ---------- */
.section { padding: 148px 0 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
}
.section-head p { margin-top: 16px; font-size: 16.5px; color: var(--muted); }

/* ---------- Leaks (5 Stationen) ---------- */
.leaks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.leak {
  background: var(--panel);
  border-radius: var(--r-card);
  padding: 32px 26px 30px;
}
.leak .tile { margin-bottom: 20px; }
.leak h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.leak p { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.leaks-cta {
  margin: 52px auto 0; max-width: 560px;
  text-align: center; font-size: 16.5px; color: var(--muted);
  text-wrap: balance;
}
.leaks-cta { font-weight: 500; }

/* ---------- Bento (Leistungen) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.bento-card {
  border-radius: var(--r-card);
  padding: 42px;
  background: var(--panel);
  min-width: 0;
}
.span2 { grid-column: span 2; }
.span3 { grid-column: span 3; }
.span4 { grid-column: span 4; }
.tint-ice { background: linear-gradient(150deg, #F3F7FF, var(--ice)); }
.tint-mint { background: linear-gradient(150deg, #F2FBF5, var(--mint)); }
.tint-lilac { background: linear-gradient(150deg, #F7F4FD, var(--lilac)); }
.bento-card h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.bento-card p { margin-top: 12px; font-size: 15.5px; color: var(--muted); }
.bento-card .tile { margin-bottom: 22px; }
.span4 { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.bento-copy, .bento-visual { min-width: 0; }

/* Mini-Wireframe (Website-Zelle) */
.wire {
  background: #fff; border-radius: var(--r-inner);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.wire-chrome {
  display: flex; gap: 5px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.wire-chrome i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.wire-body { padding: 20px 22px 22px; }
.wire-line { display: block; height: 12px; border-radius: 999px; background: #E3E5EA; }
.wire-line.faint { background: #EEF0F3; margin-top: 8px; }
.w-70 { width: 70%; }
.w-45 { width: 45%; }
.wire-cta {
  display: inline-block; margin-top: 16px;
  background: var(--accent); color: #fff;
  font-size: 12.5px; font-weight: 700; line-height: 1;
  border-radius: 999px; padding: 9px 16px;
  box-shadow: 0 6px 14px -6px rgba(42, 92, 232, .5);
}
.wire-cards { display: flex; gap: 10px; margin-top: 18px; }
.wire-cards i { flex: 1; height: 34px; border-radius: 10px; background: #F0F2F5; }

/* Follow-up-Timeline */
.flow { display: flex; flex-direction: column; gap: 10px; }
.flow-row {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 11px 16px;
  font-size: 14px; font-weight: 500;
}
.flow-time { width: 42px; flex-shrink: 0; font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.flow-dot { width: 7px; height: 7px; border-radius: 50%; background: #12824B; flex-shrink: 0; }
.flow-row .flow-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Ergebnisse (Cards klickbar → Detail-Modal) ---------- */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.case-card {
  background: #fff;
  border-radius: calc(var(--r-card) + 4px);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(25, 30, 50, .05), 0 28px 60px -18px rgba(37, 55, 110, .24);
}
.case-top { padding: 48px 44px 42px; }
.case-label {
  display: inline-flex; align-items: baseline; gap: 10px;
  background: rgba(255, 255, 255, .75);
  box-shadow: var(--shadow-pill);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13.5px; font-weight: 700;
  margin-bottom: 26px;
}
.case-label em { font-style: normal; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.case-top h3 { font-size: clamp(1.35rem, 1.9vw, 1.65rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.case-top p { margin-top: 14px; font-size: 15.5px; color: var(--muted); }
.case-metrics {
  display: flex; flex-wrap: wrap; gap: 28px 44px;
  padding: 32px 44px 24px;
  margin-top: auto;
}
.case-metrics dt { font-size: 13px; color: var(--muted); font-weight: 500; }
.case-metrics dd {
  margin-top: 4px;
  font-size: clamp(1.7rem, 2.3vw, 2.1rem);
  font-weight: 900; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.case-foot { padding: 0 44px 40px; }
.case-open {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel); border: 0; border-radius: 999px;
  padding: 12px 22px;
  font-size: 14.5px; font-weight: 700; color: var(--ink);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.case-open .ic { font-size: 14px; transition: transform .2s var(--ease); }
.case-card:hover .case-open { background: var(--accent-tint); color: var(--accent-deep); }
.case-card:hover .case-open .ic { transform: translateX(3px); }

/* ---------- Bewertungen (MOCK, gerendert aus home.js → MOCK_PROOF) ---------- */
.proof-stats {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 24px 0;
  margin-bottom: 80px;
}
.proof-stat { text-align: center; padding: 0 56px; }
.proof-stat + .proof-stat { border-left: 1px solid var(--line); }
.proof-stat strong {
  display: block;
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 900; letter-spacing: -0.02em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.proof-stat > span { display: block; margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--muted); }
.reviews {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}
.review {
  margin: 0;
  background: #fff;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 34px 32px 30px;
}
.review-featured {
  grid-column: span 2;
  background: linear-gradient(150deg, #F6F9FF 0%, var(--ice) 100%);
  padding: 42px 44px 36px;
}
.review blockquote { margin: 18px 0 0; font-size: 15.5px; color: var(--ink); line-height: 1.65; text-wrap: pretty; }
.review-featured blockquote { font-size: 17.5px; line-height: 1.7; }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.review figcaption .avatar { box-shadow: none; width: 40px; height: 40px; font-size: 13px; }
.review figcaption strong { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.review figcaption em { display: block; font-style: normal; font-size: 13px; color: var(--muted); margin-top: 1px; }
/* leichte Versätze für ein organisches Raster (nur Desktop) */
@media (min-width: 1101px) {
  .reviews > :nth-child(2) { margin-top: 44px; }
  .reviews > :nth-child(4) { margin-top: 28px; }
}

/* ---------- Ablauf (4 Schritte, Endlos-Choreografie) ---------- */
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 20px; align-items: start; }
.step { text-align: center; padding: 0 8px; }
.step .tile { margin-bottom: 18px; }
.step-num { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 22px; }
.step h3 { font-size: 18px; font-weight: 700; }
.step p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.step-line {
  align-self: start; width: 56px; height: 2px; border-radius: 999px;
  margin-top: 27px;
  background:
    linear-gradient(to right, var(--accent), var(--accent)) no-repeat 0 0 / 0% 100%,
    var(--line);
}

/* Zyklus 9.6s: Kachel 1 aktiv, Linie 1 füllt, Kachel 2 usw.; alle Linien leeren am Ende. */
.js .steps .tile { animation: step-pulse 9.6s var(--ease) infinite; }
.js .steps > :nth-child(3) .tile { animation-delay: 2.4s; }
.js .steps > :nth-child(5) .tile { animation-delay: 4.8s; }
.js .steps > :nth-child(7) .tile { animation-delay: 7.2s; }
@keyframes step-pulse {
  0%, 3%   { transform: none; outline: 0px solid rgba(42, 92, 232, 0); }
  8%, 18%  { transform: translateY(-6px) scale(1.08); outline: 6px solid var(--accent-tint); }
  25%, 100% { transform: none; outline: 0px solid rgba(42, 92, 232, 0); }
}
.js .steps .step-line { animation: line-fill-1 9.6s linear infinite; }
.js .steps > :nth-child(4) { animation-name: line-fill-2; }
.js .steps > :nth-child(6) { animation-name: line-fill-3; }
@keyframes line-fill-1 {
  0%, 16%  { background-size: 0% 100%, auto; }
  24%, 96% { background-size: 100% 100%, auto; }
  97.5%, 100% { background-size: 0% 100%, auto; }
}
@keyframes line-fill-2 {
  0%, 41%  { background-size: 0% 100%, auto; }
  49%, 96% { background-size: 100% 100%, auto; }
  97.5%, 100% { background-size: 0% 100%, auto; }
}
@keyframes line-fill-3 {
  0%, 66%  { background-size: 0% 100%, auto; }
  74%, 96% { background-size: 100% 100%, auto; }
  97.5%, 100% { background-size: 0% 100%, auto; }
}

/* ---------- Website-Check-Teaser ---------- */
.teaser {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  background: var(--panel);
  border-radius: calc(var(--r-card) + 4px);
  padding: 56px 64px;
}
.teaser-copy h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.teaser-copy p { margin-top: 10px; font-size: 15.5px; color: var(--muted); }
.teaser .btn { flex-shrink: 0; }

/* ---------- Quiz + Cal ---------- */
.section-quiz { padding-bottom: 32px; }
.quiz-box {
  position: relative;
  border-radius: calc(var(--r-card) + 8px);
  background: linear-gradient(to bottom, #FFFFFF 0%, #F4F8FF 45%, #E2ECFD 100%);
  padding: 104px 40px 112px;
  overflow: hidden;
}
.quiz-box::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, rgba(35, 37, 43, .03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(35, 37, 43, .03) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 45%);
}
.quiz-box .section-head { position: relative; margin-bottom: 56px; }
.quiz-card {
  position: relative;
  max-width: 720px; margin: 0 auto;
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  padding: 36px 36px 30px;
}
.quiz-progress { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.quiz-count { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.quiz-bar { display: block; height: 6px; border-radius: 999px; background: var(--panel); overflow: hidden; }
.quiz-bar i {
  display: block; height: 100%; width: 25%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #3E6DF5);
  transition: width .45s var(--ease);
}
.quiz-card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.quiz-option {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left;
  background: var(--panel);
  border: 0; border-radius: var(--r-inner);
  padding: 15px 18px;
  font-size: 16px; font-weight: 500; color: var(--ink);
  transition: background .18s var(--ease), box-shadow .18s var(--ease);
}
.quiz-option:hover { background: #EFF1F4; }
.quiz-option::before {
  content: ""; width: 20px; height: 20px; flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(160, 165, 180, .6);
  transition: box-shadow .18s var(--ease);
}
.quiz-option:hover::before { box-shadow: inset 0 0 0 1.5px var(--muted); }
.quiz-option.picked { background: var(--accent-tint); box-shadow: inset 0 0 0 1.5px var(--accent); }
.quiz-option.picked::before { box-shadow: inset 0 0 0 6px var(--accent); }
.quiz-foot { display: flex; align-items: center; min-height: 34px; margin-top: 18px; }
.quiz-back {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 0; padding: 6px 8px; margin-left: -8px;
  border-radius: 999px;
  font-size: 14.5px; font-weight: 500; color: var(--muted);
}
.quiz-back:hover { color: var(--ink); }
.quiz-back .ic { font-size: 14px; }

.quiz-result-head { text-align: center; max-width: 520px; margin: 0 auto; }
.quiz-result-head .tile { margin-bottom: 18px; }
.quiz-result-head h3 { font-size: 23px; font-weight: 700; letter-spacing: -0.015em; }
.quiz-result-head p { margin-top: 10px; font-size: 15.5px; color: var(--muted); }
.quiz-result-actions {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin-top: 26px;
}
.quiz-link {
  background: none; border: 0; padding: 4px 6px;
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  text-decoration: underline; text-underline-offset: 3px;
  border-radius: 8px;
}
.quiz-link:hover { color: var(--ink); }
.cal-embed {
  margin-top: 28px;
  background: #fff;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 8px;
  min-height: 560px;
}
#my-cal-inline-website-audit { width: 100%; height: 100%; min-height: 544px; overflow: auto; border-radius: 14px; }
.quiz-back-result { margin: 20px auto 0; display: flex; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 140px; padding: 56px 0 64px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; }
.footer-brand .brand-word { font-size: 17px; }
.footer-line { font-size: 14.5px; color: var(--muted); max-width: 420px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 6px; }
.footer-legal a { font-size: 14px; color: var(--muted); text-decoration: none; }
.footer-legal a:hover { color: var(--ink); text-decoration: underline; }
.footer-copy { font-size: 14px; color: var(--muted); }

/* ---------- Case-Detail-Modal (natives <dialog>) ---------- */
body.modal-open { overflow: hidden; }
.case-dialog {
  border: 0; padding: 0; margin: auto;
  width: min(720px, calc(100vw - 32px));
  max-height: min(86dvh, 880px);
  border-radius: 28px;
  background: var(--canvas);
  color: var(--ink);
  box-shadow: 0 40px 100px -24px rgba(15, 20, 45, .45);
  overscroll-behavior: contain;
}
.case-dialog::backdrop {
  background: rgba(20, 23, 33, .46);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.case-dialog[open] { animation: dialog-in .35s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.case-dialog-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px 16px 28px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.case-dialog-head .case-label { margin-bottom: 0; background: var(--panel); box-shadow: none; }
.case-close {
  width: 44px; height: 44px; flex-shrink: 0;
  border: 0; border-radius: 50%;
  background: var(--panel); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: background .2s var(--ease);
}
.case-close:hover { background: #E8EAEE; }
.case-dialog-content { padding: 34px 40px 44px; }
.case-dialog-content h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.2;
  text-wrap: balance;
}
.case-dialog-content section { margin-top: 38px; }
.case-dialog-content h4 {
  margin: 0 0 16px;
  font-size: 13px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted);
}
.case-dialog-content section > p { font-size: 15.5px; color: var(--muted); text-wrap: pretty; }
.case-built { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.case-built li {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--panel);
  border-radius: var(--r-inner);
  padding: 15px 18px;
}
.case-built .tile { width: 36px; height: 36px; font-size: 17px; }
.case-built strong { display: block; font-size: 15px; line-height: 1.35; }
.case-built em { display: block; font-style: normal; font-size: 14px; color: var(--muted); line-height: 1.5; margin-top: 3px; }
.case-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.case-tool {
  background: #fff;
  box-shadow: var(--shadow-pill);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 13.5px; font-weight: 500; color: var(--ink);
}
.case-metrics-modal { padding: 0; margin-top: 0; gap: 22px 40px; }
.case-dialog-cta { margin-top: 44px; display: flex; justify-content: center; }

/* ---------- Reveals (nur mit JS aktiv) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-group > * { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal-group.in > * { opacity: 1; transform: none; }
.js .reveal-group.in > :nth-child(2) { transition-delay: .09s; }
.js .reveal-group.in > :nth-child(3) { transition-delay: .18s; }
.js .reveal-group.in > :nth-child(4) { transition-delay: .27s; }
.js .reveal-group.in > :nth-child(5) { transition-delay: .36s; }
.js .reveal-group.in > :nth-child(6) { transition-delay: .45s; }
.js .reveal-group.in > :nth-child(7) { transition-delay: .54s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob { animation: none; }
  .hero-copy h1, .hero-sub, .hero-actions, .hero-proof, .hero-visual { animation: none; }
  .js .reveal, .js .reveal-group > * { opacity: 1; transform: none; transition: none; }
  .js .steps .tile, .js .steps .step-line { animation: none; }
  .js .inbox-row.enter { animation: none; }
  .inbox-live i { animation: none; }
  .case-dialog[open] { animation: none; }
  .case-card:hover { transform: none; }
  * { transition-duration: .01ms !important; }
}

/* ============================================================
   Mobile (eigenes Layout, nicht nur geschrumpft)
   ============================================================ */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 72px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-proof { justify-content: center; }
  .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .inbox-chip { left: -8px; }

  .leaks { grid-template-columns: repeat(2, 1fr); }
  .leak:last-child { grid-column: 1 / -1; }

  .span2, .span3 { grid-column: span 3; }
  .span4 { grid-column: span 6; }

  .steps { grid-template-columns: 1fr 1fr; gap: 40px 28px; }
  .step-line { display: none; }

  .reviews { grid-template-columns: 1fr 1fr; gap: 24px; }
  .proof-stats { margin-bottom: 64px; }
  .proof-stat { padding: 0 36px; }
}

@media (max-width: 900px) {
  .header-nav { display: none; }
  .header-cta { margin-left: auto; }
  .cases { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .span2, .span3, .span4 { grid-column: span 6; }
  .span4 { grid-template-columns: 1fr; gap: 28px; }
  .flow-row { align-items: flex-start; }
  .flow-row .flow-dot { margin-top: 7px; }
  .flow-row .flow-text { white-space: normal; overflow: visible; }

  .reviews { grid-template-columns: 1fr; }
  .review-featured { grid-column: span 1; }
  .proof-stats { flex-direction: column; align-items: center; gap: 28px; margin-bottom: 56px; }
  .proof-stat { padding: 0; }
  .proof-stat + .proof-stat { border-left: 0; }
}

@media (max-width: 640px) {
  .header { top: 8px; padding: 0 10px; }
  .header-bar { min-height: 54px; padding: 8px 10px 8px 16px; }
  .brand-word { font-size: 18px; }
  .header-cta { padding: 10px 16px; font-size: 14px; }

  .container { padding: 0 22px; }

  .hero { padding: 128px 0 72px; }
  .hero-copy h1 { font-size: clamp(2rem, 8.6vw, 2.5rem); }
  .desk { display: none; }
  .hero-sub { font-size: 15.5px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-proof { margin-top: 28px; }
  .hero-grid { gap: 56px; }

  .inbox-rows { height: 232px; padding: 12px 12px 4px; }
  .inbox-row strong { font-size: 13.5px; }
  .inbox-foot { padding: 12px 16px 14px; }
  .inbox-chip { bottom: -16px; padding: 8px 13px 8px 8px; }
  .inbox-chip strong { font-size: 12.5px; }
  .inbox-chip em { font-size: 11.5px; }

  .section { padding-top: 96px; }
  .section-head { margin-bottom: 44px; }

  .leaks { grid-template-columns: 1fr; gap: 14px; }
  .leak { display: grid; grid-template-columns: 48px 1fr; gap: 6px 16px; padding: 22px; }
  .leak .tile { grid-row: 1 / 3; margin-bottom: 0; }
  .leak p { margin-top: 0; }
  .leaks-cta { margin-top: 40px; }

  .bento-card { padding: 30px 26px; }

  .case-top { padding: 32px 26px 28px; }
  .case-metrics { padding: 24px 26px 18px; gap: 18px 28px; }
  .case-metrics-modal { padding: 0; }
  .case-foot { padding: 0 26px 30px; }

  .steps { grid-template-columns: 1fr; gap: 36px; }

  .teaser { flex-direction: column; text-align: center; padding: 44px 26px; }
  .teaser .btn { width: 100%; }

  .quiz-box { padding: 68px 18px 76px; border-radius: 24px; }
  .quiz-card { padding: 26px 18px 22px; border-radius: 24px; }
  .quiz-card h3 { font-size: 19px; }
  .quiz-option { font-size: 15px; padding: 14px 15px; gap: 12px; }
  .cal-embed { min-height: 520px; padding: 4px; }
  #my-cal-inline-website-audit { min-height: 512px; }

  .review { padding: 26px 22px 24px; }
  .review-featured { padding: 30px 24px 28px; }
  .review-featured blockquote { font-size: 16px; }

  /* Modal als Full-Screen-Sheet, Close bleibt oben fix erreichbar */
  .case-dialog {
    width: 100vw; max-width: 100vw;
    height: 100dvh; max-height: 100dvh;
    margin: 0; border-radius: 0;
  }
  .case-dialog-head { padding: 12px 14px 12px 20px; }
  .case-dialog-content { padding: 26px 22px 44px; }
  .case-dialog-cta .btn { width: 100%; }

  .footer { margin-top: 96px; padding: 44px 0 48px; }
}
