/*
 * Design-System der Plattform — Quelle der Wahrheit für Landingpage,
 * Dashboard (services/dashboard/src/styles.css spiegelt diese Tokens) und
 * Authentik-Branding (charts/authentik/branding.css).
 *
 * Farbrichtung bewusst nicht "generisches SaaS-Blau": dunkles Waldgrün mit
 * warmem Amber — Lagerfeuer/Dämmerung. Passt zum Produkt (Reisen, draußen
 * sein) und war schon die Richtung des ursprünglichen Dashboards, wird hier
 * nur konsequent ausgebaut statt ersetzt.
 *
 * Schriften: Fraunces (Display, warme Serife mit eigenem Charakter) über
 * Karla (Fließtext, freundliche Grotesk). Beide SELBST GEHOSTET unter
 * fonts/ — bewusst NICHT über das Google-Fonts-CDN: das überträgt die
 * IP-Adresse jedes Besuchers an Google und wäre ein direkter Widerspruch
 * zum DSGVO-Versprechen, mit dem die Seite selbst wirbt (LG München
 * 3 O 17493/20). Jeweils eine Variable-Font-Datei pro Familie, zusammen
 * ~96 KB, nur lateinischer Zeichensatz.
 */
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("/fonts/karla-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/*
 * HELL, und zwar für alle. Es gab kurz eine dunkle Fassung über
 * prefers-color-scheme — die ist bewusst wieder raus: Wer sein System auf
 * Dark Mode stellt (also viele), bekam damit weiterhin die dunkle Seite zu
 * sehen, obwohl ausdrücklich die helle gewünscht war. Ein automatischer
 * Wechsel nach Systemeinstellung ist hier also NICHT erwünscht.
 *
 * Falls Dark Mode später zurückkommen soll, dann als bewusster Schalter
 * für den Nutzer (data-theme am <html>), nicht über die Systemeinstellung.
 * Farben deshalb weiterhin IMMER über die Tokens setzen, nie als Hex im
 * Bauteil — sonst wird genau das später zur Fleißarbeit.
 *
 * Der helle Grund ist bewusst kein reines Weiß und auch nicht das übliche
 * Creme, sondern ein sehr leicht grünstichiges Papierweiß — es nimmt den
 * Waldgrün-Ton der Marke auf, ohne farbig zu wirken.
 */
:root {
  color-scheme: light;

  /* Flächen, von hell nach dunkler */
  --bg: #f7f7f2;
  --bg-raised: #f1f1e9;
  --surface: #ffffff;
  --surface-hi: #f3f3ec;
  --border: #e2e1d5;
  --border-hi: #c9c8b7;

  /* Text */
  --text: #191d13;
  --text-dim: #5a6050;
  --text-faint: #868b7b;

  /* Akzente
     Amber trägt als Flächenfarbe (dunkler Text darauf), ist als TEXTfarbe
     auf hellem Grund aber zu schwach — dafür --accent-ink, das die 4.5:1
     aus WCAG AA erreicht. Beides derselbe Farbton, nur andere Helligkeit. */
  --accent: #f2c230;          /* Amber — Flächen, primäre Aktion */
  --accent-hi: #e5b420;
  --accent-text: #191d13;     /* Text auf Amber */
  --accent-ink: #8a6300;      /* Amber als Text/Linkfarbe auf hellem Grund */
  --clay: #b4551f;            /* Terrakotta — sekundär, Wärme */
  --sage: #40702f;            /* Salbei — Erfolg, "es läuft" */
  --danger: #b03418;
  --glow: rgba(242, 194, 48, 0.22);  /* Lichtschein im Hero */
  --shadow: rgba(40, 44, 30, 0.14);
  --svg-land: #e8e9dd;
  --svg-land-2: #dfe1d2;
  --svg-route: #8a6300;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Karla", ui-sans-serif, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono",
    Menlo, monospace;

  --radius: 10px;
  --radius-lg: 18px;
  --maxw: 1080px;

  /* Schrift-Skala */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(1.9rem, 1.5rem + 2vw, 2.9rem);
  --step-4: clamp(2.4rem, 1.7rem + 3.4vw, 4.2rem);
}


* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-ink); }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 14px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
  /* Fraunces' "soft"/"wonk"-Achsen leicht mitnehmen — gibt der Serife den
     handgeschnittenen Einschlag, der sie von einer Standard-Serife
     unterscheidet, ohne dass es dekorativ wird. */
  font-variation-settings: "SOFT" 20, "WONK" 1;
}
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.005em; }

