/* ====================================================================================
   SOCIAL > DREH-KARTE (Bauplan v254, 07.11.2026): Oberfläche zu public/dreh.js
   Alles unter der Wurzelklasse .dk (nur die Nachtmodus-Regeln tragen html.nacht davor). Farben und Maße kommen aus den
   Variablen von styles.css (--weiss, --bg, --soft, --line, --text, --tsoft, --lila, --lilat, …), damit Hell und Nacht
   ohne eigene Palette mitgehen. Keine Verläufe, keine Glow-Flecken.
   ==================================================================================== */

.dk {
  --dk-furkan: #0f766e;         /* Rand und Schrift */
  --dk-marie: #c2185b;
  --dk-furkan-f: #0f766e;       /* Fläche mit weißer Schrift */
  --dk-marie-f: #c2185b;
  --dk-dennis-f: #1b5fa8;
  --dk-levin-f: #8a5a00;
  --dk-bastian-f: #6027A6;
  --dk-linie: #1d1d1f;
  --dk-punkt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='13' cy='13' r='1.3' fill='%23cfc6e2'/%3E%3C/svg%3E");
  color: var(--text);
}
html.nacht .dk {
  --dk-furkan: #5fd3c7;
  --dk-marie: #ff8ab8;
  --dk-linie: #ece7f5;
  --dk-punkt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='13' cy='13' r='1.3' fill='%233a2f5c'/%3E%3C/svg%3E");
}
.dk *, .dk *::before, .dk *::after { box-sizing: border-box; }
.dk [hidden] { display: none !important; }
.dk .dk-ic { display: inline-flex; vertical-align: -3px; }
.dk .dk-ic svg { display: block; }
.dk :focus-visible { outline: 3px solid var(--lilat); outline-offset: 2px; }
.dk a { text-decoration: none; }
.dk .p-furkan { --pf: var(--dk-furkan); }
.dk .p-marie { --pf: var(--dk-marie); }
.dk .p-duo { --pf: var(--lilat); }
.dk .dk-m-furkan { --mc: var(--dk-furkan-f); }
.dk .dk-m-marie { --mc: var(--dk-marie-f); }
.dk .dk-m-dennis { --mc: var(--dk-dennis-f); }
.dk .dk-m-levin { --mc: var(--dk-levin-f); }
.dk .dk-m-bastian { --mc: var(--dk-bastian-f); }

