/* ==========================================================================
   RAVN Immobilienverwaltung GmbH — Design System
   Seriöse CI: Anthrazit, Off-White, tiefes Marineblau. Kein Gold.
   ========================================================================== */

:root {
  /* Core surfaces */
  --bg:           #fbfbfd;
  --bg-elev:     #ffffff;
  --bg-dark:     #0a0a0c;
  --bg-dark-2:   #131316;

  /* Ink */
  --ink:         #1d1d1f;
  --ink-2:       #2d2d31;
  --muted:       #6e6e73;
  --muted-2:     #86868b;
  --line:        #d2d2d7;
  --line-soft:   #e8e8ed;

  /* Accent — exact RAVN logo navy + soft petrol from wordmark detail */
  --accent:           #182848;
  --accent-2:         #233a64;
  --accent-tint:      rgba(24, 40, 72, 0.08);
  --accent-soft:      #287868;
  --accent-soft-tint: rgba(40, 120, 104, 0.10);

  /* On dark */
  --ink-on-dark:    #f5f5f7;
  --muted-on-dark:  #a1a1a6;
  --line-on-dark:   rgba(255,255,255,0.10);

  /* Layout */
  --container:   1240px;
  --gutter:      clamp(20px, 4vw, 40px);
  --radius:      18px;
  --radius-lg:   28px;

  /* Type scale */
  --display-1:   clamp(48px, 8.2vw, 112px);
  --display-2:   clamp(38px, 5.6vw, 76px);
  --h2:          clamp(32px, 4.4vw, 60px);
  --h3:          clamp(22px, 2vw, 28px);
  --body:        17px;
  --body-lg:     20px;
  --eyebrow:     13px;

  /* Motion */
  --ease:        cubic-bezier(.2,.7,.2,1);
  --ease-soft:   cubic-bezier(.22,.61,.36,1);
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--body);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; }

::selection { background: var(--accent); color: #fff; }

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section--dark {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
}
.section--dark .muted { color: var(--muted-on-dark); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: var(--eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 28px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--accent-soft);
  flex-shrink: 0;
}
.section--dark .eyebrow { color: var(--muted-on-dark); }

.display {
  font-size: var(--h2);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  max-width: 18ch;
}
.display .muted {
  color: var(--muted);
  font-weight: 500;
}

.section__header { margin-bottom: clamp(48px, 7vw, 96px); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink);
  color: #fff;
}
.btn--primary:hover { background: var(--accent); transform: translateY(-1px); }

.btn--ghost {
  color: var(--ink);
  border: 1px solid transparent;
}
.btn--ghost:hover { color: var(--accent); }
.btn--ghost span { transition: transform .3s var(--ease); display: inline-block; }
.btn--ghost:hover span { transform: translateX(4px); }

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s var(--ease), backdrop-filter .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(251, 251, 253, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line-soft);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
}
.nav__brand { display: inline-flex; align-items: center; }
.nav__logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.18em;
  color: var(--ink);
}
.nav__links {
  display: flex;
  gap: 32px;
  justify-self: center;
}
.nav__links a {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
  transition: color .25s var(--ease);
}
.nav__links a:hover { color: var(--accent); }

.nav__cta {
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background .25s var(--ease);
}
.nav__cta:hover { background: var(--accent); }

.nav__burger {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav__burger span {
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  background: rgba(251, 251, 253, 0.96);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--line-soft);
  padding: 12px var(--gutter);
}
.nav__mobile a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 17px;
  font-weight: 500;
}
.nav__mobile a:last-child { border-bottom: 0; }

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__mobile.is-open { display: flex; }
  .nav__inner { grid-template-columns: 1fr auto; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
  overflow: hidden;
  background: #0a0a0c;
}

