/* PSWVokabel – zentrales Stylesheet für alle Seiten.
   Nur Systemschriften, keine externen Ressourcen. Farben aus dem App-Icon. */

:root {
  --green: #34c46c;
  --blue: #0a9bf5;
  --ink-blue: #0b5cad;
  --bg: #fbfcfd;
  --surface: #ffffff;
  --surface-alt: #f1f6f9;
  --text: #1c2228;
  --text-muted: #5b6670;
  --border: #dde5eb;
  --accent: var(--ink-blue);
  --gradient: linear-gradient(135deg, var(--green), var(--blue));
  --radius: 16px;
  --max-width: 60rem;
  --gutter: 1rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101418;
    --surface: #182027;
    --surface-alt: #141b21;
    --text: #e8edf1;
    --text-muted: #9aa6b0;
    --border: #2a343d;
    --accent: #5cb8ff;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-top: 2rem; }
h3 { font-size: 1.15rem; margin-top: 1.5rem; }

p,
ul,
ol {
  margin: 0 0 1em;
}

/* ---------- Layout ---------- */

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

.narrow {
  max-width: 44rem;
}

main {
  padding: 2rem 0 3rem;
}

/* ---------- Kopfzeile ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

/* ---------- Fußzeile ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-footer a {
  color: var(--text-muted);
}

/* ---------- Startseite: Hero ---------- */

.hero {
  text-align: center;
  padding: 2rem 0 1rem;
}

.hero .app-icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 10px 30px rgb(10 100 160 / 0.25);
}

.hero h1 {
  margin-top: 1.25rem;
}

.tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}

.badge {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
}

/* Offizielles Abzeichen „Laden im App Store“ von Apple (nicht verändern, nur skalieren). */
.store-badge {
  display: inline-block;
}

.store-badge img {
  display: block;
  height: 54px;
  width: auto;
}

.hero-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 1rem;
}

/* ---------- Karten und Abschnitte ---------- */

.section {
  padding: 1.5rem 0;
}

.section-intro {
  color: var(--text-muted);
  max-width: 40rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

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

.card h3 {
  margin-top: 0;
}

.card p:last-child {
  margin-bottom: 0;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.highlight {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

/* ---------- Startseite: Beispielkarten ---------- */

.pill {
  display: inline-block;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.example .term {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.example .translation {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.example .details {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

/* ---------- Startseite: Screenshots ---------- */

/* Waagerecht wischbare Reihe; scrollt nur in sich, nie die ganze Seite. */
.screens {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(12rem, 15rem);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1rem;
  margin: 1.25rem 0 0;
  list-style: none;
}

.screens figure {
  margin: 0;
  scroll-snap-align: start;
}

.screens img {
  display: block;
  width: 100%;
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgb(10 60 100 / 0.15);
}

.screens figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- Startseite: Preis und Abschluss ---------- */

.price-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem 2rem;
}

.price-box p:last-child {
  margin-bottom: 0;
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price-box + .meta {
  margin-top: 0.75rem;
}

.cta {
  text-align: center;
  padding-top: 2.5rem;
}

/* ---------- Textseiten (Datenschutz, Impressum, Support) ---------- */

.legal h2 {
  font-size: 1.35rem;
}

.legal address {
  font-style: normal;
}

.meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- FAQ ---------- */

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.25rem;
  margin-bottom: 0.75rem;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details[open] summary {
  margin-bottom: 0.5rem;
}

details p:last-child {
  margin-bottom: 0;
}
