/* ==========================================================================
   Sanora GmbH – Design System
   Style: Trust & Authority  ·  Base: Inter  ·  Light + Dark
   Tokens: primitive -> semantic. Never use raw hex in components.
   ========================================================================== */

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

/* --- Tokens: light -------------------------------------------------------- */
:root {
  /* semantic colour */
  --bg:            #FFFFFF;
  --bg-soft:       #F4F8FB;
  --bg-inverse:    #0B1220;
  --surface:       #FFFFFF;
  --surface-2:     #F9FBFD;

  --fg:            #0B1220;
  --fg-muted:      #53627A;   /* 5.9:1 on --bg  */
  --fg-inverse:    #EAF1F8;
  --fg-inverse-muted: #9BAAC0; /* 7.1:1 on --bg-inverse */

  /* Markenblau = PANTONE 2154 C aus dem Logo-Master-PDF (Lab 27.45/-4/-41).
     10.0:1 gegen Weiß → WCAG AAA. Logo bezieht die Farbe per currentColor. */
  --brand:         #00437B;
  --brand-strong:  #00325C;   /* hover */
  --brand-soft:    #E8F0F7;   /* Flächentint hinter Icons */
  --brand-ring:    #1565A8;   /* Fokusring, 6.1:1 gegen Weiß */
  --brand-on-ink:  #5AA5E2;   /* aufgehellt für dunkle Flächen (Hero/Footer) */

  --accent:        #C2410C;   /* heat orange – 5.1:1 with white */
  --accent-strong: #9A3412;
  --accent-soft:   #FDECE3;

  --border:        #DBE3EC;
  --border-strong: #C2CEDB;

  --success:       #15803D;
  --danger:        #DC2626;

  /* elevation */
  --shadow-1: 0 1px 2px rgb(11 18 32 / .05), 0 1px 3px rgb(11 18 32 / .06);
  --shadow-2: 0 4px 12px rgb(11 18 32 / .07), 0 2px 4px rgb(11 18 32 / .04);
  --shadow-3: 0 16px 40px rgb(11 18 32 / .11), 0 4px 10px rgb(11 18 32 / .05);

  /* radius */
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px; --r-full: 999px;

  /* spacing (4/8 rhythm) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* type scale */
  --t-xs: .8125rem; --t-sm: .9375rem; --t-base: 1.0625rem; --t-lg: 1.1875rem;
  --t-xl: 1.375rem; --t-2xl: 1.75rem; --t-3xl: 2.25rem; --t-4xl: 3rem; --t-5xl: 3.75rem;

  /* motion */
  --e-out: cubic-bezier(.16,1,.3,1);
  --d-fast: 150ms; --d-base: 220ms; --d-slow: 320ms;

  /* layout */
  --wrap: 1200px;
  --wrap-narrow: 760px;
  --nav-h: 72px;

  /* z-scale */
  --z-nav: 100; --z-overlay: 200; --z-modal: 300;

  color-scheme: light;
}

