/* Design tokens from graf-launcher.md section 10. No external fonts or requests. */
:root {
  --bg: #F6F0E6;          /* Sahne */
  --surface: #EDE4D4;     /* Leinen */
  --raised: #FBF7F0;      /* Mohn-Creme */
  --accent-text: #29635F; /* Seeglas stark (DECISIONS CI1) */
  --accent: #3F8780;      /* Seeglas */
  --soft: #B5D9D3;        /* Seeglas zart */
  --text: #3A2E27;        /* Kakao */
  --muted: #6B5B51;       /* Zimt-Grau */
  --line: #DCCFBC;        /* Sand */
  --on-accent: #F6F0E6;
  --shadow: 0 8px 32px rgba(58, 46, 39, 0.10);
  --title: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1F1915;          /* Espresso */
    --surface: #2A221D;     /* Mokka */
    --raised: #352B25;      /* Dunkelnuss */
    --accent-text: #8CC7C0; /* Seeglas Nacht */
    --accent: #8CC7C0;
    --soft: #2E4A47;
    --text: #F1E8DA;        /* Pergament */
    --muted: #B5A595;       /* Dämmerung */
    --line: #3F342D;
    --on-accent: #1F1915;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.30);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.45 var(--body);
}
a { color: var(--accent-text); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* Language: both texts are in the page; the root class picks one (no storage, no cookies). */
html.en [lang="de"], html:not(.en) [lang="en"] { display: none !important; }

header.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-mark { width: 40px; height: 40px; }
.brand-name { font: 600 1.25rem/1 var(--title); }
.lang {
  display: inline-flex; background: var(--surface); border-radius: 999px; padding: 4px;
}
.lang button {
  min-width: 48px; min-height: 48px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted); font: 700 0.95rem var(--body);
}
.lang button[aria-pressed="true"] { background: var(--accent-text); color: var(--on-accent); }

.hero { text-align: center; padding: 32px 0 16px; }
.badge {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: var(--surface); color: var(--muted); font-size: 0.85rem; font-weight: 700;
}
h1 { font: 600 clamp(2rem, 6vw, 3.2rem)/1.1 var(--title); margin: 16px 0 12px; letter-spacing: -0.01em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; margin: 0 auto; }

/* Slideshow, modelled on the app intro (IntroScreen.kt). */
.slides {
  margin: 40px auto; max-width: 720px; background: var(--raised);
  border-radius: 28px; box-shadow: var(--shadow); padding: 32px 24px 24px; overflow: hidden;
}
.track { display: flex; transition: transform 350ms var(--ease); }
.slide { flex: 0 0 100%; text-align: center; padding: 0 8px; }
.art { width: 200px; height: 200px; margin: 0 auto 16px; display: block; }
.slide h2 { font: 600 1.6rem/1.2 var(--title); margin: 0 0 8px; }
.slide p { color: var(--muted); margin: 0 auto; max-width: 30em; min-height: 3em; }
.controls { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; }
.dots { display: flex; gap: 4px; }
.dots button {
  width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; padding: 0;
  display: grid; place-items: center;
}
.dots button::before {
  content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--muted);
  transition: width 300ms var(--ease), background 300ms var(--ease);
}
.dots button[aria-current="true"]::before { width: 28px; background: var(--accent); }
.btn {
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent-text); color: var(--on-accent); font: 700 1rem var(--body);
}
.btn.ghost { background: transparent; color: var(--muted); }

/* Art animations: start when the slide becomes active. */
.slide .grow { transform-box: fill-box; transform-origin: center; transform: scale(0.6); opacity: 0.4; }
.slide.active .grow { animation: grow 900ms var(--ease) forwards; }
.slide.active .grow.d1 { animation-delay: 120ms; }
.slide.active .grow.d2 { animation-delay: 240ms; }
.slide.active .grow.d3 { animation-delay: 360ms; }
.slide .slide-in { transform: translateX(-30px); opacity: 0.3; }
.slide.active .slide-in { animation: slidein 900ms var(--ease) forwards; }
@keyframes grow { to { transform: scale(1); opacity: 1; } }
@keyframes slidein { to { transform: translateX(0); opacity: 1; } }
.a-strong { fill: var(--accent); }
.a-soft { fill: var(--surface); }
.a-line { fill: var(--muted); opacity: 0.6; }

.promises {
  display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 0 0 48px; padding: 0; list-style: none;
}
.promises li { background: var(--surface); border-radius: 28px; padding: 24px; }
.promises strong { display: block; font: 600 1.15rem/1.3 var(--title); margin-bottom: 4px; }
.promises span { color: var(--muted); }

footer.bottom { padding: 32px 0 48px; color: var(--muted); font-size: 0.9rem; text-align: center; }
footer.bottom nav { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
footer.bottom nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; }

/* Legal pages */
.doc { max-width: 720px; margin: 0 auto 48px; }
.doc h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
.doc h2 { font: 600 1.3rem/1.3 var(--title); margin: 32px 0 8px; }
.doc section, .doc .card { background: var(--raised); border-radius: 28px; padding: 24px; margin: 16px 0; box-shadow: var(--shadow); }
.doc p, .doc li { color: var(--text); }
.doc .muted { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .track { transition: none; }
  .slide .grow, .slide .slide-in { animation: none !important; transform: none; opacity: 1; }
  .dots button::before { transition: none; }
}
.art .dim { filter: brightness(0.97); }
