/* infacted – Look von Entwurf 26 (Kriegsbanner, dunkel) */
:root {
  --bg: #0a0a0a;
  --panel: #141414;
  --panel-2: #1c1c1c;
  --line: #2a2a2a;
  --text: #f2f2f2;
  --muted: #c8c8c8;
  --dim: #9a9a9a;
  --red: #b3161b;
  --red-light: #ff6a5c;
  --gold: #d8b25a;
  --peach: #ffb38a;
  --discord: #5865f2;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.5;
}
a { color: var(--red-light); }
a:hover { color: #ff9a90; }
img { max-width: 100%; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.oswald { font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: 0.06em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kopfleiste */
.site-header { background: var(--red); position: relative; z-index: 2; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img { height: 48px; width: auto; display: block; }
.brand span { font-family: Oswald, sans-serif; font-weight: 700; font-size: 24px; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1; }
.brand small { display: block; margin-top: 4px; font-size: 11px; font-weight: 500; letter-spacing: 0.22em; opacity: 0.9; }
.main-nav { display: flex; flex-wrap: wrap; gap: 22px; font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: 0.06em; }
.main-nav a { color: #fff; text-decoration: none; }
.main-nav a:hover { text-decoration: underline; color: #fff; }
.auth-box { display: flex; align-items: center; gap: 10px; }
.auth-box img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border: none; cursor: pointer;
  font-family: Oswald, sans-serif; font-size: 16px; text-transform: uppercase; letter-spacing: 0.06em;
  text-decoration: none; color: #fff; background: var(--red);
}
.btn:hover { color: #fff; filter: brightness(1.12); }
.btn-dark { background: var(--bg); }
.btn-discord { background: var(--discord); }
.btn-ghost { background: transparent; border: 1px solid #4a4a4a; color: var(--text); }
.btn-ghost:hover { color: var(--text); border-color: #777; }
.btn-big { min-height: 52px; padding: 0 28px; font-size: 18px; clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%); }
.btn[aria-pressed="true"] { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn:disabled { opacity: 0.5; cursor: default; }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: 680px; background: #2a0708; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-horde { position: absolute; right: 7%; top: 70px; height: 420px; width: auto; opacity: 0.92; }
.hero .wrap { position: relative; padding-top: 96px; padding-bottom: 200px; }
.eyebrow { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-family: Oswald, sans-serif; color: var(--peach); font-size: 18px; letter-spacing: 0.2em; text-transform: uppercase; }
.eyebrow img { height: 44px; width: auto; }
.hero h1 { margin: 8px 0 0; font-family: Oswald, sans-serif; font-weight: 700; font-size: clamp(52px, 8vw, 112px); line-height: 0.92; text-transform: uppercase; max-width: 760px; }
.hero-row { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.hero-row p { margin: 0; flex: 1 1 420px; max-width: 560px; font-size: 18px; line-height: 1.6; color: #e6d6d0; }
@media (max-width: 900px) { .hero-horde { display: none; } }

/* Abschnitte */
.section { padding-top: 56px; padding-bottom: 56px; }
.section-dark { background: var(--panel); }
.section-red-top { border-top: 4px solid var(--red); }
.section h2 { margin: 0 0 20px; font-family: Oswald, sans-serif; font-size: 34px; text-transform: uppercase; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.note { margin: 12px 0 0; font-size: 14px; color: var(--dim); }

/* Termine */
.events { display: flex; flex-direction: column; gap: 10px; }
.event { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px 20px; background: var(--bg); border-left: 4px solid var(--red); }
.event-date { min-width: 150px; font-family: Oswald, sans-serif; color: var(--red-light); text-transform: uppercase; }
.event-title { flex: 1 1 240px; }
.event-title small { display: block; color: var(--dim); }
.event-count { color: var(--muted); font-size: 14px; min-width: 130px; }
.event-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; padding: 2px 8px; margin-right: 8px; font-size: 12px; font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: 0.06em; background: #2a1010; color: var(--peach); }

/* Karten */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.card { padding: 22px; background: var(--panel); border-left: 4px solid var(--gold); }
.section-dark .card { background: var(--bg); }
.card h3 { margin: 0; font-family: Oswald, sans-serif; font-size: 20px; text-transform: uppercase; font-weight: 500; }
.card p { margin: 8px 0 0; color: var(--muted); line-height: 1.6; }
.forever-head { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-bottom: 24px; }
.forever-head img { height: 88px; width: auto; }
.forever-head h2 { margin: 0; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.gallery figure { margin: 0; background: var(--bg); }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 8px 10px; font-size: 14px; color: var(--muted); }
.placeholder { aspect-ratio: 4 / 3; border: 2px dashed #4a2a2a; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; color: #b0a0a0; }

/* Formulare */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; align-items: end; margin-top: 16px; }
.form label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; background: var(--bg); color: var(--text);
  border: 1px solid #3a3a3a; font: inherit;
}
.form textarea { min-height: 88px; }

/* Live */
.live { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.live-player { flex: 1 1 480px; aspect-ratio: 16 / 9; background: var(--panel); border: 1px solid var(--line); }
.live-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.live-text { flex: 1 1 320px; }
.live-badge { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: 0.08em; background: #2a2a2a; color: var(--muted); }
.live-badge.on { background: var(--red); color: #fff; }
.live-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* Tabellen (Mitgliederbereich) */
.table-box { overflow-x: auto; position: relative; }
table { width: 100%; min-width: 520px; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--dim); font-weight: 500; }

/* Meldungen */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #222; color: #fff; padding: 12px 18px; border-left: 4px solid var(--gold); z-index: 10; max-width: calc(100% - 32px); }
.empty { color: var(--dim); padding: 16px 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 24px; text-align: center; color: var(--dim); font-size: 13px; line-height: 1.6; }
.site-footer img { display: block; height: 56px; width: auto; margin: 0 auto 12px; }

/* Textseiten */
.prose { max-width: 820px; }
.prose h1 { font-family: Oswald, sans-serif; text-transform: uppercase; font-size: 44px; margin: 0 0 24px; }
.prose h2 { font-size: 22px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--muted); line-height: 1.7; }

/* Unterseiten-Kopf */
.page-head { background: var(--panel); border-bottom: 4px solid var(--red); }
.page-head .wrap { padding-top: 48px; padding-bottom: 40px; }
.page-head h1 { margin: 0; font-family: Oswald, sans-serif; font-weight: 700; font-size: clamp(40px, 6vw, 72px); line-height: 1; text-transform: uppercase; }
.page-head p { margin: 12px 0 0; color: var(--muted); font-size: 18px; max-width: 720px; }

/* Unternavigation (Gildenseite) */
.subnav { position: sticky; top: 0; z-index: 3; background: #0f0f0f; border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; }
.subnav a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--text); text-decoration: none; font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: 0.06em; font-size: 15px; }
.subnav a:hover { background: var(--panel-2); color: var(--text); }

/* Steckbriefe */
.profiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.profile { background: var(--bg); border-top: 3px solid var(--red); padding: 20px; }
.section:not(.section-dark) .profile { background: var(--panel); }
.profile-head { display: flex; align-items: center; gap: 12px; }
.profile-head img, .profile-head .avatar-ph { width: 48px; height: 48px; border-radius: 50%; background: var(--discord); flex: 0 0 auto; }
.profile-head strong { font-size: 18px; }
.profile dl { margin: 14px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; }
.profile dt { color: var(--dim); }
.profile dd { margin: 0; }
.profile p { margin: 12px 0 0; color: var(--muted); font-style: italic; }

/* Listen-Zeilen */
.rows { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 18px; background: var(--bg); border-left: 4px solid var(--red); }
.section:not(.section-dark) .row { background: var(--panel); }
.row-main { flex: 1 1 260px; min-width: 0; }
.row-main small { display: block; color: var(--dim); }
.row-meta { color: var(--muted); font-size: 14px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.row.done { opacity: 0.55; border-left-color: #444; }
.pill { display: inline-block; padding: 2px 10px; font-size: 13px; background: #2a2a2a; color: var(--muted); margin: 2px 4px 2px 0; }
.pill-gold { background: #3a2e12; color: #f2d38a; }
.pill-red { background: #3a1010; color: var(--peach); }

/* Filterleiste */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 16px; }
.filters > div { flex: 1 1 180px; }
.filters label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.filters input, .filters select { width: 100%; min-height: 44px; padding: 8px 12px; background: var(--bg); color: var(--text); border: 1px solid #3a3a3a; font: inherit; }

/* Countdown */
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 520px; text-align: center; }
.countdown div { background: var(--bg); padding: 14px 6px; border-bottom: 3px solid var(--red); }
.countdown strong { display: block; font-family: Oswald, sans-serif; font-size: 40px; color: var(--peach); line-height: 1.1; }
.countdown span { font-size: 13px; color: var(--dim); }

/* Rangliste */
.podium { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.podium figure { margin: 0; background: var(--bg); border-top: 4px solid var(--gold); }
.podium img, .podium .placeholder { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.podium figcaption { padding: 14px 16px; }
.podium .rank { font-family: Oswald, sans-serif; font-size: 28px; color: var(--gold); }

/* Gruppen (Zuschauer-Events) */
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; margin-top: 16px; }
.group { background: var(--bg); border-top: 3px solid var(--gold); padding: 14px 16px; }
.group h4 { margin: 0 0 8px; font-family: Oswald, sans-serif; text-transform: uppercase; color: var(--gold); }
.group ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.event-card { background: var(--bg); border-left: 4px solid var(--red); padding: 20px; margin-bottom: 16px; }
.section:not(.section-dark) .event-card { background: var(--panel); }
.event-card h3 { margin: 0; font-family: Oswald, sans-serif; text-transform: uppercase; font-size: 24px; }

.login-gate { padding: 56px 0; }
.login-gate p { color: var(--muted); }

/* Material-Board */
.progress { height: 10px; background: #2a2a2a; margin-top: 8px; }
.progress > span { display: block; height: 10px; background: var(--red); }
.progress.full > span { background: #2f9e5b; }
.pledge-form { display: flex; gap: 8px; align-items: center; }
.pledge-form input { width: 90px; min-height: 44px; padding: 8px 10px; background: var(--bg); color: var(--text); border: 1px solid #3a3a3a; font: inherit; }
.section:not(.section-dark) .pledge-form input { background: var(--panel-2); }
.mat-summary-list { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 15px; }
.mat-summary-list strong { color: var(--text); }

section[id] { scroll-margin-top: 72px; }

/* Wechselndes Motto + "Gerade bei KryPrim" */
#motto { transition: opacity 0.4s ease; min-height: 2.8em; }
#motto.fade { opacity: 0; }
.now-playing { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; padding: 10px 18px 10px 12px; background: rgba(10, 10, 10, 0.72); border: 1px solid #5a3a1a; border-left: 4px solid #f2a33a; color: var(--text); text-decoration: none; }
.now-playing:hover { color: var(--text); border-color: #f2a33a; }
.now-playing small { display: block; font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; color: #f2a33a; }
.now-playing strong { display: block; font-family: Oswald, sans-serif; font-size: 22px; text-transform: uppercase; letter-spacing: 0.04em; }
