/* =========================================================
   Manuel Baumert WebTrack Solutions – Stylesheet
   Markenfarben aus dem Logo: Blau #0042D6 · Himmelblau #00AAF6
   Orange #E37400 · Gelb #F9AB00
   ========================================================= */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design Tokens ---------- */
:root {
  /* Marke */
  --brand-blue: #0042D6;
  --brand-sky: #00AAF6;
  --brand-orange: #E37400;
  --brand-yellow: #F9AB00;

  /* Semantik – hell */
  --bg: #FFFFFF;
  --bg-tint: #F4F7FC;
  --surface: #F1F5FB;
  --surface-raised: #FFFFFF;
  --border: #E2E8F2;
  --border-strong: #CBD5E4;
  --text: #0B1630;
  --text-muted: #4A5875;
  --primary: #0042D6;
  --primary-hover: #0036B0;
  --primary-soft: #E7EEFD;
  --on-primary: #FFFFFF;
  --focus: #0042D6;
  --success: #0F7A3D;
  --success-soft: #E3F4EA;
  --danger: #C62828;
  --header-bg: rgba(244, 247, 252, .82);
  --chart-line: #0042D6;
  --chart-prev: #9AA9C2;
  --logo-w: #0042D6;
  --logo-w2: #00AAF6;
  --logo-t: #E37400;
  --logo-s: #F9AB00;

  --shadow-sm: 0 1px 2px rgba(11, 22, 48, .06);
  --shadow-md: 0 8px 24px -8px rgba(11, 22, 48, .12);
  --shadow-lg: 0 24px 60px -20px rgba(11, 22, 48, .22);

  /* Typografie */
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Abstände (8er-Raster) */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: 150ms;
  --dur-med: 280ms;
  --dur-slow: 600ms;

  --header-h: 72px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #080E1C;
  --bg-tint: #0C1426;
  --surface: #111B30;
  --surface-raised: #15213A;
  --border: #22304D;
  --border-strong: #33456A;
  --text: #E8EEF8;
  --text-muted: #A5B3CB;
  --primary: #6F9BFF;
  --primary-hover: #93B4FF;
  --primary-soft: #182A52;
  --on-primary: #081024;
  --focus: #93B4FF;
  --success: #4ED68A;
  --success-soft: #123424;
  --danger: #FF8A80;
  --header-bg: rgba(8, 14, 28, .78);
  --chart-line: #6F9BFF;
  --chart-prev: #4D5E80;
  --logo-w: #3E7BFF;
  --logo-w2: #1FB8FF;
  --logo-t: #F08A1C;
  --logo-s: #FFB81F;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, .5);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color var(--dur-med) ease, color var(--dur-med) ease;
}
img, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.022em; font-weight: 600; text-wrap: balance; }
p { margin: 0 0 var(--space-4); }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
button { font: inherit; color: inherit; }
code { font-family: var(--font-mono); font-size: .86em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }
.container-narrow { max-width: 860px; }
.muted { color: var(--text-muted); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--primary); color: var(--on-primary);
  padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 20px;
  border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none;
  cursor: pointer; touch-action: manipulation; white-space: nowrap;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease,
              color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-fast) ease; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { background: var(--surface-raised); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: transparent; border: 1px solid var(--border);
  color: var(--text); cursor: pointer;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.icon-btn:hover { background: var(--surface); border-color: var(--border-strong); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.linklike { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-decoration: none; }
.linklike:hover { color: var(--primary); text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: var(--space-5); height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand:hover { color: var(--text); }
.logo { height: 26px; width: auto; }
.logo .lg-w { fill: var(--logo-w); }
.logo .lg-w2 { fill: var(--logo-w2); }
.logo .lg-t { fill: var(--logo-t); }
.logo .lg-s { fill: var(--logo-s); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; }
.brand-owner { font-size: .74rem; color: var(--text-muted); font-weight: 500; letter-spacing: .02em; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; gap: var(--space-1); }
.nav-item { position: relative; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  border: 0; border-radius: 10px; background: none; cursor: pointer;
  font: inherit; font-weight: 500; font-size: .95rem; color: var(--text);
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.nav-trigger:hover, .nav-item.is-open > .nav-trigger, .nav-item.is-active > .nav-trigger { color: var(--primary); }
.nav-trigger:hover, .nav-item.is-open > .nav-trigger { background: var(--primary-soft); }
.nav-chevron { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-med) var(--ease-out); }
.nav-item.is-open .nav-chevron { transform: rotate(180deg); }

.submenu {
  position: absolute; top: calc(100% + 10px); left: 50%; z-index: 110;
  display: grid; gap: 2px; min-width: 300px; padding: 8px;
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity var(--dur-fast) ease, transform var(--dur-med) var(--ease-out), visibility 0s linear var(--dur-med);
}
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* Brücke, damit Hover nicht abreißt */
.nav-item.is-open > .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
@media (hover: hover) and (min-width: 1024px) {
  .nav-item:hover > .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
  .nav-item:hover > .nav-trigger { color: var(--primary); background: var(--primary-soft); }
  .nav-item:hover .nav-chevron { transform: rotate(180deg); }
}
.main-nav .submenu a {
  display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px;
  color: var(--text); text-decoration: none; transition: background-color var(--dur-fast) ease;
}
.main-nav .submenu a:hover, .main-nav .submenu a:focus-visible { background: var(--surface); color: var(--text); }
.main-nav .submenu a[aria-current="true"] strong { color: var(--primary); }
.submenu strong { font-size: .95rem; font-weight: 600; }
.submenu span { font-size: .82rem; color: var(--text-muted); }
.nav-cta-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.quiz-header .header-actions, .legal-page .header-actions { margin-left: auto; }
.lang-switch {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px;
  border-radius: 12px; border: 1px solid var(--border);
  font-weight: 600; font-size: .85rem; letter-spacing: .04em; color: var(--text); text-decoration: none;
}
.lang-switch:hover { border-color: var(--border-strong); background: var(--surface); color: var(--text); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.header-cta { margin-left: var(--space-2); }
.nav-toggle { display: none; }
.nav-toggle path { transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-fast) ease; transform-origin: 12px 12px; }
.nav-toggle[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .l2 { opacity: 0; }
.nav-toggle[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1023px) {
  .nav-toggle { display: inline-grid; }
  .header-cta { display: none; }
  .header-actions { margin-left: auto; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: var(--space-4) 16px var(--space-5);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-med) ease, visibility 0s linear var(--dur-med);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav-list { flex-direction: column; gap: 2px; }
  .nav-trigger { width: 100%; justify-content: space-between; min-height: 52px; font-size: 1.08rem; font-weight: 600; }
  .submenu {
    position: static; display: none; min-width: 0; padding: 0 0 8px 8px;
    border: 0; box-shadow: none; background: none;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .submenu::before { display: none; }
  .nav-item.is-open > .submenu { display: grid; transform: none; }
  .nav-cta-mobile { display: flex; width: 100%; margin-top: var(--space-4); }
}
@media (max-width: 420px) {
  .header-inner { gap: 10px; }
  .brand { gap: 8px; min-width: 0; flex-shrink: 1; }
  .logo { height: 21px; }
  .brand-name { font-size: .88rem; white-space: nowrap; }
  .brand-owner { font-size: .7rem; white-space: nowrap; }
  .header-actions { gap: 4px; }
  .header-actions .icon-btn, .lang-switch { width: 40px; min-width: 40px; height: 40px; padding: 0; }
}

/* ---------- Typo-Bausteine ---------- */
.eyebrow {
  display: inline-block; margin: 0 0 var(--space-3);
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary);
}
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--text-muted); max-width: 60ch; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-tint { background: var(--bg-tint); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 500; letter-spacing: -0.03em; }
.section-intro { color: var(--text-muted); font-size: 1.08rem; margin: var(--space-4) auto 0; max-width: 62ch; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px);
  background:
    radial-gradient(60% 50% at 85% 10%, color-mix(in srgb, var(--brand-sky) 14%, transparent) 0%, transparent 70%),
    radial-gradient(50% 45% at 5% 90%, color-mix(in srgb, var(--brand-yellow) 10%, transparent) 0%, transparent 70%),
    var(--bg);
}
.hero-grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); font-weight: 600; letter-spacing: -0.035em; margin-bottom: var(--space-5); }
/* Beide Buttons immer gleich breit: so breit wie der längere Button */
.hero-ctas { display: grid; grid-template-columns: 1fr; gap: var(--space-3); width: max-content; max-width: 100%; margin-top: var(--space-6); }
.hero-ctas .btn { width: 100%; }
@media (min-width: 640px) and (max-width: 1023px) { .hero-ctas { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .hero-ctas { width: 100%; } }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); list-style: none; padding: 0; margin: var(--space-6) 0 0; color: var(--text-muted); font-size: .92rem; font-weight: 500; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg, .contact-points svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--success); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Dashboard ---------- */
.dashboard {
  position: relative; margin: 0; overflow: hidden;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(18px, 2.4vw, 28px);
  display: grid; gap: var(--space-5);
}
.dash-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); }
.dash-top-right { display: flex; align-items: center; gap: var(--space-2); }
.dash-label { margin: 0; font-size: .8rem; font-weight: 600; color: var(--text-muted); letter-spacing: .01em; }
.dash-top .dash-label { font-size: .95rem; color: var(--text); }
.dash-sub { margin: 2px 0 0; font-size: .8rem; color: var(--text-muted); }
.demo-badge {
  font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--brand-yellow) 18%, transparent);
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--brand-yellow) 45%, transparent);
}
.dash-pause {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer; color: var(--text-muted);
  position: relative;
}
.dash-pause::after { content: ""; position: absolute; inset: -6px; } /* größere Trefferfläche */
.dash-pause:hover { color: var(--text); border-color: var(--border-strong); }
.dash-pause svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dash-pause .i-play { display: none; fill: currentColor; }
.dash-pause[aria-pressed="true"] .i-pause { display: none; }
.dash-pause[aria-pressed="true"] .i-play { display: block; }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.kpi { background: var(--surface); border-radius: var(--radius-md); padding: 14px; display: grid; gap: 2px; min-width: 0; }
.kpi-label { font-size: .74rem; color: var(--text-muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-value { font-size: clamp(1.1rem, 2.2vw, 1.55rem); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi-delta { font-size: .74rem; font-weight: 600; color: var(--success); font-variant-numeric: tabular-nums; }
.kpi-delta.up::before { content: "▲ "; font-size: .6rem; vertical-align: 1px; }

.dash-chart { position: relative; }
.dash-chart svg { width: 100%; height: 130px; overflow: visible; }
.dash-chart .grid line { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.chart-line { fill: none; stroke: var(--chart-line); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart-line-prev { fill: none; stroke: var(--chart-prev); stroke-width: 1.5; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.chart-dot { fill: var(--surface-raised); stroke: var(--chart-line); stroke-width: 3; vector-effect: non-scaling-stroke; }
.chart-legend { display: flex; gap: var(--space-4); font-size: .74rem; color: var(--text-muted); margin-top: var(--space-2); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { display: inline-block; width: 16px; height: 0; border-top: 2.5px solid var(--chart-line); border-radius: 2px; }
.chart-legend i.lg-prev { border-top: 1.5px dashed var(--chart-prev); }

.dash-bottom { display: grid; grid-template-columns: 1.45fr 1fr; gap: var(--space-4); }
.funnel ol { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: 9px; }
.funnel li { display: grid; grid-template-columns: minmax(0, 9.5em) 1fr 3.2em; align-items: center; gap: 10px; font-size: .76rem; }
.funnel li span:first-child { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.funnel b { text-align: right; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 99px; background: var(--surface); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--brand-blue), var(--brand-sky)); transform-origin: left; }
.funnel li:nth-child(4) .bar i { background: linear-gradient(90deg, var(--brand-orange), var(--brand-yellow)); }

.events { min-width: 0; }
.event-feed { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: 6px; }
.event-feed li {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 9px; background: var(--surface);
  font-size: .72rem; min-width: 0;
}
.event-feed code { color: var(--primary); font-weight: 600; white-space: nowrap; }
.event-feed span { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.event-feed li.is-new { animation: feedIn 480ms var(--ease-out); }
.event-feed li.is-purchase code { color: var(--brand-orange); }
:root[data-theme="dark"] .event-feed li.is-purchase code { color: var(--logo-s); }
@keyframes feedIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.brand-strip { height: 4px; background: linear-gradient(90deg, var(--brand-blue) 0 25%, var(--brand-sky) 25% 50%, var(--brand-orange) 50% 75%, var(--brand-yellow) 75% 100%); }
.dashboard .brand-strip { position: absolute; left: 0; right: 0; top: 0; }

/* Dashboard-Einblendung */
.js .dashboard .chart-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .dashboard .chart-area, .js .dashboard .chart-dot { opacity: 0; }
.js .dashboard .bar i { transform: scaleX(0); }
.dashboard.is-live .chart-line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease-out) .2s; }
.dashboard.is-live .chart-area { opacity: 1; transition: opacity .8s ease 1s; }
.dashboard.is-live .chart-dot { opacity: 1; transition: opacity .3s ease 1.6s; }
.dashboard.is-live .bar i { transform: scaleX(1); transition: transform 1s var(--ease-out); }
.dashboard.is-live .funnel li:nth-child(2) .bar i { transition-delay: .12s; }
.dashboard.is-live .funnel li:nth-child(3) .bar i { transition-delay: .24s; }
.dashboard.is-live .funnel li:nth-child(4) .bar i { transition-delay: .36s; }
.dashboard.is-live:not(.is-paused) .chart-dot { animation: pulse 2.4s ease-in-out 2s infinite; }
@keyframes pulse { 0%, 100% { stroke-width: 3; } 50% { stroke-width: 6; } }

@media (max-width: 520px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:last-child { grid-column: span 2; }
  .dash-bottom { grid-template-columns: 1fr; }
}

/* ---------- Bildband unter dem Hero ---------- */
.hero-image, .wide-image { position: relative; overflow: hidden; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); background: var(--surface); }
.hero-image { margin: clamp(48px, 7vw, 88px) 0 0; height: clamp(220px, 34vw, 440px); }
.hero-image img, .wide-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.process-image { margin: 0 0 var(--space-7); height: clamp(200px, 26vw, 320px); box-shadow: var(--shadow-md); }
.process-image img { object-position: 50% 40%; }
.hero-image::after, .wide-image::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(11, 22, 48, .06); pointer-events: none; }

/* ---------- Tools-Leiste ---------- */
.tools { padding-block: var(--space-7); border-block: 1px solid var(--border); background: var(--bg-tint); }
.tools-title { text-align: center; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-5); }
.tool-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.tool {
  display: flex; align-items: center; gap: 10px; padding: 12px;
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-md);
}
.tool strong { display: block; font-size: .88rem; white-space: nowrap; font-weight: 600; line-height: 1.3; }
.tool small { display: block; color: var(--text-muted); font-size: .8rem; }
.tool-icon, .service-icon, .bento-icon, .fact-icon {
  display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 12px;
}
.tool-icon { width: 38px; height: 38px; }
.tool-icon svg, .service-icon svg, .bento-icon svg, .fact-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.t-blue, .c-blue { background: color-mix(in srgb, var(--brand-blue) 12%, transparent); color: var(--logo-w); }
.t-sky, .c-sky { background: color-mix(in srgb, var(--brand-sky) 14%, transparent); color: #0079B0; }
.t-orange, .c-orange { background: color-mix(in srgb, var(--brand-orange) 14%, transparent); color: #B35A00; }
.t-yellow, .c-yellow { background: color-mix(in srgb, var(--brand-yellow) 18%, transparent); color: #8F6200; }
:root[data-theme="dark"] .t-sky, :root[data-theme="dark"] .c-sky { color: var(--logo-w2); }
:root[data-theme="dark"] .t-orange, :root[data-theme="dark"] .c-orange { color: var(--logo-t); }
:root[data-theme="dark"] .t-yellow, :root[data-theme="dark"] .c-yellow { color: var(--logo-s); }

/* ---------- Karten / Bento ---------- */
.card { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); }
.card-soft { background: var(--surface); border-color: transparent; }
.card-title-lg { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: var(--space-3); }

.bento { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bento-b, .bento-image { grid-column: span 3; }
  .bento-c { grid-column: span 4; }
  .bento-d { grid-column: span 2; }
}
.bento .card { display: flex; flex-direction: column; min-height: 280px; }
.bento-image { position: relative; margin: 0; min-height: 260px; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); }
.bento-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; transition: transform var(--dur-slow) var(--ease-out); }
.bento-image:hover img { transform: scale(1.03); }
.big-figure {
  font-size: clamp(4rem, 9vw, 6.5rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1;
  margin: 0;
  background: linear-gradient(100deg, var(--brand-blue) 0%, var(--brand-sky) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-theme="dark"] .big-figure { background-image: linear-gradient(100deg, var(--logo-w) 0%, var(--logo-w2) 100%); }
.figure-sub { margin: var(--space-3) 0 0; font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 600; letter-spacing: -0.01em; color: var(--primary); }
.degree-card { display: grid; gap: var(--space-5); align-items: center; margin-top: var(--space-6); }
@media (min-width: 560px) { .degree-card { grid-template-columns: auto 1fr; gap: var(--space-6); } }
.degree-card .big-figure { font-size: clamp(3.4rem, 6vw, 4.6rem); }
.degree-card .figure-sub { font-size: 1.1rem; margin-top: var(--space-2); }
.degree-card .card-title-lg { font-size: 1.25rem; margin-bottom: var(--space-2); }
.degree-card .muted { margin: 0; font-size: .95rem; }

.transfer { display: flex; align-items: center; justify-content: center; gap: var(--space-5); margin: auto 0 var(--space-5); padding-block: var(--space-5); }
.transfer-node { width: 64px; height: 64px; display: grid; place-items: center; flex-shrink: 0; }
.transfer-node svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.node-ga { border-radius: 16px; background: var(--brand-orange); }
.node-bq { border-radius: 50%; background: var(--brand-blue); }
.transfer-arrows { display: grid; gap: 10px; width: 88px; }
.transfer-arrows i { position: relative; display: block; height: 1.5px; background: var(--border-strong); overflow: hidden; }
.transfer-arrows i::after {
  content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--primary));
  animation: flow 2.2s linear infinite;
}
.transfer-arrows i:nth-child(2)::after { animation-delay: 1.1s; }
@keyframes flow { to { left: 100%; } }

.bento .bento-c { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 1100px) { .bento .bento-c { grid-template-columns: 1fr 1fr; } }
.bento-c .muted { margin: 0; }
.consent-demo { background: var(--surface-raised); border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: var(--space-5); border: 1px solid var(--border); }
.consent-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-2) var(--space-3); margin-bottom: var(--space-3); }
.consent-title { font-weight: 600; font-size: .95rem; white-space: nowrap; }
.consent-mode { font-size: .7rem; font-weight: 600; padding: 4px 9px; border-radius: 99px; background: var(--primary-soft); color: var(--primary); white-space: nowrap; }
.consent-demo ul { list-style: none; margin: 0; padding: 0; }
.consent-demo li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.switch { position: relative; width: 38px; height: 22px; border-radius: 99px; background: var(--border-strong); flex-shrink: 0; transition: background-color var(--dur-med) ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform var(--dur-med) var(--ease-out); }
.switch.on { background: var(--success); }
.switch.on::after { transform: translateX(16px); }
.switch.locked { opacity: .55; }
.consent-signals { display: grid; gap: 6px; margin-top: var(--space-4); }
.consent-signals code { font-size: .78rem; color: var(--text-muted); }
.consent-signals b { font-weight: 600; }
.consent-signals .granted { color: var(--success); }
.consent-signals .denied { color: var(--danger); }

