/* =========================================================
   STIER PRIVATKONTOR — Design System
   Apple-inspired: viel Weißraum, große Typo, feine Kanten.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Inter, Arial, sans-serif;
  --font-text: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Inter, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --navy: #0a1a2f;
  --navy-600: #173963;
  --navy-400: #2b5a99;
  --gold: #c9a227;
  --gold-soft: #e0bf5c;

  --bg: #ffffff;
  --bg-tint: #f5f5f7;
  --bg-elev: #ffffff;
  --bg-inset: #fbfbfd;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: rgba(0, 0, 0, 0.09);
  --line-strong: rgba(0, 0, 0, 0.16);
  --accent: #0b5cd5;
  --accent-ink: #0b5cd5;
  --shadow-s: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(0, 0, 0, 0.06);
  --shadow-m: 0 2px 6px rgba(0, 0, 0, 0.05), 0 18px 48px rgba(0, 0, 0, 0.1);
  --nav-bg: rgba(255, 255, 255, 0.72);

  --radius-s: 12px;
  --radius-m: 18px;
  --radius-l: 26px;
  --radius-xl: 34px;

  --pad: clamp(20px, 5vw, 32px);
  --maxw: 1080px;
  --maxw-wide: 1220px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[data-theme="dark"] {
  --bg: #000000;
  --bg-tint: #0c0c0e;
  --bg-elev: #17171a;
  --bg-inset: #101013;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #86868b;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --accent: #4a9bff;
  --accent-ink: #4a9bff;
  --shadow-s: 0 1px 2px rgba(0, 0, 0, 0.5), 0 6px 24px rgba(0, 0, 0, 0.45);
  --shadow-m: 0 2px 8px rgba(0, 0, 0, 0.6), 0 24px 60px rgba(0, 0, 0, 0.55);
  --nav-bg: rgba(12, 12, 14, 0.72);
  --gold: #e0bf5c;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #000000;
    --bg-tint: #0c0c0e;
    --bg-elev: #17171a;
    --bg-inset: #101013;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #86868b;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.22);
    --accent: #4a9bff;
    --accent-ink: #4a9bff;
    --shadow-s: 0 1px 2px rgba(0, 0, 0, 0.5), 0 6px 24px rgba(0, 0, 0, 0.45);
    --shadow-m: 0 2px 8px rgba(0, 0, 0, 0.6), 0 24px 60px rgba(0, 0, 0, 0.55);
    --nav-bg: rgba(12, 12, 14, 0.72);
    --gold: #e0bf5c;
  }
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--gold); color: #14100a; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.container--wide { max-width: var(--maxw-wide); }

.section { padding-block: clamp(72px, 11vw, 132px); position: relative; }
.section--tint { background: var(--bg-tint); }
.section--dark {
  background: linear-gradient(180deg, #05101f 0%, #0a1a2f 55%, #05101f 100%);
  color: #f5f5f7;
}
.section--dark .section-sub,
.section--dark .lead { color: rgba(245, 245, 247, 0.72); }
.section--tight { padding-block: clamp(56px, 8vw, 92px); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }

/* ---------- Typo ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow--muted { color: var(--text-3); }

.display {
  font-size: clamp(44px, 6.6vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.028em;
  font-weight: 600;
}
.h1 { font-size: clamp(34px, 5vw, 64px); line-height: 1.08; letter-spacing: -0.024em; }
.h2 { font-size: clamp(27px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -0.02em; }
.h3 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.22; letter-spacing: -0.016em; }
.h4 { font-size: 18px; line-height: 1.32; letter-spacing: -0.014em; }

.lead { font-size: clamp(19px, 2.1vw, 25px); line-height: 1.4; color: var(--text-2); letter-spacing: -0.018em; }
.section-sub { font-size: clamp(17px, 1.85vw, 21px); line-height: 1.47; color: var(--text-2); margin-top: 20px; letter-spacing: -0.014em; }
.small { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.tiny { font-size: 12.5px; line-height: 1.55; color: var(--text-3); }

.gold { color: var(--gold); }
.grad-text {
  background: linear-gradient(120deg, var(--gold-soft), var(--gold) 45%, #f0dda0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 980px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), opacity 0.25s var(--ease);
  text-decoration: none !important;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--navy-600); color: #fff; }
.btn--primary:hover { background: var(--navy-400); }
html[data-theme="dark"] .btn--primary { background: #f5f5f7; color: #0a1a2f; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .btn--primary { background: #f5f5f7; color: #0a1a2f; }
}
.btn--gold { background: var(--gold); color: #16120a; }
.btn--gold:hover { background: var(--gold-soft); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text-2); }
.btn--on-dark { border-color: rgba(255, 255, 255, 0.3); color: #fff; background: transparent; }
.btn--on-dark:hover { background: rgba(255, 255, 255, 0.1); }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  color: var(--accent-ink);
  font-weight: 450;
}
.link-more::after { content: "›"; font-size: 19px; line-height: 1; transform: translateY(-1px); transition: transform 0.2s var(--ease); }
.link-more:hover { text-decoration: none; }
.link-more:hover::after { transform: translate(3px, -1px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 32px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--maxw-wide);
  margin-inline: auto;
  padding: 0 var(--pad);
  height: 58px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .mark { width: auto; height: 34px; flex: none; }
.brand .mark--dark { display: none; }
html[data-theme="dark"] .brand .mark--light { display: none; }
html[data-theme="dark"] .brand .mark--dark { display: block; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .brand .mark--light { display: none; }
  html:not([data-theme="light"]) .brand .mark--dark { display: block; }
}
.brand-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: 0.15em; }
.brand-sub { font-size: 10px; letter-spacing: 0.24em; color: var(--text-3); text-transform: uppercase; margin-top: 1px; }

.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a {
  font-size: 13.5px;
  color: var(--text-2);
  padding: 7px 11px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
@media (max-width: 1180px) and (min-width: 941px) {
  .nav-links a { font-size: 12.5px; padding: 7px 8px; }
  .brand-sub { display: none; }
}
.nav-links a:hover { color: var(--text); background: rgba(127, 127, 127, 0.12); text-decoration: none; }
.nav-cta { margin-left: 8px; padding: 8px 16px !important; font-size: 13.5px !important; }

.theme-toggle {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--text-2);
  transition: background 0.2s, color 0.2s;
  flex: none;
}
.theme-toggle:hover { background: rgba(127, 127, 127, 0.12); color: var(--text); }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  html:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.nav-burger { display: none; width: 34px; height: 34px; border: 0; background: transparent; cursor: pointer; }
.nav-burger span { display: block; width: 18px; height: 1.5px; background: var(--text); margin: 4px auto; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav.is-open .nav-burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav.is-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-burger { display: block; margin-left: auto; }
  .nav-links {
    position: fixed;
    inset: 58px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(22px);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
    padding: 10px var(--pad) 26px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    max-height: calc(100vh - 58px);
    overflow: auto;
  }
  .nav.is-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { font-size: 19px; padding: 13px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-cta { margin: 16px 0 0; justify-content: center; }
  .theme-toggle { margin-left: auto; margin-right: 6px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(94vh, 900px);
  display: grid;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
  background: radial-gradient(120% 90% at 50% 0%, #14345c 0%, #0a1a2f 46%, #040c17 100%);
  color: #f5f5f7;
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, var(--bg));
  z-index: 2;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 780px; height: 780px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.34;
  z-index: -1;
  animation: float 16s ease-in-out infinite;
}
.hero-glow--gold { background: radial-gradient(circle, rgba(201,162,39,0.55), transparent 66%); top: -270px; right: -180px; }
.hero-glow--blue { background: radial-gradient(circle, rgba(43,90,153,0.65), transparent 66%); bottom: -340px; left: -220px; animation-delay: -7s; }
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -34px, 0) scale(1.07); }
}

.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 6vw, 76px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero .display { color: #fff; }
.hero .lead { color: rgba(245, 245, 247, 0.76); max-width: 34ch; margin-top: 24px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 9px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13.5px;
  color: rgba(245, 245, 247, 0.9);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.2); }

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-l);
  padding: 30px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}
.hero-card h3 { color: #fff; font-size: 19px; }
.hero-card .kpi { font-family: var(--font-display); font-size: 46px; font-weight: 600; letter-spacing: -0.04em; color: #fff; margin: 6px 0 2px; }
.hero-card .kpi small { font-size: 20px; font-weight: 500; color: rgba(245,245,247,0.6); letter-spacing: 0; }
.hero-card ul { margin-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 16px; }
.hero-card li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 14.5px; color: rgba(245,245,247,0.7); }
.hero-card li b { color: #fff; font-weight: 550; }

.hero-marquee { margin-top: clamp(48px, 7vw, 84px); }
.hero-marquee .tiny { color: rgba(245,245,247,0.45); letter-spacing: 0.1em; text-transform: uppercase; font-size: 11.5px; margin-bottom: 14px; }
.partner-row { display: flex; flex-wrap: wrap; gap: 12px 34px; align-items: center; }
.partner-row span {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 600; letter-spacing: 0.1em;
  color: rgba(245, 245, 247, 0.5);
  transition: color 0.3s;
}
.partner-row span:hover { color: rgba(245, 245, 247, 0.9); }

/* ---------- Cards & Grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(24px, 3vw, 34px);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: transparent; }
.card p { color: var(--text-2); margin-top: 12px; font-size: 15.5px; line-height: 1.5; }
.card .h3 { letter-spacing: -0.02em; }
.card-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--navy-600), var(--navy));
  color: #fff;
  margin-bottom: 20px;
}
.card-icon svg { width: 23px; height: 23px; }
.card-icon--gold { background: linear-gradient(140deg, var(--gold-soft), var(--gold)); color: #1a1508; }

.card--feature { display: flex; flex-direction: column; gap: 4px; }
.card--dark { background: var(--navy); color: #f5f5f7; border-color: transparent; }
.card--dark p { color: rgba(245, 245, 247, 0.72); }
.card--dark .h3 { color: #fff; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag {
  font-size: 12.5px;
  padding: 5px 11px;
  border-radius: 980px;
  background: rgba(127, 127, 127, 0.12);
  color: var(--text-2);
  letter-spacing: -0.005em;
}
.tag--gold { background: rgba(201, 162, 39, 0.15); color: var(--gold); }

.checklist li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0;
  font-size: 15.5px;
  color: var(--text-2);
  border-bottom: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "";
  flex: none;
  width: 19px; height: 19px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23181206' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checklist li b { color: var(--text); font-weight: 550; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
@media (max-width: 780px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 4px; } }
.stat { padding: 8px 18px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 780px) { .stat:nth-child(odd) { border-left: 0; padding-left: 0; } }
.stat-num { font-family: var(--font-display); font-size: clamp(32px, 4.2vw, 48px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.stat-label { font-size: 14px; color: var(--text-2); margin-top: 10px; line-height: 1.4; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 72px); align-items: center; }
.split--wide-left { grid-template-columns: 1.1fr 0.9fr; }
@media (max-width: 900px) { .split, .split--wide-left { grid-template-columns: 1fr; } }

.visual {
  border-radius: var(--radius-xl);
  padding: clamp(26px, 3.4vw, 40px);
  background: var(--bg-tint);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.section--tint .visual { background: var(--bg-elev); }
.visual--dark,
.section--tint .visual--dark {
  background: linear-gradient(150deg, #12294a, #06111f);
  border-color: transparent;
  color: #f5f5f7;
}
.visual--dark .h3 { color: #fff; }
.visual--dark .small, .visual--dark p { color: rgba(245, 245, 247, 0.72); }

/* ---------- Porträt ---------- */
.portrait {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  background: linear-gradient(150deg, #12294a, #06111f);
  box-shadow: var(--shadow-m);
  max-width: 460px;
}
.portrait img { width: 100%; height: auto; display: block; }
.portrait::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 38%;
  background: linear-gradient(180deg, transparent, rgba(4, 12, 23, 0.55));
  pointer-events: none;
}
@media (max-width: 900px) { .portrait { max-width: 320px; } }

