/* Mine Attack 4 - Liquid Glass ueber der Blockwelt (2026-11-06).
 *
 * Vorbild ist marichcel.de: ein festes Hintergrundvideo, darueber Glas, das
 * selbst farblos ist. Die Farbe kommt aus der Szene (violette Nacht ueber
 * einer Blockwelt) und aus genau einem Akzent, dem Amethyst-Violett des Logos.
 *
 * Die Datei wird nur von der Spielerseite (index.html) und der
 * Datenschutzseite geladen und kommt nach style.css, leitung.css und
 * betrieb.css. Der Leitungsbereich bleibt, wie er ist.
 *
 * Aufgeraeumt nach "unslop" von Damir Sokolovsky (@heydamir, CC BY 4.0):
 * keine Leuchtschatten, keine Grossbuchstaben mit Sperrung, Gewichte 400-600,
 * Abstaende auf dem 4-px-Raster, ein Akzent. Das Glas ist der ausdrueckliche
 * Wunsch von Marcel und damit die Ausnahme von der Regel "kein Glas". */

:root {
  --bg: #08071a;
  --text: #f1effa;
  --text-2: rgba(236, 233, 250, .74);
  --muted: rgba(236, 233, 250, .62);
  --accent: #8b5cf6;
  --accent-bright: #b9a3ff;
  --accent-soft: rgba(167, 139, 250, .16);
  --yes: #4cc38a;
  --nein: #e5484d;

  /* Glas: weiss mit wenig Deckkraft, darunter ein Hauch Nacht, damit Text
     auch ueber den hellen Wolken lesbar bleibt. */
  --glas: rgba(255, 255, 255, .07);
  --glas-tief: transparent;
  --glas-stark: rgba(255, 255, 255, .11);
  --kante: rgba(255, 255, 255, .12);

  /* Was in den Bereichen als Flaeche und Linie benutzt wird, wird hier
     durchscheinend. So werden Eingabefelder, Tabellen und Listen ohne eigene
     Regel Teil des Glases. */
  --surface: rgba(255, 255, 255, .05);
  --surface-2: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .10);

  --radius: 12px;
  --radius-glas: 20px;
  --kurve: cubic-bezier(0.22, 1, 0.36, 1);
  --schrift: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable", "Segoe UI", Inter, Roboto, sans-serif;
}

html { background: var(--bg); }
html, body { overflow-x: clip; }
body, body.betrieb-seite {
  background: transparent;
  color: var(--text);
  font-family: var(--schrift);
  font-size: 15px;
  line-height: 1.55;
}

/* ------------------------------------------------------------ Hintergrund */

/* Fest stehend: die Szene bewegt sich nicht mit, das Glas gleitet darueber.
   Das Standbild ist zugleich Platzhalter, solange das Video laedt, und der
   Ersatz fuer alle, die keine Bewegung wollen. */
.hintergrund {
  position: fixed; inset: 0; z-index: -1;
  background: var(--bg) url("/hintergrund.webp") center / cover no-repeat;
}
.hintergrund video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
/* Abdunklung: oben laesst sie die Szene stehen, nach unten wird sie dicht,
   denn dort liegt der meiste Text. */
.hintergrund::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(8, 7, 26, .42) 0%, rgba(8, 7, 26, .58) 45%, rgba(8, 7, 26, .88) 100%);
}

/* ------------------------------------------------------------ Glas */

/* Liquid Glass in CSS: Unschaerfe und Saettigung dahinter, eine Lichtkante
   oben links und ein schwacher Gegenreflex unten rechts. Das ist die Fassung
   bis glas.js laeuft und fuer den Fall, dass es nicht laeuft. */