.bento-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); margin-bottom: var(--space-5); }
.bento .bento-d { justify-content: center; min-height: 0; }
.bento-d .muted, .bento-b .muted { margin: 0; }

/* ---------- Leistungen ---------- */
.services { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.service { display: flex; flex-direction: column; transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) ease, border-color var(--dur-med) ease; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.service-icon { width: 52px; height: 52px; border-radius: 14px; margin-bottom: var(--space-5); }
.service h3 { font-size: 1.3rem; margin-bottom: var(--space-3); }
.service p { color: var(--text-muted); }
.service-featured { border-color: color-mix(in srgb, var(--brand-orange) 45%, var(--border)); }
.checks { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 8px; padding-top: var(--space-3); border-top: 1px solid var(--border); }
.checks li { position: relative; padding-left: 26px; font-size: .93rem; font-weight: 500; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230042D6' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}
:root[data-theme="dark"] .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236F9BFF' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

/* ---------- Ablauf ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: step; }
.step { position: relative; padding: var(--space-6) var(--space-5); background: var(--surface); border-radius: var(--radius-lg); }
.step-no {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: var(--space-5);
  font-family: var(--font-mono); font-weight: 600; font-size: .95rem;
  background: var(--surface-raised); color: var(--primary); border: 1px solid var(--border);
}
.step:nth-child(2) .step-no { color: #0079B0; }
.step:nth-child(3) .step-no { color: #B35A00; }
.step:nth-child(4) .step-no { color: #8F6200; }
:root[data-theme="dark"] .step:nth-child(2) .step-no { color: var(--logo-w2); }
:root[data-theme="dark"] .step:nth-child(3) .step-no { color: var(--logo-t); }
:root[data-theme="dark"] .step:nth-child(4) .step-no { color: var(--logo-s); }
.step h3 { font-size: 1.2rem; margin-bottom: var(--space-3); }
.step p { color: var(--text-muted); margin: 0; font-size: .96rem; }
@media (min-width: 1024px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: calc(var(--space-6) + 22px); right: calc(-1 * var(--space-5)); width: var(--space-5);
    border-top: 1.5px dashed var(--border-strong);
  }
}

/* ---------- Über mich ---------- */
.about-grid { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-copy h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 500; letter-spacing: -0.03em; margin-bottom: var(--space-5); }
.about-copy p { color: var(--text-muted); font-size: 1.05rem; max-width: 62ch; }
.facts { list-style: none; padding: 0; margin: var(--space-6) 0 var(--space-6); display: grid; gap: var(--space-3); }
.facts li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.fact-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-raised); border: 1px solid var(--border); color: var(--primary); }
.fact-icon svg { width: 20px; height: 20px; }

