/* ============================================================
   Stylesheet der statischen Rechtsseiten (impressum/datenschutz/agb).

   Warum eine eigene Datei: Die drei Seiten hingen bis zur Abnahme am
   31.07.2026 an `style.css`, dem Stylesheet des Vorgaengerprodukts — andere
   Schrift, andere Palette, Header mit "Login" und "Kostenlos testen". Der
   Bruch beim Klick aus dem Footer der React-App war sofort sichtbar
   (Befund B4). Diese Datei bildet Header, Footer und Typografie der
   React-App nach; die Werte stammen aus tailwind.config.js und den
   Klassen in Header.tsx / Footer.tsx.

   Der Rechtstext selbst ist unveraendert. Die Variablen --border-soft und
   --fg-light bleiben definiert, weil zwei Inline-Styles im Rechtstext sie
   benutzen und der Text nicht angefasst wird.
   ============================================================ */

:root {
  --fg:          #202124; /* vesta-dark */
  --fg-muted:    #4b5563; /* gray-600 */
  --fg-light:    #6b7280; /* gray-500 */
  --border:      #e5e7eb; /* gray-200 */
  --border-soft: #f3f4f6; /* gray-100 */
  --accent:      #1a73e8; /* vesta-primary */
  --bg:          #ffffff;
  --bg-alt:      #f8f9fa; /* vesta-bg */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

/* ── Header (Nachbau von Header.tsx) ───────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--fg);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-word {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: .875rem;
  color: var(--fg-muted);
}
.site-nav a:hover { color: var(--fg); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  font-size: .75rem;
  font-weight: 500;
  color: var(--fg-light);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.lang-switch:hover { color: var(--fg); border-color: #9ca3af; }
.btn-cta {
  background: var(--fg);
  color: #fff;
  font-size: .875rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.btn-cta:hover { background: #000; }

/* ── Rechtstext ────────────────────────────────────────────── */

.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}
.legal h1 {
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 16px;
  /* "Geschaeftsbedingungen" und "Datenschutzerklärung" sind laenger als eine
     390-px-Zeile und schoben die Seite sonst seitlich heraus. */
  overflow-wrap: break-word;
  hyphens: auto;
}
.legal .legal-meta {
  font-size: .88rem;
  color: var(--fg-light);
  margin-bottom: 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-soft);
}
.legal h2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 40px 0 16px;
}
.legal h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 24px 0 10px;
}
.legal p, .legal li {
  font-size: .98rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 14px;
  /* Lange URLs im Datenschutztext duerfen die Seite nicht breiter machen. */
  overflow-wrap: break-word;
}
.legal strong { color: var(--fg); }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal ul li { list-style: disc; margin-bottom: 6px; }
.legal a { color: var(--accent); text-underline-offset: 2px; }
.legal a:hover { text-decoration: underline; }
.legal table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: .94rem; }
.legal th, .legal td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.legal th { font-weight: 600; color: var(--fg); }
.legal .tbd {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: #fff4e0;
  color: #a66400;
  font-size: .88rem;
  font-weight: 500;
}

/* ── Footer (Nachbau von Footer.tsx) ───────────────────────── */

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
  color: var(--fg-muted);
}
.site-footer-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 64px 24px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-bottom: 48px;
}
.footer-tagline {
  font-size: .875rem;
  color: var(--fg-light);
  line-height: 1.6;
  margin: 16px 0 0;
}
.footer-col h4 {
  font-size: .875rem;
  font-weight: 500;
  color: var(--fg);
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { font-size: .875rem; color: var(--fg-light); margin-bottom: 6px; }
.footer-col a { color: var(--fg-light); }
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: .75rem;
  color: #9ca3af;
}
.footer-bottom a:hover { color: var(--fg); }

/* ── Mobil ─────────────────────────────────────────────────── */

@media (max-width: 640px) {
  /*
    Kein Burger-Menue, weil die Rechtsseiten ohne JavaScript ausgeliefert
    werden. Statt die Navigation wie bisher auszublenden (das war Befund M2
    auf der React-Seite), bricht der Header hier in zwei Zeilen um: Marke und
    CTA oben, die Anker darunter.
  */
  .site-header-inner {
    height: auto;
    flex-wrap: wrap;
    padding: 10px 22px;
    row-gap: 8px;
  }
  .site-nav {
    order: 3;
    width: 100%;
    gap: 20px;
    font-size: .82rem;
    overflow-x: auto;
  }
  .legal { padding: 56px 22px 72px; }
  .legal h1 { font-size: 1.7rem; }
  .legal h2 { font-size: 1.2rem; }
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
