/* =================================================================
   Qualipos Vorsorge Services AG — Design System
   Hand-coded, self-hosted fonts, keine externen CDN/Tracker.
   Palette: Navy (Vertrauen) · Gold (Wert) · Ivory/Sand (Wärme)
   ================================================================= */

/* ---------- Fonts (self-hosted, GDPR/DSG-konform) ---------- */
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Design Tokens ---------- */
:root {
  /* Brand */
  --navy-900: #0B2239;
  --navy-800: #0E2A47;   /* Primär */
  --navy-700: #14365A;
  --navy-600: #1E4A75;
  --gold-600: #9A7339;
  --gold-500: #B7945A;   /* Akzent */
  --gold-400: #C9A86A;
  --gold-100: #F0E6D2;

  /* Neutrals (warm) */
  --ivory:   #FBFAF7;    /* Seitenhintergrund */
  --paper:   #FFFFFF;
  --sand-100:#F4F1EA;    /* warmer Abschnitt */
  --mist-100:#EEF2F6;    /* kühler Abschnitt */
  --ink-900: #16202C;    /* Fliesstext */
  --ink-700: #3A4856;
  --ink-500: #66747F;    /* gedämpft */
  --line:    #E5E2D9;
  --line-cool:#DCE3EB;

  /* Typo */
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-900: clamp(1.9rem, 1.25rem + 3vw, 4.1rem);
  --fs-800: clamp(2rem, 1.5rem + 2.1vw, 3rem);
  --fs-700: clamp(1.6rem, 1.3rem + 1.3vw, 2.25rem);
  --fs-600: clamp(1.25rem, 1.12rem + 0.55vw, 1.55rem);
  --fs-500: 1.1875rem;
  --fs-400: 1.0625rem;
  --fs-300: 0.9375rem;
  --fs-200: 0.8125rem;

  /* Spacing */
  --space-1: 0.25rem;  --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.5rem;  --space-6: 2rem;
  --space-7: 3rem;     --space-8: 4rem;    --space-9: 6rem;
  --space-10: 8rem;

  /* Misc */
  --container: 1180px;
  --container-narrow: 760px;
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(11,34,57,.06), 0 1px 3px rgba(11,34,57,.05);
  --shadow:    0 6px 24px rgba(11,34,57,.08), 0 2px 6px rgba(11,34,57,.05);
  --shadow-lg: 0 24px 60px rgba(11,34,57,.14), 0 8px 24px rgba(11,34,57,.08);
  --ease: cubic-bezier(.22,.61,.36,1);
  --header-h: 80px;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  font-family: var(--font-sans);
  font-size: var(--fs-400);
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-wrap: break-word;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--navy-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold-600); }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy-800);
  letter-spacing: -0.01em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
/* Lange deutsche Komposita (z. B. „Freizügigkeitskapital") sauber trennen */
.hero h1, .page-hero h1 { hyphens: auto; -webkit-hyphens: auto; }
h1 { font-size: var(--fs-800); }
h2 { font-size: var(--fs-700); }
h3 { font-size: var(--fs-600); }
p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: var(--gold-400); color: var(--navy-900); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }
.narrow { max-width: var(--container-narrow); }
.section { padding-block: clamp(3.5rem, 7vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.bg-paper { background: var(--paper); }
.bg-sand  { background: var(--sand-100); }
.bg-mist  { background: var(--mist-100); }
.bg-navy  { background: var(--navy-800); color: #E9EEF4; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-sans);
  font-size: var(--fs-200);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--gold-500); display: inline-block;
}
.bg-navy .eyebrow { color: var(--gold-400); }

.lead { font-size: var(--fs-500); color: var(--ink-700); line-height: 1.6; }
.bg-navy .lead { color: #C4D0DD; }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.muted { color: var(--ink-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-300);
  letter-spacing: .01em;
  padding: .85rem 1.5rem;
  border-radius: var(--radius-pill);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn--primary { background: var(--gold-500); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--gold-400); color: var(--navy-900); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { background: var(--navy-700); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--navy-800); border-color: var(--line-cool); }
.btn--ghost:hover { border-color: var(--navy-800); color: var(--navy-800); transform: translateY(-2px); }
.bg-navy .btn--ghost,
.hero .btn--ghost,
.cta-band .btn--ghost,
.page-hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.bg-navy .btn--ghost:hover,
.hero .btn--ghost:hover,
.cta-band .btn--ghost:hover,
.page-hero .btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn--lg { padding: 1rem 1.85rem; font-size: var(--fs-400); }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--navy-700); }
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,250,247,.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(11,34,57,.05); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: var(--space-5); }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--navy-800); }
.brand:hover { color: var(--navy-800); }
.brand__mark { width: 38px; height: 42px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-serif); font-weight: 700; font-size: 1.4rem; letter-spacing: .005em; color: var(--navy-800); }
.brand__sub  { font-family: var(--font-sans); font-size: .62rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-600); margin-top: 3px; }

