/* Etappa · Website – Designsystem (alle Seiten)
   Nur Systemschriften, keine externen Dateien, kein JavaScript.
   Farben aus App und Marketing-Panorama: Sand, Meer, Navy, Gold.
   Startseiten-Abschnitte stehen in home.css. */

:root {
  color-scheme: light dark;
  --bg: #F4F1EA;            /* Himmel des Panoramas */
  --bg-alt: #ECE5D6;        /* Sand, gedämpft */
  --surface: #FFFFFF;
  --surface-2: #FAF8F3;
  --ink: #17233B;           /* Navy der App */
  --ink-soft: #44526B;      /* 7,1:1 auf --bg */
  --ink-muted: #55627A;     /* 5,5:1 auf --bg, 4,9:1 auf --bg-alt */
  --gold: #D9A64A;          /* Wortmarke – nur Fläche/Deko */
  --gold-ink: #7A5814;      /* Gold als Text, 5,6:1 auf --bg */
  --sea: #A3C7DC;
  --sea-ink: #1D5C82;
  --line: #E2DACA;
  --btn-bg: #17233B;
  --btn-ink: #FFFFFF;
  --btn-hover: #24365A;
  --focus: #1F6FD1;
  --header-bg: rgba(244, 241, 234, 0.86);
  --tint-sand: #EFE4CC;
  --tint-sea: #DCE9F0;
  --tint-sage: #E2EADC;
  --tint-blush: #F3E1D6;
  --band-bg: #17233B;
  --band-ink: #F3EFE6;
  --band-soft: #C3CBDA;
  --shadow-sm: 0 1px 2px rgba(23, 35, 59, 0.06), 0 4px 14px rgba(23, 35, 59, 0.06);
  --shadow-lg: 0 2px 6px rgba(23, 35, 59, 0.08), 0 28px 60px -18px rgba(23, 35, 59, 0.35);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141B28;            /* Nachthimmel des Panoramas */
    --bg-alt: #182233;
    --surface: #1D2739;
    --surface-2: #212C40;
    --ink: #F3EFE6;
    --ink-soft: #C6CDDA;
    --ink-muted: #A5B0C3;
    --gold: #E8C273;
    --gold-ink: #E8C273;
    --sea: #2F566E;
    --sea-ink: #8FC6E6;
    --line: #2C394F;
    --btn-bg: #E8C273;
    --btn-ink: #141B28;
    --btn-hover: #F0D292;
    --focus: #7DB7FF;
    --header-bg: rgba(20, 27, 40, 0.86);
    --tint-sand: #2A2A2B;
    --tint-sea: #1B2B3C;
    --tint-sage: #1D2B2A;
    --tint-blush: #2C2329;
    --band-bg: #0E141F;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 18px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.35), 0 30px 60px -18px rgba(0, 0, 0, 0.7);
  }
}

/* Grundlagen */

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

img, svg, picture { display: block; max-width: 100%; }

.i { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a {
  color: inherit;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover { color: var(--gold-ink); }

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

[id] { scroll-margin-top: 84px; }

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

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.skip-link:focus { top: 12px; }

/* Knöpfe */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 600 17px/1.2 var(--font);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-hover); color: var(--btn-ink); }

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

.btn-small { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-large { min-height: 56px; padding: 16px 32px; font-size: 19px; }

.btn svg { width: 18px; height: 18px; flex: none; }

@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
}

/* Kopfzeile */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  box-shadow: 0 1px 0 var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: var(--shadow-sm); }

.brand-name {
  font: 700 21px/1 var(--font-display);
  letter-spacing: -0.01em;
}

.brand:hover { color: var(--ink); }

.main-nav { display: none; gap: 24px; }

.main-nav a,
.lang-link {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.main-nav a:hover,
.lang-link:hover { color: var(--ink); }

.lang-link {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

@media (min-width: 860px) {
  .main-nav { display: flex; }
}

@media (max-width: 380px) {
  .header-bar .btn-small { padding: 8px 12px; font-size: 14px; }
  .brand-name { font-size: 19px; }
}

/* Gemeinsame Bausteine */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-ink);
}

.eyebrow-pill {
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink-soft);
}

.eyebrow-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2E9D6A;
  box-shadow: 0 0 0 4px rgba(46, 157, 106, 0.18);
}

.note {
  font-size: 15px;
  color: var(--ink-soft);
  border-left: 3px solid var(--gold);
  padding: 2px 0 2px 14px;
}

/* Fragen als Karten (Startseite, Support) */

.faq-list { display: grid; gap: 12px; margin-top: 16px; }

.faq-list details { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font: 600 17px/1.35 var(--font-display);
  border-radius: var(--radius);
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat,
    var(--bg-alt);
}

.faq-list details[open] summary::after {
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
    var(--bg-alt);
}

.faq-list details > :not(summary) {
  padding: 0 22px 20px;
  color: var(--ink-soft);
}

/* Weiterleitungsseiten (alte Pfade) */
.content { padding: 64px 0; }
.content h1 { font-size: 30px; margin-bottom: 12px; }

/* Fußzeile */

.site-footer {
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  font-size: 15px;
  color: var(--ink-soft);
}

.footer-grid {
  display: grid;
  gap: 24px;
  align-items: start;
}

.footer-brand p { margin-top: 8px; color: var(--ink-muted); }

.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { color: var(--ink-soft); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); }

.footer-lang { justify-self: start; display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }

.footer-lang a {
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink-soft);
}

.footer-lang a[aria-current="page"] { background: var(--ink); color: var(--bg); }

.footer-note {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-muted);
}

@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1fr auto auto; gap: 40px; align-items: center; }
}
