/* =====================================================
   MP7 — Globales Stylesheet
   Tokens:
   Navy   #0B1320   (Hauptfläche dunkler Sektionen)
   Weiß   #FFFFFF
   Offwhite #FAF8F4 (warme Textflächen)
   Akzent #3D5AFE   (sparsam: Links, CTA-Hover, Signature)
   Grau   #6B7280   (Fließtext hell)
   Blaugrau #9CA8C2 (Fließtext dunkel)
   Type: Inter, 4 bewusste Größenstufen, max. Weight 600
   ===================================================== */

:root {
  --navy: #0b1320;
  --navy-soft: #131e30;
  --white: #e9ebf0;
  --offwhite: #faf8f4;
  --ink: #10151f;
  --line: #e6e2da;
  --line-dark: rgba(255, 255, 255, 0.1);
  --grey: #6b7280;
  --grey-quiet: #9098a4;
  --blue-grey: #9ca8c2;
  --accent: #3d5afe;
  --accent-soft: #eef0ff;
  --accent-glow: rgba(61, 90, 254, 0.28);

  --max: 1240px;
  --gutter: clamp(24px, 5vw, 80px);
  --section: clamp(80px, 12vw, 160px);

  --ff: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--ff);
  background: var(--offwhite);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
svg { display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

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

/* ---------- Typografie: 4 Stufen ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #cdd6ff;
  background: rgba(170,182,255,0.14);
  padding: 8px 16px 8px 14px;
  border-radius: 999px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #aab6ff;
}
.eyebrow.on-dark { color: #cdd6ff; background: rgba(170,182,255,0.14); }
.eyebrow.on-dark::before { background: #aab6ff; }

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--white);
}

/* Stufe 1 — Headline */
h1, .h1 { font-size: clamp(42px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; }
/* Stufe 2 — Subheadline */
h2, .h2 { font-size: clamp(30px, 4vw, 50px); line-height: 1.1; font-weight: 700; }
/* Stufe 3 — Fließtext groß / Kartentitel */
h3, .h3 { font-size: 21px; line-height: 1.3; font-weight: 600; }
/* Stufe 4 — Caption / Label */
.caption { font-size: 13px; letter-spacing: 0.04em; color: var(--grey-quiet); }

p { color: var(--grey); }

.hl { color: var(--accent); }

.lede {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.65;
  color: var(--grey);
  max-width: 56ch;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.section-head h2 { max-width: 14ch; }
.section-head .lede { margin-top: 18px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 999px;
  transition: transform 0.35s var(--ease), background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 28px var(--accent-glow); }

.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn-ghost-dark { background: transparent; color: var(--white); border: 1px solid var(--line-dark); }
.btn-ghost-dark:hover { border-color: rgba(255,255,255,0.5); transform: translateY(-2px); }

.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--accent-soft); transform: translateY(-2px); }

.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  background: rgba(11, 19, 32, 0.0);
  transition: padding 0.4s var(--ease), background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 14px 0;
  background: rgba(11, 19, 32, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }

.logo { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; color: var(--white); }
.logo-mark {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-mark img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.footer-brand .logo-mark { width: 56px; height: 56px; }

.nav-links { display: flex; gap: 34px; font-size: 14.5px; font-weight: 500; }
.nav-links a { position: relative; padding: 4px 0; color: var(--white); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: currentColor;
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 22px; }
.header-actions .btn { padding: 12px 22px; font-size: 13.5px; }

/* ---------- Footer ---------- */

.site-footer { padding: 64px 0 40px; background: var(--navy); color: var(--white); }

.footer-statement {
  text-align: center;
  padding-bottom: 64px;
  margin-bottom: 64px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-statement p {
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--white);
  max-width: 22ch;
  margin: 0 auto;
}
.footer-top {
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding-bottom: 44px; border-bottom: 1px solid var(--line-dark);
}
.footer-brand .logo { margin-bottom: 14px; color: var(--white); }
.footer-brand p { max-width: 34ch; font-size: 14.5px; color: var(--blue-grey); }

.footer-cols { display: flex; gap: 70px; flex-wrap: wrap; }
.footer-col h3 { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-quiet); margin-bottom: 16px; font-weight: 600; }
.footer-col a, .footer-col span { display: block; font-size: 14.5px; color: var(--blue-grey); margin-bottom: 10px; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; font-size: 13px; color: var(--grey-quiet); flex-wrap: wrap; gap: 12px;
}
.footer-bottom a:hover { color: var(--white); }

/* ---------- Reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
}
[data-reveal].in { opacity: 1; transform: translateY(0); filter: blur(0); }

/* ---------- Skip link (Accessibility) ---------- */

.skip-link {
  position: absolute; left: -999px; top: auto;
  background: var(--accent); color: var(--white);
  padding: 12px 20px; border-radius: 8px; z-index: 1000;
  font-size: 14px; font-weight: 600;
}
.skip-link:focus {
  left: 16px; top: 16px;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .nav-links { display: none; }
  .header-actions .btn-ghost, .header-actions .btn-ghost-dark { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .footer-cols { gap: 40px; }
}