/* Hero with media (cinematic background video) */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(10,10,12,.55) 0%,
    rgba(10,10,12,.40) 35%,
    rgba(10,10,12,.65) 75%,
    rgba(10,10,12,.85) 100%);
}
.hero--media { color: #fff; }
.hero--media .eyebrow { color: rgba(255,255,255,0.78); }
.hero--media .eyebrow::before { background: var(--accent-soft); }
.hero--media .hero__title { color: #fff; }
.hero--media .hero__lede { color: rgba(255,255,255,0.82); }
.hero--media .btn--primary { background: #fff; color: var(--ink); }
.hero--media .btn--primary:hover { background: var(--accent-soft); color: #fff; }
.hero--media .btn--ghost { color: #fff; }
.hero--media .btn--ghost:hover { color: var(--accent-soft); }
.hero--media .hero__meta { border-top-color: rgba(255,255,255,0.18); }
.hero--media .hero__meta div { border-left-color: rgba(255,255,255,0.18); }
.hero--media .hero__meta strong { color: #fff; }
.hero--media .hero__meta strong sup { color: var(--accent-soft); }
.hero--media .hero__meta span { color: rgba(255,255,255,0.7); }
.hero--media .hero__meta-note { color: rgba(255,255,255,0.55); }
.hero__bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(29,29,31,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(29,29,31,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
}
.hero__glow {
  position: absolute;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 1100px; height: 700px;
  background: radial-gradient(ellipse at center, rgba(24,40,72,0.18), transparent 60%);
  filter: blur(20px);
}

.hero__content { position: relative; }

.hero__title {
  font-size: var(--display-1);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  max-width: 14ch;
  margin-bottom: 32px;
}
.hero__lede {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 44px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.hero__meta {
  margin-top: clamp(40px, 5vw, 64px);
  display: inline-flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.hero__meta div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 clamp(20px, 2.4vw, 32px);
  border-left: 1px solid var(--line);
}
.hero__meta div:first-child {
  padding-left: 0;
  border-left: 0;
}
.hero__meta strong {
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.hero__meta strong sup {
  font-size: 0.55em;
  font-weight: 500;
  margin-left: 1px;
  color: var(--accent-soft);
  vertical-align: super;
  letter-spacing: 0;
}
.hero__meta span {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.005em;
  line-height: 1.3;
}
.hero__meta-note {
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
  font-style: italic;
}

.hero__scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex; justify-content: center;
  padding-top: 6px;
}
.hero__scroll span {
  width: 2px; height: 6px;
  background: var(--muted);
  border-radius: 2px;
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0%   { transform: translateY(0); opacity: 1; }
  60%  { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@media (max-width: 640px) {
  .hero__meta { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero__scroll { display: none; }
}

/* ==========================================================================
   Philosophy
   ========================================================================== */

.philosophy {
  padding: clamp(120px, 16vw, 200px) 0;
}
.philosophy__lede {
  margin-top: 32px;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.5;
}

/* ==========================================================================
   Roots (sister companies)
   ========================================================================== */

.roots {
  padding: clamp(80px, 10vw, 140px) 0 clamp(40px, 6vw, 80px);
}
.roots__lede {
  margin-top: 24px;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.55;
}
.roots__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2vw, 28px);
}
@media (max-width: 980px) { .roots__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .roots__grid { grid-template-columns: 1fr; } }

.root-card {
  display: block;
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.root-card::before {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 3px; height: 100%;
  background: var(--accent-soft);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .5s var(--ease);
}
.root-card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: 0 24px 48px -24px rgba(10, 10, 12, 0.12);
}
.root-card:hover::before { transform: scaleY(1); }

.root-card__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 500;
}
.root-card__title {
  font-size: clamp(24px, 2.2vw, 30px);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--ink);
}
.root-card__desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 42ch;
}
.root-card__link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}
.root-card__link span {
  transition: transform .3s var(--ease);
  display: inline-block;
}
.root-card:hover .root-card__link span { transform: translateX(4px); }

/* ==========================================================================
   Services
   ========================================================================== */

.services {
  padding: clamp(120px, 16vw, 200px) 0;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2vw, 28px);
}
@media (max-width: 760px) {
  .services__grid { grid-template-columns: 1fr; }
}
.service {
  position: relative;
  padding: clamp(32px, 4vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--bg-dark-2);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform .5s var(--ease), border-color .5s var(--ease), background .5s var(--ease);
  overflow: hidden;
}
.service::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(24,40,72,0.22), transparent 50%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.service:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.14); }
.service:hover::before { opacity: 1; }
.service__index {
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--accent-soft);
  margin-bottom: 28px;
  font-weight: 500;
}
.service__title {
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 14px;
  letter-spacing: -0.025em;
}
.service__claim {
  color: var(--muted-on-dark);
  font-size: 17px;
  margin-bottom: 28px;
  max-width: 36ch;
}
.service__list { display: flex; flex-direction: column; gap: 10px; }
.service__list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-on-dark);
  font-size: 15px;
  line-height: 1.55;
}
.service__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 10px; height: 1px;
  background: var(--muted-on-dark);
}

