@tailwind components;
@tailwind utilities;

:root {
  --background: 0 0% 100%;
  --primary: 220 90% 56%;
}


/* ============================================================
   Bewerbungsbutler.ai - v4 SaaS-Template-Style
   Modeled on SaaSwiftie (Framer): floating-pill-nav, electric-blue,
   bento, tilted mockup, black-pill section labels, big wordmark footer.
   ============================================================ */

:root {
  /* === Color tokens === */
  --bg:           #F4F5F7;          /* light cool grey */
  --bg-grid:      rgba(15, 23, 42, 0.04); /* grid lines on bg */
  --bg-card:      #FFFFFF;
  --bg-soft:      #F9FAFB;
  --bg-deep:      #0A0A0A;

  --ink:          #0A0A0A;
  --ink-soft:     #1F2937;
  --muted:        #6B7280;
  --muted-soft:   #9CA3AF;

  --line:         rgba(15, 23, 42, 0.06);
  --line-strong:  rgba(15, 23, 42, 0.10);
  --line-card:    #E5E7EB;

  /* Primary - electric blue */
  --blue:         #3D5AFE;
  --blue-deep:    #2A3FCC;
  --blue-soft:    #E8ECFF;

  /* Pill accents - playful */
  --pill-yellow:  #FEF08A;
  --pill-yellow-ink: #713F12;
  --pill-pink:    #FBCFE8;
  --pill-pink-ink: #831843;
  --pill-purple:  #DDD6FE;
  --pill-purple-ink: #4C1D95;
  --pill-green:   #BBF7D0;
  --pill-green-ink: #14532D;
  --pill-orange:  #FED7AA;
  --pill-orange-ink: #7C2D12;

  --success:      #10B981;
  --warn:         #F59E0B;
  --error:        #EF4444;

  /* === Typography - Bricolage Grotesque (display) + Inter (body) === */
  --font-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, Menlo, monospace;

  /* === Spacing === */
  --s-2xs: 4px;
  --s-xs:  8px;
  --s-sm:  12px;
  --s-md:  16px;
  --s-lg:  24px;
  --s-xl:  32px;
  --s-2xl: 48px;
  --s-3xl: 64px;
  --s-4xl: 96px;
  --s-5xl: 128px;

  /* === Containers === */
  --container:        1200px;
  --container-narrow: 760px;
  --container-prose:  640px;

  /* === Radii - full pill + soft cards === */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* === Motion === */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur-fast:    160ms;
  --dur-base:    260ms;
  --dur-slow:    420ms;

  /* === Shadow === */
  --shadow-xs: 0 1px 2px rgba(15,23,42,0.04);
  --shadow-sm: 0 2px 8px rgba(15,23,42,0.05), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 8px 24px rgba(15,23,42,0.06), 0 2px 6px rgba(15,23,42,0.04);
  --shadow-lg: 0 20px 60px rgba(15,23,42,0.10), 0 4px 12px rgba(15,23,42,0.05);
  --shadow-blue: 0 8px 24px rgba(61,90,254,0.30), 0 2px 6px rgba(61,90,254,0.20);
  --shadow-mockup: 0 30px 80px rgba(15,23,42,0.12), 0 8px 24px rgba(15,23,42,0.06);

  --z-base:    1;
  --z-sticky: 50;
  --z-modal: 100;
}

/* ============================================================
   Reset & Base + grid background
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  background-image:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: 0 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern', 'liga', 'cv11';
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #FFFFFF; }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
  font-feature-settings: 'kern', 'liga';
}
h1 {
  font-size: clamp(40px, 6.5vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-weight: 700;
}
h2 {
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
}
h3 {
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.015em;
}
h4 { font-size: 18px; line-height: 1.35; font-weight: 600; }

p { color: var(--muted); font-size: 16px; line-height: 1.6; }
strong { color: var(--ink); font-weight: 600; }
em { font-style: italic; }

.lead {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  max-width: 56ch;
  color: var(--muted);
}

.mono { font-family: var(--font-mono); font-size: 0.92em; }

/* ============================================================
   Containers & Section
   ============================================================ */
.container        { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s-lg); }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--s-lg); }
.container-prose  { width: 100%; max-width: var(--container-prose); margin: 0 auto; padding: 0 var(--s-lg); }

/* Das hidden-Attribut muss staerker sein als jede Klasse. Der Browser setzt es
   nur mit einer schwachen eigenen Regel durch - sobald ein Element eine Klasse
   mit display traegt (.btn, .funnel-back), gewinnt die Klasse und das Element
   bleibt sichtbar, obwohl hidden gesetzt ist. Genau das hat im Funnel einen
   zweiten Weiter-Knopf stehen lassen und das Haekchen im Ladekreis von Anfang
   an gezeigt. */
[hidden] { display: none !important; }

section { padding: var(--s-4xl) 0; position: relative; }
@media (min-width: 768px) { section { padding: var(--s-5xl) 0; } }
/* Stimmen-Marquee blutet auf Desktop nach unten aus (kein bottom-padding);
   auf Mobile aber gleiches Padding oben wie unten. */
@media (min-width: 768px) { #stimmen { padding-bottom: 0; } }

/* ============================================================
   Section pill - black tag like "Pain Point" / "Solution"
   ============================================================ */
.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--ink);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: var(--radius-pill);
  margin-bottom: var(--s-lg);
}
/* Roter Akzent-Pill für Problem-/Warn-Sektionen. */
.section-pill-danger { background: var(--error); color: #FFFFFF; }

/* Dark section variant — light text, cards stay light */
.section-dark {
  background: #16161B;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.section-dark h2 { color: #FFFFFF; }
.section-dark .lead { color: rgba(255, 255, 255, 0.65); }
.section-dark .section-pill { background: #FFFFFF; color: var(--ink); }

/* Cards inside a dark section: dark surface, light text */
.section-dark .step-card,
.section-dark .bento-card {
  background: #212128;
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: none;
}
.section-dark .step-card:hover,
.section-dark .bento-card:hover { transform: none; }
.section-dark .step-card h3,
.section-dark .bento-card h3 { color: #FFFFFF; }
.section-dark .step-card p,
.section-dark .bento-card p { color: rgba(255, 255, 255, 0.62); }
.section-dark .step-card em { color: #FFFFFF; }
.section-dark .step-img { background-color: rgba(255, 255, 255, 0.06); }

/* Mini-mock panels inside the dark bento cards */
.section-dark .bento-mock {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}
.section-dark .bento-mock-row { border-bottom-color: rgba(255, 255, 255, 0.10); }
.section-dark .bento-mock .label { color: rgba(255, 255, 255, 0.88); }
.section-dark .bento-mock .meta { color: rgba(255, 255, 255, 0.45); }
.section-dark .bento-mock-stat-label { color: rgba(255, 255, 255, 0.45); }

/* ============================================================
   Buttons - Pill, modern SaaS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-xs);
  padding: 14px 26px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  border-radius: var(--radius-pill);
  transition: all var(--dur-fast) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
  min-height: 48px;
  text-decoration: none;
}
.btn-primary {
  background: var(--blue);
  color: #FFFFFF;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { background: var(--blue-deep); }

.btn-dark {
  background: var(--ink);
  color: #FFFFFF;
}
.btn-dark:hover { background: #1F2937; transform: translateY(-1px); }

.btn-ghost {
  background: var(--bg-card);
  color: var(--ink);
  border: 1px solid var(--line-card);
  box-shadow: var(--shadow-xs);
}
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--blue); }

.btn-large { padding: 16px 32px; font-size: 16px; min-height: 52px; }
.btn-block { width: 100%; }

/* Sticky-CTA (Ergebnisseite + Startseite) - fährt von unten hoch, sobald man
   an der Preiskarte vorbei ist (.is-visible). Nur auf Mobile (@media unten). */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-sticky);
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--line-card);
  box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.10);
  transform: translateY(125%);
  transition: transform var(--dur-base) var(--ease-out);
  pointer-events: none;
}
.sticky-cta.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}
.sticky-cta-inner { display: flex; }
.sticky-cta .btn { width: 100%; }
/* Sticky-Button mit kleiner Zusatzzeile darunter (im Button) */
.sticky-cta-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.2;
}
.sticky-cta-subline {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
}
@media (prefers-reduced-motion: reduce) {
  .sticky-cta { transition: none; }
}
/* Sticky-CTA nur auf Mobile */
@media (min-width: 720px) {
  .sticky-cta { display: none; }
}

