/* Infoseite und Hinweisseiten der Vorschau-Domain im SPREAD-Markendesign (UI-05, marke/DESIGN.md).
   Werte aus marke/tokens.css; Dunkel ist Standard, Hell fuer Impressum und Datenschutz zum Lesen. */

@font-face {
  font-family: Outfit;
  src: url('schriften/outfit-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Geist;
  src: url('schriften/geist-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #0b1110;
  --ink-raised: #141b19;
  --paper: #f2f7f5;
  --white: #ffffff;
  --mint: #2de6a4;
  --mint-hover: #53eab4;
  --mint-on-light: #1a7d5a;
  --line-dark: #222a28;
  --line-light: #dadbdb;
  --muted-dark: #919493;
  --muted-light: #595d5c;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --rand: 16px;
  --display: Outfit, system-ui, sans-serif;
  --text-font: Geist, system-ui, sans-serif;
}

@media (min-width: 768px) {
  :root { --rand: 48px; }
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--text-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.thema-dunkel { --grund: var(--ink); --text: var(--white); --leise: var(--muted-dark); --linie: var(--line-dark); --link: var(--mint); }
.thema-hell { --grund: var(--paper); --text: var(--ink); --leise: var(--muted-light); --linie: var(--line-light); --link: var(--mint-on-light); }

body { background: var(--grund); color: var(--text); }

main { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--rand); }

a { color: var(--link); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

h1, h2 { font-family: var(--display); margin: 0; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(40px, 6.2vw, 72px); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
.gross { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: var(--leise); max-width: 60ch; }
.leise { color: var(--leise); font-size: 14px; }
.zahl { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Kopf und Fuss */
.kopf { width: 100%; max-width: 1280px; margin: 0 auto; padding: 24px var(--rand); position: relative; z-index: 1; }
.kopf__logo { display: inline-block; padding: 8px 0; }
.kopf__logo img { display: block; height: 30px; width: auto; }

.fuss {
  /* So breit wie der Inhalt, damit die Linie mit den Abschnitten fluchtet */
  width: min(100% - 2 * var(--rand), 1280px - 2 * var(--rand));
  margin: 96px auto 0;
  padding: 24px 0 40px;
  border-top: 1px solid var(--linie);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  justify-content: space-between;
  color: var(--leise);
  font-size: 14px;
}
.fuss nav { display: flex; gap: 24px; }
.fuss a { color: var(--leise); text-decoration: none; display: inline-block; padding: 2px 0; }
.fuss a:hover { color: var(--text); text-decoration: underline; }

/* Buehne der Infoseite: das Signet gross und am Rand angeschnitten, das Logo steht im Kopf. Als Hintergrund
   eines Kastens bis zum Rand, damit nichts seitlich ueberlaeuft. */
.seite-start { position: relative; }
.seite-start::before {
  --durchmesser: min(80vw, 520px);
  content: '';
  position: absolute;
  top: 40px;
  right: 0;
  width: calc(var(--durchmesser) * 0.72);
  height: var(--durchmesser);
  background: url('spread-signet-mint-aussparung.svg') no-repeat 0 0 / var(--durchmesser) var(--durchmesser);
  opacity: 0.12;
  pointer-events: none;
}
@media (max-width: 767px) {
  .seite-start::before { opacity: 0.08; top: 64px; }
}
main { position: relative; }
.buehne { position: relative; padding: 72px 0 96px; }
.buehne__text { position: relative; display: flex; flex-direction: column; gap: 28px; }
.buehne__text h1 { max-width: 14ch; }
.buehne__text .gross { max-width: 46ch; }

/* Abschnitte: Titel links, Text rechts, getrennt durch eine feine Linie */
.abschnitt {
  display: grid;
  gap: 20px;
  padding: 48px 0;
  border-top: 1px solid var(--linie);
}
@media (min-width: 900px) {
  .abschnitt { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; padding: 64px 0; }
}
.text { display: flex; flex-direction: column; gap: 16px; max-width: 62ch; }
.text p, .punkte li { color: var(--leise); }
.text strong, .punkte strong { color: var(--text); font-weight: 600; }

.punkte { list-style: none; margin: 0; padding: 0; max-width: 62ch; }
.punkte li { padding: 16px 0; border-top: 1px solid var(--linie); }
.punkte li:first-child { border-top: 0; padding-top: 0; }
.punkte li:last-child { padding-bottom: 0; }

/* Knoepfe: ein Hauptaufruf in Mint je Abschnitt, daneben eine Kontur */
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 150ms var(--ease), transform 150ms var(--ease);
}
.knopf:hover { background: var(--mint-hover); text-decoration: none; }
.knopf:active { transform: translateY(1px); }
.knopf--kontur { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--linie); }
.knopf--kontur:hover { background: transparent; box-shadow: inset 0 0 0 1px var(--leise); }
/* Der Knopf „Abmelden“ ist ein echter Knopf im Formular (SPERRE-02) */
button.knopf { border: 0; margin: 0; cursor: pointer; font-family: inherit; }
button.knopf:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

/* Hinweisseiten: abgelaufen, nicht gefunden, Abmeldung */
.hinweis { display: flex; flex-direction: column; gap: 24px; padding: 96px 0 48px; max-width: 760px; }
.hinweis h1 { max-width: 14ch; }

/* Lesen: Impressum und Datenschutzerklaerung */
.lesen { max-width: 70ch; padding: 48px 0 0; }
.lesen h1 { font-size: clamp(32px, 7vw, 56px); margin-bottom: 32px; }
.lesen h2 { font-size: 24px; margin: 40px 0 12px; }
.lesen p, .lesen ul { margin: 0 0 12px; }
.lesen ul { padding-left: 1.2em; }
.lesen li { margin-bottom: 8px; }
.lesen .leise { margin-top: 40px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