/* ==========================================================================
   Pillars
   ========================================================================== */

.pillars {
  padding: clamp(120px, 16vw, 200px) 0;
}
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
@media (max-width: 860px) { .pillars__grid { grid-template-columns: 1fr; } }
.pillar {
  border-top: 1px solid var(--ink);
  padding-top: 28px;
}
.pillar__num {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--accent-soft);
  margin-bottom: 24px;
  font-weight: 500;
}
.pillar h3 {
  font-size: clamp(28px, 2.6vw, 36px);
  margin-bottom: 12px;
  letter-spacing: -0.025em;
}
.pillar__lede {
  font-size: 18px;
  color: var(--ink-2);
  margin-bottom: 14px;
  font-weight: 500;
}
.pillar p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* ==========================================================================
   Numbers
   ========================================================================== */

.numbers {
  padding: clamp(120px, 16vw, 200px) 0;
}
.numbers__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
@media (max-width: 860px) { .numbers__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .numbers__grid { grid-template-columns: 1fr; } }

.numbers__item {
  border-top: 1px solid var(--line-on-dark);
  padding-top: 28px;
}
.numbers__value {
  font-size: clamp(32px, 3.2vw, 46px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink-on-dark);
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.numbers__label {
  color: var(--muted-on-dark);
  font-size: 15px;
  line-height: 1.5;
  max-width: 22ch;
}

/* ==========================================================================
   Process
   ========================================================================== */

.process { padding: clamp(120px, 16vw, 200px) 0; }
.process__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.process__step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(28px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background .4s var(--ease);
}
.process__step:hover { background: var(--accent-soft-tint); }
.process__num {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.process__body h3 {
  font-size: clamp(24px, 2.4vw, 34px);
  margin-bottom: 12px;
  letter-spacing: -0.025em;
}
.process__body p {
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.6;
  font-size: 17px;
}
@media (max-width: 640px) {
  .process__step { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Team
   ========================================================================== */

.team { padding: clamp(120px, 16vw, 200px) 0; }
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
@media (max-width: 860px) { .team__grid { grid-template-columns: 1fr; } }
.member {
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.member:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: 0 24px 48px -24px rgba(10,10,12,0.12);
}
.member__portrait {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #182848, #0a0a0c);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 28px;
}
.member h3 {
  font-size: 22px;
  margin-bottom: 4px;
  letter-spacing: -0.015em;
}
.member__role {
  font-size: 14px;
  color: var(--accent-soft);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
.member__bio {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ==========================================================================
   Quotes
   ========================================================================== */

.quotes { padding: clamp(120px, 16vw, 200px) 0; }
.quotes__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}
@media (max-width: 760px) { .quotes__grid { grid-template-columns: 1fr; } }
.quote {
  margin: 0;
  padding: clamp(28px, 3vw, 44px);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-lg);
  background: var(--bg-dark-2);
}
.quote blockquote {
  margin: 0 0 20px;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--ink-on-dark);
}
.quote figcaption {
  color: var(--muted-on-dark);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================================================
   Fit (Zielgruppe)
   ========================================================================== */

.fit { padding: clamp(120px, 16vw, 200px) 0; }
.fit__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 860px) { .fit__inner { grid-template-columns: 1fr; } }
.fit__copy p { color: var(--muted); max-width: 50ch; margin-top: 24px; line-height: 1.6; }
.fit__list { border-top: 1px solid var(--line); }
.fit__list li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: -0.005em;
  transition: padding .3s var(--ease), color .3s var(--ease);
}
.fit__list li::after {
  content: "→";
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.fit__list li:hover { padding-left: 8px; color: var(--accent); }
.fit__list li:hover::after { opacity: 1; transform: translateX(0); }

/* ==========================================================================
   CTA
   ========================================================================== */

.cta {
  padding: clamp(120px, 16vw, 200px) 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 1000px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(24,40,72,0.12), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.cta__lede {
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px);
  max-width: 56ch;
  line-height: 1.55;
}
.cta__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2vw, 28px);
  position: relative;
}
@media (max-width: 860px) { .cta__grid { grid-template-columns: 1fr; } }
.cta__card {
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.cta__card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: 0 24px 48px -24px rgba(10,10,12,0.12);
}
.cta__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 500;
}
.cta__value {
  display: block;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.25;
}
.cta__value--small { font-size: clamp(18px, 1.4vw, 22px); }
a.cta__value:hover { color: var(--accent); }
.cta__hint {
  color: var(--muted);
  font-size: 14px;
}