/* --- Tokens: dark --------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; }
}
:root[data-theme="dark"], :root:not([data-theme="light"]):is(.dark-auto) { color-scheme: dark; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #0B1220;
    --bg-soft:       #111B2C;
    --bg-inverse:    #060B14;
    --surface:       #131E31;
    --surface-2:     #17233A;

    --fg:            #E9F0F8;
    --fg-muted:      #9BAAC0;
    --fg-inverse:    #E9F0F8;
    --fg-inverse-muted: #9BAAC0;

    --brand:         #5AA5E2;   /* PANTONE 2154 C aufgehellt für dunkle Flächen */
    --brand-strong:  #8CC3EE;
    --brand-soft:    #0C2438;
    --brand-ring:    #7BB8EA;
    --brand-on-ink:  #5AA5E2;

    --accent:        #FB8B3C;
    --accent-strong: #FDBA74;
    --accent-soft:   #2C1810;

    --border:        #24324B;
    --border-strong: #33445F;

    --success:       #4ADE80;
    --danger:        #F87171;

    --shadow-1: 0 1px 2px rgb(0 0 0 / .4);
    --shadow-2: 0 4px 14px rgb(0 0 0 / .45);
    --shadow-3: 0 18px 44px rgb(0 0 0 / .55);
  }
}
:root[data-theme="dark"] {
  --bg: #0B1220; --bg-soft: #111B2C; --bg-inverse: #060B14;
  --surface: #131E31; --surface-2: #17233A;
  --fg: #E9F0F8; --fg-muted: #9BAAC0; --fg-inverse: #E9F0F8; --fg-inverse-muted: #9BAAC0;
  --brand: #5AA5E2; --brand-strong: #8CC3EE; --brand-soft: #0C2438; --brand-ring: #7BB8EA; --brand-on-ink: #5AA5E2;
  --accent: #FB8B3C; --accent-strong: #FDBA74; --accent-soft: #2C1810;
  --border: #24324B; --border-strong: #33445F;
  --success: #4ADE80; --danger: #F87171;
  --shadow-1: 0 1px 2px rgb(0 0 0 / .4);
  --shadow-2: 0 4px 14px rgb(0 0 0 / .45);
  --shadow-3: 0 18px 44px rgb(0 0 0 / .55);
}

/* --- Base ----------------------------------------------------------------- */
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv02","cv03","cv04","ss01";
  overflow-x: hidden;
}
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.022em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.75rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 2.1vw, 2.6rem); }
h3 { font-size: var(--t-xl); }
p  { text-wrap: pretty; }
:where(p, li) { max-width: 68ch; }

/* focus – never removed */
:focus-visible {
  outline: 3px solid var(--brand-ring);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* --- Utilities ------------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s-5); }
@media (min-width: 768px) { .wrap { padding-inline: var(--s-6); } }
.section { padding-block: clamp(var(--s-8), 6vw, var(--s-10)); }
.section--soft { background: var(--bg-soft); }
.section--ink { background: var(--bg-inverse); color: var(--fg-inverse); }
.section--ink h2, .section--ink h3 { color: var(--fg-inverse); }
.section--ink p { color: var(--fg-inverse-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--t-xs); font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--brand);
}
.section--ink .eyebrow { color: var(--brand-strong); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

.lead { font-size: var(--t-lg); color: var(--fg-muted); }
.section--ink .lead { color: var(--fg-inverse-muted); }
.muted { color: var(--fg-muted); }
.head { max-width: 700px; margin-bottom: var(--s-7); }
.head > * + * { margin-top: var(--s-3); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: var(--s-4); z-index: var(--z-modal);
  background: var(--brand); color: #FFFFFF; padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md); font-weight: 600;
}
/* --brand hellt im Dark Mode auf (#5AA5E2). Weiße Schrift käme dort auf 2.7:1 –
   die Sprungmarke wäre für genau die Nutzer unlesbar, für die sie gedacht ist. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .skip-link { color: #04121C; }
}
:root[data-theme="dark"] .skip-link { color: #04121C; }
.skip-link:focus { top: var(--s-4); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: var(--s-3) var(--s-5);
  border: 1px solid transparent; border-radius: var(--r-md);
  font-size: var(--t-sm); font-weight: 600; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer;
  transition: background var(--d-fast) var(--e-out), border-color var(--d-fast) var(--e-out),
              color var(--d-fast) var(--e-out), transform var(--d-fast) var(--e-out),
              box-shadow var(--d-fast) var(--e-out);
  touch-action: manipulation;
}
.btn:active { transform: scale(.975); }
.btn svg { flex: none; }

.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-2); }
.btn--primary:hover { background: var(--accent-strong); box-shadow: var(--shadow-3); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn--primary { color: #1A0C04; }
}
:root[data-theme="dark"] .btn--primary { color: #1A0C04; }

.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-strong); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--brand { color: #04121C; } }
:root[data-theme="dark"] .btn--brand { color: #04121C; }

.btn--ghost { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--bg-soft); border-color: var(--fg-muted); }

/* Immer-dunkle Flächen.
   Hero, Teaser und Footer sind IMMER dunkel — auch im Light Mode. Deshalb
   dürfen Elemente darin nicht die modusabhängigen Tokens (--fg, --brand)
   benutzen: im Light Mode ist --fg fast schwarz und der Button verschwindet.
   Diese Liste muss jede dunkle Fläche enthalten. (.section--ink existierte als
   Regel, wurde aber im Markup nie vergeben — daher griff die Korrektur nie.) */
:is(.hero, .teaser, .footer, .section--ink) .btn--ghost {
  color: #FFFFFF;
  border-color: rgb(255 255 255 / .28);
}
:is(.hero, .teaser, .footer, .section--ink) .btn--ghost:hover {
  background: rgb(255 255 255 / .10);
  border-color: rgb(255 255 255 / .55);
}
/* Blauer Button auf dunklem Grund: aufgehellt + dunkle Schrift (7.1:1),
   sonst steht Navy auf Navy und die Fläche verschwindet. */
:is(.hero, .teaser, .footer, .section--ink) .btn--brand {
  background: var(--brand-on-ink);
  color: #04121C;
}
:is(.hero, .teaser, .footer, .section--ink) .btn--brand:hover {
  background: #8CC3EE;
}

.btn--sm { min-height: 44px; padding: var(--s-2) var(--s-4); font-size: var(--t-xs); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* --- Navigation ----------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--d-base) var(--e-out), box-shadow var(--d-base) var(--e-out);
}
.nav[data-scrolled="true"] { border-bottom-color: var(--border); box-shadow: var(--shadow-1); }
.nav__inner {
  display: flex; align-items: center; gap: var(--s-5);
  height: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s-5);
}
@media (min-width: 768px) { .nav__inner { padding-inline: var(--s-6); } }

