/* =========================================================================
   3X0RC1SM Admin-Konsole
   Obsidian und Blut: tiefes Schwarz, dunkle Glasflächen mit Lichtkante,
   blutrotes Glühen, Chrom-Titel, feine Filmkörnung.
   Reines CSS plus static/effekte.js (Lichtkegel, hochzählende Zahlen) - die
   CSP erlaubt weder eingebettete Styles noch fremde Schriften oder
   data:-Bilder. Die Körnung kommt deshalb aus static/rauschen.svg.
   ========================================================================= */

@property --winkel {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --grund: #060407;
  --eingabe: rgba(0, 0, 0, .38);
  --flaeche: linear-gradient(180deg, rgba(31, 16, 22, .82), rgba(12, 7, 10, .8));
  --mulde: rgba(0, 0, 0, .3);
  --linie: rgba(255, 236, 228, .075);
  --linie-hell: rgba(255, 236, 228, .14);
  --linie-rot: rgba(255, 49, 72, .4);
  --text: #f5ede6;
  --gedaempft: #ab9d95;
  --leise: #7a6b64;
  --knochen: #e3cfae;
  --akzent: #e3122d;
  --akzent-hell: #ff3148;
  --akzent-dunkel: #8e0014;
  --gluehen: rgba(255, 28, 52, .55);
  --gluehen-weich: rgba(255, 28, 52, .2);
  --gruen: #4fd18b;
  --gelb: #f5b841;
  --orange: #ff7a2f;
  --rot: #ff3347;
  --grau: #8d8280;
  --rund: 14px;
  --rund-gross: 20px;
  --leiste: 256px;
  --schatten: inset 0 1px 0 rgba(255, 255, 255, .045), 0 26px 50px -26px rgba(0, 0, 0, .95), 0 2px 8px rgba(0, 0, 0, .35);
  --kopf-schrift: Impact, Haettenschweiler, "Franklin Gothic Heavy", "Arial Black", sans-serif;
  --anzeige-schrift: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, sans-serif;
  --text-schrift: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--grund); scrollbar-color: #4a1219 transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background-color: rgba(255, 49, 72, .26); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 49, 72, .5); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 15px/1.6 var(--text-schrift);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse 80% 50% at 72% -14%, rgba(190, 0, 28, .36), transparent 70%),
    radial-gradient(ellipse 55% 45% at -5% 105%, rgba(120, 0, 18, .3), transparent 70%),
    var(--grund);
  background-attachment: fixed;
  overflow-x: hidden;
}
/* Filmkörnung - nimmt dem Schwarz das Digitale. Liegt hinter dem Inhalt: eine Ebene
   über allem müsste der Browser bei jedem Scrollen mit der ganzen Seite verrechnen. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("/static/rauschen.svg");
  opacity: .07;
}

::selection { background: rgba(227, 18, 45, .55); color: #fff; }
:focus-visible { outline: 2px solid var(--akzent-hell); outline-offset: 2px; border-radius: 6px; }

a { color: #ff6272; text-decoration: none; transition: color .15s; }
a:hover { color: #ff9aa4; }
.tabelle td a, .personen a, .verwarnung-kopf a, .angaben a { color: var(--text); }
.tabelle td a:hover, .personen a:hover, .verwarnung-kopf a:hover, .angaben a:hover { color: #ff7582; }

h1 { font-size: 2.75rem; margin: 0; line-height: 1.02; }
h2 {
  display: flex;
  align-items: center;
  gap: .7rem;
  font: 650 1.06rem/1.3 var(--anzeige-schrift);
  letter-spacing: .005em;
  color: var(--text);
  margin: 0 0 1.15rem;
}
h2 .icon {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 9px;
  color: var(--akzent-hell);
  background: linear-gradient(180deg, rgba(255, 49, 72, .22), rgba(255, 49, 72, .07));
  box-shadow: inset 0 0 0 1px rgba(255, 49, 72, .28), 0 0 18px -4px var(--gluehen);
}
h3 { font: 650 1rem/1.35 var(--anzeige-schrift); margin: 0 0 .6rem; color: var(--text); }
code { font: .86em var(--mono); background: rgba(0, 0, 0, .5); color: #ffb3ba; padding: .12em .45em; border-radius: 6px; border: 1px solid var(--linie); }

.gedaempft { color: var(--gedaempft); }
.klein { font-size: .82rem; }
.block { display: block; }
.leer { color: var(--leise); }
.rechts { margin-left: auto; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.symbolsatz { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ------------------------------------------------ Chrom-Schrift und Glitch */

h1, .titel-gross, .marke-name, .kachel-zahl, .kennzahl-wert, .profil-zahlen dd {
  font-family: var(--kopf-schrift);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .035em;
  background: linear-gradient(180deg, #ffffff 0%, #f1f2f4 30%, #9aa0aa 49%, #fbfbfc 56%, #c3c7ce 76%, #7b8089 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 1px rgba(255, 42, 64, .9)) drop-shadow(0 0 12px rgba(255, 20, 45, .38));
}

/* Kurze Störungen alle paar Sekunden - zwei versetzte Kopien, zerschnitten */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}
.glitch::before { color: #ff1f3d; animation: glitch-a 8s infinite steps(1); }
.glitch::after { color: #fff; animation: glitch-b 8s infinite steps(1); }

@keyframes glitch-a {
  0%, 91%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 100% 0); }
  92% { opacity: .95; transform: translate(-4px, 1px); clip-path: inset(8% 0 58% 0); }
  93.5% { opacity: .95; transform: translate(4px, -1px); clip-path: inset(62% 0 10% 0); }
  95% { opacity: .95; transform: translate(-2px, 0); clip-path: inset(34% 0 42% 0); }
  96% { opacity: 0; }
}
@keyframes glitch-b {
  0%, 92%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 100% 0); }
  92.8% { opacity: .7; transform: translate(3px, 0); clip-path: inset(48% 0 30% 0); }
  94.2% { opacity: .7; transform: translate(-3px, 1px); clip-path: inset(15% 0 70% 0); }
  95.5% { opacity: 0; }
}

/* ------------------------------------------------ Nebel, Glut, Raster */

.glut, .rauch, .raster { position: fixed; pointer-events: none; z-index: 0; }

/* Aufsteigende Funken in zwei Schichten. Jede Kachel wandert genau eine
   Kachelhöhe nach oben - so springt die Schleife nicht. */
.glut {
  left: 0;
  right: 0;
  top: 0;
  height: calc(100vh + 600px);
  background:
    radial-gradient(circle at 89% 65%, rgba(255, 70, 40, .55) 0 .7px, transparent 1.5px),
    radial-gradient(circle at 19% 91%, rgba(255, 45, 55, .7) 0 .9px, transparent 2px),
    radial-gradient(circle at 71% 22%, rgba(255, 200, 120, .95) 0 1.6px, transparent 3.5px),
    radial-gradient(circle at 58% 12%, rgba(255, 170, 80, .7) 0 1.6px, transparent 3.5px),
    radial-gradient(circle at 43% 53%, rgba(255, 170, 80, .55) 0 .7px, transparent 1.5px),
    radial-gradient(circle at 29% 57%, rgba(255, 70, 40, .85) 0 1.1px, transparent 2.4px),
    radial-gradient(circle at 54% 47%, rgba(255, 95, 45, .55) 0 1.1px, transparent 2.4px),
    radial-gradient(circle at 68% 11%, rgba(255, 170, 80, .95) 0 .9px, transparent 2px),
    radial-gradient(circle at 74% 2%, rgba(255, 45, 55, .7) 0 1.1px, transparent 2.4px),
    radial-gradient(circle at 87% 87%, rgba(255, 70, 40, .85) 0 .9px, transparent 2px),
    radial-gradient(circle at 94% 12%, rgba(255, 70, 40, .55) 0 .9px, transparent 2px),
    radial-gradient(circle at 65% 79%, rgba(255, 95, 45, .55) 0 1.6px, transparent 3.5px),
    radial-gradient(circle at 70% 30%, rgba(255, 70, 40, .85) 0 1.1px, transparent 2.4px),
    radial-gradient(circle at 42% 50%, rgba(255, 70, 40, .55) 0 .7px, transparent 1.5px),
    radial-gradient(circle at 24% 20%, rgba(255, 140, 60, .95) 0 1.3px, transparent 2.9px),
    radial-gradient(circle at 44% 11%, rgba(255, 140, 60, .7) 0 1.6px, transparent 3.5px);
  background-size: 600px 600px;
  opacity: .5;
  animation: funken-a 60s linear infinite, flackern 4s ease-in-out infinite alternate;
  will-change: transform;
}
.glut::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(100% + 450px);
  background:
    radial-gradient(circle at 35% 4%, rgba(255, 170, 80, .85) 0 1.6px, transparent 3.5px),
    radial-gradient(circle at 77% 27%, rgba(255, 70, 40, .85) 0 .9px, transparent 2px),
    radial-gradient(circle at 81% 58%, rgba(255, 140, 60, .7) 0 1.1px, transparent 2.4px),
    radial-gradient(circle at 47% 78%, rgba(255, 200, 120, .95) 0 .7px, transparent 1.5px),
    radial-gradient(circle at 2% 77%, rgba(255, 95, 45, .95) 0 .7px, transparent 1.5px),
    radial-gradient(circle at 23% 6%, rgba(255, 200, 120, .55) 0 1.3px, transparent 2.9px),
    radial-gradient(circle at 31% 41%, rgba(255, 45, 55, .85) 0 .7px, transparent 1.5px),
    radial-gradient(circle at 83% 13%, rgba(255, 45, 55, .95) 0 .9px, transparent 2px),
    radial-gradient(circle at 14% 81%, rgba(255, 170, 80, .55) 0 1.1px, transparent 2.4px),
    radial-gradient(circle at 18% 85%, rgba(255, 140, 60, .7) 0 1.6px, transparent 3.5px),
    radial-gradient(circle at 96% 96%, rgba(255, 95, 45, .55) 0 .7px, transparent 1.5px),
    radial-gradient(circle at 22% 31%, rgba(255, 170, 80, .95) 0 1.3px, transparent 2.9px);
  background-size: 450px 450px;
  background-position: 130px 70px;
  animation: funken-b 34s linear infinite;
  will-change: transform;
}
@keyframes funken-a { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -600px, 0); } }
@keyframes funken-b { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -450px, 0); } }
@keyframes flackern { from { opacity: .3; } to { opacity: .55; } }

