/* Gestaltung angelehnt an sportakademie-kubanek.de – gemeinsam für Lern-App und Admin */
:root {
  --bg: #0a0a0b;
  --panel: #121214;
  --panel-2: #19191c;
  --panel-3: #202024;
  --text: #f5f5f5;
  --muted: #b9b9bf;
  --dim: #7d7d84;
  --line: #2a2a2f;
  --red: #d51f26;
  --red-2: #a81016;
  --red-soft: rgba(213, 31, 38, .14);
  --eyebrow: #ff6c72;
  --ok: #3fb96b;
  --ok-soft: rgba(63, 185, 107, .14);
  --warn: #e6b23a;
  --bad: #ff5961;
  --bad-soft: rgba(255, 89, 97, .13);
  --neu: #3a3a40;
  --radius: 22px;
  --radius-s: 14px;
  --max: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.6;
}
body::before { /* dezenter roter Schein wie im Hero der Homepage */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 85% 0%, #411014 0, transparent 38%), linear-gradient(135deg, #0b0b0d 0, #121215 60%, #0a0a0b 100%);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.035em; font-weight: 850; }
:focus-visible { outline: 2px solid var(--eyebrow); outline-offset: 2px; }

/* Kopfzeile wie auf der Homepage */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(9, 9, 10, .96);
  backdrop-filter: blur(12px); border-bottom: 1px solid #232326;
}
.nav { max-width: var(--max); margin: auto; min-height: 72px; padding: 8px 22px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; flex-shrink: 0; }
.brand img { width: 46px; height: 46px; }
.brand-text { display: grid; line-height: 1.1; font-weight: 850; letter-spacing: .02em; text-transform: uppercase; font-size: 15px; }
.brand-text small { color: var(--dim); font-size: 11px; letter-spacing: .2em; font-weight: 700; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-links a, .nav-links button.linklike {
  color: #e8e8eb; padding: 10px 12px; border-radius: 10px; font-size: .9rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .02em; text-decoration: none; background: none; border: 0; position: relative;
}
.nav-links a:hover, .nav-links button.linklike:hover { background: var(--panel-3); color: #fff; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 16px; height: 2px; margin-left: -8px; background: var(--red);
}

/* Eyebrow: rote Linie + Versalien */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; color: var(--eyebrow); font-weight: 800;
  text-transform: uppercase; letter-spacing: .16em; font-size: .72rem;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--red); }
.outline { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .55); }
.num { color: var(--red); font-weight: 800; font-size: .75rem; letter-spacing: .12em; }

/* Karten */
.card {
  background: linear-gradient(160deg, var(--panel) 0, #0e0e10 100%); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; margin-bottom: 16px; position: relative; overflow: hidden;
}
.card.glow::after {
  content: ""; position: absolute; top: -80px; right: -80px; width: 220px; height: 220px; pointer-events: none;
  background: radial-gradient(circle, rgba(213, 31, 38, .22), transparent 65%);
}
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); font-size: .68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em; background: rgba(255, 255, 255, .03);
}
.pill.red { border-color: rgba(213, 31, 38, .5); color: var(--eyebrow); background: var(--red-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px;
  border-radius: 999px; font-weight: 800; border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
  color: #fff; text-decoration: none; transition: background .15s, border-color .15s, transform .1s; line-height: 1.2;
}
.btn:hover:not(:disabled) { border-color: #4a4a52; background: rgba(255, 255, 255, .08); }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .4; cursor: default; }
.btn.primary { background: var(--red); border-color: var(--red); }
.btn.primary:hover:not(:disabled) { background: #e2262d; border-color: #e2262d; }
.btn.danger { color: var(--bad); }
.btn.small { padding: 8px 14px; font-size: .85rem; }
.btn .arrow {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255, 255, 255, .18); font-size: 13px;
}

/* Formulare */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: #0d0d0f;
  color: var(--text); outline: none;
}
.input:focus { border-color: var(--red); }
textarea.input { resize: vertical; min-height: 84px; }

.toast {
  position: fixed; left: 50%; bottom: calc(94px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: #fff; color: #111; padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; z-index: 100;
  animation: toast 2.8s ease forwards; box-shadow: 0 20px 50px #0008;
}
.toast.err { background: var(--red); color: #fff; }
@keyframes toast { 0%, 82% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
