:root {
  --bg: #050818;
  --bg-2: #0a1030;
  --panel: rgba(14, 20, 56, 0.78);
  --panel-solid: #0e1438;
  --line: rgba(120, 140, 255, 0.22);
  --text: #eef1ff;
  --muted: #9aa5d6;
  --blue: #4f7cff;
  --violet: #9b5cff;
  --pink: #ff4fa3;
  --orange: #ff8a3d;
  --red: #e10600;
  --green: #3ddc97;
  --glow: linear-gradient(90deg, var(--blue), var(--violet) 45%, var(--pink) 70%, var(--orange));
  --radius: 14px;
  --font-head: 'Archivo Black', 'Arial Black', system-ui, sans-serif;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: #9fb6ff; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); letter-spacing: 0.01em; line-height: 1.15; margin: 0 0 0.6em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.1rem; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.hidden { display: none !important; }

/* ---- Header ---- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(5, 8, 24, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand img { height: 22px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 0.92rem; }
.nav a:hover, .nav a.active { color: #fff; background: rgba(255, 255, 255, 0.06); }
.menu-btn { display: none; margin-left: auto; color: #c9d0f0; background: none; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; padding: 7px 9px; cursor: pointer; }
@media (max-width: 760px) {
  .topbar .wrap { flex-wrap: wrap; }
  .menu-btn { display: grid; place-items: center; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .topbar.open .nav { display: flex; }
  .nav a { padding: 10px 12px; }
  .user-chip { padding: 8px 12px; }
}
.user-chip { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.user-chip img { width: 28px; height: 28px; border-radius: 50%; }

/* ---- Buttons & Formulare ---- */
.btn {
  letter-spacing: .01em;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 0.95rem var(--font); color: #fff; text-decoration: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 10px 18px; border-radius: 8px; transition: transform .1s, background .15s, box-shadow .15s;
}
.btn:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.primary {
  /* dunkle Fläche mit feinem Verlaufsrahmen statt knalligem Vollverlauf */
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--glow) border-box;
  border: 1px solid transparent;
}
.btn.primary:hover { background: linear-gradient(#141b4a, #141b4a) padding-box, var(--glow) border-box; box-shadow: 0 0 22px rgba(155, 92, 255, 0.35); }
.btn.discord { background: rgba(88, 101, 242, 0.18); border-color: rgba(88, 101, 242, 0.55); }
.btn.discord:hover { background: rgba(88, 101, 242, 0.3); }
.btn.danger { background: rgba(225, 6, 0, 0.18); border-color: rgba(225, 6, 0, 0.5); }
.btn.small { padding: 6px 10px; font-size: 0.85rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 4px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text);
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--violet); outline-offset: 1px; }
textarea { min-height: 120px; resize: vertical; font-family: ui-monospace, Consolas, monospace; font-size: 0.9rem; }
input[type=checkbox] { width: auto; accent-color: var(--violet); }
.field { margin-bottom: 12px; }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.check { display: flex; gap: 8px; align-items: center; color: var(--text); font-size: 0.95rem; margin: 6px 0; }

/* ---- Karten ---- */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 30px 10px 30px 10px;
  padding: 22px; backdrop-filter: blur(8px);
}
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
section { padding: 48px 0; }

/* ---- Hero ---- */
.hero {
  position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end;
  background: url('/img/bg-wide.jpg') center 70% / cover no-repeat;
  padding: 120px 0 56px;
}
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,8,24,0.1) 0%, rgba(5,8,24,0.35) 45%, rgba(5,8,24,0.85) 80%, var(--bg) 100%), linear-gradient(90deg, rgba(5,8,24,0.55), transparent 60%); }
.hero > .wrap { position: relative; z-index: 1; }
.hero .logo { width: min(640px, 100%); filter: drop-shadow(0 0 22px rgba(79, 124, 255, 0.55)); }
.hero .date {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 20px 0 8px;
  font-weight: 700; font-size: clamp(1rem, 2.2vw, 1.35rem); letter-spacing: .04em; text-transform: uppercase;
  color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85), 0 0 2px rgba(0, 0, 0, 0.9);
}
.hero .date .sep { width: 28px; height: 2px; background: var(--glow); border-radius: 2px; }
.hero .tag { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); color: #c9d0f0; }
.hero .tag { color: var(--muted); max-width: 560px; margin: 0 0 22px; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 700px) { .hero { background-image: url('/img/bg-tall.jpg'); background-position: center 60%; } }