.nav-menu { display: flex; align-items: center; gap: clamp(.5rem, 1.6vw, 1.6rem); }
.nav-menu a {
  font-family: var(--font-sans); font-weight: 500; font-size: var(--fs-300);
  color: var(--ink-700); padding: .5rem .15rem; position: relative;
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--gold-500); transition: right .3s var(--ease);
}
.nav-menu a:hover { color: var(--navy-800); }
.nav-menu a:hover::after, .nav-menu a[aria-current="page"]::after { right: 0; }
.nav-menu a[aria-current="page"] { color: var(--navy-800); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: var(--space-4); }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: var(--radius-sm); align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 24px; height: 2px; background: var(--navy-800); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after  { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy-800); color: #E9EEF4; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 78% -10%, rgba(183,148,90,.22), transparent 60%),
    radial-gradient(700px 600px at 0% 110%, rgba(30,74,117,.55), transparent 55%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; padding-block: clamp(4rem, 9vw, 8rem); display: grid; gap: clamp(2.5rem, 5vw, 4rem); grid-template-columns: 1.05fr .95fr; align-items: center; }
.hero h1 { color: #fff; font-size: var(--fs-900); font-weight: 600; }
.hero h1 em { font-style: italic; color: var(--gold-400); }
.hero__lead { font-size: var(--fs-500); color: #C4D0DD; margin-top: var(--space-5); max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-7); }
.hero__trust { margin-top: var(--space-7); display: flex; flex-wrap: wrap; gap: var(--space-5) var(--space-6); }
.hero__trust .ht { display: flex; flex-direction: column; }
.hero__trust .ht b { font-family: var(--font-serif); font-size: 1.7rem; color: var(--gold-400); font-weight: 600; }
.hero__trust .ht span { font-size: var(--fs-200); color: #A9B7C6; letter-spacing: .04em; }

/* Hero visual: 3 Säulen card */
.hero__visual { position: relative; }
.pillars-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: clamp(1.75rem, 3vw, 2.5rem);
  backdrop-filter: blur(6px); box-shadow: var(--shadow-lg);
}
.pillars-card h2 { color: #fff; font-size: var(--fs-600); margin-bottom: var(--space-2); }
.pillars-card > p { color: #B7C4D2; font-size: var(--fs-300); margin-bottom: var(--space-5); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); align-items: end; height: 200px; }
.pillar { border-radius: var(--radius-sm) var(--radius-sm) 4px 4px; position: relative; display: flex; align-items: flex-start; justify-content: center; padding-top: .6rem; color: rgba(255,255,255,.85); font-size: var(--fs-200); font-weight: 600; letter-spacing: .05em; }
.pillar--1 { height: 58%; background: linear-gradient(180deg, #2C547D, #1E4A75); }
.pillar--2 { height: 100%; background: linear-gradient(180deg, var(--gold-400), var(--gold-600)); color: var(--navy-900); box-shadow: 0 12px 30px rgba(183,148,90,.35); }
.pillar--3 { height: 70%; background: linear-gradient(180deg, #2C547D, #1E4A75); }
.pillars-card .legend { margin-top: var(--space-4); font-size: var(--fs-200); color: #9FB0C0; display: flex; gap: .5rem; align-items: center; }
.pillars-card .legend b { color: var(--gold-400); }

/* ---------- Trust bar ---------- */
.trustbar { border-block: 1px solid var(--line); }
.trustbar .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1rem, 4vw, 3rem); padding-block: 1.4rem; }
.trustbar .item { display: inline-flex; align-items: center; gap: .55rem; font-size: var(--fs-300); color: var(--ink-700); font-weight: 500; }
.trustbar .item svg { width: 20px; height: 20px; color: var(--gold-600); flex: none; }

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.5rem, 2.5vw, 2rem);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-400); }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--sand-100); color: var(--gold-600); margin-bottom: var(--space-4);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: var(--fs-600); margin-bottom: var(--space-3); }
.card p { color: var(--ink-700); font-size: var(--fs-300); }
.card__link { margin-top: var(--space-4); }

.feature { display: flex; gap: var(--space-4); }
.feature__num { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--gold-500); flex: none; line-height: 1; }
.feature h3 { font-size: var(--fs-500); margin-bottom: var(--space-2); }
.feature p { color: var(--ink-700); font-size: var(--fs-300); }

/* Split (text + media) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--narrow-media { grid-template-columns: 1.1fr .9fr; }
.media-panel {
  border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: #fff; padding: clamp(1.75rem, 3vw, 2.75rem); box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.media-panel::after { content:""; position:absolute; inset:0; background: radial-gradient(500px 300px at 90% 0%, rgba(183,148,90,.2), transparent 60%); }
.media-panel > * { position: relative; }
.media-panel h3 { color: #fff; }

/* Definition list / facts */
.facts { display: grid; gap: var(--space-4); }
.facts .fact { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); padding-block: var(--space-3); border-top: 1px solid var(--line); }
.facts .fact:first-child { border-top: 0; }
.facts dt { font-weight: 600; color: var(--navy-700); }
.facts dd { color: var(--ink-700); }