.logo {
  display: inline-flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 4px; min-height: 44px; text-decoration: none; margin-right: auto;
  color: var(--brand);           /* die Wortmarke erbt das per currentColor */
}
.logo__wordmark { height: 24px; width: auto; flex: none; }
@media (min-width: 768px) { .logo__wordmark { height: 27px; } }
.logo__sub { font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-muted); }
/* Auf dunklen Flächen (Footer) muss das Logo aufhellen, sonst verschwindet es. */
.footer .logo { color: var(--brand-on-ink); }

.nav__links { display: none; align-items: center; gap: var(--s-1); list-style: none; padding: 0; }
@media (min-width: 1024px) { .nav__links { display: flex; } }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3);
  border-radius: var(--r-sm);
  font-size: var(--t-sm); font-weight: 500; color: var(--fg-muted); text-decoration: none;
  transition: color var(--d-fast) var(--e-out), background var(--d-fast) var(--e-out);
}
.nav__link:hover { color: var(--fg); background: var(--bg-soft); }
.nav__link[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav__actions { display: flex; align-items: center; gap: var(--s-2); }
.nav__cta { display: none; }
@media (min-width: 640px) { .nav__cta { display: inline-flex; } }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  background: transparent; border: 1px solid var(--border); border-radius: var(--r-md);
  color: var(--fg); cursor: pointer;
  transition: background var(--d-fast) var(--e-out), border-color var(--d-fast) var(--e-out);
}
.icon-btn:hover { background: var(--bg-soft); border-color: var(--border-strong); }
.icon-btn__moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn__sun { display: none; }
  :root:not([data-theme="light"]) .icon-btn__moon { display: block; }
}
:root[data-theme="dark"] .icon-btn__sun { display: none; }
:root[data-theme="dark"] .icon-btn__moon { display: block; }
:root[data-theme="light"] .icon-btn__sun { display: block; }
:root[data-theme="light"] .icon-btn__moon { display: none; }

.nav__burger { display: inline-flex; }
@media (min-width: 1024px) { .nav__burger { display: none; } }