/* Cookie-Banner - kompakte Card unten, erscheint bis Consent gesetzt ist */
.cookie-banner {
  position: fixed;
  left: var(--s-md);
  right: var(--s-md);
  bottom: var(--s-md);
  z-index: var(--z-modal);
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--s-lg);
  animation: cookie-in var(--dur-base) var(--ease-out) both;
}
@media (min-width: 560px) {
  .cookie-banner { right: auto; bottom: var(--s-lg); left: var(--s-lg); }
}
@keyframes cookie-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 var(--s-md);
}
.cookie-banner a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-actions { display: flex; gap: var(--s-sm); }
.cookie-banner-actions .btn { flex: 1; min-height: 44px; padding: 10px 16px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { animation: none; }
}

.btn-arrow::after {
  content: " →";
  display: inline;
}

/* ============================================================
   Pill - small label (avatar pill, etc)
   ============================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  padding: 6px 16px 6px 6px;
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow .2s ease, transform .2s ease;
}
a.pill:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.pill-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--pill-yellow);
  color: var(--pill-yellow-ink);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Avatar stack */
.avatars {
  display: inline-flex;
}
.avatars > * {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  margin-left: -6px;
  background-size: cover;
  background-position: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #FFFFFF;
}
.avatars > *:first-child { margin-left: 0; }
.avatar-1 { background: linear-gradient(135deg, #FEF3C7, #F59E0B); color: #78350F; }
.avatar-2 { background: linear-gradient(135deg, #DDD6FE, #8B5CF6); color: #4C1D95; }
.avatar-3 { background: linear-gradient(135deg, #BBF7D0, #14B8A6); color: #064E3B; }
.avatar-4 { background: linear-gradient(135deg, #FBCFE8, #EC4899); color: #831843; }

/* ============================================================
   Form fields
   ============================================================ */
.form-field { margin-bottom: var(--s-lg); }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--s-xs);
}
.form-input,
.form-select {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  background: var(--bg-card);
  color: var(--ink);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-md);
  transition: all var(--dur-fast) var(--ease-out);
  min-height: 52px;
  font-family: var(--font-body);
}
.form-input::placeholder { color: var(--muted-soft); }
.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.form-help { font-size: 13px; color: var(--muted); margin-top: var(--s-2xs); }
.form-error { color: var(--error); font-size: 13px; margin-top: var(--s-2xs); }
.form-field.has-error .form-input,
.form-field.has-error .form-select { border-color: var(--error); }

.form-check { display: flex; gap: var(--s-sm); align-items: flex-start; cursor: pointer; }
.form-check input[type="checkbox"] {
  width: 22px; height: 22px; flex: 0 0 22px;
  margin-top: 1px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-xs);
  appearance: none;
  background: var(--bg-card);
  cursor: pointer;
  position: relative;
  transition: all var(--dur-fast) var(--ease-out);
}
.form-check input[type="checkbox"]:hover { border-color: var(--ink); }
.form-check input[type="checkbox"]:checked {
  background: var(--blue);
  border-color: var(--blue);
}
.form-check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 4px; left: 7px;
  width: 5px; height: 10px;
  border: solid #FFFFFF;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.form-check-label { font-size: 14px; color: var(--muted); line-height: 1.5; }
.form-check-label a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   Quiz Option (single-select)
   ============================================================ */
.option {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--line-card);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  min-height: 56px;
  font-family: var(--font-body);
  box-shadow: var(--shadow-xs);
}
@media (min-width: 720px) {
  .option { padding: 18px 22px; font-size: 16px; min-height: 64px; }
}
.option:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.option.is-selected { border-color: var(--blue); background: var(--blue-soft); color: var(--ink); box-shadow: 0 0 0 3px rgba(61,90,254,0.15); }
.option .option-label { flex: 1; }
.option .option-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: var(--bg-soft);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-right: var(--s-md);
  transition: all var(--dur-fast) var(--ease-out);
}
.option:hover .option-marker { background: var(--ink); color: #FFFFFF; }
.option.is-selected .option-marker { background: var(--blue); color: #FFFFFF; }

.option-grid {
  display: grid;
  gap: var(--s-sm);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .option-grid.cols-2 { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Floating Pill Nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 16px;
  z-index: var(--z-sticky);
  padding: 0 var(--s-md);
  margin-top: var(--s-md);
}
.nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-pill);
  padding: 10px 10px 10px 24px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--blue);
  color: #FFFFFF;
  border-radius: var(--radius-xs);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-display);
}
.brand-mark::after { content: "B"; }
.nav-links {
  display: none;
  gap: var(--s-lg);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}
@media (min-width: 720px) { .nav-links { display: inline-flex; } }
.nav-links a:hover { color: var(--blue); }
.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.nav-login {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 12px 14px;
  border-radius: var(--radius-pill);
  transition: color var(--dur-fast);
  white-space: nowrap;
}
.nav-login:hover { color: var(--blue); }
.nav-cta {
  background: var(--blue);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  transition: all var(--dur-fast);
  white-space: nowrap;
  flex: none;
}
.nav-cta:hover { background: var(--blue-deep); }
@media (max-width: 420px) {
  .nav-pill { padding: 6px 6px 6px 14px; gap: var(--s-sm); }
  .brand { font-size: 15px; min-width: 0; white-space: nowrap; }
  .nav-login { display: none; }
  .nav-cta { padding: 9px 14px; font-size: 13px; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: clamp(64px, 8vw, 120px) 0 clamp(48px, 6vw, 80px);
  text-align: center;
  position: relative;
}
.hero-pill { margin-bottom: var(--s-xl); }
.hero h1 { margin: 0 auto var(--s-lg); max-width: 30ch; }
.hero .lead { margin: 0 auto var(--s-2xl); }
.hero-cta-row {
  display: inline-flex;
  gap: var(--s-md);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
@media (max-width: 640px) {
  .hero-cta-row .btn-ghost { display: none; }
}

.pill-suffix-short { display: none; }
@media (max-width: 640px) {
  .pill-suffix-long { display: none; }
  .pill-suffix-short { display: inline; }
}

/* ============================================================
   Trust strip
   ============================================================ */
.trust-strip {
  padding: var(--s-2xl) 0 var(--s-3xl);
}
.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(var(--s-lg), 4vw, var(--s-3xl));
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--muted);
  letter-spacing: -0.01em;
  opacity: 0.75;
}
.trust-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  filter: grayscale(1);
  transition: opacity var(--dur-fast), filter var(--dur-fast);
}
.trust-logo:hover { opacity: 1; filter: grayscale(0); color: var(--ink); }

/* ============================================================
   Hero Mockup - tilted product preview
   ============================================================ */
.hero-mockup-wrap {
  margin: 0 auto;
  max-width: 1120px;
  padding: 0 var(--s-lg);
  perspective: 1500px;
}
.hero-mockup {
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-xl);
  padding: 14px;
  box-shadow: var(--shadow-mockup);
  transform: rotateX(8deg) rotateY(-4deg);
  transform-origin: center top;
  transition: transform var(--dur-slow) var(--ease-out);
}
.hero-mockup:hover { transform: rotateX(4deg) rotateY(-2deg); }

/* App-mockup faux UI inside the hero card */
.app-mockup {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 480px;
}
.app-sidebar {
  background: #FFFFFF;
  border-right: 1px solid var(--line-card);
  padding: var(--s-md);
}
.app-sidebar h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-soft);
  margin: var(--s-md) 0 var(--s-xs);
}
.app-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  margin-bottom: 2px;
}
.app-nav-item.active { background: var(--blue-soft); color: var(--blue); font-weight: 500; }
.app-nav-item:hover:not(.active) { background: var(--bg-soft); }
.app-nav-item .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.5; }

.app-main {
  padding: var(--s-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
}
.app-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--s-sm);
  border-bottom: 1px solid var(--line);
}
.app-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.app-meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

.app-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-sm);
}
.app-stat {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--s-sm) var(--s-md);
}
.app-stat-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.app-stat-value { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--ink); margin-top: 2px; }
.app-stat-value.blue { color: var(--blue); }
.app-stat-value.green { color: var(--success); }