/* Checklist */
.checklist { display: grid; gap: var(--space-3); }
.checklist li { position: relative; padding-left: 2.1rem; color: var(--ink-700); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A7339' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); text-align: center; }
.stat b { display: block; font-family: var(--font-serif); font-size: clamp(2.2rem, 4vw, 3.1rem); color: var(--gold-400); font-weight: 600; line-height: 1; }
.bg-navy .stat span { color: #B7C4D2; font-size: var(--fs-300); }
.stat span { display: block; margin-top: var(--space-2); color: var(--ink-500); font-size: var(--fs-300); }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; gap: var(--space-5); }
.steps.grid-4 { grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding-top: var(--space-6); }
.step::before {
  counter-increment: step; content: counter(step,decimal-leading-zero);
  font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700; color: var(--navy-900);
  position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold-400); display: grid; place-items: center;
}
.step h3 { font-size: var(--fs-500); margin-bottom: var(--space-2); margin-top: var(--space-2); }
.step p { color: var(--ink-700); font-size: var(--fs-300); }
.bg-navy .step p { color: #B7C4D2; }

/* ---------- FAQ (native details) ---------- */
.faq { display: grid; gap: var(--space-3); max-width: 820px; margin-inline: auto; }
.faq details {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.faq details[open] { border-color: var(--gold-400); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 1.35rem; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  font-family: var(--font-serif); font-weight: 600; font-size: var(--fs-500); color: var(--navy-800);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; width: 22px; height: 22px; color: var(--gold-600); transition: transform .3s var(--ease); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .faq__body { padding: 0 1.35rem 1.35rem; color: var(--ink-700); font-size: var(--fs-300); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--navy-800), var(--navy-900)); color: #fff; padding: clamp(2.5rem, 5vw, 4rem); text-align: center; }
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(600px 320px at 80% 0%, rgba(183,148,90,.22), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C4D0DD; max-width: 56ch; margin-inline: auto; margin-top: var(--space-3); }
.cta-band .hero__actions { justify-content: center; margin-top: var(--space-6); }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--navy-800); color: #E9EEF4; position: relative; overflow: hidden; }
.page-hero::before { content:""; position:absolute; inset:0; background: radial-gradient(700px 400px at 85% -20%, rgba(183,148,90,.18), transparent 60%); }
.page-hero__inner { position: relative; padding-block: clamp(3rem, 6vw, 5.5rem); max-width: 760px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #C4D0DD; font-size: var(--fs-500); margin-top: var(--space-4); }
.breadcrumb { display: flex; gap: .5rem; font-size: var(--fs-200); color: #93A3B5; margin-bottom: var(--space-4); letter-spacing: .03em; }
.breadcrumb a { color: #B7C4D2; }
.breadcrumb a:hover { color: var(--gold-400); }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: var(--container-narrow); }
.prose h2 { font-size: var(--fs-700); margin-top: var(--space-7); margin-bottom: var(--space-4); }
.prose h3 { font-size: var(--fs-600); margin-top: var(--space-6); margin-bottom: var(--space-3); }
.prose p { margin-bottom: var(--space-4); color: var(--ink-700); }
.prose ul { margin-bottom: var(--space-4); display: grid; gap: var(--space-2); }
.prose ul li { position: relative; padding-left: 1.25rem; color: var(--ink-700); }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .62rem; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--navy-800); }
.prose .updated { font-size: var(--fs-200); color: var(--ink-500); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info .ci { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); padding-block: var(--space-4); border-top: 1px solid var(--line); }
.contact-info .ci:first-of-type { border-top: 0; }
.contact-info .ci svg { width: 24px; height: 24px; color: var(--gold-600); margin-top: 2px; }
.contact-info .ci b { display: block; color: var(--navy-800); }
.contact-info .ci a { color: var(--ink-700); }
.contact-info .ci a:hover { color: var(--gold-600); }

.form { display: grid; gap: var(--space-4); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-sm); }
.field { display: grid; gap: .4rem; }
.field label { font-size: var(--fs-300); font-weight: 600; color: var(--navy-700); }
.field .req { color: var(--gold-600); }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line-cool); border-radius: var(--radius-sm);
  background: var(--ivory); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(183,148,90,.18); background: #fff; }
