/* HighEnd Smoke Cockpit — dunkler Kopf, rote Akzente (Shop-Branding), nüchterne Tabellen */
:root {
  --akzent: #d8232a;          /* HES-Rot */
  --kopf: #101014;
  --flaeche: #f6f6f8;
  --karte: #ffffff;
  --text: #1c1c22;
  --gedimmt: #6b6b76;
  --linie: #e3e3ea;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, "Segoe UI", sans-serif; background: var(--flaeche); color: var(--text); }

header { display: flex; align-items: center; gap: 1.2rem; background: var(--kopf); padding: .4rem 1rem; position: sticky; top: 0; z-index: 5; }
.logo { height: 34px; }
nav { display: flex; flex-wrap: wrap; gap: .1rem; flex: 1; align-items: center; }
nav a { color: #d9d9e0; text-decoration: none; padding: .45rem .65rem; border-radius: 6px; font-weight: 500; font-size: .88rem; white-space: nowrap; }
nav a:hover { background: #26262e; }
nav a.aktiv { background: var(--akzent); color: #fff; }
nav a.aus { color: #5d5d68; }
nav a.aus::after { content: " ⏸"; font-size: .75em; }

/* Gruppen-Dropdowns (Struktur nach MyVape-Vorbild) */
.gruppe { position: relative; }
.gruppen-name { color: #d9d9e0; padding: .45rem .65rem; border-radius: 6px; font-weight: 500; font-size: .88rem; cursor: default; display: inline-block; white-space: nowrap; }
.gruppe:hover .gruppen-name { background: #26262e; }
.gruppe.aktiv-gruppe .gruppen-name { background: var(--akzent); color: #fff; }
.drop { display: none; position: absolute; top: 100%; left: 0; background: #1a1a20; border: 1px solid #2e2e38; border-radius: 8px; padding: .3rem; min-width: 200px; z-index: 20; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.gruppe:hover .drop { display: flex; flex-direction: column; }
.drop a { padding: .45rem .7rem; border-radius: 6px; }
.modus { font-size: .75rem; font-weight: 700; letter-spacing: .06em; padding: .3rem .6rem; border-radius: 999px; }
.modus-ruesten { background: #f7c948; color: #4a3a00; }
.modus-live { background: #2e9e44; color: #fff; }
.benutzer { color: #8b8b96; font-size: .75rem; white-space: nowrap; }
.benutzer a { color: #d9d9e0; }

main { max-width: 1200px; margin: 1.5rem auto; padding: 0 1rem; }
h1 { margin: .2rem 0 .3rem; font-size: 1.5rem; }
h2 { font-size: 1.05rem; margin: 1.6rem 0 .6rem; }
h2 small { color: var(--gedimmt); font-weight: 400; }
.untertitel { color: var(--gedimmt); margin-top: 0; }

.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .7rem; }
.kachel { background: var(--karte); border: 1px solid var(--linie); border-top: 3px solid var(--akzent); border-radius: 8px; padding: .7rem .9rem; }
.kachel b { display: block; font-size: 1.45rem; }
.kachel span { color: var(--gedimmt); font-size: .8rem; }
.kachel-aus { border-top-color: var(--linie); opacity: .65; }

.interferenzen { margin-top: 1rem; }
.interferenz-gitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: .5rem; }

/* Grosse Kacheln (MyVape-Vorbild): Titelzeile + gestapelte Metriken */
.sektion { color: var(--gedimmt); font-size: .78rem; letter-spacing: .08em; }
.kacheln-gross { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .7rem; }
.kachel-gross { background: var(--karte); border: 1px solid var(--linie); border-top: 3px solid var(--akzent); border-radius: 8px; padding: .7rem .9rem; color: inherit; text-decoration: none; display: block; }
.kachel-gross:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.kachel-kopf { font-weight: 700; font-size: .85rem; margin-bottom: .4rem; display: flex; justify-content: space-between; color: var(--akzent); }
.metrik { margin: .35rem 0; }
.metrik b { display: block; font-size: 1.25rem; line-height: 1.15; }
.metrik span { color: var(--gedimmt); font-size: .74rem; }

.panels { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .7rem; margin-top: 1rem; }
.panel { background: var(--karte); border: 1px solid var(--linie); border-radius: 8px; padding: .8rem 1rem; }
.panel h3 { margin: 0 0 .5rem; font-size: .95rem; }
.panel h3 small { color: var(--gedimmt); font-weight: 400; }
.panel .leer { margin-top: .4rem; padding: .8rem; }
.interferenz { display: flex; align-items: center; gap: .9rem; background: #fff4f4; border: 1px solid #f1c7c9; border-left: 4px solid var(--akzent); border-radius: 8px; padding: .6rem .9rem; margin-bottom: .5rem; color: inherit; text-decoration: none; }
.interferenz:hover { background: #ffecec; }
.interferenz .symbol { font-size: 1.3rem; }
.interferenz .pfeil { margin-left: auto; color: var(--gedimmt); }

table { width: 100%; border-collapse: collapse; background: var(--karte); border: 1px solid var(--linie); border-radius: 8px; overflow: hidden; margin-top: 1rem; }
th { text-align: left; background: var(--kopf); color: #fff; padding: .5rem .7rem; font-size: .8rem; }
td { padding: .45rem .7rem; border-top: 1px solid var(--linie); font-size: .88rem; }
tbody tr:hover { background: #fafafa; }

.leer { background: var(--karte); border: 1px dashed var(--linie); border-radius: 8px; padding: 1.2rem; color: var(--gedimmt); margin-top: 1rem; }
.unterreiter { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.chip { background: var(--kopf); color: #d9d9e0; border-radius: 999px; padding: .3rem .8rem; font-size: .78rem; font-weight: 600; opacity: .55; cursor: default; }
.sendeform { background: var(--karte); border: 1px solid var(--linie); border-left: 4px solid var(--akzent); border-radius: 8px; padding: 1rem; display: grid; gap: .6rem; grid-template-columns: 180px 220px 1fr; margin-top: 1rem; }
.sendeform textarea { grid-column: 1 / -1; }
.sendeform input, .sendeform select, .sendeform textarea { padding: .5rem .6rem; border: 1px solid var(--linie); border-radius: 7px; font: inherit; }
.sendeform button { grid-column: 1 / -1; justify-self: end; background: var(--akzent); color: #fff; border: 0; border-radius: 7px; padding: .55rem 1.4rem; font-weight: 600; cursor: pointer; }
footer { text-align: center; color: var(--gedimmt); font-size: .75rem; padding: 2rem 0 1rem; }

/* Planner-Board (Trello-artig) */
.board { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; margin-top: 1rem; align-items: start; }
.spalte { background: #ededf1; border-radius: 10px; padding: .6rem; min-height: 200px; }
.spalte h3 { margin: .2rem .3rem .6rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: #55555f; }
.zaehler { background: #d8d8de; border-radius: 999px; padding: .05rem .5rem; font-size: .75rem; }
.karten { display: flex; flex-direction: column; gap: .55rem; min-height: 60px; border-radius: 8px; }
.karten.ziel { outline: 2px dashed var(--akzent); outline-offset: 3px; }
.karte { background: #fff; border: 1px solid var(--linie); border-left: 4px solid #b9b9c2; border-radius: 8px; padding: .6rem .7rem; cursor: grab; }
.karte[draggable=true]:active { cursor: grabbing; }
.karte.zieht { opacity: .45; }
.karte p { margin: .3rem 0 0; font-size: .82rem; color: var(--gedimmt); }
.karte.prio-hoch { border-left-color: #f7a814; }
.karte.prio-kritisch { border-left-color: var(--akzent); }
.badges { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; }
.badge { background: #eef; border-radius: 5px; padding: .1rem .45rem; font-size: .72rem; color: #445; }
.badge.b-hoch { background: #fdeeca; color: #7a5600; }
.badge.b-kritisch { background: #fddcdd; color: #8d1418; }
.badge.b-person { background: #e8f3ea; color: #1e5c2c; }
.pruefen { margin-top: .5rem; background: #2e9e44; color: #fff; border: 0; border-radius: 6px; padding: .35rem .7rem; font-size: .8rem; cursor: pointer; }
.neue-aufgabe { margin-top: 1rem; }
.neue-aufgabe summary { cursor: pointer; font-weight: 600; color: var(--akzent); }
@media (max-width: 1100px) { .board { grid-template-columns: 1fr 1fr; } }
code { background: #eee; padding: .1em .35em; border-radius: 4px; }