/* Contact form (Formspree) */
.cta__form {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 3.6vw, 48px);
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -30px rgba(10, 10, 12, 0.12);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cta__form input[type=text],
.cta__form input[type=email],
.cta__form input[type=tel],
.cta__form select,
.cta__form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.cta__form input:focus,
.cta__form select:focus,
.cta__form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-tint);
}
.cta__form input::placeholder,
.cta__form textarea::placeholder {
  color: var(--muted-2);
}
.cta__form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' width='12' height='8'><path fill='none' stroke='%236e6e73' stroke-width='1.6' d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.cta__form textarea {
  resize: vertical;
  min-height: 120px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 500;
}
.field > span em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted-2);
  font-weight: 400;
  margin-left: 4px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.cta__form input[name=_gotcha] {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
  margin-top: 4px;
}
.checkbox input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.checkbox input:checked {
  background: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12'><path fill='none' stroke='white' stroke-width='2' d='M2.5 6.5l2.5 2.5L9.5 4'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}
.checkbox input:focus {
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-tint);
}
.checkbox a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cta__form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.cta__form-note {
  font-size: 13px;
  color: var(--muted);
}

.cta__alt { margin-top: clamp(56px, 7vw, 96px); position: relative; }
.cta__alt-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cta__alt-eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--accent-soft);
  flex-shrink: 0;
}
.cta__alt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  position: relative;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
@media (max-width: 760px) { .cta__alt-grid { grid-template-columns: 1fr; } }
.cta__alt-grid > div { display: flex; flex-direction: column; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  padding: clamp(64px, 8vw, 96px) 0 32px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line-on-dark);
}
@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer__inner { grid-template-columns: 1fr; }
}
.footer__brand .nav__logo { color: #fff; }
.footer__brand p {
  margin-top: 14px;
  color: var(--muted-on-dark);
  font-size: 14px;
  line-height: 1.6;
}
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-on-dark);
  font-weight: 500;
  margin-bottom: 8px;
}
.footer__col a {
  color: var(--ink-on-dark);
  font-size: 14px;
  transition: color .25s var(--ease);
}
.footer__col a:hover { color: #fff; }
.footer__base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 32px;
  color: var(--muted-on-dark);
  font-size: 13px;
}

/* ==========================================================================
   Reveal animations
   ========================================================================== */

