/* ============================================================
   Maklerwelt.NRW · Website-Design-System (site.css)
   Vollbreite-Sektionen, editoriale Typografie, Hairlines, Zahlen
   als Hauptdarsteller. Marke bleibt: Newsreader + Manrope, Indigo, Navy.
   Aufbau: Tokens → Basis → Layout → Topbar → Hero → Sektionen → Unterseiten → Footer → Motion → Breakpoints
   ============================================================ */

:root {
  --brand: #5a49f4;
  --brand-strong: #4536ea;
  --brand-soft: #eeecfe;
  --brand-line: #c9c3fb;
  --navy: #0b1424;
  --navy-2: #101c30;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --ink: #0e1420;
  --ink-2: #2a3444;
  --muted: #5b6676;
  --muted-2: #66717f;
  --line: rgba(14, 20, 32, 0.1);
  --line-strong: rgba(14, 20, 32, 0.18);
  --on-dark: #f3f6fa;
  --on-dark-2: rgba(226, 233, 242, 0.84);
  --on-dark-3: rgba(190, 203, 220, 0.72);
  --line-dark: rgba(255, 255, 255, 0.12);
  --ok: #177a52;

  --font-body: "Manrope", "IBM Plex Sans", system-ui, sans-serif;
  --font-display: "Newsreader", "Cormorant Garamond", Georgia, serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-h3: 1.375rem;
  --fs-statement: clamp(1.5rem, 1.6vw + 1rem, 2.5rem);
  --fs-h2: clamp(2rem, 2.6vw + 1rem, 3.5rem);
  --fs-hero: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --fs-num: clamp(2.75rem, 4vw + 1rem, 5rem);

  --container: 1280px;
  --gutter: 24px;
  --sec: clamp(72px, 10vw, 144px);
  --sec-sm: clamp(48px, 6vw, 88px);
  --r-ctl: 10px;
  --r-card: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(14, 20, 32, 0.04), 0 8px 24px rgba(14, 20, 32, 0.06);
  --shadow-md: 0 2px 4px rgba(14, 20, 32, 0.05), 0 20px 48px rgba(14, 20, 32, 0.12);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-std: cubic-bezier(0.2, 0, 0, 1);
  --dur-1: 160ms;
  --dur-2: 260ms;
  --dur-3: 600ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Layout ---------- */
.wrap {
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.sec {
  padding-block: var(--sec);
}

.sec--sm {
  padding-block: var(--sec-sm);
}

.sec--dark {
  background: var(--navy);
  color: var(--on-dark);
}

.sec--white {
  background: var(--surface);
}

.sec--line {
  border-top: 1px solid var(--line);
}

.sec--dark + .sec--dark {
  border-top: 1px solid var(--line-dark);
}

/* ---------- Typo-Bausteine ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(20px, 3vw, 32px);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.sec--dark .label {
  color: var(--on-dark-3);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 18ch;
}

.statement {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-statement);
  line-height: 1.22;
  letter-spacing: -0.01em;
  max-width: 30ch;
}

.statement .dim {
  color: var(--muted-2);
}

.sec--dark .statement .dim {
  color: var(--on-dark-3);
}

.copy {
  color: var(--ink-2);
  max-width: 54ch;
}

.sec--dark .copy {
  color: var(--on-dark-2);
}

.h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.head {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.head .copy {
  justify-self: end;
}

.num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-num);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums lining-nums;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--r-ctl);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--dur-1) var(--ease-std), background-color var(--dur-1) var(--ease-std), border-color var(--dur-1) var(--ease-std), color var(--dur-1) var(--ease-std), box-shadow var(--dur-1) var(--ease-std);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand-strong);
  box-shadow: 0 8px 24px rgba(69, 54, 234, 0.28);
}

.btn-secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--line-strong);
}

.sec--dark .btn-secondary,
.hero .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.06);
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: var(--fs-xs);
}

.btn .arrow {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--dur-2) var(--ease-out);
}

@media (hover: hover) {
  .btn-primary:hover {
    background: var(--brand-strong);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(69, 54, 234, 0.36);
  }

  .btn-secondary:hover {
    border-color: var(--ink);
  }

  .sec--dark .btn-secondary:hover,
  .hero .btn-secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.12);
  }

  .btn:hover .arrow {
    transform: translateX(3px);
  }
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--brand-strong);
  text-decoration: none;
}

.sec--dark .textlink {
  color: #fff;
}

.textlink .arrow {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--dur-2) var(--ease-out);
}

.textlink:hover .arrow,
.textlink:focus-visible .arrow {
  transform: translateX(3px);
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 12px;
  z-index: 30;
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  margin: 12px auto 0;
  padding: 8px 8px 8px 20px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  transition: background-color var(--dur-2) var(--ease-std), box-shadow var(--dur-2) var(--ease-std);
}

.topbar.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.015em;
  line-height: 1;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--dur-1) var(--ease-std), background-color var(--dur-1) var(--ease-std);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--ink);
  background: var(--bg);
}

.main-nav a[aria-current] {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-login {
  color: var(--ink);
  border-color: transparent;
}

.topbar-login:hover {
  background: var(--bg);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle-core {
  position: relative;
  width: 22px;
  height: 14px;
}

.nav-toggle-line {
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  border-radius: var(--r-pill);
  background: var(--ink);
  transition: transform var(--dur-2) var(--ease-out), width var(--dur-2) var(--ease-out);
}

.nav-toggle-line--top {
  top: 0;
}

.nav-toggle-line--bottom {
  bottom: 0;
  width: 14px;
}

.topbar.is-menu-open .nav-toggle-line--top {
  transform: translateY(6px) rotate(45deg);
}

.topbar.is-menu-open .nav-toggle-line--bottom {
  width: 22px;
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav-shell {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  margin-top: -72px;
  padding-top: 72px;
  display: grid;
  align-items: end;
  color: var(--on-dark);
  background: var(--navy);
  overflow: hidden;
  isolation: isolate;
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--navy);
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1400ms var(--ease-std);
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img,
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide img {
  transform: scale(1.03);
  will-change: transform;
}

.hero-stage.is-playing .hero-slide.is-active img {
  animation: heroKenBurns 10000ms var(--ease-std) forwards;
}

@keyframes heroKenBurns {
  from { transform: scale(1.03); }
  to { transform: scale(1.12) translate3d(-1%, -0.8%, 0); }
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1000ms var(--ease-std);
}

.hero-video.is-ready {
  opacity: 1;
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(11, 20, 36, 0.3) 0%, rgba(11, 20, 36, 0.25) 40%, rgba(11, 20, 36, 0.86) 100%),
    linear-gradient(90deg, rgba(11, 20, 36, 0.55) 0%, rgba(11, 20, 36, 0.15) 60%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  padding-block: clamp(56px, 8vw, 112px) clamp(48px, 6vw, 80px);
}

.hero .label {
  color: var(--on-dark-3);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-hero);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 13ch;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.hero .lead {
  margin-top: clamp(20px, 2.5vw, 32px);
  font-size: var(--fs-lg);
  color: var(--on-dark-2);
  max-width: 40ch;
}

.hero-actions {
  margin-top: clamp(28px, 3vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-foot {
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  color: var(--on-dark-3);
  font-size: var(--fs-sm);
}

.hero-foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 0;
  list-style: none;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  position: relative;
  overflow: hidden;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: width var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-std);
}

.dot.is-active {
  width: 24px;
  background: rgba(255, 255, 255, 0.85);
}

.hero-stage:has(.hero-video.is-ready) ~ .hero-inner .hero-dots {
  visibility: hidden;
}

/* Wort-Reveal der Headline */
.js [data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.js [data-split] .w > span {
  display: inline-block;
  transform: translateY(110%);
  animation: wordUp 700ms var(--ease-out) forwards;
  animation-delay: calc(120ms + var(--i, 0) * 45ms);
}

@keyframes wordUp {
  to { transform: translateY(0); }
}

/* ---------- Zeilen-Liste (nummeriert) ---------- */
.rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.sec--dark .rows {
  border-color: var(--line-dark);
}

.row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: clamp(20px, 2.6vw, 32px) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: padding-left var(--dur-2) var(--ease-out);
}

.sec--dark .row {
  border-color: var(--line-dark);
}

.row-idx {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.sec--dark .row-idx {
  color: var(--on-dark-3);
}

.row-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.4vw + 1rem, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.row-sub {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.sec--dark .row-sub {
  color: var(--on-dark-3);
}

.row-end {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
}

.row-end .arrow {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--dur-2) var(--ease-out);
}

.row-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 2vw + 1rem, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--brand-strong);
  font-variant-numeric: tabular-nums;
}

a.row:hover,
a.row:focus-visible {
  padding-left: 8px;
}

a.row:hover .row-end .arrow,
a.row:focus-visible .row-end .arrow {
  transform: translateX(4px);
}

a.row:hover .row-end {
  color: var(--ink);
}

.sec--dark a.row:hover .row-end {
  color: #fff;
}

/* ---------- Kennzahlen-Band über Bild ---------- */
.band {
  position: relative;
  color: var(--on-dark);
  background: var(--navy);
  overflow: hidden;
  isolation: isolate;
}

.band-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 20, 36, 0.84), rgba(11, 20, 36, 0.72));
}