.app-list-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--s-md);
}
.app-list-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: var(--s-sm);
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.app-list-row:last-child { border-bottom: 0; }
.app-firma { color: var(--ink); font-weight: 500; }
.app-time { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
}
.status-pill.sent  { background: #DCFCE7; color: #166534; }
.status-pill.match { background: var(--blue-soft); color: var(--blue); }
.status-pill.queued { background: var(--bg-soft); color: var(--muted); }
.status-pill.draft { background: #FEF3C7; color: #78350F; }

@media (max-width: 760px) {
  .app-mockup { grid-template-columns: 1fr; min-height: auto; }
  .app-sidebar { display: none; }
  .hero-mockup { transform: none; padding: 8px; }
  .hero-mockup:hover { transform: none; }
}

/* ============================================================
   Hero Mockup — Phone variant (smartphone with job-offer inbox)
   ============================================================ */
.hero-mockup.phone-mockup {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  display: flex;
  justify-content: center;
  perspective: 1500px;
}
.phone-frame {
  position: relative;
  width: 360px;
  background: #0A0A0A;
  border-radius: 52px;
  padding: 12px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.06),
    var(--shadow-mockup),
    0 60px 100px -40px rgba(0, 0, 0, 0.45);
  transform: none;
  transform-origin: center top;
  transition: transform var(--dur-slow) var(--ease-out);
}
/* Side buttons (silent switch, volume, power) */
.phone-frame::before,
.phone-frame::after {
  content: "";
  position: absolute;
  background: #1A1A1A;
  border-radius: 2px;
}
.phone-frame::before {
  left: -3px;
  top: 110px;
  width: 3px;
  height: 36px;
  box-shadow:
    0 56px 0 #1A1A1A,
    0 116px 0 #1A1A1A;
}
.phone-frame::after {
  right: -3px;
  top: 140px;
  width: 3px;
  height: 80px;
}

.phone-island {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 3;
}

.phone-screen {
  position: relative;
  background: var(--bg-soft, #F4F4F0);
  border-radius: 42px;
  padding: 14px 16px 24px;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
}

.phone-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 18px 2px;
  height: 32px;
}
.phone-time {
  font-family: var(--font-display, system-ui);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.phone-statusbar-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.phone-signal {
  display: inline-flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 10px;
}
.phone-signal i {
  display: inline-block;
  width: 3px;
  background: var(--ink);
  border-radius: 1px;
}
.phone-signal i:nth-child(1) { height: 3px; }
.phone-signal i:nth-child(2) { height: 5px; }
.phone-signal i:nth-child(3) { height: 7px; }
.phone-signal i:nth-child(4) { height: 9px; }
.phone-wifi {
  width: 12px;
  height: 9px;
  background:
    radial-gradient(circle at 50% 100%, var(--ink) 2px, transparent 2.5px),
    radial-gradient(circle at 50% 100%, transparent 4px, var(--ink) 4.5px, var(--ink) 5.5px, transparent 6px),
    radial-gradient(circle at 50% 100%, transparent 7px, var(--ink) 7.5px, var(--ink) 8.5px, transparent 9px);
}
.phone-battery {
  position: relative;
  width: 24px;
  height: 11px;
  border: 1px solid var(--ink);
  border-radius: 3px;
}
.phone-battery::before {
  content: "";
  position: absolute;
  inset: 1.5px;
  width: 70%;
  background: var(--ink);
  border-radius: 1.5px;
}
.phone-battery::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 3px;
  width: 2px;
  height: 5px;
  background: var(--ink);
  border-radius: 0 1.5px 1.5px 0;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 8px 4px 4px;
}
.phone-title {
  font-family: var(--font-display, system-ui);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.phone-sub {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.phone-badge {
  background: var(--success, #22C55E);
  color: #FFF;
  font-family: var(--font-display, system-ui);
  font-weight: 700;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: var(--radius-pill, 999px);
}

.phone-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.phone-msg {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid var(--line-card, #E8E6DF);
  border-radius: var(--radius-md, 14px);
  padding: 10px 12px;
  align-items: flex-start;
}
.phone-msg.unread {
  background: #FFFFFF;
  border-left: 3px solid var(--blue, #1D4ED8);
  padding-left: 9px;
}
.phone-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display, system-ui);
  font-weight: 700;
  font-size: 16px;
}
.phone-msg-body { min-width: 0; }
.phone-msg-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 2px;
}
.phone-firma {
  font-family: var(--font-display, system-ui);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.phone-time-row {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  color: var(--muted);
  flex-shrink: 0;
}
.phone-msg-preview {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-soft, #3A3A36);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: var(--radius-pill, 999px);
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.phone-pill.zusage    { background: #DCFCE7; color: #166534; }
.phone-pill.interview { background: var(--blue-soft, #DBEAFE); color: var(--blue, #1D4ED8); }
.phone-pill.final     { background: #FEF3C7; color: #78350F; }

.phone-homebar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 5px;
  background: var(--ink);
  border-radius: 4px;
  opacity: 0.85;
}

@media (max-width: 760px) {
  .phone-frame { transform: none; width: min(340px, 100%); }
  .hero-mockup.phone-mockup:hover .phone-frame { transform: none; }
}

/* ============================================================
   Pain Point section - text + scattered pills
   ============================================================ */
.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  gap: var(--s-2xl);
  grid-template-columns: 1fr;
  box-shadow: var(--shadow-xs);
}
@media (min-width: 880px) { .pain-card { grid-template-columns: 1fr 1fr; align-items: center; } }
.pain-list {
  list-style: none;
  padding: 0;
  margin: var(--s-xl) 0 0;
  display: grid;
  gap: var(--s-md);
}
.pain-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--s-md);
  align-items: start;
}
.pain-list li svg { width: 22px; height: 22px; }
.pain-list li > div h4 { font-size: 16px; margin-bottom: 2px; }
.pain-list li > div p { font-size: 14px; color: var(--muted); margin: 0; }

/* Inbox mockup — overflowing rejection emails */
.inbox-mock {
  width: 100%;
  align-self: stretch;
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  font-family: var(--font-body);
}
.inbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.inbox-title { font-weight: 700; font-size: 15px; color: var(--ink); }
.inbox-count {
  font-size: 12px;
  font-weight: 600;
  color: #991B1B;
  background: #FEE2E2;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.inbox-list { list-style: none; margin: 0; padding: 0; }
.inbox-mail {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.inbox-mail:last-child { border-bottom: 0; }
.inbox-mail.unread { background: #FBFCFF; }
.inbox-ava {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}
.inbox-body { min-width: 0; flex: 1; }
.inbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}
.inbox-from { font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.inbox-mail.unread .inbox-from { font-weight: 700; color: var(--ink); }
.inbox-time { font-size: 12px; color: var(--muted-soft); flex: none; }
.inbox-subject {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inbox-mail.unread .inbox-subject { font-weight: 600; }
.inbox-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #991B1B;
  background: #FEE2E2;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  margin-left: 4px;
  vertical-align: middle;
}
.inbox-preview {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   Bento Grid - Solution
   ============================================================ */
.bento {
  display: grid;
  gap: var(--s-md);
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .bento-2x { grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(260px, auto); }
  .bento-3 { grid-template-columns: 1fr 1fr 1fr; }
  .bento-asym {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "a a b"
      "c d e";
  }
  .bento-asym > :nth-child(1) { grid-area: a; }
  .bento-asym > :nth-child(2) { grid-area: b; }
  .bento-asym > :nth-child(3) { grid-area: c; }
  .bento-asym > :nth-child(4) { grid-area: d; }
  .bento-asym > :nth-child(5) { grid-area: e; }
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-2xl);
  box-shadow: var(--shadow-xs);
  transition: all var(--dur-base) var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
}
.bento-asym .bento-card { padding: var(--s-lg); }
.bento-card:hover { box-shadow: var(--shadow-md); }
.bento-card h3 { margin: 0; }
.bento-card p { margin: 0; font-size: 14px; }

/* Mini-mockup widgets inside bento cards */
.bento-mock {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--s-md);
  font-size: 15px;
  flex: 1;
  min-height: 140px;
}
.bento-mock-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}
.bento-mock-row:last-child { border-bottom: 0; }
.bento-mock-row .ico { width: 26px; height: 26px; border-radius: 7px; flex: 0 0 26px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.ico.blue { background: var(--blue-soft); color: var(--blue); }
.ico.green { background: #DCFCE7; color: #166534; }
.ico.yellow { background: #FEF3C7; color: #78350F; }
.ico.pink { background: #FCE7F3; color: #831843; }
.bento-mock .label { color: var(--ink); font-weight: 500; font-size: 15px; }
.bento-mock .meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-left: auto; }

.bento-mock-stat {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  color: var(--blue);
  letter-spacing: -0.02em;
  font-feature-settings: 'tnum';
}
.bento-mock-stat-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.bento-mock-bar {
  display: flex;
  gap: 4px;
  margin-top: var(--s-md);
  height: 60px;
  align-items: end;
}
.bento-mock-bar > span {
  flex: 1;
  background: #FFFFFF;
  border-radius: 4px 4px 0 0;
  display: block;
}
.bento-mock-bar > span.high { background: var(--blue); }

/* Line graph (rising) inside a bento mock */
.bento-mock.bento-graph {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--s-md);
}
.bento-graph-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.bento-graph-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.bento-graph-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  color: var(--blue);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: 2px;
}
.bento-graph-period {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill, 999px);
  padding: 3px 8px;
}
.bento-graph-svg {
  width: 100%;
  height: 140px;
  display: block;
}
.bento-graph-foot {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  padding: 0 2px;
}

/* AI-vs-natural split inside a bento mock */
.bento-mock.bento-split {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: var(--s-md);
  padding: var(--s-md);
  font-size: 13px;
}
.bento-split-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.bento-split-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-pill, 999px);
  margin-bottom: 4px;
}
.bento-split-tag.bad  { background: #FEE2E2; color: #991B1B; }
.bento-split-tag.bad::before  { content: "✕"; }
.bento-split-tag.good { background: #DCFCE7; color: #166534; }
.bento-split-tag.good::before { content: "✓"; }
.bento-split-line {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-soft, #3A3A36);
}
.bento-split-col.left .bento-split-line {
  color: var(--muted);
}
.bento-split-col.left .bento-split-line s {
  text-decoration-color: #DC2626;
  text-decoration-thickness: 2px;
}
.bento-split-col.right .bento-split-line {
  color: var(--ink);
}
.bento-split-divider {
  background: var(--line);
  width: 1px;
  align-self: stretch;
}

@media (max-width: 600px) {
  .bento-mock.bento-split {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1px 1fr;
  }
  .bento-split-divider { height: 1px; width: auto; }
}

/* Auto-filled form mock (Workday-style) inside a bento mock */
.bento-mock.bento-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--s-md);
}
.bento-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.bento-form-brand {
  font-family: var(--font-display, system-ui);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.bento-form-progress {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: #166534;
  background: #DCFCE7;
  padding: 3px 8px;
  border-radius: var(--radius-pill, 999px);
  font-weight: 600;
}
.bento-form-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.bento-form-field label {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.bento-form-input {
  background: #FFFFFF;
  border: 1px solid var(--success, #22C55E);
  border-radius: var(--radius-xs, 6px);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink);
  position: relative;
}
.bento-form-check {
  color: var(--success, #22C55E);
  font-weight: 700;
  font-size: 12px;
  z-index: 1;
}

/* Hiring-Manager profile header inside a bento mock */
.bento-mock.bento-profile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--s-md);
}
.bento-profile-head {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 4px 0 12px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 4px;
}
.bento-profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--bg-soft);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.bento-profile-name {
  font-family: var(--font-display, system-ui);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.2;
}
.bento-profile-role {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.bento-profile-platform {
  width: 22px;
  height: 22px;
  background: #0A66C2;
  color: #FFFFFF;
  border-radius: 4px;
  font-family: var(--font-display, system-ui);
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   Testimonial cards
   ============================================================ */
.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-xl);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
}
.testi-card .who {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
}
.testi-card .who-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #FFFFFF;
}
.testi-card .who-meta { display: flex; flex-direction: column; }
.testi-card .who-name { font-weight: 600; font-size: 14px; color: var(--ink); }
.testi-card .who-handle { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.testi-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.testi-card .testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-soft);
}

/* Vertical-scrolling testimonial marquee (3 columns) */
.testi-marquee {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-lg);
  height: 600px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.testi-col {
  position: relative;
  overflow: hidden;
}
.testi-track {
  display: flex;
  flex-direction: column;
  gap: var(--s-lg);
  will-change: transform;
}
.testi-col-1 .testi-track { animation: testi-scroll 32s linear infinite; }
.testi-col-2 .testi-track { animation: testi-scroll 44s linear infinite; }
.testi-col-3 .testi-track { animation: testi-scroll 38s linear infinite; }
.testi-marquee:hover .testi-track { animation-play-state: paused; }

@keyframes testi-scroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .testi-track { animation: none !important; }
  .testi-marquee {
    height: auto;
    -webkit-mask-image: none;
            mask-image: none;
  }
}

@media (max-width: 760px) {
  .testi-marquee {
    grid-template-columns: 1fr;
    height: 500px;
  }
  .testi-col-2, .testi-col-3 { display: none; }
}

/* ============================================================
   FAQ - pill cards
   ============================================================ */
.faq {
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-md);
  margin-bottom: var(--s-sm);
  overflow: hidden;
  transition: all var(--dur-fast) var(--ease-out);
  box-shadow: var(--shadow-xs);
}
.faq[open] { border-color: #2563eb; }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: var(--s-md) var(--s-xl);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-right: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: var(--s-xl);
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--muted);
  font-weight: 300;
  transition: transform var(--dur-base) var(--ease-out);
  line-height: 1;
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--blue); }
.faq-body {
  padding: 0 var(--s-xl) var(--s-md);
}
.faq-body p { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ============================================================
   Pricing
   ============================================================ */
.pricing-grid {
  display: grid;
  gap: var(--s-md);
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
}
@media (min-width: 720px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-lg);
  padding: var(--s-2xl);
  box-shadow: var(--shadow-xs);
}
.price-card.highlight {
  background: var(--blue);
  color: #FFFFFF;
  border-color: var(--blue);
  box-shadow: var(--shadow-blue);
}
.price-card h4 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.price-card.highlight h4 { color: #FFFFFF; }
.price-card-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: var(--s-md);
  min-height: 42px;
}
.price-card.highlight .price-card-desc { color: rgba(255,255,255,0.85); }
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: var(--s-md);
}
.price-amount .num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-feature-settings: 'tnum';
}
.price-amount .cycle {
  font-size: 14px;
  color: var(--muted);
}
.price-card.highlight .price-amount .cycle { color: rgba(255,255,255,0.7); }
/* FOMO: durchgestrichener Regulaerpreis + Ersparnis-Pill */
.price-amount { flex-wrap: wrap; }
.price-old {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  color: rgba(255,255,255,0.55);
  margin-right: 4px;
}
.price-save {
  align-self: center;
  margin-left: 8px;
  background: #FDE047;
  color: #1A2B4A;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}
/* FOMO: Countdown */
.price-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: -2px 0 var(--s-md);
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
}
.price-countdown svg { flex: none; }
.price-countdown strong {
  color: #FFFFFF; /* sonst faerbt die globale strong-Regel die Zeit dunkel */
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  background: rgba(255,255,255,0.16);
  padding: 2px 8px;
  border-radius: 7px;
}
.price-list {
  list-style: none;
  padding: 0;
  margin: var(--s-md) 0 var(--s-lg);
  display: grid;
  gap: var(--s-xs);
}
.price-list li {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}
.price-list li svg { flex: 0 0 18px; }
.price-card.highlight .price-list li { color: rgba(255,255,255,0.95); }
.price-cta {
  display: block;
  text-align: center;
  background: var(--blue);
  color: #FFFFFF;
  padding: 14px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 14px;
  transition: all var(--dur-fast);
  text-decoration: none;
}
.price-cta:hover { background: var(--blue-deep); }
.price-card.highlight .price-cta {
  background: #FFFFFF;
  color: var(--blue);
}
.price-card.highlight .price-cta:hover { background: rgba(255,255,255,0.9); }