/* Brand assets */
.nav__brand-stack {
  position: relative;
  display: block;
  line-height: 0;
}
.nav__logo-img {
  height: 68px;
  width: auto;
  display: block;
  transition: opacity .35s var(--ease);
}
.nav__logo-img--light {
  position: absolute;
  inset: 0;
}
.nav:not(.is-scrolled) .nav__logo-img--dark { opacity: 0; }
.nav.is-scrolled .nav__logo-img--light { opacity: 0; }
.nav__brand:hover .nav__logo-img { opacity: .85; }

/* Light state — over dark hero/video */
.nav:not(.is-scrolled) .nav__links a { color: rgba(255,255,255,0.85); }
.nav:not(.is-scrolled) .nav__links a:hover { color: #fff; }
.nav:not(.is-scrolled) .nav__cta {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.nav:not(.is-scrolled) .nav__cta:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.35);
}
.nav:not(.is-scrolled) .nav__burger span { background: #fff; }
.footer__logo {
  height: 48px;
  width: auto;
  display: block;
  margin-bottom: 4px;
}

/* Philosophy 2-col layout */
.philosophy__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 860px) { .philosophy__inner { grid-template-columns: 1fr; } }
.philosophy__copy { max-width: 54ch; }
.philosophy__visual {
  margin: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  box-shadow: 0 30px 60px -30px rgba(10,10,12,0.18);
}
.philosophy__visual img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 1 / 1; object-fit: cover;
}
.philosophy__visual figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 18px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff;
  background: linear-gradient(to top, rgba(10,10,12,0.65), transparent);
  font-weight: 500;
}

/* Team portrait override (image-based) */
.member { padding: 0; overflow: hidden; }
.member__portrait {
  width: 100%; height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
  background: #eef0f3;
  margin-bottom: 0;
}
.member__portrait img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .8s var(--ease);
}
.member:hover .member__portrait img { transform: scale(1.04); }
.member > h3 { padding: clamp(24px, 2.4vw, 32px) clamp(24px, 2.4vw, 32px) 0; }
.member > .member__role { padding: 0 clamp(24px, 2.4vw, 32px); }
.member > .member__bio { padding: 0 clamp(24px, 2.4vw, 32px) clamp(28px, 3vw, 40px); }

/* ==========================================================================
   Magazin
   ========================================================================== */

.magazine { padding: clamp(120px, 16vw, 200px) 0; }

/* Magazin overview intro: two-col header with editorial visual */
.magazine__intro {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  margin-bottom: clamp(56px, 7vw, 96px);
}
@media (max-width: 860px) {
  .magazine__intro { grid-template-columns: 1fr; }
}
.magazine__intro-copy { max-width: 56ch; }
.magazine__intro-lede {
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px);
  max-width: 60ch;
  line-height: 1.55;
}
.magazine__intro-visual {
  margin: 0;
  justify-self: end;
}
.magazine__intro-visual img {
  width: 100%;
  height: auto;
  display: block;
  /* Blends the photographic white background with the page so the raven
     appears to float free, no visible frame */
  mix-blend-mode: multiply;
}
@media (max-width: 860px) {
  .magazine__intro-visual {
    justify-self: center;
    max-width: 480px;
    width: 100%;
  }
}
.magazine__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.magazine__more {
  flex-shrink: 0;
  border: 1px solid var(--line);
  padding: 14px 22px;
}
.magazine__more:hover { border-color: var(--accent); color: var(--accent); }

.magazine__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}
@media (max-width: 760px) { .magazine__grid { grid-template-columns: 1fr; } }

.article-card {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.article-card::before {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 3px; height: 100%;
  background: var(--accent-soft);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .5s var(--ease);
}
.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: 0 24px 48px -24px rgba(10, 10, 12, 0.12);
}
.article-card:hover::before { transform: scaleY(1); }

.article-card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 24px;
}
.article-card__category {
  color: var(--accent-soft);
  font-weight: 600;
}
.article-card__title {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--ink);
  max-width: 32ch;
}
.article-card__excerpt {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 28px;
  flex: 1;
}
.article-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}
.article-card__link span {
  transition: transform .3s var(--ease);
  display: inline-block;
}
.article-card:hover .article-card__link span { transform: translateX(4px); }