/* mobile drawer */
.drawer {
  position: fixed; inset: var(--nav-h) 0 0; z-index: var(--z-overlay);
  background: var(--bg);
  padding: var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-2);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity var(--d-base) var(--e-out), transform var(--d-base) var(--e-out),
              visibility var(--d-base);
  overflow-y: auto;
}
.drawer[data-open="true"] { transform: translateY(0); opacity: 1; visibility: visible; }
@media (min-width: 1024px) { .drawer { display: none; } }
.drawer a {
  display: flex; align-items: center; min-height: 52px; padding: 0 var(--s-3);
  border-radius: var(--r-md);
  font-size: var(--t-lg); font-weight: 600; text-decoration: none; color: var(--fg);
  border-bottom: 1px solid var(--border);
}
.drawer a:hover { background: var(--bg-soft); }
.drawer .btn { margin-top: var(--s-4); border-bottom: 0; }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--bg-inverse); color: var(--fg-inverse);
  padding-block: clamp(var(--s-8), 7vw, var(--s-10));
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 460px at 78% 8%, rgb(21 101 168 / .42), transparent 62%),
    radial-gradient(620px 420px at 8% 92%, rgb(194 65 12 / .20), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgb(255 255 255 / .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / .04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 100%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: var(--s-8); }
@media (min-width: 1024px) { .hero__inner { grid-template-columns: 1.15fr .85fr; align-items: center; gap: var(--s-9); } }
.hero__eyebrow { color: var(--brand-on-ink); }
.hero h1 { color: #fff; margin-top: var(--s-4); }
.hero__lead { margin-top: var(--s-5); font-size: var(--t-lg); color: #B7C6D9; max-width: 56ch; }
.hero .btn-row { margin-top: var(--s-6); }
.hero__trust { margin-top: var(--s-7); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); }
.hero__trust li {
  display: flex; align-items: center; gap: var(--s-2);
  font-size: var(--t-sm); color: #B7C6D9; list-style: none;
}
.hero__trust svg { color: var(--brand-on-ink); flex: none; }

/* hero card */
.hero__card {
  background: rgb(255 255 255 / .06);
  border: 1px solid rgb(255 255 255 / .12);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-3);
}
.hero__card h2 { font-size: var(--t-xl); color: #fff; }
.hero__card p { color: #B7C6D9; font-size: var(--t-sm); margin-top: var(--s-2); }
.hero__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); margin-top: var(--s-6); }
.hero__stat {
  background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .10);
  border-radius: var(--r-md); padding: var(--s-4);
}
.hero__stat dt { font-size: var(--t-xs); color: #8FA2B8; }
.hero__stat dd {
  font-size: var(--t-2xl); font-weight: 800; color: #fff; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; margin-top: var(--s-1);
}

/* --- Trust bar ------------------------------------------------------------ */
.trustbar { border-bottom: 1px solid var(--border); background: var(--bg); }
.trustbar__inner {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5);
  padding-block: var(--s-6);
}
@media (min-width: 900px) { .trustbar__inner { grid-template-columns: repeat(4, 1fr); } }
.trustbar__item { display: flex; gap: var(--s-3); align-items: flex-start; }
.trustbar__item svg { color: var(--brand); flex: none; margin-top: 3px; }
.trustbar__item strong { display: block; font-size: var(--t-sm); font-weight: 700; }
.trustbar__item span { display: block; font-size: var(--t-xs); color: var(--fg-muted); line-height: 1.5; }

/* --- Cards / services ----------------------------------------------------- */
.grid { display: grid; gap: var(--s-5); }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-1);
  transition: transform var(--d-base) var(--e-out), box-shadow var(--d-base) var(--e-out),
              border-color var(--d-base) var(--e-out);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); border-color: var(--border-strong); }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; flex: none;
  border-radius: var(--r-md);
  background: var(--brand-soft); color: var(--brand);
  margin-bottom: var(--s-5);
}
.card--warm .card__icon { background: var(--accent-soft); color: var(--accent); }
.card__kicker { font-size: var(--t-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-muted); }
.card h3 { margin-top: var(--s-1); font-size: var(--t-xl); }
.card p { margin-top: var(--s-3); font-size: var(--t-sm); color: var(--fg-muted); }
.card__link {
  margin-top: var(--s-5); display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--t-sm); font-weight: 600; color: var(--brand); text-decoration: none;
  min-height: 44px;
}
.card__link svg { transition: transform var(--d-fast) var(--e-out); }
.card__link:hover svg { transform: translateX(3px); }