p { margin: 0 0 1em; }
.lead { font-size: var(--step-1); color: var(--text-dim); line-height: 1.55; }
.muted { color: var(--text-dim); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hi); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-hi); }
.btn-ghost:hover { border-color: var(--text-dim); background: var(--surface); }
.btn-sm { padding: 9px 16px; font-size: var(--step--1); }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
}
.brand-mark {
  width: 30px; height: 30px;
  flex: none;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a.navlink {
  color: var(--text-dim);
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 550;
}
.nav-links a.navlink:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- Abschnitte ---------- */
section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 60ch; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { margin-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: clamp(56px, 8vw, 104px);
  overflow: hidden;
}
.hero::before {
  /* weicher Lichtschein statt Verlaufs-Klischee */
  content: "";
  position: absolute;
  inset: -30% 20% auto -10%;
  height: 620px;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 20px; }
.hero .lead { max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note {
  margin-top: 18px;
  font-size: var(--step--1);
  color: var(--text-faint);
}

/* Karten-Illustration im Hero */
.hero-visual {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-raised) 100%);
  padding: 10px;
  box-shadow: 0 30px 60px -30px var(--shadow);
}
.hero-visual svg { border-radius: calc(var(--radius-lg) - 6px); display: block; width: 100%; height: auto; }

/* ---------- Karten/Raster ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 880px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px);
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 40px; height: 40px;
  margin-bottom: 18px;
  color: var(--accent);
}

/* ---------- Feature-Blöcke (abwechselnd) ---------- */
.feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(56px, 8vw, 104px); }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature-media { order: -1; }
}
.feature-num {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--clay);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.feature h3 { font-size: var(--step-2); margin-bottom: 14px; }
.feature-media {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  padding: 8px;
  overflow: hidden;
}
.feature-media svg { display: block; width: 100%; height: auto; border-radius: 12px; }

/* ---------- Vergleichstabelle ---------- */
.compare {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.compare-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}
.compare-row:first-child { border-top: 0; }
.compare-row > div { padding: 16px 20px; }
.compare-head {
  background: var(--surface-hi);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.02em;
}
.compare-head > div + div { text-align: center; }
.compare-row > div + div { text-align: center; border-left: 1px solid var(--border); }
.compare-label { color: var(--text-dim); }
.yes { color: var(--sage); font-weight: 700; }
.no { color: var(--text-faint); }
@media (max-width: 720px) {
  .compare-row { grid-template-columns: 1fr; }
  .compare-row > div + div { text-align: left; border-left: 0; border-top: 1px dashed var(--border); }
  .compare-row > div + div::before {
    content: attr(data-label) ": ";
    color: var(--text-faint);
    font-size: var(--step--1);
  }
  .compare-head { display: none; }
}

/* ---------- Schritte ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.step-num {
  counter-increment: step;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 800;
  font-size: 1.1rem;
}
.step-num::before { content: counter(step); }
.step h3 { margin-bottom: 6px; }
.step p { margin-bottom: 0; color: var(--text-dim); }

/* ---------- Anwendungsfälle ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  padding: 9px 18px;
  color: var(--text-dim);
  font-size: var(--step--1);
  background: var(--bg-raised);
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
details.qa {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
}
details.qa summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 650;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after {
  content: "+";
  color: var(--accent-ink);
  font-size: 1.4rem;
  line-height: 1;
  flex: none;
}
details.qa[open] summary::after { content: "–"; }
details.qa .qa-body { padding: 0 22px 20px; color: var(--text-dim); }
details.qa .qa-body p:last-child { margin-bottom: 0; }

/* ---------- Abschluss-CTA ---------- */
.cta-band {
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 15% 0%, var(--glow), transparent 60%),
    var(--surface);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band .lead { margin: 0 auto 28px; max-width: 52ch; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Fußzeile ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 64px;
  color: var(--text-faint);
  font-size: var(--step--1);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }

/* Fokus-Sichtbarkeit durchgängig, nicht wegoptimieren */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px; top: 12px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-text);
  padding: 10px 16px;
  border-radius: var(--radius);
}

/* ---------- Kopfzeile auf schmalen Geräten ---------- */
/*
 * Auf dem Handy stehen Logo und zwei Buttons sonst zu gedrängt und die
 * Zeile wird zu hoch. Reihenfolge der Sparmaßnahmen: erst die Navigation
 * (ist per Sprungmarke ohnehin ersetzbar), dann Button-Größe, zuletzt der
 * Markenschriftzug — das Zeichen allein bleibt erkennbar.
 */
@media (max-width: 560px) {
  .site-header .wrap {
    min-height: 58px;
    padding: 0 16px;
    gap: 10px;
  }
  .brand { font-size: 1rem; gap: 8px; }
  .brand-mark { width: 26px; height: 26px; }
  .nav-actions { gap: 8px; }
  .btn-sm { padding: 8px 12px; }
}

@media (max-width: 380px) {
  /* Ganz schmale Geräte: nur noch Zeichen statt Schriftzug, damit die
     beiden Aktionen nicht umbrechen. */
  .brand-text { display: none; }
}
