/* ==========================================================================
   BASIS: Layout und Bausteine. Farben und Schriften kommen aus theme.css.

   Inhalt:
   1 Grundlagen   2 Banner   3 Navigation   4 Einstieg   5 Raster und Karten
   6 Stream       7 Raid-Fortschritt   8 Roster   9 Fuß
   ========================================================================== */

/* 1. GRUNDLAGEN ---------------------------------------------------------- */
:root { color-scheme: dark; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  padding-bottom: 48px;
}
/* Band über der Navigation, falls das Handy oben eine Systemleiste hat */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--c-nav); z-index: 30; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.wrap { max-width: var(--maxw); margin-inline: auto; }
.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.02em; text-wrap: balance; margin: 0; }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-muted); font-weight: 500; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--c-line); color: var(--c-muted); }
.page { padding-block: 28px 8px; }
.page-narrow { max-width: 760px; }

/* 2. BANNER -------------------------------------------------------------- */
.banner { background: var(--c-nav); border-bottom: 2px solid var(--c-accent); }
/* Höhe wächst mit der Breite, ist aber nach oben und unten begrenzt. Das Bild wird zugeschnitten, die Sonne bleibt sichtbar. */
.banner img { display: block; width: 100%; height: clamp(140px, 17vw, 240px); object-fit: cover; object-position: 50% 62%; }

/* 3. NAVIGATION ---------------------------------------------------------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--c-nav); border-bottom: 1px solid var(--c-line); }
.nav-inner { display: flex; align-items: stretch; justify-content: space-between; gap: 8px; max-width: var(--maxw); margin-inline: auto; }
.nav-links { display: flex; align-items: stretch; gap: 2px; min-width: 0; }
.nav .nav-brand { padding: 6px 14px 6px 0; margin-bottom: 0; border-bottom: 0; }
.nav .nav-brand:hover { background: none; }
.nav-brand .logo { width: 38px; height: 38px; }
.nav a { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--c-muted); font-weight: 500; padding: 14px 16px; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.nav a:hover { color: var(--c-text); background: color-mix(in srgb, var(--c-surface-2) 60%, transparent); }
.nav a.is-active { color: var(--c-accent); border-bottom-color: var(--c-accent); }
.nav .nav-login { align-self: center; padding: 8px 14px; margin: 0; border: 1px solid var(--c-line); border-radius: var(--radius); color: var(--c-text); }
.nav .nav-login.is-active { border-color: var(--c-accent); color: var(--c-accent); }

@media (max-width: 700px) {
  /* Handy: alle Tabs gleich breit (5 oder 6), Symbol über Beschriftung */
  .nav-inner { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; }
  .nav-links { display: contents; }
  .nav .nav-brand { display: none; }
  .nav a, .nav .nav-login { flex-direction: column; justify-content: center; gap: 3px; padding: 9px 2px 8px; font-size: 0.72rem; text-align: center; border: 0; border-bottom: 3px solid transparent; border-radius: 0; align-self: stretch; margin-bottom: -1px; }
  .nav a.is-active, .nav .nav-login.is-active { border-bottom-color: var(--c-accent); }
  .nav .icon { width: 24px; height: 24px; }
}

/* 4. EINSTIEG ------------------------------------------------------------ */
.logo { display: block; object-fit: cover; border-radius: 16%; flex: none; }
.intro { padding-block: 32px 24px; display: grid; gap: 16px; }
.intro-head { display: flex; align-items: center; gap: 18px; min-width: 0; }
.intro-head .logo { width: clamp(76px, 14vw, 116px); height: clamp(76px, 14vw, 116px); box-shadow: 0 0 0 1px var(--c-line), 0 8px 28px rgb(0 0 0 / .45); }
.intro-head > div { display: grid; gap: 6px; min-width: 0; }
.intro h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); line-height: 1.05; overflow-wrap: anywhere; }
.intro p { margin: 0; max-width: 56ch; color: var(--c-muted); font-size: 1.1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 12px; border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-line); }
.chip b { font-family: var(--font-data); font-weight: 500; font-size: 0.92rem; color: var(--c-accent); }