/* ==========================================================================
   FAQ page
   ========================================================================== */

.faq { padding: 140px 0 100px; }
.faq__intro { margin-bottom: clamp(48px, 6vw, 80px); }
.faq__lede {
  margin-top: 24px;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.55;
}

.faq__list {
  border-top: 1px solid var(--line);
  margin-bottom: clamp(64px, 8vw, 120px);
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item summary { list-style: none; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }

.faq__q {
  display: grid;
  grid-template-columns: 80px 1fr 32px;
  align-items: center;
  gap: 24px;
  padding: clamp(24px, 3vw, 36px) 0;
  transition: padding .3s var(--ease);
}
.faq__item[open] .faq__q { padding-bottom: 16px; }
.faq__num {
  font-family: 'DM Mono', 'SF Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--accent-soft);
  font-weight: 500;
}
.faq__qtext {
  font-size: clamp(18px, 1.8vw, 24px);
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}
.faq__icon {
  position: relative;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  flex-shrink: 0;
  justify-self: end;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  background: var(--ink-2);
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.faq__icon::before {
  top: 50%; left: 25%; right: 25%;
  height: 1px; transform: translateY(-50%);
}
.faq__icon::after {
  left: 50%; top: 25%; bottom: 25%;
  width: 1px; transform: translateX(-50%);
}
.faq__item[open] .faq__icon { border-color: var(--accent); background: var(--accent); }
.faq__item[open] .faq__icon::before { background: #fff; }
.faq__item[open] .faq__icon::after { transform: translateX(-50%) rotate(90deg); background: #fff; opacity: 0; }
.faq__q:hover .faq__icon { border-color: var(--ink); }

.faq__a {
  padding: 8px 0 clamp(28px, 3vw, 40px) 104px;
  max-width: 760px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}
.faq__a > p { margin: 0 0 16px; }
.faq__a > p:last-child { margin-bottom: 0; }
.faq__a strong { color: var(--ink); }

@media (max-width: 720px) {
  .faq__q { grid-template-columns: 56px 1fr 24px; gap: 14px; }
  .faq__a { padding-left: 0; }
}

/* FAQ rich content blocks */
.faq__cards {
  margin-top: 24px;
  padding: 24px 28px;
  background: var(--accent);
  border-radius: var(--radius);
  color: #fff;
}
.faq__cards-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-soft);
  font-weight: 600;
  margin-bottom: 14px;
}
.faq__cards ul { display: flex; flex-direction: column; gap: 10px; }
.faq__cards li {
  font-size: 15px;
  padding-left: 18px;
  position: relative;
  color: rgba(255,255,255,0.9);
}
.faq__cards li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  background: var(--accent-soft);
  border-radius: 50%;
}

.faq__grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.faq__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.faq__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .faq__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .faq__grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .faq__grid--4 { grid-template-columns: 1fr; } }

.faq__tile {
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px;
}
.faq__tile h4 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--ink);
}
.faq__tile p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.faq__bullets {
  margin: 16px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq__bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.6;
}
.faq__bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 8px; height: 8px;
  background: var(--accent-soft);
  border-radius: 50%;
}

.faq__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
  position: relative;
}
.faq__steps::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 5%; right: 5%;
  height: 1px;
  background: var(--line);
}
@media (max-width: 760px) { .faq__steps { grid-template-columns: repeat(2, 1fr); } .faq__steps::before { display: none; } }
@media (max-width: 480px) { .faq__steps { grid-template-columns: 1fr; } }
.faq__step {
  background: var(--bg-elev);
  border-radius: var(--radius);
  padding: 32px 18px 20px;
  position: relative;
  text-align: left;
}
.faq__step-num {
  position: absolute;
  top: -1px;
  left: 18px;
  background: var(--bg);
  padding: 0 8px;
  font-family: 'DM Mono', 'SF Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent-soft);
  font-weight: 600;
}
.faq__step h4 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.25;
}
.faq__step p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.faq__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.faq__chips li {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: 0.005em;
}