.band .wrap {
  position: relative;
  z-index: 1;
}

.band .label {
  color: var(--on-dark-3);
}

.band .copy {
  color: var(--on-dark-2);
}

.band-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat {
  padding: clamp(24px, 2.6vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-content: space-between;
}

.stat .num {
  font-size: clamp(2.25rem, 3.1vw + 0.5rem, 3.3rem);
  letter-spacing: -0.03em;
  color: #fff;
}

.stat-label {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--on-dark-2);
  font-size: var(--fs-sm);
  line-height: 1.4;
}

.stat-note {
  display: block;
  margin-top: 4px;
  color: var(--on-dark-3);
  font-size: var(--fs-xs);
}

/* ---------- Hairline-Raster (Leistungen) ---------- */
.grid-lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.cell {
  padding: clamp(28px, 3vw, 44px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  align-content: start;
  gap: 20px;
  transition: background-color var(--dur-2) var(--ease-std);
}

.cell:hover {
  background: var(--surface);
}

.cell-icon {
  width: 48px;
  height: 48px;
  color: var(--navy);
}

.cell-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cell .h3 {
  margin-top: 8px;
}

.cell p {
  color: var(--muted);
}

/* ---------- Zahlen-Trio ---------- */
.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.trio > div {
  padding: clamp(28px, 3vw, 44px) 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
}

.trio > div + div {
  padding-left: clamp(24px, 3vw, 44px);
  border-left: 1px solid var(--line);
}

.trio .num {
  font-size: var(--fs-num);
  line-height: 1;
  color: var(--brand-strong);
}

.trio p {
  color: var(--muted);
  font-size: var(--fs-sm);
}

/* ---------- Split-Sektion (Text + Aktion) ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}

.split-aside {
  display: grid;
  gap: 24px;
  align-content: start;
  padding-top: 8px;
}

/* ---------- Editoriales Raster (Magazin) ---------- */
.editorial {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}

.story {
  display: grid;
  gap: 18px;
  text-decoration: none;
  color: inherit;
}

.story-media {
  overflow: hidden;
  border-radius: var(--r-card);
  aspect-ratio: 4 / 3;
  background: var(--surface);
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-3) var(--ease-out);
}

