/* Dragon Attack – gemeinsames Stylesheet (Design 2026-11, Stil nach Thunders Vorlage)
   Farben: sehr dunkles Violett, Purpur für Akzente und Knöpfe, Discord-Blau für Discord, Grün für Adress-Etiketten.
   Schrift: Silkscreen (Titel, Navigation, Knöpfe, Etiketten), Pixelify Sans (Logo, Adressen, Zwischentitel),
   Atkinson Hyperlegible für Fließtext. Das auffällige Element ist der Drache im Kopf der Startseite. */
@font-face { font-family: 'Silkscreen'; src: url('/fonts/silkscreen-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Silkscreen'; src: url('/fonts/silkscreen-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Pixelify'; src: url('/fonts/pixelify-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Pixelify'; src: url('/fonts/pixelify-sans-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Pixelify'; src: url('/fonts/pixelify-sans-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

@font-face {
  font-family: 'Grenze';
  src: url('/fonts/grenze-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Grenze';
  src: url('/fonts/grenze-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson';
  src: url('/fonts/atkinson-hyperlegible-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson';
  src: url('/fonts/atkinson-hyperlegible-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --void: #111014;
  --void-deep: #0c0b0f;
  --band: #16141a;
  --stone: #1a1820;
  --stone-raise: #232029;
  --stone2: #232029;
  --rim: #2e2a35;
  --rim-soft: #25222b;
  --bone: #e4e1e9;
  --head: #f5f3f7;
  --ash: #a39dab;
  --breath: #c3a0d6;
  --live: #d95fdf;
  --ember: #7f5196;
  --ember-hot: #8f5fa8;
  --ember-ink: #ffffff;
  --purpur-deep: #4a2c5a;
  --danger: #ef6a5f;
  --ok: #7fd4a1;
  --warn: #f3c969;

  --display: 'Atkinson', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --text: 'Atkinson', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --r-s: 6px;
  --r-m: 10px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --measure: 64ch;
  /* Pixel-Ecken: abgestufte Kanten wie bei Blöcken */
  --notch: polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px));
  --notch-s: polygon(0 3px, 3px 3px, 3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--void);
  color: var(--bone);
  font: 1.0625rem/1.6 var(--text);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.45em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
a { color: var(--breath); text-underline-offset: 3px; }
a:hover { color: #dcbcff; }
:focus-visible { outline: 2px solid var(--breath); outline-offset: 3px; border-radius: 2px; }
.hidden, [hidden] { display: none !important; }
.muted { color: var(--ash); }
.small { font-size: 0.9rem; }
.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 0.92em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Kopfzeile ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.75rem var(--gutter);
  background: rgba(15, 12, 21, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rim-soft);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--bone);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}
.brand:hover { color: var(--bone); }
.brand .egg { width: 22px; height: 26px; }
.topnav { display: flex; gap: 1.1rem; margin-left: auto; }
.topnav a { color: var(--ash); text-decoration: none; font-size: 0.98rem; }
.topnav a:hover, .topnav a[aria-current='page'] { color: var(--bone); }
.user-area { display: flex; align-items: center; gap: 0.6rem; }
.topnav + .user-area { margin-left: 0.5rem; }
.user-chip { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--bone); font-size: 0.95rem; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--stone-raise); object-fit: cover; flex: none; }
.avatar-fallback {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--stone-raise); color: var(--ash); font-weight: 700; font-size: 0.85rem; flex: none;
}
@media (max-width: 760px) {
  .topnav { display: none; }
  .user-area { margin-left: auto; }
  .user-chip .name { display: none; }
}

/* ---------- Buttons & Formulare ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.55rem 1.05rem;
  border-radius: var(--r-s);
  border: 1px solid var(--rim);
  background: var(--stone-raise);
  color: var(--bone);
  font: 700 0.98rem/1.1 var(--text);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { border-color: #51456a; color: var(--bone); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--ember); border-color: var(--ember); color: var(--ember-ink); }
.btn-primary:hover { background: var(--ember-hot); border-color: var(--ember-hot); color: var(--ember-ink); }
.btn-discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn-discord:hover { background: #6a75f5; border-color: #6a75f5; color: #fff; }
.btn-ghost { background: transparent; }
.btn-danger { background: transparent; border-color: rgba(239, 106, 95, 0.55); color: #ff9a91; }
.btn-danger:hover { background: rgba(239, 106, 95, 0.12); border-color: var(--danger); color: #ffb3ac; }
.btn-small { min-height: 34px; padding: 0.35rem 0.7rem; font-size: 0.9rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

.field { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.field > span, .field > label { font-weight: 700; font-size: 0.95rem; }
.field .hint { color: var(--ash); font-size: 0.88rem; font-weight: 400; }
input[type='text'], input[type='url'], input[type='email'], input[type='number'], input[type='search'], input[type='datetime-local'], input[type='password'], select, textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: var(--r-s);
  border: 1px solid var(--rim);
  background: var(--void-deep);
  color: var(--bone);
  font: 1rem/1.4 var(--text);
}
textarea { min-height: 6.5rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--breath); box-shadow: 0 0 0 3px rgba(197, 146, 255, 0.18); }
.choice-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.choice {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.85rem;
  border: 1px solid var(--rim); border-radius: var(--r-s); cursor: pointer; background: var(--void-deep);
}
.choice:has(input:checked) { border-color: var(--breath); background: rgba(197, 146, 255, 0.08); }
.choice input { accent-color: var(--breath); }
.form-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }

/* Schalter */
.switch { display: flex; align-items: flex-start; gap: 0.85rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track {
  flex: none; position: relative; width: 44px; height: 24px; margin-top: 2px; border-radius: 12px;
  background: var(--rim); transition: background 0.15s;
}
.switch .track::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bone); transition: transform 0.15s;
}
.switch input:checked + .track { background: var(--ok); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 2px solid var(--breath); outline-offset: 2px; }
.switch strong { display: block; }
.switch .hint { color: var(--ash); font-size: 0.9rem; }

/* ---------- Hinweise ---------- */

.banner {
  padding: 0.75rem var(--gutter);
  background: rgba(242, 163, 58, 0.1);
  border-bottom: 1px solid rgba(242, 163, 58, 0.3);
  color: #ffd9a3;
  font-size: 0.98rem;
}
.banner a { color: #ffd9a3; }
.callout {
  padding: 0.85rem 1rem;
  border-radius: var(--r-m);
  border: 1px solid var(--rim);
  background: var(--stone);
  margin-bottom: 1.25rem;
}
.callout.warn { border-color: rgba(243, 201, 105, 0.45); background: rgba(243, 201, 105, 0.07); }
.callout.error { border-color: rgba(239, 106, 95, 0.5); background: rgba(239, 106, 95, 0.08); }
.callout.ok { border-color: rgba(108, 203, 156, 0.45); background: rgba(108, 203, 156, 0.07); }
.callout > :last-child { margin-bottom: 0; }

.pill {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.12rem 0.55rem; border-radius: 999px;
  font-size: 0.82rem; font-weight: 700; border: 1px solid var(--rim); color: var(--ash); white-space: nowrap;
}
.pill.ok { color: var(--ok); border-color: rgba(108, 203, 156, 0.45); }
.pill.warn { color: var(--warn); border-color: rgba(243, 201, 105, 0.45); }
.pill.bad { color: #ff9a91; border-color: rgba(239, 106, 95, 0.5); }
.pill.violet { color: var(--breath); border-color: rgba(197, 146, 255, 0.45); }

/* Toast */
.toast-host { position: fixed; z-index: 100; left: 50%; bottom: 1.25rem; transform: translateX(-50%); display: grid; gap: 0.5rem; width: min(92vw, 460px); }
.toast {
  padding: 0.75rem 1rem; border-radius: var(--r-m); background: var(--stone-raise); border: 1px solid var(--rim);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); animation: toast-in 0.18s ease-out;
}
.toast.error { border-color: rgba(239, 106, 95, 0.6); }
.toast.ok { border-color: rgba(108, 203, 156, 0.6); }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } }

/* Dialog */
dialog {
  width: min(94vw, 560px); padding: 0; border: 1px solid var(--rim); border-radius: var(--r-m);
  background: var(--stone); color: var(--bone);
}
dialog::backdrop { background: rgba(8, 6, 12, 0.72); }
dialog .dlg-body { padding: 1.4rem 1.4rem 1.2rem; }
dialog h3 { margin-bottom: 0.6rem; }

/* ---------- Fußzeile ---------- */

.footer {
  margin-top: auto;
  padding: 2rem var(--gutter) 2.5rem;
  border-top: 1px solid var(--rim-soft);
  color: var(--ash);
  font-size: 0.92rem;
  display: flex;
  gap: 1rem 1.6rem;
  flex-wrap: wrap;
  align-items: center;
}
.footer a { color: var(--ash); }
.footer a:hover { color: var(--bone); }
.footer .brandline { font-family: var(--display); font-size: 1.15rem; color: var(--bone); margin-right: auto; }

/* ============================================================
   Info-Seite
   ============================================================ */

.info main { width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

.hero { padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.hero::before {
  /* Drachenatem: ein einziger, ruhiger Lichtschein hinter dem Titel */
  content: ''; position: absolute; inset: -30% -10% auto 35%; height: 140%;
  background: radial-gradient(closest-side, rgba(150, 82, 230, 0.22), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 {
  font-size: clamp(3.6rem, 13vw, 9.5rem);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.01em;
  margin: 0 0 0.25em;
  max-width: 9ch;
}
.hero .tagline { font-size: clamp(1.15rem, 2.3vw, 1.4rem); color: #d9d0e4; max-width: 46ch; margin-bottom: 2.2rem; }

/* Eintrag wie in der Minecraft-Serverliste */
.server-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.35rem 1.1rem;
  align-items: center;
  max-width: 720px;
  padding: 0.85rem 1rem;
  background: rgba(10, 8, 14, 0.75);
  border: 2px solid #4d4260;
  border-radius: 2px;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.4);
}
.server-row .icon { grid-row: span 3; width: 72px; height: 72px; image-rendering: pixelated; }
.server-row .name { font-family: var(--display); font-size: 1.55rem; font-weight: 700; line-height: 1; }
.server-row .ping-wrap { justify-self: end; display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ash); }
.server-row .players { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 0.95rem; color: #cfc6da; }
.server-row .players.offline { color: #ff9a91; }
.ping { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.ping i { display: block; width: 4px; background: #3b3349; }
.ping i:nth-child(1) { height: 5px; }
.ping i:nth-child(2) { height: 8px; }
.ping i:nth-child(3) { height: 11px; }
.ping i:nth-child(4) { height: 14px; }
.ping i:nth-child(5) { height: 16px; }
.ping.ok i.on { background: #6ccb6c; }
.ping.maint i.on { background: var(--breath); }
.ping.down i { background: #6a2b2b; }
.server-row .motd { grid-column: 2 / 4; color: var(--ash); font-size: 0.95rem; }
.server-row .addresses { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 0.35rem; }
.addr { display: inline-flex; align-items: center; gap: 0.5rem; }
.addr .kind { color: var(--ash); font-size: 0.9rem; }
.addr code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 1.02rem; color: var(--bone); }
.copy-btn {
  border: 1px solid var(--rim); background: transparent; color: var(--ash); border-radius: var(--r-s);
  padding: 0.2rem 0.5rem; font: 700 0.82rem var(--text); cursor: pointer;
}
.copy-btn:hover { color: var(--bone); border-color: #51456a; }
@media (max-width: 560px) {
  .server-row { grid-template-columns: 52px 1fr auto; }
  .server-row .icon { width: 52px; height: 52px; }
  .server-row .motd, .server-row .addresses { grid-column: 1 / 4; }
}

.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.75rem; }

.facts { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; margin: 2.5rem 0 0; padding: 0; }
.facts div { display: flex; flex-direction: column-reverse; }
.facts dt { color: var(--ash); font-size: 0.95rem; }
.facts dd { margin: 0; font-family: var(--display); font-size: 2.1rem; font-weight: 700; line-height: 1.05; }

.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--rim-soft); }
.prose { max-width: var(--measure); font-size: 1.1rem; }
.prose p { color: #ddd5e6; }

.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem 4rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.steps { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2rem 2.25rem; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 1rem; border-top: 2px solid var(--rim); }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ember);
  margin-bottom: 0.5rem;
}
.steps h3 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.steps p { color: #d2c9dd; margin: 0; }

.faq { max-width: 820px; margin-top: 1.25rem; }
.faq details { border-bottom: 1px solid var(--rim-soft); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 2.2rem 1rem 0; position: relative;
  font-weight: 700; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 0.4rem; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--ash); border-bottom: 2px solid var(--ash); transform: rotate(45deg); transition: transform 0.15s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { color: #d2c9dd; max-width: var(--measure); padding-bottom: 0.5rem; }

.link-list { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

/* ============================================================
   Mitgliederbereich (/app) & Admin
   ============================================================ */

.app-shell { width: 100%; max-width: 1120px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 2.5rem) var(--gutter) 3rem; flex: 1; }
.app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.app-head h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 0; }

.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--rim); margin-bottom: 1.75rem; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button {
  flex: none; padding: 0.7rem 1rem; color: var(--ash); text-decoration: none; font: 700 1rem var(--text);
  background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer;
}
.tabs a:hover, .tabs button:hover { color: var(--bone); }
.tabs [aria-selected='true'] { color: var(--bone); border-bottom-color: var(--ember); }
.tabs .count { color: var(--ash); font-weight: 400; margin-left: 0.25rem; }

.panel { background: var(--stone); border: 1px solid var(--rim-soft); border-radius: var(--r-m); padding: clamp(1.1rem, 3vw, 1.6rem); }
.panel + .panel { margin-top: 1.25rem; }
.panel h2 { font-size: 1.85rem; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.panel-head h2, .panel-head h3 { margin: 0; }

.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.toolbar { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.toolbar input[type='search'] { max-width: 280px; }
.toolbar select { width: auto; }

.list { display: grid; gap: 0.6rem; }
.item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 1rem; align-items: start;
  padding: 0.9rem 1rem; border: 1px solid var(--rim-soft); border-radius: var(--r-m); background: var(--void-deep);
}
.item h3 { font-family: var(--text); font-size: 1.08rem; font-weight: 700; margin: 0; line-height: 1.3; }
.item .meta { color: var(--ash); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; }
.item .desc { grid-column: 1 / -1; color: #d2c9dd; margin: 0.25rem 0 0; white-space: pre-line; }
.item .actions { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }
.item.mine { border-color: rgba(242, 163, 58, 0.55); }

.empty { padding: 2rem 1rem; text-align: center; color: var(--ash); border: 1px dashed var(--rim); border-radius: var(--r-m); }

.status-big { display: flex; gap: 1rem; align-items: center; }
.status-big .dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--danger); }

.members { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.members li { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; padding: 0.5rem 0; border-bottom: 1px solid var(--rim-soft); }
.members li:last-child { border-bottom: 0; }
.members .who { flex: 1; min-width: 160px; }
.members .who small { display: block; color: var(--ash); }

.code-box { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; padding: 0.7rem 0.85rem; background: var(--void-deep); border: 1px solid var(--rim); border-radius: var(--r-s); }
.code-box code { font-size: 1.15rem; letter-spacing: 0.08em; }

/* Zugangs-Sperre */
.gate { max-width: 620px; margin: clamp(2rem, 8vw, 5rem) auto; text-align: left; }
.gate h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.gate .form-actions { margin-top: 1.5rem; }

/* Tabellen (Admin) */
.table-wrap { overflow-x: auto; border: 1px solid var(--rim-soft); border-radius: var(--r-m); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--rim-soft); vertical-align: top; }
th { color: var(--ash); font-weight: 700; background: var(--void-deep); position: sticky; top: 0; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td .actions { display: flex; gap: 0.35rem; flex-wrap: wrap; }

/* Admin-Layout */
.admin-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; width: 100%; max-width: 1320px; margin: 0 auto; padding: 1.75rem var(--gutter) 3rem; flex: 1; }
.admin-nav { position: sticky; top: 76px; align-self: start; display: grid; gap: 0.15rem; max-height: calc(100vh - 92px); max-height: calc(100dvh - 92px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 0.25rem; padding-bottom: 1rem; }
.admin-nav a { display: flex; justify-content: space-between; padding: 0.55rem 0.75rem; border-radius: var(--r-s); color: var(--ash); text-decoration: none; font-weight: 700; }
.admin-nav a:hover { color: var(--bone); background: var(--stone); }
.admin-nav a[aria-current='page'] { color: var(--bone); background: var(--stone-raise); box-shadow: inset 3px 0 0 var(--ember); }
.admin-nav .badge { color: var(--ember); }
@media (max-width: 900px) {
  .admin-layout { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .admin-nav { position: static; display: flex; overflow-x: auto; overflow-y: visible; max-height: none; gap: 0.25rem; padding-bottom: 0.25rem; }
  .admin-nav a { flex: none; }
}
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.75rem; margin-bottom: 1.25rem; }
.stat { padding: 0.9rem 1rem; border: 1px solid var(--rim-soft); border-radius: var(--r-m); background: var(--void-deep); }
.stat .num { font-family: var(--display); font-size: 2.2rem; font-weight: 700; line-height: 1; }
.stat .lbl { color: var(--ash); font-size: 0.92rem; margin-top: 0.3rem; }
.switch-list { display: grid; gap: 1.1rem; }
.switch-group + .switch-group { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rim-soft); }
.switch-group h3 { margin-bottom: 0.9rem; }
.block-editor { display: grid; gap: 0.75rem; }
.block-editor .block { display: grid; gap: 0.5rem; padding: 0.85rem; border: 1px solid var(--rim-soft); border-radius: var(--r-m); background: var(--void-deep); }
.block-editor .block-tools { display: flex; gap: 0.35rem; justify-content: flex-end; }
.link-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto auto; gap: 0.5rem; align-items: center; }
@media (max-width: 640px) { .link-row { grid-template-columns: 1fr; } }

/* Rechtstexte */
.legal { max-width: 760px; margin: 0 auto; padding: 2.5rem var(--gutter) 3rem; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); }
.legal h2 { font-size: 1.6rem; margin-top: 2rem; }
.legal h3 { font-size: 1.25rem; margin-top: 1.25rem; }
.legal p, .legal li { color: #d8d0e2; }
.two-col > .panel + .panel, .two-col > div > .panel:first-child { margin-top: 0; }

/* ============================================================
   Statusseite
   ============================================================ */

.status-page { width: 100%; max-width: 860px; margin: 0 auto; padding: clamp(2rem, 6vw, 3.5rem) var(--gutter) 3rem; }
.status-hero { display: flex; gap: 1.25rem; align-items: flex-start; padding-bottom: 2rem; margin-bottom: 1rem; border-bottom: 1px solid var(--rim-soft); }
.status-hero h1 { font-size: clamp(2.6rem, 7vw, 4.2rem); line-height: 0.95; margin-bottom: 0.35rem; }
.status-hero p { color: #d2c9dd; margin: 0 0 0.3rem; }
.status-hero .checked { color: var(--ash); font-size: 0.92rem; }
.big-dot { flex: none; width: 22px; height: 22px; margin-top: 0.75rem; border-radius: 50%; background: var(--ash); box-shadow: 0 0 0 6px rgba(168, 159, 182, 0.15); }
.status-hero.ok .big-dot { background: var(--ok); box-shadow: 0 0 0 6px rgba(108, 203, 156, 0.16); }
.status-hero.degraded .big-dot { background: var(--warn); box-shadow: 0 0 0 6px rgba(243, 201, 105, 0.16); }
.status-hero.down .big-dot { background: var(--danger); box-shadow: 0 0 0 6px rgba(239, 106, 95, 0.18); }
.status-hero.maintenance .big-dot { background: var(--breath); box-shadow: 0 0 0 6px rgba(197, 146, 255, 0.18); }

.status-block { padding: 1.5rem 0; }
.status-block > h2 { font-size: 1.6rem; margin-bottom: 0.9rem; }
.comps, .mods { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rim-soft); border-radius: var(--r-m); background: var(--stone); }
.comp { padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--rim-soft); }
.comp:last-child { border-bottom: 0; }
.comp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.comp h3 { font-family: var(--text); font-size: 1.08rem; font-weight: 700; margin: 0; }
.comp .detail { color: var(--ash); font-size: 0.93rem; margin: 0.25rem 0 0; }
.comp .names { color: #cfc6da; font-size: 0.9rem; margin: 0.35rem 0 0; }
.state { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.state .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ash); }
.state.ok { color: var(--ok); } .state.ok .dot { background: var(--ok); }
.state.degraded { color: var(--warn); } .state.degraded .dot { background: var(--warn); }
.state.down { color: #ff9a91; } .state.down .dot { background: var(--danger); }
.state.maintenance { color: var(--breath); } .state.maintenance .dot { background: var(--breath); }
.state.off { color: var(--ash); } .state.off .dot { background: #4a4258; }

/* Verlauf: ein Balken pro Tag */
.bars { display: flex; gap: 2px; height: 30px; margin-top: 0.85rem; }
.bars i { flex: 1; min-width: 2px; border-radius: 1px; background: #332b42; }
.bars i.ok { background: var(--ok); }
.bars i.mt { background: var(--breath); }
.bars i.minor { background: var(--warn); }
.bars i.major { background: var(--danger); }
.bars.empty { background: repeating-linear-gradient(90deg, #2a2337 0 4px, transparent 4px 6px); border-radius: 2px; }
.bars-legend { display: flex; justify-content: space-between; color: var(--ash); font-size: 0.8rem; margin-top: 0.3rem; }
@media (max-width: 640px) {
  .bars i:nth-last-child(n + 31) { display: none; }
  .bars-legend span:first-child { visibility: hidden; }
}

.mods li { display: flex; justify-content: space-between; padding: 0.8rem 1.2rem; border-bottom: 1px solid var(--rim-soft); }
.mods li:last-child { border-bottom: 0; }

.maint { padding: 1rem 1.2rem; border: 1px solid var(--rim-soft); border-left: 4px solid var(--rim); border-radius: var(--r-m); background: var(--stone); margin-bottom: 0.75rem; }
.maint.active { border-left-color: var(--breath); background: rgba(197, 146, 255, 0.07); }
.maint.scheduled { border-left-color: var(--ember); }
.maint.completed { border-left-color: var(--ok); }
.maint.cancelled { border-left-color: #4a4258; opacity: 0.8; }
.maint h3 { font-family: var(--text); font-size: 1.08rem; font-weight: 700; margin: 0 0 0.25rem; }
.maint p { margin: 0.2rem 0 0; }
.maint .when { color: #d2c9dd; }
.maint .desc { color: #d2c9dd; white-space: pre-line; margin-top: 0.5rem; }
.maint .affects { color: var(--ash); font-size: 0.9rem; margin-top: 0.4rem; }

/* Wartungsbildschirm im Mitgliederbereich */
.maint-gate .big { font-family: var(--display); font-size: clamp(2.4rem, 7vw, 3.6rem); }

/* Rechte-Tabelle */
table.rights th { white-space: normal; font-size: 0.85rem; vertical-align: bottom; min-width: 76px; }
table.rights td input[type='checkbox'] { width: 18px; height: 18px; accent-color: var(--breath); cursor: pointer; }
table.rights tbody tr:hover td { background: rgba(197, 146, 255, 0.05); }

/* Regeln */
.rules-page .lead { font-size: 1.12rem; color: #e1d8ea; }
.rule-block { padding: 1.1rem 1.2rem; margin: 1rem 0; border: 1px solid var(--rim-soft); border-left: 4px solid var(--breath); border-radius: var(--r-m); background: var(--stone); }
.rule-block h2 { font-size: 1.4rem; margin: 0 0 0.5rem; }
.rule-block p { margin: 0; line-height: 1.75; }
.rules-accept { margin-top: 2rem; padding: 1.25rem; border: 1px solid rgba(242, 163, 58, 0.4); border-radius: var(--r-m); background: rgba(242, 163, 58, 0.06); }
.ok-line { color: var(--ok); font-weight: 700; }

/* Ticket-Verlauf */
.ticket-item { text-decoration: none; color: inherit; }
.ticket-item:hover { border-color: #51456a; }
.thread { display: grid; gap: 0.75rem; margin-top: 1rem; max-height: 60vh; overflow-y: auto; padding-right: 0.25rem; }
.msg { padding: 0.75rem 0.9rem; border: 1px solid var(--rim-soft); border-radius: var(--r-m); background: var(--void-deep); max-width: 88%; }
.msg.mine { justify-self: end; border-color: rgba(242, 163, 58, 0.45); }
.msg.staff { border-left: 3px solid var(--breath); }
.msg.system { justify-self: center; max-width: 100%; padding: 0.35rem 0.75rem; font-size: 0.88rem; color: var(--ash); background: transparent; border-style: dashed; }
.msg-head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.35rem; }
.msg-head .avatar, .msg-head .avatar-fallback { width: 26px; height: 26px; }
.msg-body { white-space: pre-wrap; word-break: break-word; }
.reply-box { margin-top: 1rem; display: grid; gap: 0.6rem; }

/* ===== Admin: gruppierte Navigation ===== */
.admin-nav .nav-group { display: grid; gap: 0.15rem; }
.admin-nav .nav-group + .nav-group { margin-top: 0.9rem; }
.admin-nav .nav-label { padding: 0 0.75rem 0.2rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ash); opacity: 0.7; }
.admin-nav .badge { min-width: 1.4rem; padding: 0 0.4rem; border-radius: 999px; background: rgba(242, 163, 58, 0.14); text-align: center; font-size: 0.85rem; }
@media (max-width: 900px) {
  .admin-nav .nav-group { display: flex; gap: 0.25rem; flex: none; }
  .admin-nav .nav-group + .nav-group { margin-top: 0; padding-left: 0.5rem; border-left: 1px solid var(--rim-soft); }
  .admin-nav .nav-label { display: none; }
}
dialog.wide { width: min(880px, calc(100vw - 2rem)); max-width: none; }

/* ===== Einrichtungs-Schritte ===== */
.steps-admin { display: grid; gap: 0.75rem; margin-bottom: 1.25rem; }
.step-card { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 1rem; margin: 0 !important; }
.step-card h2 { font-size: 1.3rem; margin: 0.25rem 0 0.4rem; }
.step-num { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--stone-raise); border: 1px solid var(--rim); color: var(--bone); }
.step-card.done .step-num { background: rgba(87, 242, 135, 0.14); border-color: rgba(87, 242, 135, 0.45); color: #7ee2a0; }

/* ===== Aufbau: Drag & Drop ===== */
.legend { display: flex; flex-wrap: wrap; gap: 1.1rem; margin: 0 0 1rem; }
.dnd-list { display: grid; gap: 0.35rem; }
.dnd-row, .cat-head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; padding: 0.4rem 0.55rem; border: 1px solid var(--rim-soft); border-radius: var(--r-s); background: var(--void-deep); }
.dnd-row input[type='text'], .dnd-row select, .cat-head input[type='text'] { width: auto; min-width: 0; padding: 0.35rem 0.55rem; font-size: 0.95rem; }
.dnd-row input[type='text'] { flex: 1 1 11rem; }
.dnd-row select { flex: 0 1 13rem; }
.dnd-row .topic-in { flex: 2 1 14rem; color: var(--ash); }
.dnd-row.off, .cat-box.off > .cat-head { opacity: 0.5; }
.dnd-row.dragging, .cat-box.dragging { opacity: 0.35; }
.dnd-row.drop-target { box-shadow: inset 0 3px 0 var(--ember); }
.cat-box.drop-target { box-shadow: 0 -3px 0 var(--ember); }
.drag-handle { cursor: grab; color: var(--ash); font-size: 1.1rem; padding: 0 0.15rem; user-select: none; }
.drag-handle:active { cursor: grabbing; }
.row-tools { display: inline-flex; gap: 0.25rem; margin-left: auto; align-items: center; }
.icon-btn { min-width: 2rem; height: 2rem; padding: 0 0.4rem; border: 1px solid var(--rim-soft); border-radius: var(--r-s); background: var(--stone); color: var(--bone); cursor: pointer; font: inherit; line-height: 1; }
.icon-btn:hover:not(:disabled) { background: var(--stone-raise); border-color: var(--rim); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.icon-btn.danger:hover:not(:disabled) { border-color: #ed4245; color: #ff8a8c; }
.mini-check { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.85rem; color: var(--ash); white-space: nowrap; }
.color-in { width: 2.2rem; height: 2rem; padding: 0.1rem; border: 1px solid var(--rim-soft); border-radius: var(--r-s); background: var(--stone); cursor: pointer; flex: none; }
.live-dot { width: 0.65rem; height: 0.65rem; border-radius: 50%; display: inline-block; background: var(--rim); flex: none; }
.live-dot.on { background: #57f287; box-shadow: 0 0 6px rgba(87, 242, 135, 0.5); }
.live-dot.off { background: #ed4245; }
.dnd-cats { display: grid; gap: 0.9rem; }
.cat-box { border: 1px solid var(--rim); border-radius: var(--r-m); padding: 0.55rem; background: var(--stone); }
.cat-head { background: transparent; border: 0; padding: 0.15rem 0.2rem 0.55rem; }
.cat-head .cat-name { flex: 1 1 14rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; }
.dnd-list.channels { padding-left: 1.1rem; min-height: 2.6rem; border-radius: var(--r-s); }
.dnd-list.channels.drop-zone { outline: 2px dashed var(--ember); outline-offset: 2px; }
.ch-icon { color: var(--ash); font-weight: 800; width: 1.2rem; text-align: center; }
.save-bar { position: sticky; bottom: 1rem; z-index: 5; display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; padding: 0.75rem 1rem; border: 1px solid var(--ember); border-radius: var(--r-m); background: var(--stone-raise); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.save-bar > span { margin-right: auto; font-weight: 700; }
.save-bar[hidden] { display: none; }

/* ===== Rollen-Menüs ===== */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0.9rem; }
.menu-grid .panel { margin: 0; }
.role-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.role-chip { --c: var(--ash); padding: 0.25rem 0.65rem; border-radius: 999px; border: 1px solid var(--c); color: var(--bone); background: color-mix(in srgb, var(--c) 14%, transparent); font-size: 0.9rem; }
.entry-row { display: grid; grid-template-columns: 3.4rem minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 0.4rem; align-items: center; margin-bottom: 0.4rem; }
.entry-row input, .entry-row select { padding: 0.4rem 0.55rem; }
.emoji-in { text-align: center; }
@media (max-width: 700px) {
  .entry-row { grid-template-columns: 3.4rem minmax(0, 1fr) auto; }
  .entry-row > :nth-child(3), .entry-row > :nth-child(4) { grid-column: 1 / -1; }
}

/* ===== Discord-Vorschau ===== */
.dc-preview { background: #313338; border-radius: var(--r-m); padding: 1rem; }
.dc-ping { color: #c9cdfb; background: rgba(88, 101, 242, 0.3); display: inline-block; border-radius: 3px; padding: 0 0.2rem; margin-bottom: 0.4rem; font-size: 0.95rem; }
.dc-ping:empty { display: none; }
.dc-embed { background: #2b2d31; border-left: 4px solid var(--breath); border-radius: 4px; padding: 0.7rem 0.9rem; color: #dbdee1; font-size: 0.95rem; max-width: 520px; }
.dc-embed.ember { border-left-color: var(--ember); }
.dc-author { font-size: 0.82rem; font-weight: 700; margin-bottom: 0.3rem; }
.dc-title { font-weight: 800; color: #f2f3f5; margin-bottom: 0.3rem; }
.dc-title:empty { display: none; }
.dc-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.dc-img { display: block; max-width: 100%; border-radius: 4px; margin-top: 0.6rem; }
.dnd-cats, .dnd-list { grid-template-columns: minmax(0, 1fr); }
.dnd-cats > *, .dnd-list > * { min-width: 0; }
.row-tools { flex-wrap: wrap; }
@media (max-width: 600px) {
  .dnd-list.channels { padding-left: 0.4rem; }
  .cat-head .cat-name { flex-basis: 9rem; }
}
dialog .block-editor + .callout, dialog .form-actions { margin-top: 1rem; }
.entry-row.three { grid-template-columns: 3.4rem minmax(0, 1fr) minmax(0, 1.6fr) auto; }
@media (max-width: 700px) { .entry-row.three > :nth-child(3) { grid-column: 1 / -1; } }

/* ===== Minecraft-Server ===== */
.mc-player { display: flex; align-items: center; gap: 0.6rem; }
.mc-player img { border-radius: 4px; image-rendering: pixelated; }
.mc-log { max-height: 420px; overflow: auto; display: grid; gap: 0.2rem; font-size: 0.95rem; }
.mc-line { padding: 0.25rem 0.4rem; border-radius: var(--r-s); overflow-wrap: anywhere; }
.mc-line.death { color: #ffb4ae; }
.mc-line.start, .mc-line.stop { font-weight: 700; }
.mc-line:nth-child(odd) { background: rgba(255, 255, 255, 0.02); }
.mc-out { margin: 0.75rem 0 0; padding: 0.75rem 0.9rem; background: var(--void-deep); border: 1px solid var(--rim-soft); border-radius: var(--r-s); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.9rem; max-height: 320px; overflow: auto; }
.mc-out.bad { border-color: var(--danger); }
.mc-console-out { display: grid; gap: 0.5rem; }
.mc-cmd pre { margin: 0.35rem 0 0; padding: 0.5rem 0.7rem; background: var(--void-deep); border-radius: var(--r-s); white-space: pre-wrap; font-size: 0.85rem; max-height: 160px; overflow: auto; }
.steps-list { padding-left: 1.3rem; display: grid; gap: 0.4rem; margin: 0 0 1rem; }

/* ===== Minecraft-Kürzel ===== */
.mc-tag { --c: #55ffff; display: inline-block; margin-left: 0.5rem; padding: 0 0.45rem; border: 1px solid var(--c); border-radius: 4px; color: var(--c); font-family: ui-monospace, monospace; font-size: 0.8em; font-weight: 700; vertical-align: middle; letter-spacing: 0.04em; }
.mc-preview { margin-top: 0.5rem; padding: 0.45rem 0.7rem; background: rgba(0, 0, 0, 0.55); border-radius: 4px; font-family: ui-monospace, monospace; font-size: 0.95rem; display: inline-block; text-shadow: 1px 1px 0 #3f3f3f; }
.mc-swatch { width: 1rem; height: 1rem; border-radius: 3px; flex: none; border: 1px solid rgba(255, 255, 255, 0.2); }
.rank-num { width: 1.4rem; text-align: center; color: var(--ash); font-weight: 800; }
.mc-tab-preview { background: rgba(0, 0, 0, 0.6); border-radius: 4px; padding: 0.5rem 0.75rem; font-family: ui-monospace, monospace; display: grid; gap: 0.15rem; text-shadow: 1px 1px 0 #3f3f3f; }
.mc-tab-row { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dnd-row.rank-row { display: grid; grid-template-columns: 1.4rem 1rem minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr) auto; }
.dnd-row.rank-row > * { min-width: 0; width: 100%; }
.dnd-row.rank-row .row-tools { flex-wrap: nowrap; width: auto; }
@media (max-width: 760px) { .dnd-row.rank-row { grid-template-columns: 1.4rem 1rem minmax(0, 1fr) auto; } .dnd-row.rank-row > select, .dnd-row.rank-row > input.mono { grid-column: 3 / -1; } }

/* ---------- Events ---------- */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 1rem; }
.ev-card { display: flex; flex-direction: column; overflow: hidden; }
.ev-card h2 { margin: 0.35rem 0 0.35rem; font-size: 1.3rem; }
.ev-card.ev-going { border-color: rgba(108, 203, 156, 0.55); box-shadow: 0 0 0 1px rgba(108, 203, 156, 0.18) inset; }
.ev-img { display: block; width: calc(100% + 2 * clamp(1.1rem, 3vw, 1.6rem)); max-width: none; margin: calc(-1 * clamp(1.1rem, 3vw, 1.6rem)) calc(-1 * clamp(1.1rem, 3vw, 1.6rem)) 1rem; aspect-ratio: 16 / 7; object-fit: cover; }
.ev-when { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; color: var(--ash); font-size: 0.92rem; }
.ev-desc { white-space: pre-line; color: var(--bone); margin-bottom: 0.9rem; line-height: 1.55; }
.ev-foot { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--rim-soft); }
.ev-rsvp { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.ev-rsvp .btn { flex: 1 1 auto; }
.ev-going-list { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--stone-raise); border: 1px solid var(--rim-soft); font-size: 0.82rem; }
.info-events { display: grid; gap: 0.6rem; }
.info-events .item { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
input[type='datetime-local'] { color-scheme: dark; }

/* ---------- Vorschläge ---------- */
.sg-toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 1rem; }
.sg-toolbar select, .sg-toolbar input[type='search'] { width: auto; flex: 0 1 12rem; }
.sg-toolbar .btn-primary { margin-left: auto; }
.chip-row { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.chip-btn { border: 1px solid var(--rim); background: var(--stone-raise); color: var(--ash); border-radius: 999px; padding: 0.35rem 0.8rem; font: 700 0.88rem var(--text); cursor: pointer; }
.chip-btn.on { border-color: var(--breath); color: var(--breath); }
.sg-item { display: grid; grid-template-columns: auto 1fr auto; gap: 0.9rem; align-items: center; text-decoration: none; color: inherit; }
.sg-item h3 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.sg-main { min-width: 0; }
.vote-box { display: grid; justify-items: center; min-width: 3.2rem; padding: 0.35rem 0.4rem; border: 1px solid var(--rim); border-radius: var(--r-s); background: var(--void-deep); color: var(--bone); cursor: pointer; font: inherit; line-height: 1.1; }
.vote-box .arrow { font-size: 0.75rem; color: var(--ash); }
.vote-box.on { border-color: var(--ember); color: var(--ember); }
.vote-box.on .arrow { color: var(--ember); }
.vote-box:disabled { cursor: default; opacity: 0.75; }
.sg-similar { margin: -0.5rem 0 1rem; padding: 0.6rem 0.8rem; border: 1px dashed var(--warn, #f3c969); border-radius: var(--r-s); font-size: 0.9rem; display: grid; gap: 0.2rem; }
.sg-head { display: flex; gap: 0.75rem; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.sg-head h2 { margin: 0; }
.sg-body { white-space: pre-line; margin: 1rem 0; line-height: 1.6; }
.sg-answer { border-left: 3px solid var(--breath); }
.sg-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.sg-thread { max-height: none; }
.sg-sys { justify-self: center; font-size: 0.88rem; color: var(--ash); border: 1px dashed var(--rim); border-radius: var(--r-m); padding: 0.35rem 0.75rem; white-space: pre-line; max-width: 100%; }
.msg.hidden-msg { opacity: 0.55; border-style: dashed; }
.sg-reply { margin-top: 1rem; }
@media (max-width: 560px) {
  .sg-item { grid-template-columns: auto 1fr; }
  .sg-item > .pill { grid-column: 2; justify-self: start; }
  .sg-toolbar .btn-primary { margin-left: 0; width: 100%; }
  .sg-toolbar select, .sg-toolbar input[type='search'] { flex: 1 1 45%; }
}
.sg-item .count { font-size: 0.78rem; color: var(--ember); font-weight: 700; }
.row-danger td { background: rgba(243, 201, 105, 0.07); }

/* ---------- Live-Karte ---------- */
.map-page { min-height: 100vh; display: flex; flex-direction: column; }
.map-main { flex: 1; display: flex; flex-direction: column; width: 100%; max-width: 1600px; margin: 0 auto; padding: 1rem clamp(0.75rem, 2.5vw, 1.5rem) 1.25rem; }
.map-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.map-head h1 { margin: 0; font-size: clamp(1.5rem, 4vw, 2.2rem); }
.map-actions { display: flex; gap: 0.5rem; }
.map-frame { flex: 1; display: flex; min-height: 70vh; border: 1px solid var(--rim-soft); border-radius: var(--r-m); overflow: hidden; background: #0b0a10; }
.map-frame iframe { display: block; flex: 1; width: 100%; min-height: 70vh; border: 0; }
.map-frame:fullscreen iframe, .map-frame.pseudo-full iframe { height: 100vh; }
.map-frame.pseudo-full { position: fixed; inset: 0; z-index: 100; border-radius: 0; }
.map-hint { margin: 0.5rem 0 0; }
.map-gate { margin: 3rem auto; text-align: center; max-width: 40ch; }
.app-map { height: 72vh; min-height: 420px; }
@media (max-width: 560px) { .map-frame, .map-frame iframe { min-height: 75vh; } }

/* ---------- Tickets: Personen, Übergeben ---------- */
.tk-members { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: -0.25rem 0 0.9rem; }
.pill-x { background: none; border: 0; color: inherit; cursor: pointer; padding: 0 0 0 0.15rem; font: inherit; line-height: 1; opacity: 0.7; }
.pill-x:hover { opacity: 1; color: #ff9a91; }
.pick-list { display: grid; gap: 0.35rem; max-height: 16rem; overflow: auto; margin-bottom: 1rem; }
.pick { display: flex; align-items: center; gap: 0.6rem; width: 100%; text-align: left; padding: 0.45rem 0.6rem; border: 1px solid var(--rim); border-radius: var(--r-s); background: var(--void-deep); color: var(--bone); cursor: pointer; font: inherit; }
.pick:hover { border-color: var(--ash); }
.pick.on { border-color: var(--breath); background: rgba(197, 146, 255, 0.1); }

/* ---------- Aufbau: Rollen-Funktionen ---------- */
.fn-checks { display: inline-flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; padding-left: 0.6rem; border-left: 1px solid var(--rim); }
.mini-check.fn:has(input:checked) { color: var(--breath); }

/* ---------- Umfragen ---------- */
.poll-list { display: grid; gap: 1rem; }
.poll-card.focus { border-color: rgba(197, 146, 255, 0.55); box-shadow: 0 0 0 1px rgba(197, 146, 255, 0.2) inset; }
.poll-admin { margin-bottom: 1rem; }
.poll-opts { display: grid; gap: 0.5rem; margin: 0.75rem 0 1rem; }
.poll-opt { display: grid; gap: 0.35rem; padding: 0.6rem 0.75rem; border: 1px solid var(--rim); border-radius: var(--r-m); background: var(--void-deep); }
label.poll-opt { cursor: pointer; }
label.poll-opt:hover { border-color: var(--ash); }
.poll-opt.on { border-color: var(--breath); background: rgba(197, 146, 255, 0.07); }
.poll-row { display: flex; align-items: center; gap: 0.6rem; }
.poll-row input { accent-color: var(--breath); flex: none; }
.poll-label { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 700; }
.poll-num { color: var(--ash); font-size: 0.9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.poll-bar { display: block; height: 6px; border-radius: 3px; background: var(--rim-soft); overflow: hidden; }
.poll-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--breath), var(--ember)); border-radius: 3px; transition: width 0.3s; }
.poll-names { overflow-wrap: anywhere; }

.poll-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); align-items: start; }
.poll-grid .poll-admin { margin: 0; }

/* ---------- Voice-Chat (Website) ---------- */
.vc-group h3 { margin: 0 0 0.2rem; }
.vc-people { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0 0 0.6rem; }
.vc-lbl { width: 5.5rem; flex: none; color: var(--ash); font-size: 0.85rem; font-weight: 700; }
.vc-person { padding: 0.2rem 0.6rem; border: 1px solid var(--rim); border-radius: 999px; font-size: 0.92rem; transition: border-color 0.12s, box-shadow 0.12s; }
.vc-person.talking { border-color: var(--ok); box-shadow: 0 0 0 2px rgba(108, 203, 156, 0.35); }
.vc-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin: 1rem 0 0.5rem; }
.vc-range { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--ash); }
.vc-range input { width: 8rem; accent-color: var(--breath); padding: 0; }
.vc-meter { display: inline-block; width: 4.5rem; height: 6px; border-radius: 3px; background: var(--rim-soft); overflow: hidden; }
.vc-meter > span { display: block; height: 100%; width: 0; background: var(--ash); transition: width 0.08s; }
.vc-meter.open > span { background: var(--ok); }
@media (max-width: 560px) { .vc-lbl { width: 100%; } .vc-range input { width: 6.5rem; } }

.fn-sup { border-left-style: dashed; }
.fn-sup .mini-check.fn:has(input:checked) { color: var(--ok); }

.vc-call { margin-bottom: 1.25rem; }
.vc-start { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.vc-start input { flex: 1 1 14rem; }

.switch.mini { display: inline-flex; }
.route-table td:not(:first-child), .route-table th:not(:first-child) { text-align: center; width: 8rem; }

/* ---------- Todos ---------- */
.todo-board { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(13rem, 1fr)); gap: 0.9rem; overflow-x: auto; align-items: start; padding-bottom: 0.5rem; }
.todo-col { background: var(--stone); border: 1px solid var(--rim-soft); border-radius: var(--r-m); padding: 0.75rem; min-height: 8rem; }
.todo-col.drop { border-color: var(--breath); background: rgba(197, 146, 255, 0.06); }
.todo-col h3 { margin: 0 0 0.6rem; font: 700 0.85rem var(--text); color: var(--ash); text-transform: uppercase; letter-spacing: 0.06em; }
.todo-card { background: var(--stone-raise); border: 1px solid var(--rim); border-left: 4px solid var(--rim); border-radius: var(--r-s); padding: 0.55rem 0.7rem; margin-bottom: 0.5rem; cursor: pointer; }
.todo-card:hover, .todo-card:focus-visible { border-color: var(--ash); outline: none; }
.todo-card.prio-high { border-left-color: var(--danger); }
.todo-card.prio-normal { border-left-color: var(--ember); }
.todo-card.prio-low { border-left-color: var(--ok); }
.todo-title { font-weight: 700; margin-bottom: 0.2rem; overflow-wrap: anywhere; }
@media (max-width: 700px) { .todo-board { grid-template-columns: repeat(var(--cols, 4), 78vw); } }

/* ---------- Bewerbungen ---------- */
.q-editor { display: grid; gap: 0.5rem; margin-bottom: 0.75rem; }
.q-row { display: grid; grid-template-columns: 1fr auto; gap: 0.4rem 0.6rem; padding: 0.6rem; border: 1px solid var(--rim); border-radius: var(--r-s); background: var(--void-deep); }
.q-main { display: grid; grid-template-columns: minmax(0, 1fr) 11rem auto; gap: 0.4rem; align-items: center; }
.q-sub { grid-column: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.q-row .row-tools { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.q-row input, .q-row select { padding: 0.4rem 0.55rem; }
.role-pick { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.answers { margin: 0; }
.answers dt { font-weight: 700; margin-top: 0.75rem; color: var(--ash); font-size: 0.92rem; }
.answers dt:first-child { margin-top: 0; }
.answers dd { margin: 0.15rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cal-day h3 { margin: 0.75rem 0 0.5rem; font-size: 1.05rem; }
.cal-day:first-child h3 { margin-top: 0; }
.tabs-row { gap: 0.4rem; }
.ap-q { margin-bottom: 1rem; }
.ap-q .hint { color: var(--ash); font-size: 0.88rem; }
.iv-options { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0; }
@media (max-width: 640px) { .q-main { grid-template-columns: 1fr; } .q-sub { grid-template-columns: 1fr; } }

/* Team-Backpack */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1rem; }
.bp-head { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.75rem; }
.bp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 0.75rem; padding: 0.5rem 0; border-top: 1px solid var(--rim); }
.bp-row:first-of-type { border-top: 0; }
.bp-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--stone2); overflow: hidden; }
.bp-bar > span { display: block; height: 100%; background: var(--breath); border-radius: 3px; }
.bp-bar > span.done { background: var(--ok); }

/* Creator-Videos */
.cr-list { display: grid; gap: 0.6rem; }
.cr-row { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto; gap: 0.9rem; align-items: center; padding: 0.7rem 0.9rem; border: 1px solid var(--rim-soft); border-radius: var(--r-m); background: var(--void-deep); color: inherit; text-decoration: none; }
.cr-row:hover { border-color: #51456a; }
.cr-row.on { border-color: var(--ember); }
.cr-thumb { height: 2.6rem; border-radius: 6px; background: linear-gradient(135deg, #3a2a55, #1b1527); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.cr-drop { border: 1.5px dashed var(--rim); border-radius: var(--r-m); padding: 0.9rem; background: var(--void-deep); }
.cr-prog { height: 10px; border-radius: 5px; background: var(--stone2); overflow: hidden; margin: 0.7rem 0 0.35rem; }
.cr-prog > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--breath), var(--ember)); transition: width 0.3s; }
.cr-detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .cr-detail { grid-template-columns: 1fr; } }
.cr-player { width: 100%; max-height: 72vh; background: #000; border-radius: var(--r-m); display: block; }
.cr-gone { display: flex; align-items: center; justify-content: center; min-height: 12rem; color: var(--ash); padding: 1rem; text-align: center; }
.cr-desc { white-space: pre-wrap; word-break: break-word; background: var(--void-deep); border: 1px solid var(--rim-soft); border-radius: var(--r-m); padding: 0.8rem 0.9rem; }
.cr-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.9rem 0; }
.cr-filter { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.btn-ok { background: #1f5a3d; border-color: var(--ok); color: #eafff4; }
.btn-ok:hover { background: #256b49; }

/* Tabs im Mitgliederbereich: was nicht in die Zeile passt, kommt ins Menü „Mehr ▾“ */
.tabs.tabs-fit { overflow: visible; flex-wrap: nowrap; position: relative; }
.tabs-more { position: relative; flex: none; margin-left: auto; }
.tabs-more > button { display: inline-flex; align-items: center; gap: 0.35rem; }
.tabs-more > button[aria-expanded='true'] { color: var(--bone); }
.tabs-more.has-current > button { color: var(--bone); border-bottom-color: var(--ember); }
.tabs-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 13rem; padding: 0.35rem; background: var(--stone); border: 1px solid var(--rim); border-radius: var(--r-m); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45); display: grid; }
.tabs-menu[hidden] { display: none; }
.tabs .tabs-menu a { padding: 0.6rem 0.8rem; border: 0; border-radius: 8px; margin: 0; }
.tabs .tabs-menu a:hover { background: var(--stone2); }
.tabs .tabs-menu a[aria-selected='true'] { color: var(--bone); background: var(--stone2); box-shadow: inset 3px 0 0 var(--ember); }

/* Startseite: Enderdrachen-Bild als Hintergrund (ruhig, ohne Animation) */
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(21, 17, 29, 0.92) 0%, rgba(21, 17, 29, 0.6) 45%, rgba(21, 17, 29, 0.15) 100%),
    linear-gradient(180deg, rgba(21, 17, 29, 0) 55%, var(--void) 100%),
    url('/hero-dragon.jpg') right center / cover no-repeat;
}
.hero.has-bg::before { z-index: 0; }
.hero.has-bg .wrap { z-index: 1; }
.hero.has-bg .server-row { background: rgba(30, 25, 41, 0.82); }
@media (max-width: 700px) {
  .hero-bg { background:
    linear-gradient(180deg, rgba(21, 17, 29, 0.55) 0%, rgba(21, 17, 29, 0.85) 60%, var(--void) 100%),
    url('/hero-dragon.jpg') 70% center / cover no-repeat; }
}
@media (max-width: 560px) { .addr { flex-wrap: wrap; } }

/* Krank- und Abmeldungen */
.ab-sick { border-color: rgba(239, 106, 95, 0.55); }
.ab-dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 0.75rem; }
.ab-days { display: flex; flex-wrap: wrap; gap: 0.35rem 0.8rem; margin: 0.4rem 0 0.8rem; }
.ab-list { display: grid; gap: 0.45rem; margin-bottom: 0.9rem; }
.ab-row { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr) auto; gap: 0.6rem; align-items: center; padding: 0.55rem 0.75rem; border: 1px solid var(--rim-soft); border-radius: var(--r-m); background: var(--void-deep); }
.ab-row.off { opacity: 0.6; }
.ab-row strong { display: block; }
.ab-row small { display: block; }
.ab-ic { font-size: 1.25rem; text-align: center; }
.ab-btns { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: flex-end; align-items: center; }
.ab-ruleform { border-top: 1px solid var(--rim-soft); padding-top: 0.8rem; }
@media (max-width: 560px) { .ab-row { grid-template-columns: 1.6rem minmax(0, 1fr); } .ab-btns { grid-column: 1 / -1; justify-content: flex-start; } }

/* Entities & Auto-Clear */
.ent-load { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.ent-bar { display: inline-block; width: 90px; height: 7px; border-radius: 4px; background: var(--stone2); overflow: hidden; }
.ent-bar > i { display: block; height: 100%; background: var(--ember); }
tr.ent-hot .ent-bar > i { background: var(--danger); }
tr.ent-hot td:first-child .linkish { color: #ff9a91; }
tr.ent-warm td:first-child .linkish { color: var(--warn); }
tr.ent-detail td { background: var(--void-deep); }
.ent-spots { margin: 0.4rem 0 0; padding-left: 1.4rem; font-size: 0.9rem; }
.ent-spots code { color: var(--ash); margin-left: 0.4rem; }
.ent-log { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.3rem; font-size: 0.92rem; }
.linkish { background: none; border: 0; padding: 0; color: var(--bone); font: inherit; font-weight: 700; cursor: pointer; text-align: left; }

/* Startseite: Creator gerade live, Hinweis bei Creator-Link */
.live-now { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin: 1rem 0 0; font-size: 0.98rem; }
.live-now a { color: var(--bone); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(239, 106, 95, 0.6); text-underline-offset: 3px; }
.live-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #e0393e; box-shadow: 0 0 0 3px rgba(224, 57, 62, 0.25); }
.live-label { color: #ff8a85; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.82rem; }
.live-sep { color: var(--ash); }
.ref-note { margin: 1rem 0 0; padding: 0.7rem 0.95rem; border: 1px solid var(--rim); border-radius: var(--r-m); background: rgba(30, 25, 41, 0.82); max-width: 760px; }
.cr-live-state { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; }
.cr-live-state.live { color: #ff8a85; } .cr-live-state.rec { color: #7fd6ff; }
.cl-bars { display: flex; align-items: flex-end; gap: 2px; height: 90px; padding: 0.4rem; border: 1px solid var(--rim-soft); border-radius: var(--r-m); background: var(--void-deep); margin-bottom: 1rem; }
.cl-bars span { flex: 1; min-width: 3px; background: var(--breath); border-radius: 2px 2px 0 0; }

/* Team-Rechte (nur der Owner sieht die Haken) */
.team-rights { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; width: 100%; margin-top: 0.4rem; }
.team-rights .check { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; color: var(--ash); cursor: pointer; }
.team-rights .check input { accent-color: var(--breath); }
.members li .who { flex: 1 1 16rem; min-width: 0; }

/* Dia-Bank */
.bank-sum { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-top: 1px solid var(--rim-soft); }
.bank-sum:first-of-type { border-top: 0; }
.bank-sum.total strong { color: var(--ember-hot); }
.bank-top { margin: 0; padding-left: 1.6rem; }
.bank-top li { padding: 0.3rem 0; border-bottom: 1px solid var(--rim-soft); }
.bank-top li:last-child { border-bottom: 0; }
.bank-top li > span, .bank-top li > strong { display: inline; }
.bank-top li > strong { float: right; font-variant-numeric: tabular-nums; }

/* ---------- Supporter ---------- */
.sup-goal { margin: 1rem 0 1.25rem; }
.sup-goal-top { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.sup-goal-top span { color: var(--ash); }
.sup-track { height: 12px; border-radius: 999px; background: var(--stone-raise); border: 1px solid var(--rim-soft); overflow: hidden; margin-top: 0.4rem; }
.sup-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--breath), var(--ember)); border-radius: 999px; }
.sup-goal p { margin: 0.35rem 0 0; }
.sup-home .link-list { margin-top: 0.75rem; }
.sup-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.sup-card { background: var(--stone); border: 1px solid var(--rim-soft); border-radius: var(--r-m); padding: 1rem 1.1rem; }
.sup-card h2 { font-size: 1.25rem; margin: 0 0 0.6rem; }
.sup-list { margin: 0; padding-left: 1.3rem; }
.sup-list li, .sup-recent li { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.2rem 0; }
.sup-recent { list-style: none; margin: 0; padding: 0; }
.sup-recent li { flex-wrap: wrap; border-bottom: 1px solid var(--rim-soft); padding: 0.45rem 0; }
.sup-recent li:last-child { border-bottom: 0; }
.sup-recent q { flex-basis: 100%; color: var(--ash); font-size: 0.92rem; }
.sup-page h1 { margin-bottom: 0.5rem; }

.sup-widget { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--stone); border: 1px solid var(--rim-soft); border-radius: var(--r-m); padding: 1rem 1.1rem; margin: 1rem 0 1.5rem; }
.sup-widget p { margin: 0.25rem 0 0; max-width: 60ch; }
.sup-list { list-style: none; padding: 0; counter-reset: rank; }
.sup-list li::before { counter-increment: rank; content: counter(rank) "."; color: var(--ash); min-width: 1.6rem; }
.sup-list li span { flex: 1; }
.sup-page h2 { font-size: 1.6rem; }

/* ---------- KI-Chat (Admin) ---------- */
.kc-wrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 1rem; min-height: 70vh; }
.kc-list { background: var(--stone); border: 1px solid var(--rim-soft); border-radius: var(--r-m); padding: 0.75rem; overflow-y: auto; max-height: 75vh; }
.kc-new { width: 100%; margin-bottom: 0.6rem; }
.kc-item { padding: 0.45rem 0.55rem; border-radius: var(--r-s); margin-bottom: 0.2rem; }
.kc-item a { color: var(--ash); text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kc-item.on { background: var(--stone-raise); }
.kc-item.on > a { color: var(--bone); }
.kc-acts { display: none; gap: 0.6rem; font-size: 0.8rem; }
.kc-acts a { display: inline; }
.kc-item:hover .kc-acts, .kc-item.on .kc-acts { display: flex; }
.kc-main { display: flex; flex-direction: column; background: var(--stone); border: 1px solid var(--rim-soft); border-radius: var(--r-m); min-width: 0; }
.kc-title { font-size: 1.2rem; margin: 0; padding: 0.75rem 1rem; border-bottom: 1px solid var(--rim-soft); }
.kc-msgs { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; max-height: 60vh; min-height: 40vh; }
.kc-msg { max-width: 85%; padding: 0.6rem 0.85rem; border-radius: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.kc-me { align-self: flex-end; background: var(--ember); color: var(--ember-ink); white-space: pre-wrap; }
.kc-ai { align-self: flex-start; background: var(--stone-raise); }
.kc-ai pre { background: var(--void-deep); padding: 0.6rem; border-radius: var(--r-s); white-space: pre-wrap; font-size: 0.88rem; }
.kc-meta { font-size: 0.78rem; color: var(--ash); margin-top: 0.35rem; }
.kc-err { color: var(--danger); }
.kc-imgs { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.35rem; }
.kc-img { max-width: 220px; max-height: 160px; border-radius: 8px; display: block; }
.kc-bar { border-top: 1px solid var(--rim-soft); padding: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.kc-input { width: 100%; resize: vertical; }
.kc-row { display: flex; align-items: center; gap: 0.5rem; }
.kc-thumbs { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.kc-thumb { position: relative; }
.kc-thumb img { height: 56px; border-radius: 6px; display: block; }
.kc-thumb button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--danger); color: #fff; cursor: pointer; line-height: 1; }
@media (max-width: 760px) { .kc-wrap { grid-template-columns: 1fr; } .kc-list { max-height: 30vh; } }

/* Basen (Admin) */
.bs-shots { display: flex; gap: .5rem; flex-wrap: wrap; margin: .5rem 0; }
.bs-shots img { width: 260px; max-width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; border: 1px solid var(--line, #3a3149); display: block; }
.bs-q { margin-bottom: 1rem; }
.bs-q-head { display: flex; gap: 1rem; flex-wrap: wrap; align-items: baseline; }
.bs-ai { margin: .4rem 0; }

/* KI-Chat: Werkzeuge und Gedächtnis */
.kc-tools { display: flex; flex-direction: column; gap: .2rem; margin-bottom: .4rem; }
.kc-tools:empty { display: none; }
.kc-tool { font-size: .78rem; color: var(--muted, #a89fb6); border-left: 2px solid #5b3f80; padding-left: .5rem; }
.kc-text a { color: inherit; text-decoration: underline; }
.kc-mem-list { list-style: none; padding: 0; margin: .5rem 0 1rem; display: flex; flex-direction: column; gap: .35rem; }
.kc-mem-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem .6rem; border: 1px solid var(--line, #3a3149); border-radius: 8px; }
.kc-mem-list .kc-acts { display: flex; gap: .6rem; white-space: nowrap; font-size: .85rem; }
.kc-mem-add { display: flex; gap: .5rem; }
.kc-mem-add input { flex: 1; }
.bs-progress { margin-top: .75rem; }
.bs-bar { height: 8px; background: var(--stone2, #2a2336); border-radius: 99px; overflow: hidden; }
.bs-bar span { display: block; height: 100%; background: var(--ember, #f2a33a); transition: width .4s; }
.bs-log { font-size: .78rem; white-space: pre-wrap; max-height: 12rem; overflow: auto; background: rgba(0,0,0,.25); padding: .5rem .7rem; border-radius: 8px; margin: .4rem 0 0; }

/* Kino */
.kino-prev { display: block; width: 100%; max-width: 720px; aspect-ratio: 16 / 9; object-fit: contain; background: #000; border-radius: 8px; margin-top: .75rem; image-rendering: pixelated; }
.kino-steps { margin: .4rem 0 1rem; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .35rem; }

/* Spenden-Knopf unten rechts (Buy Me a Coffee erst nach Zustimmung) */
.bmcf { position: fixed; right: 18px; bottom: 18px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-size: 14px; }
.bmcf-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 18px; background: var(--bmcf, #BD5FFF); color: #fff; font-weight: 700; cursor: pointer; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35); font: inherit; font-weight: 700; }
.bmcf-btn:hover { filter: brightness(1.08); }
.bmcf-panel { width: min(340px, calc(100vw - 36px)); background: #1e1929; color: #ede5d6; border: 1px solid #3a3149; border-radius: 12px; padding: 14px 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.bmcf-panel p { margin: 0 0 8px; }
.bmcf-small { font-size: 12.5px; color: #a89fb6; line-height: 1.45; }
.bmcf-small a { color: inherit; text-decoration: underline; }
.bmcf-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.bmcf-yes { border: 0; border-radius: 8px; padding: 8px 12px; background: var(--bmcf, #BD5FFF); color: #fff; font-weight: 700; cursor: pointer; font: inherit; font-weight: 700; }
.bmcf-no { border: 1px solid #3a3149; background: transparent; color: #ede5d6; border-radius: 8px; padding: 8px 12px; cursor: pointer; font: inherit; }
.bmcf-link { color: #ede5d6; font-size: 13px; }
@media (max-width: 520px) { .bmcf-btn span { display: none; } .bmcf-btn { padding: 12px; } }


/* ============================================================
   Design 2026-11: Anpassungen über alle Seiten
   ============================================================ */

h1, h2, h3 { color: var(--head); font-variant-ligatures: none; font-feature-settings: 'liga' 0; letter-spacing: 0.005em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 3rem); }
h3 { font-size: 1.3rem; }
.topbar { background: var(--void); backdrop-filter: none; border-bottom: 1px solid var(--rim-soft); }
.brand { color: var(--head); font-size: 1.5rem; }
.brand:hover { color: var(--head); }
.topnav a[aria-current='page'] { color: var(--head); }
:focus-visible { outline: 2px solid var(--head); outline-offset: 3px; border-radius: 0; }

/* Knöpfe mit Pixel-Ecken und leichter Kante unten (wie ein Block) */
.btn { border-radius: 0; clip-path: var(--notch-s); border-color: transparent; background: var(--stone-raise); box-shadow: inset 0 0 0 1px var(--rim), inset 0 -3px 0 rgba(0, 0, 0, 0.3); }
.btn:hover { box-shadow: inset 0 0 0 1px #4b3d5c, inset 0 -3px 0 rgba(0, 0, 0, 0.3); border-color: transparent; }
.btn:focus-visible { clip-path: none; }
.btn-primary { background: var(--ember); color: #fff; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.16), inset 0 -3px 0 rgba(0, 0, 0, 0.3); }
.btn-primary:hover { background: var(--ember-hot); color: #fff; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.16), inset 0 -3px 0 rgba(0, 0, 0, 0.3); }
.btn-discord { box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.16), inset 0 -3px 0 rgba(0, 0, 0, 0.3); }
.btn-danger { box-shadow: inset 0 0 0 1px rgba(239, 106, 95, 0.55); }
.copy-btn { border-radius: 0; clip-path: var(--notch-s); }
.panel, .callout, dialog, .server-row, .faq details { clip-path: var(--notch); }
.toast { border-radius: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--breath); box-shadow: 0 0 0 3px rgba(195, 160, 214, 0.18); }
.tabs [aria-selected='true'] { border-bottom-color: var(--ember); }
.pill { border-radius: 0; }

/* ---------- Startseite ---------- */

.hero { padding: clamp(3.5rem, 9vw, 6rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero::before { display: none; }
.hero h1 { color: var(--head); font-size: clamp(4.2rem, 11vw, 9rem); line-height: 0.92; letter-spacing: 0.01em; max-width: 8ch; text-shadow: 0.06em 0.06em 0 var(--purpur-deep); margin-bottom: 0.3em; }
.hero .tagline { color: var(--bone); max-width: 38ch; }
.server-row { background: rgba(18, 13, 24, 0.82); border: 1px solid var(--rim); border-radius: 0; box-shadow: none; max-width: 640px; }
.server-row .icon { image-rendering: pixelated; background: var(--stone); }
.server-row .name { font-family: var(--display); color: var(--head); font-size: 1.45rem; }
.addr code { font-family: var(--display); font-size: 1.15rem; color: var(--head); letter-spacing: 0.01em; }
.live-line { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--bone); font-size: 0.98rem; margin-top: 1.1rem; }
.live-line b { width: 8px; height: 8px; background: var(--live); box-shadow: 0 0 0 3px rgba(217, 95, 223, 0.22); flex: none; }
.live-line.off b { background: var(--ash); box-shadow: none; }
.section { border-top: 0; }
.section.band { background: var(--band); }
.steps li { border-top: 4px solid var(--rim); }
.steps li::before { color: #b386c5; }
.offer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem 3.5rem; margin-top: 1.5rem; }
.offer > div { display: grid; grid-template-columns: 44px 1fr; gap: 1.1rem; padding: 1.1rem 0; }
.offer img { width: 40px; height: 40px; image-rendering: pixelated; }
.offer h3 { margin-bottom: 0.2rem; }
.offer p { margin: 0; color: var(--bone); }
.offer small { color: var(--ash); font-size: 0.9rem; }
.lobby-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.data-list { border-top: 1px solid var(--rim); margin: 0; padding: 0; list-style: none; }
.data-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--rim); }
.data-list li span:last-child { color: var(--ash); text-align: right; }
.data-list li.now span:last-child { color: var(--live); }
.faq details { border-bottom: 0; background: var(--stone); padding: 0 1.1rem; margin-bottom: 0.4rem; }
.faq summary { padding-right: 2.2rem; }
.info-events .meta span + span::before { content: ', '; }
@media (max-width: 860px) { .offer, .lobby-band { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } }

/* ---------- Lobby-Seite ---------- */

.lobby-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: end; }
.lobby-hero h1 { margin-bottom: 0.15em; }
.lobby-hero .server-row { grid-template-columns: 52px 1fr auto; margin-top: 1.2rem; }
.lobby-hero .server-row .icon { width: 52px; height: 52px; grid-row: span 2; }
.runs { width: 100%; border-collapse: collapse; font-size: 1rem; }
.runs caption { text-align: left; color: var(--ash); font-size: 0.92rem; padding-bottom: 0.4rem; }
.runs td { padding: 0.7rem 0; border-bottom: 1px solid var(--rim); vertical-align: top; }
.runs td + td { padding-left: 1rem; }
.runs td.m { color: var(--ash); }
.runs td:last-child { text-align: right; color: var(--live); white-space: nowrap; }
.runs .none { color: var(--ash); }
.game-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.75rem; margin-top: 1.25rem; }
.game-groups h3 { font-size: 1.45rem; margin-bottom: 0.1rem; }
.game-groups .sub { color: var(--ash); font-size: 0.92rem; margin-bottom: 0.6rem; }
.game { display: grid; grid-template-columns: 34px 1fr; gap: 0.8rem; align-items: center; padding: 0.55rem 0; }
.game img { width: 32px; height: 32px; image-rendering: pixelated; }
.game b { display: block; }
.game span { color: var(--ash); font-size: 0.95rem; }
.game.off { opacity: 0.5; }
.board-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0.5rem 0 2rem; }
.board-tabs button { font: 400 0.95rem var(--text); padding: 0.5rem 0.9rem; color: var(--ash); background: transparent; border: 0; box-shadow: inset 0 0 0 1px var(--rim); clip-path: var(--notch-s); cursor: pointer; }
.board-tabs button[aria-selected='true'] { background: var(--head); color: var(--void); box-shadow: none; font-weight: 700; }
.board-tabs button:focus-visible { clip-path: none; }
.board-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; align-items: end; }
.podium { display: flex; gap: 0.9rem; align-items: flex-end; min-height: 300px; }
.podium .pl { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.podium .nm { font: 600 1.25rem var(--display); color: var(--head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium .pt { color: var(--ash); font-size: 0.9rem; margin-bottom: 0.5rem; }
.podium .blk { display: flex; align-items: flex-start; padding: 0.6rem; font: 700 2.1rem/1 var(--display); color: #fff; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5); box-shadow: inset 4px 4px 0 rgba(255, 255, 255, 0.28), inset -4px -4px 0 rgba(0, 0, 0, 0.25); }
.podium .p1 .blk { height: 220px; background: #d6ac34; }
.podium .p2 .blk { height: 160px; background: #bdbdc6; }
.podium .p3 .blk { height: 110px; background: #b86a45; }
.board-rest { list-style: none; margin: 0; padding: 0; }
.board-rest li { display: grid; grid-template-columns: 2.2rem 1fr auto; padding: 0.6rem 0; border-bottom: 1px solid var(--rim); }
.board-rest li .r { color: var(--ash); }
.board-empty { color: var(--ash); padding: 2rem 0; }
.finder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 3rem; align-items: start; }
.finder form { display: flex; gap: 0.5rem; }
.finder input { font-size: 1.1rem; }
.player-card { background: var(--stone); padding: 1.4rem; clip-path: var(--notch); }
.player-card h3 { font-size: 1.9rem; margin-bottom: 0.2rem; }
.player-card dl { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 1.2rem; margin: 1rem 0 0; font-size: 0.98rem; }
.player-card dt { color: var(--ash); }
.player-card dd { margin: 0; text-align: right; }
@media (max-width: 860px) {
  .lobby-hero .wrap, .game-groups, .board-grid, .finder { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .podium { min-height: 0; }
  .podium .p1 .blk { height: 150px; } .podium .p2 .blk { height: 110px; } .podium .p3 .blk { height: 76px; }
}
/* Text in Purpur wäre auf Dunkel zu schwach: hellere Stufe */
.admin-nav .badge, .vote-box.on, .vote-box.on .arrow, .sg-item .count { color: #c39ad6; }
.hero-bg { background: url('/hero-dragon.jpg') right center / auto 118% no-repeat; opacity: 0.55; -webkit-mask-image: linear-gradient(90deg, transparent 12%, #000 62%); mask-image: linear-gradient(90deg, transparent 12%, #000 62%); }
.hero.has-bg .server-row { background: rgba(18, 13, 24, 0.82); }
@media (max-width: 700px) { .hero-bg { background-size: auto 80%; background-position: right bottom; opacity: 0.3; } }
@media (min-width: 980px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lobby-hero .server-row { grid-template-columns: 52px minmax(0, 1fr); align-items: center; }
.lobby-hero .server-row .addr { flex-wrap: wrap; gap: 0.2rem 0.6rem; }
.lobby-hero .server-row .addr .kind { flex-basis: 100%; font-size: 0.85rem; }
.lobby-hero .server-row .motd { grid-column: 2; }
.brand { white-space: nowrap; }
@media (max-width: 480px) { .brand { font-size: 1.2rem; } .brand .egg { width: 18px; height: 22px; } }


/* ============================================================
   Ruhige Info-Seite: keine Pixel-Optik mehr
   ============================================================ */
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; color: var(--head); }
h3 { font-weight: 700; letter-spacing: -0.01em; }
body { font-weight: 400; }
.brand { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 1.3rem; }
.btn, .copy-btn, .board-tabs button, .panel, .callout, dialog, .server-row, .faq details, .player-card { clip-path: none; }
.btn { border-radius: var(--r-s); box-shadow: inset 0 0 0 1px var(--rim); font-weight: 700; }
.btn:hover { box-shadow: inset 0 0 0 1px #45404e; }
.btn-primary, .btn-primary:hover, .btn-discord { box-shadow: none; }
.copy-btn { border-radius: var(--r-s); }
.pill, .toast { border-radius: 999px; }
.toast { border-radius: var(--r-m); }
.panel, .callout, dialog { border-radius: var(--r-m); }
:focus-visible { border-radius: 4px; }
.hero h1 { font-size: clamp(3.4rem, 9vw, 6.6rem); letter-spacing: -0.035em; line-height: 0.98; text-shadow: none; max-width: 10ch; }
.hero .tagline { font-size: clamp(1.1rem, 2vw, 1.3rem); }
.server-row { border-radius: var(--r-m); background: rgba(17, 16, 20, 0.85); }
.server-row .name { font-family: var(--display); font-weight: 800; letter-spacing: -0.01em; color: var(--head); }
.addr code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 1rem; color: var(--head); letter-spacing: 0; }
.steps li { border-top: 2px solid var(--rim); }
.steps li::before { font-family: var(--display); font-weight: 800; color: #b48fcb; font-size: 2rem; }
.offer > div { grid-template-columns: 1fr; padding: 1.2rem 0 1.2rem 1rem; border-left: 2px solid var(--rim); }
.offer h3 { font-size: 1.2rem; }
.faq details { border-radius: var(--r-s); }
.podium .nm { font-family: var(--display); font-weight: 700; color: var(--head); }
.podium .blk { font-family: var(--display); font-weight: 800; border-radius: var(--r-s) var(--r-s) 0 0; box-shadow: none; text-shadow: none; color: rgba(0, 0, 0, 0.55); }
.board-tabs button { border-radius: 999px; font-family: var(--text); }
.board-tabs button[aria-selected='true'] { background: var(--head); color: var(--void); }
.game { grid-template-columns: 1fr; padding: 0.55rem 0; border-top: 1px solid var(--rim-soft); }
.player-card { border-radius: var(--r-m); }
.live-line b { border-radius: 50%; }
.lobby-hero .server-row .icon { border-radius: 8px; }
@media (max-width: 480px) { .topbar { gap: 0.6rem; } .user-area .btn-small { padding: 0.35rem 0.55rem; font-size: 0.82rem; } .brand { font-size: 1.1rem; } }


/* ============================================================
   Stil nach Vorlage: Pixel-Titel, Purpur, Drache (gilt für alle Seiten)
   ============================================================ */
:root {
  --void: #0e0a14;
  --void-deep: #0a070f;
  --band: #130e1b;
  --stone: #181221;
  --stone-raise: #211931;
  --stone2: #211931;
  --rim: #2d2340;
  --rim-soft: #221a31;
  --bone: #ddd5e8;
  --head: #ffffff;
  --ash: #a59bb4;
  --ember: #8b3fe0;
  --ember-hot: #9b52ee;
  --purpur-deep: #3b1d63;
  --blurple: #5865f2;
  --tag: #3ecf8e;
  --px: 'Silkscreen', ui-monospace, monospace;
  --pxs: 'Pixelify', 'Silkscreen', ui-monospace, monospace;
  --display: var(--px);
  --text: 'Atkinson', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
body { background: var(--void); font-family: var(--text); }
h1, h2 { font-family: var(--px); font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.05; color: var(--head); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.5rem); }
h3 { font-family: var(--pxs); font-weight: 600; letter-spacing: 0; line-height: 1.2; }

/* Hinweisleiste und Kopfzeile */
.banner { background: linear-gradient(90deg, #7a32d4, #9645ec 50%, #7a32d4); color: #fff; text-align: center; font-weight: 700; font-size: 0.92rem; border: 0; }
.banner a { color: #fff; text-decoration: underline; }
.topbar { background: rgba(14, 10, 20, 0.88); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rim-soft); }
.brand { font-family: var(--pxs); font-weight: 700; font-size: 1.45rem; letter-spacing: 0; color: var(--head); }
.brand em { font-style: normal; color: #b07cf5; }
.brand .egg { background: var(--stone-raise); padding: 3px; box-shadow: inset 0 0 0 1px var(--rim); }
.topnav a { font-family: var(--px); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: #c9c0d6; }
.topnav a:hover, .topnav a[aria-current='page'] { color: #fff; }

/* Knöpfe: eckig mit Pixel-Kanten, Pixel-Schrift in Großbuchstaben */
.btn { font-family: var(--px); font-weight: 400; text-transform: uppercase; letter-spacing: 0.13em; font-size: 0.8rem; border-radius: 0; clip-path: var(--notch-s); padding: 0.85rem 1.4rem; gap: 0.6rem; background: var(--stone-raise); color: #fff; box-shadow: inset 0 0 0 1px var(--rim), inset 0 -3px 0 rgba(0, 0, 0, 0.28); }
.btn:hover { box-shadow: inset 0 0 0 1px #4a3a66, inset 0 -3px 0 rgba(0, 0, 0, 0.28); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-small { font-size: 0.7rem; padding: 0.6rem 0.9rem; }
.btn-primary, .btn-primary:hover { background: var(--ember); color: #fff; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.18), inset 0 -3px 0 rgba(0, 0, 0, 0.28); }
.btn-primary:hover { background: var(--ember-hot); }
.btn-discord, .btn-discord:hover { background: var(--blurple); color: #fff; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.18), inset 0 -3px 0 rgba(0, 0, 0, 0.28); }
.btn-discord:hover { background: #6974f4; }
.btn:focus-visible { clip-path: none; outline: 2px solid #fff; outline-offset: 3px; }
.panel, .callout, dialog, .faq details, .player-card { border-radius: 0; clip-path: var(--notch); }
.pill, .toast { border-radius: 0; }
input, select, textarea { border-radius: 0; }

/* Kopf der Startseite */
.hero.has-bg { min-height: min(88vh, 860px); display: flex; align-items: center; padding: clamp(4rem, 9vw, 6.5rem) 0; }
.hero-bg { background: url('/hero-dragon.jpg') right center / cover no-repeat; opacity: 0.95; -webkit-mask-image: linear-gradient(90deg, transparent 18%, #000 58%); mask-image: linear-gradient(90deg, transparent 18%, #000 58%); }
.hero.has-bg::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 70%, var(--void)), radial-gradient(60% 70% at 20% 50%, rgba(14, 10, 20, 0.6), transparent); }
.hero .wrap { position: relative; z-index: 1; }
.eyebrow { font-family: var(--pxs); font-size: 0.98rem; color: #e2dcec; margin: 0 0 1.6rem; letter-spacing: 0.02em; }
.title-px { font-family: var(--px); font-weight: 700; text-transform: uppercase; font-size: clamp(3.4rem, 10.5vw, 8.4rem); line-height: 0.92; letter-spacing: 0; margin: 0 0 2rem; max-width: none; text-shadow: none; }
.hero h1.title-px { font-size: clamp(3.4rem, 10.5vw, 8.4rem); letter-spacing: 0; max-width: none; text-shadow: none; line-height: 0.92; }
.title-px span { display: block; }
.title-px .accent { background: linear-gradient(180deg, #ecd4ff 0%, #c08af7 45%, #9b4ff0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .tagline { font-family: var(--text); font-size: clamp(1.08rem, 1.8vw, 1.22rem); color: #ddd5e8; max-width: 44ch; line-height: 1.6; margin: 0 0 2rem; }
.addr-cards { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.6rem; }
.addr-cards .addr { display: inline-flex; align-items: center; gap: 1rem; padding: 0.9rem 0.9rem 0.9rem 1.1rem; background: rgba(20, 14, 30, 0.82); box-shadow: inset 0 0 0 1px var(--rim); min-width: 0; max-width: 100%; }
.addr-cards .kind { font-family: var(--px); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--tag); }
.addr-cards .val { display: flex; flex-direction: column; min-width: 0; }
.addr-cards code { font-family: var(--pxs); font-weight: 600; font-size: 1.12rem; color: #fff; letter-spacing: 0.01em; overflow-wrap: anywhere; }
.addr-cards small { font-family: var(--pxs); font-size: 0.85rem; color: var(--ash); }
.copy-btn.icon-copy { width: 36px; height: 36px; padding: 0; display: inline-grid; place-items: center; background: #221a31; color: #e2dcec; border: 0; box-shadow: inset 0 0 0 1px #3a2f50; border-radius: 0; clip-path: none; cursor: pointer; flex: none; }
.copy-btn.icon-copy:hover { background: #2c2240; color: #fff; }
.copy-btn.icon-copy.done { color: var(--tag); }
.copy-btn.icon-copy svg { width: 17px; height: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.live-line { font-family: var(--pxs); }
.live-line b { border-radius: 0; }

/* Abschnitte */
.section.band { background: var(--band); }
.steps li { border-top: 2px solid var(--rim); }
.steps li::before { font-family: var(--px); font-weight: 700; color: #b07cf5; font-size: 2rem; }
.offer > div { border-left: 2px solid #4a2f78; }
.faq details { background: var(--stone); }
.faq summary { font-family: var(--pxs); font-weight: 600; font-size: 1.05rem; }
.footer .brandline { font-family: var(--pxs); font-weight: 700; }

/* Lobby-Seite */
.lobby-hero { padding: clamp(3.5rem, 8vw, 5.5rem) 0; background: radial-gradient(60% 90% at 85% 10%, rgba(139, 63, 224, 0.18), transparent 70%); }
.lobby-hero .title-px { font-size: clamp(3rem, 8vw, 6rem); margin-bottom: 1.2rem; }
.runs caption { font-family: var(--px); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--tag); }
.game-groups h3 { font-size: 1.35rem; }
.game b { font-family: var(--pxs); font-weight: 600; }
.board-tabs button { font-family: var(--px); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; border-radius: 0; clip-path: var(--notch-s); }
.board-tabs button[aria-selected='true'] { background: var(--ember); color: #fff; }
.podium .nm { font-family: var(--pxs); font-weight: 700; }
.podium .blk { font-family: var(--px); font-weight: 700; border-radius: 0; color: rgba(0, 0, 0, 0.55); box-shadow: inset 4px 4px 0 rgba(255, 255, 255, 0.25), inset -4px -4px 0 rgba(0, 0, 0, 0.2); }
.player-card h3 { font-size: 1.7rem; }

@media (max-width: 860px) {
  .topnav a { font-size: 0.72rem; letter-spacing: 0.1em; }
}
@media (max-width: 700px) {
  .hero.has-bg { min-height: 0; }
  .hero-bg { background-size: cover; background-position: 70% center; opacity: 0.4; -webkit-mask-image: none; mask-image: none; }
  .addr-cards .addr { width: 100%; justify-content: space-between; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .brand { font-size: 1.15rem; }
  .user-area .btn-small { font-size: 0.62rem; letter-spacing: 0.06em; padding: 0.5rem 0.6rem; }
}
/* Silkscreen ist von Haus aus weit gesetzt: enger für Titel, Navigation und Knöpfe */
.title-px, .hero h1.title-px { letter-spacing: -0.045em; font-size: clamp(3.2rem, 9vw, 7.6rem); }
h1, h2 { letter-spacing: -0.04em; }
.topnav a { letter-spacing: 0.06em; }
.btn { letter-spacing: 0.06em; }
.addr-cards .kind, .runs caption, .board-tabs button { letter-spacing: 0.05em; }
.runs td.none { white-space: normal; text-align: left; color: var(--ash); }
@media (max-width: 420px) { .user-area .btn-small svg { display: none; } .user-area .btn-small { padding: 0.5rem 0.55rem; } .topbar { gap: 0.4rem; } }
/* Kanal-Rollen im Discord-Aufbau */
.role-choice-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.35rem 1rem; margin: 0.4rem 0 1rem; }
.role-choice { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0; cursor: pointer; }
.role-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ash); flex: none; }
