/* Ausgang, Leitstand (05.11.2026): dunkler Raum, Glasflaechen, Kanalfarbe als Leuchtkante.
   Hintergrund kommt aus hintergrund.js (WebGL-Licht + Code-Fetzen). Systemschrift im DIN-Stil, keine fremden Schriften. */
:root {
  --grund: #070b13;
  --glas: rgba(14, 20, 33, 0.74);
  --glas-hell: rgba(26, 35, 54, 0.82);
  --tinte: #e9eef6;
  --grau: #97a4b8;
  --linie: rgba(150, 175, 220, 0.18);
  --linie-stark: rgba(170, 195, 240, 0.34);
  --stempel: #ff5c8a;
  --kette: #6b8dff;
  --form: #2fd3a0;
  --nacht: #a495ff;
  --dach: #8fb0ff;
  --schrift: "Bahnschrift", "DIN Alternate", "DIN Next", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --text: "Bahnschrift", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--grund); }
body { margin: 0; background: transparent; color: var(--tinte); font: 16px/1.5 var(--text); min-height: 100vh; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--dach); outline-offset: 2px; }
a { color: var(--dach); }

/* ---------- Kopf ---------- */
.kopf { position: relative; z-index: 5; padding: 12px 16px 0; background: linear-gradient(180deg, rgba(7, 11, 19, 0.92), rgba(7, 11, 19, 0.6)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--linie); }
.kopf-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1180px; margin: 0 auto; }
.marke { font-family: var(--schrift); font-weight: 700; font-size: 26px; letter-spacing: 0.01em; margin: 0; display: flex; align-items: baseline; gap: 10px; }
.marke .puls { width: 9px; height: 9px; border-radius: 50%; background: var(--form); box-shadow: 0 0 12px var(--form); align-self: center; animation: puls 2.4s ease-in-out infinite; }
.marke small { font-weight: 400; font-size: 14px; color: var(--grau); }
@keyframes puls { 50% { opacity: .35; box-shadow: 0 0 4px var(--form); } }
.kopf-rechts { display: flex; align-items: center; gap: 14px; }
.zaehler { font-family: var(--mono); font-size: 13px; color: var(--grau); white-space: nowrap; }
.zaehler b { color: var(--tinte); font-weight: 600; }
.marke { white-space: nowrap; }
@media (max-width: 600px) {
  .kopf-zeile { flex-wrap: wrap; row-gap: 4px; }
  .marke { font-size: 23px; }
  .kopf-rechts { width: 100%; justify-content: space-between; }
  .zaehler { font-size: 12px; }
}
.abmelden { background: none; border: 0; color: var(--grau); text-decoration: underline; cursor: pointer; padding: 4px; font-size: 14px; }

.bereiche { display: flex; gap: 6px; max-width: 1180px; margin: 12px auto 0; }
.bereiche button { font-family: var(--schrift); font-size: 16px; font-weight: 700; cursor: pointer; background: transparent; color: var(--grau); border: 1px solid var(--linie); border-bottom: 0; padding: 8px 16px; min-height: 42px; border-radius: 10px 10px 0 0; }
.bereiche button[aria-pressed="true"] { color: var(--tinte); background: var(--glas-hell); border-color: var(--linie-stark); box-shadow: inset 0 2px 0 var(--dach); }
.neu { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; background: var(--stempel); color: #fff; font-size: 12px; line-height: 20px; text-align: center; border-radius: 10px; box-shadow: 0 0 10px var(--stempel); }
.neu[hidden] { display: none; }

#videos-kopf { max-width: 1180px; margin: 0 auto; }
#videos-kopf[hidden] { display: none; }
.reiter { display: flex; gap: 4px; overflow-x: auto; margin: 10px 0 0; scrollbar-width: none; }
.reiter::-webkit-scrollbar { display: none; }
.reiter button { font-family: var(--schrift); font-size: 15px; background: none; border: 0; border-bottom: 3px solid transparent; padding: 6px 10px 8px; cursor: pointer; white-space: nowrap; color: var(--grau); }
.reiter button[aria-pressed="true"] { color: var(--tinte); border-bottom-color: var(--reiter, var(--tinte)); font-weight: 700; text-shadow: 0 0 14px var(--reiter, transparent); }
.reiter .zahl { font-size: 12px; margin-left: 4px; font-family: var(--mono); }
.schalter { padding: 8px 0 10px; display: flex; gap: 14px; font-size: 14px; color: var(--grau); }
.schalter label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
input[type="checkbox"] { accent-color: var(--stempel); }

/* ---------- Liste ---------- */
main { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 20px 16px 80px; }
main[hidden] { display: none; }
.leer { font-family: var(--schrift); font-size: 20px; color: var(--grau); padding: 40px 0; max-width: 34em; }

.zettel {
  --dach: var(--tinte);
  position: relative;
  background: var(--glas);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--linie);
  border-radius: 16px;
  margin: 0 0 28px;
  display: grid; grid-template-columns: 1fr;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.zettel::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--dach); box-shadow: 0 0 18px var(--dach), 0 0 40px var(--dach); }