/* Nebel: große, langsam treibende Farbwolken in Blutrot, Purpur und Glut */
.rauch {
  inset: -12%;
  background:
    radial-gradient(30% 26% at 24% 24%, rgba(210, 12, 42, .2), transparent 70%),
    radial-gradient(26% 30% at 80% 20%, rgba(150, 16, 84, .13), transparent 70%),
    radial-gradient(34% 28% at 66% 86%, rgba(255, 86, 30, .09), transparent 70%),
    radial-gradient(28% 24% at 10% 90%, rgba(150, 0, 24, .16), transparent 70%),
    radial-gradient(22% 20% at 50% 55%, rgba(120, 0, 20, .08), transparent 70%);
  animation: nebel 40s ease-in-out infinite alternate;
  will-change: transform;
}
/* Nur verschieben, nicht drehen oder skalieren - das erledigt die Grafikkarte allein */
@keyframes nebel {
  from { transform: translate3d(-5%, 3%, 0); }
  to { transform: translate3d(5%, -3%, 0); }
}

/* Hauch von Scanlines - nur noch zu ahnen */
.raster {
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px);
  opacity: .16;
}

/* ------------------------------------------------- Seitenwechsel */

@view-transition { navigation: auto; }
.seitenleiste { view-transition-name: seitenleiste; }
::view-transition-old(root) { animation: .1s ease-out both verblassen; }
::view-transition-new(root) { animation: .14s ease-in both einblenden; }
@keyframes verblassen { to { opacity: 0; } }
@keyframes einblenden { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ------------------------------------------------------------------- Layout */

.app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: calc(var(--leiste) + .9rem) minmax(0, 1fr);
  min-height: 100vh;
}

.inhalt { position: relative; z-index: 1; padding: 2.3rem 2.6rem 4.5rem 1.8rem; max-width: 1340px; width: 100%; }
/* Kurz halten: der Inhalt soll sofort lesbar sein, nicht erst nach einer Sekunde Einblenden */
.inhalt > * { animation: auftauchen .3s cubic-bezier(.2, .7, .2, 1) both; }
.inhalt > *:nth-child(2) { animation-delay: .02s; }
.inhalt > *:nth-child(3) { animation-delay: .04s; }
.inhalt > *:nth-child(n+4) { animation-delay: .06s; }
@keyframes auftauchen { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.inhalt > section, .inhalt > h2, .inhalt > .spalten, .inhalt > .kacheln { margin-top: 1.8rem; }
.inhalt.ohne-leiste { max-width: none; min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; }

/* ------------------------------------------------------------ Seitenleiste */

.seitenleiste {
  position: sticky;
  top: .9rem;
  height: calc(100vh - 1.8rem);
  margin: .9rem 0 .9rem .9rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.1rem .8rem .8rem;
  border-radius: var(--rund-gross);
  border: 1px solid var(--linie);
  background:
    radial-gradient(120% 40% at 50% 0%, rgba(200, 10, 36, .16), transparent 70%),
    linear-gradient(180deg, rgba(24, 11, 16, .94), rgba(9, 5, 7, .95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 30px 60px -30px rgba(0, 0, 0, .95), 0 0 50px -18px rgba(170, 0, 26, .5);
  z-index: 20;
}
.seitenleiste::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 70, 90, .85), transparent);
}
/* Glühende Kante, die langsam die Leiste entlangläuft */
.seitenleiste::after {
  content: "";
  position: absolute;
  top: 8%;
  right: -1px;
  width: 1px;
  height: 22%;
  background: linear-gradient(transparent, #ff3148, transparent);
  box-shadow: 0 0 12px #ff3148;
  animation: kante 7s ease-in-out infinite;
}
@keyframes kante { 0% { transform: translateY(-20%); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(300%); opacity: 0; } }

.marke { display: flex; align-items: center; gap: .8rem; padding: .1rem .35rem 1rem; border-bottom: 1px solid var(--linie); }
.marke-ring {
  position: relative;
  width: 50px;
  height: 50px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
/* Ringe drehen per transform - die Grafikkarte dreht das fertige Bild, statt dass der
   Browser den Verlauf bei jedem Bild neu malen muss */
.marke-ring::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(transparent 0 55%, #ff2a40 72%, #ffb36b 78%, #ff2a40 84%, transparent 100%);
  animation: drehen 4s linear infinite;
}
.marke-ring img, .marke-ring .icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #000;
  box-shadow: 0 0 18px var(--gluehen);
}
.marke-text { display: flex; flex-direction: column; min-width: 0; }
.marke-name { font-size: 1.3rem; line-height: 1.1; white-space: nowrap; }
.marke-unter { font: 600 .62rem var(--text-schrift); letter-spacing: .26em; text-transform: uppercase; color: var(--gedaempft); margin-top: .15rem; }

@keyframes kreisen { to { --winkel: 360deg; } }

.navi { display: flex; flex-direction: column; gap: .12rem; flex: 1; overflow-y: auto; margin: 0 -.8rem; padding: 0 .8rem; scrollbar-width: thin; }
.navi-gruppe {
  font: 650 .6rem var(--text-schrift);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--leise);
  padding: 1rem .8rem .4rem;
}
.navi-gruppe:first-child { padding-top: .1rem; }
.navi-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem .8rem;
  border-radius: 11px;
  color: var(--gedaempft);
  font-weight: 560;
  font-size: .92rem;
  transition: color .15s, background .15s;
}
.navi-link .icon { width: 19px; height: 19px; transition: color .15s, filter .15s, transform .25s cubic-bezier(.3, 1.5, .5, 1); }
.navi-link:hover { color: var(--text); background: rgba(255, 255, 255, .045); }
.navi-link:hover .icon { color: var(--akzent-hell); transform: scale(1.12); }
.navi-link[aria-current="page"] {
  color: #fff;
  background: linear-gradient(90deg, rgba(227, 18, 45, .32), rgba(227, 18, 45, .08) 75%, rgba(227, 18, 45, .02));
  box-shadow: inset 0 0 0 1px rgba(255, 49, 72, .24), 0 10px 24px -14px rgba(255, 28, 52, .9);
}
.navi-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24%;
  bottom: 24%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--akzent-hell);
  box-shadow: 0 0 10px var(--akzent-hell), 0 0 22px var(--gluehen);
}
.navi-link[aria-current="page"] .icon { color: var(--akzent-hell); filter: drop-shadow(0 0 6px var(--gluehen)); }
.navi-zahl {
  margin-left: auto;
  min-width: 1.35rem;
  padding: 0 .4rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff3a50, #b5001b);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.35rem;
  text-align: center;
  box-shadow: 0 0 14px var(--gluehen), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.ich {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .6rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, .38);
  border: 1px solid var(--linie);
}
.ich img { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 49, 72, .35); }
.ich-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.ich-name { font-weight: 650; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ich-rolle { display: flex; align-items: center; gap: .4rem; font-size: .7rem; color: var(--gruen); letter-spacing: .03em; }
.ich form { margin: 0; }

.puls {
  position: relative;
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
/* Ein Ring, der wächst und verblasst - nur transform und opacity, kein Neumalen */
.puls::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  animation: puls 1.8s ease-out infinite;
}
@keyframes puls { from { transform: scale(1); opacity: .6; } 75%, to { transform: scale(2.8); opacity: 0; } }

.knopf-symbol {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--linie-hell);
  background: rgba(255, 255, 255, .03);
  color: var(--gedaempft);
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s, box-shadow .15s;
}
.knopf-symbol .icon { width: 17px; height: 17px; }
.knopf-symbol:hover { color: var(--akzent-hell); border-color: var(--linie-rot); background: rgba(255, 49, 72, .08); box-shadow: 0 0 14px var(--gluehen-weich); }

/* --------------------------------------------------------------- Seitenkopf */

.seitenkopf { position: relative; display: flex; align-items: center; gap: 1.35rem; padding: .3rem 0 1.7rem; margin-bottom: .3rem; }
.seitenkopf::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 49, 72, .75), rgba(255, 49, 72, .14) 45%, transparent 85%);
}
.seitenkopf-medaillon {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 19px;
  background: linear-gradient(145deg, #ff4258 0%, #c3001d 48%, #5c000c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .38),
    inset 0 -10px 18px rgba(0, 0, 0, .35),
    0 0 0 1px rgba(255, 80, 100, .35),
    0 14px 30px -10px rgba(255, 20, 45, .8),
    0 0 60px -12px rgba(255, 20, 45, .7);
}
.seitenkopf-medaillon::after {
  content: "";
  position: absolute;
  inset: 1px 1px 52%;
  border-radius: 18px 18px 50% 50% / 18px 18px 14px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .24), transparent);
  pointer-events: none;
}
.seitenkopf-medaillon .icon { width: 30px; height: 30px; color: #fff; stroke-width: 1.9; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55)); }
.seitenkopf-block { position: relative; z-index: 1; min-width: 0; flex: 1; }
.seitenkopf-ober {
  color: var(--akzent-hell);
  font: 650 .7rem/1 var(--text-schrift);
  letter-spacing: .24em;
  text-transform: uppercase;
  margin-bottom: .45rem;
}
.seitenkopf-text { color: var(--gedaempft); margin: .55rem 0 0; max-width: 64ch; }
.seitenkopf-wasserzeichen {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  width: 150px;
  height: 150px;
  translate: 0 -50%;
  rotate: -12deg;
  color: var(--akzent-hell);
  stroke-width: .8;
  opacity: .09;
  filter: drop-shadow(0 0 12px var(--akzent));
  -webkit-mask: linear-gradient(200deg, #000 30%, transparent 85%);
  mask: linear-gradient(200deg, #000 30%, transparent 85%);
  pointer-events: none;
}
.brotkrumen { font-size: .8rem; color: var(--gedaempft); margin: 0 0 1rem; }
.brotkrumen a { color: var(--gedaempft); }
.brotkrumen a:hover { color: var(--text); }

/* -------------------------------------------------------------------- Karten */

.karte {
  --mx: -999px;
  --my: -999px;
  position: relative;
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 49, 72, .075), transparent 60%),
    var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--rund-gross);
  padding: 1.3rem 1.4rem;
  min-width: 0;
  box-shadow: var(--schatten);
  transition: border-color .25s, box-shadow .25s;
}
/* Lichtkante oben */
.karte::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 70, 90, .7), transparent);
}
.karte:hover { border-color: rgba(255, 236, 228, .12); }