/* --- Steps ---------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-7); } }
.step { position: relative; padding-top: var(--s-6); border-top: 2px solid var(--border); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: -14px; left: 0;
  background: var(--bg); padding-right: var(--s-3);
  font-size: var(--t-sm); font-weight: 800; color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.section--soft .step::before { background: var(--bg-soft); }
.step h3 { font-size: var(--t-lg); }
.step p { margin-top: var(--s-2); font-size: var(--t-sm); color: var(--fg-muted); }

/* --- Split (about) -------------------------------------------------------- */
.split { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s-9); } }
.checklist { list-style: none; padding: 0; margin-top: var(--s-6); display: grid; gap: var(--s-4); }
.checklist li { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--t-sm); }
.checklist svg { color: var(--success); flex: none; margin-top: 3px; }
.checklist strong { display: block; color: var(--fg); }
.section--ink .checklist strong { color: var(--fg-inverse); }
.checklist span { color: var(--fg-muted); }
.section--ink .checklist span { color: var(--fg-inverse-muted); }

/* --- Partners ------------------------------------------------------------- */
.partners { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.partner {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  border: 1px solid var(--border); border-radius: var(--r-full);
  background: var(--surface);
  font-size: var(--t-sm); font-weight: 600; letter-spacing: -.01em;
}
.partner span { color: var(--fg-muted); font-weight: 400; font-size: var(--t-xs); }

/* --- Career teaser -------------------------------------------------------- */
.teaser {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--bg-inverse); color: var(--fg-inverse);
  padding: clamp(var(--s-6), 5vw, var(--s-9));
  box-shadow: var(--shadow-3);
}
.teaser::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 88% 12%, rgb(194 65 12 / .30), transparent 62%);
  pointer-events: none;
}
.teaser__inner { position: relative; z-index: 1; max-width: 640px; }
.teaser h2 { color: #fff; margin-top: var(--s-3); }
.teaser p { color: #B7C6D9; margin-top: var(--s-4); }
.teaser .eyebrow { color: #FDBA74; }

/* --- Forms ---------------------------------------------------------------- */
.form { display: grid; gap: var(--s-5); }
.field { display: grid; gap: var(--s-2); }
.field label { font-size: var(--t-sm); font-weight: 600; }
.field .req { color: var(--danger); }
.field .hint { font-size: var(--t-xs); color: var(--fg-muted); }
.field input, .field textarea, .field select {
  min-height: 48px; padding: var(--s-3) var(--s-4);
  background: var(--surface); color: var(--fg);
  border: 1px solid var(--border-strong); border-radius: var(--r-md);
  font-size: var(--t-base);
  transition: border-color var(--d-fast) var(--e-out), box-shadow var(--d-fast) var(--e-out);
  width: 100%;
}
.field textarea { min-height: 132px; padding-top: var(--s-3); resize: vertical; line-height: 1.6; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--fg-muted); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand-ring);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-ring) 22%, transparent);
}
.field .error { font-size: var(--t-xs); color: var(--danger); font-weight: 600; display: none; }
.field[data-invalid="true"] input,
.field[data-invalid="true"] textarea { border-color: var(--danger); }
.field[data-invalid="true"] .error { display: flex; align-items: center; gap: var(--s-1); }
.field--row { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .field--row { grid-template-columns: 1fr 1fr; } }
.consent { display: flex; gap: var(--s-3); align-items: flex-start; }
/* 24px is the WCAG 2.2 AA minimum target size; the <label> extends the hit area. */
.consent input { width: 24px; height: 24px; min-height: 0; flex: none; margin-top: 2px; accent-color: var(--brand); cursor: pointer; }
.consent label { font-size: var(--t-xs); color: var(--fg-muted); font-weight: 400; line-height: 1.6; }
.consent a { color: var(--brand); text-underline-offset: 2px; }
.form__status {
  display: none; gap: var(--s-3); align-items: flex-start;
  padding: var(--s-4); border-radius: var(--r-md); font-size: var(--t-sm);
}
.form__status[data-state="ok"]   { display: flex; background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); }
.form__status[data-state="err"]  { display: flex; background: color-mix(in srgb, var(--danger) 12%, transparent);  color: var(--danger); }