.video-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden;
  background: #0B1630; box-shadow: var(--shadow-lg);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.video-facade {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer;
  display: grid; place-items: center;
  background:
    radial-gradient(80% 80% at 20% 0%, rgba(0, 170, 246, .35), transparent 60%),
    radial-gradient(70% 70% at 100% 100%, rgba(227, 116, 0, .30), transparent 60%),
    #0B1630;
  color: #fff;
}
.video-facade-bg { position: absolute; inset: 0; display: grid; place-items: center; opacity: .16; }
.video-facade-bg .logo { width: 70%; height: auto; }
.video-facade-bg .logo .lg-w, .video-facade-bg .logo .lg-w2, .video-facade-bg .logo .lg-t, .video-facade-bg .logo .lg-s { fill: #fff; }
.play-btn {
  position: relative; width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--brand-blue);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
  transition: transform var(--dur-med) var(--ease-out);
}
.play-btn::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45);
  animation: ring 2.4s ease-out infinite;
}
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.play-btn svg { width: 32px; height: 32px; fill: currentColor; margin-left: 4px; }
.video-facade:hover .play-btn { transform: scale(1.06); }
.video-facade:focus-visible { outline-offset: -6px; outline-color: #fff; }
.video-caption { position: absolute; left: 20px; bottom: 18px; font-weight: 600; font-size: .95rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
/* Vorschaubild mit Porträt: Play-Button unten links, damit das Gesicht frei bleibt */
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform var(--dur-slow) var(--ease-out); }
.video-facade.has-poster { display: flex; align-items: flex-end; justify-content: flex-start; gap: 14px; padding: 20px; background: #0B1630; }
.video-facade.has-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 22, 48, 0) 50%, rgba(11, 22, 48, .7) 100%); pointer-events: none; }
.video-facade.has-poster .play-btn, .video-facade.has-poster .video-caption { position: relative; z-index: 1; }
.video-facade.has-poster .play-btn { width: 60px; height: 60px; }
.video-facade.has-poster .play-btn svg { width: 24px; height: 24px; }
.video-facade.has-poster .video-caption { left: auto; bottom: auto; margin-bottom: 18px; }
.video-facade.has-poster:hover .video-poster { transform: scale(1.03); }
.video-note { font-size: .82rem; color: var(--text-muted); margin: var(--space-3) 0 0; text-align: center; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: var(--space-3); }
.faq { background: var(--surface); border-radius: var(--radius-md); border: 1px solid transparent; transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease; }
.faq[open] { background: var(--surface-raised); border-color: var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding: 20px 24px; min-height: 56px; font-weight: 600; font-size: 1.05rem; border-radius: var(--radius-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5875' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  border: 1px solid var(--border);
  transition: transform var(--dur-med) var(--ease-out);
}
:root[data-theme="dark"] .faq summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A5B3CB' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--primary); }
.faq-a { padding: 0 24px 22px; color: var(--text-muted); }
.faq-a p { margin: 0; max-width: 68ch; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .9fr 1.1fr; } .contact-copy { position: sticky; top: calc(var(--header-h) + 40px); } }
.contact-copy h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 500; letter-spacing: -0.03em; }
.contact-copy .section-intro { margin-left: 0; }
.contact-points { list-style: none; padding: 0; margin: var(--space-6) 0; display: grid; gap: var(--space-3); font-weight: 500; }
.contact-points li { display: flex; align-items: center; gap: 10px; }
.contact-direct { display: grid; gap: 4px; padding: var(--space-5); border-radius: var(--radius-md); background: var(--surface-raised); border: 1px solid var(--border); }
.contact-direct a { font-weight: 600; font-size: 1.02rem; overflow-wrap: anywhere; }
.booking-card {
  display: grid; gap: var(--space-4); margin-top: var(--space-6); padding: var(--space-5);
  background: var(--surface-raised); border: 2px solid color-mix(in srgb, var(--primary) 35%, var(--border));
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.booking-head { display: flex; align-items: center; gap: var(--space-4); }
.booking-icon { display: inline-grid; place-items: center; flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); }
.booking-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.booking-avatar { flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface-raised); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 45%, transparent); }
.booking-title { margin: 0; font-weight: 700; font-size: 1.12rem; line-height: 1.3; }
.booking-meta { margin: 4px 0 0; font-size: .9rem; color: var(--text-muted); }
.booking-sub { margin: 0 0 8px; font-weight: 600; font-size: .92rem; }
.booking-gains ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.booking-gains li { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; line-height: 1.45; }
.booking-gains svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; fill: none; stroke: var(--success); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.booking-prep { border-top: 1px solid var(--border); padding-top: var(--space-3); }
.booking-prep summary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: .92rem; color: var(--primary);
}
.booking-prep summary::-webkit-details-marker { display: none; }
.booking-prep summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform var(--dur-med) var(--ease-out); }
.booking-prep[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.booking-prep dl { display: grid; gap: var(--space-3); margin: var(--space-2) 0 0; }
.booking-prep dt { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
.booking-prep dd { margin: 0; font-size: .92rem; line-height: 1.5; }

.contact-form { display: grid; gap: var(--space-4); box-shadow: var(--shadow-md); }
.field-row { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .92rem; }
.req { color: var(--danger); }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1.5px solid var(--border-strong); border-radius: 12px;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); opacity: .7; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.field-help { margin: 0; font-size: .84rem; color: var(--text-muted); }
.field-err { margin: 0; font-size: .86rem; font-weight: 500; color: var(--danger); }
.field-err:empty { display: none; }
.field-check { grid-template-columns: auto 1fr; align-items: start; column-gap: 12px; }
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--primary); cursor: pointer; }
.field-check label { font-weight: 400; font-size: .9rem; color: var(--text-muted); }
.field-check .field-err { grid-column: 1 / -1; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-summary { padding: var(--space-4); border-radius: 12px; border: 1.5px solid var(--danger); background: color-mix(in srgb, var(--danger) 8%, transparent); font-size: .92rem; }
.form-summary ul { margin: 6px 0 0; padding-left: 20px; }
.form-summary a { color: var(--danger); font-weight: 600; }
.form-status { margin: 0; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-success { padding: var(--space-4); border-radius: 12px; background: var(--success-soft); color: var(--success); }
.form-status.is-error { padding: var(--space-4); border-radius: 12px; background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }
.form-note { margin: 0; font-size: .82rem; color: var(--text-muted); }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading { pointer-events: none; opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-tint); border-top: 1px solid var(--border); }
.footer-grid { display: grid; gap: var(--space-6); padding-block: var(--space-8) var(--space-6); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand .muted { margin-top: var(--space-4); max-width: 36ch; font-size: .95rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-links a, .footer-links .linklike { display: inline-flex; align-items: center; min-height: 40px; color: var(--text-muted); text-decoration: none; font-size: .95rem; }
.footer-links a:hover, .footer-links .linklike:hover { color: var(--primary); }
.footer-links-inline { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); padding-block: var(--space-5); border-top: 1px solid var(--border); font-size: .88rem; color: var(--text-muted); }
.footer-bottom p { margin: 0; }
.to-top { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--text-muted); text-decoration: none; font-weight: 500; }
.to-top svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Dashboard-Erklärung ---------- */
.dash-caption { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding-top: var(--space-4); border-top: 1px solid var(--border); font-size: .86rem; color: var(--text-muted); line-height: 1.45; }
.dash-caption svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Problem ---------- */
.problems { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.problem-card h3 { font-size: 1.2rem; margin-bottom: var(--space-3); }
.problem-card p { margin: 0; color: var(--text-muted); }
.problem-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: var(--space-5); background: color-mix(in srgb, var(--brand-orange) 14%, transparent); color: #B35A00; }
:root[data-theme="dark"] .problem-icon { color: var(--logo-t); }
.problem-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.problem-conclusion { max-width: 720px; margin: clamp(32px, 5vw, 56px) auto 0; text-align: center; font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; line-height: 1.45; letter-spacing: -0.01em; }

/* ---------- Angebote ---------- */
.offers { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.offer { display: flex; flex-direction: column; transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) ease, border-color var(--dur-med) ease; }
.offer:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.offer .service-icon { margin-bottom: var(--space-5); }
.offer-situation { margin: 0 0 var(--space-4); padding: 12px 14px; border-radius: 12px; background: var(--surface); font-style: italic; color: var(--text); line-height: 1.45; }
.offer-situation span { display: block; margin-bottom: 4px; font-style: normal; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.offer h3 { font-size: 1.3rem; margin-bottom: var(--space-3); }
.offer-text { color: var(--text-muted); }
.offer-result-label { margin: var(--space-2) 0 var(--space-3); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.offer .checks { margin: 0 0 var(--space-6); padding-top: 0; border-top: 0; }
.offer .btn { margin-top: auto; white-space: normal; }
.offers-note { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin: var(--space-6) 0 0; text-align: center; color: var(--text-muted); font-weight: 500; }
.offers-note svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--success); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Angebote mit Preisen ---------- */
.offer-step { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 var(--space-4); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.offer-step span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--primary-soft); color: var(--primary); font-family: var(--font-mono); font-size: .9rem; letter-spacing: 0; }
.offer-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: var(--space-2) 0 var(--space-4); }
.offer-price strong { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.offer-price > span:not(.price-from) { font-size: .85rem; color: var(--text-muted); }
.price-from { font-size: .9rem; font-weight: 600; color: var(--text-muted); }
.offer-price-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin: var(--space-2) 0 var(--space-4); }
.offer-price-split .offer-price { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface); }
.offer-price-split .offer-price strong { font-size: 1.35rem; }
.offer-price small { flex-basis: 100%; font-size: .78rem; font-weight: 600; color: var(--text-muted); }
.offer-promise { color: var(--text); font-weight: 500; }
.offer-note { margin: 0 0 var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--border); font-size: .88rem; color: var(--text-muted); line-height: 1.5; }

