/* Reel-Maschine — Oberfläche. Ruhig, dicht, schnell (angelehnt an Linear, Vercel, Frame.io).
   Hell und dunkel folgen der Systemeinstellung. */
:root {
  --bg: #fbfbfa; --bg2: #f4f4f2; --panel: #ffffff; --hover: #f0f0ee; --linie: #e7e6e3; --linie2: #d9d8d4;
  --text: #18181b; --text2: #52525b; --leise: #8b8b93;
  --akzent: #5b5bd6; --akzent-hell: #ededfc; --akzent-text: #4747c2;
  --gruen: #1f9d55; --gruen-hell: #e3f6ea; --gelb: #c27c0e; --gelb-hell: #fdf3dc;
  --rot: #d93f3f; --rot-hell: #fde9e9; --blau: #2f7fd8; --blau-hell: #e5f0fc; --grau-hell: #efefed;
  --orange: #d9661f; --orange-hell: #fdeee2;
  --buehne: #0e0e10;
  --r: 10px; --r-gross: 14px;
  --schatten: 0 1px 2px rgba(16,16,20,.04), 0 2px 8px rgba(16,16,20,.04);
  --schatten-hoch: 0 8px 30px rgba(16,16,20,.12), 0 2px 6px rgba(16,16,20,.06);
  --seite: 248px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c0e; --bg2: #111114; --panel: #151518; --hover: #1d1d21; --linie: #232328; --linie2: #2e2e34;
    --text: #ededf0; --text2: #b4b4bc; --leise: #7c7c86;
    --akzent: #7c7cf0; --akzent-hell: #1e1e3a; --akzent-text: #a5a5ff;
    --gruen: #3ecf7a; --gruen-hell: #10291b; --gelb: #f0b13d; --gelb-hell: #2d230f;
    --rot: #f26b6b; --rot-hell: #321617; --blau: #5aa5f5; --blau-hell: #11233a; --grau-hell: #1d1d21;
    --orange: #f59a5b; --orange-hell: #301e10;
    --buehne: #000;
    --schatten: 0 0 0 1px rgba(255,255,255,.02);
    --schatten-hoch: 0 12px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.5 "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01", "tnum"; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1 { font-size: 24px; line-height: 1.2; margin: 0; letter-spacing: -.02em; font-weight: 650; }
h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 14px; display: flex; align-items: center; gap: 8px; }
p { margin: 0; }
code { font: 12px/1.4 ui-monospace, "SF Mono", Menlo, monospace; background: var(--bg2); padding: 1px 5px; border-radius: 5px; }
kbd { font: 11px ui-monospace, "SF Mono", Menlo, monospace; opacity: .6; margin-left: 4px; }
.ic { flex: none; }
.leise { color: var(--leise); }
.klein { font-size: 12.5px; }
.mitte { text-align: center; }
.rot { color: var(--rot); } .gruen { color: var(--gruen); } .blau { color: var(--blau); }
.zweizeilig { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
::selection { background: var(--akzent-hell); }

/* ---------- Gerüst ---------- */
.app { display: grid; grid-template-columns: var(--seite) 1fr; min-height: 100vh; }
.seite {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 14px 12px;
  border-right: 1px solid var(--linie); background: var(--bg2); display: flex; flex-direction: column; gap: 6px;
}
.marke { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.01em; padding: 4px 8px 12px; }
.logo {
  width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 13px; font-weight: 750;
  color: #fff; background: linear-gradient(135deg, var(--akzent), #a35bd6); box-shadow: 0 2px 8px rgba(91,91,214,.35);
}
.nav { display: flex; flex-direction: column; gap: 1px; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 7px; color: var(--text2);
  transition: background .12s, color .12s;
}
.nav a:hover { background: var(--hover); color: var(--text); }
.nav a.an { background: var(--panel); color: var(--text); box-shadow: var(--schatten); font-weight: 550; }
.nav a span:not(.avatar):not(.zahl) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-titel { font-size: 11.5px; font-weight: 600; color: var(--leise); padding: 16px 8px 4px; letter-spacing: .02em; }
.zahl { font-size: 11.5px; font-weight: 600; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; display: grid; place-items: center; background: var(--grau-hell); color: var(--text2); }
.zahl.akzent { background: var(--akzent); color: #fff; }
.avatar {
  width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; flex: none;
}
.avatar.gross { width: 48px; height: 48px; border-radius: 13px; font-size: 22px; }
.a0 { background: linear-gradient(135deg, #f59e0b, #ef4444); } .a1 { background: linear-gradient(135deg, #10b981, #0ea5e9); }
.a2 { background: linear-gradient(135deg, #6366f1, #a855f7); } .a3 { background: linear-gradient(135deg, #ec4899, #f97316); }
.a4 { background: linear-gradient(135deg, #14b8a6, #84cc16); } .a5 { background: linear-gradient(135deg, #64748b, #334155); }
.systemstatus { margin-top: auto; padding: 12px 8px 4px; display: grid; gap: 6px; font-size: 12px; color: var(--leise); border-top: 1px solid var(--linie); }
.systemstatus div { display: flex; align-items: center; gap: 8px; }
.punkt { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--leise); flex: none; }
.punkt.gruen { background: var(--gruen); } .punkt.gelb { background: var(--gelb); } .punkt.blau { background: var(--blau); }
.puls { animation: puls 1.6s ease-in-out infinite; }
@keyframes puls { 50% { opacity: .35; } }

.inhalt { min-width: 0; padding: 28px clamp(16px, 3vw, 40px) 80px; max-width: 1400px; width: 100%; }
.mobilkopf, .mobilnav, .mobilaktion { display: none; }

/* ---------- Knöpfe, Felder ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 32px; padding: 0 12px;
  border-radius: 8px; border: 1px solid var(--linie2); background: var(--panel); color: var(--text);
  font: inherit; font-weight: 550; cursor: pointer; white-space: nowrap; box-shadow: var(--schatten);
  transition: background .12s, border-color .12s, transform .08s, box-shadow .12s;
}
.knopf:hover { background: var(--hover); }
.knopf:active { transform: translateY(1px); }
.knopf:disabled { opacity: .5; cursor: default; }
.knopf.primaer { background: var(--akzent); border-color: transparent; color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.1), inset 0 1px 0 rgba(255,255,255,.15); }
.knopf.primaer:hover { filter: brightness(1.08); }
.knopf.gruen { background: var(--gruen); border-color: transparent; color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.1), inset 0 1px 0 rgba(255,255,255,.18); }
.knopf.gruen:hover { filter: brightness(1.07); }
.knopf.leise { background: transparent; box-shadow: none; border-color: transparent; color: var(--text2); }
.knopf.leise:hover { background: var(--hover); color: var(--text); }
.knopf.klein { height: 28px; padding: 0 10px; font-size: 13px; }
.knopf.gross { height: 42px; font-size: 15px; border-radius: 10px; }
.knopf.breit { width: 100%; }
.textknopf { background: none; border: 0; padding: 0; color: var(--leise); font: inherit; font-size: 12.5px; cursor: pointer; }
.textknopf:hover { color: var(--text); text-decoration: underline; }

input, select, textarea {
  font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--linie2); border-radius: 8px;
  padding: 7px 10px; width: 100%; outline: none; transition: border-color .12s, box-shadow .12s;
}
textarea { resize: vertical; min-height: 76px; line-height: 1.45; }
select { appearance: none; padding-right: 28px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b8b93' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; }
input:focus, select:focus, textarea:focus { border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-hell); }
label { display: grid; gap: 5px; font-size: 12.5px; font-weight: 550; color: var(--text2); }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

/* ---------- Status ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 8px; border-radius: 11px;
  font-size: 12px; font-weight: 550; white-space: nowrap; background: var(--grau-hell); color: var(--text2);
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.gross { height: 28px; padding: 0 12px 0 10px; font-size: 13px; border-radius: 14px; }
.s-zur_pruefung { background: var(--gelb-hell); color: var(--gelb); }
.s-fehler { background: var(--rot-hell); color: var(--rot); }
.s-bereit { background: var(--akzent-hell); color: var(--akzent-text); }
.s-vorbereitung { background: var(--blau-hell); color: var(--blau); }
.s-vorbereitung i { animation: puls 1.4s ease-in-out infinite; }
.s-feedback { background: var(--orange-hell); color: var(--orange); }
.s-freigegeben { background: var(--gruen-hell); color: var(--gruen); }
.punkt.s-zur_pruefung { background: var(--gelb); } .punkt.s-fehler { background: var(--rot); }
.punkt.s-bereit { background: var(--akzent); } .punkt.s-vorbereitung { background: var(--blau); }
.punkt.s-feedback { background: var(--orange); } .punkt.s-freigegeben { background: var(--gruen); }

/* ---------- Seitenkopf, Filter ---------- */
.seitenkopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.seitenkopf .leise { margin-top: 4px; }
.pfad { display: flex; gap: 6px; font-size: 13px; color: var(--leise); margin-bottom: 6px; }
.pfad a:hover { color: var(--text); }
.filterleiste { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 26px; flex-wrap: wrap; }
.segmente { display: flex; gap: 4px; flex-wrap: wrap; }
.segmente a {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 8px;
  color: var(--text2); font-weight: 500; border: 1px solid transparent; transition: background .12s;
}
.segmente a:hover { background: var(--hover); }
.segmente a.an { background: var(--panel); border-color: var(--linie); color: var(--text); box-shadow: var(--schatten); }
.segmente a span { color: var(--leise); font-size: 12px; }
.kundenwahl select { height: 30px; padding-top: 0; padding-bottom: 0; width: auto; min-width: 160px; }

/* ---------- Reel-Kacheln ---------- */
.gruppe { margin-bottom: 34px; }
.gruppentitel { font-size: 13px; color: var(--text2); display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.gruppentitel span { color: var(--leise); font-weight: 500; }
.g-dich .gruppentitel::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--akzent); }
.reelraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px 16px; }
.reelkarte { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.poster {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-gross); overflow: hidden; background: var(--bg2);
  border: 1px solid var(--linie); box-shadow: var(--schatten); transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s;
  isolation: isolate;
}
.reelkarte:hover .poster { transform: translateY(-3px); box-shadow: var(--schatten-hoch); }
.poster img, .poster video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.poster video { z-index: 2; opacity: 0; transition: opacity .25s; }
.poster video.an { opacity: 1; }
.poster .initial {
  position: absolute; inset: 0; display: grid; place-items: center; font-size: 42px; font-weight: 700; color: var(--leise);
  background: radial-gradient(120% 80% at 30% 20%, var(--hover), var(--bg2));
}
.poster::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.35), transparent 28%, transparent 70%, rgba(0,0,0,.45)); }
.poster-oben { position: absolute; top: 9px; left: 9px; right: 9px; z-index: 4; }
.poster-oben .pill { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.versionen { position: absolute; z-index: 4; right: 9px; bottom: 9px; font-size: 11.5px; font-weight: 650; color: #fff; background: rgba(0,0,0,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 2px 7px; border-radius: 6px; }
.fortschritt { position: absolute; z-index: 4; left: 9px; right: 9px; bottom: 9px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
.fortschritt i { display: block; height: 100%; background: #fff; border-radius: 2px; transition: width .6s; }
.reeltext { display: grid; gap: 2px; padding: 0 2px; min-width: 0; }
.reeltext b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reeltext .leise { font-size: 12.5px; }

.leerzustand { border: 1px dashed var(--linie2); border-radius: var(--r-gross); padding: 48px 20px; display: grid; place-items: center; gap: 10px; text-align: center; color: var(--leise); margin-bottom: 30px; }
.leerzustand h3 { color: var(--text); font-size: 16px; }
.leerzustand.klein { padding: 30px 20px; }
.fusszeile { font-size: 12px; margin-top: 10px; }

/* ---------- Panels ---------- */
.panel { background: var(--panel); border: 1px solid var(--linie); border-radius: var(--r-gross); padding: 16px; box-shadow: var(--schatten); display: grid; gap: 12px; align-content: start; }
.panel.hervor { background: linear-gradient(160deg, var(--akzent-hell), var(--panel) 70%); border-color: color-mix(in srgb, var(--akzent) 30%, var(--linie)); }
.panelkopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
details.panel > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::after { content: "›"; color: var(--leise); font-size: 18px; transition: transform .15s; }
details[open].panel > summary::after { transform: rotate(90deg); }
.fehlerbox { background: var(--rot-hell); color: var(--rot); border-radius: 8px; padding: 9px 11px; font-size: 13px; }
.hinweis { color: var(--leise); font-size: 12.5px; }

/* ---------- Reel-Seite ---------- */
.reelseite { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.buehne { background: var(--buehne); border-radius: 18px; padding: 14px 14px 12px; display: grid; gap: 12px; position: sticky; top: 20px; }
.versionswahl { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.versionswahl::-webkit-scrollbar { display: none; }
.versionswahl a {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 7px; color: #a1a1aa;
  font-size: 13px; font-weight: 550; white-space: nowrap; transition: background .12s, color .12s;
}
.versionswahl a:hover { background: rgba(255,255,255,.07); color: #fff; }
.versionswahl a.an { background: rgba(255,255,255,.12); color: #fff; }
.versionswahl .punkt.s-zur_pruefung { background: #f0b13d; } .versionswahl .punkt.s-freigegeben { background: #3ecf7a; }
.versionswahl .punkt.s-feedback { background: #f59a5b; }
.spielerrahmen { display: grid; place-items: center; height: min(74vh, 860px); min-height: 360px; }
.spielerrahmen video { max-height: 100%; max-width: 100%; aspect-ratio: 9 / 16; border-radius: 10px; background: #000; }
.spielerrahmen.leer { color: #a1a1aa; gap: 8px; align-content: center; text-align: center; border: 1px dashed #2e2e34; border-radius: 12px; }
.dateiname { color: #71717a; font-size: 12px; text-align: center; }
.lade { width: 120px; height: 3px; background: #2e2e34; border-radius: 2px; overflow: hidden; margin: 0 auto 6px; }
.lade i { display: block; width: 40%; height: 100%; background: var(--blau); border-radius: 2px; animation: lade 1.3s ease-in-out infinite; }
@keyframes lade { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

.seitenspalte { display: grid; gap: 14px; }
.entscheidung .entscheiden { display: grid; gap: 7px; }
.drive { display: flex; gap: 7px; align-items: center; font-size: 12.5px; }
.feedbackblase { display: flex; gap: 9px; align-items: flex-start; background: var(--orange-hell); color: var(--text); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.feedbackblase .ic { color: var(--orange); margin-top: 3px; }
.freigegeben-hinweis { display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border-radius: 10px; background: var(--gruen-hell); color: var(--gruen); font-weight: 600; }
.feedbackform { display: grid; gap: 7px; border-top: 1px solid var(--linie); padding-top: 14px; }
.feedbackform .zeile { display: flex; justify-content: space-between; gap: 8px; }
.schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.schritte li { display: flex; align-items: center; gap: 10px; color: var(--leise); font-size: 13px; padding: 5px 0; position: relative; }
.schritte li i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--linie2); flex: none; position: relative; background: var(--panel); z-index: 1; }
.schritte li:not(:last-child)::before { content: ""; position: absolute; left: 7.5px; top: 21px; height: calc(100% - 16px); width: 1px; background: var(--linie2); }
.schritte li.fertig { color: var(--text2); }
.schritte li.fertig i { background: var(--gruen); border-color: var(--gruen); }
.schritte li.fertig i::after { content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.schritte li.laeuft { color: var(--text); font-weight: 550; }
.schritte li.laeuft i { border-color: var(--blau); border-top-color: transparent; animation: dreh .9s linear infinite; }
.schritte li.kaputt { color: var(--rot); font-weight: 550; }
.schritte li.kaputt i { background: var(--rot); border-color: var(--rot); }
@keyframes dreh { to { transform: rotate(360deg); } }

.unterbereich { display: grid; gap: 14px; margin-top: 24px; max-width: calc(100% - 364px); }
.wortlaut { font-size: 15px; line-height: 1.7; color: var(--text2); max-width: 72ch; }
.klein-video { max-height: 480px; border-radius: 10px; background: #000; }
.verlauf { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.verlauf li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--linie); font-size: 13px; }
.verlauf li:last-child { border-bottom: 0; }
.verlauf time { color: var(--leise); font-size: 12.5px; }
.log { font: 11.5px/1.5 ui-monospace, "SF Mono", Menlo, monospace; white-space: pre-wrap; max-height: 420px; overflow: auto; margin: 0; color: var(--text2); background: var(--bg2); padding: 12px; border-radius: 8px; }

/* ---------- Kundenseite (Robin) ---------- */
.kundenkopf-zeile { display: flex; gap: 14px; align-items: center; }
.kundenraster { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-bottom: 34px; }
.kopierfeld { display: flex; gap: 8px; }
.kopierfeld input { font: 12.5px ui-monospace, "SF Mono", Menlo, monospace; color: var(--text2); background: var(--bg2); }
.formular { display: grid; gap: 12px; }
.hilfe summary { cursor: pointer; font-size: 12.5px; color: var(--akzent-text); }
.hilfe p { font-size: 12.5px; color: var(--leise); margin-top: 6px; line-height: 1.55; }

/* ---------- Dialog Hochladen ---------- */
.dialog { border: 1px solid var(--linie); border-radius: 16px; padding: 0; width: min(520px, calc(100vw - 32px)); background: var(--panel); color: var(--text); box-shadow: var(--schatten-hoch); }
.dialog::backdrop { background: rgba(10,10,14,.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.dialog[open] { animation: auf .18s cubic-bezier(.2,.7,.3,1); }
@keyframes auf { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.dialog form { display: grid; gap: 16px; padding: 18px 20px 20px; }
.dialog-kopf { display: flex; justify-content: space-between; align-items: center; }
.dialog-kopf h2 { font-size: 16px; }
.dialog-fuss { display: flex; justify-content: flex-end; gap: 8px; }
.felder { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ablage {
  border: 1.5px dashed var(--linie2); border-radius: 12px; padding: 28px 16px; display: grid; place-items: center; gap: 6px;
  text-align: center; cursor: pointer; color: var(--text2); transition: border-color .15s, background .15s; font-weight: 400;
}
.ablage:hover, .ablage.drueber { border-color: var(--akzent); background: var(--akzent-hell); }
.ablage.gewaehlt { border-style: solid; border-color: var(--gruen); background: var(--gruen-hell); }
.ablage input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ablage b { color: var(--text); font-size: 14px; word-break: break-all; }
.ablage .leise { font-size: 12.5px; }
.hochlade-balken { position: relative; height: 26px; border-radius: 8px; background: var(--bg2); overflow: hidden; }
.hochlade-balken i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--akzent); transition: width .2s; }
.hochlade-balken span { position: relative; display: grid; place-items: center; height: 100%; font-size: 12.5px; font-weight: 600; mix-blend-mode: difference; color: #fff; }
.ziehflaeche { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; background: color-mix(in srgb, var(--akzent) 14%, transparent); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.ziehflaeche div { display: grid; place-items: center; gap: 10px; padding: 36px 48px; border: 2px dashed var(--akzent); border-radius: 20px; background: var(--panel); color: var(--akzent-text); box-shadow: var(--schatten-hoch); }
.ziehflaeche.an { display: grid; }

/* ---------- Kundenansicht (öffentlich) ---------- */
.kundenseite { background: var(--bg); }
.kundenbuehne { text-align: center; padding: 64px 16px 36px; }
.kundenbuehne h1 { font-size: clamp(30px, 6vw, 46px); letter-spacing: -.03em; font-weight: 700; }
.kundenbuehne .leise { margin-top: 8px; font-size: 15px; }
.ueberzeile { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--leise); margin-bottom: 10px; }
.kundeninhalt { max-width: 1160px; margin: 0 auto; padding: 0 16px 80px; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 20px; }
.clip { margin: 0; display: grid; gap: 12px; }
.clipvideo { aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #000; box-shadow: var(--schatten-hoch); }
.clipvideo video { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 2px; }
.clip figcaption div { display: grid; min-width: 0; }
.clip figcaption b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip figcaption .leise { font-size: 12.5px; }

/* ---------- Handy und Tablet ---------- */
@media (max-width: 1080px) {
  .reelseite { grid-template-columns: 1fr; }
  .buehne { position: static; }
  .spielerrahmen { height: min(78vh, 760px); }
  .unterbereich { max-width: none; }
}
@media (max-width: 760px) {
  .app { display: block; }
  .seite { display: none; }
  .mobilkopf {
    display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 20;
    padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--linie);
  }
  .mobilkopf .marke { padding: 0; }
  .mobilkopf .knopf { width: 34px; height: 34px; padding: 0; border-radius: 10px; }
  .mobilnav { display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px 0; scrollbar-width: none; }
  .mobilnav::-webkit-scrollbar { display: none; }
  .mobilnav a { flex: none; height: 30px; padding: 0 12px; border-radius: 15px; display: inline-flex; align-items: center; gap: 6px; background: var(--bg2); border: 1px solid var(--linie); color: var(--text2); font-weight: 500; }
  .mobilnav a.an { background: var(--text); color: var(--bg); border-color: var(--text); }
  .mobilnav b { font-size: 11.5px; background: var(--akzent); color: #fff; border-radius: 8px; padding: 0 6px; }
  .inhalt { padding: 18px 16px 110px; }
  h1 { font-size: 21px; }
  .seitenkopf { margin-bottom: 16px; }
  .filterleiste { margin-bottom: 20px; }
  .segmente { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .segmente::-webkit-scrollbar { display: none; }
  .segmente a { flex: none; }
  .kundenwahl { display: none; }
  .reelraster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .buehne { margin: 0 -16px; border-radius: 0; padding: 10px 0 10px; }
  .versionswahl { padding: 0 12px; }
  .spielerrahmen { height: auto; min-height: 0; }
  .spielerrahmen video { width: 100%; border-radius: 0; }
  .spielerrahmen.leer { margin: 0 12px; height: 300px; }
  .verlauf li { grid-template-columns: 1fr; gap: 0; }
  .felder { grid-template-columns: 1fr; }
  .kundenraster { grid-template-columns: 1fr; }
  .kundenbuehne { padding: 44px 16px 26px; }
  .galerie { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .mobilaktion {
    display: flex; gap: 10px; position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--panel) 88%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--linie);
  }
  .mobilaktion > * { flex: 1; }
  .mobilaktion .knopf { width: 100%; height: 44px; font-size: 15px; border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.zeitmarke { font: inherit; font-weight: 650; color: var(--akzent-text); background: var(--akzent-hell); border: 0; border-radius: 5px; padding: 0 4px; cursor: pointer; }
p > .punkt:first-child, .formular .punkt { margin-right: 7px; vertical-align: 1px; }
.spielerrahmen.leer { height: 420px; min-height: 0; }

/* ---------- Eingang, Restzeit, Idee, Schalter (21.11.2026) ---------- */
.reelkarte { position: relative; }
.kartenlink { position: absolute; inset: 0; z-index: 5; border-radius: var(--r-gross); }
.kartenlink:focus-visible { outline-offset: 3px; }
.kartenaktion { position: relative; z-index: 6; }
.s-neu { background: var(--akzent); color: #fff; }
.punkt.s-neu { background: var(--akzent); }
.ideenmarke { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 6px; vertical-align: top; border-radius: 11px; background: rgba(0,0,0,.45); color: #ffd98a; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.warteinfo { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--blau-hell); }
.warteinfo div { display: grid; font-size: 13px; }
.warteinfo .leise { font-size: 12.5px; }
.grossfortschritt { width: min(320px, 70%); height: 6px; border-radius: 3px; background: #2e2e34; overflow: hidden; margin: 0 auto 10px; }
.grossfortschritt i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--blau), #8fc1ff); transition: width .8s; }
.spielerrahmen.leer form { margin-top: 12px; }
.panel.idee { border-color: color-mix(in srgb, #d4a24c 35%, var(--linie)); }
.panel.idee h3 .ic { color: #c8913a; }
.ideeform { display: grid; gap: 7px; }
.ideeform .zeile { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.u-ja { background: var(--gruen-hell); color: var(--gruen); }
.u-teilweise { background: var(--gelb-hell); color: var(--gelb); }
.u-nein { background: var(--rot-hell); color: var(--rot); }
.schalter { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 550; color: var(--text); cursor: pointer; grid-template-columns: none; }
.schalter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.schalter span { width: 36px; height: 21px; border-radius: 11px; background: var(--linie2); position: relative; flex: none; transition: background .15s; }
.schalter span::after { content: ""; position: absolute; top: 2.5px; left: 2.5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .18s cubic-bezier(.2,.7,.3,1); }
.schalter input:checked + span { background: var(--gruen); }
.schalter input:checked + span::after { transform: translateX(15px); }
.schalter input:focus-visible + span { outline: 2px solid var(--akzent); outline-offset: 2px; }
.schalterform { display: grid; gap: 8px; }
.navzeile { position: relative; }
.navzeile > a:first-child { padding-right: 30px; }
.navzeile .extern { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; color: var(--leise); opacity: 0; transition: opacity .12s, background .12s; }
.navzeile:hover .extern, .navzeile .extern:focus-visible { opacity: 1; }
.navzeile .extern:hover { background: var(--hover); color: var(--text); }
.navzeile:hover .zahl { visibility: hidden; }
@media (hover: none) { .navzeile .extern { opacity: 1; } .navzeile .zahl { margin-right: 22px; } }

/* ---------- Verbrauch ---------- */
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kachel { background: var(--panel); border: 1px solid var(--linie); border-radius: var(--r-gross); padding: 14px 16px; display: grid; gap: 2px; box-shadow: var(--schatten); }
.kachel > .leise:first-child { font-size: 12.5px; font-weight: 550; }
.kachel b { font-size: 26px; letter-spacing: -.02em; font-weight: 650; }
.kachel b small { font-size: 13px; font-weight: 500; color: var(--leise); }
.panel + .panel, .panel + .kundenraster, .kennzahlen + .panel { margin-top: 0; }
.seitenkopf + .kennzahlen ~ .panel { margin-bottom: 16px; }
.balken { display: flex; align-items: flex-end; gap: 8px; height: 180px; padding-top: 18px; }
.balkenspalte { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.balkenspalte i { width: 100%; max-width: 42px; min-height: 2px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--akzent), color-mix(in srgb, var(--akzent) 55%, transparent)); }
.balkenspalte .wert { font-size: 11px; color: var(--leise); }
.balkenspalte .tag { font-size: 11px; color: var(--leise); }
.tabelle { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tabelle th { text-align: left; font-size: 12px; font-weight: 550; color: var(--leise); padding: 6px 8px; border-bottom: 1px solid var(--linie); }
.tabelle td { padding: 8px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle a:hover { text-decoration: underline; }
.zahlspalte { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; }
.inhalt > .panel, .inhalt > .kundenraster { margin-bottom: 16px; }
.mitteilungsknopf { justify-content: flex-start; margin-top: 8px; }
.mitteilungsknopf.an { color: var(--gruen); }
.mobilknoepfe { display: flex; gap: 8px; }
[data-mitteilungen].an .ic { color: var(--gruen); }
@media (max-width: 760px) { .seitenkopf { flex-wrap: wrap; } .warteinfo { width: 100%; } }

/* ---------- Anmeldung ---------- */
.loginseite { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(120% 80% at 50% 0%, var(--akzent-hell), var(--bg) 60%); }
.loginkarte { width: min(380px, 100%); background: var(--panel); border: 1px solid var(--linie); border-radius: 18px; padding: 26px 24px 20px; box-shadow: var(--schatten-hoch); display: grid; gap: 16px; }
.loginkarte .marke { padding: 0; }
.loginkarte h1 { font-size: 22px; }
.loginkarte input { height: 42px; font-size: 16px; }
.abmelden { padding: 4px 8px 0; }
.codefeld { font: 600 24px/1 ui-monospace, "SF Mono", Menlo, monospace !important; letter-spacing: .3em; text-align: center; height: 52px !important; }
.qr { background: #fff; border-radius: 12px; padding: 10px; width: 220px; max-width: 100%; }
.qr svg { width: 100%; height: auto; display: block; }
.geheimtext { font: 13px ui-monospace, "SF Mono", Menlo, monospace; word-break: break-all; background: var(--bg2); padding: 8px 10px; border-radius: 8px; user-select: all; }
.okbox { background: var(--gruen-hell); color: var(--gruen); border-radius: 8px; padding: 9px 11px; font-size: 13px; }
.zahl.gelb { background: var(--gelb-hell); color: var(--gelb); }
.anleitung { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--text2); }
.kundenraster > * { min-width: 0; }
@media (max-width: 760px) { .tabelle .zahlspalte.klein { white-space: normal; } .kundenraster { grid-template-columns: minmax(0, 1fr); } }
.kundenpasswort { display: grid; gap: 8px; border-top: 1px solid var(--linie); padding-top: 12px; }
.kundenpasswort .panelkopf b { display: flex; gap: 6px; align-items: center; }
.kundenlogin { margin: 0 auto; }
.kundenlogin h2 { font-size: 20px; }
.kundenlogin input { height: 44px; font-size: 16px; }

/* ---------- Bibliothek, Regeln, Referenzen ---------- */
.kopfknoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.bausteinraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 16px; }
.baustein h3 { font-size: 15px; }
.bausteinclip { aspect-ratio: 9 / 16; max-height: 420px; border-radius: 10px; overflow: hidden; background: #000; display: grid; place-items: center; }
.bausteinclip video, .bausteinclip img { width: 100%; height: 100%; object-fit: contain; }
.md { font-size: 13.5px; line-height: 1.6; color: var(--text2); overflow-wrap: anywhere; }
.md h1 { font-size: 18px; margin: 8px 0; } .md h2 { font-size: 15px; margin: 16px 0 6px; color: var(--text); } .md h3 { font-size: 14px; margin: 12px 0 4px; display: block; }
.md p, .md ul, .md ol { margin: 6px 0; } .md ul, .md ol { padding-left: 20px; }
.md table { border-collapse: collapse; width: 100%; font-size: 12.5px; margin: 8px 0; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--linie); padding: 5px 7px; text-align: left; vertical-align: top; }
.md code { font-size: 12px; }
.soundliste { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px 14px; }
.sound { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 8px 6px; border-radius: 10px; }
.sound:hover { background: var(--hover); }
.abspielen { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--linie2); background: var(--panel); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.abspielen:hover { background: var(--akzent); color: #fff; border-color: transparent; }
.abspielen.spielt { background: var(--akzent); color: #fff; border-color: transparent; animation: puls 1s ease-in-out infinite; }
.grafikraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.grafik { display: grid; gap: 4px; }
.grafik img, .grafik video { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--bg2); border-radius: 10px; border: 1px solid var(--linie); }
.regelraster { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.regelspalte { display: grid; gap: 14px; }
.md-panel > summary h3 { flex: 1; }
.referenz { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.referenz:last-child { border-bottom: 0; }
.referenz video, .referenz img { width: 100%; max-height: 320px; object-fit: contain; background: #000; border-radius: 8px; }
.referenz .zeile { display: flex; justify-content: space-between; align-items: center; }
@media (max-width: 1080px) { .regelraster { grid-template-columns: 1fr; } }
.abofenster { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.abobalken { display: grid; gap: 6px; }
.abobalken .zeile, .anteilzeile .zeile { display: flex; justify-content: space-between; gap: 10px; }
.abobalken .zeile b:last-child { font-size: 20px; }
.balkenspur { height: 10px; border-radius: 5px; background: var(--bg2); overflow: hidden; border: 1px solid var(--linie); }
.balkenspur.duenn { height: 6px; border: 0; }
.balkenspur i { display: block; height: 100%; border-radius: 5px; background: var(--akzent); }
.balkenspur i.mittel { background: var(--gelb); } .balkenspur i.voll { background: var(--rot); }
.gelb { color: var(--gelb); }
.anteilzeile { display: grid; gap: 4px; font-size: 13.5px; }
.kieleiste { display: flex; gap: 32px; }
.grosszahl { font-size: 26px; font-weight: 650; letter-spacing: -.02em; }

/* ---------- Mit Claude arbeiten ---------- */
.claudebereich { margin-top: 24px; }
.claudeverlauf { display: grid; gap: 12px; }
.auftrag { border: 1px solid var(--linie); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; background: var(--bg); }
.auftragkopf { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.auftragstatus { margin-left: auto; color: var(--leise); }
.a-laeuft .auftragstatus, .a-wartet .auftragstatus { color: var(--blau); animation: puls 1.4s ease-in-out infinite; }
.a-fertig .auftragstatus { color: var(--gruen); }
.a-fehler .auftragstatus { color: var(--rot); }
.robinnachricht { justify-self: end; max-width: 85%; background: var(--akzent); color: #fff; border-radius: 14px 14px 4px 14px; padding: 8px 12px; white-space: pre-wrap; font-size: 14px; }
.ereignisse { display: grid; gap: 4px; }
.claudetext { white-space: pre-wrap; font-size: 14px; line-height: 1.55; background: var(--panel); border: 1px solid var(--linie); border-radius: 4px 14px 14px 14px; padding: 9px 12px; max-width: 92%; }
.claudetext.neben { opacity: .75; font-size: 13px; border-style: dashed; }
.werkzeug { font: 12px/1.45 ui-monospace, "SF Mono", Menlo, monospace; color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.werkzeug span { color: var(--text2); font-weight: 600; }
.werkzeug.neben { padding-left: 14px; }
.rollezeile { color: var(--akzent-text); }
.claudeeingabe { display: grid; gap: 8px; border-top: 1px solid var(--linie); padding-top: 12px; }
.claudeknoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.goleiste { display: flex; gap: 12px; align-items: center; justify-content: flex-end; padding: 10px 12px; background: var(--gruen-hell); border-radius: 12px; }
.auswahlblatt > summary { cursor: pointer; display: flex; gap: 8px; align-items: baseline; margin-bottom: 10px; }
.auswahlraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 10px; }
.auswahlkarte { margin: 0; display: grid; gap: 4px; }
.auswahlkarte video, .auswahlkarte img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: #000; display: block; }
.auswahlkarte audio { width: 100%; }
.auswahlkarte figcaption { font-size: 12.5px; font-weight: 600; }

/* Vollbild: nie beschneiden, ganzes Hochformat zeigen */
video:fullscreen, video:-webkit-full-screen { object-fit: contain !important; aspect-ratio: auto !important; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; border-radius: 0 !important; background: #000 !important; }

/* ---------- Pipeline ---------- */
.pipeline { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0; border: 1px solid var(--linie); border-radius: var(--r-gross); overflow: hidden; background: var(--panel); box-shadow: var(--schatten); margin-bottom: 8px; }
.stufe { display: grid; gap: 2px; padding: 12px 12px 10px; border-right: 1px solid var(--linie); position: relative; transition: background .12s; min-width: 0; }
.stufe:last-child { border-right: 0; }
.stufe:hover { background: var(--hover); }
.stufe b { font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
.stufe span { font-size: 12px; color: var(--leise); line-height: 1.25; }
.stufe.leer b { color: var(--leise); opacity: .5; }
.stufe.an { background: var(--akzent-hell); }
.stufe::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 2px 2px 0 0; }
.st-pruefung::after { background: var(--gelb); } .st-kunde::after { background: var(--blau); } .st-aenderung::after { background: var(--orange); }
.st-frei::after { background: var(--gruen); } .st-gepostet::after { background: var(--akzent); } .st-vorbereitung::after { background: #8fc1ff; }
.pipelinefuss { margin: 0 0 22px; }
.hervorzahl { color: var(--gruen); font-weight: 600; }
@media (max-width: 1080px) { .pipeline { grid-template-columns: repeat(4, minmax(0, 1fr)); } .stufe:nth-child(4) { border-right: 0; } .stufe:nth-child(-n+4) { border-bottom: 1px solid var(--linie); } }

/* ---------- Kunden-Status und Feedback ---------- */
.k-ungesehen { background: var(--blau-hell); color: var(--blau); }
.k-angesehen { background: var(--grau-hell); color: var(--text2); }
.k-aenderung { background: var(--orange-hell); color: var(--orange); }
.k-frei { background: var(--gruen-hell); color: var(--gruen); }
.k-gepostet { background: var(--akzent-hell); color: var(--akzent-text); }
.kundenzeile { color: var(--text2); } .k-text-aenderung { color: var(--orange); } .k-text-frei { color: var(--gruen); }
.kundenfeedbackbereich { margin-top: 24px; display: grid; gap: 10px; }
.kundenzahlen { display: flex; gap: 22px; flex-wrap: wrap; align-items: baseline; padding-bottom: 6px; border-bottom: 1px solid var(--linie); }
.kundenzahlen div { display: grid; }
.kundenzahlen b { font-size: 20px; } .kundenzahlen span { font-size: 12px; color: var(--leise); }
.fb { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--linie); background: var(--bg); }
.fb p { margin: 0; white-space: pre-wrap; font-size: 14px; }
.fbkopf { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fbaktionen { margin-left: auto; display: flex; gap: 12px; }
.fb-revision { border-left: 3px solid var(--orange); } .fb-anpassung { border-left: 3px solid var(--gelb); }
.fb-herz { border-left: 3px solid #e2557b; } .fb-freigabe { border-left: 3px solid var(--gruen); } .fb-gepostet { border-left: 3px solid var(--akzent); }
.fb.angepinnt { box-shadow: 0 0 0 2px var(--akzent-hell); }
.fb.erledigt { opacity: .55; }
.fb.robin { background: var(--akzent-hell); border-color: transparent; margin-left: 18px; }
.antwortform { display: flex; gap: 8px; }
.antwortform input { height: 30px; font-size: 13px; }

/* ---------- Kundenansicht: Galerie und Reel ---------- */
.kundenpipe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 640px; margin: 0 auto 30px; }
.kundenpipe div { background: var(--panel); border: 1px solid var(--linie); border-radius: 14px; padding: 12px; text-align: center; display: grid; gap: 2px; box-shadow: var(--schatten); }
.kundenpipe b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.kundenpipe span { font-size: 12.5px; color: var(--leise); }
.kundenpipe .hervor { border-color: var(--blau); box-shadow: 0 0 0 3px var(--blau-hell); }
a.clip { color: inherit; }
.clipvideo.poster { position: relative; }
.clipvideo.poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
a.clip:hover .clipvideo.poster img { transform: scale(1.03); }
.abspielsymbol { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding-left: 4px; }
.clipstatus { position: absolute; left: 12px; top: 12px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.clipunter { display: grid; gap: 2px; padding: 0 2px; }
.kundenreel { padding-top: 24px; }
.kundenreel .zurueck { display: inline-block; margin-bottom: 14px; color: var(--leise); }
.kundenreelraster { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 28px; align-items: start; }
.clipvideo.gross { max-height: 82vh; position: sticky; top: 20px; }
.clipvideo.gross video { object-fit: contain; }
.kundenspalte { display: grid; gap: 16px; }
.kundenspalte h1 { font-size: 24px; margin-bottom: 6px; }
.kundenknoepfe { display: grid; gap: 8px; }
.aktion > summary { list-style: none; cursor: pointer; }
.aktion > summary::-webkit-details-marker { display: none; }
.aktion[open] > summary { margin-bottom: 8px; }
.kundenfeedback { background: var(--panel); border: 1px solid var(--linie); border-radius: 16px; padding: 14px; display: grid; gap: 10px; box-shadow: var(--schatten); }
.reiter { display: flex; gap: 4px; flex-wrap: wrap; }
.reiter button { border: 1px solid transparent; background: transparent; color: var(--text2); font: inherit; font-size: 13px; font-weight: 550; padding: 6px 10px; border-radius: 8px; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; }
.reiter button.an { background: var(--bg2); border-color: var(--linie); color: var(--text); }
[data-kundenstelle].an { color: var(--akzent-text); }
.kundenverlauf { display: grid; gap: 8px; }
.kundenverlauf h3 { font-size: 14px; }
@media (max-width: 760px) {
  .kundenreelraster { grid-template-columns: 1fr; }
  .clipvideo.gross { position: static; max-height: none; }
  .kundenpipe { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stufe { border-bottom: 1px solid var(--linie); }
  .stufe:nth-child(2n) { border-right: 0; }
  .fbaktionen { margin-left: 0; width: 100%; }
}

/* ---------- Server-Auslastung ---------- */
.servermini { display: grid; gap: 5px; padding: 10px 8px 4px; border-top: 1px solid var(--linie); margin-top: auto; font-size: 11.5px; }
.servermini > div { display: grid; grid-template-columns: 38px 1fr 40px; gap: 8px; align-items: center; }
.servermini span { color: var(--leise); }
.servermini b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text2); }
.servermini .balkenspur i { transition: width .6s ease, background .3s; }
.servermini p { margin: 2px 0 0; }
.servermini + .systemstatus { margin-top: 0; }

/* ---------- Verlaufskurven ---------- */
.kurve { position: relative; width: 100%; }
.kurvesvg { width: 100%; height: auto; display: block; overflow: visible; touch-action: pan-y; }
.kurvesvg .raster { stroke: var(--linie); stroke-width: 1; }
.kurvesvg .achse { fill: var(--leise); font-size: 11px; font-variant-numeric: tabular-nums; }
.kurvesvg .linie { fill: none; stroke: var(--akzent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.kurvesvg .flaeche { fill: var(--akzent); opacity: .12; }
.kurvesvg .fadenkreuz { stroke: var(--leise); stroke-width: 1; stroke-dasharray: 3 3; }
.kurvesvg .punktmarke { fill: var(--akzent); stroke: var(--panel); stroke-width: 2; }
.kurvetip { position: absolute; top: 4px; transform: translateX(-50%); background: var(--panel); border: 1px solid var(--linie); box-shadow: var(--schatten-hoch); border-radius: 8px; padding: 5px 9px; display: grid; font-size: 12px; pointer-events: none; white-space: nowrap; }
.kurvetip b { font-size: 14px; color: var(--text); }
.kurvetip span { color: var(--leise); }
.kleinwert { font-size: 15px !important; line-height: 1.35; }
a.servermini { color: inherit; border-radius: 8px; }
a.servermini:hover { background: var(--hover); }
.abokurven { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 6px; }
.abokurven h4 { margin: 0 0 4px; font-size: 12.5px; font-weight: 550; color: var(--text2); }
.kurvetip[hidden] { display: none; }
.kurvesvg .fadenkreuz, .kurvesvg .punktmarke { visibility: hidden; }
.kurve.zeigt .fadenkreuz, .kurve.zeigt .punktmarke { visibility: visible; }
.gefahr { margin-top: 14px; }
.gefahr > summary h3 { color: var(--text2); }
.gefahrraster { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 10px; }
.rotknopf { color: var(--rot); border-color: color-mix(in srgb, var(--rot) 40%, var(--linie)); }
.rotknopf:hover { background: var(--rot); color: #fff; }
.warnband { background: var(--gelb-hell); color: var(--gelb); border-radius: 10px; padding: 9px 12px; font-size: 13px; margin-bottom: 14px; }

/* Player: Video immer im Rahmen halten (Höhe fest, Breite folgt dem Hochformat) */
.spielerrahmen { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.spielerrahmen video { height: 100%; width: auto; max-width: 100%; max-height: 100%; object-fit: contain; flex: none; }
@media (max-width: 760px) {
  .spielerrahmen { height: auto; }
  .spielerrahmen video { width: 100%; height: auto; max-height: 80vh; }
}
.gleichraster { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.gleichraster select { width: auto; display: inline-block; height: 30px; padding-top: 0; padding-bottom: 0; margin: 0 4px; }
#gleichzeitig { margin-bottom: 16px; }

/* ---------- Regler Arbeitsmodus ---------- */
.regler { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px; border-radius: 10px; background: var(--hover); border: 1px solid var(--linie); }
.regler button { border: 0; background: transparent; font: inherit; font-size: 12px; font-weight: 550; color: var(--text2); padding: 6px 4px; border-radius: 7px; cursor: pointer; transition: background .15s, color .15s; }
.regler button:hover { color: var(--text); }
.regler button.an { background: var(--panel); color: var(--text); box-shadow: var(--schatten); }
.regler .r-entspannt.an { color: var(--gruen); } .regler .r-session.an { color: var(--akzent-text); }
.reglerhinweis { color: var(--gelb); margin: 2px 4px 0; }
.mobilregler { display: none; }
.stufentabelle input[type=number] { width: 70px; height: 30px; padding: 4px 6px; display: inline-block; }
.stufentabelle select { width: 64px; height: 30px; padding-top: 0; padding-bottom: 0; }
.zeile.schalterform { display: flex; }
@media (max-width: 760px) { .mobilregler { display: block; padding: 10px 16px 0; } .mobilregler .regler button { font-size: 13px; padding: 8px 4px; } }
.einstellungstitel { margin-top: 10px; }
.mitteilungsform .panel { gap: 10px; }
.mitteilungsform .schalter { font-size: 13.5px; font-weight: 500; }
.ruhezeile { display: flex; gap: 8px; align-items: center; font-size: 13.5px; }
.ruhezeile select { width: auto; height: 30px; padding-top: 0; padding-bottom: 0; }
.speicherleiste { display: flex; justify-content: flex-end; margin: -6px 0 24px; position: sticky; bottom: 12px; }
.mitteilungszeile { display: flex; gap: 4px; align-items: center; margin-top: 8px; }
.mitteilungszeile .mitteilungsknopf { margin-top: 0; flex: 1; }
.mitteilungszeile .zahnrad { width: 30px; padding: 0; flex: none; }
.mitteilungszeile .mitteilungsknopf[hidden] + .zahnrad { margin-left: auto; }
.s-vorschlaege { background: var(--akzent); color: #fff; }
.s-ideen, .s-baut { background: var(--blau-hell); color: var(--blau); }
.s-ideen i, .s-baut i { animation: puls 1.4s ease-in-out infinite; }
.punkt.s-vorschlaege { background: var(--akzent); } .punkt.s-ideen, .punkt.s-baut { background: var(--blau); }
.abomini { margin-top: 0; border-top: 0; padding-top: 4px; }

/* ---------- Auswahl zum Anklicken ---------- */
.auswahlgruppe { margin: 8px 0 16px; }
.auswahlgruppe h4 { margin: 0 0 8px; font-size: 13px; color: var(--text2); }
.waehlbar { position: relative; cursor: pointer; border-radius: 12px; padding: 4px; border: 2px solid transparent; transition: border-color .15s, background .15s; }
.waehlbar:hover { background: var(--hover); }
.waehlbar.gewaehlt { border-color: var(--akzent); background: var(--akzent-hell); }
.waehlbar .haken { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.35); color: transparent; border: 2px solid #fff; z-index: 2; pointer-events: none; }
.waehlbar.gewaehlt .haken { background: var(--akzent); color: #fff; }
.waehlbar figcaption { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.dateiname-klein { width: 100%; }

/* ---------- Kunde wählen lassen ---------- */
.zeigen { position: absolute; left: 10px; top: 10px; z-index: 3; display: inline-flex; gap: 4px; align-items: center; font-size: 11.5px; font-weight: 600; color: #fff; background: rgba(0,0,0,.5); padding: 3px 7px; border-radius: 6px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.zeigen input { width: auto; margin: 0; }
.kundenwahlform { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--linie); margin: 6px 0 12px; }
.kundenwahlform .zeile { display: flex; gap: 8px; }
.kundenwahlstand { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: var(--blau-hell); margin-bottom: 10px; font-size: 13.5px; }
.kundenwahlstand.beantwortet { background: var(--gruen-hell); }
.wahlbanner { display: flex; gap: 8px; align-items: center; justify-content: space-between; max-width: 640px; margin: 0 auto 16px; padding: 14px 16px; border-radius: 14px; background: var(--akzent); color: #fff; box-shadow: var(--schatten-hoch); }
.wahlbanner span { font-size: 20px; }
.kundenoption { display: grid; }

/* ---------- Vorschläge ---------- */
.vorschlag { margin-bottom: 14px; }
.diff { display: grid; gap: 6px; }
.diff pre { margin: 0; padding: 8px 10px; border-radius: 8px; font: 12.5px/1.5 ui-monospace, "SF Mono", Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.diff-alt { background: var(--rot-hell); color: var(--text); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--rot) 60%, transparent); }
.diff-neu { background: var(--gruen-hell); color: var(--text); }
.vorschlagknoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.korrbalken { position: relative; display: flex; align-items: center; gap: 8px; min-width: 120px; }
.korrbalken i { display: block; height: 8px; min-width: 2px; border-radius: 4px; background: var(--akzent); }
.korrbalken.kunde i { background: var(--orange); }
.korrbalken span { font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--text2); }
