@font-face { font-family: 'Arimo'; src: url('/fonts/arimo-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Arimo'; src: url('/fonts/arimo-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  /* Design-Tokens: Schwarz auf Weiß, Spektrum Grün → Rosé → Lila */
  --ink: rgba(0, 0, 0, 0.88);
  --ink-2: rgba(0, 0, 0, 0.72);
  --muted: rgba(0, 0, 0, 0.64);
  --paper: #f3f3f1;
  --surface: #ffffff;
  --line: rgba(0, 0, 0, 0.12);
  --chip: rgba(0, 0, 0, 0.06);
  --lila: #643fbf;
  --lila-deep: #261a7e;
  --gruen: #54b496;
  --gruen-deep: #2c745f;
  --spectrum: linear-gradient(90deg, #54b496 0%, #c0e2d5 18%, #f1d3e4 42%, #c05bdb 68%, #643fbf 100%);
  --soft: linear-gradient(90deg, #dcefe8 0%, #e9def3 55%, #f1d3e4 100%);
  --focus: #643fbf;
  --group: #000000;      /* wird per JS auf die Gruppenfarbe gesetzt */
  --on-group: #ffffff;
  --font: "Helvetica Neue", Helvetica, Arimo, Arial, sans-serif;
  --display: var(--font);
  --text: var(--font);
  --notch: 22px;
  --r: 4px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font); font-weight: 700; letter-spacing: 0; line-height: 1.18; margin: 0; text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
img { max-width: 100%; }

/* Überzeile – Stilmittel des Design Systems (klein, gesperrt, Versalien) */
.overline { margin: 0; font-size: 11px; line-height: 18px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }

/* Karte mit abgeschrägter Ecke unten links + Spektrum-Linie oben */
.notch { position: relative; background: var(--surface); clip-path: polygon(0 0, 100% 0, 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch))); }
.notch::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--spectrum); }
.card { background: var(--surface); }

.logo { display: block; height: auto; }

/* Buttons: primär schwarz, sekundär Pastell-Verlauf */
.btn {
  appearance: none; border: 1px solid transparent; border-radius: var(--r); padding: 13px 22px; min-height: 48px;
  font: 400 17px/22px var(--font); cursor: pointer; background: #000; color: #fff; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: background 140ms var(--ease), transform 140ms var(--ease), box-shadow 140ms var(--ease);
}
.btn:hover { background: var(--lila-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .5; cursor: default; transform: none; }
.btn.secondary { background: var(--soft); color: var(--ink); }
.btn.secondary:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }
.btn.group { background: var(--group); color: var(--on-group); }
.btn.group:hover { filter: brightness(.94); }
.btn.small { min-height: 36px; padding: 7px 14px; font-size: 15px; }
.btn.danger { background: #fff; color: #b42318; border-color: rgba(180, 35, 24, .3); }
.btn .arrow { width: 18px; height: 18px; flex: none; }

.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 14px; color: var(--ink-2); }
.input {
  width: 100%; padding: 12px 14px; min-height: 48px; border-radius: var(--r);
  border: 1px solid rgba(0, 0, 0, .24); background: var(--surface);
}
.input:focus { border-color: var(--lila); outline: none; box-shadow: 0 0 0 3px rgba(100, 63, 191, .16); }
.hint { color: var(--muted); font-size: 14px; }
.error { color: #b42318; font-size: 14px; font-weight: 700; }

.toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: #000; color: #fff; padding: 12px 18px; border-radius: var(--r); font-size: 15px;
  z-index: 50; box-shadow: 0 10px 26px rgba(0, 0, 0, .16); max-width: calc(100% - 32px);
}

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