/* ---------- Betreuungspakete ---------- */
.packages { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); max-width: 880px; margin: 0 auto; }
.package { position: relative; display: flex; flex-direction: column; }
.package.is-featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.package-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 4px 14px; border-radius: 99px; background: var(--primary); color: var(--on-primary); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.package h3 { font-size: 1.35rem; margin-bottom: 6px; }
.package-desc { color: var(--text-muted); margin-bottom: var(--space-4); }
.package-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0 0 var(--space-5); }
.package-price strong { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.package-price span { font-size: .88rem; color: var(--text-muted); }
.package-features { list-style: none; margin: 0 0 var(--space-6); padding: var(--space-5) 0 0; border-top: 1px solid var(--border); display: grid; gap: 12px; }
.package-features li { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; line-height: 1.45; }
.package-features svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; fill: none; stroke: var(--success); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.package-features .is-missing { color: var(--text-muted); }
.pkg-no { width: 18px; flex-shrink: 0; text-align: center; font-weight: 700; color: var(--border-strong); }
.package .btn { margin-top: auto; white-space: normal; }
.care-check { max-width: 880px; margin: var(--space-6) auto 0; }
.care-check h3 { font-size: 1.1rem; margin-bottom: var(--space-2); }
.care-check p { margin: 0; color: var(--text-muted); }
.care-terms { max-width: 880px; margin: var(--space-5) auto 0; font-size: .85rem; color: var(--text-muted); text-align: center; line-height: 1.55; }
.step-badge.is-paid { background: var(--primary-soft); color: var(--primary); }

/* ---------- Nutzen ---------- */
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.benefit { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface-raised); border: 1px solid var(--border); }
.benefit .fact-icon { width: 44px; height: 44px; }
.benefit h3 { font-size: 1.05rem; margin: 2px 0 6px; }
.benefit p { margin: 0; color: var(--text-muted); font-size: .95rem; }
.split-note { display: flex; gap: var(--space-5); align-items: flex-start; margin-top: var(--space-6); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.split-note .bento-icon { margin: 0; flex-shrink: 0; }
.split-note h3 { font-size: 1.15rem; margin-bottom: var(--space-2); }
.split-note p { margin: 0; color: var(--text-muted); max-width: 80ch; }
@media (max-width: 560px) { .split-note { flex-direction: column; } }

/* ---------- Tools innerhalb der Bausteine ---------- */
.tools-inline { margin-bottom: var(--space-7); }
.tools-inline .tools-title { font-size: .82rem; }

/* ---------- Ablauf: Kennzeichnung "Kostenlos" ---------- */
.step-badge { position: absolute; top: var(--space-6); right: var(--space-5); padding: 4px 10px; border-radius: 99px; font-size: .72rem; font-weight: 600; letter-spacing: .04em; background: var(--success-soft); color: var(--success); }

/* ---------- Teaser: Tracking-Check (Startseite) ---------- */
.teaser { padding-block: 0 clamp(64px, 9vw, 112px); }
.teaser-card {
  position: relative; overflow: hidden; display: grid; gap: var(--space-7); align-items: center;
  padding: clamp(28px, 4vw, 56px); border-radius: var(--radius-xl);
  background:
    radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--brand-sky) 16%, transparent), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, color-mix(in srgb, var(--brand-yellow) 14%, transparent), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
}
@media (min-width: 960px) { .teaser-card { grid-template-columns: 1.15fr 1fr; } }
.teaser-card h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 500; letter-spacing: -0.03em; margin-bottom: var(--space-4); }
.teaser-card > div > p { color: var(--text-muted); font-size: 1.05rem; max-width: 52ch; }
.teaser-points { list-style: none; padding: 0; margin: var(--space-5) 0 var(--space-6); display: grid; gap: var(--space-3); font-weight: 500; }
.teaser-points li { display: flex; align-items: center; gap: 10px; }
.teaser-points svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--success); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.teaser-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }
.teaser-meta { font-size: .9rem; color: var(--text-muted); }

