/* Farben und Schrift der App.
   Bewusst KEINE Google Fonts o.ä. von fremden Servern: Eine deutsche Website,
   die beim Aufruf die IP-Adresse ihrer Besucher an einen Dritten schickt,
   braucht dafür eine Einwilligung (LG München I, 3 O 17493/20). Die Systemschrift
   kostet nichts, lädt sofort und macht die Seite datenschutzrechtlich
   unauffällig - ohne Cookie-Banner. */
:root {
  --terracotta: #c17b5a;
  --terracotta-dark: #a9663f;
  --sage: #7d9e8c;
  --cream: #fbf7f2;
  --ink: #2b241f;
  --ink-muted: #6b5d52;
  --line: #e8ddd1;
  --surface: #ffffff;
  --radius: 18px;
  --wrap: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* Sprunglink: Wer mit der Tastatur navigiert, überspringt damit die
   Kopfzeile, statt sich auf jeder Seite durch dieselben Links zu tabben. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--terracotta);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  font-weight: 700;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* ── Kopf ─────────────────────────────────────────────────────────── */

header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

nav.site a {
  color: var(--ink-muted);
  text-decoration: none;
  margin-left: 22px;
  font-size: 15px;
  font-weight: 600;
}

nav.site a:hover {
  color: var(--terracotta-dark);
}

/* ── Bühne ────────────────────────────────────────────────────────── */

.hero {
  padding: 72px 0 56px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 18ch;
}

.hero p.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--ink-muted);
  max-width: 60ch;
  margin: 0 0 32px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--terracotta);
  color: #fff;
}

.btn-primary:hover {
  background: var(--terracotta-dark);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--terracotta);
}

.hint {
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: 14px;
}

/* ── Abschnitte ───────────────────────────────────────────────────── */

section {
  padding: 56px 0;
}

section h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.05rem);
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}

section > .wrap > p.section-lead {
  color: var(--ink-muted);
  max-width: 62ch;
  margin: 0 0 34px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0 0 12px;
  color: var(--ink-muted);
  font-size: 15.5px;
}

.card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-muted);
  font-size: 15.5px;
}

.card li {
  margin-bottom: 5px;
}

.card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 10px;
}

.band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ── Fragen ───────────────────────────────────────────────────────── */

details.faq {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
}

details.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
}

details.faq p {
  color: var(--ink-muted);
  margin: 12px 0 0;
}

/* ── Fuß ──────────────────────────────────────────────────────────── */

footer.site {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-size: 15px;
  color: var(--ink-muted);
}

footer.site a {
  color: var(--ink-muted);
  margin-right: 20px;
}

footer.site .legal-links {
  margin-bottom: 12px;
}

/* ── Rechtstexte ──────────────────────────────────────────────────── */

article.legal {
  max-width: 74ch;
  padding: 48px 0 72px;
}

article.legal h1 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  margin: 0 0 8px;
}

article.legal .updated {
  color: var(--ink-muted);
  font-size: 15px;
  margin: 0 0 36px;
}

article.legal h2 {
  font-size: 1.28rem;
  margin: 40px 0 10px;
  letter-spacing: -0.01em;
}

article.legal h3 {
  font-size: 1.05rem;
  margin: 26px 0 6px;
}

article.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}

article.legal th,
article.legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

article.legal th {
  background: var(--surface);
  font-weight: 700;
}

article.legal .placeholder {
  background: #fff4e2;
  border: 1px dashed var(--terracotta);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 15px;
}

.table-scroll {
  overflow-x: auto;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #17130f;
    --surface: #211b16;
    --ink: #f2ebe3;
    --ink-muted: #b7a596;
    --line: #362c24;
  }

  header.site {
    background: rgba(23, 19, 15, 0.92);
  }

  .btn-primary {
    color: #1a1209;
  }

  article.legal .placeholder {
    background: #2c2115;
  }
}

/* ── Schmale Bildschirme ──────────────────────────────────────────── */

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 18px;
  }

  /* Die Kopfzeile bricht um, statt die Links aus dem Bild zu schieben. */
  header.site .wrap {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  nav.site {
    width: 100%;
    display: flex;
    gap: 18px;
  }

  nav.site a {
    margin-left: 0;
  }

  .hero {
    padding: 44px 0 36px;
  }

  section {
    padding: 40px 0;
  }

  .card {
    padding: 22px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