/* 5. RASTER UND KARTEN --------------------------------------------------- */
.grid { display: grid; gap: 24px; grid-template-columns: 1fr; padding-block: 12px 28px; align-items: start; }
@media (min-width: 920px) { .grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); min-width: 0; overflow: hidden; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 16px 20px; border-bottom: 1px solid var(--c-line); }
.card-head h2 { font-size: 1.5rem; }
.notice-body { padding: 18px 20px 22px; color: var(--c-muted); }
.notice-body p { margin: 0; }
.section-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.section-title h2 { font-size: 1.7rem; }

/* 6. STREAM -------------------------------------------------------------- */
.player { position: relative; aspect-ratio: 16 / 9; max-width: 100%; display: grid; place-items: center; text-align: center; padding: 20px; background: linear-gradient(135deg, var(--c-surface-2), var(--c-bg)); }
.player-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-inner { display: grid; gap: 10px; justify-items: center; max-width: 34ch; color: var(--c-muted); }
.player-inner .icon { width: 52px; height: 52px; color: var(--c-accent); stroke-width: 1.5; }
.stream-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 20px; border-top: 1px solid var(--c-line); }
.channel { font-family: var(--font-data); font-size: 0.9rem; color: var(--c-muted); overflow-wrap: anywhere; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--radius); background: var(--c-accent); color: var(--c-accent-ink); text-decoration: none; font-weight: 700; }
.btn:hover { filter: brightness(1.08); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-muted); }

/* 7. RAID-FORTSCHRITT ---------------------------------------------------- */
.raid-art { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--c-line); }
.raid-body { padding: 18px 20px 20px; display: grid; gap: 14px; }
.raid-body h2 { font-size: 1.7rem; line-height: 1.15; }
.progress { display: grid; gap: 8px; }
.progress-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.progress-count { font-family: var(--font-data); font-size: 1.15rem; font-variant-numeric: tabular-nums; color: var(--c-accent); }
.bar { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 12px; border: 1px solid var(--c-line); border-radius: 99px; background: var(--c-bg); overflow: hidden; }
.bar::-webkit-progress-bar { background: var(--c-bg); }
.bar::-webkit-progress-value { background: linear-gradient(90deg, var(--c-brand), var(--c-accent)); border-radius: 99px; }
.bar::-moz-progress-bar { background: linear-gradient(90deg, var(--c-brand), var(--c-accent)); border-radius: 99px; }
.bosses { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.boss { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: var(--radius); background: var(--c-surface-2); min-width: 0; }
.boss-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.boss-state { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-muted); }
.boss .icon { width: 22px; height: 22px; }
.boss.is-down { background: color-mix(in srgb, var(--c-ok) 12%, var(--c-surface)); }
.boss.is-down .icon { color: var(--c-ok); stroke-width: 3; }
.boss.is-down .boss-state { color: var(--c-ok); }
.boss.is-open .icon { color: var(--c-muted); opacity: .6; stroke-width: 1.75; }
.boss.is-open .boss-name { color: var(--c-muted); }

/* 8. ROSTER -------------------------------------------------------------- */
.roster { padding-block: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--c-muted); font-size: 0.92rem; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.members { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.member {
  --cls: var(--c-muted);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--cls) 13%, var(--c-surface));
  border: 1px solid color-mix(in srgb, var(--cls) 34%, var(--c-line));
}
.member .role { color: var(--cls); }
.member-name { display: block; font-weight: 700; font-size: 1.05rem; color: var(--cls); overflow-wrap: anywhere; line-height: 1.2; }
.member-class { display: block; font-size: 0.88rem; color: var(--c-muted); }
.member .rank { font-size: 0.72rem; }
/* Klassenfarben: der Klassenschlüssel kommt aus src/data/wow.ts */
.cls-druid { --cls: var(--cls-druid); } .cls-hunter { --cls: var(--cls-hunter); } .cls-mage { --cls: var(--cls-mage); }
.cls-paladin { --cls: var(--cls-paladin); } .cls-priest { --cls: var(--cls-priest); } .cls-rogue { --cls: var(--cls-rogue); }
.cls-shaman { --cls: var(--cls-shaman); } .cls-warlock { --cls: var(--cls-warlock); } .cls-warrior { --cls: var(--cls-warrior); }