.story:hover .story-media img {
  transform: scale(1.04);
}

.story-kicker {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.story .h3 {
  margin-top: -8px;
}

.story:hover .h3 {
  color: var(--brand-strong);
}

/* ---------- Kontakt / CTA ---------- */
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}

.contact-lines {
  margin-top: 32px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
}

.contact-lines li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-dark);
  color: var(--on-dark-2);
}

.contact-lines span:first-child {
  color: var(--on-dark-3);
  font-size: var(--fs-sm);
}

.contact-lines a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.form {
  display: grid;
  gap: 12px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
}

.form label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--on-dark-2);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-ctl);
  background: rgba(11, 20, 36, 0.6);
  color: #fff;
}

.form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(90, 73, 244, 0.35);
}

.form .btn {
  margin-top: 8px;
}

.form-note {
  color: var(--on-dark-3);
  font-size: var(--fs-xs);
}

/* ============================================================
   Unterseiten
   ============================================================ */

/* ---------- Hero-Variante (Unterseiten) ---------- */
.hero--sub {
  min-height: min(78vh, 720px);
}

.hero--sub h1 {
  max-width: 16ch;
}

/* ---------- Editorialer Kopf (Magazin, hell) ---------- */
.edit-head {
  padding-block: clamp(40px, 6vw, 88px) clamp(32px, 4vw, 56px);
}

