:root {
  --grund: #0e1116;
  --flaeche: #161b22;
  --flaeche2: #1d232c;
  --linie: #2a313c;
  --text: #e6e9ee;
  --ruhig: #8b95a5;
  --akzent: #6aa8ff;
  --gruen: #3fb27f;
  --gelb: #e0a93b;
  --rot: #e5534b;
  --rund: 12px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --grund: #f5f6f8;
    --flaeche: #ffffff;
    --flaeche2: #f0f2f5;
    --linie: #dfe3e8;
    --text: #1b1f24;
    --ruhig: #667080;
    --akzent: #2563eb;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { font-size: 15px; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
a { color: var(--akzent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .6rem; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.1rem; }
h3 { font-size: .95rem; color: var(--ruhig); font-weight: 600; }
small, .klein { font-size: .85rem; }
.ruhig { color: var(--ruhig); }

.kopf {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 1rem;
  padding: .7rem 1.5rem;
  background: color-mix(in srgb, var(--grund) 85%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
}
.marke { font-weight: 700; color: var(--text); font-size: 1.05rem; }
.stand { color: var(--ruhig); font-size: .85rem; margin-left: auto; }
.kopf form { margin: 0; }
button {
  font: inherit; cursor: pointer;
  background: var(--akzent); color: #fff; border: 0; border-radius: 8px; padding: .55rem 1rem;
}
button.leise { background: transparent; color: var(--ruhig); border: 1px solid var(--linie); padding: .3rem .7rem; font-size: .85rem; }
main { max-width: 1400px; margin: 0 auto; padding: 1.5rem; }
.fuss { max-width: 1400px; margin: 0 auto; padding: 1rem 1.5rem 2rem; color: var(--ruhig); font-size: .8rem; }

.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.kachel { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); padding: .9rem 1rem; }
.k-titel { color: var(--ruhig); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.k-wert { font-size: 1.6rem; font-weight: 700; margin-top: .2rem; }
.k-wert small { font-size: .9rem; color: var(--ruhig); font-weight: 500; }
.k-unten { color: var(--ruhig); font-size: .85rem; margin-top: .2rem; overflow: hidden; text-overflow: ellipsis; }
.delta.plus { color: var(--gruen); }
.delta.minus { color: var(--rot); }
.balken { display: block; height: 6px; border-radius: 3px; background: var(--flaeche2); margin-top: .5rem; overflow: hidden; }
.balken span { display: block; height: 100%; background: var(--akzent); }

.block { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.plattformen { display: flex; flex-wrap: wrap; gap: .4rem 2rem; padding: .7rem 1.1rem; }
.pf-zeile { display: flex; align-items: center; gap: .7rem; font-size: .9rem; }
.anzahl { display: inline-block; min-width: 1.5em; padding: 0 .4em; border-radius: 99px; background: var(--flaeche2); color: var(--ruhig); font-size: .8rem; text-align: center; font-weight: 600; }

.warnungen { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.warnungen li { padding: .45rem .7rem; border-radius: 8px; border-left: 3px solid; background: var(--flaeche2); font-size: .9rem; }
.w-rot { border-color: var(--rot) !important; }
.w-gelb { border-color: var(--gelb) !important; }

.spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 1000px) { .spalten { grid-template-columns: 1fr; } }
.spalten .block { margin-bottom: 1rem; overflow: hidden; }

.liste { width: 100%; border-collapse: collapse; font-size: .9rem; }
.liste th { text-align: left; color: var(--ruhig); font-weight: 500; font-size: .8rem; padding: .3rem .5rem; border-bottom: 1px solid var(--linie); }
.liste td { padding: .4rem .5rem; border-bottom: 1px solid var(--linie); vertical-align: middle; }
.liste tr:last-child td { border-bottom: 0; }
.liste .zeit { white-space: nowrap; color: var(--ruhig); }
.liste .titel { max-width: 0; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spalten .liste td:nth-child(3) { white-space: nowrap; }
.liste .zahl, .liste th.zahl { text-align: right; white-space: nowrap; }
.liste .bild img { width: 96px; height: 54px; object-fit: cover; border-radius: 6px; display: block; background: var(--flaeche2); }
.videos .titel { white-space: normal; }

.umschalter { display: flex; gap: .4rem; align-items: center; margin: 1.5rem 0 .8rem; color: var(--ruhig); font-size: .9rem; }
.umschalter a { padding: .25rem .7rem; border-radius: 99px; border: 1px solid var(--linie); color: var(--text); }
.umschalter a[aria-current] { background: var(--akzent); border-color: var(--akzent); color: #fff; }

.gruppe { margin-bottom: 1.5rem; }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: .8rem; }
.karte { position: relative; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); padding: .9rem 1rem; display: flex; flex-direction: column; gap: .6rem; transition: border-color .15s; }
.karte:hover { border-color: var(--akzent); }
.karte-link { position: absolute; inset: 0; z-index: 1; border-radius: var(--rund); }
.karte-kopf { display: flex; align-items: center; gap: .6rem; }
.karte-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.karte-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.karte-name span { color: var(--ruhig); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.werte { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin: 0; }
.werte div { background: var(--flaeche2); border-radius: 8px; padding: .35rem .5rem; }
.werte dt { color: var(--ruhig); font-size: .72rem; }
.werte dd { margin: 0; font-weight: 650; }
.zeilen { display: grid; gap: .3rem; font-size: .85rem; }
.zeilen > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etikett { display: inline-block; font-size: .7rem; padding: .05rem .4rem; border-radius: 4px; background: var(--flaeche2); color: var(--ruhig); text-transform: uppercase; letter-spacing: .03em; }
.etikett.plan { background: color-mix(in srgb, var(--akzent) 20%, transparent); color: var(--akzent); }
.kurve-rahmen { height: 32px; }
.kurve { width: 100%; height: 100%; display: block; }
.kurve polyline { fill: none; stroke: var(--akzent); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.kurven { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.kurven .kurve { height: 120px; }
@media (max-width: 800px) { .kurven { grid-template-columns: 1fr; } }

.ampel { width: .7rem; height: .7rem; border-radius: 50%; flex: none; }
.a-gruen { background: var(--gruen); }
.a-gelb { background: var(--gelb); }
.a-rot { background: var(--rot); }
.a-grau { background: var(--linie); }

.pf { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 8px; font-size: .68rem; font-weight: 800; color: #fff; flex: none; letter-spacing: .02em; }
.liste .pf { width: 1.5rem; height: 1.5rem; font-size: .58rem; border-radius: 6px; }
.pf-youtube { background: #e62117; }
.pf-tiktok { background: #111; box-shadow: inset 0 0 0 1px #333; }
.pf-instagram { background: linear-gradient(45deg, #f58529, #dd2a7b 50%, #8134af); }
.pf-facebook { background: #1877f2; }
.pf-x { background: #000; box-shadow: inset 0 0 0 1px #444; }

.marke-kurz { font-size: .68rem; padding: 0 .35rem; border-radius: 4px; border: 1px solid var(--linie); color: var(--ruhig); }
.status { font-size: .75rem; padding: .1rem .45rem; border-radius: 99px; background: var(--flaeche2); white-space: nowrap; }
.s-online { color: var(--gruen); }
.s-geplant { color: var(--akzent); }
.s-privat, .s-nicht_gelistet { color: var(--ruhig); }

.geplant { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .6rem; }
.geplant li { background: var(--flaeche2); border-radius: 8px; padding: .6rem .8rem; }

.kanal-kopf { display: flex; gap: 1rem; align-items: flex-start; margin: .5rem 0 1rem; }
.kanal-kopf .pf { width: 3rem; height: 3rem; font-size: 1rem; border-radius: 12px; }
.kanal-kopf p { margin: .1rem 0; }

body.anmelden { display: grid; place-items: center; min-height: 100vh; }
.anmelde-form { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 16px; padding: 2rem; width: min(360px, 92vw); display: grid; gap: 1rem; }
.anmelde-form label { display: grid; gap: .3rem; font-size: .9rem; color: var(--ruhig); }
.anmelde-form input { font: inherit; padding: .6rem .7rem; border-radius: 8px; border: 1px solid var(--linie); background: var(--flaeche2); color: var(--text); }
.meldung { background: color-mix(in srgb, var(--rot) 15%, transparent); color: var(--text); padding: .5rem .7rem; border-radius: 8px; margin: 0; }