/* Dekorative Vorschau einer Frage */
.teaser-preview { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--space-5); display: grid; gap: var(--space-3); max-width: 440px; justify-self: center; width: 100%; }
.teaser-preview-top { display: flex; justify-content: space-between; font-size: .78rem; color: var(--text-muted); font-weight: 600; }
.teaser-preview-bar { height: 6px; border-radius: 99px; background: var(--surface); overflow: hidden; }
.teaser-preview-bar i { display: block; width: 33%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-blue), var(--brand-sky)); }
.teaser-preview-q { margin: var(--space-2) 0; font-weight: 600; line-height: 1.35; }
.teaser-preview-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 12px; font-size: .88rem; }
.teaser-preview-opt i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-strong); flex-shrink: 0; }
.teaser-preview-opt.is-active { border-color: var(--primary); background: var(--primary-soft); }
.teaser-preview-opt.is-active i { border-color: var(--primary); background: radial-gradient(circle, var(--primary) 0 45%, transparent 50%); }


/* ---------- Tracking-Check (eigene Seite) ---------- */
.quiz-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; background: var(--bg-tint); }
.quiz-page .site-header { background: var(--header-bg); }
.quiz-close svg { width: 18px; height: 18px; }
.quiz-progress { height: 4px; background: var(--border); }
.quiz-progress-bar { height: 100%; }
.quiz-progress-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-blue), var(--brand-sky)); transition: width var(--dur-med) var(--ease-out); }
.quiz-main { flex: 1; padding-block: clamp(32px, 6vw, 72px); overflow-x: clip; }
.quiz-container { max-width: 760px; }
.quiz-screen h1 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 600; letter-spacing: -0.025em; margin-bottom: var(--space-5); outline: none; }

