/* Lotte – Website. Farben und Schrift wie in den Apps (apps/shared/design Tokens.kt, docs/design/GENERATOR_RULES.md).
   Kein Inline-CSS in den Seiten: die CSP erlaubt nur Dateien von dieser Domain (web/README.md). */

@font-face {
  font-family: "Manrope";
  src: url("/assets/manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --grund: #F4F1EA;
  --flaeche: #FFFFFF;
  --tinte: #1C1F26;
  --sek: #5B6170;
  --linie: #E4E1DA;
  --teal: #0F766E;
  --teal-text: #0F766E;
  --teal-hell: #D7EEEA;
  --teal-hell-text: #0B524C;
  --rahmen: #C9C4B8;
  --avatar: #14A3B4;
  --knopf-text: #FFFFFF;
  --rand: 20px;
  --breite: 1040px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --grund: #121418;
    --flaeche: #1C1F26;
    --tinte: #F1EEE7;
    --sek: #B3B8C2;
    --linie: #2E323B;
    --teal-text: #6FD0C3;
    --teal-hell: #173B37;
    --teal-hell-text: #C4ECE6;
    --rahmen: #737A87;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--tinte);
  font: 600 16px/1.55 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal-text); text-underline-offset: 3px; }
a:focus-visible, .knopf:focus-visible { outline: 3px solid var(--tinte); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, ol, ul { margin: 0; }
[hidden] { display: none !important; }

.sprung {
  position: absolute; left: var(--rand); top: -100px;
  background: var(--flaeche); color: var(--tinte); padding: 12px 16px; border-radius: 12px; z-index: 1;
}
.sprung:focus { top: 12px; }

/* Eine Spalte, an der alle Blöcke ausgerichtet sind (gemeinsame Kanten). */
.spalte { width: 100%; max-width: calc(var(--breite) + 2 * var(--rand)); margin: 0 auto; padding-inline: var(--rand); }
.spalte.schmal { max-width: calc(560px + 2 * var(--rand)); }

.kopf { padding-block: 24px 8px; }
.kopf .spalte { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.marke { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; color: var(--teal-text); text-decoration: none; }
.beta {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--teal-hell); color: var(--teal-hell-text);
  font-size: 13px; font-weight: 700; line-height: 1.3;
}

.held { padding-block: 32px 48px; }
.held .spalte { display: grid; gap: 24px; align-items: center; }
.held h1 { font-size: 32px; line-height: 1.18; font-weight: 800; letter-spacing: -0.015em; }
.held .einleitung { margin-top: 16px; font-size: 18px; color: var(--sek); max-width: 34em; }
.held .zugang { margin-top: 16px; font-size: 15px; color: var(--sek); }
.lotte {
  width: 152px; height: 152px; border-radius: 50%; background: var(--avatar);
  display: block; overflow: hidden;
}
.lotte img { display: block; width: 100%; height: 100%; }

.abschnitt { padding-block: 40px; border-top: 1px solid var(--linie); }
.abschnitt h2 { font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.abschnitt .unterzeile { margin-top: 8px; color: var(--sek); max-width: 40em; }

.karten { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
/* Vier Karten: zwei Paare statt drei und einer allein. */
.karten.paare { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 24px; padding: 24px 20px; }
.karte h3 { font-size: 17px; line-height: 1.3; font-weight: 800; margin-bottom: 8px; }
.karte p { color: var(--sek); font-size: 15px; }

.schritte { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); counter-reset: schritt; }
.schritte li { counter-increment: schritt; }
.schritte .karte h3::before {
  content: counter(schritt); display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; margin-right: 12px;
  background: var(--teal); color: var(--knopf-text); font-size: 15px; font-weight: 800;
}
.schritte .karte h3 { display: flex; align-items: center; }

.hinweis { margin-top: 24px; color: var(--sek); max-width: 40em; }

.fuss { padding-block: 32px 48px; border-top: 1px solid var(--linie); }
.fuss .spalte { display: flex; gap: 8px 24px; flex-wrap: wrap; align-items: center; }
.fuss .name { font-weight: 800; color: var(--tinte); }
.fuss a { color: var(--sek); }

/* Einladungsseite und Rechtliches: schmale Spalte wie ein Handy-Screen. */
.seite { padding-block: 24px 48px; }
.seite h1 { font-size: 26px; line-height: 1.2; font-weight: 800; margin-bottom: 12px; }
.seite h2 { font-size: 19px; line-height: 1.3; font-weight: 800; margin: 24px 0 8px; }
.seite p + p { margin-top: 12px; }
.seite .karte { margin-top: 24px; }
.sek { color: var(--sek); }
.caption { font-size: 13px; font-weight: 700; color: var(--sek); margin-bottom: 8px; }
.code {
  display: block; font: 800 34px/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.06em; margin-bottom: 16px; white-space: nowrap;
}
.knopf {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px;
  padding: 12px 20px; border-radius: 18px; font: inherit; font-size: 16px; font-weight: 700;
  text-decoration: none; text-align: center; cursor: pointer;
}
.primaer { background: var(--teal); color: var(--knopf-text); border: 0; }
.sekundaer { background: var(--flaeche); color: var(--tinte); border: 2px solid var(--rahmen); }
.knopf + .knopf { margin-top: 12px; }
.status { min-height: 1.5em; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--sek); }
.gilt { margin-top: 24px; background: var(--teal-hell); color: var(--teal-hell-text); border-radius: 14px; padding: 12px 16px; font-size: 15px; }
.offen { color: var(--sek); font-style: italic; }

@media (min-width: 720px) {
  :root { --rand: 32px; }
  .held { padding-block: 48px 64px; }
  .held .spalte { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; }
  .held h1 { font-size: 44px; }
  .lotte { width: 240px; height: 240px; grid-column: 2; grid-row: 1; }
  .abschnitt { padding-block: 56px; }
  .abschnitt h2 { font-size: 30px; }
}