.glas,
.kopf,
.seitenleiste,
.buehne .card,
.buehne .stat,
.buehne .dienst,
.buehne .discord-anmeldung,
.buehne .done,
.buehne .vorschau-band,
.buehne .notice,
.legal {
  position: relative;
  background:
    radial-gradient(120% 140% at 20% -30%, rgba(255, 255, 255, .12), transparent 55%),
    linear-gradient(var(--glas), var(--glas)),
    var(--glas-tief);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 0;
  border-radius: var(--radius-glas);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .07),
    inset 2px 3px 8px -5px rgba(255, 255, 255, .40),
    inset -2px -3px 8px -6px rgba(255, 255, 255, .16),
    0 16px 40px rgba(0, 0, 0, .28);
}
.glas::after,
.kopf::after,
.seitenleiste::after,
.buehne .card::after,
.buehne .stat::after,
.buehne .dienst::after,
.buehne .discord-anmeldung::after,
.buehne .done::after,
.legal::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; padding: 1.2px;
  background: conic-gradient(from 300deg,
    rgba(255, 255, 255, .62), rgba(255, 255, 255, .08) 60deg, rgba(255, 255, 255, .04) 120deg,
    rgba(255, 255, 255, .24) 180deg, rgba(255, 255, 255, .04) 240deg, rgba(255, 255, 255, .08) 300deg,
    rgba(255, 255, 255, .62));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Sobald liquid-glass.js eine Flaeche uebernimmt, traegt sie die Klasse
   .lg-glass und ein eigenes Glas als unterste Ebene. Die Flaeche selbst wird
   dann durchsichtig, sonst laege die CSS-Fassung ueber der Brechung. */