/* --- Contact panel -------------------------------------------------------- */
.contact { display: grid; gap: var(--s-7); }
@media (min-width: 1024px) { .contact { grid-template-columns: .9fr 1.1fr; gap: var(--s-9); } }
.contact__list { list-style: none; padding: 0; display: grid; gap: var(--s-5); margin-top: var(--s-6); }
.contact__item { display: flex; gap: var(--s-4); align-items: flex-start; }
.contact__item svg { color: var(--brand); flex: none; margin-top: 3px; }
.contact__item dt { font-size: var(--t-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-muted); }
.contact__item dd { margin: 0; font-size: var(--t-base); font-weight: 600; }
.contact__item dd a { text-decoration: none; }
.contact__item dd a:hover { color: var(--brand); text-decoration: underline; }
.contact__item dd span { display: block; font-weight: 400; font-size: var(--t-sm); color: var(--fg-muted); }
.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: clamp(var(--s-5), 4vw, var(--s-7));
  box-shadow: var(--shadow-2);
}

/* --- Footer --------------------------------------------------------------- */
.footer { background: var(--bg-inverse); color: var(--fg-inverse); padding-block: var(--s-8) var(--s-6); }
.footer__grid { display: grid; gap: var(--s-7); }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer h4 { font-size: var(--t-xs); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--brand-on-ink); margin-bottom: var(--s-4); }
.footer ul { list-style: none; padding: 0; display: grid; gap: var(--s-1); }
.footer a { color: #B7C6D9; text-decoration: none; font-size: var(--t-sm); display: inline-flex; min-height: 36px; align-items: center; }
.footer a:hover { color: #fff; }
.footer p { color: #8FA2B8; font-size: var(--t-sm); }
.footer .logo__name { color: #fff; }
.footer .logo__sub { color: var(--brand-on-ink); }
.footer__bottom {
  margin-top: var(--s-8); padding-top: var(--s-5);
  border-top: 1px solid rgb(255 255 255 / .10);
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); justify-content: space-between; align-items: center;
}
.footer__bottom p { font-size: var(--t-xs); color: #6F8199; }

/* --- Legal pages ---------------------------------------------------------- */
.prose { max-width: var(--wrap-narrow); }
.prose h2 { margin-top: var(--s-8); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s-6); font-size: var(--t-lg); }
.prose p, .prose li { margin-top: var(--s-3); color: var(--fg-muted); font-size: var(--t-sm); }
.prose strong { color: var(--fg); }
.prose ul { padding-left: var(--s-5); }
.prose a { color: var(--brand); }

/* --- Scroll reveal --------------------------------------------------------
   Progressive enhancement: only hide content once we know JS is alive (the
   inline <head> script sets .js). Without JS — or if main.js throws — every
   section stays visible instead of the page rendering blank.                */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal[data-visible="true"] {
  opacity: 1; transform: none;
  transition: opacity var(--d-slow) var(--e-out), transform var(--d-slow) var(--e-out);
}
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* --- Lexikon -------------------------------------------------------------- */
.lex-tools { display: grid; gap: var(--s-5); margin-bottom: var(--s-7); }
.lex-search { position: relative; max-width: 520px; }
.lex-search svg { position: absolute; left: var(--s-4); top: 50%; transform: translateY(-50%); color: var(--fg-muted); pointer-events: none; }
.lex-search input {
  width: 100%; min-height: 52px; padding: var(--s-3) var(--s-4) var(--s-3) 48px;
  background: var(--surface); color: var(--fg);
  border: 1px solid var(--border-strong); border-radius: var(--r-md); font-size: var(--t-base);
  transition: border-color var(--d-fast) var(--e-out), box-shadow var(--d-fast) var(--e-out);
}
.lex-search input:focus {
  outline: none; border-color: var(--brand-ring);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-ring) 22%, transparent);
}
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  min-height: 44px; padding: var(--s-2) var(--s-4);
  background: var(--surface); color: var(--fg-muted);
  border: 1px solid var(--border); border-radius: var(--r-full);
  font-size: var(--t-sm); font-weight: 600; cursor: pointer;
  transition: background var(--d-fast) var(--e-out), color var(--d-fast) var(--e-out), border-color var(--d-fast) var(--e-out);
  touch-action: manipulation;
}
.chip:hover { border-color: var(--border-strong); color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip[aria-pressed="true"] { color: #04121C; } }
:root[data-theme="dark"] .chip[aria-pressed="true"] { color: #04121C; }
.chip--letter { min-width: 44px; padding-inline: var(--s-2); justify-content: center; }

.lex-count { font-size: var(--t-sm); color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.lex-list { display: grid; gap: var(--s-3); }
.lex-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  transition: border-color var(--d-fast) var(--e-out), box-shadow var(--d-fast) var(--e-out);
}
.lex-item:hover { border-color: var(--border-strong); box-shadow: var(--shadow-1); }
.lex-item[hidden] { display: none; }
.lex-item summary {
  display: flex; align-items: center; gap: var(--s-3);
  min-height: 56px; padding: var(--s-3) var(--s-5);
  cursor: pointer; list-style: none; font-weight: 600;
}
.lex-item summary::-webkit-details-marker { display: none; }
.lex-item summary::after {
  content: ""; margin-left: auto; flex: none;
  width: 10px; height: 10px; border-right: 2px solid var(--fg-muted); border-bottom: 2px solid var(--fg-muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--d-base) var(--e-out);
}
.lex-item[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.lex-tag {
  flex: none; padding: 2px var(--s-2); border-radius: var(--r-sm);
  background: var(--brand-soft); color: var(--brand);
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.lex-item p { padding: 0 var(--s-5) var(--s-5); color: var(--fg-muted); font-size: var(--t-sm); max-width: 80ch; }
.lex-empty { display: none; padding: var(--s-8) 0; text-align: center; color: var(--fg-muted); }
.lex-empty[data-show="true"] { display: block; }

/* Consent-Box: eigener Fehlerzustand (kein .field-Wrapper) */
.consent { flex-wrap: wrap; }
.consent .error { flex-basis: 100%; font-size: var(--t-xs); color: var(--danger); font-weight: 600; display: none; }
.consent[data-invalid="true"] .error { display: block; }
.consent[data-invalid="true"] input { outline: 2px solid var(--danger); outline-offset: 2px; border-radius: var(--r-sm); }

/* --- Fotos ---------------------------------------------------------------- */
/* aspect-ratio ist fest gesetzt: das Bild reserviert seinen Platz, bevor es
   geladen ist. Ohne das springt beim Nachladen das halbe Layout (CLS).
   object-fit: cover fängt ab, dass ein echtes Foto ein anderes Seitenverhältnis
   mitbringt als der Platzhalter. */
.shots { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 700px)  { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .shots { grid-template-columns: repeat(3, 1fr); } }

.shot { margin: 0; }
.shot img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  box-shadow: var(--shadow-1);
  transition: transform var(--d-base) var(--e-out), box-shadow var(--d-base) var(--e-out);
}
.shot:hover img { transform: translateY(-3px); box-shadow: var(--shadow-3); }
.shot figcaption {
  margin-top: var(--s-3);
  font-size: var(--t-sm); color: var(--fg-muted);
  display: flex; align-items: center; gap: var(--s-2);
}
.shot figcaption svg { color: var(--brand); flex: none; }

/* Breites Band (Teamfoto) */
.band { margin: 0 0 var(--s-7); }
.band img {
  width: 100%; aspect-ratio: 21 / 9; object-fit: cover;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  box-shadow: var(--shadow-2);
}
@media (max-width: 640px) { .band img { aspect-ratio: 4 / 3; } }
.band figcaption { margin-top: var(--s-3); font-size: var(--t-sm); color: var(--fg-muted); }