.edit-head h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-hero);
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.edit-head .lead {
  margin-top: clamp(20px, 2.5vw, 32px);
  font-size: var(--fs-lg);
  color: var(--ink-2);
  max-width: 60ch;
}

.edit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: clamp(24px, 3vw, 40px);
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.figure-wide {
  overflow: hidden;
  border-radius: var(--r-lg);
  aspect-ratio: 16 / 7;
  background: var(--surface);
}

.figure-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Merkmal-Streifen (6 Punkte) ---------- */
.strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.strip > div {
  padding: clamp(20px, 2.4vw, 32px) clamp(16px, 2vw, 28px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  align-content: start;
}

.strip .cell-icon {
  width: 36px;
  height: 36px;
}

.strip h3 {
  font-size: var(--fs-md);
  font-weight: 700;
}

.strip p {
  color: var(--muted);
  font-size: var(--fs-sm);
}

/* ---------- Von → Zu (Hürden vs. Vorteile) ---------- */
.swap-heads,
.swap li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 56px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.swap-heads {
  padding-bottom: 14px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}

.swap {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
}

.swap li {
  padding: clamp(18px, 2.4vw, 28px) 0;
  border-bottom: 1px solid var(--line-dark);
}

.swap-idx {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--on-dark-3);
  font-variant-numeric: tabular-nums;
}

.swap-from,
.swap-to {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.swap-from {
  font-size: clamp(1.25rem, 1vw + 0.9rem, 1.75rem);
  color: var(--on-dark-3);
}

.swap-to {
  font-size: clamp(1.5rem, 1.4vw + 1rem, 2.25rem);
  color: #fff;
}

.swap-tag {
  display: none;
  margin-bottom: 4px;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}

.swap-arrow {
  width: 28px;
  height: 28px;
  stroke: var(--brand-line);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Haken-Liste ---------- */
.checks {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

.checks svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  padding: 5px;
  border-radius: 50%;
  background: var(--brand-soft);
  stroke: var(--brand-strong);
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Laufband (Schnittstellen) ---------- */
.marquee {
  overflow: hidden;
  padding: clamp(20px, 3vw, 32px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  gap: clamp(40px, 6vw, 96px);
  padding-right: clamp(40px, 6vw, 96px);
}

.marquee-group span {
  display: inline-flex;
  align-items: center;
  gap: inherit;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2vw + 0.5rem, 2.5rem);
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--ink);
}

.marquee-group span::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Großes Zitat ---------- */
.quote-list {
  display: grid;
}

.quote-item {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-3) var(--ease-std), visibility 0s linear var(--dur-3);
}

.quote-item.is-active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.quote-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 2.4vw + 1rem, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 24ch;
}

.quote-text::before {
  content: "„";
  color: var(--brand);
}

.quote-text::after {
  content: "“";
  color: var(--brand);
}

.quote-by {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.quote-by::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--brand);
}

.quote-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(28px, 4vw, 48px);
}

.quote-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl);
  background: transparent;
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: border-color var(--dur-1) var(--ease-std), background-color var(--dur-1) var(--ease-std);
}

.quote-btn:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.quote-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quote-dots {
  display: flex;
  gap: 6px;
  margin-left: 10px;
}

.quotes .dot {
  background: var(--line-strong);
}

.quotes .dot.is-active {
  background: var(--brand);
}