/* Featured / prominente Payment-Karte */
.price-card.is-featured {
  position: relative;
  overflow: visible;
  padding-top: calc(var(--s-2xl) + 10px);
  box-shadow: var(--shadow-blue), 0 24px 60px rgba(61, 90, 254, 0.28);
}
.price-card.is-featured .price-amount .num { font-size: 60px; }
.price-card.is-featured .price-cta {
  width: 100%;
  padding: 18px 24px;
  font-size: 17px;
  font-weight: 600;
}
.price-featured-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}

/* ============================================================
   Big blue CTA banner
   ============================================================ */
.cta-banner {
  background: var(--blue);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: clamp(48px, 7vw, 96px) var(--s-2xl);
  text-align: center;
  box-shadow: var(--shadow-blue);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.cta-banner > * { position: relative; }
.cta-banner h2 {
  color: #FFFFFF;
  font-size: clamp(32px, 4.5vw, 52px);
  margin-bottom: var(--s-md);
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner p {
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--s-xl);
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 17px;
}
.cta-banner .btn {
  background: #FFFFFF;
  color: var(--blue);
}
.cta-banner .btn:hover { background: rgba(255,255,255,0.92); }

/* ============================================================
   Massive wordmark footer
   ============================================================ */
.wordmark {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 14vw, 200px);
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: var(--ink);
  padding: var(--s-3xl) var(--s-md) var(--s-md);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.site-footer {
  padding: var(--s-md) 0 var(--s-2xl);
  background: transparent;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-md);
  flex-wrap: wrap;
}
.footer-meta {
  font-size: 13px;
  color: var(--muted);
}
.footer-links { display: flex; gap: var(--s-lg); flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color var(--dur-fast); }
.footer-links a:hover { color: var(--ink); }