/* Wandernder Leucht-Rahmen */
.leuchtrahmen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--winkel), transparent 0 62%, rgba(255, 42, 64, .9) 76%, #ffb36b 80%, rgba(255, 42, 64, .9) 84%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: kreisen 8s linear infinite paused;
  pointer-events: none;
}
/* Der wandernde Rahmen muss bei jedem Bild neu gemalt werden - deshalb läuft er nur
   unter dem Mauszeiger, sonst steht das Glühen still */
.leuchtrahmen:hover::after { animation-play-state: running; }

.spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.2rem; }
.spalten.zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 980px) { .spalten.zwei { grid-template-columns: minmax(0, 1fr); } }
.spalten.oben { align-items: start; }

.abschnitt-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.abschnitt-kopf h2 { margin-bottom: 1.1rem; }
.pfeil-link { display: inline-flex; align-items: center; gap: .3rem; font: 650 .82rem var(--text-schrift); letter-spacing: .01em; color: #ff6a79; }
.pfeil-link:hover { color: #fff; }
.abstand { margin-top: 1.5rem; }

.leer-zustand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--gedaempft);
  padding: .85rem 1rem;
  margin: 0;
  border: 1px dashed var(--linie-hell);
  border-radius: var(--rund);
  background: var(--mulde);
}
.leer-zustand .icon { width: 32px; height: 32px; padding: 7px; border-radius: 50%; color: var(--akzent-hell); background: rgba(255, 49, 72, .1); }

/* ------------------------------------------------------------------- Knöpfe */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 96, 112, .65);
  border-radius: 11px;
  padding: .6rem 1.2rem;
  background: linear-gradient(180deg, #ff3a50 0%, #d3001f 52%, #9a0017 100%);
  color: #fff;
  font: 650 .88rem/1.2 var(--text-schrift);
  letter-spacing: .01em;
  cursor: pointer;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -2px 0 rgba(0, 0, 0, .18), 0 8px 22px -8px rgba(255, 20, 45, .8);
  transition: box-shadow .2s, filter .2s, transform .1s, background-color .2s, border-color .2s;
}
/* Lichtstreifen, der beim Drüberfahren durch den Knopf zieht */
.knopf::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .32), transparent);
  transform: skewX(-20deg);
  transition: left .55s;
  pointer-events: none;
}
.knopf:hover::after { left: 130%; }
.knopf:hover { color: #fff; filter: brightness(1.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .18), 0 12px 30px -8px rgba(255, 20, 45, .95), 0 0 0 3px rgba(255, 49, 72, .16); }
.knopf:active { transform: translateY(1px) scale(.985); }
.knopf .icon { width: 16px; height: 16px; }

.knopf.leise { background: rgba(255, 255, 255, .04); border-color: var(--linie-hell); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); font-weight: 600; padding: .48rem .95rem; text-shadow: none; }
.knopf.leise:hover { background: rgba(255, 49, 72, .1); border-color: var(--linie-rot); box-shadow: 0 0 0 3px rgba(255, 49, 72, .1); filter: none; }
.knopf.warnung { background: linear-gradient(180deg, #ffcb66, #e8900f 55%, #a85a00); border-color: #ffd27a; color: #1a0e02; text-shadow: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 22px -8px rgba(255, 150, 30, .7); }
.knopf.warnung:hover { color: #1a0e02; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 12px 30px -8px rgba(255, 150, 30, .9), 0 0 0 3px rgba(255, 170, 60, .16); }
.knopf.gefahr { background: linear-gradient(180deg, #d9001f, #6a000e); border-color: #ff4a5e; }
.knopf.mini { white-space: nowrap; padding: .2rem .65rem; font-size: .74rem; font-weight: 600; border-radius: 8px; background: rgba(255, 255, 255, .04); border-color: var(--linie-hell); color: var(--gedaempft); box-shadow: none; text-shadow: none; }
.knopf.mini:hover { color: var(--text); border-color: var(--linie-rot); background: rgba(255, 49, 72, .1); box-shadow: none; filter: none; }
.knopf.mini .icon { width: 13px; height: 13px; }

.knopf.discord { font-size: 1.02rem; padding: .95rem 2.3rem; margin: 1.5rem 0 1.2rem; border-radius: 14px; animation: pulsieren 2.8s ease-in-out infinite; }
@keyframes pulsieren {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 26px -8px rgba(255, 20, 45, .7); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 44px -4px rgba(255, 20, 45, 1); }
}

/* ----------------------------------------------------------------- Anmelden */

.anmelden { max-width: 540px; text-align: center; }
.emblem-buehne { position: relative; width: min(340px, 82vw); aspect-ratio: 1; margin: 0 auto 1.2rem; display: grid; place-items: center; }
.emblem-buehne::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, rgba(255, 20, 45, .25), transparent 60%);
  pointer-events: none;
}
.runen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: drehen 60s linear infinite;
}
.runen text { font: 400 15px var(--kopf-schrift); letter-spacing: 3px; fill: #ff3148; filter: drop-shadow(0 0 4px rgba(255, 20, 45, .9)); opacity: .85; }
@keyframes drehen { to { transform: rotate(360deg); } }

.emblem-ring {
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  background: conic-gradient(transparent 0 50%, #ff2a40 70%, #ffb36b 76%, #ff2a40 82%, transparent 100%);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%);
  mask: radial-gradient(circle, transparent 62%, #000 63%);
  filter: drop-shadow(0 0 10px #ff2a40);
  animation: drehen 3.5s linear infinite;
}
.emblem {
  position: relative;
  width: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  animation: atmen 5s ease-in-out infinite;
}
.emblem img { width: 100%; height: 100%; display: block; }
@keyframes atmen {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255, 40, 60, .55), 0 0 35px rgba(255, 20, 45, .45), 0 0 110px rgba(255, 20, 45, .18); }
  50% { box-shadow: 0 0 0 2px rgba(255, 60, 75, .9), 0 0 65px rgba(255, 20, 45, .75), 0 0 180px rgba(255, 20, 45, .34); }
}

.titel-gross { font-size: clamp(2.8rem, 11vw, 4.6rem); margin: 0; }
.unterzeile { color: var(--knochen); text-transform: uppercase; letter-spacing: .32em; font-size: .74rem; font-weight: 600; margin: .6rem 0 0; }
.hinweis { background: rgba(10, 6, 8, .9); border: 1px solid var(--linie-hell); border-radius: 12px; padding: .65rem; margin-top: 1.2rem; }

.fehler-symbol { color: var(--akzent-hell); filter: drop-shadow(0 0 14px var(--gluehen)); margin-bottom: .6rem; }
.fehler-symbol .icon { width: 84px; height: 84px; stroke-width: 1.2; animation: atmen-symbol 3s ease-in-out infinite; }
@keyframes atmen-symbol { 50% { transform: scale(1.06); filter: drop-shadow(0 0 20px #ff2a40); } }
.fehlerseite .knopf { margin-top: 1rem; }
.app .anmelden { margin: 10vh auto 0; }

/* ------------------------------------------------------ Übersicht: Kennzahlen */

.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .4rem; padding: .85rem; }
.kennzahl {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: .85rem;
  align-items: center;
  padding: .55rem .7rem;
  border-radius: var(--rund);
  transition: background .2s;
}
.kennzahl:hover { background: rgba(255, 255, 255, .03); }
.kennzahl .icon {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 13px;
  color: var(--akzent-hell);
  background: linear-gradient(180deg, rgba(255, 49, 72, .2), rgba(255, 49, 72, .06));
  box-shadow: inset 0 0 0 1px rgba(255, 49, 72, .26), 0 0 22px -6px var(--gluehen);
}
.kennzahl-wert { font-size: 1.9rem; line-height: 1; }
.kennzahl-name { font: 600 .66rem var(--text-schrift); letter-spacing: .13em; text-transform: uppercase; color: var(--gedaempft); margin-top: .25rem; }

/* -------------------------------------------------------- Übersicht: Bot-Status */

.bot-status { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .9rem 1.2rem; align-items: start; padding: 1rem 1.3rem; }
.status-teil { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; min-width: 0; }
.status-kopf { display: flex; align-items: center; gap: .35rem; font: 600 .66rem var(--text-schrift); letter-spacing: .13em; text-transform: uppercase; color: var(--gedaempft); }
.status-kopf .icon { width: 13px; height: 13px; color: var(--akzent-hell); }
.status-wert { display: inline-flex; align-items: center; gap: .5rem; font: 700 1.25rem/1.2 var(--anzeige-schrift); }
.status-wert.gruen { color: var(--gruen); text-shadow: 0 0 14px rgba(79, 209, 139, .35); }
.status-neben { font-size: .8rem; font-weight: 600; color: var(--orange); }
.status-fuss { font-size: .74rem; color: var(--leise); overflow-wrap: anywhere; }
.status-link { grid-column: 1 / -1; justify-self: end; }

/* ----------------------------------------------------------------- Kacheln */

.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 1.1rem; }
.kachel {
  --farbe: var(--rot);
  --mx: -999px;
  --my: -999px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.1rem 1.2rem .85rem;
  border-radius: var(--rund-gross);
  border: 1px solid var(--linie);
  background:
    radial-gradient(360px circle at var(--mx) var(--my), color-mix(in srgb, var(--farbe) 11%, transparent), transparent 60%),
    var(--flaeche);
  color: var(--text);
  overflow: hidden;
  box-shadow: var(--schatten);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), border-color .25s, box-shadow .25s;
}
.kachel.gelb { --farbe: var(--gelb); }
.kachel.orange { --farbe: var(--orange); }
.kachel.rot { --farbe: var(--rot); }
.kachel::before {
  content: "";
  position: absolute;
  inset: auto -20% -75% 30%;
  height: 120%;
  background: radial-gradient(circle, color-mix(in srgb, var(--farbe) 20%, transparent), transparent 65%);
  pointer-events: none;
}
.kachel::after {
  content: "";
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  top: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--farbe), transparent);
  opacity: .75;
}
.kachel:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--farbe) 45%, transparent); box-shadow: var(--schatten), 0 0 44px -12px color-mix(in srgb, var(--farbe) 55%, transparent); color: var(--text); }
.kachel-kopf { display: flex; align-items: center; gap: .6rem; position: relative; }
.kachel-kopf .icon {
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 10px;
  color: var(--farbe);
  background: color-mix(in srgb, var(--farbe) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--farbe) 34%, transparent);
}
.kachel-name { color: var(--text); font: 650 .76rem var(--text-schrift); letter-spacing: .08em; text-transform: uppercase; }
.kachel-zahl { position: relative; font-size: 3rem; line-height: 1; align-self: flex-start; margin-top: .25rem; }
.kachel-fuss { position: relative; display: flex; justify-content: space-between; font: .64rem var(--mono); color: var(--leise); letter-spacing: .04em; }

