/* Gemeinsame Gestaltung der öffentlichen Seiten (Design v2 „Matchday Pastell“):
   Werte aus docs/spieltag-redesign/design/tokens.json. Die Schriften liegen
   im selben Ordner (fonts/, SIL OFL 1.1, Lizenztexte daneben) und werden von
   hier selbst geladen, nicht von Google. */
@font-face {
  font-family: 'Big Shoulders Display';
  src: url('fonts/BigShouldersDisplay-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('fonts/BricolageGrotesque-Variable.ttf') format('truetype');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #FBF8F1;
  --surface: #FFFFFF;
  --ink: #16161A;
  --body: #3A393F;
  --muted: #4B4A55;
  --line: #E2DCCD;
  --divider: #EFEBE1;
  --sand: #EFEBE1;
  --butter: #F6DE7A;
  --butter-ink: #4D3F12;
  --mint: #CFE8D5;
  --mint-ink: #2C4B3B;
  --coral: #F4A58C;
  --coral-bg: #FBE3DA;
  --lavender: #CFC8F5;
  --lavender-bg: #ECE8FB;
  --lavender-ink: #4E4880;
  --sky: #B9CFF2;
  --danger: #A3361F;
  --ok: #2C6B45;
  --disabled: #A9A59D;
  --font-display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --font-text: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  min-height: 100vh;
}

/* Kopfzeile: Kachel mit Schriftzug links, Schild rechts. */
.sk-page { max-width: 480px; margin: 0 auto; padding: max(env(safe-area-inset-top), 20px) 20px 48px; }
.sk-page.wide { max-width: 640px; }
.sk-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sk-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.sk-logo-tile {
  width: 36px; height: 36px; border-radius: 12px; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.sk-logo-tile svg { width: 22px; height: 22px; }
.sk-logo-word { font-family: var(--font-display); font-weight: 900; font-size: 27px; line-height: 1; letter-spacing: .01em; }
.sk-tag {
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  background: var(--lavender); color: var(--ink); padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}

.sk-title {
  font-family: var(--font-display); font-weight: 900; font-size: 46px; line-height: .92;
  text-transform: uppercase; margin: 0 0 22px;
}
.sk-title.small { font-size: 36px; line-height: 1; }
.sk-lead { font-size: 15px; line-height: 1.55; color: var(--body); margin: 0 0 24px; }
.sk-lead b { color: var(--ink); }
.sk-kicker { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; }
.sk-hint { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0 0 20px; }
.sk-small { font-size: 12.5px; line-height: 1.5; color: var(--muted); text-align: center; margin: 14px 0 0; }
.sk-small a, .sk-link { color: var(--ink); }
.sk-foot a { color: #8B8A90; }

.sk-card { background: var(--surface); border-radius: 22px; padding: 16px; margin-bottom: 16px; }
.sk-notice { border-radius: 20px; padding: 14px 16px; font-size: 14px; line-height: 1.5; margin: 0 0 20px; }
.sk-notice.warn { background: var(--coral-bg); color: var(--danger); font-weight: 600; }
.sk-notice.info { background: var(--mint); color: var(--mint-ink); }

.sk-btn {
  display: block; width: 100%; text-align: center; text-decoration: none; cursor: pointer;
  background: var(--ink); color: #fff; border: 0; border-radius: 18px; padding: 15px 16px; margin-top: 16px;
  font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: .035em; text-transform: uppercase;
}
.sk-btn.text { font-family: var(--font-text); font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.sk-btn:disabled { background: var(--disabled); cursor: default; }
.sk-btn.secondary { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.sk-btn.danger { background: var(--coral); color: var(--ink); }
.sk-btn:active:not(:disabled) { opacity: .88; }

.sk-input {
  display: block; width: 100%; font-family: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 15px 16px; margin: 0 0 4px;
}
.sk-input:focus { outline: none; border-color: var(--ink); border-width: 2px; padding: 14.5px 15.5px; }
.sk-label { display: block; font-size: 14px; font-weight: 700; margin: 18px 0 8px; }

.sk-status { font-size: 14px; line-height: 1.5; margin-top: 14px; color: var(--muted); }
.sk-status.error { color: var(--danger); font-weight: 700; }
.sk-ok { color: var(--ok); font-weight: 700; }

/* Auswahlkarte mit Kästchen (Elternfreigabe) */
label.sk-check {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer; background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 22px; padding: 16px; font-size: 14.5px; line-height: 1.5; color: var(--body);
  margin-bottom: 12px;
}
label.sk-check:has(input:checked) { border: 2.5px solid var(--ink); padding: 15px; }
label.sk-check input {
  appearance: none; -webkit-appearance: none; width: 24px; height: 24px; min-width: 24px; margin: 1px 0 0;
  border-radius: 8px; border: 2.5px solid var(--ink); background: var(--surface); display: grid; place-content: center; cursor: pointer;
}
label.sk-check input:checked { background: var(--ink); }
label.sk-check input:checked::after {
  content: ""; width: 10px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

/* Statusseiten (Danke, Bereits bestätigt, Widerrufen, Abgelaufen, Ungültig) */
.sk-state { text-align: center; padding: 8px 4px 4px; }
.sk-state-icon {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center; background: var(--sand);
}
.sk-state-icon.ok { background: var(--mint); }
.sk-state-icon.warn { background: var(--butter); }
.sk-state-icon svg { width: 28px; height: 28px; stroke: var(--ink); }
.sk-state-title { font-family: var(--font-display); font-weight: 900; font-size: 34px; line-height: .95; text-transform: uppercase; margin: 0 0 10px; }
.sk-state-hint { font-size: 15px; line-height: 1.55; color: var(--body); margin: 0 auto 8px; max-width: 340px; }

.sk-foot { font-size: 11.5px; color: #8B8A90; text-align: center; margin: 28px 0 0; }
.hidden { display: none !important; }