/* 9. FUSS ---------------------------------------------------------------- */
.site-footer { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--c-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; color: var(--c-muted); font-size: 0.9rem; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius); text-decoration: none; color: var(--c-text); border: 1px solid var(--c-line); }
.footer-links a:hover { border-color: var(--c-accent); color: var(--c-accent); }
.footer-note { margin: 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* 11. FORMULARE UND KONTO ------------------------------------------------ */
.stack { display: grid; gap: 24px; align-content: start; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form { display: grid; gap: 16px; padding: 20px; }
.form-row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); align-items: end; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 500; }
.hint { margin: 0; color: var(--c-muted); font-size: 0.9rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
input[type="text"], input[type="password"], input[type="date"], input[type="time"], input[type="number"], select, textarea {
  width: 100%; box-sizing: border-box; min-width: 0; font: inherit; color: var(--c-text);
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 10px 12px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 1px; border-color: var(--c-accent); }
button.btn { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.btn-ghost { background: transparent; color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c-line); }
.btn-ghost:hover { background: var(--c-surface-2); filter: none; }
button.btn-ghost { border: 0; }
.btn-danger { background: transparent; color: var(--c-live); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-live) 55%, var(--c-line)); }
.btn-danger:hover { background: color-mix(in srgb, var(--c-live) 14%, transparent); filter: none; }
.btn-small { padding: 6px 12px; font-size: 0.92rem; }
.alert { margin: 0; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--c-line); background: var(--c-surface-2); display: grid; gap: 8px; }
.alert p { margin: 0; }
.alert-ok { border-color: color-mix(in srgb, var(--c-ok) 55%, var(--c-line)); background: color-mix(in srgb, var(--c-ok) 10%, var(--c-surface)); }
.alert-warn { border-color: color-mix(in srgb, var(--c-accent) 60%, var(--c-line)); }
.alert-error { border-color: color-mix(in srgb, var(--c-live) 60%, var(--c-line)); background: color-mix(in srgb, var(--c-live) 10%, var(--c-surface)); }
.tempcode { font-family: var(--font-data); font-size: 1.3rem; letter-spacing: 0.06em; padding: 10px 12px; background: var(--c-bg); border: 1px dashed var(--c-accent); border-radius: var(--radius); user-select: all; overflow-wrap: anywhere; }
.facts { margin: 0; padding: 8px 20px 16px; display: grid; gap: 2px; }
.facts div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--c-line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--c-muted); }
.facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.logout { display: flex; justify-content: flex-start; }
.list-title { font-size: 1.5rem; margin-bottom: 12px; }
.users { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.user-row { display: grid; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-line); min-width: 0; }
@media (min-width: 900px) { .user-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.user-row.is-off { opacity: .65; }
.user-main { display: grid; gap: 2px; min-width: 0; }
.user-name { font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.user-meta { color: var(--c-muted); font-size: 0.9rem; }
.user-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.inline-form select { width: auto; padding: 6px 10px; }
.notice-body a, .section-title a { color: var(--c-accent); }

/* 12. CHARAKTERE --------------------------------------------------------- */
.empty { margin: 0; padding: 18px 20px; border: 1px dashed var(--c-line); border-radius: var(--radius); color: var(--c-muted); }
.logs-link { display: inline-flex; align-items: center; vertical-align: middle; margin-left: 8px; padding: 6px; margin-block: -6px; border-radius: 6px; color: var(--c-muted); }
.logs-link:hover { color: var(--c-accent); background: color-mix(in srgb, var(--c-accent) 14%, transparent); }
.logs-link .icon { width: 1.05em; height: 1.05em; stroke-width: 2.4; }
.tag-main { color: var(--c-accent); border-color: color-mix(in srgb, var(--c-accent) 60%, var(--c-line)); }
.chars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.char {
  --cls: var(--c-muted);
  display: grid; gap: 12px; padding: 12px 14px; border-radius: var(--radius); min-width: 0;
  background: color-mix(in srgb, var(--cls) 11%, var(--c-surface));
  border: 1px solid color-mix(in srgb, var(--cls) 34%, var(--c-line));
}
.char .role { color: var(--cls); }
.char-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.char-title { min-width: 0; }
.char-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.char-more { display: contents; }
.char-more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.char-more > summary::-webkit-details-marker { display: none; }
.char-more[open] > summary { box-shadow: inset 0 0 0 1px var(--c-accent); }
.char-more > .form { flex: 1 1 100%; order: 10; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 16px; }
.field-wide { grid-column: 1 / -1; }

/* 13. RAIDS: AKTUELL UND ARCHIV ----------------------------------------- */
.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; }
.page-head > div { display: grid; gap: 6px; min-width: 0; }
.page-head h1 { font-size: clamp(2rem, 6vw, 2.9rem); line-height: 1.05; }
.page-head p { margin: 0; color: var(--c-muted); max-width: 56ch; }
.muted { color: var(--c-muted); }
.muted-link { color: var(--c-accent); font-size: 0.95rem; }
.tag-ok { color: var(--c-ok); border-color: color-mix(in srgb, var(--c-ok) 55%, var(--c-line)); }
.tag-accent { color: var(--c-accent); border-color: color-mix(in srgb, var(--c-accent) 55%, var(--c-line)); }
.active-grid { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 700px) { .active-grid[data-n="2"], .active-grid[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .active-grid[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.raid-card { display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.raid-media { position: relative; }
.raid-flag { position: absolute; left: 12px; top: 12px; background: color-mix(in srgb, var(--c-bg) 78%, transparent); }
.raid-card .raid-body { flex: 1; display: flex; flex-direction: column; }
.raid-card h3 { font-size: 1.6rem; line-height: 1.15; overflow-wrap: anywhere; }
.raid-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.raid-foot .muted { font-size: 0.9rem; }
.bosses .boss { padding: 6px 10px; gap: 10px; font-size: 0.97rem; }
.bosses .boss .icon { width: 19px; height: 19px; }
/* Nur ein aktiver Raid: Bild links, Inhalt rechts */
@media (min-width: 760px) {
  .active-grid[data-n="1"] .raid-card { flex-direction: row; }
  .active-grid[data-n="1"] .raid-media { flex: 0 0 42%; border-right: 1px solid var(--c-line); }
  .active-grid[data-n="1"] .raid-art { height: 100%; aspect-ratio: auto; border-bottom: 0; }
}
.archive-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.arch-card { display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid color-mix(in srgb, var(--c-line) 70%, transparent); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.arch-art { display: block; width: 100%; aspect-ratio: 16 / 6; object-fit: cover; filter: saturate(.75) brightness(.9); }
.arch-body { display: grid; gap: 8px; padding: 12px 14px 14px; align-content: start; }
.arch-body h3 { font-size: 1.15rem; line-height: 1.2; overflow-wrap: anywhere; }
.arch-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 0.82rem; color: var(--c-muted); }
.arch-bosses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 10px; font-size: 0.8rem; color: var(--c-muted); }
.arch-bosses li { display: flex; align-items: baseline; gap: 5px; min-width: 0; line-height: 1.35; }
.arch-bosses .icon { width: 12px; height: 12px; position: relative; top: 2px; }
.arch-bosses .is-down { color: var(--c-text); }
.arch-bosses .is-down .icon { color: var(--c-ok); stroke-width: 3.2; }
.arch-bosses .is-open .icon { opacity: .45; }
.arch-bosses li > span:not(.sr) { overflow-wrap: anywhere; }
/* Kurzfassung auf der Startseite */
.mini-raids { list-style: none; margin: 0; padding: 4px 20px 12px; display: grid; }
.mini-raid { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.mini-raid:last-child { border-bottom: 0; }
.mini-art { display: block; width: 72px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; border: 1px solid var(--c-line); }
.mini-main { display: grid; gap: 8px; min-width: 0; }
.mini-main strong { overflow-wrap: anywhere; }

/* 14. RAID-ANMELDUNG ----------------------------------------------------- */
.events { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.event-tab { display: grid; gap: 2px; padding: 12px 14px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); text-decoration: none; min-width: 0; }
.event-tab:hover { border-color: color-mix(in srgb, var(--c-accent) 50%, var(--c-line)); }
.event-tab[aria-current="true"] { border-color: var(--c-accent); background: var(--c-surface-2); box-shadow: inset 0 0 0 1px var(--c-accent); }
.event-when { font-family: var(--font-data); font-size: 0.88rem; color: var(--c-accent); }
.event-name { font-weight: 700; font-size: 1.05rem; line-height: 1.2; overflow-wrap: anywhere; }
.event-sub { font-size: 0.85rem; color: var(--c-muted); }
.me .form-row, .targets .form-row { display: grid; gap: 12px 16px; }
.field-label { font-weight: 500; }
.resp { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--c-line); overflow: hidden; }
.resp button { background: transparent; border: 0; border-left: 1px solid var(--c-line); padding: 11px 10px; font: inherit; color: var(--c-muted); cursor: pointer; }
.resp button:first-child { border-left: 0; }
.resp button:hover { background: var(--c-surface-2); color: var(--c-text); }
.resp button.is-on { background: var(--c-surface-2); font-weight: 700; }
.resp .resp-y.is-on { color: var(--c-ok); } .resp .resp-m.is-on { color: var(--c-maybe, #d9b24f); } .resp .resp-n.is-on { color: var(--c-live); }
.summary { display: grid; gap: 12px; padding: 16px 18px; }
.cap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.cap strong { font-family: var(--font-data); font-weight: 500; font-size: 1.15rem; color: var(--c-accent); }
.counts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.92rem; color: var(--c-muted); }
.counts b { font-family: var(--font-data); font-weight: 500; }
.counts .y b { color: var(--c-ok); } .counts .m b { color: var(--c-maybe, #d9b24f); } .counts .n b { color: var(--c-live); }
.roles { display: grid; gap: 22px 28px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .roles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.role-col { min-width: 0; }
.role-head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--c-line); color: var(--c-muted); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.role-head .icon { width: 17px; height: 17px; }
.role-head .n { margin-left: auto; font-family: var(--font-data); font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 0.9rem; }
.role-head .n.full { color: var(--c-ok); }
.rl { list-style: none; margin: 0; padding: 0; }
.rl li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--c-line); min-width: 0; }
.rl .who { display: grid; min-width: 0; }
.rl .nm { font-weight: 700; color: var(--cls, var(--c-text)); overflow-wrap: anywhere; line-height: 1.25; }
.rl .note { font-size: 0.8rem; color: var(--c-muted); font-style: italic; line-height: 1.25; }
.rl .sp { font-size: 0.82rem; color: var(--c-muted); text-align: right; }
.rl .you { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-accent); border: 1px solid color-mix(in srgb, var(--c-accent) 55%, var(--c-line)); border-radius: 99px; padding: 0 6px; margin-left: 4px; vertical-align: 1px; }
.rl li.mine { background: color-mix(in srgb, var(--c-accent) 9%, transparent); box-shadow: -8px 0 0 color-mix(in srgb, var(--c-accent) 9%, transparent), 8px 0 0 color-mix(in srgb, var(--c-accent) 9%, transparent); }
.rl li.none { color: var(--c-muted); font-size: 0.9rem; }
.names-block h3 { font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--c-muted); margin-bottom: 6px; display: flex; gap: 8px; align-items: baseline; }
.names-block h3 .n { font-family: var(--font-data); font-weight: 500; letter-spacing: 0; }
.names { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 0.95rem; }
.names li { color: var(--cls, var(--c-text)); font-weight: 500; }
.names.dim li { opacity: .55; }
.names.gone li { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--cls, #fff) 50%, transparent); }

/* 15. RAIDS VERWALTEN ---------------------------------------------------- */
.manage { display: grid; gap: 24px; }
@media (min-width: 900px) { .manage { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
.m-list { list-style: none; margin: 0; padding: 0; }
.m-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px 14px; padding: 14px 18px; border-bottom: 1px solid var(--c-line); align-items: center; }
.m-row:last-child { border-bottom: 0; }
.m-row-event { grid-template-columns: minmax(0, 1fr); }
.m-thumb { display: block; width: 76px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; border: 1px solid var(--c-line); }
.m-main { display: grid; gap: 2px; min-width: 0; }
.m-main strong { overflow-wrap: anywhere; }
.m-main .note { font-style: italic; font-size: 0.9rem; }
.m-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.m-row-event .m-actions { grid-column: auto; }
.m-more { display: contents; }
.m-more > summary { list-style: none; cursor: pointer; }
.m-more > summary::-webkit-details-marker { display: none; }
.m-more[open] > summary { box-shadow: inset 0 0 0 1px var(--c-accent); }
.m-more > .form { flex: 1 1 100%; order: 10; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 16px; }
.check-grid { display: grid; gap: 6px 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; min-width: 0; }
.check input { width: 18px; height: 18px; accent-color: var(--c-ok); flex: none; }
.check span { overflow-wrap: anywhere; }
.fold > summary.card-head { list-style: none; cursor: pointer; }
.fold > summary.card-head::-webkit-details-marker { display: none; }
.fold[open] > summary.card-head { border-bottom: 1px solid var(--c-line); }
.fold:not([open]) > summary.card-head { border-bottom: 0; }
.targets { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.targets legend { padding: 0; margin-bottom: 8px; font-weight: 500; }
.hint-pad { padding: 0 20px 18px; }
textarea { resize: vertical; min-height: 120px; }
code { font-family: var(--font-data); font-size: 0.9em; color: var(--c-accent); overflow-wrap: anywhere; }
.form .form-row { display: grid; gap: 12px 16px; }
button.btn-small { font-size: 0.92rem; }

/* 16. STREAMS ------------------------------------------------------------ */
.is-live .live-dot { background: var(--c-live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-live) 28%, transparent); }
.player-off { display: flex; align-items: center; gap: 16px; padding: 22px 20px; color: var(--c-muted); }
.player-off .icon { width: 40px; height: 40px; color: var(--c-accent); stroke-width: 1.5; }
.player-off > div { display: grid; gap: 2px; }
.player-off strong { color: var(--c-text); }
.stream-foot .channel strong { color: var(--c-text); }
.stream-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.stream-tile { display: grid; gap: 4px; padding: 12px 14px; height: 100%; box-sizing: border-box; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); text-decoration: none; min-width: 0; }
a.stream-tile:hover { border-color: color-mix(in srgb, var(--c-accent) 50%, var(--c-line)); }
.stream-tile[aria-current="true"] { border-color: var(--c-accent); background: var(--c-surface-2); box-shadow: inset 0 0 0 1px var(--c-accent); }
.stream-tile.is-offline { opacity: .6; }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.tile-name { font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; line-height: 1.2; }
.tile-state { flex: none; }
.tag-live { color: var(--c-live); border-color: color-mix(in srgb, var(--c-live) 60%, var(--c-line)); }
.tag-live .live-dot { background: var(--c-live); }
.tile-sub { color: var(--c-muted); font-size: 0.88rem; overflow-wrap: anywhere; }
.tile-title { font-size: 0.9rem; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.member-user { font-weight: 400; font-size: 0.85rem; color: var(--c-muted); }

/* 16. STARTSEITE: TEXTE, WIR SUCHEN, STREAM-PUNKT ------------------------- */
.text-block { padding: 20px 22px 22px; display: grid; gap: 10px; align-content: start; }
.text-block h2 { font-size: 1.6rem; line-height: 1.15; overflow-wrap: anywhere; }
.text-block p { margin: 0; color: var(--c-muted); max-width: 70ch; overflow-wrap: anywhere; }

.text-cols { display: grid; gap: 20px; grid-template-columns: 1fr; padding-block: 20px 0; }
.text-block + .text-cols, .intro + .text-block { margin-top: 0; }
main > .text-block { margin-bottom: 0; }
@media (min-width: 760px) { .text-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid-single { grid-template-columns: 1fr !important; }
.grid { padding-top: 20px; }
.wanted { list-style: none; margin: 0; padding: 8px 14px; display: grid; gap: 6px; }
.want { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius); background: color-mix(in srgb, var(--cls, var(--c-accent)) 12%, var(--c-surface)); border: 1px solid color-mix(in srgb, var(--cls, var(--c-accent)) 32%, var(--c-line)); min-width: 0; }
.want-count { font-family: var(--font-data); font-size: 1.15rem; color: var(--cls, var(--c-accent)); min-width: 2.2ch; }
.want .role { color: var(--cls, var(--c-accent)); }
.want-text { display: grid; min-width: 0; }
.want-name { font-weight: 700; color: var(--cls, var(--c-text)); overflow-wrap: anywhere; line-height: 1.2; }
.want-sub { font-size: 0.85rem; color: var(--c-muted); }
.want-foot { margin: 0; padding: 4px 20px 18px; color: var(--c-muted); font-size: 0.92rem; }
.nav-label { display: inline-flex; align-items: center; gap: 7px; }
.nav-live { width: 9px; height: 9px; border-radius: 50%; background: var(--c-live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-live) 30%, transparent); flex: none; animation: live-pulse 2s ease-in-out infinite; }
@keyframes live-pulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--c-live) 8%, transparent); } }
@media (prefers-reduced-motion: reduce) { .nav-live { animation: none; } }
.num { width: 5.5em; }
.form-top { border-top: 1px solid var(--c-line); }
.form-title { font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--c-muted); }
input[type="number"].num { width: 5.5em; }
main > .text-block p { color: var(--c-text); font-size: 1.08rem; }

/* 17. RECHTLICHES UND EINWILLIGUNG --------------------------------------- */
[hidden] { display: none !important; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; }
.footer-legal a { color: var(--c-muted); }
.footer-legal a:hover { color: var(--c-text); }
.legal { max-width: 860px; }
.legal-card { padding: 22px 24px 26px; display: grid; gap: 10px; }
.legal-card h2 { font-size: 1.35rem; margin-top: 12px; }
.legal-card p { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
.legal-card a { color: var(--c-accent); }
.legal-card code { font-family: var(--font-data); font-size: 0.88em; }
.notice-warn { margin: 0; padding: 12px 16px; border: 1px solid var(--c-accent); border-radius: var(--radius); background: var(--c-surface-2); }
.consent { display: grid; gap: 10px; justify-items: center; max-width: 52ch; color: var(--c-muted); }
.consent .icon { width: 44px; height: 44px; color: var(--c-accent); stroke-width: 1.5; }
.consent strong { color: var(--c-text); }
.consent a { color: var(--c-accent); }
.foot-actions { display: flex; flex-wrap: wrap; gap: 8px; }