.spark { position: relative; display: block; width: 100%; height: 44px; margin-top: .35rem; overflow: visible; }
.spark-basis { stroke: var(--linie-hell); stroke-width: 1; vector-effect: non-scaling-stroke; }
.spark-treffer { fill: transparent; }
.spark-balken { fill: var(--farbe); opacity: .75; transition: opacity .12s; }
.spark-tag.heute .spark-balken { opacity: 1; filter: drop-shadow(0 0 3px var(--farbe)); }
.spark-tag:hover .spark-balken { opacity: 1; }
.spark-tag:hover .spark-treffer { fill: rgba(255, 255, 255, .05); }

/* ------------------------------------------------------------------ Listen */

.personen { list-style: none; margin: 0; padding: 0; }
.personen li { display: flex; align-items: center; gap: .7rem; padding: .5rem .45rem; border-top: 1px solid var(--linie); flex-wrap: wrap; border-radius: 10px; transition: background .15s; }
.personen li:first-child { border-top: 0; }
.personen li:hover { background: rgba(255, 255, 255, .035); }
.personen img { width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 0 0 1px var(--linie-hell); }
.personen .zahl-rund { margin-left: auto; }
.rang { font: 700 .75rem var(--mono); color: var(--akzent-hell); width: 1.2rem; text-align: center; }

.zahl-rund {
  display: inline-block;
  min-width: 1.6rem;
  padding: 0 .45rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff3a50, #a30019);
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.6rem;
  box-shadow: 0 0 12px var(--gluehen-weich), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.person { display: flex; align-items: center; gap: .65rem; color: var(--text); }
.person:hover { color: #fff; }
.person img { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 1px var(--linie-hell); transition: box-shadow .15s; }
.person:hover img { box-shadow: 0 0 0 2px var(--akzent), 0 0 12px var(--gluehen); }

.person-zelle { display: inline-flex; align-items: center; gap: .55rem; min-width: 0; font-weight: 550; }
.person-zelle img { width: 26px; height: 26px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px var(--linie-hell); transition: box-shadow .15s; }
.person-zelle:hover img { box-shadow: 0 0 0 2px var(--akzent-hell), 0 0 10px var(--gluehen); }

/* --------------------------------------------------------------- Etiketten */

.etikett {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  padding: .14rem .6rem .14rem .5rem;
  border-radius: 999px;
  font: 650 .72rem/1.4 var(--text-schrift);
  letter-spacing: .01em;
  white-space: nowrap;
  border: 1px solid color-mix(in srgb, currentColor 36%, transparent);
  background: color-mix(in srgb, currentColor 12%, transparent);
}
.etikett .icon { width: 12px; height: 12px; stroke-width: 2.2; }
.etikett.gelb { color: var(--gelb); }
.etikett.orange { color: var(--orange); }
.etikett.rot { color: var(--rot); }
.etikett.gruen { color: var(--gruen); }
.etikett.grau { color: var(--grau); }

.live {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .14rem .65rem;
  border-radius: 999px;
  color: #ff5d6d;
  background: rgba(227, 18, 45, .14);
  border: 1px solid rgba(255, 49, 72, .45);
  font: 700 .68rem var(--text-schrift);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.live .puls { width: 7px; height: 7px; }

.chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .55rem; align-items: center; }

/* ----------------------------------------------------------------- Tabelle */

.tabelle-rahmen {
  overflow-x: auto;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--rund-gross);
  box-shadow: var(--schatten);
}
.karte .tabelle-rahmen { border: 0; background: transparent; box-shadow: none; border-radius: 0; }
.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th, .tabelle td { padding: .78rem 1rem; text-align: left; vertical-align: middle; border-top: 1px solid var(--linie); }
.tabelle thead th {
  border-top: 0;
  border-bottom: 1px solid var(--linie-hell);
  color: var(--gedaempft);
  font: 650 .66rem var(--text-schrift);
  text-transform: uppercase;
  letter-spacing: .13em;
  white-space: nowrap;
  background: rgba(255, 255, 255, .02);
}
.tabelle tbody tr { transition: background .15s; }
.tabelle tbody tr:hover { background: linear-gradient(90deg, rgba(255, 49, 72, .11), rgba(255, 49, 72, .015) 65%); }
.tabelle tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--akzent-hell); }
.tabelle.kompakt th, .tabelle.kompakt td { padding: .45rem .6rem; }
.tabelle .zeit { white-space: nowrap; font: .8rem var(--mono); font-variant-numeric: tabular-nums; color: var(--text); }
.zeit-quelle { display: block; font: .7rem var(--text-schrift); color: var(--leise); margin-top: .1rem; }
.tabelle .details { min-width: 13rem; }
.tabelle .details > span { display: block; }
.grund { overflow-wrap: anywhere; }

.blaettern { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; gap: 1rem; }

/* ---------------------------------------------------------- Filter/Formulare */

.filter {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  align-items: flex-end;
  margin: 1.4rem 0 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--linie);
  border-radius: var(--rund-gross);
  background: var(--flaeche);
  box-shadow: var(--schatten);
}
.filter label { display: flex; flex-direction: column; gap: .35rem; }
.filter label span, .feld > span:first-child {
  font: 650 .66rem var(--text-schrift);
  color: var(--gedaempft);
  text-transform: uppercase;
  letter-spacing: .13em;
}
.filter .breit { flex: 1; min-width: 200px; }