:is(.kopf, .buehne .card, .buehne .stat, .buehne .dienst, .buehne .discord-anmeldung,
    .buehne .done, .buehne .vorschau-band, .buehne .notice, .legal, .whitelist-reiter .hero).lg-glass {
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
:is(.kopf, .buehne .card, .buehne .stat, .buehne .dienst, .buehne .discord-anmeldung,
    .buehne .done, .legal).lg-glass::after { display: none; }
/* Text direkt auf dem Glas: ein weicher Schatten haelt ihn lesbar,
   auch ueber hellen Wolken. */
:is(.buehne .card, .buehne .stat, .buehne .dienst, .buehne .notice, .legal, .whitelist-reiter .hero).lg-glass {
  text-shadow: 0 1px 12px rgba(8, 7, 26, .55);
}
/* Die Seitenleiste kann scrollen, und was in einem Scrollbereich liegt, liefe
   mit. Deshalb bekommt sie das Glas nur, wo sie sicher nicht scrollt (breit
   und hoch genug); sonst bleibt sie CSS-Glas. */
@media (min-width: 801px) and (min-height: 681px) {
  .seitenleiste.lg-glass {
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: var(--lg-shadow, 0 16px 40px -12px rgba(0, 0, 0, .5), 0 3px 10px -3px rgba(0, 0, 0, .28));
  }
  .seitenleiste.lg-glass::after { display: none; }
}
@media (max-width: 800px), (max-height: 680px) {
  .seitenleiste > lg-fx { display: none; }
}

/* ------------------------------------------------------------ Rahmen */

.rahmen { min-height: 100vh; padding: 16px 16px 0; gap: 16px; }

/* Der Kopf schwebt als Leiste oben, wie bei marichcel.de. */
.kopf {
  position: sticky; top: 16px; z-index: 20;
  min-height: 56px; padding: 8px 8px 8px 16px; gap: 12px;
  border-radius: 999px;
  background:
    radial-gradient(120% 140% at 20% -30%, rgba(255, 255, 255, .06), transparent 55%),
    rgba(11, 8, 28, .12);
  -webkit-backdrop-filter: blur(3px) saturate(150%);
  backdrop-filter: blur(3px) saturate(150%);
}
.kopf-logo { border-radius: 8px; margin: 0; width: 32px; height: 32px; }
.kopf-titel { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.kopf-titel span { color: var(--muted); font-weight: 400; }
.kopf-wer { color: var(--muted); font-size: 13px; }

.zurueck {
  border: 0; border-radius: 999px; padding: 6px 12px; font-size: 13px;
  background: var(--glas); color: var(--text-2);
  transition: background-color 160ms var(--kurve), color 160ms var(--kurve);
}
.zurueck:hover { background: var(--glas-stark); color: var(--text); border: 0; }

/* Der Serverstatus oben: ein kleiner Block statt eines Punktes. Das ist das
   eine Zeichen, das nur dieser Seite gehoert, und es steht ueberall dort,
   wo etwas lebt oder nicht. */
.ampel {
  gap: 8px; padding: 4px 12px; font-size: 13px; border: 0;
  background: var(--glas); color: var(--text-2);
}
.ampel::before { width: 8px; height: 8px; border-radius: 2px; }
.ampel-gruen { color: var(--text-2); }
.ampel-gruen::before { background: var(--yes); }
.ampel-rot { color: var(--text-2); }
.ampel-rot::before { background: var(--nein); }
.ampel-grau::before { background: var(--muted); }
.dienst-punkt { border-radius: 2px; }

.koerper { gap: 16px; align-items: flex-start; }

/* Die Bereiche links: eine Glastafel, die stehen bleibt. */
.seitenleiste {
  position: sticky;
  width: 248px; padding: 12px 8px; gap: 2px;
  top: 88px; height: auto; max-height: calc(100vh - 104px);
  border-right: 0;
}
.bereich {
  min-height: 36px; padding: 0 12px; gap: 10px;
  border-radius: 10px; font-size: 14px; color: var(--text-2);
  transition: background-color 160ms var(--kurve), color 160ms var(--kurve);
}
.bereich:hover { background: var(--glas); color: var(--text); }
.bereich.is-active {
  background: rgba(255, 255, 255, .10); color: var(--text); font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.bereich.is-active .zeichen { color: var(--accent-bright); opacity: 1; }
.zeichen {
  width: 18px; height: 18px; flex: none; display: grid; place-items: center;
  opacity: 1; color: var(--muted);
}
.zeichen svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

.buehne {
  padding: 24px 8px 64px; max-width: 1200px;
}
.buehne h1 {
  margin: 8px 0 4px; font-size: 32px; line-height: 1.15;
  font-weight: 600; letter-spacing: -.02em;
}
.buehne .section-lead { margin: 0 0 24px; color: var(--text-2); font-size: 16px; }
.buehne h2 { font-weight: 600; letter-spacing: -.015em; }
.buehne h3 { font-weight: 600; letter-spacing: -.005em; }

/* Karten und Kacheln: Glas mit festem Innenabstand. */
.buehne .card { padding: 20px 24px; margin-bottom: 16px; }
.buehne .card h3 { margin: 0 0 8px; font-size: 17px; }
.buehne .card p { color: var(--text-2); }
.buehne .stats { gap: 12px; margin-top: 16px; }
.buehne .stat { padding: 20px 24px; border-radius: 16px; }
.buehne .stat b {
  font-size: 32px; font-weight: 500; line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.buehne .stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }
.buehne .dienst { border-radius: 14px; padding: 12px 16px; }
.buehne .notice { border-radius: 14px; padding: 12px 16px; }
.buehne .discord-anmeldung, .buehne .done { padding: 20px 24px; margin-bottom: 24px; }
.buehne .vorschau-band { border-left: 0; border-radius: 14px; padding: 12px 16px; }
.buehne .vorschau-band strong { color: var(--text); }

/* Tabellen: Spaltenkoepfe in normaler Schreibung statt gesperrter Versalien. */
.buehne th {
  text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500;
  color: var(--muted);
}
.buehne th, .buehne td { border-bottom-color: var(--line); }

/* ------------------------------------------------------------ Knoepfe */

.btn {
  min-height: 40px; padding: 8px 18px; border-radius: 999px; gap: 8px;
  font-weight: 500; font-size: 14px;
  transition: background-color 160ms var(--kurve), border-color 160ms var(--kurve),
    color 160ms var(--kurve), transform 120ms var(--kurve);
}
.btn:active { transform: scale(.98); }
/* Hauptaktion: hell auf dunklem Glas, wie der Twitch-Knopf auf marichcel.de. */
.btn-primary { background: #f4f2fb; color: #120e26; border-color: transparent; }
.btn-primary:hover { background: #fff; }
.btn-ghost {
  background: var(--glas); color: var(--text);
  border-color: rgba(255, 255, 255, .10);
}
.btn-ghost:hover { background: var(--glas-stark); border-color: rgba(255, 255, 255, .16); }
.btn-discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn-klein { min-height: 28px; padding: 4px 10px; font-size: 13px; }
.kopf .kopf-anmelden {
  min-height: 40px; padding: 8px 20px;
  background: #f4f2fb; color: #120e26; border-color: transparent;
}
.kopf .kopf-anmelden:hover { background: #fff; }
.btn:focus-visible, .bereich:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent-bright); outline-offset: 2px;
}

/* ------------------------------------------------------------ Felder */

.buehne input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.buehne select,
.buehne textarea {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 10px; color: var(--text);
  transition: border-color 160ms var(--kurve), background-color 160ms var(--kurve);
}
.buehne input:focus-visible, .buehne select:focus-visible, .buehne textarea:focus-visible {
  outline: 2px solid var(--accent-bright); outline-offset: 1px;
  background: rgba(255, 255, 255, .09);
}
.buehne select option { background: #15122e; color: var(--text); }
.buehne input::placeholder, .buehne textarea::placeholder { color: rgba(236, 233, 250, .42); }

/* Was ueber allem liegt, braucht einen festen Grund. */
.results, dialog {
  background: rgba(21, 18, 46, .92);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .12);
}
dialog { border-radius: 20px; }
dialog::backdrop { background: rgba(4, 3, 14, .6); }

/* ------------------------------------------------------------ Whitelist */

/* Der fruehere Kopf der Startseite. Ohne Schleier, ohne Raster, ohne
   Leuchten: das Bild hinter allem traegt die Stimmung schon. */
.whitelist-reiter .hero {
  padding: 32px;
  background:
    radial-gradient(120% 140% at 20% -30%, rgba(255, 255, 255, .12), transparent 55%),
    linear-gradient(var(--glas), var(--glas)),
    var(--glas-tief);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 0; border-radius: 24px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .07),
    inset 2px 3px 8px -5px rgba(255, 255, 255, .40),
    0 16px 40px rgba(0, 0, 0, .28);
}
.whitelist-reiter .hero .wrap { width: auto; margin: 0; }
.whitelist-reiter .logo {
  width: 88px; height: 88px; border-radius: 20px; margin: 0 0 24px;
  border: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 12px 28px rgba(0, 0, 0, .4);
}
.kicker {
  margin: 0 0 8px; font-size: 14px; font-weight: 500;
  letter-spacing: 0; text-transform: none; color: var(--accent-bright);
}
.whitelist-reiter h1 {
  font-size: clamp(40px, 6vw, 64px); line-height: 1.04;
  font-weight: 600; letter-spacing: -.03em;
}
.whitelist-reiter h1 span { color: var(--accent-bright); text-shadow: none; margin-left: .18em; }
.whitelist-reiter .lead {
  max-width: 36rem; margin: 16px 0 0; font-size: 17px; line-height: 1.6;
  color: var(--text-2);
}
.whitelist-reiter .countdown { margin: 24px 0 0; font-size: 14px; color: var(--muted); }
.whitelist-reiter .section { padding: 48px 0 0; width: auto; }
.whitelist-reiter .section h2 { font-size: 24px; margin: 0 0 8px; }
.whitelist-reiter .section-lead { margin: 0 0 24px; }
.whitelist-reiter .cards { gap: 12px; }
.whitelist-reiter .card p { font-size: 14px; }
.apply { gap: 16px; }
.apply .row { gap: 16px; }
.apply label { gap: 6px; }
.apply label > span { font-size: 14px; font-weight: 500; }
.regeln-aufklapp { border: 1px solid var(--line); background: var(--glas); border-radius: 12px; padding: 12px 16px; margin: 0; }
.regeln-aufklapp summary:hover { color: var(--text); }
.whitelist-reiter .footer { border-top-color: var(--line); padding: 32px 0 16px; margin-top: 48px; }
.done h3 { font-weight: 600; }

/* ------------------------------------------------------------ Kleinteile */

.countdown-zahlen b { font-weight: 500; color: var(--text); }
.countdown-zahlen small { text-transform: none; letter-spacing: 0; font-size: 12px; }
.badge { text-transform: none; letter-spacing: 0; font-weight: 500; }
.vote-label { text-transform: none; letter-spacing: 0; }
.chronik-summen strong { font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.mod-reason { font-style: normal; }
.kachel { border-radius: 12px; }
.kachel:hover img, .kachel:hover video { transform: none; }
.karte, .gs-karte { border-radius: 16px; border-color: var(--line); }
.umfrage .balken i { background: var(--accent-bright); }
.kal-marke { background: var(--accent-bright); }

/* Die Statuskarte: die eine Stelle, an der die Seite lebt. */
.status-karte .status-zeile {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px;
}
.status-karte .status-zeile h3 { margin: 0; }
.status-block {
  width: 10px; height: 10px; border-radius: 2px; flex: none; background: var(--muted);
}
.status-karte.ist-online .status-block { background: var(--yes); }
.status-karte.ist-offline .status-block { background: var(--nein); }
.status-adresse {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px;
  color: var(--muted);
}

/* ------------------------------------------------------------ Warten */

.pruefe { min-height: 100vh; }
.pruefe h1 { font-weight: 600; }

/* ------------------------------------------------------------ Rechtstexte */

.legal { margin: 32px auto 64px; padding: 40px; }
.legal h1 { font-weight: 600; letter-spacing: -.02em; }
.legal h2 { color: var(--text); font-weight: 600; letter-spacing: 0; }
.legal a { color: var(--accent-bright); }
.legal-logo img { border: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }

/* ------------------------------------------------------------ Schmal */

@media (max-width: 800px) {
  .rahmen { padding: 12px 12px 0; gap: 12px; }
  /* align-items: flex-start machte die Leiste in der Spalte so breit wie
     alle Bereiche nebeneinander (1435 px). Die Seite wurde damit seitlich
     verschiebbar, und wer wischte, sah nur noch Hintergrund. */
  .koerper { align-items: stretch; }
  .seitenleiste { min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seitenleiste::-webkit-scrollbar { display: none; }
  /* relative statt static: die Glasebene richtet sich am Kopf aus, sonst waere
     sie so gross wie die ganze Seite. */
  .kopf { position: relative; top: auto; border-radius: 24px; flex-wrap: wrap; padding: 8px 8px 8px 12px; }
  .koerper { gap: 12px; }
  .seitenleiste {
    width: auto; max-height: none; position: static; padding: 6px;
    border-radius: 999px; border-bottom: 0;
  }
  .bereich { border-radius: 999px; padding: 0 14px; }
  .buehne { padding: 12px 0 48px; }
  .buehne h1 { font-size: 28px; }
  .buehne .card { padding: 16px 20px; }
  .whitelist-reiter .hero { padding: 24px 20px; }
  .whitelist-reiter h1 { font-size: 40px; }
  .legal { padding: 24px 20px; margin: 16px 12px 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .hintergrund video { display: none; }
  * { transition: none !important; animation: none !important; }
}

/* Schmale Handys: Logo, Status und Anmelden muessen in eine Zeile passen.
   Der Name steht dann nur noch im Logo selbst. */
@media (max-width: 440px) {
  .kopf { flex-wrap: nowrap; border-radius: 999px; }
  .kopf-titel { display: none; }
  .kopf .kopf-anmelden { min-height: 40px; padding: 8px 16px; }
}

/* Galerie: style.css hat eine gleichnamige .kachel fuer die kleinen
   Vorschauen in Dateilisten (3,4 rem fest). Die setzte sich hier durch - auf
   dem Handy standen winzige Kacheln mit einer breiten Luecke dazwischen und
   abgeschnittenen Namen. In der Galerie fuellt jede Kachel ihre Spalte. */
.galerie { gap: 8px; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
.galerie .kachel {
  width: auto; height: auto; aspect-ratio: 1; display: block;
  border: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .10);
}
.galerie .kachel-fuss { padding: 24px 10px 8px; font-size: 13px; }
@media (max-width: 440px) {
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