.zettel[data-dach="kettenwirkung"] { --dach: var(--kette); }
.zettel[data-dach="formfrage"] { --dach: var(--form); }
.zettel[data-dach="nachtfrage"] { --dach: var(--nacht); }
.zettel.fertig { border-color: color-mix(in srgb, var(--dach) 55%, transparent); }

.zettel-kopf { padding: 16px 18px 14px 22px; border-bottom: 1px solid var(--linie); display: flex; gap: 14px; align-items: center; }
.zettel-kopf .titelblock { flex: 1; min-width: 0; }
.dachname { font-family: var(--schrift); color: var(--dach); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; }
.zettel h2 { font-family: var(--schrift); font-size: 24px; line-height: 1.15; margin: 2px 0 6px; }
.zettel-meta { font-size: 14px; color: var(--grau); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.fortschritt { font-weight: 600; color: var(--tinte); }
.ring { flex: none; width: 54px; height: 54px; }
.ring circle { fill: none; stroke-width: 5; }
.ring .bahn { stroke: var(--linie); }
.ring .teil { stroke: var(--dach); filter: drop-shadow(0 0 4px var(--dach)); transition: opacity .3s; }
.ring .teil.aus { opacity: 0; }
.ring text { fill: var(--tinte); font: 700 14px var(--schrift); text-anchor: middle; dominant-baseline: central; }

.film { padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.film-innen { display: flex; flex-direction: column; gap: 12px; align-items: center; width: 100%; }
.film video { width: auto; max-width: 100%; height: 52vh; aspect-ratio: 9 / 16; background: #000; display: block; border-radius: 12px; box-shadow: 0 0 0 1px var(--linie-stark), 0 10px 40px color-mix(in srgb, var(--dach) 25%, transparent); }
.film video.quer { aspect-ratio: 16 / 9; width: 100%; height: auto; }
.laden {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; max-width: 380px; min-height: 56px; border-radius: 12px;
  background: var(--dach); color: #07101c; text-decoration: none;
  font-family: var(--schrift); font-size: 19px; font-weight: 700; border: 0; padding: 12px 16px;
  box-shadow: 0 0 24px color-mix(in srgb, var(--dach) 45%, transparent);
  transition: transform .15s, box-shadow .15s;
}
.laden:hover { transform: translateY(-1px); box-shadow: 0 0 34px color-mix(in srgb, var(--dach) 65%, transparent); }
.laden svg { width: 22px; height: 22px; flex: none; }
.laden-tt { font-size: 14px; color: var(--grau); margin: 0; text-align: center; }

/* ---------- Plattformen: Klapp-Liste, TikTok offen ---------- */
.plattformen { margin: 0; padding: 6px 0; }
details.pf { border-top: 1px solid var(--linie); }
details.pf:first-child { border-top: 0; }
details.pf > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 18px; min-height: 56px; user-select: none; }
details.pf > summary::-webkit-details-marker { display: none; }
details.pf > summary:hover { background: rgba(255, 255, 255, 0.03); }
.pf-pfeil { width: 18px; height: 18px; flex: none; color: var(--grau); transition: transform .2s; }
details.pf[open] .pf-pfeil { transform: rotate(90deg); color: var(--dach); }
.pf-name { font-family: var(--schrift); font-size: 19px; font-weight: 700; margin: 0; flex: 1; }
.pf-status { font-size: 13px; color: var(--grau); font-family: var(--mono); }
.pf.erledigt .pf-status { color: var(--stempel); }
.pf.erledigt .pf-name::after { content: " ✓"; color: var(--stempel); }
.pf-koerper { padding: 0 18px 18px 48px; position: relative; }
.ki { font-size: 13px; color: var(--grau); margin: 0 0 6px; }
.feld { margin-top: 10px; position: relative; }
.feld-titel { font-size: 12px; color: var(--grau); margin-bottom: 4px; font-family: var(--mono); letter-spacing: 0.03em; }
.text { white-space: pre-wrap; word-break: break-word; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--linie); border-radius: 10px; padding: 10px 12px; margin: 0; font: 15px/1.45 var(--text); max-height: 11.5em; overflow: auto; }
.feld-zeile { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
@media (min-width: 560px) { .feld-zeile { flex-direction: row; align-items: flex-start; } }
.feld-zeile .text { flex: 1; min-width: 0; }
.kopieren { flex: none; min-width: 104px; min-height: 44px; border-radius: 10px; background: transparent; border: 1px solid var(--linie-stark); cursor: pointer; font-family: var(--schrift); font-weight: 700; font-size: 15px; padding: 8px 12px; transition: background .15s, border-color .15s; }
.kopieren:hover { border-color: var(--dach); }
.kopieren.ok { background: var(--dach); color: #07101c; border-color: var(--dach); }
.fehlt { color: var(--grau); font-style: italic; font-size: 14px; }
.stempelfeld { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; min-height: 44px; margin-top: 10px; }
.stempelfeld input { width: 24px; height: 24px; margin: 0; }
.stempel { display: none; position: absolute; left: 38%; top: 14px; pointer-events: none; border: 3px solid var(--stempel); color: var(--stempel); font-family: var(--schrift); font-weight: 700; font-size: 18px; line-height: 1.1; padding: 4px 10px; transform: rotate(-7deg); text-align: center; border-radius: 6px; background: rgba(7, 11, 19, 0.72); text-shadow: 0 0 10px var(--stempel); box-shadow: 0 0 18px color-mix(in srgb, var(--stempel) 45%, transparent); }
.stempel small { display: block; font-weight: 400; font-size: 12px; }
.pf.erledigt .stempel { display: block; animation: drauf 260ms cubic-bezier(.2, 1.6, .5, 1) both; }
.pf.erledigt .text { opacity: .5; }
@keyframes drauf { from { transform: rotate(-7deg) scale(1.6); opacity: 0; } to { transform: rotate(-7deg) scale(1); opacity: 1; } }

@media (min-width: 900px) {
  .kopf { position: sticky; top: 0; }
  .film video { height: 60vh; width: auto; max-width: 100%; }
  .zettel { grid-template-columns: 400px 1fr; grid-template-areas: "kopf kopf" "film pf"; }
  .zettel-kopf { grid-area: kopf; }
  .film { grid-area: film; justify-content: flex-start; border-right: 1px solid var(--linie); }
  .film-innen { position: sticky; top: 150px; }
  .plattformen { grid-area: pf; }
}

/* ---------- Chat ---------- */
.chat { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; padding: 16px 16px 0; display: flex; flex-direction: column; height: calc(100dvh - 118px); }
.chat[hidden] { display: none; }
.chat-liste { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px 12px; }
.chat.ziehen .chat-liste { outline: 2px dashed var(--dach); outline-offset: -6px; border-radius: 12px; }
.blase { max-width: 85%; background: var(--glas-hell); border: 1px solid var(--linie); padding: 8px 12px; align-self: flex-start; border-radius: 14px 14px 14px 4px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.blase.ich { align-self: flex-end; background: color-mix(in srgb, var(--kette) 30%, rgba(14, 20, 33, 0.9)); border-color: color-mix(in srgb, var(--kette) 55%, transparent); border-radius: 14px 14px 4px 14px; }
.blase .wer { font-size: 12px; color: var(--grau); margin-bottom: 2px; font-family: var(--mono); }
.blase p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.anhang { margin-top: 6px; }
.anhang img, .anhang video { display: block; max-width: min(320px, 100%); max-height: 360px; border-radius: 10px; cursor: zoom-in; }
.anhang audio { width: min(300px, 100%); height: 40px; }
.anhang .datei-zeile { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 14px; margin-top: 4px; }
.anhang .datei-zeile a { color: var(--tinte); }
.sprach { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--grau); font-family: var(--mono); }

.chat-form { display: flex; gap: 8px; padding: 10px 0 16px; border-top: 1px solid var(--linie-stark); align-items: flex-end; }
.chat-form textarea { flex: 1; min-width: 0; resize: none; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--linie-stark); background: rgba(0, 0, 0, 0.35); font: 16px/1.4 var(--text); min-height: 46px; max-height: 140px; }
.chat-form textarea:focus { border-color: var(--dach); outline: none; }
.rund { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--linie-stark); background: rgba(0, 0, 0, 0.35); display: grid; place-items: center; cursor: pointer; }
.rund svg { width: 22px; height: 22px; }
.rund:hover { border-color: var(--dach); }
.senden { flex: none; min-width: 92px; min-height: 46px; border-radius: 12px; background: var(--kette); color: #07101c; border: 0; font-family: var(--schrift); font-weight: 700; font-size: 16px; cursor: pointer; box-shadow: 0 0 18px color-mix(in srgb, var(--kette) 50%, transparent); }
.aufnahme { display: flex; align-items: center; gap: 10px; padding: 10px 0 16px; border-top: 1px solid var(--linie-stark); }
.aufnahme[hidden] { display: none; }
.aufnahme .rot { width: 12px; height: 12px; border-radius: 50%; background: var(--stempel); box-shadow: 0 0 12px var(--stempel); animation: puls 1s infinite; }
.aufnahme canvas { flex: 1; height: 46px; min-width: 0; }
.aufnahme .zeit { font-family: var(--mono); font-size: 15px; min-width: 46px; }
.verwerfen { min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--linie-stark); background: transparent; cursor: pointer; }
.fortschrittsbalken { height: 3px; background: var(--kette); width: 0; transition: width .2s; box-shadow: 0 0 10px var(--kette); }

/* ---------- Einstellungen ---------- */
.einstellungen { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 24px 16px 60px; }
.einstellungen[hidden] { display: none; }
.karte { background: var(--glas); border: 1px solid var(--linie); border-radius: 16px; padding: 20px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.einstellungen h2 { font-family: var(--schrift); font-size: 22px; margin: 0 0 8px; }
.ort-jetzt { font-size: 17px; margin: 0 0 14px; }
.ort-jetzt b { font-family: var(--schrift); color: var(--dach); }
.knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.knoepfe button { min-height: 44px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--dach); background: var(--dach); color: #07101c; font-family: var(--schrift); font-weight: 700; font-size: 16px; cursor: pointer; }
.knoepfe .leise-knopf { background: transparent; color: var(--tinte); border-color: var(--linie-stark); }
.haken { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.haken input { width: 20px; height: 20px; margin-top: 2px; }
.klein { font-size: 14px; color: var(--grau); max-width: 60ch; }

/* ---------- Anmelden ---------- */
.tuer { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.tuer form { width: 100%; max-width: 380px; background: var(--glas); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--linie-stark); border-radius: 18px; padding: 26px 22px 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.tuer h1 { font-family: var(--schrift); font-size: 32px; margin: 0 0 4px; }
.tuer p { margin: 0 0 18px; color: var(--grau); }
.tuer label { display: block; font-size: 14px; margin: 12px 0 4px; color: var(--grau); }
.tuer input { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--linie-stark); background: rgba(0, 0, 0, 0.35); font-size: 17px; }
.tuer input:focus { border-color: var(--kette); outline: none; }
.tuer button { margin-top: 20px; width: 100%; min-height: 52px; border-radius: 12px; background: var(--kette); color: #07101c; border: 0; font-family: var(--schrift); font-size: 18px; font-weight: 700; cursor: pointer; box-shadow: 0 0 24px color-mix(in srgb, var(--kette) 45%, transparent); }
.meldung { margin-top: 14px; color: var(--stempel); font-weight: 600; min-height: 1.5em; }

.hinweis { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); background: var(--glas-hell); border: 1px solid var(--linie-stark); color: var(--tinte); padding: 10px 16px; border-radius: 12px; font-size: 15px; display: none; z-index: 60; max-width: calc(100% - 32px); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hinweis.zeigen { display: block; }

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

/* ---------- Runde 3: Heute dran, Notiz, Live-Link, Übersicht, Einstellungen ---------- */
.zahl-klein { font-family: var(--mono); font-size: 12px; color: var(--stempel); }
.schalter { flex-wrap: wrap; }
.ueberfaellig { color: var(--stempel); font-weight: 600; }
.heute-marke { color: var(--form); font-weight: 600; }

.live { margin-top: 12px; }
.live-zeile { display: flex; gap: 8px; }
.live-zeile input { flex: 1; min-width: 0; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--linie-stark); background: rgba(0, 0, 0, 0.3); font: 14px var(--text); }
.live-zeile input:focus { border-color: var(--dach); outline: none; }
.live-zeile button { flex: none; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--linie-stark); background: transparent; cursor: pointer; font-family: var(--schrift); font-weight: 700; }
.live-link { display: inline-block; margin-top: 6px; font-size: 14px; color: var(--dach); word-break: break-all; }
.pf-live { font-size: 12px; color: var(--dach); font-family: var(--mono); }

.notiz { grid-column: 1 / -1; border-top: 1px solid var(--linie); padding: 14px 18px 18px 22px; }
.notiz label { font-size: 12px; color: var(--grau); font-family: var(--mono); display: block; margin-bottom: 6px; }
.notiz textarea { width: 100%; min-height: 60px; resize: vertical; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--linie-stark); background: rgba(0, 0, 0, 0.3); font: 15px/1.45 var(--text); }
.notiz textarea:focus { border-color: var(--dach); outline: none; }
.notiz .wer { font-size: 12px; color: var(--grau); margin-top: 4px; min-height: 1.2em; }
@media (min-width: 900px) { .zettel { grid-template-areas: "kopf kopf" "film pf" "notiz notiz"; } .notiz { grid-area: notiz; } }

.uebersicht { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 20px 16px 60px; display: grid; gap: 18px; }
.uebersicht[hidden] { display: none; }
.monat-kopf { display: flex; align-items: center; gap: 14px; }
.monat-kopf h2 { font-family: var(--schrift); font-size: 26px; margin: 0; min-width: 9ch; text-align: center; }
.monat-kopf .rund { font-size: 22px; color: var(--tinte); }
.kacheln { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.kachel { --k: #6487ff; background: var(--glas); border: 1px solid var(--linie); border-radius: 16px; padding: 16px 18px; position: relative; overflow: hidden; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.kachel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--k); box-shadow: 0 0 16px var(--k); }
.kachel .name { font-family: var(--schrift); font-weight: 700; font-size: 15px; color: var(--grau); }
.kachel .zahl-gross { font-family: var(--schrift); font-size: 44px; font-weight: 700; line-height: 1.05; margin: 4px 0 2px; color: var(--tinte); }
.kachel .unter { font-size: 13px; color: var(--grau); margin-bottom: 12px; }
.balken-zeile { display: grid; grid-template-columns: 96px 1fr 28px; gap: 8px; align-items: center; font-size: 13px; margin: 5px 0; }
.balken-zeile .spur { height: 8px; background: rgba(255, 255, 255, 0.06); border-radius: 4px; overflow: hidden; }
.balken-zeile .fuell { height: 100%; background: var(--k); border-radius: 0 4px 4px 0; min-width: 0; }
.balken-zeile .wert { text-align: right; font-family: var(--mono); color: var(--tinte); }
.karte h3 { font-family: var(--schrift); font-size: 18px; margin: 0 0 12px; }
.kalender { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.kalender .wt { font-size: 12px; color: var(--grau); text-align: center; font-family: var(--mono); }
.tag { aspect-ratio: 1 / 1; border-radius: 10px; border: 1px solid var(--linie); background: rgba(255, 255, 255, 0.03); position: relative; display: flex; align-items: flex-end; justify-content: space-between; padding: 6px; font-size: 12px; color: var(--grau); cursor: default; }
.tag .t { position: absolute; top: 5px; left: 7px; font-family: var(--mono); }
.tag .n { font-family: var(--schrift); font-weight: 700; font-size: 16px; color: var(--tinte); margin-left: auto; }
.tag.leer { visibility: hidden; }
.tag.heute { border-color: var(--tinte); }
.tag .punkte { display: flex; gap: 3px; }
.tag .punkte i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.tabelle-auf { margin-top: 12px; font-size: 14px; }
.tabelle-auf summary { cursor: pointer; color: var(--grau); }
.tabelle-auf table { width: 100%; border-collapse: collapse; margin-top: 8px; font-family: var(--mono); font-size: 13px; }
.tabelle-auf th, .tabelle-auf td { text-align: right; padding: 4px 6px; border-bottom: 1px solid var(--linie); }
.tabelle-auf th:first-child, .tabelle-auf td:first-child { text-align: left; }
.zuletzt { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.zuletzt li { display: flex; gap: 10px; align-items: baseline; font-size: 14px; }
.zuletzt .pkt { width: 9px; height: 9px; border-radius: 50%; flex: none; align-self: center; }
.zuletzt .wann { font-family: var(--mono); color: var(--grau); font-size: 12px; min-width: 88px; }
.tipp { position: fixed; z-index: 70; pointer-events: none; background: var(--glas-hell); border: 1px solid var(--linie-stark); border-radius: 10px; padding: 8px 10px; font-size: 13px; max-width: 240px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tipp[hidden] { display: none; }

.einstellungen .karte + .karte { margin-top: 16px; }
.pw-form label { display: block; font-size: 14px; color: var(--grau); margin: 10px 0 4px; }
.pw-form input { width: 100%; max-width: 380px; padding: 11px; border-radius: 10px; border: 1px solid var(--linie-stark); background: rgba(0, 0, 0, 0.35); font-size: 16px; }
.pw-form .knoepfe { margin-top: 16px; }
.kalender { max-width: 640px; }

/* ---------- Runde 4: Chat so breit wie Videos, Bilder passend in der Blase, Pop-up, Scrollleiste ---------- */
.chat { max-width: 1180px; }
.chat-liste {
  padding: 8px 18px 14px 4px;             /* Abstand zur Scrollleiste */
  scrollbar-gutter: stable;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22px, #000 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 22px, #000 100%);
}
.blase { width: fit-content; max-width: min(72%, 680px); overflow-wrap: anywhere; }
@media (max-width: 600px) { .blase { max-width: 88%; } }
/* feste Grenzen statt Prozent: sonst rechnet die Blase mit der Originalbreite des Bildes */
.anhang img, .anhang video { width: auto; height: auto; max-width: min(380px, 66vw); max-height: 400px; object-fit: contain; }
.anhang img { cursor: zoom-in; transition: transform .15s, box-shadow .15s; }
.anhang img:hover { transform: scale(1.015); box-shadow: 0 0 0 1px var(--linie-stark), 0 8px 30px rgba(0, 0, 0, .45); }
.anhang audio { width: min(300px, 66vw); }
.anhang .datei-zeile span { overflow-wrap: anywhere; }

/* Scrollleisten: schmal, abgerundet, leuchtet beim Darueberfahren, passt zum Glas */
* { scrollbar-width: thin; scrollbar-color: rgba(150, 175, 220, 0.28) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(150, 175, 220, 0.24); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--kette) 70%, transparent); background-clip: padding-box; border: 2px solid transparent; }
::-webkit-scrollbar-corner { background: transparent; }

/* Foto-Pop-up */
.leuchtkasten { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-rows: auto 1fr auto; background: rgba(4, 7, 13, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: auf .18s ease-out; }
.leuchtkasten[hidden] { display: none; }
@keyframes auf { from { opacity: 0; } }
.lk-kopf { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: var(--grau); font-size: 14px; }
.lk-kopf .lk-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); }
.lk-kopf a, .lk-kopf button { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--linie-stark); background: rgba(0, 0, 0, .35); color: var(--tinte); font-family: var(--schrift); font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.lk-kopf button.lk-zu { width: 40px; padding: 0; justify-content: center; font-size: 20px; }
.lk-buehne { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 12px; }
.lk-buehne img { max-width: min(94vw, 1600px); max-height: calc(100dvh - 140px); object-fit: contain; border-radius: 10px; box-shadow: 0 30px 90px rgba(0, 0, 0, .6), 0 0 0 1px var(--linie-stark); animation: rein .22s cubic-bezier(.2, .9, .3, 1); }
@keyframes rein { from { transform: scale(.94); opacity: 0; } }
.lk-pfeil { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--linie-stark); background: rgba(0, 0, 0, .45); color: var(--tinte); font-size: 24px; cursor: pointer; }
.lk-pfeil[hidden] { display: none; }
.lk-links { left: 14px; } .lk-rechts { right: 14px; }
.lk-fuss { text-align: center; padding: 10px 16px 16px; color: var(--grau); font-size: 13px; font-family: var(--mono); }
@media (prefers-reduced-motion: reduce) { .leuchtkasten, .lk-buehne img { animation: none; } }
@media (max-width: 600px) {
  .bereiche { overflow-x: auto; scrollbar-width: none; gap: 4px; }
  .bereiche::-webkit-scrollbar { display: none; }
  .bereiche button { padding: 7px 11px; font-size: 15px; flex: none; }
}

/* ---------- Runde 5: Raster-Ansicht, Detail-Fenster, Hinweis ---------- */
.ansicht { display: inline-flex; margin-left: auto; border: 1px solid var(--linie-stark); border-radius: 10px; overflow: hidden; }
.ansicht button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; background: transparent; border: 0; color: var(--grau); cursor: pointer; font-family: var(--schrift); font-size: 14px; font-weight: 700; }
.ansicht button svg { width: 15px; height: 15px; }
.ansicht button[aria-pressed="true"] { background: var(--glas-hell); color: var(--tinte); box-shadow: inset 0 -2px 0 var(--kette); }
.hinweis-zeile { color: #ffc46b; font-weight: 600; }

.raster { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }
@media (max-width: 600px) { .raster { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.kachel-post { --dach: var(--tinte); position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; cursor: pointer; border: 1px solid var(--linie); background: #0b111c; padding: 0; text-align: left; color: var(--tinte); font: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.kachel-post[data-dach="kettenwirkung"] { --dach: var(--kette); }
.kachel-post[data-dach="formfrage"] { --dach: var(--form); }
.kachel-post[data-dach="nachtfrage"] { --dach: var(--nacht); }
.kachel-post.quer { grid-column: span 2; aspect-ratio: auto; min-height: 100%; }
.kachel-post:hover, .kachel-post:focus-visible { transform: translateY(-2px); border-color: var(--dach); box-shadow: 0 10px 34px color-mix(in srgb, var(--dach) 30%, transparent); }
.kachel-post img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kachel-post::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--dach); box-shadow: 0 0 12px var(--dach); z-index: 2; }
.kachel-post .schleier { position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 8, 14, .95) 0%, rgba(5, 8, 14, .55) 38%, rgba(5, 8, 14, 0) 62%); }
.kachel-post .oben { position: absolute; top: 8px; left: 10px; right: 8px; display: flex; justify-content: space-between; align-items: center; gap: 6px; z-index: 1; }
.kachel-post .marke-k { font-family: var(--schrift); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: rgba(5, 8, 14, .7); color: var(--dach); }
.kachel-post .punkte5 { display: flex; gap: 3px; padding: 4px 6px; border-radius: 8px; background: rgba(5, 8, 14, .7); }
.kachel-post .punkte5 i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.kachel-post .punkte5 i.an { background: var(--stempel); box-shadow: 0 0 6px var(--stempel); }
.kachel-post .unten { position: absolute; left: 12px; right: 10px; bottom: 10px; z-index: 1; }
.kachel-post .k-titel { font-family: var(--schrift); font-weight: 700; font-size: 15px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kachel-post .k-meta { font-size: 12px; color: var(--grau); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 2px 8px; }
.kachel-post .k-meta .ueberfaellig { color: var(--stempel); }
.kachel-post .k-meta .heute-marke { color: var(--form); }
.kachel-post .k-meta .pruefen { color: #ffc46b; }
.kachel-post.fertig .schleier { background: linear-gradient(to top, rgba(5, 8, 14, .95), rgba(5, 8, 14, .7)); }
.kachel-post.fertig .k-titel::after { content: " ✓"; color: var(--stempel); }
.mehr-laden { height: 1px; }

.detail { position: fixed; inset: 0; z-index: 75; background: rgba(4, 7, 13, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow-y: auto; padding: 24px 16px; animation: auf .18s ease-out; }
.detail[hidden] { display: none; }
.detail-rahmen { position: relative; max-width: 1180px; margin: 0 auto; }
.detail-rahmen .zettel { margin: 0; }
.detail-zu { position: sticky; top: 0; float: right; z-index: 3; width: 44px; height: 44px; margin: 0 0 -44px; border-radius: 50%; border: 1px solid var(--linie-stark); background: rgba(5, 8, 14, .8); color: var(--tinte); font-size: 20px; cursor: pointer; }
.kachel-post.quer { min-height: 230px; }
.detail-zu { margin: -12px -12px -44px 0; } @media (max-width: 600px) { .detail { padding: 14px 8px; } .detail-zu { margin: -4px -2px -44px 0; } }
.raster { grid-auto-flow: row dense; }