/* ---------- kleine Bausteine ---------- */
.dk .dk-feldname { font-size: var(--fs-fein); font-weight: 600; color: var(--tsoft); text-transform: uppercase; letter-spacing: .04em; }
.dk .dk-zahl { font-size: var(--fs-mikro); font-weight: 600; background: var(--soft); color: var(--tsoft); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.dk .dk-leer { color: var(--tsoft); font-style: italic; margin: 0; }
.dk .dk-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.dk .dk-speicher { font-size: var(--fs-fein); color: var(--tsoft); min-width: 90px; }
.dk .dk-speicher.ok { color: var(--gruent); }
.dk .dk-speicher.fehler { color: var(--rott); font-weight: 700; }
.dk .dk-chip { display: inline-flex; align-items: center; gap: 3px; font-size: var(--fs-mikro); font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: var(--soft); color: var(--tsoft); }
.dk .dk-chip.st-skript { background: var(--blau-soft); color: var(--blaut); }
.dk .dk-chip.st-gedreht { background: var(--amber-soft); color: var(--ambert); }
.dk .dk-chip.st-geschnitten { background: var(--termin-soft); color: var(--termint); }
.dk .dk-chip.st-fertig { background: var(--gruen-soft); color: var(--gruent); }
.dk .dk-chip-vid, .dk .dk-chip-aud { background: var(--ink); color: #fff; }
.dk .dk-chips-t { display: inline-flex; gap: 4px; }
.dk .dk-chips-t:empty { display: none; }
.dk .dk-mkreise { display: inline-flex; margin-top: 4px; }
.dk .dk-mkreis, .dk .dk-ava { background: var(--mc, var(--lila)); color: #fff; font-weight: 700; display: inline-grid; place-items: center; border-radius: 50%; }
.dk .dk-mkreis { width: 22px; height: 22px; font-size: 11px; border: 2px solid var(--weiss); }
.dk .dk-mkreise .dk-mkreis + .dk-mkreis { margin-left: -6px; }
.dk .dk-sp { font-weight: 800; margin-right: 4px; }
.dk .dk-sp-furkan { color: var(--dk-furkan); }
.dk .dk-sp-marie { color: var(--dk-marie); }
.dk .dk-sp-dennis { color: var(--blaut); }
.dk .dk-sp-bastian { color: var(--lilat); }
.dk .dk-sp-levin { color: var(--ambert); }
.dk .dk-sp-sprecher { color: var(--tsoft); }
.dk .dk-regie { color: var(--tsoft); font-style: italic; }
.dk .dk-icon-knopf { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--tsoft); background: none; border: 0; cursor: pointer; }
.dk .dk-icon-knopf:hover { background: var(--soft); color: var(--lilat); }
.dk .dk-icon-knopf.warn:hover { background: var(--rot-soft); color: var(--rott); }

/* ---------- Bühne am Rechner: Leiste, Drehorte, Leinwand ---------- */
.dk .dk-buehne {
  display: grid; grid-template-columns: 270px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
  height: clamp(520px, calc(100vh - 175px), 1300px); height: clamp(520px, calc(100dvh - 175px), 1300px);
  background: var(--weiss); border: 1px solid var(--line); border-radius: var(--r4); box-shadow: var(--shadow); overflow: hidden;
}
.dk .dk-buehne.seite-zu { grid-template-columns: 0 minmax(0, 1fr); }
.dk .dk-buehne.seite-zu .dk-seite { display: none; }
.dk .dk-leiste { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.dk .dk-leiste .dk-gruppe { display: flex; align-items: center; gap: 6px; }
.dk .dk-leiste .dk-rechts { margin-left: auto; }
.dk .dk-leiste .dk-rund { width: 34px; padding: 6px 0; text-align: center; font-size: 18px; line-height: 1; }
.dk .dk-leiste .dk-zoomwert { min-width: 52px; text-align: center; font-variant-numeric: tabular-nums; font-size: var(--fs-text); color: var(--tsoft); }
.dk .dk-seite { grid-column: 1; grid-row: 2; overflow: auto; border-right: 1px solid var(--line); padding: 14px 14px 30px; background: var(--weiss); }
.dk .dk-seite h3 { margin: 2px 0 2px; font-size: var(--fs-karte); }
.dk .dk-seite .dk-hinweis { margin: 0 0 12px; font-size: var(--fs-fein); color: var(--tsoft); line-height: 1.4; }
.dk .dk-wer { margin-bottom: 14px; display: grid; gap: 6px; }
.dk .dk-ortkarte { border: 2px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; background: var(--weiss); }
.dk .dk-ortkarte.an { border-color: var(--lila); }
.dk .dk-ortbild { position: relative; display: block; cursor: pointer; background: var(--soft); }
.dk .dk-ortbild img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.dk .dk-ortbild-leer { display: grid; place-items: center; aspect-ratio: 16 / 10; color: var(--tsoft); font-weight: 700; font-size: 22px; }
.dk .dk-ortgross { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border-radius: 9px; border: 0; background: rgba(13, 6, 19, .62); color: #fff; display: grid; place-items: center; cursor: pointer; }
.dk .dk-ortinfo { display: flex; align-items: center; gap: 6px; padding: 8px 10px; }
.dk .dk-ortname { flex: 1; min-width: 0; border: 1.5px solid transparent; border-radius: 8px; padding: 3px 6px; font-weight: 700; font-size: var(--fs-stark); background: transparent; color: var(--text); }
.dk input.dk-ortname:hover { border-color: var(--line); }
.dk input.dk-ortname:focus { border-color: var(--lila); outline: none; background: var(--weiss); }
.dk .dk-ortliste { list-style: none; margin: 0; padding: 0 10px 10px; display: grid; gap: 4px; }
.dk .dk-ortliste button { width: 100%; text-align: left; border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 6px 8px; cursor: pointer; font-size: var(--fs-fein); line-height: 1.3; color: var(--text); }
.dk .dk-ortliste button:hover { border-color: var(--lila); }
.dk .dk-ohne-ort { font-size: var(--fs-text); color: var(--tsoft); margin: 4px 0 14px; }
.dk .dk-ohne-ort button { color: var(--lilat); text-decoration: underline; padding: 0; font-size: var(--fs-text); }

.dk .dk-vp {
  grid-column: 2; grid-row: 2; position: relative; min-width: 0; overflow: hidden; cursor: grab; touch-action: none;
  background-color: var(--bg); background-image: var(--dk-punkt); background-repeat: repeat;
}
.dk .dk-vp.ohne-raster { background-image: none; }
.dk .dk-vp.zieht { cursor: grabbing; }
.dk .dk-welt { position: absolute; left: 0; top: 0; transform-origin: 0 0; user-select: none; -webkit-user-select: none; }
.dk .dk-welt input, .dk .dk-welt textarea { user-select: text; -webkit-user-select: text; }
.dk .dk-linien { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.dk .dk-linien path { fill: none; stroke: var(--dk-linie); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
/* v255: Die Karte markiert beim Ziehen nie Text, nur Eingabefelder bleiben markierbar (Bastian 07.11.2026). */
.dk .dk-vp { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.dk .dk-vp input, .dk .dk-vp textarea, .dk .dk-vp [contenteditable="true"] { user-select: text; -webkit-user-select: text; }
/* v255: Vollbild. Liegt über der ganzen Hülle (Seitenleiste, Kopf, untere Leiste), aber UNTER #modal-root (90) und #toast-root (120). */
.dk.dk-vollbild { position: fixed; inset: 0; z-index: 85; display: flex; flex-direction: column; background: var(--bg);
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.dk.dk-vollbild .dk-buehne { flex: 1 1 auto; height: auto; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
.dk .dk-vollbild-knopf[aria-pressed="true"] { background: var(--soft); color: var(--lilat); }
/* v255: Skripte von Claude */
.dk .dk-chip.dk-claude { background: var(--soft); color: var(--lilat); box-shadow: inset 0 0 0 1px currentColor; }
.dk .dk-claude-hinweis { margin: 0 0 10px; padding: 8px 10px; border-radius: 10px; background: var(--soft); color: var(--lilat); font-size: var(--fs-fein); font-weight: 600; }

/* ---------- Knoten der Karte ---------- */
.dk .dk-knoten { position: absolute; cursor: pointer; }
.dk .dk-wurzel { position: absolute; display: grid; place-items: center; background: var(--lila); color: #fff; border-radius: 999px; font-weight: 700; font-size: 20px; letter-spacing: .3px; }
.dk .dk-titel { display: grid; place-items: center; text-align: center; border-radius: 24px; }
.dk .dk-titel h2 { margin: 0; font-size: 96px; line-height: 1; font-weight: 800; letter-spacing: 2px; white-space: nowrap; }
.dk .dk-titel small { display: block; font-size: 22px; color: var(--tsoft); margin-top: 6px; }
.dk .dk-titel:hover h2 { color: var(--lilat); }
.dk .dk-fertig, .dk .dk-videos-k { display: grid; place-items: center; text-align: center; background: var(--weiss); border-radius: 26px; border: 3px solid var(--text); padding: 10px; }
.dk .dk-fertig::before { content: ""; position: absolute; inset: -16px -18px; border: 5px solid var(--gruen); border-radius: 52% 46% 55% 44% / 50% 56% 44% 52%; transform: rotate(-4deg); pointer-events: none; }
.dk .dk-fertig b, .dk .dk-videos-k b { font-size: 30px; display: block; line-height: 1.15; }
.dk .dk-fertig .dk-medien-zahl { display: block; color: var(--gruent); font-weight: 700; font-size: 17px; margin-top: 4px; }
.dk .dk-videos-k small { display: block; font-size: 14px; color: var(--tsoft); }
.dk .dk-videos-k .dk-stand { font-size: 13.5px; margin-top: 6px; }
.dk .dk-videos-k:hover, .dk .dk-fertig:hover { border-color: var(--lila); }

.dk .dk-person { display: flex; align-items: center; gap: 12px; padding: 0 16px; background: var(--weiss); border-radius: 24px; border: 3.5px solid var(--pf); }
.dk .dk-ava { flex: none; width: 66px; height: 66px; font-size: 30px; }
.dk .dk-ava-duo { flex: none; display: flex; }
.dk .dk-ava-duo .dk-ava { width: 54px; height: 54px; font-size: 23px; border: 3px solid var(--weiss); }
.dk .dk-ava-duo .dk-ava + .dk-ava { margin-left: -16px; }
.dk .dk-ava-furkan { --mc: var(--dk-furkan-f); }
.dk .dk-ava-marie { --mc: var(--dk-marie-f); }
.dk .dk-person .dk-name { flex: 1; min-width: 0; }
.dk .dk-person .dk-name b { display: block; font-size: 23px; line-height: 1.15; }
.dk .dk-person .dk-name small { display: block; font-size: 13px; color: var(--tsoft); margin-top: 3px; line-height: 1.3; }
.dk .dk-person .btn.ghost { color: var(--pf); }

/* ---------- Spalten und Sprechblasen ---------- */
.dk .dk-spalte { position: absolute; display: flex; flex-direction: column; gap: 30px; isolation: isolate; }
.dk .dk-spalte::before { content: ""; position: absolute; left: calc(50% - 2.5px); top: -34px; bottom: 26px; width: 5px; background: var(--dk-linie); border-radius: 3px; z-index: -1; }
.dk .dk-blase { --pf: var(--lilat); position: relative; background: var(--weiss); border: 3px solid var(--pf); border-radius: 24px; transition: opacity .2s; }
.dk .dk-blase::after { content: ""; position: absolute; left: 38px; bottom: -13px; width: 22px; height: 22px; background: var(--weiss); border-right: 3px solid var(--pf); border-bottom: 3px solid var(--pf); transform: rotate(45deg); border-bottom-right-radius: 5px; }
.dk .dk-blase.dim { border-color: var(--line); }
.dk .dk-blase.dim::after { border-color: var(--line); }
.dk .dk-blase.dim > * { opacity: .3; }
.dk .dk-blase.drag { outline: 4px dashed var(--lila); outline-offset: 5px; }
.dk .dk-blase.offen { box-shadow: var(--shadow-lg); }
.dk .dk-b-kopf { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; border-radius: 21px; }
.dk .dk-b-ort { width: 58px; height: 44px; border-radius: 9px; object-fit: cover; display: block; }
.dk .dk-b-ort.leer { display: grid; place-items: center; background: var(--soft); color: var(--tsoft); font-weight: 700; font-size: 18px; }
.dk .dk-b-titel { min-width: 0; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.dk .dk-b-name { display: block; font-weight: 700; }
.dk .dk-b-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.dk .dk-b-chips .dk-mkreise { margin-top: 0; }
.dk .dk-b-titel small { display: block; font-weight: 400; font-size: var(--fs-fein); color: var(--tsoft); margin-top: 2px; }
.dk .dk-pfeil { color: var(--tsoft); }
.dk .dk-vorschau { padding: 0 18px 16px; font-size: 14.5px; line-height: 1.45; cursor: pointer; }
.dk .dk-vorschau p { margin: 0 0 3px; overflow-wrap: anywhere; }
.dk .dk-vorschau .dk-mehr { color: var(--tsoft); font-size: var(--fs-fein); }
.dk .dk-neu-blase { border: 2.5px dashed var(--feldrand); background: var(--weiss); border-radius: 20px; padding: 14px; font-size: 16px; font-weight: 700; color: var(--tsoft); cursor: pointer; }
.dk .dk-neu-blase:hover { border-color: var(--lila); color: var(--lilat); }

/* ---------- Editor (Sprechblase und Blatt) ---------- */
.dk .dk-editor { padding: 2px 16px 18px; display: grid; gap: 14px; }
.dk .dk-feld { display: grid; gap: 5px; min-width: 0; }
.dk .dk-editor input[type=text], .dk .dk-editor select, .dk .dk-editor textarea {
  width: 100%; border: 1.5px solid var(--feldrand); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 15px;
  background: var(--weiss); color: var(--text); text-transform: none; letter-spacing: 0; font-weight: 400;
}
.dk .dk-editor input[type=text]:focus, .dk .dk-editor select:focus, .dk .dk-editor textarea:focus { outline: none; border-color: var(--lila); box-shadow: 0 0 0 3px var(--soft); }
.dk .dk-editor :disabled { opacity: .7; cursor: default; }
.dk .dk-editor .dk-f-titel { font-size: 18px; font-weight: 700; }
.dk .dk-reihe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dk .dk-reihe > :first-child { grid-column: 1 / -1; }
.dk textarea.dk-f-skript { font-size: 16px; line-height: 1.55; resize: none; overflow: hidden; min-height: 130px; }
.dk textarea.dk-f-notiz { font-size: 14px; resize: none; overflow: hidden; min-height: 60px; }
.dk .dk-werkzeug { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dk .dk-werkzeug .dk-info { margin-left: auto; font-size: var(--fs-fein); color: var(--tsoft); }
.dk .dk-spk-furkan { color: var(--dk-furkan); }
.dk .dk-spk-marie { color: var(--dk-marie); }
.dk .dk-spk-dennis { color: var(--blaut); }
.dk .dk-spk-levin { color: var(--ambert); }

.dk .dk-mchips { display: flex; flex-wrap: wrap; gap: 6px; }
.dk .dk-mchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 5px; border: 1.5px solid var(--feldrand); border-radius: 999px; background: var(--weiss); color: var(--text); font-size: var(--fs-text); cursor: pointer; }
.dk .dk-mchip .dk-mkreis { border: 0; width: 24px; height: 24px; opacity: .6; }
.dk .dk-mchip.an { border-color: var(--lila); background: var(--soft); font-weight: 600; }
.dk .dk-mchip.an .dk-mkreis { opacity: 1; }
.dk .dk-mchip.fest { border-style: dashed; cursor: help; }
.dk .dk-mchip:disabled { cursor: default; }

.dk .dk-ortwahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.dk .dk-ortw { border: 2.5px solid transparent; border-radius: 10px; padding: 2px; background: none; cursor: pointer; display: grid; gap: 3px; text-align: center; align-content: start; color: var(--text); }
.dk .dk-ortw img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 7px; display: block; }
.dk .dk-ortw-leer { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--soft); border-radius: 7px; color: var(--tsoft); font-weight: 700; }
.dk .dk-ortw span:last-child { font-size: var(--fs-mikro); line-height: 1.15; color: var(--tsoft); overflow-wrap: break-word; }
.dk .dk-ortw.an { border-color: var(--lila); }
.dk .dk-ortw.an span:last-child { color: var(--lilat); font-weight: 700; }
.dk .dk-ortw:disabled { cursor: default; }

.dk .dk-takes { display: grid; gap: 8px; }
.dk .dk-take-liste { display: grid; gap: 10px; }
.dk .dk-take { margin: 0; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); }
.dk .dk-take video { display: block; width: 100%; max-height: 420px; background: #000; }
.dk .dk-take audio { display: block; width: 100%; padding: 8px; }
.dk .dk-take-zeile { display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; font-size: var(--fs-fein); flex-wrap: wrap; }
.dk .dk-take-n { flex: 1 1 120px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.dk .dk-take-w { color: var(--tsoft); font-size: var(--fs-mikro); }
.dk .dk-warn { padding: 8px 10px; font-size: var(--fs-fein); color: var(--ambert); background: var(--amber-soft); }
.dk .dk-drop { display: block; border: 2px dashed var(--feldrand); border-radius: 12px; padding: 14px; text-align: center; color: var(--tsoft); cursor: pointer; font-size: var(--fs-text); background: var(--bg); }
.dk .dk-drop:hover { border-color: var(--lila); color: var(--lilat); }
.dk .dk-drop input { display: none; }
.dk .dk-fuss { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dk .dk-fuss-links, .dk .dk-fuss-rechts { display: flex; gap: 6px; flex-wrap: wrap; }
.dk .dk-fuss-rechts { margin-left: auto; }

/* ---------- Fortschritt beim Hochladen ---------- */
.dk .dk-uploads { position: fixed; left: calc(var(--rail-w) + var(--sidebar-w) + 16px); bottom: 16px; width: 330px; max-width: calc(100vw - 32px); z-index: 65; display: grid; gap: 8px; }
.dk .dk-up { background: var(--weiss); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow-lg); font-size: var(--fs-text); }
.dk .dk-up-kopf { display: flex; gap: 8px; align-items: center; }
.dk .dk-up-kopf b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk .dk-up-p { font-size: var(--fs-fein); color: var(--tsoft); white-space: nowrap; }
.dk .dk-up-x { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--tsoft); cursor: pointer; }
.dk .dk-up-x:hover { background: var(--soft); }
.dk .dk-balken { height: 7px; border-radius: 4px; background: var(--soft); margin-top: 7px; overflow: hidden; }
.dk .dk-balken i { display: block; height: 100%; width: 0; background: var(--lila); transition: width .2s; }
.dk .dk-up.ok .dk-balken i { background: var(--gruen); }
.dk .dk-up.fehler { border-color: var(--rot); }
.dk .dk-up.fehler .dk-balken i { background: var(--rot); }
.dk .dk-up-f { margin-top: 6px; font-size: var(--fs-fein); color: var(--rott); }

/* ---------- Liste am Handy ---------- */
.dk.dk-modus-liste { display: grid; gap: 16px; }
.dk .dk-l-zweige, .dk .dk-l-galerien { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dk .dk-l-tab { display: grid; gap: 2px; text-align: left; padding: 12px 14px; min-height: 64px; border-radius: 16px; border: 2px solid var(--line); background: var(--weiss); color: var(--text); cursor: pointer; }
.dk .dk-l-tab-kopf { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.dk .dk-l-tab b { font-size: var(--fs-karte); }
.dk .dk-l-tab small { color: var(--tsoft); font-size: var(--fs-fein); }
.dk .dk-l-tab.an { border-color: var(--lila); background: var(--soft); }
.dk .dk-l-galerie { display: grid; gap: 2px; justify-items: start; padding: 14px; min-height: 76px; border-radius: 16px; background: var(--weiss); border: 2px solid var(--line); color: var(--text); }
.dk .dk-l-galerie .dk-ic { color: var(--lilat); }
.dk .dk-l-galerie b { font-size: var(--fs-karte); }
.dk .dk-l-galerie .dk-medien-zahl { color: var(--tsoft); font-size: var(--fs-fein); }
.dk .dk-l-orte-box { display: grid; gap: 6px; }
.dk .dk-l-orte { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.dk .dk-l-ort { flex: none; width: 96px; display: grid; gap: 3px; text-align: center; padding: 3px; border: 2.5px solid transparent; border-radius: 12px; background: none; color: var(--text); cursor: pointer; align-content: start; justify-items: center; }
.dk .dk-l-ort img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }
.dk .dk-l-ort.an { border-color: var(--lila); }
.dk .dk-l-ort-n { font-size: var(--fs-mikro); line-height: 1.15; overflow-wrap: anywhere; }
.dk .dk-l-filter { margin: 0; font-size: var(--fs-text); color: var(--tsoft); }
.dk .dk-l-filter button { color: var(--lilat); text-decoration: underline; padding: 0; font-size: var(--fs-text); }
.dk .dk-l-person { display: grid; gap: 10px; }
.dk .dk-l-person-kopf { display: flex; align-items: center; gap: 10px; }
.dk .dk-l-person-kopf .dk-ava { width: 46px; height: 46px; font-size: 21px; }
.dk .dk-l-person-kopf .dk-ava-duo .dk-ava { width: 40px; height: 40px; font-size: 18px; }
.dk .dk-l-person-kopf .dk-name { flex: 1; min-width: 0; }
.dk .dk-l-person-kopf .dk-name b { display: block; font-size: var(--fs-karte); }
.dk .dk-l-person-kopf .dk-name small { color: var(--tsoft); font-size: var(--fs-fein); }
.dk .dk-l-liste { display: grid; gap: 10px; }
.dk .dk-l-karte { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 10px; border-radius: 16px; background: var(--weiss); border: 2.5px solid var(--pf, var(--lila)); color: var(--text); min-height: 72px; }
.dk .dk-l-bild { width: 76px; height: 58px; border-radius: 9px; object-fit: cover; display: block; align-self: start; }
.dk .dk-l-bild.leer { display: grid; place-items: center; background: var(--soft); color: var(--tsoft); font-weight: 700; font-size: 18px; }
.dk .dk-l-text { display: grid; gap: 2px; min-width: 0; align-content: start; }
.dk .dk-l-text b { font-size: var(--fs-stark); line-height: 1.25; overflow-wrap: anywhere; }
.dk .dk-l-text small { color: var(--tsoft); font-size: var(--fs-fein); }
.dk .dk-l-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.dk .dk-l-chips .dk-mkreise { margin-top: 0; }
.dk .dk-l-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.dk .dk-blatt { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--bg); }
.dk .dk-blatt-kopf { display: flex; align-items: center; gap: 10px; padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top)); background: var(--weiss); border-bottom: 1px solid var(--line); }
.dk .dk-blatt-zurueck { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--lilat); cursor: pointer; }
.dk .dk-blatt-zurueck .dk-ic svg { transform: rotate(180deg); }
.dk .dk-blatt-titel { flex: 1; min-width: 0; }
.dk .dk-blatt-titel b { display: block; font-size: var(--fs-stark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk .dk-blatt-titel small { color: var(--tsoft); font-size: var(--fs-fein); }
.dk .dk-blatt-koerper { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 14px 14px calc(28px + env(safe-area-inset-bottom)); }
.dk .dk-blatt-koerper .dk-editor { padding: 0; max-width: 760px; margin: 0 auto; }

/* ---------- Papierkorb ---------- */
.dk .dk-pk-liste { display: grid; gap: 10px; }
.dk .dk-pk-zeile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--weiss); border: 1px solid var(--line); box-shadow: var(--shadow); }
.dk .dk-pk-text { flex: 1; min-width: 0; }
.dk .dk-pk-text b { display: block; overflow-wrap: anywhere; }
.dk .dk-pk-text small { color: var(--tsoft); font-size: var(--fs-fein); }

/* ---------- Galerie Bilder ---------- */
.dk .dk-phase + .dk-phase { margin-top: 28px; }
.dk .dk-phase-kopf { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: var(--fs-karte); }
.dk .dk-raster { display: flex; flex-wrap: wrap; gap: 12px; }
.dk .dk-kachel { --kh: 240px; position: relative; flex: none; height: var(--kh); aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--soft); box-shadow: var(--shadow); cursor: pointer; transition: transform .2s, box-shadow .2s; }
.dk .dk-kachel.f9x16 { aspect-ratio: 9 / 16; }
.dk .dk-kachel img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dk .dk-kachel-t { position: absolute; left: 0; right: 0; bottom: 0; padding: 7px 10px; background: rgba(13, 6, 19, .66); color: #fff; font-size: var(--fs-mikro); font-weight: 600; line-height: 1.25; text-align: left; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) { .dk .dk-kachel:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); } }

/* ---------- Großansicht und Player (Überlagerung) ---------- */
.dk .dk-ov { position: fixed; inset: 0; z-index: 70; background: #0a0510; color: #fff; overscroll-behavior: contain; }
.dk .dk-ov-zu { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 12px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.dk .dk-ov-zu:hover { background: rgba(255, 255, 255, .26); }
.dk .dk-lb { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; padding: calc(60px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom)); }
.dk .dk-ov-zaehler { position: absolute; top: calc(22px + env(safe-area-inset-top)); left: 18px; font-size: var(--fs-text); color: rgba(255, 255, 255, .8); font-variant-numeric: tabular-nums; }
.dk .dk-ov-stage { position: relative; min-height: 0; touch-action: pan-y; }
.dk .dk-ov-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 12px; user-select: none; -webkit-user-select: none; }
.dk .dk-ov-pfeil { position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.dk .dk-ov-pfeil:hover { background: rgba(255, 255, 255, .26); }
.dk .dk-ov-pfeil.links { left: 12px; }
.dk .dk-ov-pfeil.rechts { right: 12px; }
.dk .dk-ov-fuss { max-width: 760px; margin: 0 auto; width: 100%; display: grid; gap: 4px; justify-items: center; text-align: center; }
.dk .dk-ov-titel { font-size: var(--fs-stark); }
.dk .dk-ov-text { margin: 0; color: rgba(255, 255, 255, .78); font-size: var(--fs-text); line-height: 1.45; max-height: 22vh; overflow-y: auto; overflow-wrap: anywhere; }
.dk .dk-ov-dl { margin-top: 4px; }
@media (max-width: 719px) { .dk .dk-ov-pfeil { top: auto; bottom: calc(110px + env(safe-area-inset-bottom)); margin-top: 0; } }

/* ---------- Galerie Motion: verbundener Ablauf ---------- */
.dk .dk-fluss { display: flex; flex-direction: column; }
.dk .dk-fluss-hinweis { margin: 0 0 14px; color: var(--tsoft); font-size: var(--fs-text); }
.dk .dk-insel { position: relative; background: var(--soft); border: 1px solid var(--line); border-radius: 24px; padding: 18px 22px 24px; animation: dk-auf .5s ease both; animation-delay: calc(var(--k, 0) * .12s); }
.dk .dk-insel-kopf { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.dk .dk-insel-kopf h2 { margin: 0; font-size: var(--fs-karte); }
.dk .dk-insel-kopf .dk-zahl { background: var(--weiss); }
.dk .dk-station { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lila); color: #fff; font-weight: 700; font-size: var(--fs-text); }
.dk .dk-fluss-svg { position: absolute; left: 0; top: 0; z-index: 0; overflow: visible; pointer-events: none; }
.dk .dk-fluss-pfad { fill: none; stroke: var(--lila); stroke-width: 3; stroke-linecap: round; opacity: .6; stroke-dasharray: 1; stroke-dashoffset: 1; animation: dk-zeichne .9s ease forwards; animation-delay: calc(.35s + var(--k, 0) * .09s); }
.dk .dk-fluss-punkt { fill: var(--lila); opacity: 0; animation: dk-punkt .3s ease forwards; animation-delay: calc(.35s + var(--k, 0) * .09s); }
html.nacht .dk .dk-fluss-pfad { stroke: var(--lilat); }
html.nacht .dk .dk-fluss-punkt { fill: var(--lilat); }
.dk .dk-reihe-m { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 38px 32px; }
.dk .dk-mknoten { position: relative; z-index: 1; flex: none; display: flex; flex-direction: column; gap: 8px; width: 132px; padding: 0; text-align: left; color: var(--text); cursor: pointer; animation: dk-auf .5s ease both; animation-delay: calc(var(--i, 0) * .05s + .1s); }
.dk .dk-mposter { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #0d0613; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.dk .dk-mposter.f4x5 { aspect-ratio: 4 / 5; }
.dk .dk-mposter img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dk .dk-mnr { position: absolute; left: 7px; top: 7px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; display: grid; place-items: center; background: var(--lila); color: #fff; font-weight: 700; font-size: 12px; }
.dk .dk-mplay { position: absolute; left: 7px; bottom: 7px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(13, 6, 19, .62); color: #fff; transition: background .2s; }
.dk .dk-mplay svg { margin-left: 2px; }
.dk .dk-mplay path { fill: currentColor; }
.dk .dk-mdauer { position: absolute; right: 7px; bottom: 7px; padding: 2px 7px; border-radius: 10px; background: rgba(13, 6, 19, .7); color: #fff; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dk .dk-mtitel { font-size: var(--fs-fein); font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) {
  .dk .dk-mknoten:hover .dk-mposter { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(96, 39, 166, .35); }
  .dk .dk-mknoten:hover .dk-mplay { background: var(--lila); }
}
.dk .dk-mknoten:focus-visible .dk-mposter { outline: 3px solid var(--lilat); outline-offset: 2px; }
.dk .dk-bruecke { position: relative; align-self: center; width: 3px; height: 40px; margin: 2px 0; background: var(--lila); opacity: .55; border-radius: 2px; }
.dk .dk-bruecke span { position: absolute; left: 50%; bottom: -5px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--lila); }
@keyframes dk-auf { from { opacity: 0; transform: translateY(10px); } }
@keyframes dk-zeichne { to { stroke-dashoffset: 0; } }
@keyframes dk-punkt { to { opacity: .9; } }
/* Nur am Rechner mit Maus läuft ein ruhiger Fluss entlang der Linien; Handy und „weniger Bewegung“ bekommen keine Dauerbewegung. */
@media (hover: hover) and (pointer: fine) {
  .dk .dk-fluss-pfad { animation: dk-zeichne .9s ease forwards, dk-fluss 6s linear 1.6s infinite; }
}
@keyframes dk-fluss { 0%, 100% { opacity: .5; } 50% { opacity: .9; } }

/* Player */
.dk .dk-pl { display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: calc(60px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); }
.dk .dk-pl-innen { --pl-h: calc(100vh - 170px); display: grid; grid-template-columns: auto minmax(260px, 380px); gap: 26px; align-items: start; margin: auto; }
@supports (height: 100dvh) { .dk .dk-pl-innen { --pl-h: calc(100dvh - 170px); } }
.dk .dk-pl-buehne { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dk .dk-pl-rahmen { position: relative; width: min(400px, calc(var(--pl-h) * 9 / 16)); aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #000; box-shadow: var(--shadow-lg); }
.dk .dk-pl-rahmen.f4x5 { aspect-ratio: 4 / 5; width: min(480px, calc(var(--pl-h) * 4 / 5)); }
.dk .dk-pl-tonpille { position: absolute; left: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(13, 6, 19, .72); color: #fff; font-size: var(--fs-text); font-weight: 600; cursor: pointer; }
.dk .dk-pl-tonpille:hover { background: var(--lila); }
.dk .dk-pl-video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.dk .dk-untertitel { position: absolute; left: 7%; right: 7%; bottom: 58px; text-align: center; padding: 6px 10px; border-radius: 10px; background: rgba(0, 0, 0, .55); color: #fff; font-size: clamp(13px, 2.4vw, 16px); font-weight: 600; line-height: 1.3; pointer-events: none; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dk .dk-pl-ende { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; background: rgba(13, 6, 19, .68); }
.dk .dk-pl-ende .btn { max-width: 100%; white-space: normal; }
.dk .dk-pl-hell { background: #fff !important; color: #0d0613 !important; }
.dk .dk-pl-steuer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.dk .dk-pl-pos { text-align: center; color: rgba(255, 255, 255, .7); font-size: var(--fs-fein); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dk .dk-pl-seite { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dk .dk-pl-kopf { display: flex; align-items: center; gap: 14px; }
.dk .dk-pl-kopf h2 { margin: 0 0 4px; font-size: var(--fs-karte); color: #fff; overflow-wrap: anywhere; }
.dk .dk-pl-nr { font-size: 40px; font-weight: 800; line-height: 1; color: #cdb5ff; }
.dk .dk-pl-meta { margin: 0; color: rgba(255, 255, 255, .7); font-size: var(--fs-fein); }
.dk .dk-pl-text { margin: 0; color: rgba(255, 255, 255, .88); font-size: var(--fs-text); line-height: 1.5; overflow-wrap: anywhere; }
.dk .dk-pl-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.dk .dk-pl-streifen { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; }
.dk .dk-pl-mini { position: relative; flex: none; width: 48px; aspect-ratio: 9 / 16; padding: 0; border-radius: 9px; overflow: hidden; border: 2px solid transparent; background: #0d0613; cursor: pointer; opacity: .6; transition: opacity .15s, border-color .15s; }
.dk .dk-pl-mini img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dk .dk-pl-mini span { position: absolute; left: 3px; top: 3px; padding: 0 4px; border-radius: 6px; background: rgba(13, 6, 19, .7); color: #fff; font-size: 11px; font-weight: 700; }
.dk .dk-pl-mini:hover, .dk .dk-pl-mini:focus-visible { opacity: 1; }
.dk .dk-pl-mini.aktiv { opacity: 1; border-color: #cdb5ff; }
.dk .dk-pl .dk-chip { align-self: flex-start; background: rgba(255, 255, 255, .16); color: #fff; }

/* ---------- Handy und Fingerbedienung ---------- */
@media (max-width: 719px) {
  .dk .dk-kachel { --kh: 190px; }
  .dk .dk-insel { padding: 14px 14px 20px; border-radius: 20px; }
  .dk .dk-reihe-m { gap: 36px 24px; }
  .dk .dk-uploads { left: 12px; right: 12px; width: auto; max-width: none; bottom: calc(86px + env(safe-area-inset-bottom)); }
  .dk .dk-pl { padding-left: 12px; padding-right: 12px; }
  .dk .dk-pl-innen { --pl-h: calc(100vh - 270px); grid-template-columns: minmax(0, 1fr); gap: 16px; }
  @supports (height: 100dvh) { .dk .dk-pl-innen { --pl-h: calc(100dvh - 270px); } }
  .dk .dk-pl-buehne { width: min(100%, 440px); margin: 0 auto; }
  .dk .dk-pl-rahmen { width: min(100%, calc(var(--pl-h) * 9 / 16)); margin: 0 auto; }
  .dk .dk-pl-rahmen.f4x5 { width: min(100%, calc(var(--pl-h) * 4 / 5)); }
  .dk .dk-pl-seite { max-width: 440px; margin: 0 auto; width: 100%; }
}
@media (max-width: 400px) {
  .dk .dk-mknoten { width: 124px; }
}
@media (max-width: 719px), (pointer: coarse) {
  .dk .btn.mini, .dk .dk-mchip, .dk .dk-ortw, .dk .dk-icon-knopf, .dk .dk-up-x { min-height: 44px; }
  .dk .dk-icon-knopf, .dk .dk-up-x { min-width: 44px; }
  .dk .btn.mini { display: inline-flex; align-items: center; gap: 4px; }
  .dk .dk-editor input[type=text], .dk .dk-editor select, .dk .dk-editor textarea { font-size: 16px; min-height: 44px; }
  .dk .dk-pl .btn { min-height: 44px; }
  .dk .dk-pl-mini { width: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .dk .dk-insel, .dk .dk-mknoten { animation: none; }
  .dk .dk-fluss-pfad { animation: none; stroke-dashoffset: 0; }
  .dk .dk-fluss-punkt { animation: none; opacity: .9; }
  .dk .dk-mposter, .dk .dk-kachel { transition: none; }
  .dk .dk-mknoten:hover .dk-mposter, .dk .dk-kachel:hover { transform: none; }
}