.quiz-intro { text-align: center; padding-block: clamp(16px, 4vw, 48px); }
.quiz-intro h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.quiz-intro .lead { margin: 0 auto; }
.quiz-intro-points { list-style: none; padding: 0; margin: var(--space-6) 0 var(--space-7); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3) var(--space-6); font-weight: 500; }
.quiz-intro-points li { display: inline-flex; align-items: center; gap: 8px; }
.quiz-intro-points svg, .quiz-privacy-note svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--primary); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.quiz-privacy-note { display: inline-flex; align-items: center; gap: 8px; margin: var(--space-5) 0 0; font-size: .88rem; color: var(--text-muted); }

.quiz-step-label { display: flex; justify-content: space-between; gap: var(--space-4); margin: 0 0 var(--space-3); font-size: .85rem; font-weight: 600; }
.quiz-area { color: var(--primary); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; }
.quiz-count { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.quiz-options { display: grid; gap: var(--space-3); margin-bottom: var(--space-6); }
.quiz-option {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 16px 20px; text-align: left;
  background: var(--surface-raised); border: 1.5px solid var(--border); border-radius: var(--radius-md);
  font: inherit; font-size: 1.02rem; font-weight: 500; color: var(--text); cursor: pointer;
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.quiz-option:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.quiz-option:active { transform: scale(.99); }
.quiz-option.is-unknown { color: var(--text-muted); }
.quiz-option-dot { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease; }
.quiz-option[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); }
.quiz-option[aria-pressed="true"] .quiz-option-dot { border-color: var(--primary); background: radial-gradient(circle, var(--primary) 0 42%, transparent 46%); }
.quiz-back svg { width: 18px; height: 18px; }
.quiz-question.slide-in { animation: quizIn 320ms var(--ease-out); }
@keyframes quizIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

/* Ergebnis */
.quiz-result { display: grid; gap: var(--space-5); }
.quiz-result h2 { font-size: 1.2rem; margin-bottom: var(--space-4); }
.result-head { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 640px) { .result-head { grid-template-columns: auto 1fr; } }
.result-head h1 { margin-bottom: var(--space-2); }
.result-score { font-weight: 600; color: var(--text-muted); margin-bottom: var(--space-3); }
.result-text { margin: 0; color: var(--text-muted); }
@property --pct { syntax: "<number>"; inherits: true; initial-value: 0; }
.score-ring {
  --pct: 0; --ring: var(--primary);
  width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center; justify-self: center;
  background: radial-gradient(closest-side, var(--surface-raised) 78%, transparent 79%), conic-gradient(var(--ring) calc(var(--pct) * 1%), var(--surface) 0);
  transition: --pct 1.2s var(--ease-out);
}
.score-ring[data-level="entry"] { --ring: var(--brand-orange); }
.score-ring[data-level="foundations"] { --ring: var(--brand-yellow); }
.score-ring[data-level="data_driven"] { --ring: var(--success); }
.score-ring-value { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.result-grid { display: grid; gap: var(--space-5); }
.area-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4) var(--space-6); }
@media (min-width: 640px) { .area-bars { grid-template-columns: 1fr 1fr; } }
.area-head { display: flex; justify-content: space-between; gap: var(--space-3); font-size: .92rem; font-weight: 500; margin-bottom: 6px; }
.area-head b { font-variant-numeric: tabular-nums; }
.area-track { height: 10px; border-radius: 99px; background: var(--surface); overflow: hidden; }
.area-track i { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.area-bars .is-low .area-track i { background: var(--brand-orange); }
.area-bars .is-mid .area-track i { background: var(--brand-yellow); }
.area-bars .is-good .area-track i { background: var(--success); }
.rec-list { margin: 0; padding: 0; list-style: none; counter-reset: rec; display: grid; gap: var(--space-4); }
.rec-list li { position: relative; padding-left: 44px; counter-increment: rec; }
.rec-list li::before {
  content: counter(rec); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; font-weight: 700; font-size: .9rem; background: var(--primary-soft); color: var(--primary);
}
.rec-list strong { display: block; margin-bottom: 2px; }
.rec-list p, .rec-none { margin: 0; color: var(--text-muted); font-size: .95rem; }
.unknown-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.result-unknown { border-color: color-mix(in srgb, var(--brand-yellow) 55%, var(--border)); }

.result-cta {
  display: grid; gap: var(--space-5); align-items: center; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--brand-blue), #0A2E8F); color: #fff;
}
@media (min-width: 720px) { .result-cta { grid-template-columns: 1fr auto; } }
.result-cta h2 { color: #fff; margin-bottom: var(--space-2); }
.result-cta p { margin: 0; color: rgba(255, 255, 255, .85); }
.result-cta .btn-primary { background: #fff; color: var(--brand-blue); }
.result-cta .btn-primary:hover { background: #E7EEFD; color: var(--brand-blue); }
:root[data-theme="dark"] .result-cta { background: linear-gradient(120deg, #1B3F99, #0F2156); }

.report-form { display: grid; gap: var(--space-4); }
.report-form h2 { margin-bottom: 0; }
.report-form > .muted { margin: 0; }
.report-form.is-sent .field, .report-form.is-sent .field-row, .report-form.is-sent button[type="submit"] { display: none; }
.result-restart { text-align: center; margin: var(--space-2) 0 0; }
.quiz-restart { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text-muted); font-weight: 500; }
.quiz-restart svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.quiz-footer { margin-top: auto; }

@media (max-width: 520px) {
  .quiz-close span { display: none; }
  .quiz-close { width: 40px; min-width: 40px; height: 40px; padding: 0; }
}

/* ---------- Fachartikel ---------- */
.container-article { max-width: 820px; }
.article-hero {
  padding-block: clamp(40px, 7vw, 88px) clamp(32px, 5vw, 56px);
  background:
    radial-gradient(60% 60% at 90% 0%, color-mix(in srgb, var(--brand-sky) 12%, transparent), transparent 70%),
    var(--bg-tint);
  border-bottom: 1px solid var(--border);
}
.article-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 600; letter-spacing: -0.03em; margin-bottom: var(--space-5); }
.article-hero .lead { max-width: 64ch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-5); font-size: .88rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); text-decoration: underline; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: var(--space-5) 0 0; font-size: .88rem; color: var(--text-muted); }
.article-meta span + span::before { content: "·"; margin-right: 18px; }

.article-body { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.article-section { margin-bottom: clamp(40px, 5vw, 56px); }
.article-section h2, .sources h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); font-weight: 600; letter-spacing: -0.02em; margin-bottom: var(--space-5); }
.article-section h3 { font-size: 1.2rem; margin-bottom: var(--space-3); }
.article-section p, .article-section li { font-size: 1.06rem; line-height: 1.7; }
.article-section > p { max-width: 70ch; }
sup.ref { font-size: .72em; line-height: 0; margin-left: 2px; }
sup.ref a { text-decoration: none; font-weight: 600; }