.filter select, .filter input,
.formular input[type="text"], .formular input[type="url"], .formular input[type="number"],
.formular select, .formular textarea {
  font: inherit;
  color: var(--text);
  background-color: var(--eingabe);
  border: 1px solid var(--linie-hell);
  border-radius: 10px;
  padding: .56rem .75rem;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.formular input[type="text"], .formular input[type="url"], .formular input[type="number"],
.formular select, .formular textarea { width: 100%; }
select {
  appearance: none;
  padding-right: 2.2rem !important;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--akzent-hell) 50%),
    linear-gradient(135deg, var(--akzent-hell) 50%, transparent 50%) !important;
  background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55% !important;
  background-size: 5px 5px, 5px 5px !important;
  background-repeat: no-repeat !important;
}
.filter select:hover, .filter input:hover, .formular input:hover, .formular select:hover, .formular textarea:hover { border-color: rgba(255, 236, 228, .24); }
.filter select:focus, .filter input:focus,
.formular input:focus, .formular select:focus, .formular textarea:focus {
  outline: none;
  border-color: var(--akzent-hell);
  background-color: rgba(20, 8, 12, .7);
  box-shadow: 0 0 0 4px rgba(227, 18, 45, .18), 0 0 22px var(--gluehen-weich);
}
select option, select optgroup { background: #140b0f; color: var(--text); }
::placeholder { color: #75665f; }

.formular { display: flex; flex-direction: column; gap: .95rem; }
.feld { display: flex; flex-direction: column; gap: .38rem; min-width: 0; }
.feld .gedaempft { text-transform: none; letter-spacing: 0; font-weight: 400; font-family: var(--text-schrift); }
.feld-reihe { display: flex; gap: .85rem; flex-wrap: wrap; }
.feld-reihe .feld { flex: 1 1 10rem; }
.feld-reihe .feld.breit { flex: 3 1 14rem; }
.formular textarea { resize: vertical; min-height: 8rem; line-height: 1.55; }
.haken { display: flex; gap: .55rem; align-items: flex-start; cursor: pointer; }
.haken input { margin-top: .22rem; width: 16px; height: 16px; accent-color: var(--akzent); }
.knoepfe { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; }
.formular > .knopf { align-self: flex-start; }
form.inline { display: inline; margin: 0 0 0 auto; }

/* --------------------------------------------------------------- Meldungen */

.meldung {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  border-radius: var(--rund);
  padding: .8rem 1.05rem;
  margin-bottom: 1rem;
  border: 1px solid;
  background: rgba(14, 8, 11, .92);
  animation: einschieben .45s cubic-bezier(.2, .8, .2, 1) both;
}
.meldung > div { flex: 1 0 100%; }
.meldung.ok { border-color: rgba(79, 209, 139, .55); background: linear-gradient(90deg, rgba(79, 209, 139, .12), rgba(14, 8, 11, .92) 60%); box-shadow: 0 0 26px -6px rgba(79, 209, 139, .3); }
.meldung.ok .icon { color: var(--gruen); }
.meldung.fehler { border-color: rgba(255, 51, 71, .6); background: linear-gradient(90deg, rgba(255, 51, 71, .14), rgba(14, 8, 11, .92) 60%); box-shadow: 0 0 26px -6px var(--gluehen); }
.meldung.fehler .icon { color: var(--rot); }
@keyframes einschieben { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------- Profilkopf */

.profilkopf { padding: 0; overflow: hidden; }
.profilkopf-hintergrund {
  position: absolute;
  inset: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  object-fit: cover;
  filter: blur(38px) saturate(1.4) brightness(.45);
  opacity: .8;
  pointer-events: none;
}
.profilkopf::before { z-index: 1; }
.profilkopf-inhalt {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  padding: 1.6rem 1.6rem;
  background: linear-gradient(90deg, rgba(5, 3, 4, .55), rgba(5, 3, 4, .2) 60%, rgba(5, 3, 4, .6));
}
.profil-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  flex: none;
  border-radius: 50%;
}
.profil-ring::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(#5a0a14, #ff2a40, #ffb36b, #ff2a40, #5a0a14);
  animation: drehen 5s linear infinite;
  filter: drop-shadow(0 0 14px var(--gluehen));
}
.profilkopf.stumm .profil-ring::before { background: conic-gradient(#5a2a0a, var(--orange), #ffd08a, var(--orange), #5a2a0a); }
.profilkopf.gebannt .profil-ring::before { background: #3a3033; animation: none; filter: none; }
.profil-bild { position: relative; width: 104px; height: 104px; border-radius: 50%; background: #000; }
.profilkopf.gebannt .profil-bild { filter: grayscale(1) brightness(.7); }
.geschenk-ring .icon { position: relative; width: 104px; height: 104px; padding: 26px; border-radius: 50%; background: #0b0608; color: var(--akzent-hell); }
.profil-name { flex: 1; min-width: 220px; }
.profil-name h1 {
  background: none;
  color: #fff;
  filter: none;
  text-transform: none;
  letter-spacing: .005em;
  font: 800 2.1rem/1.1 var(--text-schrift);
  text-shadow: 0 0 22px rgba(255, 20, 45, .55), 0 2px 0 rgba(0, 0, 0, .6);
  overflow-wrap: anywhere;
}
.profil-name p { margin: .25rem 0 0; font-family: var(--mono); font-size: .8rem; }
.profil-zahlen { display: flex; gap: .6rem; margin: 0; flex-wrap: wrap; }
.profil-zahlen > div {
  min-width: 96px;
  padding: .6rem .85rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, .5);
  border: 1px solid var(--linie-hell);
  text-align: center;
}
.profil-zahlen > div.heiss { border-color: var(--rot); box-shadow: 0 0 16px var(--gluehen-weich); }
.profil-zahlen dt { font: 700 .6rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gedaempft); }
.profil-zahlen dd { margin: .15rem 0 0; font-size: 1.7rem; line-height: 1.05; }
.profil-zahlen dd.klein-wert { font-size: 1rem; padding-top: .35rem; }

.angaben { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; margin: 0; }
.angaben dt { color: var(--gedaempft); font-size: .88rem; }
.angaben dd { margin: 0; overflow-wrap: anywhere; }

.rollen { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: 1rem; }
.rolle { background: rgba(0, 0, 0, .45); border: 1px solid var(--linie-hell); border-radius: 6px; padding: .08rem .55rem; font-size: .78rem; }

.verwarnungen { list-style: none; margin: 0; padding: 0; counter-reset: w; }
.verwarnungen li { padding: .6rem 0 .6rem .9rem; border-top: 1px solid var(--linie); box-shadow: inset 2px 0 0 rgba(255, 51, 71, .5); }
.verwarnungen li:first-child { border-top: 0; }
.verwarnung-kopf { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.verwarnung-kopf strong { color: var(--rot); font-family: var(--mono); }

/* ----------------------------------------------------------------- Aktionen */

.aktionen { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .7rem; align-items: start; }
.aktionen h2 { grid-column: 1 / -1; margin-bottom: .3rem; }
.aktionen details {
  --farbe: var(--rot);
  border: 1px solid var(--linie);
  border-radius: 10px;
  background: rgba(0, 0, 0, .35);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.aktionen details:hover { border-color: color-mix(in srgb, var(--farbe) 55%, transparent); }
.aktionen details[open] {
  grid-column: 1 / -1;
  border-color: color-mix(in srgb, var(--farbe) 70%, transparent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--farbe) 16%, transparent);
  background: rgba(0, 0, 0, .5);
  padding-bottom: 1rem;
}
.aktion {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: .75rem;
  align-items: center;
  padding: .75rem .9rem;
  cursor: pointer;
  list-style: none;
}
.aktion::-webkit-details-marker { display: none; }
.aktion.gelb { --farbe: var(--gelb); }
.aktion.orange { --farbe: var(--orange); }
.aktion.rot { --farbe: var(--rot); }
.aktion.gruen { --farbe: var(--gruen); }
details:has(> .aktion.gelb) { --farbe: var(--gelb); }
details:has(> .aktion.orange) { --farbe: var(--orange); }
details:has(> .aktion.gruen) { --farbe: var(--gruen); }
.aktion .icon {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 9px;
  color: var(--farbe);
  background: color-mix(in srgb, var(--farbe) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--farbe) 40%, transparent);
}
.aktion-name { font-weight: 800; letter-spacing: .02em; color: var(--text); }
.aktion-info { font-size: .74rem; color: var(--gedaempft); }
.aktionen details .formular, .aktionen details .gesperrt { margin: 0 1rem; max-width: 44rem; }
.gesperrt { color: var(--gedaempft); margin: 0 0 .6rem; }
.gesperrt::before { content: "Nicht möglich: "; color: var(--orange); font-weight: 700; }

/* ----------------------------------------------------------------- Befehle */

.balken { list-style: none; margin: 0; padding: 0; }
.balken li { display: grid; grid-template-columns: minmax(7rem, max-content) 1fr 2.5rem; gap: .7rem; align-items: center; padding: .25rem 0; }
.balken li a { font-family: var(--mono); font-size: .85rem; }
.balken .zahl { text-align: right; font: .8rem var(--mono); color: var(--gedaempft); }
meter { width: 100%; height: .5rem; appearance: none; background: #000; border: 0; border-radius: 999px; }
meter::-webkit-meter-bar { background: #000; border: 1px solid var(--linie); border-radius: 999px; height: .5rem; }
meter::-webkit-meter-optimum-value { background: linear-gradient(90deg, #7a0010, #ff2b42); border-radius: 999px; box-shadow: 0 0 8px var(--gluehen); }
meter::-moz-meter-bar { background: linear-gradient(90deg, #7a0010, #ff2b42); border-radius: 999px; }

.befehlsgruppe { margin-top: 1rem; }
.befehlsgruppe h3 { font: 700 .72rem var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--akzent-hell); }
.befehlsgruppe h3::before { content: "> "; opacity: .7; }
.befehlsliste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: .6rem; }
.befehlsliste li {
  padding: .7rem .85rem;
  border-radius: 9px;
  border: 1px solid var(--linie);
  background: rgba(0, 0, 0, .4);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.befehlsliste li:hover { border-color: var(--linie-hell); transform: translateY(-2px); box-shadow: 0 0 18px var(--gluehen-weich); }
.befehlsliste code { background: none; border: 0; padding: 0; color: #ff8a96; font-weight: 700; }
.parameter { font: .74rem var(--mono); color: var(--gedaempft); margin-left: .35rem; }
.parameter::before { content: "<"; }
.parameter::after { content: ">"; }

/* ------------------------------------------------------ Ankündigungs-Vorschau */
/* Bewusst in Discords eigenen Farben - so sieht es dort ja aus. */

.discord-nachricht { background: #313338; border-radius: 8px; padding: .8rem; margin-bottom: .6rem; color: #dbdee1; }
.ping { display: inline-block; background: rgba(88, 101, 242, .3); color: #c9cdfb; border-radius: 3px; padding: 0 .2rem; margin-bottom: .4rem; font-weight: 500; }
.embed { background: #2b2d31; border-left: 4px solid #5865f2; border-radius: 4px; padding: .6rem .9rem .7rem; }
.embed.farbe-blau { border-left-color: #5865f2; }
.embed.farbe-gruen { border-left-color: #57f287; }
.embed.farbe-gelb { border-left-color: #fee75c; }
.embed.farbe-rot { border-left-color: #ed4245; }
.embed.farbe-pink { border-left-color: #eb459e; }
.embed.farbe-weiss { border-left-color: #f2f3f5; }
.embed-titel { font-weight: 700; margin-bottom: .3rem; overflow-wrap: anywhere; color: #f2f3f5; }
.embed-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .93rem; }
.embed-bild { margin-top: .5rem; color: #949ba4; overflow-wrap: anywhere; }
.embed-fuss { display: flex; align-items: center; gap: .4rem; margin-top: .6rem; font-size: .75rem; color: #949ba4; }
.embed-fuss img { width: 18px; height: 18px; border-radius: 50%; }

.ankuendigungen { list-style: none; margin: 0; padding: 0; }
.ankuendigungen li { padding: .55rem 0; border-top: 1px solid var(--linie); display: flex; flex-direction: column; }
.ankuendigungen li:first-child { border-top: 0; }

/* --------------------------------------------------------------- Giveaways */

.giveaway-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1.1rem; }
.giveaway { display: flex; flex-direction: column; gap: .7rem; overflow: hidden; }
.giveaway-wasserzeichen {
  position: absolute;
  right: -26px;
  bottom: -26px;
  width: 150px;
  height: 150px;
  stroke-width: 1;
  color: var(--akzent);
  opacity: .08;
  transform: rotate(-12deg);
  pointer-events: none;
}
.giveaway-kopf { display: flex; justify-content: space-between; align-items: center; }
.giveaway-preis { font: 800 1.3rem/1.2 var(--text-schrift); margin: 0; overflow-wrap: anywhere; }
.giveaway-preis a { color: #fff; text-shadow: 0 0 18px rgba(255, 20, 45, .45); }
.giveaway-preis a:hover { color: var(--akzent-hell); }
.zeitbalken { display: block; width: 100%; height: 5px; }
.zeitbalken-spur { fill: rgba(255, 255, 255, .06); }
.zeitbalken-wert { fill: var(--akzent-hell); filter: drop-shadow(0 0 3px var(--akzent-hell)); }
.giveaway-zahlen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  text-align: center;
  background: rgba(0, 0, 0, .45);
  border: 1px solid var(--linie);
  border-radius: 10px;
  padding: .7rem .3rem;
}
.giveaway-zahlen > div { display: flex; flex-direction: column; min-width: 0; }
.giveaway-zahlen .gross { font-family: var(--kopf-schrift); font-size: 1.8rem; line-height: 1.1; color: #fff; text-shadow: 0 0 14px var(--gluehen); }
.giveaway-zahlen .klein-gross { font-size: 1.05rem; padding-top: .4rem; white-space: nowrap; }
.giveaway p { margin: 0; position: relative; }
.giveaway-aktionen { position: relative; display: flex; gap: .8rem; align-items: flex-start; flex-wrap: wrap; margin-top: auto; padding-top: .3rem; }
.giveaway-aktionen form { margin: 0; }
.klappe summary { cursor: pointer; color: var(--gedaempft); padding: .5rem 0; }
.klappe[open] summary { color: var(--text); }
.klappe .formular { gap: .5rem; margin-top: .3rem; }
.formular.neu { max-width: 56rem; }
.neu-auslosen { margin: 0; }
.giveaway-titel { overflow-wrap: anywhere; }

/* --------------------------------------------------------------- Diagramme */

.zeitraum-wahl { display: inline-flex; gap: .2rem; margin-top: 1.2rem; padding: .28rem; border-radius: 13px; border: 1px solid var(--linie); background: rgba(0, 0, 0, .4); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5); }
.zeitraum-wahl a { padding: .38rem 1rem; border-radius: 9px; color: var(--gedaempft); font: 600 .82rem var(--text-schrift); transition: color .15s, background .15s; }
.zeitraum-wahl a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.zeitraum-wahl a[aria-current="page"] { color: #fff; background: linear-gradient(180deg, #ff3a50, #a30019); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 18px -6px rgba(255, 20, 45, .9); }

.diagramm {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 190px auto;
  column-gap: .6rem;
  row-gap: .35rem;
}
.dia-flaeche { grid-column: 2; grid-row: 1; width: 100%; height: 100%; overflow: visible; }
.dia-y { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; text-align: right; font: .66rem var(--mono); color: #7d6a62; min-width: 2.2rem; }
.dia-y span:first-child { transform: translateY(-.35em); }
.dia-y span:last-child { transform: translateY(.35em); }
.dia-x { grid-column: 2; grid-row: 2; display: flex; justify-content: space-between; font: .66rem var(--mono); color: #7d6a62; }
.dia-gitter { stroke: rgba(255, 255, 255, .05); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dia-basis { stroke: var(--linie-hell); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dia-treffer { fill: transparent; }
.dia-spalte:hover .dia-treffer { fill: rgba(255, 255, 255, .045); }
.dia-balken { fill: var(--akzent-hell); opacity: .78; }
.dia-spalte.heute .dia-balken, .dia-spalte:hover .dia-balken { opacity: 1; }
.dia-linie { fill: none; stroke: var(--akzent-hell); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(255, 49, 72, .8)); }
.dia-flaeche-fuellung { fill: url(#linie-verlauf); }
.dia-plus { fill: var(--knochen); opacity: .85; }
.dia-minus { fill: var(--akzent-hell); opacity: .85; }
.dia-spalte:hover .dia-plus, .dia-spalte:hover .dia-minus { opacity: 1; }
.dia-legende { display: flex; gap: 1.1rem; flex-wrap: wrap; margin: -.4rem 0 .6rem; font-size: .76rem; color: var(--gedaempft); }
.dia-legende span { display: inline-flex; align-items: center; gap: .4rem; }
.legende-farbe { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.legende-farbe.plus { background: var(--knochen); }
.legende-farbe.minus { background: var(--akzent-hell); }
.kanal-name { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabellen-ansicht summary { cursor: pointer; list-style: none; }
.tabellen-ansicht summary::-webkit-details-marker { display: none; }
.tabellen-ansicht summary h2 { margin: 0; }
.tabellen-ansicht[open] summary h2 { margin-bottom: 1rem; }
.tabellen-ansicht .tabelle-rahmen { max-height: 26rem; overflow-y: auto; }
.zahl-zelle { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- Coins & Shop */

.stapel { display: grid; gap: 1.1rem; align-content: start; }
.muenzen { font: 700 .85rem var(--mono); color: var(--gelb); text-shadow: 0 0 10px rgba(245, 184, 65, .4); white-space: nowrap; }
.buchungen { list-style: none; margin: 0; padding: 0; }
.buchungen li { display: flex; align-items: baseline; gap: .7rem; padding: .45rem 0; border-top: 1px solid var(--linie); flex-wrap: wrap; }
.buchungen li:first-child { border-top: 0; }
.betrag { font: 700 .82rem var(--mono); min-width: 4.5rem; text-align: right; }
.betrag.plus { color: var(--gruen); }
.betrag.minus { color: var(--rot); }
.buchung-text { flex: 1; min-width: 12rem; font-size: .88rem; }

.shop-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.shop-artikel { display: flex; flex-direction: column; gap: .5rem; }
.shop-artikel.inaktiv { opacity: .55; }
.shop-artikel p { margin: 0; }
.shop-kopf { display: flex; align-items: center; gap: .8rem; }
.shop-kopf h3 { margin: 0; color: #fff; font-size: 1.05rem; }
.shop-kopf > div { flex: 1; min-width: 0; }
.farbmuster { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 0 8px rgba(255, 255, 255, .25)); }
.farbmuster circle { stroke: rgba(255, 255, 255, .5); stroke-width: 1.2; }
.shop-symbol { width: 34px; height: 34px; padding: 6px; border-radius: 9px; color: var(--gelb); background: rgba(245, 184, 65, .1); }
.preis { font: 700 1rem var(--mono); color: var(--gelb); white-space: nowrap; text-shadow: 0 0 12px rgba(245, 184, 65, .45); }
.shop-aktionen { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: auto; padding-top: .4rem; border-top: 1px solid var(--linie); }
.shop-aktionen form { margin: 0; display: flex; gap: .35rem; align-items: center; }
.preis-form input { width: 6.5rem; font: inherit; font-size: .8rem; color: var(--text); background: var(--eingabe); border: 1px solid var(--linie-hell); border-radius: 6px; padding: .2rem .4rem; }
.typ-felder { border: 1px dashed var(--linie-hell); border-radius: 10px; padding: .6rem .9rem .8rem; margin: 0; }
.typ-felder legend { padding: 0 .4rem; }
.formular input[type="color"] { width: 100%; height: 2.4rem; padding: .15rem; background: var(--eingabe); border: 1px solid var(--linie-hell); border-radius: 8px; cursor: pointer; }

/* Öffentliche Rangliste */
/* place-items zurücksetzen: neuere Browser zentrieren sonst auch Blöcke und machen sie schmal */
.inhalt.oeffentlich { display: block; place-items: normal; max-width: 920px; margin: 0 auto; padding-top: 3rem; }
.rangliste-kopf { text-align: center; display: grid; justify-items: center; gap: .3rem; margin-bottom: 2rem; }
.marke-ring.gross { width: 108px; height: 108px; margin-bottom: .6rem; }
.marke-ring.gross img { width: 100px; height: 100px; }
.rangliste-kopf .zeitraum-wahl { margin-top: 1rem; }
.podest { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 1rem; align-items: end; margin-bottom: 1.6rem; }
.podest-platz {
  --medaille: #b9bfc9;
  position: relative;
  display: grid;
  justify-items: center;
  gap: .4rem;
  padding: 1.3rem .9rem 1.1rem;
  text-align: center;
  border-radius: var(--rund-gross);
  border: 1px solid var(--linie);
  background:
    radial-gradient(90% 60% at 50% 0%, color-mix(in srgb, var(--medaille) 14%, transparent), transparent 70%),
    var(--flaeche);
  box-shadow: var(--schatten);
}
.podest-platz::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--medaille), transparent);
}
.podest-platz.platz-1 { --medaille: var(--gelb); order: 2; padding-top: 1.9rem; border-color: rgba(245, 184, 65, .45); box-shadow: var(--schatten), 0 0 60px -14px rgba(245, 184, 65, .45); }
.podest-platz.platz-2 { order: 1; }
.podest-platz.platz-3 { --medaille: #d08a54; order: 3; }
.podest-platz img { width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 0 0 2px var(--linie-hell); }
.podest-platz.platz-1 img { width: 96px; height: 96px; box-shadow: 0 0 0 3px var(--gelb), 0 0 26px rgba(245, 184, 65, .55); }
.podest-krone { font-size: 1.6rem; line-height: 1; filter: drop-shadow(0 0 8px rgba(245, 184, 65, .6)); }
.podest-platz strong { color: #fff; overflow-wrap: anywhere; }
.podest-wert { font: 1.7rem var(--kopf-schrift); color: #fff; text-shadow: 0 0 14px var(--gluehen); }
.podest-wert small { font: .75rem var(--text-schrift); color: var(--gedaempft); text-shadow: none; }
.rangliste { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.rangliste li {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .65rem 1rem;
  border-radius: var(--rund);
  border: 1px solid var(--linie);
  background: var(--flaeche);
  box-shadow: var(--schatten);
  transition: border-color .2s, transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .2s;
}
.rangliste li:hover { border-color: var(--linie-rot); transform: translateX(4px); box-shadow: var(--schatten), 0 0 30px -12px var(--gluehen); }
.rangliste img { width: 38px; height: 38px; border-radius: 50%; }
.rangliste-name { flex: 1; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; min-width: 0; }
.rangliste-name strong { color: #fff; }
.rangliste-wert { font: 700 .95rem var(--mono); color: var(--text); white-space: nowrap; }
.farbpunkt { width: 10px; height: 10px; }
.rangliste-fuss { text-align: center; margin-top: 2rem; }
@media (max-width: 560px) {
  .podest { grid-template-columns: 1fr; }
  .podest-platz.platz-1, .podest-platz.platz-2, .podest-platz.platz-3 { order: initial; }
}

/* ------------------------------------------------------------------ Tickets */

.ticket-liste { display: grid; gap: .6rem; margin-top: 1.2rem; }
.ticket-zeile { display: flex; align-items: center; gap: .9rem; padding: .85rem 1.15rem; color: var(--text); flex-wrap: wrap; border-radius: var(--rund); transition: border-color .2s, transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .2s; }
.ticket-zeile:hover { border-color: var(--linie-hell); transform: translateX(3px); color: var(--text); }
.ticket-zeile.offen { border-color: var(--linie-rot); box-shadow: var(--schatten), inset 3px 0 0 var(--akzent-hell), 0 0 30px -14px var(--gluehen); }
.ticket-zeile img { width: 36px; height: 36px; border-radius: 50%; }
.ticket-nummer { font: 700 .85rem var(--mono); color: var(--akzent-hell); min-width: 3rem; }
.ticket-haupt { flex: 1; min-width: 12rem; display: flex; flex-direction: column; }
.ticket-haupt strong { color: #fff; overflow-wrap: anywhere; }
.ticket-meta { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }

.chat { display: flex; flex-direction: column; gap: .9rem; margin-top: 1.4rem; max-height: 70vh; overflow-y: auto; }
.chat-nachricht { display: flex; gap: .7rem; align-items: flex-start; max-width: 85%; }
.chat-nachricht img { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.chat-nachricht.team { align-self: flex-end; flex-direction: row-reverse; }
.chat-blase { padding: .55rem .85rem .65rem; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--linie); min-width: 0; }
.chat-nachricht.team .chat-blase { background: linear-gradient(180deg, rgba(227, 18, 45, .2), rgba(227, 18, 45, .08)); border-color: rgba(255, 49, 72, .35); }
.chat-kopf { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; margin-bottom: .2rem; }
.chat-kopf strong { color: #fff; font-size: .88rem; }
.chat-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .93rem; }
.chat-bild img { display: block; max-width: min(320px, 100%); max-height: 260px; margin-top: .45rem; border-radius: 8px; }
.chat-system { align-self: center; font: .72rem var(--mono); color: var(--gedaempft); padding: .2rem .7rem; border-radius: 999px; border: 1px dashed var(--linie-hell); text-align: center; }

/* ------------------------------------------------------------------- Events */

.event-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 1rem; }
.event-karte { display: flex; gap: 1rem; align-items: stretch; color: var(--text); }
.event-karte:hover { color: var(--text); text-shadow: none; transform: translateY(-2px); border-color: var(--linie-hell); }
.event-datum {
  display: grid;
  place-content: center;
  text-align: center;
  min-width: 64px;
  padding: .5rem;
  border-radius: 10px;
  background: linear-gradient(180deg, #ff2b42, #8e0014);
  box-shadow: 0 0 18px var(--gluehen-weich), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.event-datum.gross { min-width: 96px; min-height: 96px; }
.event-tag { font: 2rem/1 var(--kopf-schrift); color: #fff; }
.event-datum.gross .event-tag { font-size: 2.8rem; }
.event-monat { font: 700 .7rem var(--mono); letter-spacing: .2em; text-transform: uppercase; color: #ffd2d7; }
.event-haupt { flex: 1; display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.event-kopf { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.event-titel { font-size: 1.1rem; color: #fff; overflow-wrap: anywhere; }
.event-leute { display: flex; align-items: center; gap: .15rem; flex-wrap: wrap; margin-top: auto; }
.event-leute img { width: 24px; height: 24px; border-radius: 50%; margin-right: -6px; box-shadow: 0 0 0 2px #0e0709; }
.event-leute .klein { margin-left: .8rem; }
.profil-zahlen dd small { font: .8rem var(--text-schrift); color: var(--gedaempft); }
.feld-haken { align-self: flex-end; padding-bottom: .55rem; flex: 2 1 16rem; }
.formular input[type="date"], .formular input[type="time"] { width: 100%; font: inherit; color: var(--text); background: var(--eingabe); border: 1px solid var(--linie-hell); border-radius: 8px; padding: .5rem .65rem; color-scheme: dark; }

/* ------------------------------------------------------------------- Schutz */

.karte.alarm { border-color: var(--rot); box-shadow: 0 0 40px rgba(255, 30, 50, .35), 0 18px 40px rgba(0, 0, 0, .55); animation: alarm 1.6s ease-in-out infinite; }
@keyframes alarm { 50% { box-shadow: 0 0 70px rgba(255, 30, 50, .6), 0 18px 40px rgba(0, 0, 0, .55); } }
.lockdown-status { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-weight: 700; }
.inline-formular { flex-direction: row; align-items: center; flex-wrap: wrap; }
.inline-formular select { width: auto; }
.warte-name { flex: 1; min-width: 10rem; }

/* ------------------------------------------------------------ Einstellungen */

.sprungleiste { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.2rem 0 0; }
.sprungleiste a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--linie-hell);
  background: rgba(0, 0, 0, .4);
  color: var(--gedaempft);
  font-size: .8rem;
  font-weight: 600;
}
.sprungleiste a:hover { color: #fff; border-color: var(--akzent); text-shadow: none; box-shadow: 0 0 12px var(--gluehen-weich); }
.sprungleiste .icon { width: 15px; height: 15px; color: var(--akzent-hell); }

.einstellungen-abschnitt { scroll-margin-top: 1.5rem; }
.einstellungen-abschnitt:target { border-color: var(--akzent); box-shadow: 0 0 30px var(--gluehen-weich), 0 18px 40px rgba(0, 0, 0, .55); }
.abschnitt-text { margin: -.6rem 0 1rem; }
.einstellungen-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem 1.3rem; }
.einstellung-feld.typ-text_lang, .einstellung-feld.typ-eskalation, .einstellung-feld.typ-rangstufen,
.einstellung-feld.typ-rollen_mehrfach, .einstellung-feld.typ-kanaele_mehrfach, .einstellung-feld.typ-liste { grid-column: 1 / -1; }
.einstellung-feld .hilfe { line-height: 1.4; }
.formular select:disabled, .formular input:disabled, .formular textarea:disabled { opacity: .6; cursor: not-allowed; }

.schalter { display: inline-flex; align-items: center; gap: .7rem; cursor: pointer; padding: .3rem 0; }
.schalter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.schalter-bahn {
  position: relative;
  width: 46px;
  height: 25px;
  border-radius: 999px;
  background: #1a1013;
  border: 1px solid var(--linie-hell);
  transition: background .2s, box-shadow .2s, border-color .2s;
}
.schalter-knopf {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #6f625c;
  transition: transform .2s cubic-bezier(.3, 1.4, .5, 1), background .2s;
}
.schalter input:checked + .schalter-bahn { background: linear-gradient(180deg, #ff2b42, #9a0016); border-color: var(--akzent-hell); box-shadow: 0 0 14px var(--gluehen); }
.schalter input:checked + .schalter-bahn .schalter-knopf { transform: translateX(21px); background: #fff; }
.schalter input:focus-visible + .schalter-bahn { outline: 2px solid var(--akzent-hell); outline-offset: 2px; }
.schalter-text { font-weight: 700; }

.stufen-tabelle { display: grid; gap: .45rem; max-width: 34rem; }
.stufen-kopf, .stufen-zeile { display: grid; grid-template-columns: 1fr 1fr 7rem; gap: .6rem; align-items: center; }
.typ-rangstufen .stufen-kopf, .typ-rangstufen .stufen-zeile { grid-template-columns: 1.4fr 1fr; }
.stufen-kopf span { font: 700 .62rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gedaempft); }
.stufen-rang { font-weight: 700; }

.mehrfach { display: flex; flex-wrap: wrap; gap: .35rem .9rem; padding: .7rem .8rem; border: 1px solid var(--linie); border-radius: 8px; background: rgba(0, 0, 0, .3); max-height: 14rem; overflow-y: auto; }

/* ==================================================== Effekte (effekte.js) */

/* Ton-Schalter: zeigt je nach Zustand das passende Symbol */
.ton-schalter .aus { display: none; }
.ton-schalter.stumm .an { display: none; }
.ton-schalter.stumm .aus { display: block; }
.ton-schalter.stumm { color: #6f625c; }

.geheim-zaehler { font: 600 .64rem var(--mono); color: var(--akzent-hell); letter-spacing: .04em; margin-top: .1rem; }

/* Erdbeben */
.erschuettern .app { animation: beben .5s cubic-bezier(.36, .07, .19, .97) both; }
.erschuettern.stark .app { animation: beben-stark .65s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes beben {
  10%, 90% { transform: translate(-1px, 0); }
  20%, 80% { transform: translate(2px, 1px); }
  30%, 50%, 70% { transform: translate(-3px, -1px); }
  40%, 60% { transform: translate(3px, 1px); }
}
@keyframes beben-stark {
  10%, 90% { transform: translate(-2px, 1px) rotate(-.2deg); }
  20%, 80% { transform: translate(5px, -2px) rotate(.3deg); }
  30%, 50%, 70% { transform: translate(-7px, 2px) rotate(-.4deg); }
  40%, 60% { transform: translate(7px, -1px) rotate(.4deg); }
}

/* Lichtblitze */
.blitz { position: fixed; inset: 0; z-index: 90; pointer-events: none; animation: blitz .7s ease-out both; }
.blitz.rot { background: radial-gradient(circle at 50% 50%, rgba(255, 30, 50, .45), rgba(120, 0, 10, .35) 60%, transparent); }
.blitz.gold { background: radial-gradient(circle at 50% 45%, rgba(255, 200, 90, .45), rgba(255, 80, 30, .15) 55%, transparent 75%); animation-duration: 1.4s; animation-delay: .85s; }
.blitz.weiss { background: radial-gradient(circle at 50% 50%, #fff, rgba(255, 245, 220, .85) 35%, rgba(255, 240, 200, .2) 70%, transparent); animation: licht 2.6s ease-in-out both; }
@keyframes blitz { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
@keyframes licht { 0% { opacity: 0; } 25% { opacity: 1; } 60% { opacity: .85; } 100% { opacity: 0; } }

/* Geheimnis-Meldung */
.erfolg-toast {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 100;
  display: grid;
  gap: .1rem;
  min-width: 250px;
  padding: .85rem 1.1rem .8rem 3.4rem;
  border-radius: 12px;
  border: 1px solid var(--akzent-hell);
  background: linear-gradient(135deg, rgba(40, 8, 14, .97), rgba(8, 4, 6, .97));
  box-shadow: 0 0 30px var(--gluehen), 0 20px 50px rgba(0, 0, 0, .7);
  animation: toast-rein .6s cubic-bezier(.2, 1.4, .4, 1) both;
}
.erfolg-toast::before {
  content: "☠";
  position: absolute;
  left: .9rem;
  top: 50%;
  translate: 0 -50%;
  font-size: 1.8rem;
  color: #fff;
  text-shadow: 0 0 14px #ff2a40, 0 0 30px #ff2a40;
}
.erfolg-toast.neu { animation: toast-rein .6s cubic-bezier(.2, 1.4, .4, 1) both, toast-gluehen 1.2s ease-in-out .6s 3; }
.erfolg-toast.weg { animation: toast-raus .6s ease-in both; }
.erfolg-kopf { font: 700 .62rem var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--akzent-hell); }
.erfolg-toast strong { font: 400 1.25rem var(--kopf-schrift); letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.erfolg-stand { font: .72rem var(--mono); color: var(--gedaempft); }
@keyframes toast-rein { from { opacity: 0; transform: translateY(30px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes toast-raus { to { opacity: 0; transform: translateX(40px); } }
@keyframes toast-gluehen { 50% { box-shadow: 0 0 55px #ff2a40, 0 20px 50px rgba(0, 0, 0, .7); } }

/* Geheimnis: Höllenmodus (Konami-Code) */
.hoelle .glut { opacity: 1; animation-duration: 14s, 1.5s; filter: saturate(1.6) brightness(1.4); }
.hoelle .glut::before { animation-duration: 8s; }
.hoelle .raster { background: repeating-linear-gradient(0deg, rgba(60, 0, 8, .35) 0 1px, transparent 1px 3px); }
.hoelle .karte, .hoelle .kachel, .hoelle .tabelle-rahmen { border-color: rgba(255, 60, 30, .45); box-shadow: 0 0 26px rgba(255, 60, 20, .2), 0 18px 40px rgba(0, 0, 0, .55); }
.hoelle h1, .hoelle .titel-gross, .hoelle .marke-name, .hoelle .kachel-zahl, .hoelle .kennzahl-wert {
  background: linear-gradient(180deg, #fff6c8 0%, #ffd060 25%, #ff7a1a 55%, #e3122d 80%, #5a0010 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 2px #ff5a1a) drop-shadow(0 0 10px rgba(255, 90, 20, .9)) drop-shadow(0 0 26px rgba(255, 30, 20, .5));
}
.hoelle .seitenleiste { border-right-color: #ff5a1a; animation: leiste-flackern 3s steps(1) infinite; }
@keyframes leiste-flackern { 0%, 100% { box-shadow: 1px 0 0 rgba(255, 90, 30, .5), 12px 0 60px rgba(255, 60, 0, .3); } 47% { box-shadow: 1px 0 0 rgba(255, 90, 30, .2), 12px 0 30px rgba(255, 60, 0, .1); } 49% { box-shadow: 1px 0 0 rgba(255, 150, 60, .8), 12px 0 80px rgba(255, 60, 0, .45); } }
.flammen { display: none; }
.hoelle .flammen {
  display: block;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42vh;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 70% at 10% 100%, rgba(255, 90, 20, .5), transparent 70%),
    radial-gradient(35% 90% at 35% 100%, rgba(255, 40, 20, .45), transparent 70%),
    radial-gradient(40% 80% at 62% 100%, rgba(255, 120, 30, .4), transparent 70%),
    radial-gradient(35% 95% at 90% 100%, rgba(255, 50, 20, .5), transparent 70%);
  filter: blur(8px);
  transform-origin: bottom;
  animation: lodern 1.8s ease-in-out infinite alternate;
}
@keyframes lodern { from { transform: scaleY(.85) skewX(-2deg); opacity: .75; } to { transform: scaleY(1.1) skewX(2deg); opacity: 1; } }

/* Geheimnis: Logo gedrückt halten */
.marke-ring.haelt::before { animation-duration: .8s; transition: filter 2.5s; filter: drop-shadow(0 0 16px #ff2a40) brightness(1.6); }
.marke-ring.haelt img { transition: transform 2.5s ease-in, filter 2.5s; transform: scale(.85); filter: saturate(2) contrast(1.3); }
.marke.daemon .marke-ring::before { animation-duration: .25s; filter: drop-shadow(0 0 22px #ff2a40); }
.marke.daemon .marke-ring img { animation: daemon 4.5s ease-in-out both; }
@keyframes daemon {
  0% { transform: scale(.85); }
  12% { transform: scale(1.35) rotate(-10deg); filter: saturate(3) hue-rotate(-20deg) brightness(1.4); box-shadow: 0 0 40px #ff2a40; }
  30% { transform: scale(1.2) rotate(8deg); }
  60% { transform: scale(1.25) rotate(-4deg); filter: saturate(3) brightness(1.3); }
  100% { transform: none; }
}

/* Geheimnis: Exorzismus */
.exorzismus .app { animation: reinigen 2.6s ease-in-out both; }
@keyframes reinigen {
  0% { transform: none; filter: none; }
  35% { transform: rotate(180deg) scale(.92); filter: invert(1) hue-rotate(180deg) brightness(1.2); }
  65% { transform: rotate(180deg) scale(.92); filter: invert(1) hue-rotate(180deg) brightness(1.2); }
  100% { transform: none; filter: none; }
}

/* Geheimnis: 666 */
.teufel .app { animation: teufel-rot 7s ease-in-out both; }
@keyframes teufel-rot { 0%, 100% { filter: none; } 10%, 85% { filter: saturate(1.7) contrast(1.12) hue-rotate(-8deg); } }
.marke-ring, .emblem-buehne { overflow: visible; }
.hoerner {
  position: absolute;
  left: 50%;
  top: -34%;
  width: 120%;
  translate: -50% 0;
  fill: #b3001b;
  stroke: #ff3148;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 6px #ff2a40);
  transform-origin: 50% 100%;
  animation: hoerner 7s cubic-bezier(.2, 1.3, .4, 1) both;
  z-index: 2;
  pointer-events: none;
}
.emblem-buehne .hoerner { top: 2%; width: 70%; }
@keyframes hoerner { 0% { transform: scaleY(0); opacity: 0; } 12% { transform: scaleY(1); opacity: 1; } 88% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(0); opacity: 0; } }

/* Geheimnis: Geisterstunde (3 Uhr nachts) - Blut tropft vom oberen Rand */
.geisterstunde .raster { animation: herzschlag 1.2s ease-in-out infinite; }
@keyframes herzschlag { 0%, 100% { opacity: .45; } 15% { opacity: .75; } 30% { opacity: .5; } 45% { opacity: .7; } }
.geisterstunde::before {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 90px;
  z-index: 30;
  pointer-events: none;
  background:
    radial-gradient(6px 40px at 8% 0, #8a0010 90%, transparent 100%),
    radial-gradient(5px 70px at 23% 0, #a0001a 90%, transparent 100%),
    radial-gradient(7px 28px at 41% 0, #8a0010 90%, transparent 100%),
    radial-gradient(4px 55px at 58% 0, #a0001a 90%, transparent 100%),
    radial-gradient(6px 85px at 77% 0, #8a0010 90%, transparent 100%),
    radial-gradient(5px 35px at 93% 0, #a0001a 90%, transparent 100%),
    linear-gradient(#6a000c, transparent 14px);
  transform-origin: top;
  animation: tropfen 9s ease-in infinite;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6));
}
@keyframes tropfen { 0% { transform: scaleY(.2); } 70% { transform: scaleY(1); } 100% { transform: scaleY(1.05); } }

/* Geheimnis: Freitag der 13. */
.omen {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.2rem;
  padding: .7rem 1rem;
  border-radius: 10px;
  border: 1px solid #7a5a1a;
  background: linear-gradient(90deg, rgba(90, 60, 10, .35), rgba(10, 6, 8, .8));
  color: #f5d28a;
  font-family: var(--mono);
  font-size: .82rem;
}
.omen .icon { color: #f5b841; animation: atmen-symbol 2.4s ease-in-out infinite; }

/* Geheimnis: lachender Schädel auf der Fehlerseite */
.fehler-symbol { cursor: pointer; user-select: none; }
.fehler-symbol.zuckt .icon { animation: zucken .35s ease-out; }
.fehler-symbol.lacht .icon { animation: lachen .18s ease-in-out 12; color: #fff; filter: drop-shadow(0 0 20px #ff2a40); }
@keyframes zucken { 30% { transform: rotate(-12deg) scale(1.08); } 60% { transform: rotate(8deg); } }
@keyframes lachen { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(4deg) scale(1.08); } }

/* --------------------------------------------------------------- Schmaler */

@media (max-width: 1100px) {
  .inhalt { padding: 1.8rem 1.4rem 3.5rem 1.2rem; }
  h1 { font-size: 2.2rem; }
}

@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .seitenleiste {
    min-width: 0;
    height: auto;
    position: sticky;
    top: 0;
    margin: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    padding: .6rem .8rem .5rem;
    border-width: 0 0 1px;
    border-radius: 0 0 var(--rund-gross) var(--rund-gross);
  }
  .seitenleiste::after { display: none; }
  .marke { border: 0; padding: 0; flex: 1; }
  .marke-ring { width: 40px; height: 40px; }
  .marke-ring img, .marke-ring .icon { width: 36px; height: 36px; }
  .marke-name { font-size: 1.1rem; }
  .marke-unter { display: none; }
  .navi { order: 3; flex: 1 0 100%; flex-direction: row; overflow-x: auto; gap: .3rem; padding-bottom: .2rem; scrollbar-width: none; }
  .navi::-webkit-scrollbar { display: none; }
  .navi-gruppe { display: none; }
  .navi-link { flex: none; padding: .45rem .7rem; font-size: .82rem; }
  .navi-link:hover { transform: none; }
  .navi-link[aria-current="page"]::before { left: 18%; right: 18%; top: auto; bottom: -1px; width: auto; height: 2px; border-radius: 2px; }
  .ich { padding: .3rem .4rem; background: none; border: 0; }
  .ich-text { display: none; }
  .ich img { width: 32px; height: 32px; }
  .inhalt { padding: 1.4rem 1rem 3rem; }
  .seitenkopf-wasserzeichen { width: 130px; height: 130px; right: 0; }
}

@media (max-width: 520px) {
  h1 { font-size: 1.85rem; }
  .seitenkopf { gap: .9rem; }
  .seitenkopf-medaillon { width: 50px; height: 50px; border-radius: 15px; }
  .seitenkopf-medaillon .icon { width: 24px; height: 24px; }
  .spalten, .spalten.zwei { grid-template-columns: 1fr; }
  .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .kachel { padding: .9rem .9rem .7rem; }
  .kachel-kopf { gap: .45rem; }
  .kachel-kopf .icon { width: 28px; height: 28px; padding: 6px; }
  .kachel-name { font-size: .64rem; letter-spacing: .05em; }
  .kachel-zahl { font-size: 2.4rem; }
  .profilkopf-inhalt { padding: 1.2rem; gap: 1rem; }
  .profil-ring { width: 84px; height: 84px; }
  .profil-bild, .geschenk-ring .icon { width: 78px; height: 78px; }
  .geschenk-ring .icon { padding: 18px; }
  .profil-name h1 { font-size: 1.6rem; }
  .befehlsliste { grid-template-columns: 1fr; }
  .aktionen { grid-template-columns: 1fr; }
}
