/* 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; }
.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); }
.tabelle.rangliste tbody tr:first-child td { color: var(--orange-hell); font-weight: 600; }
/* 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; }
@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); }
.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); }
.karte-feld { 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-container { font: inherit; background: #0a0e13; }

/* 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); }
