/* knallerbsen.zone – Grundlayout. Farben und Schriften wie die Zentrale. */

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(/static/fonts/barlow-condensed-latin-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(/static/fonts/barlow-condensed-latin-700.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url(/static/fonts/ibm-plex-sans-latin-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url(/static/fonts/ibm-plex-sans-latin-500.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url(/static/fonts/ibm-plex-sans-latin-600.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(/static/fonts/ibm-plex-mono-latin-400.woff2) format("woff2"); }

:root {
  --grund: #0d1117;
  --panel: #141a21;
  --kachel: #1a2129;
  --linie: #26303b;
  --text: #e6edf3;
  --leise: #8b97a5;
  --orange: #f26a1b;
  --orange-hell: #ff8a45;
  --orange-matt: rgba(242, 106, 27, 0.14);
  --gruen: #3fb950;
  --gelb: #d29922;
  --rot: #f85149;
  --schrift: "IBM Plex Sans", system-ui, sans-serif;
  --kopfschrift: "Barlow Condensed", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --breite: 72rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; display: flex; flex-direction: column; background: var(--grund); color: var(--text);
  font: 16px/1.55 var(--schrift); }
a { color: var(--orange-hell); }
a:hover { color: var(--orange); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--kopfschrift); font-weight: 700; letter-spacing: .02em; line-height: 1.1; }

/* Kopfzeile */
.kopf { display: flex; align-items: center; gap: .75rem; padding: .75rem max(1rem, calc((100% - var(--breite)) / 2));
  border-bottom: 1px solid var(--linie); background: linear-gradient(180deg, #11161c, var(--grund));
  position: sticky; top: 0; z-index: 5; }
.marke { display: flex; align-items: center; flex-shrink: 0; }
.marke img { display: block; height: 48px; width: auto; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Startseiten-Banner: je Aufruf eines von zwei Bildern (Wechsel macht der Server) */
.banner { margin: 0 0 1.5rem; }
.banner-bild { display: block; width: 100%; height: auto; }

/* Menü (Hamburger, ohne JavaScript: <details>) */
.menue { position: static; }
.menue > summary { list-style: none; display: flex; align-items: center; gap: .5rem; cursor: pointer; padding: .4rem .7rem;
  border-radius: 6px; box-shadow: inset 0 0 0 1px var(--linie); font: 600 1rem var(--kopfschrift); letter-spacing: .08em;
  text-transform: uppercase; color: var(--text); user-select: none; }
.menue > summary::-webkit-details-marker { display: none; }
.menue > summary:hover, .menue[open] > summary { box-shadow: inset 0 0 0 1px var(--orange); }
.burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 20px; height: 20px; }
.burger i { display: block; height: 2px; background: currentColor; border-radius: 1px; transition: transform .15s, opacity .15s; }
.menue[open] .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menue[open] .burger i:nth-child(2) { opacity: 0; }
.menue[open] .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menue-tafel { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--panel);
  border-bottom: 1px solid var(--linie); box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  padding: 1.25rem max(1rem, calc((100% - var(--breite)) / 2)) 1.5rem;
  display: grid; gap: 1.25rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  max-height: calc(100vh - 4rem); overflow-y: auto; }
.menue-gruppe h2 { margin: 0 0 .5rem; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.menue-gruppe ul { list-style: none; margin: 0; padding: 0; }
.menue-gruppe a { display: block; padding: .45rem 0; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--linie); }
.menue-gruppe li:last-child a { border-bottom: 0; }
.menue-gruppe a:hover { color: var(--orange-hell); }
.menue-gruppe a.aktiv { color: var(--orange-hell); font-weight: 600; }
.schloss { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--leise);
  border: 1px solid var(--linie); border-radius: 4px; padding: 0 .3rem; margin-left: .3rem; vertical-align: middle; }
.menue-abmelden { grid-column: 1 / -1; margin: 0; }

/* Inhalt */
.inhalt { flex: 1; width: 100%; max-width: var(--breite); margin: 0 auto; padding: 2rem 1rem 3rem; }
.buehne { padding: clamp(1rem, 4vw, 2.5rem) 0; border-left: 3px solid var(--orange); padding-left: clamp(1rem, 3vw, 2rem); }
.kicker { margin: 0 0 .5rem; font: 600 .9rem var(--kopfschrift); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.lead { margin: 0; max-width: 40rem; font-size: 1.15rem; color: var(--leise); }

h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 1rem; }
h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
h3 { font-size: 1.2rem; margin: 0 0 .5rem; }
.block { margin-top: 2.5rem; }
.block > h2:first-child { margin-top: 0; }
.leer { color: var(--leise); font-style: italic; }
.gross { font: 700 1.8rem/1.2 var(--kopfschrift); color: var(--orange-hell); margin: 0 0 .5rem; }
.zurueck { margin: 0 0 1rem; }
.zurueck a { color: var(--leise); text-decoration: none; }
.zurueck a:hover { color: var(--text); }

/* Sprunglink (Tastatur) */
.sprung { position: absolute; left: -999px; top: 0; padding: .5rem 1rem; background: var(--orange); color: #000; z-index: 10; }
.sprung:focus { left: 1rem; }

/* Knöpfe */
.knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 0; }
.knopf { display: inline-block; padding: .65rem 1.2rem; border-radius: 6px; background: var(--orange); color: #111;
  font: 700 1.05rem var(--kopfschrift); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.knopf:hover { background: var(--orange-hell); color: #111; }
.knopf.zweit { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--linie); }
.knopf.zweit:hover { box-shadow: inset 0 0 0 1px var(--orange); color: var(--text); }

/* Status */
.status { display: flex; flex-wrap: wrap; gap: 1rem; }
.status-wert { flex: 1 1 14rem; padding: 1.25rem 1.5rem; background: var(--panel); border: 1px solid var(--linie);
  border-radius: 10px; display: flex; flex-direction: column; gap: .25rem; }
.status-zahl { font: 700 2.6rem/1 var(--kopfschrift); color: var(--text); }
.status-label { color: var(--leise); font-size: .9rem; }
/* Startseite (Georg 14.10.): halb so hoch, Zahl und Text nebeneinander, Zahl kleiner, Text größer */
.status-kompakt .status-wert { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: .2rem .75rem; padding: .6rem 1.25rem; }
.status-kompakt .status-zahl { font-size: 1.6rem; }
.status-kompakt .status-label { font-size: 1.05rem; color: var(--text); }
.status-kompakt .neustart { flex-wrap: nowrap; align-items: center; }
.status-kompakt .neustart .status-zahl { order: 2; margin-left: auto; }  /* Uhrzeit rechtsbündig (Georg 14.10.) */
.status-kompakt .status-bis { font-weight: 700; white-space: nowrap; }
.status-hinweis { flex-basis: 100%; margin: 0; padding: .75rem 1rem; border-radius: 8px; border-left: 3px solid var(--gelb);
  background: rgba(210, 153, 34, .1); }

/* Karten (News, Hilfe) */
.karten { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.karte a { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1rem 1.25rem; text-decoration: none;
  background: var(--panel); border: 1px solid var(--linie); border-radius: 10px; color: var(--text); }
.karte a:hover { border-color: var(--orange); }
.karte-datum { font-size: .8rem; color: var(--orange); letter-spacing: .04em; }
.karte-titel { font: 600 1.25rem/1.2 var(--kopfschrift); letter-spacing: .02em; }
.karte-text { color: var(--leise); font-size: .95rem; }
.karte-symbol { margin-right: .5rem; }
.hilfe-neu .karte a { border-color: rgba(242, 106, 27, .45); background: var(--orange-matt); }
.hilfe-neu .karte a:hover { border-color: var(--orange); }
.gross-karte .karte-titel { font-size: 1.5rem; }
.gross-karte .karte-symbol { font-size: 1.7rem; }
.karte-bald { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1rem 1.25rem;
  border: 1px dashed var(--linie); border-radius: 10px; }

/* Hall of Fame */
.tafeln { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.tafel { background: var(--panel); border: 1px solid var(--linie); border-radius: 10px; padding: 1rem 1.25rem; }
.tafel h3 { color: var(--orange-hell); }
.tafel ol { margin: 0; padding: 0; list-style: none; counter-reset: platz; }
.tafel li { counter-increment: platz; display: flex; gap: .5rem; padding: .3rem 0; border-top: 1px solid var(--linie); }
.tafel li:first-child { border-top: 0; }
.tafel li::before { content: counter(platz) "."; width: 1.5rem; color: var(--leise); }
.tafel li:first-child .name { font-weight: 600; }
.tafel .name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tafel .wert { font-family: var(--mono); font-size: .9rem; color: var(--leise); white-space: nowrap; }
.tafel.hof h3 { margin-bottom: .1rem; letter-spacing: .06em; }
.hof-unter { margin: 0 0 .6rem; font-size: .85rem; color: var(--leise); }
.tafel.hof ol { counter-reset: none; }
.tafel.hof li { counter-increment: none; }
.tafel.hof li::before { content: none; }
.platz-nr { width: 2rem; flex-shrink: 0; color: var(--leise); font-variant-numeric: tabular-nums; }
.tafel.hof li.ich { background: var(--orange-matt); border-radius: 4px; }
.tafel.hof li.ich .name { color: var(--orange-hell); }
.hof-ich { display: flex; gap: .5rem; padding: .45rem 0 0; margin-top: .35rem; border-top: 3px solid var(--linie); }
.hof-ich .name { flex: 1; font-weight: 600; color: var(--orange-hell); }
.hof-ich .wert { font-family: var(--mono); font-size: .9rem; white-space: nowrap; }

/* Tabellen */
.tabelle { width: 100%; max-width: 36rem; border-collapse: collapse; }
.tabelle th, .tabelle td { text-align: left; padding: .5rem .75rem; border-bottom: 1px solid var(--linie); }
.tabelle th { font: 600 .85rem var(--kopfschrift); letter-spacing: .08em; text-transform: uppercase; color: var(--leise); }
.tabelle .rechts { text-align: right; font-family: var(--mono); }
/* Voting (Georg 08.10.): „Pro Stimme“ + drei Schritte, Monatspreise als Treppchen */
.vote-oben { display: grid; gap: 1rem; align-items: stretch; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.vote-pro h2 { margin: 0 0 .4rem; border: 0; padding: 0; font-size: 1.15rem; color: var(--leise); }
.vote-pro .gross { font-size: 2.2rem; margin: 0; }
.vote-pro .gross .leise { font-size: 1.2rem; }
.vote-gesamt { margin: .7rem 0 0 !important; }
.vote-gesamt b { color: var(--orange-hell); }
.vote-schritte { list-style: none; counter-reset: schritt; padding: 0; margin: 0; display: grid; gap: .6rem; align-content: center; }
.vote-schritte li { counter-increment: schritt; display: flex; gap: .8rem; align-items: baseline; }
.vote-schritte li::before { content: counter(schritt); flex: 0 0 1.9rem; height: 1.9rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--orange); color: #111; font: 700 1rem var(--kopfschrift); }
.treppchen { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 1rem; align-items: end;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.treppchen li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; }
.treppchen .medaille { font-size: 2.6rem; line-height: 1; }
.treppchen b { font: 700 1.25rem var(--kopfschrift); color: var(--orange-hell); letter-spacing: .04em; }
.treppchen .plus { display: block; font-weight: 700; color: var(--orange-hell); }
.treppchen .platz-1 { border-color: rgba(242, 106, 27, .55); padding-block: 2rem; }
.treppchen .platz-1 .medaille { font-size: 3.4rem; }
/* Digitales Treppchen der Voting-Rangliste (Georg 10.10.): 2 – 1 – 3, Stufen mit leuchtenden Ziffern */
.podest { list-style: none; padding: 0; margin: 1.5rem 0 2rem; max-width: 36rem; display: grid;  /* bündig mit der Tabelle darunter */
  grid-template-columns: repeat(3, 1fr); gap: .6rem; align-items: end; }
.podest-platz { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .25rem; min-width: 0; }
.podest-platz.p1 { order: 2; }
.podest-platz.p2 { order: 1; }
.podest-platz.p3 { order: 3; }
.podest-medaille { font-size: 2.2rem; line-height: 1; }
.p1 .podest-medaille { font-size: 2.9rem; filter: drop-shadow(0 0 10px rgba(242, 106, 27, .55)); }
.podest-name { font: 700 1.1rem/1.2 var(--kopfschrift); letter-spacing: .03em; max-width: 100%; overflow-wrap: anywhere; }
.p1 .podest-name { font-size: 1.35rem; color: var(--orange-hell); }
.podest-stimmen { color: var(--leise); font-size: .9rem; margin-bottom: .35rem; }
.podest-stimmen b { color: var(--text); font-family: var(--mono); }
.podest-stufe { width: 100%; display: grid; place-items: center; border-radius: 8px 8px 0 0;
  border: 1px solid rgba(242, 106, 27, .45); border-bottom: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 4px),
    linear-gradient(180deg, rgba(242, 106, 27, .22), var(--panel) 70%);
  box-shadow: inset 0 1px 0 rgba(242, 106, 27, .6), 0 -6px 24px rgba(242, 106, 27, .12); }
.p1 .podest-stufe { height: 10rem; border-color: var(--orange); }
.p2 .podest-stufe { height: 7rem; }
.p3 .podest-stufe { height: 5rem; }
.podest-zahl { font: 700 3.2rem/1 var(--mono); color: var(--orange); text-shadow: 0 0 8px rgba(242, 106, 27, .8), 0 0 22px rgba(242, 106, 27, .4); }
.p1 .podest-zahl { font-size: 4.4rem; }
.podest::after { content: ""; grid-column: 1 / -1; order: 4; height: 4px; margin-top: -.6rem; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent); box-shadow: 0 0 12px rgba(242, 106, 27, .6); }
@media (max-width: 30rem) {
  .podest-name { font-size: .95rem; }
  .p1 .podest-name { font-size: 1.05rem; }
  .podest-zahl { font-size: 2.4rem; }
  .p1 .podest-zahl { font-size: 3.2rem; }
}
@media (min-width: 50rem) {  /* breit: echtes Treppchen 2 – 1 – 3 */
  .treppchen { grid-template-columns: repeat(3, 1fr); }
  .treppchen .platz-2 { order: 1; padding-block: 1.4rem; }
  .treppchen .platz-1 { order: 2; }
  .treppchen .platz-3 { order: 3; }
}

/* Fließtext (Hilfe, Regeln, News, Rechtliches) */
.text { max-width: 44rem; }
.text h2 { font-size: 1.5rem; margin: 2rem 0 .75rem; padding-bottom: .3rem; border-bottom: 1px solid var(--linie); }
.text h3 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; }
.text li { margin: .25rem 0; }
.text blockquote { margin: 1rem 0; padding: .75rem 1rem; border-left: 3px solid var(--orange); background: var(--orange-matt); }
.text blockquote p { margin: 0; }
.text table { border-collapse: collapse; margin: 1rem 0; display: block; overflow-x: auto; }
.text th, .text td { padding: .5rem .75rem; border-bottom: 1px solid var(--linie); text-align: left; }
.text hr { border: 0; border-top: 1px solid var(--linie); margin: 2rem 0; }
.text code { font-family: var(--mono); background: var(--kachel); padding: .1rem .35rem; border-radius: 4px; }
.text img { max-width: 100%; }
.bildlink { display: inline-block; font-size: .9rem; color: var(--leise); }
.quelle { margin-top: 2rem; font-size: .85rem; color: var(--leise); overflow-wrap: anywhere; }

/* Entwurf */
.entwurf-band { padding: .6rem 1rem; border-radius: 8px; background: rgba(210, 153, 34, .14); border: 1px solid var(--gelb);
  color: var(--gelb); font-weight: 600; }
.marke-entwurf { font: 600 .7rem var(--schrift); text-transform: uppercase; letter-spacing: .08em; color: var(--gelb);
  border: 1px solid var(--gelb); border-radius: 4px; padding: .05rem .35rem; vertical-align: middle; }

/* Anmeldung / Konto */
.wer { margin-left: auto; }
@media (max-width: 420px) { .menue-wort { display: none; } .marke img { height: 40px; } }
.wer-name { color: var(--text); text-decoration: none; font: 600 1rem var(--kopfschrift); letter-spacing: .06em;
  padding: .4rem .75rem; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--linie); }
.wer-name:hover, .wer-name.aktiv { box-shadow: inset 0 0 0 1px var(--orange); color: var(--text); }
.knopf.klein { padding: .35rem .8rem; font-size: .9rem; }
.knopf.rot { background: var(--rot); color: #fff; }
.knopf.rot:hover { background: #ff6b63; }
button.knopf { border: 0; cursor: pointer; }
.schmal { max-width: 36rem; }
.mono { font-family: var(--mono); }
.hinweis { padding: .6rem 1rem; border-radius: 8px; border-left: 3px solid var(--leise); background: var(--panel); }
.hinweis.rot { border-color: var(--rot); }
.hinweis.gelb { border-color: var(--gelb); }
.hinweis.gruen { border-color: var(--gruen); }
.daten { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.5rem; margin: 0 0 1rem; }
.daten dt { color: var(--leise); }
.daten dd { margin: 0; overflow-wrap: anywhere; }
.zeile { display: inline-block; margin: 1rem .5rem 0 0; }
.gefahr { padding: 1.25rem 1.5rem; border: 1px solid rgba(248, 81, 73, .4); border-radius: 10px; }
.gefahr h2 { color: var(--rot); margin-top: 0; }
.loeschen { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.loeschen label { flex-basis: 100%; }
.loeschen input { padding: .55rem .75rem; border-radius: 6px; border: 1px solid var(--linie); background: var(--grund);
  color: var(--text); font: inherit; }
.marke-login { font: 600 .7rem var(--schrift); text-transform: uppercase; letter-spacing: .08em; color: var(--orange-hell);
  border: 1px solid var(--orange); border-radius: 4px; padding: .05rem .35rem; vertical-align: middle; }

/* Spielerbereich */
.tabelle.breit { max-width: 100%; }
.tabelle-rahmen { overflow-x: auto; }
.tabelle .plus { color: var(--gruen); }
.tabelle .minus { color: var(--rot); }
/* Grund der Bewegung (Geld/Gold/Ruhm): Quelle fehlt noch (Log-Importe) – Spalte ausgegraut, Georg 10.10. */
.tabelle .grund-offen { color: var(--leise); opacity: .5; font-style: italic; }
.nowrap { white-space: nowrap; }
.klein { font-size: .85rem; }
.blaettern { display: flex; gap: .5rem; margin-top: 1rem; }
.punkt { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; vertical-align: middle; margin-right: .2rem; }
.punkt.gruen { background: var(--gruen); }
.punkt.orange { background: var(--orange); }
/* isolation: Leaflet bringt Ebenen bis z-index 1000 mit – eigene Ebene, sonst liegt die Karte über dem aufgeklappten Menü */
.karte-feld { isolation: isolate; height: min(75vh, 720px); border: 1px solid var(--linie); border-radius: 10px; background: #0a0e13; }
.legende { list-style: none; padding: 0; display: flex; gap: 1.5rem; flex-wrap: wrap; color: var(--leise); font-size: .9rem; }
/* leaflet.css wird nach site.css geladen: darum alles Leaflet-Eigene mit .karte-feld davor (höhere Spezifität) */
.karte-feld.leaflet-container { font: inherit; background: #0a0e13; }
/* Live-Karte: Leiste, Symbole, Orte (Farben wie die alte Karte), Pins */
.karte-leiste { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; }
.karte-leiste .knopf[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--orange); background: var(--orange-matt); }
.karte-feld .k-symbol { display: flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1;
  filter: drop-shadow(0 0 2px #000); }
.karte-feld .k-fahrzeug { font-size: 18px; filter: drop-shadow(0 0 3px #ff8c00); }
.karte-feld .k-pin { font-size: 22px; cursor: grab; }
.karte-feld .k-ort { border-radius: 50%; background: rgba(13, 17, 23, .85); border: 2px solid var(--linie); font-size: 13px; }
.karte-feld .k-ort.bunker { border-color: #e0721f; }
.karte-feld .k-ort.secret { border-color: #9b59b6; }
.karte-feld .k-ort.trader { border-color: #f1c40f; }
.karte-feld .k-ort-text { color: #cdc6ba; font-size: 11px; font-weight: 600; text-align: center; white-space: nowrap;
  text-shadow: 0 0 3px #000, 0 0 3px #000; pointer-events: none; }
.karte-feld .leaflet-control-layers { background: rgba(13, 17, 23, .92); color: var(--text); border: 1px solid var(--linie) !important;
  border-radius: 8px; font-size: .85rem; }
.karte-feld .leaflet-control-layers label { margin: .15rem 0; }
.k-legende.l.bunker { color: #f0a868; }
.k-legende.l.secret { color: #c39bd3; }
.k-legende.l.trader { color: #f7dc6f; }
.k-legende.l-text { color: #cdc6ba; }
.k-legende.l-wege { color: #7fe3ff; }
.k-legende.l-quest { color: #c9a8ff; }
.k-legende.l-cargo { color: #e8e8e8; }
.k-legende.l-bauverbot { color: #f08a84; }
.legende .legende-flaeche { display: inline-block; width: .9em; height: .9em; border-radius: 2px; vertical-align: -1px; }
.legende .legende-flaeche.rot { background: rgba(229, 83, 75, .45); border: 1px solid #e5534b; }
.karte-feld .leaflet-popup-content-wrapper, .karte-feld .leaflet-popup-tip { background: var(--panel); color: var(--text); }
.k-pin-neu { display: flex; flex-direction: column; gap: .5rem; min-width: 12rem; }
.k-pin-arten { display: grid; grid-template-columns: repeat(4, 1fr); gap: .25rem; }
.k-pin-arten button { font-size: 1.1rem; padding: .25rem; border-radius: 6px; border: 1px solid var(--linie);
  background: var(--kachel); cursor: pointer; }
.k-pin-arten button[aria-pressed="true"] { border-color: var(--orange); background: var(--orange-matt); }
.k-pin-neu input { padding: .4rem .5rem; border-radius: 6px; border: 1px solid var(--linie); background: var(--grund); color: var(--text); }
.k-pin-loeschen { margin-top: .5rem; }
.karte-feld .leaflet-control-layers { box-shadow: 0 4px 14px rgba(0, 0, 0, .5); padding: .4rem .6rem; }
.karte-feld .leaflet-control-layers-selector { accent-color: var(--orange); }
.karte-feld .leaflet-bar a { background: var(--panel); color: var(--text); border-bottom-color: var(--linie); }
.karte-feld .leaflet-bar a:hover { background: var(--kachel); color: var(--orange); }
.karte-feld .leaflet-bar { border: 1px solid var(--linie); }
.karte-feld .leaflet-popup-content-wrapper { border: 1px solid var(--linie); }
/* Sektoren A0–Z4 wie die alte Karte; Größe wächst mit dem Zoom (--sektor-groesse setzt karte.js) */
.karte-feld .k-sektor { font: 600 var(--sektor-groesse, 14px)/1 var(--kopfschrift); color: #fff; letter-spacing: 1px;
  text-shadow: 0 0 4px rgba(0, 0, 0, .7); white-space: nowrap; pointer-events: none; user-select: none; }

/* Konten */
.konten { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.konto-kachel { display: flex; flex-direction: column; gap: .25rem; padding: 1.1rem 1.4rem; text-decoration: none; color: var(--text);
  background: var(--panel); border: 1px solid var(--linie); border-radius: 10px; }
.konto-kachel:hover { border-color: var(--orange); color: var(--text); }
.konto-kachel.aktiv { border-color: var(--orange); box-shadow: inset 0 -3px 0 var(--orange); }

/* Paperdoll */
.paperdoll { display: grid; grid-template-columns: 1fr minmax(120px, 200px) 1fr; gap: 1rem; align-items: center;
  padding: 1.25rem; background: radial-gradient(ellipse at center, rgba(242, 106, 27, .08), transparent 65%), var(--panel);
  border: 1px solid var(--linie); border-radius: 12px; }
.paperdoll .figur { width: 100%; height: auto; }
.plaetze { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.platz { display: flex; align-items: center; gap: .6rem; padding: .35rem; border: 1px solid var(--linie);
  border-radius: 8px; background: var(--kachel); min-width: 0; }
.plaetze.links .platz { flex-direction: row-reverse; text-align: right; }
.platz.leer { opacity: .5; }
.platz-bild { flex: 0 0 56px; height: 56px; border-radius: 6px; background: #0a0e13; display: grid; place-items: center; }
.platz-bild img { width: 52px; height: 52px; object-fit: contain; }
.platz-text { display: flex; flex-direction: column; min-width: 0; }
.platz-titel { font: 600 .75rem var(--kopfschrift); letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.platz-name { font-size: .9rem; overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 640px) {
  .paperdoll { grid-template-columns: 1fr 1fr; }
  .paperdoll .figur { grid-column: 1 / -1; grid-row: 1; max-width: 160px; margin: 0 auto; }
  .plaetze.links .platz { flex-direction: row; text-align: left; }
}

/* Tickets und Formulare */
.formular { display: flex; flex-direction: column; gap: .5rem; max-width: 40rem; margin-top: 1rem; }
.formular.reihe { flex-direction: row; flex-wrap: wrap; align-items: center; max-width: none; }
.formular input, .formular textarea, .formular select { padding: .6rem .75rem; border-radius: 6px; border: 1px solid var(--linie);
  background: var(--grund); color: var(--text); font: inherit; }
.formular textarea { resize: vertical; }
.formular button { align-self: flex-start; }
.ticket-liste { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-direction: column; gap: .5rem; }
.ticket-liste a { display: flex; flex-direction: column; gap: .25rem; padding: .8rem 1rem; background: var(--panel);
  border: 1px solid var(--linie); border-radius: 8px; color: var(--text); text-decoration: none; }
.ticket-liste a:hover { border-color: var(--orange); }
.ticket-titel { font-weight: 600; }
.ticket-meta { color: var(--leise); font-size: .85rem; }
.neu { font: 600 .7rem var(--schrift); text-transform: uppercase; letter-spacing: .06em; color: #111; background: var(--orange);
  border-radius: 4px; padding: .05rem .35rem; }
.status-marke { font-weight: 600; }
.status-marke.neu { color: #3498db; }
.status-marke.geclaimt { color: #f39c12; }
.status-marke.in_arbeit { color: #b07cd8; }
.status-marke.rueckfrage { color: #e74c3c; }
.status-marke.abgeschlossen { color: #2ecc71; }

/* Ticket-Board (Kanban wie auf der bisherigen Seite) */
.ta-zaehler { margin: 0 0 .5rem; }
.ta-board { display: grid; gap: .75rem; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; margin-top: 1rem; }
@media (max-width: 900px) { .ta-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ta-board { grid-template-columns: 1fr; } }
.ta-spalte { --farbe: #888; background: var(--panel); border: 1px solid var(--linie); border-top: 3px solid var(--farbe);
  border-radius: 10px; padding: .6rem; min-height: 6rem; }
.ta-spalte[data-status=neu] { --farbe: #3498db; }
.ta-spalte[data-status=geclaimt] { --farbe: #f39c12; }
.ta-spalte[data-status=in_arbeit] { --farbe: #b07cd8; }
.ta-spalte[data-status=rueckfrage] { --farbe: #e74c3c; }
.ta-spalte.ziel { outline: 2px dashed var(--farbe); outline-offset: 2px; }
.ta-spalte h2 { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 .5rem; font-size: .9rem;
  letter-spacing: .14em; text-transform: uppercase; }
.ta-spalte-titel { color: var(--farbe); }
.ta-anzahl { color: var(--leise); font-size: .8rem; }
.ta-karten { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; min-height: 2rem; }
.ta-karte { border-radius: 6px; background: var(--kachel); border: 1px solid var(--linie); border-left: 3px solid var(--farbe);
  cursor: grab; }
.ta-karte:hover { border-color: var(--farbe); }
.ta-karte.zieht { opacity: .4; cursor: grabbing; }
.ta-karte.ungelesen { box-shadow: 0 0 0 1px var(--farbe); }
.ta-karte a { display: flex; flex-direction: column; gap: .15rem; padding: .5rem .65rem; color: var(--text); text-decoration: none; }
.ta-id { font: 600 .75rem var(--kopfschrift); letter-spacing: .06em; color: var(--farbe); }
.ta-bild { float: right; }
.ta-titel { font: 600 .95rem/1.25 var(--kopfschrift); letter-spacing: .02em; overflow-wrap: anywhere; }
.ta-meta { display: flex; flex-wrap: wrap; gap: .1rem .5rem; font-size: .75rem; color: var(--leise); }
.ta-neu { background: #e74c3c; color: #fff; border-radius: 8px; padding: 0 .4rem; font-weight: 600; }
.verlauf { list-style: none; padding: 0; margin: 1.5rem 0; display: flex; flex-direction: column; gap: .75rem; max-width: 46rem; }
.nachricht { padding: .8rem 1rem; border-radius: 10px; background: var(--panel); border: 1px solid var(--linie); }
.nachricht.team { border-left: 3px solid var(--orange); background: var(--kachel); }
.nachricht-kopf { font-size: .85rem; color: var(--leise); margin-bottom: .35rem; }
.nachricht-text { white-space: pre-wrap; overflow-wrap: break-word; }
.marke-team { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--orange-hell); border: 1px solid var(--orange);
  border-radius: 4px; padding: 0 .3rem; }
.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.filter a { padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--linie); color: var(--leise); text-decoration: none; }
.filter a.aktiv { border-color: var(--orange); color: var(--text); }
.filter.klein { align-items: center; margin: .5rem 0; font-size: .85rem; }
.filter.klein a { padding: .2rem .65rem; }
.werkzeug { padding-top: 1rem; border-top: 1px solid var(--linie); }
.befund { display: inline-block; font-size: .75rem; padding: 0 .35rem; margin: .1rem 0; border: 1px solid var(--gelb);
  border-radius: 4px; color: var(--gelb); }
.knoepfe-klein { display: flex; flex-wrap: wrap; gap: .3rem; }
.knoepfe-klein .zeile { margin: .2rem 0 0; }

.anhaenge { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.anhaenge img { max-height: 160px; max-width: 100%; border-radius: 8px; border: 1px solid var(--linie); }

/* Features (Startseite ohne Login) – reine Info, keine Links */
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.feature { padding: 1rem 1.25rem; background: var(--panel); border: 1px solid var(--linie); border-radius: 10px; }
.feature:hover { border-color: var(--orange); }  /* Rahmen wie bei den News-Karten – aber kein Link */
.feature.breit { grid-column: 1 / -1; border-color: rgba(242, 106, 27, .45); }
.feature h3 { margin: 0 0 .4rem; color: var(--orange-hell); font-size: 1.15rem; letter-spacing: .04em; }
.feature p { margin: 0; color: var(--leise); }
.feature.mit-bild { display: flex; gap: 1rem; align-items: center; }
.feature-link { margin-top: .6rem !important; }
.feature-link a { font-weight: 600; }
.verbinden { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: 1rem 0 0; font-size: .95rem; }
.verbinden dt { color: var(--leise); }
.verbinden dd { margin: 0; overflow-wrap: anywhere; user-select: all; }
.feature.mit-bild img { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 8px; }
.bald { font: 600 .7rem var(--schrift); text-transform: uppercase; letter-spacing: .08em; color: var(--gruen);
  border: 1px solid var(--gruen); border-radius: 4px; padding: .05rem .35rem; vertical-align: middle; }

/* Server-Werte (scummetrics) */
.werte-gitter { display: grid; gap: .75rem; margin: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.block-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; }
.block-kopf h2 { margin-bottom: .5rem; }
.wert-kachel { position: relative; display: flex; flex-direction: column; }
.werte-gitter .wert-kachel { padding: 1rem 1.1rem .8rem; }
.wert-kachel dd { margin-bottom: .6rem !important; }
.spark { display: block; width: 100%; height: auto; aspect-ratio: 300 / 64; overflow: visible; margin-top: auto; touch-action: pan-y; }
.spark-linie { fill: none; stroke: #ec6618; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.spark-flaeche { fill: rgba(236, 102, 24, .12); stroke: none; }
.spark-jetzt { fill: #ec6618; stroke: var(--panel); stroke-width: 2; }
.spark-hilfslinie { stroke: var(--leise); stroke-width: 1; vector-effect: non-scaling-stroke; }
.spark-zeiger { fill: var(--text); stroke: var(--panel); stroke-width: 2; }
.spark-spanne { display: flex; justify-content: space-between; margin: .3rem 0 0; font-size: .75rem; color: var(--leise); }
.spark-leer { margin: auto 0 0; font-size: .85rem; color: var(--leise); }
.spark-tipp { position: absolute; top: .6rem; right: .8rem; padding: .2rem .5rem; border-radius: 6px; background: var(--grund);
  border: 1px solid var(--linie); font-size: .8rem; color: var(--text); pointer-events: none; white-space: nowrap; }
.streifen { display: block; width: 100%; height: 16px; margin-top: auto; border-radius: 4px; overflow: hidden; }
.streifen .an { fill: var(--gruen); }
.streifen .aus { fill: var(--rot); }
.werte-gitter > div { padding: .8rem 1rem; background: var(--panel); border: 1px solid var(--linie); border-radius: 10px; }
.werte-gitter dt { font-size: .8rem; color: var(--leise); }
.werte-gitter dd { margin: .15rem 0 0; font: 700 1.5rem/1.2 var(--kopfschrift); }
.werte-gitter dd.klein { font-size: .95rem; }
.gruen-text { color: var(--gruen); }
.rot-text { color: var(--rot); }

/* Bilder in Geschichten (Kurator) – Tipp öffnet groß */
.lore-bild { display: block; margin: 1.25rem 0; text-decoration: none; color: var(--leise); }
.lore-bild img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--linie);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.lore-bild:hover img { border-color: var(--orange); }
.lore-text { display: block; margin-top: .4rem; font-size: .8rem; font-style: italic; }
.lore-bild.mitte { max-width: 32rem; margin-left: auto; margin-right: auto; text-align: center; }
.lore-bild.breit { max-width: none; }
@media (min-width: 760px) {
  .lore-bild.rechts { float: right; width: min(42%, 20rem); margin: .25rem 0 1rem 1.5rem; }
  .text h2 { clear: both; }
}

/* Steam-Anmeldeknopf */
.knopf.steam { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; }
.knopf.steam img { width: 22px; height: 22px; }
.knopf.breit { display: flex; justify-content: center; width: 100%; padding: .85rem 1.2rem; font-size: 1.15rem; }
.knoepfe:has(.knopf.breit) { display: block; }
.knopf.topgames { align-items: center; justify-content: center; gap: 1rem; font-size: 1.3rem; font-weight: 700; }
.knopf.topgames img { width: auto; height: 2.6rem; }

/* Schimmer beim Überfahren (Kurator-Kachel) */
.schimmer { position: relative; overflow: hidden; }
.schimmer::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 30%, rgba(255, 200, 150, .22) 45%, rgba(255, 255, 255, .35) 50%,
    rgba(255, 200, 150, .22) 55%, transparent 70%); }
.schimmer:hover::after { transform: translateX(120%); transition: transform .9s ease-in-out; }
@media (prefers-reduced-motion: reduce) { .schimmer:hover::after { transition: none; transform: translateX(-120%); } }

/* Regeln: Kacheln */
.regeln-kasten { padding: 1.1rem 1.4rem; background: var(--orange-matt); border: 1px solid rgba(242, 106, 27, .4);
  border-left: 3px solid var(--orange); border-radius: 10px; }
.regeln-kasten h3 { margin: 0 0 .4rem; color: var(--orange-hell); font-size: 1.2rem; }
.regeln-kasten p { margin: 0 0 .8rem; }
.regeln-kasten ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
/* Grafik „Auf einen Blick“ (Georg 08.10.): ab Tablet-Breite ersetzt sie Überschrift und Liste im Kasten,
   auf dem Handy wäre die Schrift im Bild zu klein – dort bleibt der Text. */
.regeln-bild { display: block; width: 100%; height: auto; margin: 0 0 .5rem; } /* Rand ist im Bild transparent – kein Rahmen */
@media (min-width: 46rem) {
  .regeln-kasten.mit-bild h3, .regeln-kasten.mit-bild ul { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .regeln-kasten.mit-bild p { margin: 0; }
}
@media (max-width: 45.99rem) { .regeln-bild { display: none; } }
.regel-kacheln { display: grid; gap: 1rem; margin-top: 2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); }
.regel-kachel { padding: 1.1rem 1.3rem; background: var(--panel); border: 1px solid var(--linie); border-radius: 12px; }
.regel-kachel:hover { border-color: var(--orange); }
.regel-kachel h2 { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 .5rem; font-size: 1.35rem;
  border: 0; padding: 0; color: var(--orange-hell); }
.regel-symbol { font-size: 1.4rem; line-height: 1; }
.regel-kachel .text { max-width: none; }
.regel-kachel .text ul { padding-left: 1.1rem; margin: .25rem 0; }
.regel-kachel .text li { margin: .3rem 0; }
.regel-kachel .text li::marker { color: var(--orange); }
.regel-kachel .text p { margin: .5rem 0 0; color: var(--leise); font-size: .95rem; }
.marke-neu { font: 600 .7rem var(--schrift); text-transform: uppercase; letter-spacing: .06em; color: var(--gelb);
  border: 1px solid var(--gelb); border-radius: 4px; padding: .1rem .4rem; }
.regeln-schluss { margin-top: 2rem; padding: 1rem 1.25rem; border-left: 3px solid var(--orange); background: var(--panel);
  border-radius: 0 10px 10px 0; }
.regeln-schluss p { margin: .3rem 0; }

/* Fußzeile */
.fuss { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem;
  padding: 1rem max(1rem, calc((100% - var(--breite)) / 2)); border-top: 1px solid var(--linie); font-size: .85rem; }
.fuss-links { display: flex; gap: 1rem; }
.fuss-links a { color: var(--leise); }
.leise { color: var(--leise); }

/* Vorschau zum Vorzeigen (KBZ_NUR_ANSICHT) */
.vorschau-leiste { margin: 0; padding: .4rem 1rem; text-align: center; font-size: .9rem;
  background: var(--orange-matt); border-bottom: 1px solid rgba(242, 106, 27, .4); color: var(--orange-hell); }

/* Dashboard (angemeldet, Georg 09.10.): schmale Leiste mit allem zum Verbinden */
.schnellleiste { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; margin: 1rem 0 0;
  padding: .6rem 1rem; background: var(--panel); border: 1px solid var(--linie); border-left: 3px solid var(--orange); border-radius: 10px; }
.schnellleiste dl { display: flex; flex-wrap: wrap; gap: .4rem 1.75rem; margin: 0; flex: 1 1 auto; min-width: 0; }
.schnellleiste dl > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; min-width: 0; }
.schnellleiste dt { color: var(--leise); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.schnellleiste dd { margin: 0; font-size: .9rem; overflow-wrap: anywhere; user-select: all; }
.schnellleiste .knopf { flex: 0 0 auto; margin-left: auto; }
/* doppelt so groß wie die Abschnitts-Überschriften (h2 1.6rem), am Handy kleiner */
.begruessung { margin: 1.75rem 0 0; font-size: clamp(2rem, 7vw, 3.2rem); line-height: 1.1; overflow-wrap: anywhere; }
.begruessung-name { color: var(--orange-hell); }
.begruessung-zusatz { margin: .4rem 0 0; color: var(--leise); }
.karte-zahl { font: 600 1.9rem/1.1 var(--kopfschrift); color: var(--orange); }

/* Spielerdaten-Grafik (Dashboard): Werte sitzen ab 40rem in den Feldern der Grafik (Maße aus dem 2000×744-Bild) */
.spielerdaten { margin: 1rem 0 0; position: relative; container-type: inline-size; }
.spielerdaten img { display: block; width: 100%; height: auto; }
.spielerdaten dl { display: grid; gap: .4rem; margin: .75rem 0 0; }
.spielerdaten dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .9rem;
  background: var(--panel); border: 1px solid var(--linie); border-radius: 8px; }
.spielerdaten dt { color: var(--leise); }
.spielerdaten dd { margin: 0; font-weight: 600; color: #fff; }
@media (min-width: 40rem) {
  .spielerdaten dl { display: block; margin: 0; }
  .spielerdaten dl > div { position: absolute; left: 67.4%; width: 11.8%; height: 7.8%; padding: 0; background: none; border: 0;
    align-items: center; justify-content: flex-start; }
  .spielerdaten .sd-login { top: 36.4%; }
  .spielerdaten .sd-fame { top: 46%; }
  .spielerdaten .sd-haltung { top: 55.6%; }
  .spielerdaten dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .spielerdaten dd { font: 600 1.45cqw/1 var(--kopfschrift); letter-spacing: .02em; white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
}

/* Launcher-Seite */
.launcher-oben { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: start; }
.optionen { list-style: none; padding: 0; margin: .75rem 0 1rem; display: grid; gap: .6rem; }
.optionen li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 1rem;
  background: var(--panel); border: 1px solid var(--linie); border-radius: 10px; }
.optionen li p { margin: .25rem 0 0; font-size: .92rem; }
.schalter { flex: 0 0 auto; min-width: 3.4rem; padding: .35rem .7rem; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 .85rem var(--kopfschrift); letter-spacing: .08em; text-transform: uppercase; }
.schalter.an { background: var(--orange); color: #111; }
.schalter.aus { background: transparent; box-shadow: inset 0 0 0 1px var(--linie); color: var(--leise); }
.schalter:hover { box-shadow: inset 0 0 0 2px var(--orange-hell); }
.schalter:focus-visible { outline: 2px solid var(--orange-hell); outline-offset: 2px; }
.zustimmung { border-color: var(--orange); margin-bottom: 1rem; }
.schluessel { padding: .6rem .8rem; background: var(--grund); border: 1px dashed var(--orange); border-radius: 8px;
  overflow-wrap: anywhere; user-select: all; }

/* Quest-Liste (/quests) */
.quest-karten { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); margin-bottom: 1rem; }
.quest-karte { padding: 1rem 1.25rem; background: var(--panel); border: 1px solid var(--linie); border-radius: 8px; }
.quest-karte h3 { margin: 0 0 .25rem; }
.quest-karte ul { margin: .5rem 0; padding-left: 1.2rem; }

/* Umzug-Hinweis (Georg 11.10.) */
.umzug-hinweis { max-width: 1200px; margin: 1rem auto 0; padding: .9rem 1.25rem; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--orange); border-left-width: 4px; font-size: 1.05rem; }
.umzug-hinweis p { margin: 0; }
.umzug-hinweis p + p { margin-top: .35rem; color: var(--leise); }
.umzug-hinweis strong { color: var(--text); }
.umzug-hinweis p:first-child strong { color: var(--orange); }
@media (max-width: 1240px) { .umzug-hinweis { margin-left: 1rem; margin-right: 1rem; } }

/* Geänderte Regeln (Georg 11.10.): unterstrichen, Drüberfahren/Antippen zeigt den alten Text */
ins.aenderung { position: relative; text-decoration: underline 2px var(--orange); text-underline-offset: 3px; cursor: help; }
ins.aenderung:focus { outline: none; }
ins.aenderung:hover::after, ins.aenderung:focus::after {
  content: attr(data-hinweis); position: absolute; left: 0; top: calc(100% + .35rem); z-index: 30;
  width: max-content; max-width: min(24rem, 72vw); padding: .5rem .75rem; border-radius: 6px;
  background: var(--panel); border: 1px solid var(--orange); box-shadow: 0 6px 18px rgb(0 0 0 / .45);
  color: var(--text); font-size: .85rem; font-weight: 400; line-height: 1.4; white-space: normal; text-decoration: none; }
.quest-titel ul { list-style: none; padding: 0; margin: 1.25rem 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.quest-titel li { padding: .3rem .7rem; border: 1px solid var(--linie); border-radius: 999px; background: var(--panel); font-size: .9rem; }
/* Live-Karte: Blickrichtung als Pfeil (wie die alte Karte), Drehung setzt karte.js */
.karte-feld .k-pfeil-huelle { background: none; border: 0; }
.karte-feld .k-pfeil { display: block; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .7)); transform-origin: 50% 50%; }
.karte-feld .k-pfeil path { fill: #3fb950; stroke: #0d1117; stroke-width: 1.5; stroke-linejoin: round; }
.karte-feld .k-pfeil.ich path { fill: var(--orange); }
.karte-feld .k-pfeil.alt { opacity: .45; }
.legende .pfeil { display: inline-block; font-size: .8rem; margin-right: .2rem; }
.legende .pfeil.orange { color: var(--orange); }
.legende .pfeil.gruen { color: var(--gruen); }
/* /owner/quests: Liste aller Quests mit Schalter (wie links im alten Quest-Editor) */
.quest-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 .5rem; }
.quest-filter input, .quest-filter select { font: inherit; padding: .45rem .6rem; border-radius: 8px; border: 1px solid var(--linie);
  background: var(--panel); color: inherit; }
.quest-filter input { flex: 1 1 14rem; }
.quest-schalter-liste { list-style: none; padding: 0; margin: 0; border: 1px solid var(--linie); border-radius: 10px; }
.quest-schalter-liste .leer { padding: 1rem; color: var(--leise); }
.quest-zeile { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem .9rem;
  border-bottom: 1px solid var(--linie); border-left: 3px solid transparent; }
.quest-zeile:last-child { border-bottom: 0; }
.quest-zeile.an { border-left-color: var(--gruen); }
.quest-text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; overflow-wrap: anywhere; }
.schalter { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 4.2rem; padding: .35rem .7rem;
  border-radius: 999px; border: 1px solid var(--linie); background: transparent; color: var(--leise); font: 600 .8rem var(--kopfschrift);
  letter-spacing: .08em; cursor: pointer; }
.schalter[aria-checked="true"] { background: var(--gruen); border-color: var(--gruen); color: #0d1117; }
.schalter:disabled { opacity: .5; cursor: wait; }
.schalter:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.schalter.nur-anzeige { cursor: default; }
.quest-fehler { color: #ff7a6b; }
.quest-kopf { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.quest-marke { all: unset; font: 700 .68rem var(--kopfschrift); letter-spacing: .08em; padding: .1rem .45rem; border-radius: 999px; }
button.quest-marke { cursor: pointer; }
.quest-marke.neu { background: var(--orange); color: #111; }
.quest-marke.geaendert { box-shadow: inset 0 0 0 2px #e5484d; color: #ff8a80; }
button.quest-marke:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.schalter:disabled { cursor: progress; }
.schalter.nur-anzeige:hover { box-shadow: none; }
/* Georg 16.10.: Freigeben direkt in der Liste – grüner Kreis wie „Freigeben“ im Buch */
.quest-freigeben { flex: none; margin-left: auto; margin-right: -.5rem; width: 2rem; height: 2rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
  background: #2f7d32; border: 1px solid #3fa34d; color: #fff; font: 700 1rem/1 var(--kopfschrift); }
.quest-freigeben:hover:not(:disabled) { background: #3a9440; }
.quest-freigeben:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.quest-freigeben:disabled { background: transparent; border-color: var(--linie); color: var(--leise); opacity: .55; cursor: not-allowed; }
/* Quests & Questbuch (Georg 12.10.): links Liste, rechts das Buch */
.inhalt.voll { max-width: none; padding-inline: 1rem; }
.qb-kopf { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.qb-kopf h1 { margin: 0 0 .5rem; }
.qb-kopf p { margin: 0; }
.qb-rahmen { display: grid; grid-template-columns: minmax(18rem, 26rem) 1fr; gap: 1rem; margin-top: 1rem;
  height: calc(100vh - 6rem); min-height: 34rem; }
.qb-liste { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.qb-liste .hinweis { margin: 0 0 .5rem; }
.qb-liste .quest-filter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.qb-liste .quest-filter select { min-width: 0; }
.qb-liste .quest-filter input { grid-column: 1 / -1; }
.qb-liste .quest-schalter-liste { flex: 1; overflow-y: auto; min-height: 0; }
.qb-liste .quest-zeile { padding: .45rem .7rem; }
.qb-buch { width: 100%; height: 100%; border: 1px solid var(--linie); border-radius: 10px; background: #111; }
.quest-zeile[aria-current="true"] { background: var(--panel); border-left-color: var(--orange); }
.quest-titel-knopf { all: unset; cursor: pointer; font-weight: 700; color: var(--text); }
.quest-titel-knopf:hover { color: var(--orange); text-decoration: underline; }
.quest-titel-knopf:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
@media (max-width: 900px) {
  .qb-rahmen { grid-template-columns: minmax(0, 1fr); height: auto; }
  .qb-liste .quest-schalter-liste { max-height: 50vh; }
  .qb-buch { height: 85vh; }
}
/* Quicklinks (Georg 11.10.): Startseite + /spieler/quicklinks */
.quicklinks .karte-titel { display: flex; align-items: center; }
.ql-liste { list-style: none; padding: 0; margin: 0 0 1rem; border: 1px solid var(--linie); border-radius: 10px; }
.ql-liste li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
  padding: .5rem .9rem; border-bottom: 1px solid var(--linie); }
.ql-liste li:last-child { border-bottom: 0; }
.ql-name { min-width: 0; overflow-wrap: anywhere; }
.ql-knoepfe { display: flex; gap: .35rem; flex-wrap: wrap; }
.ql-form { display: inline; margin: 0; }
/* Verschieben per Ziehen (14.10., static/js/quicklinks-ziehen.js) */
.ql-sortierbar li { justify-content: flex-start; background: var(--panel); }
.ql-sortierbar li:first-child { border-radius: 10px 10px 0 0; }
.ql-sortierbar li:last-child { border-radius: 0 0 10px 10px; }
.ql-sortierbar .ql-name { flex: 1 1 10rem; }
.ql-griff { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem;
  margin-left: -.4rem; border: 0; border-radius: 6px; background: none; color: var(--leise); font-size: 1.2rem; line-height: 1;
  cursor: grab; touch-action: none; user-select: none; }
.ql-griff:hover, .ql-griff:focus-visible { color: var(--orange-hell); background: var(--orange-matt); }
.ql-sortierbar.beim-ziehen, .ql-sortierbar.beim-ziehen * { cursor: grabbing; user-select: none; }
.ql-sortierbar li.zieht { position: relative; z-index: 1; background: var(--orange-matt); outline: 1px solid var(--orange);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.ql-meldung { min-height: 1.2em; margin: -.5rem 0 1rem; }
/* Eigene Verbindung auf /status (Georg 12.10.) */
.verbindung .ampel-gruen { color: var(--gruen); }
.verbindung .ampel-gelb { color: #e8c07a; }
.verbindung .ampel-rot { color: #ff7a6b; }
.verbindung-grafik { margin: 1rem 0 0; }
.verbindung .werte-gitter { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.verbindung-grafik svg { display: block; width: 100%; height: auto; margin: .35rem 0 0; }
.vb-zeiten { display: flex; justify-content: space-between; margin: .2rem 0 1rem; font-size: .75rem; color: var(--leise); }
.vb-legende { white-space: nowrap; margin-left: .5rem; }
.vb-legende::before { content: ""; display: inline-block; width: 1.2rem; height: 0; margin-right: .3rem; vertical-align: middle; }
.vb-legende.grenze::before { border-top: 2px dashed #ff7a6b; }
.vb-legende.rausflug::before { width: 0; height: .8rem; border-left: 3px solid #e5484d; }
.vb-raster { stroke: var(--linie); stroke-width: 1; }
.vb-achse { stroke: var(--linie); stroke-width: 1; }
.vb-grenze { stroke: #ff7a6b; stroke-width: 1.5; stroke-dasharray: 6 5; }
.vb-rausflug { stroke: #e5484d; stroke-width: 2.5; }
.vb-ping { fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.vb-fps { fill: none; stroke: var(--gruen); stroke-width: 1.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.vb-raster, .vb-achse, .vb-grenze, .vb-rausflug { vector-effect: non-scaling-stroke; }
/* Event-Editor im Rahmen (Georg 12.10.): der alte Editor braucht die ganze Fläche */
.ee-rahmen { display: block; width: 100%; height: calc(100vh - 5.5rem); min-height: 32rem; margin-top: .75rem;
  border: 1px solid var(--linie); border-radius: 10px; background: #0a0a12; }

/* ---------------------------------------------------------------- .drone.-Konsole (Owner, Georg 13.10.) */
.dr-kopf { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; }
.dr-kopf h1 { margin-bottom: .2rem; }
.dr-kopf p { margin: 0; max-width: 46rem; }
.dr-ziel { display: inline-flex; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--linie); overflow: hidden; }
.dr-ziel-knopf { font: 700 1.05rem var(--kopfschrift); letter-spacing: .06em; text-transform: uppercase; padding: .55rem 1.4rem;
  border: 0; background: transparent; color: var(--leise); cursor: pointer; }
.dr-ziel-knopf[aria-checked="true"] { background: var(--kachel); color: var(--text); box-shadow: inset 0 -3px 0 var(--leise); }
.dr-ziel-knopf.live[aria-checked="true"] { background: var(--rot); color: #fff; box-shadow: none; }
.dr-band { margin: 1rem 0; padding: .55rem 1rem; border-radius: 8px; background: var(--panel); border-left: 4px solid var(--leise); }
.dr-band.live { background: rgba(248, 81, 73, .14); border-left-color: var(--rot); }
.dr-band.live b { color: var(--rot); }
.dr[data-ziel="live"] .dr-zeile { box-shadow: inset 0 0 0 1px var(--rot); }
.dr[data-ziel="live"] .dr-prompt { color: var(--rot); }

.dr-reiter, .dr-unterreiter { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 1px solid var(--linie); margin-bottom: 1rem; }
.dr-reiter button, .dr-unterreiter button { font: 600 1rem var(--kopfschrift); letter-spacing: .04em; padding: .5rem 1rem; border: 0;
  background: transparent; color: var(--leise); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.dr-reiter button[aria-selected="true"], .dr-unterreiter button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--orange); }
.dr-unterreiter { margin-top: .5rem; }

.dr-konsole { display: grid; grid-template-columns: minmax(12rem, 16rem) 1fr; gap: 1rem; align-items: start; }
@media (max-width: 48rem) { .dr-konsole { grid-template-columns: 1fr; } .dr-verben { order: 2; } }
.dr-verben { background: var(--panel); border-radius: 8px; padding: .75rem; position: sticky; top: 5rem; }
.dr-verben input, .dr-katalog input { width: 100%; box-sizing: border-box; }
.dr-verb-liste { list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow-y: auto; }
.dr-verb-liste button, .dr-katalog-liste button { display: block; width: 100%; text-align: left; border: 0; background: transparent;
  color: var(--text); font: .9rem var(--mono); padding: .25rem .4rem; border-radius: 4px; cursor: pointer; }
.dr-verb-liste button:hover, .dr-katalog-liste button:hover { background: var(--orange-matt); }
.dr-haupt { min-width: 0; }
.dr-verlauf { background: #080b0f; border: 1px solid var(--linie); border-radius: 8px; padding: .75rem; min-height: 14rem;
  max-height: 60vh; overflow-y: auto; }
.dr-eintrag { margin-bottom: .9rem; }
.dr-eintrag-kopf { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.dr-eintrag pre, .dr-hilfe pre, .dr-diff { margin: .3rem 0 0; white-space: pre-wrap; word-break: break-word; font: .85rem/1.45 var(--mono); }
.dr-eintrag.fehler pre { color: var(--rot); }
.dr-eintrag-ziel { font: 700 .75rem var(--kopfschrift); text-transform: uppercase; letter-spacing: .06em; padding: .05rem .45rem;
  border-radius: 4px; background: var(--kachel); color: var(--leise); }
.dr-eintrag-ziel.live { background: var(--rot); color: #fff; }
.dr-zeile { display: flex; gap: .5rem; align-items: center; margin-top: .75rem; background: var(--panel); border-radius: 8px; padding: .4rem; }
.dr-prompt { font: .95rem var(--mono); color: var(--orange-hell); padding-left: .4rem; }
.dr-zeile input { flex: 1; min-width: 0; font: .95rem var(--mono); }
.dr-hilfe { margin-top: .75rem; background: var(--panel); border-radius: 8px; padding: .75rem; }
.dr-hilfe-kopf { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }

.dr-karte { background: var(--panel); border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1rem; border: 1px solid transparent; }
.dr-karte.geaendert { border-color: var(--orange); }
.dr-karte.gesperrt { opacity: .75; }
.dr-karte h3 { margin: 0 0 .4rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; }
.dr-sec { font: .8rem var(--mono); color: var(--leise); }
.dr-hinweis, .dr-feldhilfe { color: var(--leise); font-size: .92rem; }
.dr-feldhilfe { margin: .2rem 0 0; grid-column: 1 / -1; }
.dr-zeile-feld { display: grid; grid-template-columns: minmax(12rem, 22rem) minmax(0, 1fr); gap: .25rem 1rem; align-items: center;
  padding: .6rem 0; border-top: 1px solid var(--linie); }
@media (max-width: 40rem) { .dr-zeile-feld { grid-template-columns: 1fr; } }
.dr-zeile-feld.geaendert label .dr-label { color: var(--orange-hell); }
.dr-zeile-feld.geaendert input, .dr-zeile-feld.geaendert select { box-shadow: 0 0 0 1px var(--orange); }
.dr-zeile-feld.schalter-zeile input { justify-self: start; width: 1.3rem; height: 1.3rem; accent-color: var(--orange); }
.dr-label { display: block; font-weight: 600; }
.dr-schluessel { display: block; font: .78rem var(--mono); color: var(--leise); }
.dr-zeile-feld input[type="text"], .dr-zeile-feld input[type="number"], .dr-zeile-feld select { width: 100%; max-width: 28rem; box-sizing: border-box; }
.dr-karte textarea { width: 100%; box-sizing: border-box; font: .88rem/1.45 var(--mono); margin-top: .5rem; }
.dr-bausteine { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .5rem 0; }
.dr-katalog { margin: .5rem 0; }
.dr-katalog-liste { list-style: none; margin: .3rem 0 0; padding: 0; max-height: 16rem; overflow-y: auto; }
.dr-leiste { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: flex-end;
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom, 0px)); background: var(--panel); border-top: 1px solid var(--linie);
  border-radius: 10px 10px 0 0; }
.dr-leiste span { margin-right: auto; }
.dr-leiste.offen { border-top-color: var(--orange); }
.dr-leiste.offen span { color: var(--orange-hell); }
.dr-ergebnis { margin-top: 1rem; }
.dr-diff .weg { color: var(--rot); }
.dr-diff .dazu { color: var(--gruen); }
.dr-alt { color: var(--rot); text-decoration: line-through; font-family: var(--mono); }
.dr-neu { color: var(--gruen); font-family: var(--mono); }

.dr-dialog { max-width: min(40rem, calc(100vw - 2rem)); width: 100%; background: var(--panel); color: var(--text);
  border: 1px solid var(--linie); border-radius: 12px; padding: 1.2rem 1.4rem; }
.dr-dialog::backdrop { background: rgba(0, 0, 0, .65); }
.dr-dialog h2 { margin-top: 0; }
.dr-dialog-ziel { font: 700 1rem var(--kopfschrift); letter-spacing: .05em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 6px;
  background: var(--kachel); display: inline-block; }
.dr-dialog-ziel.live { background: var(--rot); color: #fff; }
.dr-dialog-text { max-height: 55vh; overflow-y: auto; }
.dr-befehl-vorschau { font: 1rem var(--mono); background: #080b0f; padding: .5rem .75rem; border-radius: 6px; white-space: pre-wrap; }
.dr-protokoll pre { margin: .2rem 0 0; white-space: pre-wrap; font: .8rem var(--mono); }
.dr-marke { font: 700 .72rem var(--kopfschrift); text-transform: uppercase; letter-spacing: .06em; padding: .1rem .45rem; border-radius: 4px;
  background: rgba(248, 81, 73, .18); color: var(--rot); }
.dr input[type="text"], .dr input[type="number"], .dr input[type="search"], .dr select, .dr textarea {
  background: var(--grund); color: var(--text); border: 1px solid var(--linie); border-radius: 6px; padding: .45rem .6rem;
  font-size: .95rem; }
.dr input:focus, .dr select:focus, .dr textarea:focus { border-color: var(--orange); outline: none; }
.dr input:disabled, .dr select:disabled, .dr textarea:disabled { opacity: .6; }
.dr-zeile input[type="text"] { border: 0; background: transparent; }
.dr-eintrag.abgebrochen pre { color: var(--leise); }

/* Owner → Konten (13.10.) */
.suche { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 1rem; }
.suche input[type="search"] { flex: 1 1 14rem; max-width: 26rem; padding: .5rem .75rem; border-radius: 6px; border: 1px solid var(--linie);
  background: var(--grund); color: var(--text); font: inherit; }
.suche input[type="search"]:focus { border-color: var(--orange); outline: none; }

/* Einführungs-Tour (14.10., static/js/tour.js): Seite dunkel, erklärtes Element hell mit Rahmen, Sprechblase */
.tour-decke { position: fixed; inset: 0; z-index: 1000; }
.tour-decke.dunkel { background: rgba(0, 0, 0, .72); }
.tour-licht { position: fixed; z-index: 1001; pointer-events: none; border-radius: 10px;
  border: 2px solid var(--orange); box-shadow: 0 0 0 200vmax rgba(0, 0, 0, .72), 0 0 18px rgba(242, 106, 27, .55);
  transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease; }
.tour-blase { position: fixed; z-index: 1002; width: min(23rem, calc(100vw - 24px)); box-sizing: border-box;
  padding: 1rem 1.15rem .9rem; background: var(--panel); color: var(--text); border: 1px solid var(--orange);
  border-radius: 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, .6); transition: left .25s ease, top .25s ease; }
.tour-blase.mitte { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.tour-zahl { margin: 0 0 .25rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.tour-titel { margin: 0 0 .4rem; font: 700 1.35rem/1.2 var(--kopfschrift); }
.tour-text { margin: 0 0 1rem; line-height: 1.5; }
.tour-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.tour-knoepfe .knopf { border: 0; cursor: pointer; }
.tour-knoepfe [hidden] { display: none; }
.tour-knoepfe .knopf:last-child { margin-left: auto; }
.tour-ueberspringen { background: none; border: 0; padding: .35rem 0; color: var(--leise); font: inherit; font-size: .9rem;
  text-decoration: underline; cursor: pointer; }
.tour-ueberspringen:hover { color: var(--text); }
.tour-an { overflow-anchor: none; }
@media (prefers-reduced-motion: reduce) { .tour-licht, .tour-blase { transition: none; } }

/* BCU-Terminals (14.10., static/js/bcu.js): Quicklink-Kachel + Seite /spieler/bcu-terminals */
.bcu { display: flex; flex-direction: column; gap: .4rem; }
.bcu-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem .9rem; }
.bcu-terminal { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .45rem; font-size: .9rem; min-width: 0; }
.bcu-punkt { width: .55rem; height: .55rem; border-radius: 50%; flex: none; }
.bcu-sektor { font-family: var(--mono); font-weight: 600; color: var(--text); }
.bcu-zustand { color: var(--leise); white-space: nowrap; }
.bcu-terminal.bereit .bcu-punkt { background: #43d17a; box-shadow: 0 0 6px rgba(67, 209, 122, .6); }
.bcu-terminal.bereit .bcu-zustand { color: #43d17a; }
.bcu-terminal.laedt .bcu-punkt { background: var(--orange); box-shadow: 0 0 6px rgba(242, 106, 27, .55); }
.bcu-terminal.laedt .bcu-zustand { color: var(--orange-hell); }
.bcu-balken { flex: 1 0 100%; height: 3px; border-radius: 2px; background: var(--linie); overflow: hidden; position: relative; }
.bcu-balken::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--voll, 0%); background: var(--orange); }
.bcu.gross .bcu-liste { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .75rem; }
.bcu.gross .bcu-terminal { padding: 1rem 1.15rem; background: var(--panel); border: 1px solid var(--linie); border-radius: 10px;
  font-size: 1rem; gap: .35rem .6rem; }
.bcu.gross .bcu-terminal.bereit { border-color: rgba(67, 209, 122, .45); }
.bcu.gross .bcu-sektor { font-size: 1.5rem; }
.bcu.gross .bcu-balken { height: 5px; margin-top: .35rem; }

/* Server-Karte (Owner, Georg 14.10.): Karte + Filterspalte, am Handy untereinander */
.sk-raster { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .sk-raster { grid-template-columns: minmax(0, 1fr) 17rem; } }
.sk-raster .karte-feld { height: min(78vh, 760px); }
.sk-seite { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
@media (min-width: 960px) { .sk-seite { max-height: min(78vh, 760px); overflow-y: auto; padding-right: .25rem; } }
.sk-seite section { background: var(--panel); border: 1px solid var(--linie); border-radius: 8px; padding: .75rem .9rem; }
.sk-seite h2 { font-size: 1.05rem; margin: 0 0 .5rem; }
.sk-feld { display: flex; flex-direction: column; gap: .25rem; font-size: .9rem; color: var(--leise); margin-bottom: .5rem; }
.sk-feld select, .sk-feld input { padding: .35rem .5rem; border-radius: 6px; border: 1px solid var(--linie); background: var(--grund); color: var(--text); font: inherit; }
.sk-knoepfe { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .5rem; }
.sk-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .15rem; font-size: .92rem; }
.sk-liste [hidden] { display: none; }
.sk-pfad { display: flex; align-items: center; gap: .45rem; }
.sk-pfad input { accent-color: var(--orange); margin: 0; }
.sk-pfad.sk-fehlt { opacity: .5; }
.sk-feld input[type=range] { padding: 0; border: 0; background: none; accent-color: var(--orange); width: 100%; }
.sk-zeit-anzeige { margin: 0 0 .5rem; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.sk-zeit-anzeige small { display: block; font-weight: 400; color: var(--leise); }
.sk-farbe { width: .9rem; height: .3rem; border-radius: 2px; background: var(--farbe, #888); flex: none; }
.sk-link { background: none; border: 0; padding: .1rem 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.sk-link:hover, .sk-link:focus-visible { color: var(--orange); }
.sk-link.ich { color: var(--orange); }
.karte-feld .k-pfeil.sk-andere path { fill: #3498db; }
.karte-feld .sk-name { background: rgba(13, 17, 23, .8); color: #fff; border: 0; box-shadow: none; font-size: 11px; padding: 1px 5px; }
.karte-feld .sk-name::before { display: none; }
.karte-feld .k-quest-name { background: rgba(13, 17, 23, .8); color: #fff; border: 0; border-left: 3px solid #a371f7; box-shadow: none; font-size: 11px; padding: 1px 5px; white-space: nowrap; }
.karte-feld .k-quest-name::before { display: none; }
.karte-feld .k-cargo { background: none; border: 0; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .8)); }
.karte-feld .k-cargo img { display: block; }
.legende .legende-bild { vertical-align: -2px; }
.karte-feld .k-cargo.faellt { animation: k-cargo-blinken 1.2s ease-in-out infinite; }
@keyframes k-cargo-blinken { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .karte-feld .k-cargo.faellt { animation: none; } }
.karte-feld .sk-flagge { font-size: 16px; filter: drop-shadow(0 0 2px #000); }
.karte-feld .k-fahrzeug.sk-herrenlos { filter: grayscale(.8) drop-shadow(0 0 2px #000); opacity: .8; }
.legende .pfeil.blau { color: #3498db; }
.karte-feld .leaflet-control-layers-toggle { background-image: none; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.karte-feld .leaflet-control-layers-toggle::after { content: "📍"; font-size: 18px; }

/* Live-Karte: Meine Wege (Georg 15.10.) – Regler neben der Karte, schmal darunter */
.k-raster { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .k-raster.mit-wege { grid-template-columns: minmax(0, 1fr) 17rem; } }
.k-wege { background: var(--panel); border: 1px solid var(--linie); border-radius: 8px; padding: .75rem .9rem; align-self: start; }
.k-wege h2 { font-size: 1.05rem; margin: 0 0 .5rem; }

/* Regel-Audit (Georg 19.10.): Karten je Regel mit Ampel, darunter Reiter */
.ra-karten { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: .75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(10rem, 45%), 1fr)); }
.ra-karte { display: flex; flex-direction: column; gap: .3rem; width: 100%; height: 100%; text-align: left; cursor: pointer;
  padding: .9rem 1rem; border: 1px solid var(--linie); border-left: 4px solid var(--leise); border-radius: 10px;
  background: var(--kachel); color: var(--text); font: inherit; }
.ra-karte:hover, .ra-karte[aria-current="true"] { border-color: var(--orange); }
.ra-karte-kopf { display: flex; align-items: center; gap: .5rem; font: 600 1.05rem/1.2 var(--kopfschrift); letter-spacing: .02em; }
.ra-ampel { width: .8rem; height: .8rem; border-radius: 50%; background: var(--leise); flex-shrink: 0; }
.ra-zahl { font: 700 2.2rem/1 var(--kopfschrift); }
.ra-gelb { color: var(--gelb); }
.ra-karte-text { color: var(--leise); font-size: .85rem; }
.ra-karte.ampel-rot { border-left-color: var(--rot); } .ampel-rot .ra-ampel { background: var(--rot); } .ampel-rot .ra-zahl { color: var(--rot); }
.ra-karte.ampel-gelb { border-left-color: var(--gelb); } .ampel-gelb .ra-ampel { background: var(--gelb); }
.ra-karte.ampel-gruen { border-left-color: var(--gruen); } .ampel-gruen .ra-ampel { background: var(--gruen); } .ampel-gruen .ra-zahl { color: var(--gruen); }
.ra-karte.ampel-grau .ra-zahl { color: var(--leise); }
.ra-reiter { scroll-margin-top: 1rem; }
.ra-feld h2 { font-size: 1.2rem; margin: 1.5rem 0 .4rem; }
.ra-filter { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 .75rem; }
.ra-stufe-knopf[aria-pressed="false"] { opacity: .45; }
.ra-stufe-knopf[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--orange); }
.ra-tabelle td { vertical-align: top; }
.ra-unter { display: block; }
.ra-marke { display: inline-block; font: 600 .75rem var(--schrift); text-transform: uppercase; letter-spacing: .06em;
  padding: .1rem .45rem; border-radius: 4px; border: 1px solid var(--leise); color: var(--leise); }
.ra-marke.stufe-freigabe { border-color: var(--rot); color: var(--rot); }
.ra-marke.stufe-warnen { border-color: var(--gelb); color: var(--gelb); }
.ra-marke.stufe-pruefen { border-color: var(--orange-hell); color: var(--orange-hell); }
.ra-marke.stufe-ok { border-color: var(--gruen); color: var(--gruen); }
.ra-tabelle .rot, .ra-tp-antwort.rot { color: var(--rot); }
.ra-tp-antwort.gelb { color: var(--gelb); } .ra-tp-antwort.gruen { color: var(--gruen); }
.discord-nicht_im_discord { color: var(--rot); }
.ra-ort { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem; white-space: nowrap; }
.ra-unterzeile td { border-bottom-style: dashed; color: var(--leise); font-size: .9rem; padding-top: .25rem; padding-bottom: .25rem; }
.ra-zuviel td:first-child { color: var(--rot); }
.ra-bilanz { margin-top: 1.5rem; } .ra-bilanz summary { cursor: pointer; font: 600 1.1rem var(--kopfschrift); }
.ra-grau { margin-top: 2rem; padding: .25rem 1rem .75rem; border-radius: 10px; background: var(--panel); opacity: .8; }
.ra-grau h2 { color: var(--leise); }
.ra-squad h2 { font-size: 1.1rem; }
.ra-tabelle td.rechts .ra-unter { font-family: var(--schrift); white-space: nowrap; }

/* Server-Zustand + Neustart (betrieb.js, docs/ADMIN-BETRIEB.md) */
.status-wert.angesagt { border-color: var(--orange); }
.status-wert.angesagt .status-zahl { color: var(--orange-hell); }
.bt-zustand { margin: 1rem 0 2rem; padding: 1rem 1.1rem; background: var(--panel); border: 1px solid var(--linie);
  border-left: 4px solid var(--leise); border-radius: 10px; }
.bt-zustand.ampel-gruen { border-left-color: var(--gruen); } .bt-zustand.ampel-gelb { border-left-color: var(--gelb); }
.bt-zustand.ampel-rot { border-left-color: var(--rot); }
.bt-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; font: 600 1.2rem var(--kopfschrift); }
.bt-kopf .leise { font: .85rem var(--schrift); margin-left: auto; }
.bt-ampel { width: .9rem; height: .9rem; border-radius: 50%; background: var(--leise); flex: none; }
.ampel-gruen .bt-ampel { background: var(--gruen); } .ampel-gelb .bt-ampel { background: var(--gelb); }
.ampel-rot .bt-ampel { background: var(--rot); }
.bt-gruende { margin: .5rem 0 0; padding-left: 1.2rem; } .bt-gruende:empty { display: none; }
.bt-werte { margin-top: 1rem; }
.bt-laufend { margin-top: 1rem; } .bt-laufend p { margin: 0 0 .5rem; } .bt-laufend p:last-child { margin: 0; }
.bt-knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.bt-knoepfe .knopf:disabled { opacity: .45; cursor: not-allowed; }
.bt-grund { display: flex; flex-direction: column; gap: .3rem; margin: 1rem 0 0; }
.bt-grund[hidden] { display: none; }
.bt-grund input { width: 100%; box-sizing: border-box; background: var(--grund); color: var(--text); border: 1px solid var(--linie);
  border-radius: 6px; padding: .5rem .65rem; font-size: 1rem; }
.bt-grund input:focus { border-color: var(--orange); outline: none; }
.gelb-text { color: var(--gelb); }
.bt-verlauf { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); margin-top: 1rem; }
.bt-verlauf figure { margin: 0; padding: .8rem 1rem; background: var(--panel); border: 1px solid var(--linie); border-radius: 10px; }
.bt-graph svg { display: block; width: 100%; height: 7.5rem; }
.bt-graph polyline { fill: none; stroke: var(--orange); stroke-width: 2; vector-effect: non-scaling-stroke; }
.bt-graph p { margin: .3rem 0 0; }
.bt-check { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--linie); }
.bt-check-kopf { margin: 0 0 .5rem; }
.bt-schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.bt-schritt { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; }
.bt-zeichen { width: 1.2rem; flex: none; font-weight: 700; text-align: center; }
.bt-schritt.ok .bt-zeichen { color: var(--gruen); } .bt-schritt.rot .bt-zeichen { color: var(--rot); }
.bt-schritt.offen .bt-zeichen { color: var(--leise); }
.bt-check-ergebnis { margin: .75rem 0 0; }
.karte-feld .sk-im-bauverbot { outline: 2px solid #e5534b; outline-offset: 1px; border-radius: 50%; background: rgba(229, 83, 75, .35); }

/* Launcher-Seite: Funktionen mit Bild (Material 0.6.16, Georg 23.10.) */
.launcher-funktionen { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.launcher-funktionen .feature { display: flex; flex-direction: column; gap: .5rem; }
.launcher-bild { display: flex; align-items: center; justify-content: center; height: 12rem; overflow: hidden;
  background: var(--grund); border: 1px solid var(--linie); border-radius: 8px; }
.launcher-bild img { max-width: 100%; max-height: 100%; object-fit: contain; }
.launcher-funktionen .feature h3 { margin: .2rem 0 0; }
.launcher-bild { cursor: zoom-in; }
/* Bildansicht (Georg 25.10.): Bild groß über der Seite, static/js/bildansicht.js */
dialog.bildansicht { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
dialog.bildansicht::backdrop { background: rgb(0 0 0 / .85); }
dialog.bildansicht img { display: block; max-width: 96vw; max-height: 86vh; object-fit: contain; margin: 0 auto;
  border-radius: 6px; cursor: default; }
.bildansicht-text { color: #fff; text-align: center; margin: .5rem 0 0; font-weight: 600; }
.bildansicht-zu, .bildansicht-pfeil { position: fixed; z-index: 1; border: 0; border-radius: 50%; cursor: pointer;
  width: 2.75rem; height: 2.75rem; font-size: 1.8rem; line-height: 1; color: #fff; background: rgb(0 0 0 / .6); }
.bildansicht-zu { top: calc(env(safe-area-inset-top, 0px) + .75rem); right: .75rem; }
.bildansicht-pfeil { top: 50%; transform: translateY(-50%); }
.bildansicht-pfeil.links { left: .75rem; }
.bildansicht-pfeil.rechts { right: .75rem; }
.bildansicht-zu:hover, .bildansicht-pfeil:hover, .bildansicht-zu:focus-visible, .bildansicht-pfeil:focus-visible { background: #F26A1B; }
details.frage { border-bottom: 1px solid var(--linie); padding: .5rem 0; }
details.frage summary { cursor: pointer; font-weight: 600; }
details.frage p { margin: .4rem 0 0; }

/* Bekannte Spielfehler (Georg 24.10., direkt aus scum_dashboard) */
.spielfehler { list-style: none; padding: 0; margin: 0; }
.spielfehler-eintrag { border-bottom: 1px solid var(--linie); padding: .45rem 0; }
.spielfehler-eintrag summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: baseline; }
.spielfehler-titel { flex: 1 1 16rem; font-weight: 600; }
.spielfehler-text { white-space: pre-line; overflow-wrap: anywhere; }
.marke-stand { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; padding: 0 .4rem; border-radius: 4px;
  border: 1px solid var(--linie); color: var(--leise); }
.stand-confirmed .marke-stand { border-color: var(--orange); color: var(--orange-hell); }
.stand-fixed .marke-stand { border-color: var(--gruen); color: var(--gruen); }
