/* Aussehen der vorgerenderten Seiten (das, was Crawler und der erste Blick sehen).
 *
 * Diese Seiten stehen im HTML, bevor Flutter startet: Google liest sie, und der Besucher sieht
 * sie in der Sekunde, in der die App noch lädt. Die Farben und Abstände sind deshalb dieselben
 * wie in lib/website/site_layout.dart (SiteColors), nur ohne Google-Fonts-Nachladen — eine
 * blockierende Schriftanfrage würde den LCP ausbremsen, und gleich darauf übernimmt ohnehin
 * Flutter mit Barlow. */

:root {
  --bg: #2e2e2e;
  --header: #171717;
  --footer: #1d1d1d;
  --surface: #1b1b1b;
  --divider: #444;
  --text: #e9e9e9;
  --muted: #bdbdbd;
  --accent: #2fbf4a;
  --cta: #2e7d6f;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

/* Der ganze vorgerenderte Block. Flutter entfernt ihn beim ersten Bild (seo-boot.js). */
#seo-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#seo-shell a {
  color: var(--accent);
}

.seo-wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 600px) {
  .seo-wrap {
    padding: 0 32px;
  }
}

/* Kopf */
.seo-header {
  background: var(--header);
}

.seo-header .seo-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
}

.seo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

.seo-brand img {
  width: 36px;
  height: 36px;
}

.seo-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-left: auto;
}

.seo-nav a {
  color: var(--muted);
  text-decoration: none;
  /* 44 px Mindesthöhe: auch vor dem Start der App bleibt alles gut antippbar. */
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Inhalt */
.seo-main {
  flex: 1;
}

.seo-main .seo-wrap {
  padding-top: 32px;
  padding-bottom: 48px;
}

h1 {
  font-size: 32px;
  line-height: 1.15;
  margin: 0 0 12px;
  color: #fff;
}

.seo-lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 60ch;
}

h2 {
  font-size: 26px;
  line-height: 1.2;
  margin: 40px 0 16px;
  color: #fff;
}

h3 {
  font-size: 18px;
  margin: 24px 0 6px;
  color: var(--accent);
}

p {
  margin: 0 0 12px;
  max-width: 70ch;
}

@media (min-width: 900px) {
  h1 {
    font-size: 45px;
  }
  h2 {
    font-size: 36px;
  }
  h3 {
    font-size: 22px;
  }
}

/* Handlungsknöpfe und Store-Abzeichen */
.seo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0 0 28px;
}

.seo-cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 16px;
  background: var(--cta);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}

.seo-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
}

.seo-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0 0 8px;
}

.seo-badges img {
  height: 52px;
  width: auto;
}

/* FAQ: die Fragen stehen als Überschrift im HTML, damit sie gelesen werden können. */
.seo-faq {
  background: var(--surface);
  border-radius: 12px;
  padding: 8px 16px 16px;
}

.seo-faq h3:first-of-type {
  margin-top: 16px;
}

/* Rechtstexte */
.seo-doc p {
  color: var(--text);
  max-width: 72ch;
}

/* Fuß */
.seo-footer {
  background: var(--footer);
  border-top: 1px solid var(--divider);
  color: var(--muted);
  font-size: 14px;
}

.seo-footer .seo-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.seo-footer a {
  color: var(--muted);
}

/* Sprachwahl im Fuß — dieselbe Wahl wie die Flaggen in der App, nur als Adresse. */
.seo-lang {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.seo-lang a {
  color: var(--muted);
}

.seo-lang a[aria-current] {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