/* ---------- Rechner ---------- */
.calc {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-m);
  overflow: hidden;
}
.calc-tabs {
  display: flex;
  gap: 4px;
  padding: 8px;
  background: var(--bg-tint);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.calc-tabs::-webkit-scrollbar { display: none; }
.calc-tab {
  flex: 1 1 0;
  min-width: 150px;
  border: 0;
  background: transparent;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}
.calc-tab:hover { color: var(--text); }
.calc-tab[aria-selected="true"] {
  background: var(--bg-elev);
  color: var(--text);
  box-shadow: var(--shadow-s);
}
.calc-panel { padding: clamp(24px, 3.4vw, 40px); }
.calc-panel[hidden] { display: none; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(28px, 4vw, 52px); align-items: start; }
@media (max-width: 880px) { .calc-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 22px; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 9px; }
.field label { font-size: 14px; color: var(--text-2); letter-spacing: -0.005em; }
.field-val {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.field input[type="number"] {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line-strong);
  background: var(--bg-inset);
  color: var(--text);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.2s, box-shadow 0.2s;
  -moz-appearance: textfield;
}
.field input[type="number"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: var(--line-strong);
  outline: none;
  margin: 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22), 0 3px 8px rgba(0, 0, 0, 0.12);
  cursor: grab;
  transition: transform 0.15s var(--ease);
}
input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.12); cursor: grabbing; }
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 0.5px solid rgba(0,0,0,0.1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.22);
  cursor: grab;
}