.quote-count {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

/* ---------- Provisionen: editoriale Zeilen ---------- */
.plist {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.prow {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: clamp(22px, 2.8vw, 36px) 0;
  border-bottom: 1px solid var(--line);
}

.prow-note {
  color: var(--muted);
  font-size: var(--fs-sm);
  max-width: 40ch;
}

.prow-val {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}

.prow-kicker {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.prow .row-value {
  font-size: clamp(2rem, 2.6vw + 1rem, 3.75rem);
}

.legal {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 64px);
}

.legal h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: 14px;
}

.legal p,
.legal li {
  color: var(--ink-2);
  font-size: var(--fs-sm);
}

.legal p + p {
  margin-top: 12px;
}

.legal ul {
  padding-left: 18px;
  display: grid;
  gap: 12px;
}

.legal li::marker {
  color: var(--brand);
}

.legal .fine {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-xs);
}

/* ---------- Leads: Wissensabschnitte ---------- */
.topics {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.topic {
  display: grid;
  grid-template-columns: 64px minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px clamp(24px, 4vw, 64px);
  padding: clamp(28px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--line);
}

.topic-idx {
  padding-top: 0.4em;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.topic-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.6vw + 1rem, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 14ch;
}

.topic-body {
  display: grid;
  gap: 14px;
  color: var(--ink-2);
}

.topic-body ul,
.topic-body ol {
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.topic-body li::marker {
  color: var(--brand);
  font-weight: 700;
}

/* ---------- Magazin: Themenplan ---------- */
.plan-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 24px;
}

.plan {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.plan-col {
  padding: clamp(24px, 2.6vw, 36px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.plan-col h3 {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.plan-col ul {
  padding: 0;
  list-style: none;
}

.plan-col li {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.tag.is-live {
  color: var(--ok);
}

.tag.is-priority {
  color: var(--brand-strong);
}

.plan-title {
  font-weight: 700;
  line-height: 1.35;
}

.plan-title a {
  color: inherit;
  text-decoration: none;
}

.plan-title a:hover,
.plan-title a:focus-visible {
  color: var(--brand-strong);
  text-decoration: underline;
}

.plan-copy {
  color: var(--muted);
  font-size: var(--fs-sm);
}

.plan-copy a {
  color: var(--brand-strong);
}

/* ---------- Artikel ---------- */
.article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}

.prose {
  max-width: 66ch;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.prose > * + * {
  margin-top: 1.25em;
}

.prose h2 {
  margin-top: 1.6em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 1.8vw + 1rem, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.8em;
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--ink);
}

.prose ul {
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.prose li::marker {
  color: var(--brand);
}

.pullquote {
  margin: 2em 0;
  padding-left: clamp(20px, 3vw, 36px);
  border-left: 2px solid var(--brand);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.4vw + 1rem, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 32px;
}

.aside-block {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.aside-block h3 {
  margin-bottom: 12px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.aside-list {
  padding: 0;
  list-style: none;
}

.aside-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.aside-list li:first-child {
  border-top: 0;
}

.aside-list strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-lg);
  color: var(--ink);
  white-space: nowrap;
}

.aside-block p {
  color: var(--ink-2);
  font-size: var(--fs-sm);
}

.aside-block .btn {
  width: 100%;
  margin-top: 16px;
}

/* ---------- CTA-Abschluss (Unterseiten) ---------- */
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 3vw, 40px);
}

.contact-lines--top {
  margin-top: 8px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: var(--on-dark);
  border-top: 1px solid var(--line-dark);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-block: var(--sec-sm);
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}

.footer-brand-copy {
  margin-top: 16px;
  color: var(--on-dark-3);
  font-size: var(--fs-sm);
  max-width: 32ch;
}

.footer h4 {
  margin-bottom: 14px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}

.footer ul {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer ul a {
  color: var(--on-dark-2);
  text-decoration: none;
  font-size: var(--fs-sm);
}

.footer ul a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark-3);
  font-size: var(--fs-xs);
}

/* ---------- Motion ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
  transition-delay: calc(var(--d, 0) * 80ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Breakpoints ---------- */
@media (max-width: 1120px) {
  .band-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .plan {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .head,
  .split,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .head .copy {
    justify-self: start;
  }

  .grid-lines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editorial {
    grid-template-columns: 1fr;
  }

  .trio {
    grid-template-columns: 1fr;
  }

  .trio > div + div {
    padding-left: 0;
    border-left: 0;
  }

  .article {
    grid-template-columns: 1fr;
  }

  .aside {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .topic {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .topic-body {
    grid-column: 2;
  }

  .topic-title {
    max-width: none;
  }

  .legal {
    grid-template-columns: 1fr;
  }

  .prow {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }

  .prow-note {
    grid-column: 2 / -1;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 16px;
  }

  .topbar {
    top: 8px;
    margin-top: 8px;
    padding: 6px 6px 6px 16px;
  }

  .brand {
    font-size: 1.25rem;
  }

  .main-nav,
  .topbar-actions {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .mobile-nav-shell {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 70;
    pointer-events: none;
  }

  .mobile-nav-backdrop {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(11, 20, 36, 0.4);
    opacity: 0;
    cursor: pointer;
    transition: opacity var(--dur-2) var(--ease-std);
  }

  .mobile-nav {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 76px);
    left: var(--gutter);
    right: var(--gutter);
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-md);
    display: grid;
    gap: 2px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
  }

  .mobile-nav-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 16px;
    border-radius: var(--r-ctl);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-nav-link[aria-current] {
    color: var(--brand-strong);
    background: var(--brand-soft);
  }

  .mobile-nav-login {
    margin-top: 8px;
    border-top: 1px solid var(--line);
    border-radius: 0 0 var(--r-ctl) var(--r-ctl);
    padding-top: 10px;
    color: var(--muted);
  }

  .mobile-nav-cta {
    margin-top: 8px;
    width: 100%;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .mobile-nav-shell {
    pointer-events: auto;
  }

  body.nav-open .mobile-nav-backdrop {
    opacity: 1;
  }

  body.nav-open .mobile-nav {
    opacity: 1;
    transform: none;
  }

  .hero {
    min-height: min(88vh, 720px);
  }

  .hero h1 {
    max-width: none;
  }

  .hero-actions .btn {
    flex: 1 1 calc(50% - 6px);
    padding: 0 12px;
  }

  .hero-video {
    display: none;
  }

  .row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px 16px;
  }

  .row-end {
    grid-column: 2;
  }

  .row-value {
    grid-column: 2;
  }

  .band-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .stat {
    padding: 18px;
    gap: 28px;
  }

  .stat .num {
    font-size: clamp(1.75rem, 6.5vw, 2.75rem);
  }

  .grid-lines {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero--sub {
    min-height: min(72vh, 600px);
  }

  .strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .swap-heads {
    display: none;
  }

  .swap li {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px 16px;
  }

  .swap-arrow {
    display: none;
  }

  .swap-to {
    grid-column: 2;
  }

  .swap-tag {
    display: block;
  }

  .marquee-group span {
    font-size: 1.5rem;
  }

  .quote-count {
    display: none;
  }

  .plan {
    grid-template-columns: 1fr;
  }

  .prow {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .prow-val {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }

  .prow-note {
    grid-column: 2;
  }

  .aside {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .band-grid {
    grid-template-columns: 1fr;
  }

  .stat .num {
    font-size: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js [data-split] .w > span {
    transform: none;
    animation: none;
  }

  .hero-slide {
    transition: none;
  }

  .hero-stage.is-playing .hero-slide.is-active img {
    animation: none;
  }

  .hero-video {
    display: none;
  }

  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .marquee-track {
    width: auto;
    animation: none;
  }

  .marquee-group {
    flex-wrap: wrap;
    padding-right: 0;
  }

  .marquee-group[aria-hidden="true"] {
    display: none;
  }

  .quote-item {
    transition: none;
  }

  .btn,
  .row,
  .story-media img,
  .mobile-nav,
  .mobile-nav-backdrop,
  .dot {
    transition: none !important;
  }
}