/* ============================================================
   Quiz layout
   ============================================================ */
.quiz-wrap {
  min-height: 100vh;
  background: var(--bg);
  background-image:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 48px 48px;
  display: flex;
  flex-direction: column;
}
.quiz-header {
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
}
.quiz-progress {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  border: none;
  border-bottom: 1px solid var(--line-card);
  border-radius: 0;
  padding: 14px var(--s-lg);
  max-width: none;
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--s-md);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  box-shadow: none;
}
.quiz-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
  position: relative;
  overflow: hidden;
}
.quiz-progress-bar > span {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: var(--radius-pill);
  transition: width var(--dur-base) var(--ease-out);
}
.quiz-progress-count { display: none; }
@media (max-width: 719px) {
  .quiz-progress-label { display: none; }
  .quiz-progress-count { display: inline; white-space: nowrap; }
}

.quiz-main { flex: 1; padding: 72px 0 var(--s-2xl); }
@media (min-width: 720px) {
  .quiz-main { padding: 104px 0 var(--s-4xl); }
}
/* Stack all step sections in one grid cell so the opacity crossfade
   overlaps instead of pushing the layout (no height jump on step change). */
.quiz-steps { display: grid; align-items: start; }
.quiz-steps > section { grid-area: 1 / 1; padding-bottom: 0; }
/* Back link sits directly under the options, left-aligned with the cards */
.quiz-backbar { margin-top: var(--s-md); }
.quiz-backbar .quiz-back { margin-left: -16px; }
.quiz-step-num {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--s-sm);
}
.quiz-question {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--s-lg);
  max-width: 24ch;
}
@media (min-width: 720px) {
  .quiz-question { margin-bottom: var(--s-2xl); }
}

.quiz-footer {
  padding: var(--s-md);
  position: sticky;
  bottom: 0;
  z-index: var(--z-sticky);
}
.quiz-footer-row {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-md);
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.quiz-back {
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  padding: 8px 16px;
  background: none;
  border: 0;
  border-radius: var(--radius-pill);
}
.quiz-back:hover { color: var(--ink); background: var(--bg-soft); }

/* ============================================================
   Score / Outcome
   ============================================================ */
.score-bucket {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--s-md);
}
.outcome-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: outcome;
  display: grid;
  gap: var(--s-md);
}
.outcome-list li {
  counter-increment: outcome;
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-md);
  padding: var(--s-lg) var(--s-xl);
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--s-md);
  align-items: center;
  box-shadow: var(--shadow-xs);
  transition: all var(--dur-base) var(--ease-out);
}
.outcome-list li:hover { box-shadow: var(--shadow-sm); }
.outcome-list li::before {
  content: counter(outcome, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--blue);
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
}
.outcome-list li > span {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 500;
}

/* ============================================================
   Reveal stagger animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-1 { transition-delay: 80ms; }
.reveal-2 { transition-delay: 200ms; }
.reveal-3 { transition-delay: 360ms; }
.reveal-4 { transition-delay: 500ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Utility */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-sm { margin-top: var(--s-sm); }
.mt-md { margin-top: var(--s-md); }
.mt-lg { margin-top: var(--s-lg); }
.mt-xl { margin-top: var(--s-xl); }
.mt-2xl { margin-top: var(--s-2xl); }
.mt-3xl { margin-top: var(--s-3xl); }
.mb-md { margin-bottom: var(--s-md); }
.mb-lg { margin-bottom: var(--s-lg); }
.mb-xl { margin-bottom: var(--s-xl); }
.mb-2xl { margin-bottom: var(--s-2xl); }

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

/* ============================================================
   Funnel (React per-URL steps) — distraction-free
   ============================================================ */
.funnel {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  background-image:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 48px 48px;
}
.funnel-bar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: #FFFFFF;
  border-bottom: 1px solid var(--line-card);
}
.funnel-bar-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-md);
  padding: 14px var(--s-lg);
}
.funnel-back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 6px 4px;
  margin-left: -4px;
  cursor: pointer;
  border-radius: var(--radius-xs);
}
.funnel-back:hover { color: var(--blue); }
.funnel-brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
}
.funnel-brand .brand-mark { flex: none; }
.funnel-step-count {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}
.funnel-progress-track {
  height: 3px;
  background: transparent;
  overflow: hidden;
}
.funnel-progress-fill {
  display: block;
  height: 100%;
  background: var(--blue);
  transition: width var(--dur-base) var(--ease-out);
}
.funnel-progress-fill.is-complete { background: var(--success); }
.funnel-bar-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
  padding: 14px var(--s-lg);
}

/* "Dauer: ~2 Minuten" zentriert unter dem ersten Step. */
.funnel-duration {
  text-align: center;
  margin-top: var(--s-xl);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Trust block am Fuß des ersten Steps (Vertrauen vor dem ersten Klick aufbauen).
   Sitzt als Sibling der funnel-body und wird durch deren flex:1 automatisch ans
   untere Viewport-Ende gedrückt. Full-bleed graues Band. */
.funnel-trust-wrap {
  background: #FAFAFA;
  border-top: 1px solid var(--line-card);
  padding: 24px 0;
}
.funnel-trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
/* Desktop: drei Trust-Punkte nebeneinander in einer Reihe statt gestapelt. */
@media (min-width: 720px) {
  .funnel-trust {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-xl);
  }
}
.funnel-trust li {
  display: flex;
  align-items: center;
  gap: var(--s-md);
  font-size: 14px;
  color: var(--ink-soft);
}
.funnel-trust-icon {
  flex: none;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: var(--radius-md);
}
/* Pflicht-Rechtslinks am Fuss jeder Funnel-Route (Marketing-Footer ist hier
   per ChromeGate ausgeblendet). Schlank, dezent, full-bleed. */
.funnel-legal {
  background: #FAFAFA;
  border-top: 1px solid var(--line-card);
  padding: var(--s-md) 0;
}
.funnel-legal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
  flex-wrap: wrap;
}
.funnel-legal-meta {
  font-size: 13px;
  color: var(--muted);
}
.funnel-legal-links {
  display: flex;
  gap: var(--s-lg);
  flex-wrap: wrap;
}
.funnel-legal-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color var(--dur-fast);
}
.funnel-legal-links a:hover { color: var(--ink); }

.funnel-body {
  flex: 1;
  padding: var(--s-2xl) 0 var(--s-4xl);
}
@media (min-width: 720px) {
  .funnel-body { padding: var(--s-4xl) 0 var(--s-5xl); }
}
.funnel-fade { animation: funnel-fade var(--dur-base) var(--ease-out); }
@keyframes funnel-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .funnel-fade { animation: none; }
}

/* ---------- Loading / Fake-Suche Step ---------- */
.loading-step {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  padding: var(--s-2xl) 0;
}
.loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-md);
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: var(--s-2xl) var(--s-xl);
}
.loading-spinner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 4px solid var(--blue-soft);
  border-top-color: var(--blue);
  animation: spin 0.8s linear infinite;
}
.loading-spinner.is-done {
  border: none;
  animation: none;
  background: #DCFCE7;
  color: #15803D;
  display: flex;
  align-items: center;
  justify-content: center;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.loading-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 2vw, 19px);
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 26ch;
}
.loading-sub {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Kontakt-Formular im weißen Kasten ---------- */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-lg);
  padding: var(--s-xl);
  box-shadow: var(--shadow-xs);
}
.contact-card .form-field { margin-bottom: var(--s-md); }
.contact-badge {
  display: inline-flex;
  width: auto;
  align-items: center;
  gap: 8px;
  background: #DCFCE7;
  color: #15803D;
  font-size: 12px;
  font-weight: 400;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--s-md);
}
.contact-badge svg { flex: none; }
.contact-secure {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: var(--s-md);
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
.contact-secure svg { flex: none; margin-top: 1px; }
.contact-question {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: var(--s-sm);
}
@media (min-width: 720px) {
  .contact-question { margin-bottom: var(--s-sm); }
}

/* ---------- City autocomplete ---------- */
.city-field { position: relative; }
.city-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 30;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
}
.city-suggestion {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--ink);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.city-suggestion:hover,
.city-suggestion.is-active { background: var(--blue-soft); color: var(--blue); }