.field textarea { min-height: 140px; resize: vertical; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .consent { display: grid; grid-template-columns: auto 1fr; gap: .65rem; align-items: start; font-size: var(--fs-300); color: var(--ink-700); }
.form .consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--navy-700); }
.form__note { font-size: var(--fs-200); color: var(--ink-500); }
.form-status { padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-size: var(--fs-300); display: none; }
.form-status.is-ok { display: block; background: #EAF3EC; color: #1F6B3B; border: 1px solid #BFE0C8; }
.form-status.is-err { display: block; background: #FBEDEB; color: #9A2D1F; border: 1px solid #F2C9C2; }

/* Map consent gate */
.map-gate { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--mist-100); min-height: 280px; display: grid; place-items: center; text-align: center; padding: var(--space-6); }
.map-gate p { color: var(--ink-700); max-width: 42ch; margin-bottom: var(--space-4); font-size: var(--fs-300); }
.map-gate iframe { width: 100%; height: 100%; border: 0; position: absolute; inset: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #AFC0D0; padding-block: clamp(3rem, 5vw, 4.5rem) var(--space-6); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(2rem, 4vw, 3rem); }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__sub { color: var(--gold-400); }
.footer-about { color: #93A6B8; font-size: var(--fs-300); margin-top: var(--space-4); max-width: 32ch; }
.footer-col h4 { color: #fff; font-family: var(--font-sans); font-size: var(--fs-200); letter-spacing: .14em; text-transform: uppercase; margin-bottom: var(--space-4); }
.footer-col ul { display: grid; gap: var(--space-2); }
.footer-col a { color: #AFC0D0; font-size: var(--fs-300); }
.footer-col a:hover { color: var(--gold-400); }
.footer-col address { font-style: normal; color: #93A6B8; font-size: var(--fs-300); line-height: 1.8; }
.footer-col address a { color: #AFC0D0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: clamp(2rem, 4vw, 3rem); padding-top: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; align-items: center; font-size: var(--fs-200); color: #7E93A6; }
.footer-bottom a { color: #93A6B8; }
.footer-bottom .fb-links { display: flex; gap: var(--space-5); flex-wrap: wrap; }

/* ---------- Cookie consent ---------- */
.cookie-banner {
  position: fixed; z-index: 200; left: 50%; bottom: clamp(1rem, 3vw, 2rem); transform: translateX(-50%) translateY(20px);
  width: min(680px, calc(100% - 2rem));
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: clamp(1.4rem, 3vw, 1.9rem);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
.cookie-banner.is-visible { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.cookie-banner h2 { font-size: var(--fs-600); display: flex; align-items: center; gap: .6rem; margin-bottom: var(--space-2); }
.cookie-banner h2 svg { width: 24px; height: 24px; color: var(--gold-600); }
.cookie-banner p { font-size: var(--fs-300); color: var(--ink-700); margin-bottom: var(--space-4); }
.cookie-banner p a { text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.cookie-actions .btn { flex: 1 1 auto; }

.cookie-modal { position: fixed; inset: 0; z-index: 210; display: none; place-items: center; padding: 1rem; background: rgba(11,34,57,.55); backdrop-filter: blur(3px); }
.cookie-modal.is-open { display: grid; }
.cookie-modal__box { background: var(--paper); border-radius: var(--radius-lg); width: min(620px, 100%); max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); padding: clamp(1.5rem, 4vw, 2.25rem); }
.cookie-modal h2 { font-size: var(--fs-700); margin-bottom: var(--space-3); }
.cookie-modal > .cookie-modal__box > p { color: var(--ink-700); font-size: var(--fs-300); margin-bottom: var(--space-5); }
.cookie-cat { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4); margin-bottom: var(--space-3); }
.cookie-cat__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.cookie-cat__head h3 { font-size: var(--fs-500); }
.cookie-cat p { font-size: var(--fs-300); color: var(--ink-700); margin-top: var(--space-2); margin-bottom: 0; }
.cookie-cat .badge { font-size: var(--fs-200); font-weight: 600; color: var(--gold-700,#9A7339); background: var(--gold-100); padding: .2rem .65rem; border-radius: var(--radius-pill); }

/* toggle switch */
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track { position: absolute; inset: 0; background: var(--line-cool); border-radius: var(--radius-pill); transition: background .25s var(--ease); }
.switch .track::before { content:""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease); }
.switch input:checked + .track { background: var(--navy-700); }
.switch input:checked + .track::before { transform: translateX(20px); }
.switch input:disabled + .track { background: var(--gold-500); opacity: .7; cursor: not-allowed; }
.cookie-modal__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.cookie-modal__actions .btn { flex: 1 1 auto; }

/* ---------- Scroll reveal ----------
   Initialer Hidden-Zustand NUR wenn JS aktiv ist (html.js). Ohne JS bleiben
   alle Inhalte sichtbar — robust für SEO, No-JS und Druck. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* skip link */
.skip-link { position: absolute; left: 1rem; top: -60px; z-index: 300; background: var(--navy-800); color: #fff; padding: .65rem 1rem; border-radius: var(--radius-sm); transition: top .2s var(--ease); }
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
  .steps.grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* Navigation: ab Tablet-Breite auf Hamburger umstellen, damit die
   horizontale Desktop-Navigation nicht überläuft (Dead-Zone 761–900). */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: var(--space-4) clamp(1.25rem,5vw,2.5rem) var(--space-6);
    gap: 0; box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .35s var(--ease); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-menu.is-open { transform: translateY(0); }
  .nav-menu a { padding: .9rem .25rem; border-bottom: 1px solid var(--line); font-size: var(--fs-400); }
  .nav-menu a::after { display: none; }
  .nav-cta .btn--ghost, .nav-cta .btn--primary { display: none; }
}
@media (max-width: 760px) {
  :root { --header-h: 70px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero__trust { gap: var(--space-5); }
  /* Definitionslisten auf Phones stapeln (lange Komposita sprengen sonst die auto-Spalte) */
  .facts .fact { grid-template-columns: 1fr; gap: var(--space-1); }
  .facts dt { margin-bottom: 2px; }
}
@media (max-width: 420px) {
  .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .steps.grid-4 { grid-template-columns: 1fr; }
  .cookie-actions { flex-direction: column; }
  .cookie-actions .btn { width: 100%; }
}

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

/* print */
@media print {
  .site-header, .site-footer, .cookie-banner, .cookie-modal, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}