.article-quote { margin: 0 0 var(--space-5); padding: var(--space-5) var(--space-6); border-left: 4px solid var(--brand-sky); border-radius: 0 var(--radius-md) var(--radius-md) 0; background: var(--surface); }
.article-quote p { margin: 0; font-size: 1.2rem; font-style: italic; line-height: 1.5; color: var(--text); }

.callout { margin-top: var(--space-5); padding: var(--space-5) var(--space-6); border-radius: var(--radius-md); background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); }
.callout-label { margin: 0 0 6px !important; font-size: .78rem !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.callout p:last-child { margin: 0; }

.change { display: grid; grid-template-columns: auto 1fr; gap: var(--space-5); padding: var(--space-6) 0; border-top: 1px solid var(--border); }
.change:last-child { padding-bottom: 0; }
.change-no { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-family: var(--font-mono); font-weight: 600; background: var(--surface); color: var(--primary); border: 1px solid var(--border); }
.change p:last-child { margin-bottom: 0; }
.compare { display: grid; gap: var(--space-3); margin: var(--space-2) 0 var(--space-4); }
@media (min-width: 640px) { .compare { grid-template-columns: 1fr 1.4fr; } }
.compare div { padding: 12px 14px; border-radius: 12px; background: var(--surface); font-style: italic; }
.compare div:last-child { background: color-mix(in srgb, var(--success) 10%, var(--surface)); }
.compare span { display: block; margin-bottom: 4px; font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }

.question-list { list-style: none; padding: 0; margin: 0 0 var(--space-5); display: grid; gap: var(--space-3); }
.question-list li { position: relative; padding: 12px 16px 12px 48px; border-radius: 12px; background: var(--surface); font-weight: 500; }
.question-list li::before { content: "?"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; background: var(--primary); color: var(--on-primary); }
.perspectives { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); margin: 0 0 var(--space-5); }
.perspectives div { padding: var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface-raised); }
.perspectives strong { display: block; }
.perspectives span { font-size: .9rem; color: var(--text-muted); }