/* ---------- Stunden-Slider (Teilzeit, inline auf dem umfang-Step) ---------- */
.hours-slider {
  margin-top: var(--s-md);
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-lg);
  padding: var(--s-lg) var(--s-xl);
  box-shadow: var(--shadow-xs);
  animation: funnel-fade var(--dur-base) var(--ease-out);
}
.hours-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--s-md);
}
.hours-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--blue);
}
.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--blue-soft);
  outline: none;
  cursor: pointer;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid #FFFFFF;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.range::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid #FFFFFF;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.hours-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Job match cards ---------- */
.match-list { display: grid; gap: var(--s-md); }
.match-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-lg);
  padding: var(--s-lg) var(--s-xl);
  box-shadow: var(--shadow-xs);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-md);
  align-items: center;
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.match-card:hover { box-shadow: var(--shadow-sm); }

/* Ergebnis-Liste (Check24-Stil) */
.match-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: var(--s-xl); }
.matches-count {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  margin-bottom: 2px;
}
.matches-count-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success); flex: none;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}
/* Empfohlene Stelle: blau umrandet, leicht getoent, Stern-Badge oben links */
.match-card.is-recommended {
  border: 2px solid var(--blue);
  background: linear-gradient(180deg, rgba(36,130,253,0.05), #FFFFFF 60%);
  box-shadow: 0 6px 20px -8px rgba(36,130,253,0.35);
  margin-top: 12px; /* Platz fuer das ueberstehende Badge */
}
.match-recommend-badge {
  position: absolute;
  top: -11px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--blue);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  box-shadow: 0 3px 8px -2px rgba(36,130,253,0.5);
  white-space: nowrap;
}
.match-recommend-badge svg { flex: none; }
/* Teaser: es warten noch mehr Stellen */
.match-more {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  padding: 12px;
  border: 1px dashed rgba(36,130,253,0.4);
  border-radius: var(--radius-lg);
  background: rgba(36,130,253,0.04);
}
.match-card.is-blurred {
  filter: blur(5px);
  opacity: 0.85;
  pointer-events: none;
  user-select: none;
}
.match-card.has-logo { grid-template-columns: auto 1fr auto; }
/* Kachel: immer weiss mit dezenter Kontur; Monogramm = schwarzer Buchstabe. */
.match-logo {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid var(--line-card);
  flex: none;
  overflow: hidden;
}
/* Echtes Logo: leicht verschwommen (verdeckt bis zum Start). Das Initial liegt
   DARUNTER - laedt das Bild nicht (onError -> display:none), bleibt die Kachel
   nicht leer. */
.match-logo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  background: #FFFFFF;
  filter: blur(2px);
}
/* Firmenname nur anhauchen - als Wort erkennbar, nicht lesbar */
.match-company-blur { filter: blur(2.5px); user-select: none; }
.match-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.2;
}
.match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.match-salary { font-family: var(--font-mono); font-size: 13px; color: var(--ink); }
.match-score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--success);
  line-height: 1;
}
.match-score-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

/* ---------- Ergebnis-Seite: Erfolgsmoment ---------- */
/* Headline eine Stufe kleiner als das globale h1 (76px war auf Desktop zu wuchtig) */
.ergebnis-h1 { font-size: clamp(34px, 4.5vw, 52px); }

/* Gestaffeltes Einfaden: Element bekommt .reveal + style --reveal-i (0,1,2...) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    animation: reveal-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--reveal-i, 0) * 140ms);
  }
  @keyframes reveal-up {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}

/* Naechste Schritte: 3 Karten unter der Job-Vorschau (exakt 48px Abstand oben/unten).
   padding 0 uebersteuert das globale section-Padding (--s-5xl), das hier die
   Riesen-Luecken verursachte. */
.next-steps-section {
  padding: 0;
  margin: 48px 0 72px; /* unten etwas mehr Luft vor dem Pricing-Block */
}
.next-steps-title {
  font-size: 22px;
  text-align: center;
  margin: 0 auto var(--s-lg);
}
.next-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-md);
  margin-bottom: 0;
}
.next-step-card {
  background: #ffffff;
  border: 1px solid var(--line-card);
  border-radius: var(--radius-lg);
  padding: var(--s-lg);
}
.next-step-num {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: var(--s-sm);
}
.next-step-card h3 {
  font-size: 17px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.next-step-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
@media (max-width: 719px) {
  .next-steps { grid-template-columns: 1fr; }
}

/* ---------- Matches als Stapel (oberste scharf, Rest erahnbar) ---------- */
.match-pile {
  position: relative;
  margin-bottom: var(--s-lg);
}
.match-pile-card {
  transform-origin: top center;
  transition: transform var(--dur-base) var(--ease-out);
}
.match-pile-card:first-child .match-card {
  box-shadow: var(--shadow-md);
}
.match-pile-card:not(:first-child) .match-card {
  pointer-events: none;
}

/* ---------- Locked matches als Deck/Stapel ---------- */
.locked-deck { margin-top: var(--s-lg); }
.locked-deck-stack {
  position: relative;
  height: 116px;
  margin-bottom: var(--s-md);
}
.locked-deck-card {
  position: absolute;
  left: 0;
  right: 0;
  transform-origin: top center;
  pointer-events: none;
}
.locked-deck > .locked-card {
  position: relative;
  z-index: 20;
  margin: 0 auto;
}

/* ---------- Paywall / locked stack ---------- */
.locked-stack { position: relative; display: grid; gap: var(--s-md); }
.locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-md);
  background: linear-gradient(
    180deg,
    rgba(244, 245, 247, 0) 0%,
    rgba(244, 245, 247, 0.55) 35%,
    var(--bg) 100%
  );
}
.locked-card {
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--s-2xl);
  text-align: center;
  max-width: 420px;
  width: 100%;
}

@media (max-width: 520px) {
  .match-card { grid-template-columns: 1fr; }
  .match-card.has-logo { grid-template-columns: auto 1fr; }
  .match-card > div:last-child { grid-column: 1 / -1; text-align: left; display: flex; gap: 8px; align-items: baseline; }
  .match-score-label { margin-top: 0; }
}

/* ============================================================
   Admin / Funnel Analytics Dashboard (/admin)
   ============================================================ */
.adm {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 20px 80px;
  color: var(--ink);
}
.adm-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.adm-h1 { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; margin: 2px 0 0; }
.adm-h2 { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin: 0 0 4px; }
.adm-muted { color: var(--muted); }
.adm-sm { font-size: 13px; }
.adm-xs { font-size: 11px; }
.adm-mono { font-family: var(--font-mono); }
.adm-err { color: var(--error); font-size: 13px; margin-top: 8px; }
.adm-warn { color: #92400E; background: #FEF3C7; border-radius: 8px; padding: 8px 12px; font-size: 12px; margin-top: 12px; }

.adm-top { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.adm-top .adm-h1 { flex: 1; }

.adm-card {
  background: #FFFFFF;
  border: 1px solid var(--line-card);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
}

.adm-input {
  font: inherit; font-size: 14px;
  padding: 8px 12px;
  border: 1px solid var(--line-card);
  border-radius: 8px;
  background: #FFFFFF; color: var(--ink);
}
.adm-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.adm-date { padding: 7px 10px; }
.adm-select { cursor: pointer; }

.adm-btn {
  font: inherit; font-size: 13px; font-weight: 500;
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  background: #FFFFFF; color: var(--ink); border: 1px solid var(--line-card);
}
.adm-btn:hover { background: var(--bg-soft); }
.adm-btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.adm-btn-primary:hover { background: var(--blue-deep); }
.adm-btn-danger { background: #FEF2F2; color: #DC2626; border-color: #FCA5A5; }
.adm-btn-danger:hover { background: #DC2626; color: #fff; border-color: #DC2626; }
.adm-btn-danger:disabled { opacity: 0.55; cursor: default; }
.adm-modal-actions { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-card); display: flex; justify-content: flex-end; }

/* Login */
.adm-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--bg); }
.adm-login-card { width: 100%; max-width: 340px; background: #fff; border: 1px solid var(--line-card); border-radius: 16px; padding: 28px; box-shadow: var(--shadow-md); }
.adm-login-card .adm-input { width: 100%; }

/* Filter */
.adm-filter { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.adm-filter label { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.adm-presets { display: inline-flex; gap: 6px; }
.adm-chip { font: inherit; font-size: 12px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-card); background: #fff; cursor: pointer; }
.adm-chip:hover { background: var(--bg-soft); border-color: var(--blue); }

/* KPIs */
.adm-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
@media (min-width: 720px) { .adm-kpis { grid-template-columns: repeat(5, 1fr); } }
.adm-kpi { margin-bottom: 0; padding: 16px; }
.adm-kpi-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.adm-kpi-v { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: -0.02em; margin-top: 4px; }
.adm-kpi-sub { font-size: 11px; color: var(--muted-soft); margin-top: 2px; }

/* CR chart + legend + changelog */
.adm-chart { width: 100%; overflow: hidden; }
.adm-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; font-size: 11px; color: var(--muted); }
.adm-legend span { display: inline-flex; align-items: center; gap: 5px; }
.adm-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.adm-cl-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.adm-cl-list { margin-top: 14px; display: grid; gap: 8px; }
.adm-cl-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); }
.adm-cl-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; margin-top: 5px; }
.adm-cl-title { font-size: 14px; font-weight: 500; color: var(--ink); }
.adm-x { font: inherit; font-size: 18px; line-height: 1; color: var(--muted-soft); background: none; border: 0; cursor: pointer; padding: 0 4px; }
.adm-x:hover { color: var(--error); }