/* ---- Live-Box ---- */
.live-box { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.live-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(225, 6, 0, .7); animation: pulse 1.6s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(225, 6, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(225, 6, 0, 0); } }
.live-now { font-family: var(--font-head); font-size: clamp(1.3rem, 3vw, 2rem); }
.badge { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--line); color: var(--muted); }
.badge.live { background: var(--red); border-color: var(--red); color: #fff; }
.badge.raid { color: #9fb6ff; }
.badge.show { color: #ffb37d; }
.badge.ok { color: var(--green); border-color: rgba(61, 220, 151, .4); }
.badge.warn { color: #ffd166; border-color: rgba(255, 209, 102, .4); }

/* ---- Spendenbalken ---- */
.progress { height: 18px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; border: 1px solid var(--line); }
.progress > div { height: 100%; background: var(--glow); box-shadow: 0 0 18px rgba(255, 79, 163, .6); width: 0; transition: width 1s ease; }
.donation-figures { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; gap: 12px; flex-wrap: wrap; }
.donation-figures strong { font-family: var(--font-head); font-size: 1.8rem; }

/* ---- Timetable ---- */
.day { margin-bottom: 22px; }
.day h3 { color: var(--muted); font-family: var(--font); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.slot { display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 10px; border: 1px solid transparent; }
.slot:nth-child(odd) { background: rgba(255,255,255,.03); }
.slot.is-live { border-color: rgba(225, 6, 0, .6); background: rgba(225, 6, 0, .12); }
.slot .time { font-variant-numeric: tabular-nums; color: var(--muted); }
.slot .artist { font-weight: 700; }
.slot.past { opacity: .5; }
@media (max-width: 560px) { .slot { grid-template-columns: 80px 1fr; } .slot .badge { grid-column: 2; justify-self: start; } }

.twitch { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: var(--radius); background: #000; }

/* ---- Markdown ---- */
.md h2 { font-size: 1.1rem; margin-top: 1.6em; color: #fff; padding-left: 12px; border-left: 2px solid var(--pink); }
.md p { margin: 0 0 .8em; }
.md ul { padding-left: 1.2em; margin: 0 0 1em; }
.md li { margin-bottom: .3em; }
.md .placeholder { background: rgba(255, 209, 102, .15); color: #ffd166; border-radius: 4px; padding: 0 4px; }

/* ---- Tabellen / Listen ---- */
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.table-wrap { overflow-x: auto; }
.list-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list-item:last-child { border-bottom: 0; }

/* ---- Tabs ---- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs button { font: 600 .92rem var(--font); color: var(--muted); background: transparent; border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.tabs button.active { color: #fff; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.35); }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--panel-solid); border: 1px solid var(--line); padding: 12px 18px; border-radius: 12px; z-index: 50; box-shadow: 0 10px 30px rgba(0,0,0,.5); max-width: calc(100% - 32px); }
.toast.error { border-color: rgba(225, 6, 0, .7); }

.gate { text-align: center; padding: 80px 0; }
.gate .card { max-width: 480px; margin: 0 auto; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .88rem; }
footer .wrap { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }

.heart { color: var(--pink); text-shadow: 0 0 12px var(--pink); }

/* ---- Schlanker Spendenstreifen im Hero ---- */
.don-strip {
  margin-top: 26px; display: grid; grid-template-columns: auto auto 1fr auto; gap: 14px; align-items: center;
  max-width: 640px; padding: 10px 16px; border-radius: 999px; text-decoration: none; color: var(--text);
  background: rgba(5, 8, 24, 0.45); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(6px);
  transition: background .15s, border-color .15s;
}
.don-strip:hover { color: #fff; background: rgba(5, 8, 24, 0.6); border-color: rgba(255, 79, 163, 0.5); }
.don-strip-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.don-strip-sum { white-space: nowrap; font-size: .9rem; color: var(--muted); }
.don-strip-sum strong { color: #fff; font-size: 1.05rem; }
.don-strip-count { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.progress.slim { display: block; height: 6px; border: 0; }
@media (max-width: 560px) {
  .don-strip { grid-template-columns: 1fr auto; border-radius: 16px; gap: 6px 12px; }
  .don-strip .progress { grid-column: 1 / -1; }
  .don-strip-count { display: none; }
}

/* ---- Worum geht es? ---- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-text { font-size: 1.05rem; }
.about-text p { color: #d7dcf5; }
.about-side { display: grid; gap: 12px; position: sticky; top: 80px; }
.btn.wide { width: 100%; }
.center { text-align: center; margin: 0; }
.stats-total { font-family: var(--font-head); font-size: 2.6rem; line-height: 1.1; color: #fff; }
.history { margin-top: 18px; display: grid; gap: 14px; }
.history-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; }
.history-year { font-family: var(--font-head); color: var(--muted); }
.history-main { display: grid; gap: 6px; min-width: 0; }
.history-title { font-size: .88rem; font-weight: 600; }
.history-sum { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.history-sum small { display: block; font-weight: 400; color: var(--muted); font-size: .75rem; }
.history-row.is-now .history-year { color: #fff; }
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 28px; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; display: block; }
.step-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 12px;
  color: #aab3d9; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
}
.step-icon .icon { width: 22px; height: 22px; }
.step p { color: var(--muted); margin: 0; }

/* ---- Geschwungene Formen nach dem Motiv ---- */
.card.wave { position: relative; overflow: hidden; padding-bottom: 38px; }
.card.wave::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 22px; pointer-events: none; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 40' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g'%3E%3Cstop offset='0' stop-color='%234f7cff'/%3E%3Cstop offset='.55' stop-color='%23ff4fa3'/%3E%3Cstop offset='1' stop-color='%23ff8a3d'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 30 C60 8 120 40 200 22 S330 4 400 18' fill='none' stroke='url(%23g)' stroke-width='2.5'/%3E%3Cpath d='M0 37 C80 22 150 40 230 31 S350 18 400 29' fill='none' stroke='url(%23g)' stroke-width='1.2' opacity='.55'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.wave-divider { display: block; width: 100%; height: 60px; margin: -30px 0 -10px; opacity: .7; pointer-events: none; }
.step-icon { border-radius: 50%; }
.slot { border-radius: 18px 6px 18px 6px; }
.tabs button { border-radius: 18px 6px 18px 6px; }
