/* EVA — Website. Farben wie in lib/core/design/eva_tokens.dart: Peach Cream,
   Pastell ohne Weiß, Glas vor weichen Farbflächen. Die Schrift liegt hier und
   nicht bei Google Fonts — so geht beim Aufruf keine IP-Adresse an Dritte. */

@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("/fonts/Poppins-Regular.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("/fonts/Poppins-Medium.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("/fonts/Poppins-SemiBold.ttf") format("truetype"); }

:root {
  --bg-1: #F9E6DB;
  --bg-2: #F7DFD2;
  --bg-3: #F4D8CA;
  --orb-1: #F0B39A;
  --orb-2: #F7E3A1;
  --orb-3: #CFE2C2;
  --glass: rgba(251, 237, 229, 0.62);
  --glass-edge: rgba(255, 248, 243, 0.6);
  --surface: #FBEDE5;
  --ink: #3B2820;
  --ink-muted: #735749;
  --accent: #A8553A;
  --peach: #F0B39A;
  --butter: #F7E3A1;
  --sage: #D3E3C7;
  --shadow: rgba(120, 70, 50, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-1: #2B1F1B;
    --bg-2: #261B18;
    --bg-3: #221815;
    --orb-1: #7A4A38;
    --orb-2: #6B5A2E;
    --orb-3: #45563C;
    --glass: rgba(58, 42, 36, 0.62);
    --glass-edge: rgba(255, 233, 221, 0.2);
    --surface: #34261F;
    --ink: #F7E6DC;
    --ink-muted: #CDB3A6;
    --accent: #F0B39A;
    --shadow: rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: linear-gradient(170deg, var(--bg-1), var(--bg-2) 50%, var(--bg-3));
  background-color: var(--bg-2);
}

/* Die Flächen hinter dem Glas. Ohne sie wäre der Blur unsichtbar. */
.orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orbs span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.75; }
.orbs span:nth-child(1) { width: 46vmax; height: 46vmax; background: var(--orb-1); top: -14vmax; right: -12vmax; }
.orbs span:nth-child(2) { width: 34vmax; height: 34vmax; background: var(--orb-2); top: 38vh; left: -14vmax; }
.orbs span:nth-child(3) { width: 30vmax; height: 30vmax; background: var(--orb-3); bottom: -12vmax; right: 8vw; }

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 28px;
  box-shadow: 0 10px 30px var(--shadow), inset 0 1px 0 var(--glass-edge);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--surface); }
}

a { color: var(--accent); text-underline-offset: 3px; }

/* Die schwebende Glas-Kapsel oben, wie die Leiste in der App. */
.bar {
  position: sticky;
  top: 12px;
  z-index: 1;
  margin: 12px auto 0;
  width: min(960px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: 0 6px 20px var(--shadow);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: 0.04em; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 8px; }
.bar nav a { padding: 6px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; }
.bar nav a:hover { background: var(--peach); color: #3B2820; }

main { flex: 1; width: min(960px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 48px; }

.hero { text-align: center; padding: 40px 0 48px; }
.hero .icon { width: 132px; height: 132px; border-radius: 30px; box-shadow: 0 14px 40px var(--shadow); }
.hero h1 { font-size: clamp(32px, 7vw, 54px); line-height: 1.15; font-weight: 600; margin: 28px 0 14px; letter-spacing: -0.01em; }
.lead { font-size: clamp(17px, 2.6vw, 20px); color: var(--ink-muted); max-width: 32ch; margin: 0 auto; }
.soon {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--peach);
  color: #3B2820;
  border: 1px solid #A8553A;
  font-weight: 500;
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cards article { padding: 24px; }
.cards h2 { font-size: 18px; font-weight: 600; margin: 14px 0 6px; line-height: 1.35; }
.cards p { margin: 0; color: var(--ink-muted); }
.dot { display: block; width: 36px; height: 36px; border-radius: 50%; }
.dot.peach { background: var(--peach); }
.dot.butter { background: var(--butter); }
.dot.sage { background: var(--sage); }

/* Textseiten: Hilfe und die Rechtstexte. Deckend genug für Fließtext. */
.text { max-width: 720px; margin: 0 auto; padding: clamp(22px, 5vw, 44px); background: var(--surface); }
.text h1 { font-size: clamp(26px, 5vw, 34px); font-weight: 600; line-height: 1.2; margin: 0 0 20px; }
.text h2 { font-size: 18px; font-weight: 600; margin: 28px 0 6px; line-height: 1.35; }
.text p, .text ul { margin: 0 0 12px; }
.text ul { padding-left: 20px; }
.text li { margin-bottom: 4px; }
.text p, .text li { overflow-wrap: anywhere; }
.gap {
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(161, 33, 63, 0.1);
  margin-bottom: 20px;
}

footer { width: min(960px, calc(100% - 32px)); margin: 0 auto; padding: 0 0 32px; text-align: center; font-size: 14px; color: var(--ink-muted); }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-bottom: 8px; }
footer nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
footer nav a:hover { color: var(--accent); }
footer p { margin: 0; }