/* Funnel */
.adm-funnel { display: grid; gap: 7px; }
.adm-funnel-row { display: grid; grid-template-columns: 150px 1fr 80px; gap: 12px; align-items: center; }
.adm-funnel-label { font-size: 13px; color: var(--ink-soft); }
.adm-funnel-bar { background: var(--bg-soft); border-radius: 6px; height: 26px; overflow: hidden; }
.adm-funnel-bar > span { display: flex; align-items: center; height: 100%; padding-left: 8px; background: var(--blue); color: #fff; font-size: 11px; font-family: var(--font-mono); white-space: nowrap; border-radius: 6px; min-width: 0; }
.adm-funnel-pct { font-size: 12px; color: var(--muted); text-align: right; font-family: var(--font-mono); }
@media (max-width: 560px) { .adm-funnel-row { grid-template-columns: 110px 1fr 56px; } .adm-funnel-label { font-size: 11px; } }

/* Cookie bars */
.adm-cookie-row { display: grid; grid-template-columns: 160px 1fr 90px; gap: 12px; align-items: center; margin-bottom: 7px; }
.adm-cookie-label { font-size: 13px; color: var(--ink-soft); }
.adm-cookie-track { background: var(--bg-soft); border-radius: 6px; height: 18px; overflow: hidden; }
.adm-cookie-track > span { display: block; height: 100%; border-radius: 6px; }
.adm-cookie-n { font-size: 12px; font-family: var(--font-mono); color: var(--muted); text-align: right; }
@media (max-width: 560px) { .adm-cookie-row { grid-template-columns: 120px 1fr 72px; } }

/* Answer distribution */
.adm-dist { margin-bottom: 18px; }
.adm-dist-head { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.adm-dist-row { display: grid; grid-template-columns: 1fr 1.4fr 90px; gap: 10px; align-items: center; margin-bottom: 4px; }
.adm-dist-label { font-size: 12px; color: var(--ink-soft); }
.adm-dist-bar { background: var(--bg-soft); border-radius: 5px; height: 14px; overflow: hidden; }
.adm-dist-bar > span { display: block; height: 100%; background: var(--blue); border-radius: 5px; }
.adm-dist-n { font-size: 11px; font-family: var(--font-mono); color: var(--muted); text-align: right; }

/* Table */
.adm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.adm-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 11px; padding: 6px 10px; border-bottom: 1px solid var(--line-card); }
.adm-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); }
.adm-table td:not(:first-child), .adm-table th:not(:first-child) { text-align: right; }
/* Lead-Tabelle: alles linksbündig + nicht umbrechen */
.adm-leads td, .adm-leads th { text-align: left !important; white-space: nowrap; font-size: 13px; }
.adm-leads td { color: var(--ink-soft); }
.adm-row { cursor: pointer; }
.adm-row:hover td { background: var(--bg-soft); }

/* Lead-Detail-Modal */
.adm-modal-backdrop {
  position: fixed; inset: 0; z-index: var(--z-modal, 100);
  background: rgba(10, 10, 14, 0.5);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 5vh 16px; overflow-y: auto;
}
.adm-modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 560px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.adm-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.adm-modal-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.adm-modal-body { padding: 18px 22px 24px; }
.adm-modal-section { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 20px 0 8px; }
.adm-modal-section:first-child { margin-top: 0; }
.adm-kv { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.adm-kv > div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.adm-kv dt { font-size: 13px; color: var(--muted); }
.adm-kv dd { margin: 0; font-size: 13px; color: var(--ink); word-break: break-word; }

/* ============================================================
   Danke-Seite (/danke) - Next Steps + CV-Upload + Trust
   ============================================================ */
.next-steps { display: grid; gap: var(--s-md); margin-bottom: var(--s-2xl); }
.next-step {
  display: grid; grid-template-columns: 40px 1fr; gap: var(--s-md);
  background: var(--bg-card); border: 1px solid var(--line-card);
  border-radius: var(--radius-lg); padding: var(--s-lg) var(--s-xl); box-shadow: var(--shadow-xs);
}
.next-step-num {
  width: 32px; height: 32px; border-radius: var(--radius-xs);
  background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
}
.next-step-body h3 { margin: 0 0 4px; font-size: 18px; }
.next-step-body p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }

.cv-upload { margin-top: var(--s-md); }
.cv-drop {
  display: inline-flex; align-items: center; gap: 8px;
  width: 100%; justify-content: center;
  padding: 14px 18px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-md);
  background: var(--bg-soft); color: var(--ink); font-weight: 500; font-size: 14px; cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.cv-drop:hover:not(:disabled) { border-color: var(--blue); background: var(--blue-soft); }
.cv-drop:disabled { opacity: 0.7; cursor: default; }
.cv-drop.is-done { border-style: solid; border-color: var(--success); background: #ECFDF5; color: #166534; }
.cv-replace { margin-top: 8px; background: none; border: 0; color: var(--blue); font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.cv-error { color: var(--error); font-size: 13px; margin-top: 6px; }
.cv-hint { font-size: 12px; color: var(--muted-soft); margin-top: 8px; }

.danke-trust { border-top: 1px solid var(--line); padding-top: var(--s-2xl); }
.danke-trust-row {
  display: flex; flex-wrap: wrap; gap: var(--s-md) var(--s-lg); justify-content: center;
  font-size: 13px; color: var(--muted); margin-bottom: var(--s-2xl);
}
.danke-testi { display: grid; gap: var(--s-md); grid-template-columns: 1fr; }
@media (min-width: 720px) { .danke-testi { grid-template-columns: repeat(3, 1fr); } }
.danke-testi-card { background: var(--bg-card); border: 1px solid var(--line-card); border-radius: var(--radius-lg); padding: var(--s-lg); }
.danke-stars { color: #F59E0B; font-size: 14px; letter-spacing: 2px; margin-bottom: var(--s-sm); }
.danke-testi-card p { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 var(--s-sm); }
.danke-testi-name { font-size: 12px; font-weight: 600; color: var(--ink); }

/* === Wissen (Blog): Grid-Index, Artikel mit Rail/TOC/FAQ, Footer-Ausbau ======== */
html { scroll-behavior: smooth; }

.article-page { padding: calc(var(--s-2xl) + 64px) 0 var(--s-2xl); }
.article-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.article-eyebrow a { color: var(--blue); }
.article-index-head { margin-bottom: var(--s-xl); }
.article-index-head h1 { margin: 8px 0 10px; }
.article-index-sub { color: var(--muted); font-size: 17px; max-width: 560px; }

/* --- Index-Grid --- */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-md);
}
@media (min-width: 640px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .article-grid { grid-template-columns: repeat(3, 1fr); } }

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.article-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}
.article-card-image {
  width: 100%;
  height: auto; /* schlaegt das height-Attribut, sonst ignoriert WebKit die aspect-ratio */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line-card);
}
.article-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 22px 22px;
  flex: 1;
}
.article-card h2 { font-size: 19px; line-height: 1.35; margin: 0; }
.article-card-excerpt { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0; }

.article-tag {
  display: inline-block;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 999px;
}

.article-author { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 6px; }
.article-author-avatar { width: 36px; height: 36px; border-radius: 50%; display: block; }
.article-author-meta { display: flex; flex-direction: column; line-height: 1.35; }
.article-author-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.article-author-meta time { font-size: 12.5px; color: var(--muted-soft); }

/* --- Artikel-Layout: Hauptspalte + rechte Rail --- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-xl);
}
@media (min-width: 1024px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 280px; } /* Rail-Item streckt auf volle Hoehe -> sticky-Kind hat Klebe-Raum */
}
.article-main { max-width: 720px; }