.seg {
  display: flex;
  padding: 2px;
  background: rgba(127, 127, 127, 0.14);
  border-radius: 10px;
  gap: 2px;
}
.seg button {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.22s var(--ease), color 0.22s;
}
.seg button[aria-pressed="true"] { background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow-s); font-weight: 500; }

.result-hero {
  background: linear-gradient(150deg, #12294a, #06111f);
  color: #fff;
  border-radius: var(--radius-l);
  padding: clamp(24px, 3vw, 32px);
  margin-bottom: 20px;
}
.result-hero .tiny { color: rgba(245, 245, 247, 0.6); }
.result-big {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 60px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 8px 0 4px;
  font-variant-numeric: tabular-nums;
}
.result-note { font-size: 14.5px; color: rgba(245, 245, 247, 0.72); }

.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
@media (max-width: 560px) { .result-grid { grid-template-columns: 1fr 1fr; } }
.result-cell { background: var(--bg-elev); padding: 16px 18px; }
.result-cell .tiny { margin-bottom: 6px; }
.result-cell b {
  display: block;
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.chart-wrap { margin-top: 22px; background: var(--bg-inset); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px 16px 10px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; padding-inline: 4px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; display: block; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .axis-label { fill: var(--text-3); font-size: 10px; font-family: var(--font-text); }

.calc-note {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--bg-inset);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.55;
}

/* ---------- Rentenlücken-Assistent ---------- */
.wizard { max-width: 780px; margin-inline: auto; }
.wiz-progress { margin-bottom: clamp(28px, 4vw, 44px); }
.wiz-bar { height: 3px; border-radius: 3px; background: var(--line-strong); overflow: hidden; }
.wiz-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--navy-400), var(--gold)); transition: width 0.5s var(--ease); }
.wiz-steps { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; }
.wiz-steps li {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-3);
  transition: color 0.3s;
}
.wiz-steps li b {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(127, 127, 127, 0.16);
  font-size: 11.5px; font-weight: 600; font-family: var(--font-display);
  transition: background 0.3s, color 0.3s;
}
.wiz-steps li.is-active { color: var(--text); }
.wiz-steps li.is-active b { background: var(--gold); color: #16120a; }
.wiz-steps li.is-done b { background: var(--navy-400); color: #fff; }
@media (max-width: 640px) {
  .wiz-steps li span, .wiz-steps li { font-size: 0; gap: 0; }
  .wiz-steps li b { font-size: 11.5px; }
}

.wiz-step { animation: wizIn 0.45s var(--ease); }
@keyframes wizIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.wiz-q { letter-spacing: -0.035em; }
.wiz-fields { margin-top: 30px; }
.wiz-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 520px) { .wiz-two { grid-template-columns: 1fr; } }
.wiz-hint {
  font-size: 14px; color: var(--text-2);
  background: var(--bg-inset); border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 12px 14px;
}
.wiz-hint b { color: var(--text); font-weight: 600; }
.wiz-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line);
}
.wiz-count { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.btn:disabled { opacity: 0.35; pointer-events: none; }

.wiz-result-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }

.gap-bars { margin-top: 22px; display: grid; gap: 16px; }
.gap-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--text-2); margin-bottom: 7px; }
.gap-label b { font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.gap-label b.gold, .gap-label .gold { color: var(--gold); }
.gap-track { height: 12px; border-radius: 8px; background: rgba(127, 127, 127, 0.14); overflow: hidden; }
.gap-fill { height: 100%; border-radius: 8px; width: 0; transition: width 0.7s var(--ease); }
.gap-fill--target { background: linear-gradient(90deg, #4a5568, #2e373f); }
html[data-theme="dark"] .gap-fill--target { background: linear-gradient(90deg, #8e8e93, #c7c7cc); }
.gap-fill--pension { background: linear-gradient(90deg, #2b5a99, #173963); }
.gap-fill--own { background: linear-gradient(90deg, #34c759, #1f8a3d); }
.gap-fill--gap { background: linear-gradient(90deg, var(--gold-soft), var(--gold)); }

.calc-cta {
  margin-top: 20px;
  background: var(--bg-inset);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 22px 24px;
}
.calc-cta-num {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 42px);
  font-weight: 600; letter-spacing: -0.04em;
  color: var(--gold);
  margin: 6px 0 6px;
  font-variant-numeric: tabular-nums;
}

/* ---------- Themen / News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .news-grid { grid-template-columns: 1fr; } }

.news-card {
  display: flex; flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 26px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.news-kicker {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 980px;
  background: rgba(201, 162, 39, 0.16); color: var(--gold);
}
.news-kicker--blue { background: rgba(11, 92, 213, 0.13); color: var(--accent); }
.news-kicker--green { background: rgba(52, 199, 89, 0.15); color: #1f8a3d; }
html[data-theme="dark"] .news-kicker--green { color: #4cd964; }
.news-date { font-size: 12.5px; color: var(--text-3); }
.news-card h3 { font-size: 20px; letter-spacing: -0.025em; }
.news-card p { font-size: 15px; color: var(--text-2); margin-top: 10px; flex: 1; }
.news-fact {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 10px;
}
.news-fact b {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 600; letter-spacing: -0.035em;
  white-space: nowrap; flex: none;
}
.news-fact span { font-size: 13px; color: var(--text-3); line-height: 1.35; }
.news-src { margin-top: 14px; font-size: 12px; }
.news-src a { color: var(--text-3); }

/* ---------- Werdegang ---------- */
.cv {
  margin-top: clamp(52px, 7vw, 88px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.cv-head { max-width: 720px; margin-bottom: clamp(34px, 4vw, 50px); }
.cv-head .h2 { margin-top: 4px; }
.cv-list { counter-reset: cv; }
.cv-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 24px;
  padding-bottom: 34px;
  position: relative;
}
.cv-item::before {
  content: "";
  position: absolute;
  left: 21.5px; top: 50px; bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, var(--line-strong), var(--line));
}
.cv-item:last-child { padding-bottom: 0; }
.cv-item:last-child::before { display: none; }
.cv-marker {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  background: var(--bg);
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em;
  color: var(--gold);
}
.section--tint .cv-marker { background: var(--bg-tint); }
.cv-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 9px; }
.cv-body p { color: var(--text-2); font-size: 15.5px; line-height: 1.58; max-width: 66ch; }
.cv-body p b { color: var(--text); font-weight: 550; }
.cv-body .tag-list { margin-top: 14px; }
.cv-badge {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 980px;
  background: rgba(127, 127, 127, 0.13);
  color: var(--text-2);
}
.cv-badge--gold { background: rgba(201, 162, 39, 0.16); color: var(--gold); }

/* Partner-Logos */
.cv-logos { display: flex; flex-wrap: wrap; gap: 10px; margin: 2px 0 14px; }
.cv-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  padding: 0 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.cv-logo img { height: 26px; width: auto; max-width: 150px; object-fit: contain; }
/* nahezu quadratische Logos brauchen mehr Höhe, um lesbar zu bleiben */
.cv-logo--sq img { height: 40px; max-width: 96px; }
html[data-theme="dark"] .cv-logo { border-color: rgba(255, 255, 255, 0.16); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .cv-logo { border-color: rgba(255, 255, 255, 0.16); }
}
@media (max-width: 560px) {
  .cv-logo { height: 48px; padding: 0 13px; }
  .cv-logo img { height: 21px; max-width: 112px; }
  .cv-logo--sq img { height: 32px; max-width: 76px; }
}
@media (max-width: 560px) {
  .cv-item { grid-template-columns: 34px 1fr; gap: 16px; }
  .cv-marker { width: 34px; height: 34px; font-size: 11px; }
  .cv-item::before { left: 16.5px; top: 40px; }
}

/* ---------- Timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
@media (max-width: 900px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 26px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em;
  color: var(--gold);
}
.step::after {
  content: ""; position: absolute; top: 8px; left: 0; right: -26px; height: 1px;
  background: var(--line);
}
.step:last-child::after { right: 0; }
.step h3 { margin-top: 14px; font-size: 19px; }
.step p { margin-top: 9px; font-size: 15px; color: var(--text-2); }

/* ---------- Accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 2px;
  background: transparent; border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}
.acc-icon { flex: none; width: 22px; height: 22px; position: relative; }
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; inset: 50% 0 auto 0;
  height: 1.6px; background: var(--text-2); border-radius: 2px;
  transition: transform 0.32s var(--ease);
}
.acc-icon::after { transform: rotate(90deg); }
.acc-item.is-open .acc-icon::after { transform: rotate(0deg); }
.acc-body { overflow: hidden; height: 0; transition: height 0.36s var(--ease); }
.acc-body-inner { padding: 0 2px 26px; max-width: 78ch; color: var(--text-2); font-size: 16px; line-height: 1.6; }
.acc-body-inner p + p { margin-top: 14px; }
.acc-body-inner b { color: var(--text); font-weight: 550; }

/* ---------- Kontakt ---------- */
.contact-card {
  background: linear-gradient(150deg, #14345c 0%, #0a1a2f 60%, #050e1a 100%);
  color: #f5f5f7;
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,0.4), transparent 68%);
  filter: blur(70px); top: -180px; right: -120px;
}
.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 4vw, 56px); position: relative; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card .h2, .contact-card .h3 { color: #fff; }
.contact-card p { color: rgba(245, 245, 247, 0.74); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 12.5px; color: rgba(245, 245, 247, 0.6); margin-bottom: 6px; letter-spacing: 0.02em; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-s);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.form-field textarea { resize: vertical; min-height: 96px; }
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(245, 245, 247, 0.38); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--gold); background: rgba(255, 255, 255, 0.11);
}
.form-field select option { color: #1d1d1f; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: rgba(245,245,247,0.62); line-height: 1.5; margin: 6px 0 18px; }
.consent input { margin-top: 3px; accent-color: var(--gold); flex: none; }

.contact-list li { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.13); align-items: flex-start; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ci { flex: none; width: 20px; height: 20px; color: var(--gold-soft); margin-top: 2px; }
.contact-list .tiny { color: rgba(245,245,247,0.5); }
.contact-list a { color: #fff; }

/* ---------- Terminbuchung ---------- */
.booking {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(26px, 3.6vw, 52px);
  align-items: start;
}
@media (max-width: 940px) { .booking { grid-template-columns: 1fr; } }

.booking-facts li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.booking-facts li:last-child { border-bottom: 0; }
.booking-facts .ci { flex: none; width: 20px; height: 20px; color: var(--gold); margin-top: 3px; }
.booking-facts b {
  display: block;
  font-family: var(--font-display);
  font-size: 16.5px; font-weight: 550; letter-spacing: -0.015em;
  color: var(--text);
}
.booking-facts .tiny { margin-top: 4px; color: var(--text-2); }
.booking-side-note { margin-top: 20px; }
.booking-side-note + .booking-side-note { margin-top: 10px; }

/* Die Buchungsseite von Google ist immer hell — deshalb wird die Fläche
   nach dem Laden weiß, egal in welchem Modus die Seite läuft. */
.booking-frame {
  --booking-h: 680px;
  min-height: var(--booking-h);
  display: flex;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
  overflow: hidden;
}
.booking-frame.is-loaded { display: block; background: #fff; }
.booking-frame iframe {
  width: 100%; height: var(--booking-h);
  border: 0; display: block;
}
@media (max-width: 940px) { .booking-frame { --booking-h: 720px; } }
@media (max-width: 560px) { .booking-frame { --booking-h: 760px; } }

.booking-gate {
  margin: auto;
  padding: clamp(28px, 4vw, 46px);
  max-width: 48ch;
  text-align: center;
}
.booking-gate p { color: var(--text-2); font-size: 15.5px; line-height: 1.6; margin-top: 14px; }
.booking-gate p b { color: var(--text); font-weight: 550; }
.booking-gate-icon {
  width: 52px; height: 52px;
  margin: 0 auto 18px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--navy-600), var(--navy));
  color: var(--gold-soft);
}
.booking-gate-icon svg { width: 26px; height: 26px; }
.booking-gate-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
  margin-top: 26px;
}
.booking-gate-legal { margin-top: 18px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-tint); border-top: 1px solid var(--line); padding-block: 56px 40px; font-size: 13.5px; color: var(--text-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: 13px; letter-spacing: 0.02em; margin-bottom: 14px; color: var(--text); }
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--text); }
.footer li { padding: 5px 0; }
.footer-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between;
  font-size: 12.5px; color: var(--text-3);
}
.footer-legal { max-width: 80ch; margin-top: 20px; font-size: 11.5px; line-height: 1.6; color: var(--text-3); }

/* ---------- Reveal ---------- */
.reveal { will-change: opacity, transform; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.anim .reveal { opacity: 1; transform: none; transition: none; }
  .hero-glow { animation: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Utility ---------- */
.mt-s { margin-top: 14px; }
.mt-m { margin-top: 26px; }
.mt-l { margin-top: 44px; }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Legal pages ---------- */
.legal { padding-top: 130px; }
.legal h1 { margin-bottom: 12px; }
.legal h2 { margin-top: 44px; margin-bottom: 12px; font-size: 22px; }
.legal p, .legal li { color: var(--text-2); font-size: 16px; line-height: 1.65; }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin-top: 10px; }
.legal li { padding: 3px 0; }
.todo {
  background: rgba(201, 162, 39, 0.12);
  border: 1px dashed var(--gold);
  border-radius: 8px;
  padding: 2px 7px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* =========================================================
   VERFEINERUNG — Tiefe, Rhythmus, Bewegung
   ========================================================= */

/* ---------- Lesefortschritt ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 300;
  background: transparent;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--navy-400), var(--gold) 60%, var(--gold-soft));
  transform-origin: left;
  transition: width 0.12s linear;
}

/* ---------- Abschnitts-Navigation ---------- */
.subnav {
  position: sticky;
  top: 58px;
  z-index: 150;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid var(--line);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
html.anim .subnav { opacity: 0; transform: translateY(-8px); pointer-events: none; }
html.anim .subnav.is-on { opacity: 1; transform: none; pointer-events: auto; }
.subnav-inner {
  max-width: var(--maxw-wide);
  margin-inline: auto;
  padding: 0 var(--pad);
  height: 52px;
  display: flex;
  align-items: center;
  gap: 26px;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav-title { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; margin-right: 4px; }
.subnav-links { display: flex; gap: 22px; align-items: center; }
.subnav-links a {
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
  position: relative;
  padding: 4px 0;
  transition: color 0.25s;
}
.subnav-links a:hover { color: var(--text); text-decoration: none; }
.subnav-links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1.5px; border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s var(--ease);
}
.subnav-links a.is-active { color: var(--text); }
.subnav-links a.is-active::after { transform: scaleX(1); }
.subnav .btn { margin-left: auto; padding: 7px 17px; font-size: 13px; }
@media (max-width: 860px) { .subnav .btn, .subnav-title { display: none; } }

/* ---------- Reveal mit Tiefe ---------- */
/* Inhalt ist ohne JavaScript vollständig sichtbar.
   Erst wenn das Skript läuft, setzt html.anim die Einblendung in Gang. */
html.anim .reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.985);
  filter: blur(6px);
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease),
    filter 0.7s var(--ease);
}
html.anim .reveal.is-in { opacity: 1; transform: none; filter: none; }
.reveal[data-delay="1"] { transition-delay: 0.09s; }
.reveal[data-delay="2"] { transition-delay: 0.18s; }
.reveal[data-delay="3"] { transition-delay: 0.27s; }
.reveal[data-delay="4"] { transition-delay: 0.36s; }

/* ---------- Karten mit Haarlinien-Verlauf ---------- */
.card {
  border-radius: 28px;
  transition:
    transform 0.55s var(--ease),
    box-shadow 0.55s var(--ease),
    border-color 0.4s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(255,255,255,0.5), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
html[data-theme="dark"] .card::after { background: linear-gradient(160deg, rgba(255,255,255,0.22), transparent 42%); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .card::after { background: linear-gradient(160deg, rgba(255,255,255,0.22), transparent 42%); }
}
.card--hover:hover { transform: translateY(-6px); box-shadow: 0 2px 8px rgba(0,0,0,.06), 0 28px 64px rgba(0,0,0,.13); }
.card--hover:hover::after { opacity: 1; }
.card-icon { border-radius: 15px; transition: transform 0.5s var(--ease); }
.card--hover:hover .card-icon { transform: scale(1.08) rotate(-3deg); }

/* ---------- Statement-Panel ---------- */
.statement {
  background: linear-gradient(180deg, #05101f, #0c2246 52%, #05101f);
  color: #f5f5f7;
  padding-block: clamp(88px, 13vw, 168px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.statement::before {
  content: "";
  position: absolute;
  width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,.24), transparent 66%);
  filter: blur(80px);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}
.statement-quote {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 62px);
  line-height: 1.14;
  letter-spacing: -0.026em;
  font-weight: 600;
  max-width: 20ch;
  margin-inline: auto;
  text-align: center;
  color: #fff;
}
.statement-quote em { font-style: normal; color: var(--gold-soft); }
.statement-by {
  text-align: center;
  margin-top: 34px;
  font-size: 14.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,245,247,.55);
}

/* ---------- Kennzahlen-Band ---------- */
.band {
  background: linear-gradient(150deg, #12294a, #06111f);
  color: #f5f5f7;
  border-radius: var(--radius-xl);
  padding: clamp(34px, 4.5vw, 58px);
  position: relative;
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute; inset: auto -10% -60% auto;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,.3), transparent 68%);
  filter: blur(70px);
}
.band .stats { position: relative; }
.band .stat { border-left-color: rgba(255,255,255,.16); }
.band .stat-num { color: #fff; }
.band .stat-label { color: rgba(245,245,247,.62); }

/* ---------- Tabs mit gleitendem Indikator ---------- */
.calc-tabs { position: relative; }
.calc-tab[aria-selected="true"] { box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 18px rgba(0,0,0,.07); }

/* ---------- Hero-Feinschliff ---------- */
.hero-card {
  border-radius: 30px;
  transition: transform 0.5s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
.hero-badge { transition: background 0.3s var(--ease); }
.hero-badge:hover { background: rgba(255,255,255,.13); }

/* ---------- Bilder mit Parallaxe ---------- */
.portrait { will-change: transform; }
.portrait img { transition: transform 1.2s var(--ease); }

/* ---------- Weichere Abschnittsübergänge ---------- */
.section--tint { position: relative; }
.section--tint::before,
.section--tint::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 64px;
  pointer-events: none;
}
.section--tint::before { top: 0; background: linear-gradient(180deg, var(--bg), transparent); }
.section--tint::after { bottom: 0; background: linear-gradient(0deg, var(--bg), transparent); }

/* ---------- Buttons ---------- */
.btn {
  padding: 14px 26px;
  font-size: 16.5px;
  transition:
    transform 0.35s var(--ease),
    background 0.3s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.3s var(--ease);
}
.btn--primary:hover, .btn--gold:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.btn--gold { box-shadow: 0 6px 20px rgba(201,162,39,.28); }

/* ---------- Ergebnis-Kacheln ---------- */
.result-cell { transition: background 0.3s var(--ease); }
.result-cell:hover { background: var(--bg-inset); }
.result-hero { border-radius: 26px; box-shadow: 0 18px 44px rgba(6,17,31,.28); }

/* ---------- Nachrichtenkarten ---------- */
.news-card { border-radius: 26px; }
.news-card:hover { transform: translateY(-6px); box-shadow: 0 2px 8px rgba(0,0,0,.06), 0 26px 60px rgba(0,0,0,.12); }

@media (prefers-reduced-motion: reduce) {
  html.anim .reveal { opacity: 1; transform: none; filter: none; }
  html.anim .subnav { opacity: 1; transform: none; pointer-events: auto; }
}

/* ---------- Wappen im Statement ---------- */
.statement-crest {
  height: clamp(112px, 15vw, 178px);
  width: auto;
  margin: 0 auto clamp(30px, 4vw, 46px);
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
}
.statement .container { display: flex; flex-direction: column; align-items: center; }

/* ---------- Hero-Proportion ---------- */
.hero-grid { grid-template-columns: 1.22fr 0.78fr; }
.hero .display { font-size: clamp(42px, 5.1vw, 66px); }
.hero .lead { max-width: 30ch; font-size: clamp(18px, 1.75vw, 21px); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .display { font-size: clamp(40px, 8.4vw, 60px); }
}

/* =========================================================
   HERO — zentriert, Wappen im Zentrum
   ========================================================= */
.hero {
  min-height: 0;
  padding-top: clamp(120px, 15vh, 168px);
  padding-bottom: clamp(64px, 9vw, 108px);
  background: radial-gradient(130% 100% at 50% -10%, #16386a 0%, #0a1a2f 44%, #05101f 100%);
  display: block;
}
.hero-center { display: flex; flex-direction: column; align-items: center; text-align: center; }

.hero-crest {
  height: clamp(132px, 19vw, 224px);
  width: auto;
  margin-bottom: clamp(24px, 3.4vw, 40px);
  filter: drop-shadow(0 22px 46px rgba(0, 0, 0, 0.6));
}

.hero .display { font-size: clamp(40px, 6.6vw, 84px); max-width: 15ch; }
.hero .lead {
  max-width: 60ch;
  margin-top: 26px;
  font-size: clamp(17px, 1.65vw, 20px);
  color: rgba(245, 245, 247, 0.66);
}
.btn-row--center { justify-content: center; }
.hero-badge { margin-bottom: 26px; }

/* Teaser-Karte, quer */
.hero-teaser {
  margin-top: clamp(48px, 6vw, 76px);
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: clamp(24px, 3vw, 44px);
  align-items: center;
  text-align: left;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 26px;
  padding: clamp(24px, 3vw, 34px);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}
.hero-teaser-kicker { color: rgba(245,245,247,.5); letter-spacing: .09em; text-transform: uppercase; font-size: 11px; }
.hero-teaser .kpi {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.4vw, 54px);
  font-weight: 600; letter-spacing: -0.035em;
  color: #fff; margin: 8px 0 6px;
}
.hero-teaser .kpi small { font-size: 19px; font-weight: 500; color: rgba(245,245,247,.55); letter-spacing: 0; }
.hero-teaser-note { font-size: 14px; color: rgba(245,245,247,.6); line-height: 1.45; }
.hero-teaser-list { border-left: 1px solid rgba(255,255,255,.12); padding-left: clamp(20px, 2.4vw, 32px); }
.hero-teaser-list li { display: flex; justify-content: space-between; gap: 18px; padding: 6px 0; font-size: 14px; color: rgba(245,245,247,.62); }
.hero-teaser-list li b { color: #fff; font-weight: 550; }
.hero-teaser-cta { white-space: nowrap; }
@media (max-width: 900px) {
  .hero-teaser { grid-template-columns: 1fr; text-align: center; }
  .hero-teaser-list { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); padding-left: 0; padding-top: 14px; }
  .hero-teaser-list li { text-align: left; }
  .hero-teaser-cta { justify-self: center; }
}

.hero-marquee { margin-top: clamp(46px, 6vw, 76px); display: flex; flex-direction: column; align-items: center; }
.hero-marquee .cv-logos { justify-content: center; }
.hero-marquee .tiny { color: rgba(245,245,247,.42); letter-spacing: .12em; text-transform: uppercase; font-size: 11px; margin-bottom: 16px; }

/* Abschnittsköpfe zentriert wie bei Evers */
.section-head { margin-inline: auto; text-align: center; max-width: 780px; }
.section-head .section-sub { margin-inline: auto; }
.split .section-head, .cv-head { text-align: left; margin-inline: 0; }
.cv-head .section-sub { margin-inline: 0; }

/* ---------- Wortmarke einzeilig ---------- */
.brand-name { font-size: 16px; font-weight: 600; letter-spacing: 0.17em; white-space: nowrap; }
.brand .mark { height: 30px; }
@media (max-width: 1180px) and (min-width: 941px) { .brand-name { font-size: 14.5px; letter-spacing: 0.14em; } }

/* ---------- Bildflächen in Karten ---------- */
.card-media {
  height: clamp(150px, 17vw, 196px);
  border-radius: 18px;
  margin-bottom: 24px;
  background-color: var(--bg-tint);
  background-image: linear-gradient(145deg, #16386a, #0a1a2f);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.7s var(--ease);
}
.card--hover:hover .card-media { transform: scale(1.025); }
.card { overflow: hidden; }

/* ---------- Schnellwahl Renditeannahme ---------- */
.presets { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.presets button {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-2);
  font-size: 12px;
  letter-spacing: -0.005em;
  padding: 6px 11px;
  border-radius: 980px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.25s var(--ease), color 0.25s, background 0.25s;
}
.presets button:hover { color: var(--text); border-color: var(--text-3); }
.presets button.is-on { background: var(--navy-600); border-color: var(--navy-600); color: #fff; }
.presets .presets-hi { border-color: rgba(201, 162, 39, 0.55); color: var(--gold); }
.presets .presets-hi:hover { background: rgba(201, 162, 39, 0.1); color: var(--gold); }
.presets .presets-hi.is-on { background: var(--gold); border-color: var(--gold); color: #16120a; }

/* =========================================================
   bAV — Ablauf und eingebettetes Modul
   ========================================================= */
.bav-flow { margin-top: clamp(56px, 7vw, 92px); }

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 940px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }
.flow-step { position: relative; padding-top: 26px; border-top: 1px solid var(--line); }
.flow-num {
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em;
  color: var(--gold);
}
.flow-step h4 { margin-top: 12px; }
.flow-step p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--text-2); }

.embed { margin: clamp(40px, 5vw, 64px) 0 0; }
.embed-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(150deg, #12294a, #06111f);
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-m);
}
.embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transition: transform 0.9s var(--ease), opacity 0.5s var(--ease);
}
.embed-play {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  background: transparent; border: 0; cursor: pointer;
  color: #fff; text-align: center; padding: 24px;
}
.embed-play-icon {
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  display: grid; place-items: center;
  margin-bottom: 18px;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.embed-play-icon::after {
  content: ""; display: block;
  border-left: 20px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 6px;
}
.embed-play-label { font-family: var(--font-display); font-size: clamp(19px, 2.2vw, 25px); font-weight: 600; letter-spacing: -0.02em; }
.embed-play-sub { font-size: 14px; color: rgba(245, 245, 247, 0.65); }
.embed-frame:hover .embed-poster { transform: scale(1.03); opacity: 0.5; }
.embed-frame:hover .embed-play-icon { transform: scale(1.07); background: rgba(255, 255, 255, 0.22); }
.embed-note {
  margin-top: 16px;
  font-size: 12.5px; line-height: 1.6; color: var(--text-3);
  max-width: 78ch;
}
.embed-note b { color: var(--text-2); font-weight: 550; }
.embed-note a { margin-left: 6px; }

/* ---------- Kontaktformular ---------- */
.form-field .opt { color: rgba(245,245,247,.34); font-weight: 400; letter-spacing: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.05);
  color: rgba(245,245,247,.72);
  font-size: 13.5px; padding: 9px 15px; border-radius: 980px;
  cursor: pointer; white-space: nowrap;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s;
}
.chips button:hover { background: rgba(255,255,255,.11); color: #fff; }
.chips button[aria-pressed="true"] {
  background: var(--gold); border-color: var(--gold); color: #16120a; font-weight: 500;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-send { width: 100%; justify-content: center; position: relative; }
.form-send:disabled { opacity: .65; pointer-events: none; }
.form-spinner { display: none; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(22,18,10,.28); border-top-color: #16120a; animation: spin .7s linear infinite; }
.is-sending .form-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-hint { font-size: 12.5px; line-height: 1.55; color: rgba(245,245,247,.45); margin-top: 12px; }
.form-hint--warn { color: #ffb340; }

.form-done { text-align: center; padding: clamp(20px, 4vw, 44px) 0; }
.form-done-icon {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 20px;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23181206' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 26px no-repeat;
  animation: pop .5s var(--ease);
}
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.form-done .h3 { color: #fff; }
.form-done p { color: rgba(245,245,247,.7); margin-top: 10px; max-width: 42ch; margin-inline: auto; }

/* Nachtrag: Ablaufliste ohne Browser-Nummern, Video-Fläche ruhiger */
.flow { list-style: none; }
.embed-frame {
  background:
    radial-gradient(120% 90% at 78% 4%, rgba(201,162,39,.20) 0%, rgba(201,162,39,0) 56%),
    linear-gradient(155deg, #14335c 0%, #0a1a2f 55%, #071320 100%);
}
.embed-play { gap: 2px; }