.key-question { padding: var(--space-5); border-radius: var(--radius-md); background: var(--surface); font-size: 1.15rem !important; font-weight: 600; line-height: 1.5 !important; }

.table-wrap { overflow-x: auto; margin: 0 0 var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-md); }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.data-table thead th { background: var(--surface); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td:first-child { font-weight: 600; }
.data-table.numeric { min-width: 420px; }
.data-table.numeric td:not(:first-child), .data-table.numeric th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table .is-total td { background: var(--primary-soft); font-weight: 700; }

.steps-list { padding-left: 22px; margin: 0 0 var(--space-5); display: grid; gap: var(--space-3); }

.article-cta {
  display: grid; gap: var(--space-5); margin: clamp(40px, 5vw, 56px) 0 var(--space-6); padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--brand-blue), #0A2E8F); color: #fff;
}
.article-cta h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-bottom: var(--space-3); }
.article-cta p { margin: 0; color: rgba(255, 255, 255, .88); font-size: 1.04rem; }
.article-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }
.article-cta-actions span { font-size: .9rem; color: rgba(255, 255, 255, .8); }
.article-cta .btn-primary { background: #fff; color: var(--brand-blue); white-space: normal; text-align: left; }
.article-cta .btn-primary:hover { background: #E7EEFD; color: var(--brand-blue); }
:root[data-theme="dark"] .article-cta { background: linear-gradient(120deg, #1B3F99, #0F2156); }

.next-reads { display: grid; gap: var(--space-4); }
@media (min-width: 720px) { .next-reads { grid-template-columns: 1fr 1fr; } }
.next-read {
  position: relative; display: grid; gap: 6px; padding: var(--space-5) 64px var(--space-5) var(--space-5);
  border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface-raised);
  text-decoration: none; color: var(--text); transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.next-read:hover { border-color: var(--primary); box-shadow: var(--shadow-md); color: var(--text); transform: translateY(-2px); }
.next-read-label { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.next-read-title { font-size: 1.1rem; font-weight: 600; line-height: 1.4; }
.next-read svg { position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.sources { margin-top: clamp(48px, 6vw, 72px); padding-top: var(--space-6); border-top: 1px solid var(--border); }
.sources h2 { font-size: 1.2rem; }
.sources ol { padding-left: 22px; margin: 0; display: grid; gap: var(--space-3); font-size: .92rem; color: var(--text-muted); }
.sources li:target { color: var(--text); background: var(--primary-soft); border-radius: 6px; }
.sources-note { margin: var(--space-5) 0 0; font-size: .85rem; color: var(--text-muted); }

/* ---------- Startseite: Einstieg in die Fachartikel ---------- */
.insights { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.insight-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) ease, border-color var(--dur-med) ease; }
.insight-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); color: var(--text); }
.insight-card .service-icon { margin-bottom: var(--space-5); }
.insight-card h3 { font-size: 1.3rem; margin-bottom: var(--space-3); }
.insight-card p { color: var(--text-muted); }
.insight-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 600; color: var(--primary); }
.insight-more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-fast) ease; }
.insight-card:hover .insight-more svg { transform: translateX(3px); }

/* ---------- Rechtliche Seiten ---------- */
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 500; letter-spacing: -0.03em; margin-bottom: var(--space-6); }
.prose h2 { font-size: 1.25rem; margin: var(--space-7) 0 var(--space-3); }
.prose p { color: var(--text-muted); max-width: 72ch; }
.prose .lead-small { font-size: .9rem; }
.todo { background: color-mix(in srgb, var(--brand-yellow) 30%, transparent); color: var(--text); padding: 1px 6px; border-radius: 4px; font-weight: 600; }

/* ---------- Scroll-Einblendungen ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: var(--delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .transfer-arrows i::after, .play-btn::before { display: none; }
}

/* Pausierter Zustand (Dashboard-Schalter) stoppt auch die Hintergrundanimationen */
.dashboard.is-paused * { animation-play-state: paused !important; }

/* ---------- Cookie-Übersicht (Cookiebot) ---------- */
.cookie-declaration { overflow-x: auto; margin: var(--space-4) 0 var(--space-6); font-size: .9rem; }
.cookie-declaration table { min-width: 560px; }