.article-hero {
  width: 100%;
  height: auto; /* schlaegt das height-Attribut, sonst ignoriert WebKit die aspect-ratio */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--line-card);
  margin: 14px 0 20px;
}
.article-head h1 { margin: 0 0 14px; }
.article-head-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.article-head-actions { display: flex; align-items: center; gap: 12px; }
@media (min-width: 1024px) { .article-head-actions { display: none; } } /* Desktop: lebt in der Rail */

.article-rail { display: none; }
@media (min-width: 1024px) { .article-rail { display: block; } }
.article-rail-sticky {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.article-rail-block { width: 100%; }
.article-rail-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-soft);
  margin: 0 0 8px;
}
.article-toc {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  border-radius: 14px;
  padding: 14px 16px;
}
.article-toc a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  padding: 5px 0 5px 12px;
  border-left: 2px solid var(--line-strong);
  line-height: 1.4;
}
.article-toc a:hover { color: var(--blue); border-left-color: var(--blue); }

.share-bar { display: flex; gap: 8px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.share-btn:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.share-btn svg { width: 16px; height: 16px; }

/* --- Artikel-Text --- */
.article-prose { font-size: 17px; line-height: 1.75; color: var(--ink-soft); }
.article-prose h2 { font-size: 25px; margin: 36px 0 14px; scroll-margin-top: 96px; }
.article-prose h3 { font-size: 19px; margin: 28px 0 10px; scroll-margin-top: 96px; }
.article-prose p { margin: 0 0 18px; }
.article-prose ul, .article-prose ol { margin: 0 0 18px; padding-left: 24px; }
.article-prose li { margin-bottom: 8px; }
.article-prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article-prose strong { color: var(--ink); }
.article-prose blockquote {
  margin: 0 0 18px;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--blue);
  color: var(--muted);
}
.article-prose img { max-width: 100%; border-radius: 14px; }

/* --- CTA (Schluss + eingestreut) --- */
.article-cta {
  margin: var(--s-xl) 0;
  background: var(--blue);
  color: #fff;
  border-radius: 18px;
  padding: 32px;
}
.article-cta-inline { margin: 28px 0; padding: 24px 28px; }
.article-cta h2 { color: #fff; font-size: 22px; margin: 0 0 8px; }
.article-cta-inline h2 { font-size: 19px; }
.article-cta p { color: rgba(255, 255, 255, 0.85); font-size: 15px; line-height: 1.6; margin: 0 0 18px; max-width: 480px; }
.article-cta-inline p { font-size: 14px; margin-bottom: 14px; }
.article-cta-button {
  display: inline-block;
  background: #fff;
  color: var(--blue-deep);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
}
.article-cta-inline .article-cta-button { padding: 10px 18px; font-size: 14px; }
.article-cta-button:hover { background: var(--blue-soft); }

/* --- Callouts + Tabellen im Artikel --- */
.article-callout {
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.6;
}
.article-callout p { margin: 0; }
.article-callout-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 6px !important;
}
.article-callout-tip { background: var(--blue-soft); }
.article-callout-tip .article-callout-label { color: var(--blue-deep); }
.article-callout-info { background: var(--bg-soft); border: 1px solid var(--line-card); }
.article-callout-info .article-callout-label { color: var(--muted); }
.article-callout-warn { background: #FEF3C7; }
.article-callout-warn .article-callout-label { color: #92400E; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-card);
  border-radius: 14px;
  margin: 0 0 18px;
  background: var(--bg-card);
}
.article-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.article-prose th {
  background: var(--bg-soft);
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
}
.article-prose th, .article-prose td { padding: 11px 16px; border-bottom: 1px solid var(--line-card); vertical-align: top; }
.article-prose tbody tr:last-child td { border-bottom: none; }

/* --- FAQ unter jedem Artikel --- */
.wissen-faq { margin-top: var(--s-xl); }
.wissen-faq h2 { font-size: 24px; margin: 0 0 16px; }
.wissen-faq-list { display: flex; flex-direction: column; gap: 10px; }
.wissen-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  border-radius: 14px;
  padding: 0 20px;
}
.wissen-faq-item[open] { border-color: var(--line-strong); }
.wissen-faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
  padding: 16px 0;
  position: relative;
  padding-right: 28px;
}
.wissen-faq-item summary::-webkit-details-marker { display: none; }
.wissen-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 500;
  color: var(--muted-soft);
}
.wissen-faq-item[open] summary::after { content: "\2212"; }
.wissen-faq-item p { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0 0 16px; }

/* --- Footer-Spalten (Ausbau): Brand + Artikel + Rechtliches, darunter Meta-Zeile --- */
.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-lg);
  padding-bottom: var(--s-lg);
  margin-bottom: var(--s-md);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) { .footer-cols { grid-template-columns: 1.4fr 1.2fr 0.8fr; } }
.footer-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-claim { color: var(--muted); font-size: 14px; max-width: 300px; margin: 6px 0 0; }
.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-soft);
  margin: 0 0 2px;
}
.footer-col a { font-size: 14px; color: var(--ink-soft); }
.footer-col a:hover { color: var(--blue); }
.footer-article { display: flex; flex-direction: column; gap: 1px; }
.footer-article-title { font-size: 14px; font-weight: 500; }
.footer-article-date { font-size: 12px; color: var(--muted-soft); }
.footer-article-all { font-weight: 600; color: var(--blue) !important; }
.footer-bottom { align-items: center; }
.article-author-role { color: var(--muted-soft); font-weight: 500; }

/* --- Sprachumschalter ---
   Stand in der Next-Seite als inline <style> in SiteShell.tsx und fehlt
   deshalb in globals.css. Hier nachgezogen, damit das Aussehen stimmt. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lang-switch a { opacity: 0.6; }
.lang-switch a.is-active { opacity: 1; font-weight: 600; }
.lang-switch a:hover { opacity: 1; }


/* --- Tailwind-Utilities der Landing ---
   globals.css enthaelt nur '@tailwind utilities'; die Regeln entstehen
   bei Next erst beim Bauen und fehlen deshalb in der Kopie. Hier exakt
   die kompilierten Definitionen aus dem Live-CSS uebernommen. */
.-mx-4{margin-left:-1rem;margin-right:-1rem}
.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}
.flex{display:flex}
.flex-col{flex-direction:column}
.flex-row{flex-direction:row}
.font-medium{font-weight:500}
.gap-2{gap:.5rem}
.gap-6{gap:1.5rem}
.h-10{height:2.5rem}
.hidden{display:none}
.items-center{align-items:center}
.leading-5{line-height:1.25rem}
.max-w-5xl{max-width:64rem}
.max-w-xs{max-width:20rem}
.mt-5{margin-top:1.25rem}
.mx-auto{margin-left:auto;margin-right:auto}
.opacity-60{opacity:.6}
.overflow-hidden{overflow:hidden}
.p-10{padding:2.5rem}
.pb-6{padding-bottom:1.5rem}
.pr-6{padding-right:1.5rem}
.rounded-3xl{border-radius:1.5rem}
.rounded-full{border-radius:9999px}
.shadow-lg{--tw-shadow:0 10px 15px -3px rgb(0 0 0/0.1),0 4px 6px -4px rgb(0 0 0/0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}
.tracking-tight{letter-spacing:-.025em}
.w-10{width:2.5rem}
.w-full{width:100%}
.w-max{width:-moz-max-content;width:max-content}

/* Responsive Tailwind-Varianten der Landing (gleiche Quelle: Live-CSS) */
@media (min-width:768px){.md\:grid{display:grid}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:hidden{display:none}}
@media (min-width:1024px){.lg\:block{display:block}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* --- Stimmen-Karussell ---------------------------------------------------
   Ersatz fuer die framer-motion-Komponente TestimonialsColumn der Next-Seite.
   Dort lief die Bewegung erst nach der Hydration per JavaScript; hier macht es
   der Compositor. Die Karten stehen zweimal im Track, ein Durchlauf um die
   halbe Trackgroesse ist deshalb nahtlos - dieselbe Rechnung wie das
   translateY:-50% der Komponente. Laufzeit kommt je Spalte inline. */
.bb-marquee {
  will-change: transform;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.bb-marquee-y { animation-name: bb-marquee-up; }
.bb-marquee-x { animation-name: bb-marquee-left; }

@keyframes bb-marquee-up {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
@keyframes bb-marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Wer im Betriebssystem weniger Bewegung eingestellt hat, bekommt die Karten
   ruhig gestellt - der Inhalt bleibt vollstaendig lesbar. */
@media (prefers-reduced-motion: reduce) {
  .bb-marquee { animation: none; }
}