.faq__quote {
  margin: 28px 0 0;
  padding: 18px 24px;
  border-left: 3px solid var(--accent-soft);
  background: var(--accent-soft-tint);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  font-style: normal;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* FAQ contact block */
.faq__contact {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(40px, 5vw, 64px);
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}
@media (max-width: 760px) { .faq__contact { grid-template-columns: 1fr; } }
.faq__contact-lede {
  margin-top: 20px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  max-width: 50ch;
}
.faq__contact-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-self: end;
}
@media (max-width: 760px) { .faq__contact-actions { justify-self: start; } }

/* ==========================================================================
   Magazine-style article layout
   Editorial style with Playfair (Serif headlines), Plus Jakarta Sans (body),
   DM Mono (meta + numbers). Slate hero block, KPI grid, checklist, pullquote,
   fazit and CTA components. Colors mapped to RAVN CI tokens.
   ========================================================================== */

.article-mag {
  padding: 140px 0 80px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --mag-slate: var(--accent);
  --mag-teak: var(--accent-soft);
  --mag-surf-l: #EAF2FA;
  --mag-surf-m: #C8DCEF;
  --mag-off: #F7F9FC;
  --mag-body: #3A4A5C;
  --mag-muted: #7A8A9A;
}
.article-mag__page {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  color: var(--mag-body);
}
.article-mag__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  font-family: inherit;
}
.article-mag__back:hover { color: var(--accent); }

.article-mag__hero {
  background: var(--mag-slate);
  padding: 3rem 3rem 2.5rem;
  border-radius: 12px;
  margin-bottom: 3rem;
}
.article-mag__hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.article-mag__tag {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  background: rgba(40, 120, 104, .25);
  color: #6EC9BC;
  padding: 4px 10px;
  border-radius: 4px;
}
.article-mag__meta-item {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
}
.article-mag__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  max-width: 620px;
  letter-spacing: -0.005em;
}
.article-mag__deck {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .62);
  max-width: 560px;
  border-left: 2px solid var(--mag-teak);
  padding-left: 1rem;
}

.article-mag__body {
  padding: 0 3rem;
}
.article-mag__lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--mag-slate);
  margin-bottom: 2.5rem;
  font-weight: 500;
}
.article-mag__body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--mag-slate);
  line-height: 1.3;
  margin: 2.5rem 0 .9rem;
  letter-spacing: -0.005em;
}
.article-mag__body p {
  font-size: 14px;
  line-height: 1.82;
  color: var(--mag-body);
  margin-bottom: 1.1rem;
}
.article-mag__body strong { color: var(--mag-slate); }
/* Inline links inside paragraphs/lists only — keep buttons and back-link unaffected */
.article-mag__body p a,
.article-mag__body li a {
  color: var(--mag-teak);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-mag__kpi {
  background: var(--mag-surf-l);
  border-radius: 10px;
  padding: 2rem 2.5rem;
  margin: 2.5rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-left: 3px solid var(--mag-teak);
}
@media (max-width: 640px) {
  .article-mag__kpi { grid-template-columns: 1fr; }
}
.article-mag__kpi-num {
  font-family: 'DM Mono', monospace;
  font-size: 30px;
  color: var(--mag-slate);
  line-height: 1;
  margin-bottom: 4px;
}
.article-mag__kpi-label {
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--mag-teak);
  margin-bottom: 6px;
}
.article-mag__kpi-desc {
  font-size: 11px;
  line-height: 1.5;
  color: var(--mag-muted);
}

