/*
  Dieselbe Farbfamilie wie die App: tiefes Smaragdgrün für die Nacht, warmes
  Creme für den Tag, verbunden durch dasselbe Messinggold. Wer aus der App
  hierher kommt, soll nicht das Gefühl haben, woanders gelandet zu sein.
*/
:root {
  --bg: #08322a;
  --surface: #0e4437;
  --border: #1e6b58;
  --text: #f6f1e3;
  --muted: #b9cfc4;
  --faint: #7fa396;
  --accent: #d9ae5f;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f1e4;
    --surface: #fffbf3;
    --border: #dfd2b8;
    --text: #0b3a30;
    --muted: #4a6b5f;
    --faint: #7c8f84;
    --accent: #a87524;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 2.5rem 1.25rem 5rem; }

header { border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; margin-bottom: 2rem; }

.brand {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}
.brand span { color: var(--accent); }

nav { margin-top: 0.9rem; display: flex; flex-wrap: wrap; gap: 1.25rem; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.94rem; }
nav a:hover, nav a[aria-current] { color: var(--accent); }

h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 0.4rem; letter-spacing: -0.015em; }
h2 {
  font-size: 1.15rem;
  margin: 2.5rem 0 0.7rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}
h3 { font-size: 1rem; margin: 1.6rem 0 0.4rem; }

.lead { color: var(--muted); font-size: 1.05rem; }
.stamp { color: var(--faint); font-size: 0.88rem; margin-bottom: 2rem; }

p, li { color: var(--muted); }
strong { color: var(--text); font-weight: 600; }
a { color: var(--accent); }

ul { padding-left: 1.15rem; }
li { margin-bottom: 0.45rem; }

/* Sprachumschaltung: reine Sprungmarken, damit die Seite ohne Skript auskommt. */
.langs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}
.langs a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  text-decoration: none;
  font-size: 0.9rem;
}
/* Die eigene Sprache bleibt sichtbar, aber ohne Aufforderung zum Klicken. */
.langs a.hier {
  border-color: var(--accent);
  color: var(--accent);
}

/* Sprachwahl auf der Wurzelseite — zwei Zeilen je Eintrag. */
.sprachwahl {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.75rem;
}
.sprachwahl .store { width: 100%; }
.sprachwahl small {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/*
  Store-Knöpfe. Bewusst in der eigenen Gestaltung statt als Nachbau der
  offiziellen Abzeichen: Apple und Google geben für ihre Badges genaue
  Maßvorgaben und stellen die Grafiken selbst bereit — ein selbstgezeichneter
  Nachbau wäre ein Markenverstoß. Ein schlichter Textknopf ist erlaubt.
*/
.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0.5rem; }

.store {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.7rem 1.4rem;
  border-radius: 12px;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  line-height: 1.3;
}
.store small { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; }
.store b { font-size: 1.02rem; font-weight: 600; }
.store:hover { background: var(--surface); }

/* Solange es die App im Store noch nicht gibt: kein Link, sondern ein Hinweis. */
.store--soon {
  border-color: var(--border);
  color: var(--faint);
  cursor: default;
}
.store--soon:hover { background: none; }

/*
  QR-Block. Er wird auf schmalen Bildschirmen ausgeblendet: Wer die Seite am
  Telefon liest, hat das Ziel bereits offen — ein QR-Code, der auf die gerade
  angezeigte Seite verweist, ist dort nur Zierrat.
*/
.qr-block { display: flex; gap: 1.25rem; align-items: center; margin: 2rem 0 0; }
.qr-block img {
  width: 132px;
  height: 132px;
  flex: none;
  border-radius: 10px;
  background: #fffbf3;
  padding: 6px;
}
.qr-block p { margin: 0; font-size: 0.95rem; }

@media (max-width: 40rem) {
  .qr-block { display: none; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.note {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 1.5rem 0;
}

dl { margin: 1.5rem 0; }
dt { color: var(--text); font-weight: 600; margin-top: 1.4rem; }
dd { margin: 0.35rem 0 0; color: var(--muted); }

footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding-top: 1.5rem;
  color: var(--faint);
  font-size: 0.88rem;
}
footer a { color: var(--faint); }

@media (max-width: 30rem) {
  body { font-size: 16px; }
  h1 { font-size: 1.55rem; }
}

/* ── Ladeblock auf der Startseite ─────────────────────────────────────────── */
.laden {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-top: 2rem;
}
.laden h2 { border-top: 0; margin-top: 0; padding-top: 0; }
.laden-fuer { color: var(--muted); margin-top: 0.35rem; }

.laden-reihe {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.knopf {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border-radius: 0.5rem;
  /* Trefferfläche wie in der App: mindestens 44 Punkt hoch. */
  min-height: 2.75rem;
  line-height: 1.4;
}
.knopf:hover { filter: brightness(1.08); }

.qr { margin: 0; text-align: center; }
.qr img {
  display: block;
  width: 8.75rem;
  height: 8.75rem;
  border-radius: 0.35rem;
}
.qr figcaption {
  color: var(--faint);
  font-size: 0.82rem;
  margin-top: 0.5rem;
}

.laden-bald { color: var(--faint); font-size: 0.9rem; margin-top: 1.25rem; }

/* Wer die Seite auf dem Handy liest, kann den eigenen Bildschirm nicht
   scannen. Der Code verschwindet dort, der Knopf bleibt. */
@media (max-width: 34rem) {
  .qr { display: none; }
}
