/* Out of the Haze – Website. Farben wie in der App (src/constants/theme.ts). */

:root {
  --text: #1b2733;
  --text-2: #5b6b79;
  --bg: #f4f7f9;
  --card: #ffffff;
  --mist: #dde6ec;
  --border: #d3dce3;
  --primary: #2f6690;
  --blue: #2f80ed;
  --red: #e5484d;
  --sky-top: #1f4e72;
  --sky-bottom: #4f7d9f;
  --wave-1: #a6bccd;
  --wave-2: #d1dde5;
  --radius: 20px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #edf2f6;
    --text-2: #9fb0be;
    --bg: #10171e;
    --card: #1a242d;
    --mist: #26343f;
    --border: #2c3a46;
    --primary: #6fa8d6;
    --blue: #5a9bf0;
    --red: #f16a6e;
    --sky-top: #0c2133;
    --sky-bottom: #24435c;
    --wave-1: #2b4458;
    --wave-2: #1b2c3a;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    17px/1.6 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
}

a {
  color: var(--primary);
}

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

.wrap {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

.narrow {
  max-width: 720px;
}

/* ---------- Kopf ---------- */

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

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

.langs {
  display: flex;
  gap: 4px;
  font-size: 0.9rem;
}

.langs a {
  padding: 4px 8px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  opacity: 0.75;
}

.langs a[aria-current='true'] {
  background: rgb(255 255 255 / 0.18);
  opacity: 1;
  font-weight: 600;
}

/* ---------- Himmel mit Nebel (Startseite) ---------- */

.sky {
  position: relative;
  background: linear-gradient(var(--sky-top), var(--sky-bottom));
  color: #f2f6f9;
  overflow: hidden;
}

.sky a {
  color: inherit;
}

.hero {
  display: grid;
  gap: 24px;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 140px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero .lead {
  margin: 12px 0 0;
  font-size: clamp(1.15rem, 3.2vw, 1.4rem);
  line-height: 1.45;
  opacity: 0.95;
}

.hero .sub {
  margin: 12px 0 0;
  opacity: 0.85;
}

.hero-icon {
  width: clamp(120px, 30vw, 220px);
  border-radius: 22%;
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.3);
  justify-self: center;
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: 1fr auto;
    padding-top: 48px;
    padding-bottom: 180px;
  }
  .hero-icon {
    order: 2;
  }
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.store {
  display: inline-flex;
  flex-direction: column;
  padding: 8px 16px;
  border: 1px solid rgb(255 255 255 / 0.5);
  border-radius: 12px;
  line-height: 1.25;
}

.store small {
  font-size: 0.75rem;
  opacity: 0.8;
}

.store strong {
  font-size: 1.05rem;
}

.waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 120px;
}

.waves .w1 {
  fill: var(--wave-1);
}
.waves .w2 {
  fill: var(--wave-2);
}
.waves .w3 {
  fill: var(--bg);
}

/* ---------- Inhalt ---------- */

/* section.wrap: sonst überschreibt .wrap (Klasse) den Abstand oben/unten */
section.wrap {
  padding-top: 48px;
  padding-bottom: 48px;
}

h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.intro {
  margin: 0 0 24px;
  color: var(--text-2);
  max-width: 640px;
}

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

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

.card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--text-2);
}

.emoji {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.dots {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 10px;
}

.dots i {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.dots .b {
  background: var(--blue);
}
.dots .r {
  background: var(--red);
}

/* Teilen hervorgehoben */
.highlight {
  display: grid;
  gap: 24px;
  align-items: center;
  background: var(--mist);
  border-radius: var(--radius);
  padding: 24px;
}

.highlight picture img {
  width: 180px;
  justify-self: center;
}

@media (min-width: 760px) {
  .highlight {
    grid-template-columns: auto 1fr;
    padding: 32px;
  }
}

.highlight p {
  margin: 0 0 8px;
}

.steps {
  margin: 12px 0 0;
  padding-left: 1.3em;
}

.steps li {
  margin: 4px 0;
}

code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.92em;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
}

/* Fragen */
details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 16px;
  margin-bottom: 10px;
}

summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
}

details p,
details ol,
details ul {
  margin: 0 0 14px;
  color: var(--text-2);
}

/* ---------- Rechtstexte ---------- */

.legal {
  padding-top: 24px;
  padding-bottom: 48px;
}

.legal h1 {
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  line-height: 1.25;
  margin: 8px 0;
}

.legal h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
}

.legal .muted,
.muted {
  color: var(--text-2);
}

.legal hr {
  margin: 3rem 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.todo {
  background: #fff3c4;
  color: #5c4500;
  border-radius: 4px;
  padding: 0 4px;
}

.page-top {
  border-bottom: 1px solid var(--border);
}

.page-top .langs a[aria-current='true'] {
  background: var(--mist);
}

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

footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  color: var(--text-2);
  font-size: 0.92rem;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.center {
  text-align: center;
}

/* QR-Code nur am Computer – am Handy ist man schon da */
.qr {
  display: none;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  font-size: 0.9rem;
  opacity: 0.9;
}

.qr img {
  width: 96px;
  height: 96px;
  padding: 6px;
  background: #ffffff;
  border-radius: 10px;
}

@media (min-width: 760px) and (hover: hover) {
  .qr {
    display: flex;
  }
}

/* Hinweis „im Aufbau“ ganz oben */
.notice {
  margin: 0;
  padding: 10px 16px;
  background: #fff3c4;
  color: #4a3a00;
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: center;
}

.notice a {
  color: inherit;
}