.article-mag__checklist {
  background: var(--mag-off);
  border-radius: 10px;
  padding: 1.75rem 2rem;
  margin: 2rem 0;
}
.article-mag__checklist-title {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--mag-teak);
  margin-bottom: 1rem;
}
.article-mag__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 0.5px solid var(--mag-surf-m);
  font-size: 13px;
  line-height: 1.5;
  color: var(--mag-body);
}
.article-mag__check:last-child { border-bottom: none; }
.article-mag__check-dot {
  width: 6px;
  height: 6px;
  background: var(--mag-teak);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.article-mag__pullquote {
  border-left: 3px solid var(--mag-slate);
  padding: .5rem 0 .5rem 1.5rem;
  margin: 2.25rem 0;
}
.article-mag__pullquote p {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: var(--mag-slate);
  margin-bottom: .5rem;
}
.article-mag__pullquote cite {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mag-muted);
  font-style: normal;
}

.article-mag__fazit {
  background: var(--mag-slate);
  border-radius: 10px;
  padding: 2rem 2.5rem;
  margin: 2.5rem 0;
}
.article-mag__fazit-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mag-teak);
  margin-bottom: .75rem;
}
.article-mag__fazit p {
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 0;
}

.article-mag__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--mag-surf-l);
  border-radius: 10px;
  padding: 1.5rem 2rem;
  margin-top: 2rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.article-mag__cta-text {
  font-size: 14px;
  color: var(--mag-slate);
  font-weight: 500;
  flex: 1;
  min-width: 220px;
}
.article-mag__cta-btn {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  background: var(--mag-teak);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s, transform .2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.article-mag__cta-btn:hover { opacity: .85; transform: translateY(-1px); }

.article-mag__divider {
  height: 1px;
  background: var(--mag-surf-m);
  margin: 2.5rem 0;
}
.article-mag__footer-meta {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mag-muted);
}

@media (max-width: 640px) {
  .article-mag__hero { padding: 2rem 1.5rem 1.75rem; border-radius: 10px; }
  .article-mag__body { padding: 0 1.5rem; }
  .article-mag__kpi { padding: 1.5rem; }
  .article-mag__cta { padding: 1.25rem 1.5rem; }
  .article-mag__fazit { padding: 1.5rem; }
}

/* Article detail layout */
.article {
  padding: 140px 0 80px;
}
.article__hero {
  max-width: 760px;
  margin: 0 auto 48px;
}
.article__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 24px;
}
.article__category { color: var(--accent-soft); font-weight: 600; }
.article__title {
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.article__lede {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--muted);
  line-height: 1.5;
  max-width: 60ch;
}
.article__body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
}
.article__body h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  margin: 56px 0 16px;
  letter-spacing: -0.02em;
}
.article__body h3 {
  font-size: 20px;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}
.article__body p { margin-bottom: 20px; }
.article__body ul, .article__body ol {
  margin: 0 0 24px;
  padding-left: 24px;
  list-style: revert;
}
.article__body li { margin-bottom: 8px; }
.article__body strong { color: var(--ink); }
.article__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article__body blockquote {
  margin: 32px 0;
  padding: 20px 28px;
  border-left: 3px solid var(--accent-soft);
  background: var(--accent-soft-tint);
  font-size: 18px;
  font-style: italic;
  color: var(--ink-2);
}
.article__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
}
.article__back:hover { color: var(--accent); }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease-soft), transform .9s var(--ease-soft);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: .06s; }
.reveal:nth-child(3) { transition-delay: .12s; }
.reveal:nth-child(4) { transition-delay: .18s; }
.reveal:nth-child(5) { transition-delay: .24s; }
.reveal:nth-child(6) { transition-delay: .30s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Legal pages (Impressum, Datenschutz)
   ========================================================================== */

.legal {
  padding: 160px 0 120px;
  max-width: 760px;
}
.legal h1 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.035em;
  margin-bottom: 40px;
}
.legal h2 {
  font-size: 22px;
  margin: 48px 0 16px;
  letter-spacing: -0.015em;
}
.legal p, .legal address {
  color: var(--ink-2);
  line-height: 1.7;
  font-size: 16px;
  margin: 0 0 14px;
  font-style: normal;
}
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }
