/* WORTLAUT: Formsprache von LUMI (kühl, gerade, freundlich; Verlauf wie Lampenlicht, ein gedämpftes Blau für Aktionen),
   aber als breite Desktop-Oberfläche mit fester Seitenleiste und eigenen Scrollbereichen. */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url(fonts/plex-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url(fonts/plex-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url(fonts/plex-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url(fonts/plex-latin-ext-400.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url(fonts/plex-latin-ext-500.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url(fonts/plex-latin-ext-600.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg-center: #ffffff; --bg-edge: #d5d9df;
  --ink: #1c2127; --ink-2: #4e5865; --ink-3: #6f7987;
  --card: rgba(255,255,255,.74); --card-solid: #ffffff; --line: #d3d8df; --line-2: #e3e7ec;
  --accent: #3a6ea5; --accent-soft: rgba(58,110,165,.10);
  --bubble: #c7463e; --bubble-ink: #ffffff;
  --scrim: rgba(28,33,39,.28); --side: rgba(244,246,248,.72);
  --mark: rgba(58,110,165,.18);
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Sprecherfarben: gedämpft, zur Palette passend */
  --s0: #3a6ea5; --s1: #b5653a; --s2: #4f8a6b; --s3: #8a5ca8; --s4: #a3832a; --s5: #3a8b94; --s6: #b04f6e; --s7: #6b7480;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-center: #454a50; --bg-edge: #2a2e33; --ink: #e9ecf0; --ink-2: #b3bbc6; --ink-3: #8e97a3;
    --card: rgba(255,255,255,.055); --card-solid: #33383e; --line: #4a5057; --line-2: #3d4248;
    --accent: #8db3da; --accent-soft: rgba(141,179,218,.12); --bubble: #e06a5f; --bubble-ink: #1c2127;
    --scrim: rgba(0,0,0,.45); --side: rgba(48,53,58,.72); --mark: rgba(141,179,218,.22); color-scheme: dark;
    --s0: #8db3da; --s1: #e0a07c; --s2: #8cc3a5; --s3: #c3a0dc; --s4: #d8bd6a; --s5: #7fc2ca; --s6: #e08aa5; --s7: #aab3bf;
  }
}
:root[data-theme="dark"] {
  --bg-center: #454a50; --bg-edge: #2a2e33; --ink: #e9ecf0; --ink-2: #b3bbc6; --ink-3: #8e97a3;
  --card: rgba(255,255,255,.055); --card-solid: #33383e; --line: #4a5057; --line-2: #3d4248;
  --accent: #8db3da; --accent-soft: rgba(141,179,218,.12); --bubble: #e06a5f; --bubble-ink: #1c2127;
  --scrim: rgba(0,0,0,.45); --side: rgba(48,53,58,.72); --mark: rgba(141,179,218,.22); color-scheme: dark;
  --s0: #8db3da; --s1: #e0a07c; --s2: #8cc3a5; --s3: #c3a0dc; --s4: #d8bd6a; --s5: #7fc2ca; --s6: #e08aa5; --s7: #aab3bf;
}
/* Abstände für Kamera-Ausschnitt und Gestenleiste, wenn WORTLAUT als App im Vollbild läuft (viewport-fit=cover); sonst 0 */
:root { --oben: env(safe-area-inset-top, 0px); --unten: env(safe-area-inset-bottom, 0px); --links: env(safe-area-inset-left, 0px); --rechts: env(safe-area-inset-right, 0px); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0; color: var(--ink); font: 16px/1.5 var(--font);
  background: radial-gradient(120% 90% at 50% 18%, var(--bg-center), var(--bg-edge)) fixed, var(--bg-edge);
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--mark); }

/* Gerüst: Seitenleiste fest, Inhalt scrollt selbst */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); height: 100vh; padding: 0 var(--rechts) 0 var(--links); }
.side { display: flex; flex-direction: column; gap: 2px; padding: 18px 12px 16px; border-right: 1px solid var(--line-2); background: var(--side); backdrop-filter: blur(6px); z-index: 9; }
.brand { font-weight: 300; letter-spacing: .42em; font-size: 15px; padding: 4px 12px 18px; color: var(--ink-2); white-space: nowrap; text-decoration: none; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; background: transparent; border: 0; border-radius: 6px; padding: 9px 12px; cursor: pointer; font-size: 15px; color: var(--ink); text-decoration: none; }
.nav svg { width: 19px; height: 19px; flex: none; color: var(--ink-3); }
.nav span { flex: 1; white-space: nowrap; }
.nav span.badge { flex: none; }
.nav:hover, .nav[aria-current="page"] { background: var(--accent-soft); }
.nav[aria-current="page"] svg { color: var(--accent); }
.nav kbd { font: 11px var(--font); color: var(--ink-3); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }
.side .spacer { flex: 1; }
.badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--bubble); color: var(--bubble-ink); font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; }
.view { overflow-y: auto; height: 100vh; position: relative; padding-bottom: var(--unten); }
.page { max-width: 980px; margin: 0 auto; padding: 28px 32px 96px; }
.topbar { display: none; }

@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: min(80%, 280px); background: var(--card-solid); transform: translateX(-100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
  .side.open { transform: none; }
  .scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 8; }
  .topbar { display: flex; align-items: center; gap: 8px; min-height: calc(52px + var(--oben)); padding: calc(6px + var(--oben)) 12px 6px; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; z-index: 5; background: var(--side); backdrop-filter: blur(6px); }
  .topbar b { flex: 1; font-weight: 600; font-size: 17px; }
  .view { height: calc(100vh - 52px - var(--oben)); }
  .side { padding-top: calc(18px + var(--oben)); padding-bottom: calc(16px + var(--unten)); }
  .page { padding: 18px 16px 96px; }
}

/* Typografie wie LUMI */
h1 { font-size: 24px; line-height: 1.3; font-weight: 500; letter-spacing: -.01em; margin: 0 0 6px; text-wrap: balance; }
h2 { font-size: 20px; margin: 6px 0 12px; font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 13px; margin: 26px 0 8px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.sub { color: var(--ink-2); margin: 0; text-wrap: pretty; }
.small { font-size: 13px; color: var(--ink-3); }
.muted { color: var(--ink-3); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1; }
.num { font-variant-numeric: tabular-nums; }

/* Bausteine */
.btn { border: 1px solid var(--line); background: var(--card); border-radius: 6px; padding: 9px 16px; cursor: pointer; font-weight: 500; white-space: nowrap; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
:root[data-theme="dark"] .btn.primary { color: #1c2127; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #1c2127; } }
.btn:hover { border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.small { padding: 5px 12px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: default; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 0; background: transparent; border-radius: 6px; cursor: pointer; color: var(--ink-2); flex: none; }
.icon-btn:hover { background: var(--accent-soft); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.input { width: 100%; color: var(--ink); background: var(--card-solid); border: 1px solid var(--line); border-radius: 6px; padding: 11px 14px; }
.input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; }
.card .lbl, .lbl { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.stack { display: grid; gap: 10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.tile { display: flex; align-items: baseline; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; text-decoration: none; color: inherit; }
a.tile:hover { border-color: var(--accent); }
.tile .n { font-size: 30px; font-weight: 600; letter-spacing: -.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.tile .t { display: grid; } .tile .t small { color: var(--ink-3); font-size: 13px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); white-space: nowrap; }
.chip.warn { border-color: var(--bubble); color: var(--bubble); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px 12px; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.chips button.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.switch { display: flex; gap: 6px; flex-wrap: wrap; }
.switch button { border: 1px solid var(--line); background: var(--card); border-radius: 6px; padding: 7px 12px; cursor: pointer; font-size: 14px; }
.switch button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.list { display: grid; }
.li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; padding: 12px 6px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: inherit; border-radius: 4px; }
.li:hover { background: var(--accent-soft); }
.li b { font-weight: 600; overflow-wrap: anywhere; }
.li .meta { font-size: 14px; color: var(--ink-2); }
.li .side-info { grid-row: 1 / span 2; grid-column: 2; align-self: center; text-align: right; font-size: 13px; color: var(--ink-3); }
.li.mitbild { grid-template-columns: 96px minmax(0, 1fr) auto; column-gap: 14px; }
.li.mitbild .thumb { grid-row: 1 / span 2; width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; background: var(--line-2); display: block; align-self: center; }
.li.mitbild .side-info { grid-column: 3; }
.vorschau { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; border: 1px solid var(--line-2); display: block; margin-bottom: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--c, var(--ink-3)); flex: none; }
.who { color: var(--c, var(--ink)); font-weight: 600; }
.empty { color: var(--ink-3); padding: 18px 0; }
.err { background: rgba(199,70,62,.10); border: 1px solid rgba(199,70,62,.35); border-radius: 6px; padding: 10px 12px; font-size: 14px; }
.hint { background: var(--accent-soft); border-radius: 6px; padding: 10px 12px; font-size: 14px; color: var(--ink-2); }
mark { background: var(--mark); color: inherit; border-radius: 2px; padding: 0 1px; }
.c0 { --c: var(--s0); } .c1 { --c: var(--s1); } .c2 { --c: var(--s2); } .c3 { --c: var(--s3); }
.c4 { --c: var(--s4); } .c5 { --c: var(--s5); } .c6 { --c: var(--s6); } .c7 { --c: var(--s7); }

/* Eingang */
.drop { display: grid; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 18px; }
.drop .row .input { flex: 1; min-width: 220px; }
.drop.over { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.dropall { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: var(--scrim); pointer-events: none; }
.dropall div { background: var(--card-solid); border: 1px solid var(--accent); border-radius: 10px; padding: 28px 40px; font-size: 20px; font-weight: 500; }

/* Aufträge */
.job { display: grid; gap: 8px; }
.job .kopf { display: flex; align-items: center; gap: 10px; }
.job .kopf b { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 4px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); transition: width .6s ease; }
.bar.unbestimmt i { width: 30% !important; animation: gleiten 1.6s ease-in-out infinite; }
@keyframes gleiten { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.schritt { font-size: 14px; color: var(--ink-2); display: flex; gap: 8px; align-items: baseline; }
.ell::after { content: "…"; display: inline-block; animation: ell 1.4s steps(4, end) infinite; overflow: hidden; vertical-align: bottom; width: 0; }
@keyframes ell { to { width: 1.1em; } }

/* Arbeitsanzeige wie LUMI: drei Punkte unten rechts, hier echt */
.dots { position: fixed; right: calc(22px + var(--rechts)); bottom: calc(20px + var(--unten)); display: flex; gap: 6px; align-items: center; padding: 10px; border: 0; background: transparent; cursor: pointer; z-index: 20; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); display: block; animation: dot 1.4s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 60%, 100% { transform: scale(.7); opacity: .55; } 30% { transform: scale(1.35); opacity: 1; } }
.dots-tip { position: fixed; right: calc(18px + var(--rechts)); bottom: calc(62px + var(--unten)); background: var(--card-solid); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font-size: 13px; color: var(--ink-2); z-index: 20; max-width: 320px; }

/* Folge: Player oben, darunter Kapitel | Transkript | Steckbrief mit eigenen Scrollbereichen */
.folge { display: grid; grid-template-columns: 210px minmax(0, 1fr) 300px; grid-template-rows: auto minmax(0, 1fr); height: 100%; }
.folge > .kopfzeile { position: relative; z-index: 6; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--line-2); padding: 14px 24px 12px; display: grid; gap: 10px; background: var(--side); backdrop-filter: blur(6px); }
.folge .titel { display: flex; gap: 10px; align-items: baseline; }
.folge .titel h1 { font-size: 20px; font-weight: 600; margin: 0; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.spalte { overflow-y: auto; padding: 14px 18px 80px; }
.spalte.links { border-right: 1px solid var(--line-2); }
.spalte.rechts { border-left: 1px solid var(--line-2); }
.spalte.mitte { padding: 18px 28px 120px; }
.folge.ohne-kapitel { grid-template-columns: minmax(0, 1fr) 300px; }
@media (max-width: 1240px) { .folge { grid-template-columns: minmax(0, 1fr) 290px; } .spalte.links { display: none; } }
@media (max-width: 860px) {
  .folge, .folge.ohne-kapitel { grid-template-columns: minmax(0, 1fr); height: auto; }
  .folge > .kopfzeile { position: sticky; top: 0; z-index: 4; padding: 10px 16px; order: -2; }
  .folge .titel { flex-wrap: wrap; } .folge .titel h1 { font-size: 17px; flex-basis: 100%; }
  .folge .player { flex-wrap: wrap; row-gap: 6px; } .folge .player .zeitanz { flex: 1; }
  .folge .player .zeitleiste { order: 9; flex-basis: 100%; }
  .spalte { overflow: visible; } .spalte.mitte { padding: 12px 16px 100px; } .spalte.rechts { border: 0; order: -1; padding-bottom: 0; }
  .abs { grid-template-columns: minmax(0, 1fr); } .abs .zeit { padding: 0 0 2px 16px; }
}

.player { display: flex; align-items: center; gap: 8px; }
.play { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card-solid); display: grid; place-items: center; cursor: pointer; color: var(--accent); flex: none; }
.play:hover { border-color: var(--accent); }
.play { position: relative; }
.play.laedt::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--accent); animation: drehen .9s linear infinite; pointer-events: none; }
@keyframes drehen { to { transform: rotate(360deg); } }
.play svg { width: 18px; height: 18px; }
.zeitanz { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.seek { flex: 1; accent-color: var(--accent); min-width: 80px; }
.zeitleiste { flex: 1; position: relative; height: 14px; min-width: 80px; cursor: pointer; border-radius: 3px; overflow: hidden; background: var(--line-2); }
.zeitleiste svg { width: 100%; height: 100%; display: block; opacity: .85; }
.zeitleiste:hover svg { opacity: 1; }
.zeitleiste i { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: var(--ink); pointer-events: none; }
.tempo { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 2px 10px; font-size: 13px; cursor: pointer; font-variant-numeric: tabular-nums; }

.abs { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 0 14px; padding: 8px 0; }
.abs .zeit { background: none; border: 0; padding: 2px 0 0; cursor: pointer; color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; text-align: left; align-self: start; }
.abs .zeit:hover { color: var(--accent); }
.abs .inhalt { border-left: 2px solid var(--c, var(--line)); padding-left: 14px; }
.abs .who { font-size: 14px; display: block; margin-bottom: 1px; }
.abs p { margin: 0; line-height: 1.62; font-size: 16px; text-wrap: pretty; }
.seg { cursor: pointer; border-radius: 3px; transition: background-color .2s; }
.seg:hover { background: var(--accent-soft); }
.seg.cur { background: var(--mark); }
.folgen-knopf { position: sticky; bottom: 16px; display: flex; justify-content: center; pointer-events: none; }
.folgen-knopf .btn { pointer-events: auto; background: var(--card-solid); box-shadow: 0 2px 10px rgba(0,0,0,.12); }

.kap { display: grid; gap: 1px; }
.kap button { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 8px; text-align: left; background: transparent; border: 0; border-radius: 4px; padding: 6px 6px; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.kap button:hover { background: var(--accent-soft); color: var(--ink); }
.kap button.cur { color: var(--accent); font-weight: 500; }
.kap small { color: var(--ink-3); font-variant-numeric: tabular-nums; }

.sp { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.sp .name { background: none; border: 0; padding: 0; text-align: left; cursor: text; font-weight: 600; color: var(--c); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp .name:hover { text-decoration: underline; text-underline-offset: 3px; }
.sp input:not([type=checkbox]) { font-weight: 600; padding: 3px 8px; border: 1px solid var(--accent); border-radius: 4px; background: var(--card-solid); width: 100%; }
.sp .anteil { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sp .balken { grid-column: 2 / span 2; height: 3px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.sp .balken i { display: block; height: 100%; background: var(--c); opacity: .75; }
.kv { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 4px 10px; font-size: 14px; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.kv dd .linkbtn { text-align: left; overflow-wrap: anywhere; font-size: 13px; }
.beschr { font-size: 13px; color: var(--ink-2); white-space: pre-wrap; max-height: 240px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent); }
.beschr.offen { max-height: none; -webkit-mask-image: none; mask-image: none; }

/* Stimmen und Personen */
.avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: block; flex: none; background: var(--line-2); }
.avatar.leer { background: var(--c, var(--line)); opacity: .35; }
.avatar.gross { width: 72px; height: 72px; }
.sp { grid-template-columns: 28px minmax(0, 1fr) auto; }
.sp .balken { grid-column: 2 / span 2; }
.sp-info { grid-column: 2 / span 2; display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; font-size: 13px; }
.sp-info .linkbtn { font-size: 13px; }
.sp-frage { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 14px; background: var(--accent-soft); border-radius: 6px; padding: 8px 10px; }
.sp-frage.trennen { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.trenn-stimme { display: grid; gap: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.trenn-stimme i { color: var(--ink-2); }
/* Stellen einer Stimme anspringen, Hervorhebung */
.avknopf { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; display: block; }
.avknopf:hover .avatar, .sp.fokus .avatar { outline: 2px solid var(--c, var(--accent)); outline-offset: 2px; }
.sp-stellen { display: inline-flex; align-items: center; gap: 0; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-stellen button { border: 0; background: none; cursor: pointer; color: var(--ink-2); font-size: 17px; line-height: 1; padding: 2px 7px; border-radius: 4px; }
.sp-stellen button:hover { background: var(--accent-soft); color: var(--ink); }
.sp.fokus .sp-stellen { color: var(--c); font-weight: 600; }
.abs { transition: opacity .2s; }
.abs.leise { opacity: .32; }
.abs.leise:hover { opacity: .75; }
.namensfeld { display: grid; gap: 8px; }
.namensfeld .input { padding: 7px 10px; }
.whobtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; cursor: pointer; }
.whobtn:hover { text-decoration: underline; text-underline-offset: 3px; }
.absatz-menue { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 4px 0 8px; padding: 8px 10px; background: var(--card-solid); border: 1px solid var(--line); border-radius: 6px; }
.chipbtn { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 3px 10px; font-size: 13px; cursor: pointer; color: var(--c, var(--ink-2)); font-weight: 600; }
.chipbtn:hover { border-color: var(--accent); }
.qcard { display: grid; gap: 12px; }
.qcard.busy { opacity: .5; pointer-events: none; }
.big2 { font-size: 18px; line-height: 1.35; font-weight: 500; text-wrap: balance; }
.card.click.hinweis { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.personen { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pkarte { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 16px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: inherit; }
.pkarte:hover { border-color: var(--accent); }
.pkarte b { font-weight: 600; overflow-wrap: anywhere; }
.pkarte.klein { grid-template-columns: 28px 1fr; justify-items: start; align-items: center; text-align: left; padding: 8px 10px; }
.steckkopf { display: flex; gap: 20px; align-items: center; }
.steckkopf .avatar.gross { width: 120px; height: 120px; }
.bildknopf { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; }
.bildknopf:hover { outline: 2px solid var(--accent); outline-offset: 3px; }
.chip .x { border: 0; background: none; padding: 0 0 0 2px; cursor: pointer; color: var(--ink-3); font-size: 14px; line-height: 1; }
.alias-in { border: 1px dashed var(--line); background: transparent; border-radius: 999px; padding: 2px 10px; font-size: 12px; width: 170px; color: var(--ink-2); }
.alias-in:focus { outline: none; border-color: var(--accent); }

/* Erwähnungen, Haltung, Funde (Etappe 3) */
:root { --h-positiv: var(--s2); --h-negativ: var(--bubble); --h-neutral: var(--line); --h-gemischt: var(--s4); }
.hbalken { display: inline-flex; width: 56px; height: 6px; border-radius: 3px; overflow: hidden; background: var(--line-2); flex: none; }
.hbalken i { display: block; height: 100%; }
.h-positiv { background: var(--h-positiv); } .h-negativ { background: var(--h-negativ); } .h-neutral { background: var(--h-neutral); } .h-gemischt { background: var(--h-gemischt); }
.hchip { background: none; border-color: currentColor; }
.hchip.h-positiv { color: var(--s2); } .hchip.h-negativ { color: var(--bubble); } .hchip.h-neutral { color: var(--ink-3); } .hchip.h-gemischt { color: var(--s4); }
.entkarte { display: grid; gap: 2px; }
.entname { font-size: 18px; font-weight: 600; }
.entkarte > .row a { color: inherit; text-decoration: none; } .entkarte > .row a:hover .entname { color: var(--accent); }
.werzeile { border-top: 1px solid var(--line-2); }
.werknopf { display: flex; gap: 10px; align-items: center; width: 100%; background: none; border: 0; padding: 8px 2px; cursor: pointer; text-align: left; color: inherit; }
.werknopf:hover { background: var(--accent-soft); }
.werknopf .wername { flex: 1; font-weight: 600; color: var(--c, var(--ink)); }
.werknopf .pfeil { color: var(--ink-3); width: 1em; }
.stellen { display: grid; gap: 10px; padding: 4px 0 12px 38px; }
.stelle { display: grid; gap: 4px; padding: 10px 12px; border-left: 2px solid var(--line); background: var(--card); border-radius: 0 6px 6px 0; }
.zitat { font-size: 15px; line-height: 1.5; }
.chip.redet { gap: 8px; text-decoration: none; }
.chip.redet .hbalken { width: 28px; height: 4px; }
a.chip { text-decoration: none; } a.chip:hover { border-color: var(--accent); color: var(--accent); }
.kap .kaptext { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; color: var(--ink-3); margin-top: 2px; line-height: 1.4; font-weight: 400; }
.kap .cur .kaptext { -webkit-line-clamp: unset; display: block; }
.aussage .linkbtn { margin-left: 6px; text-decoration: none; }
.fundknopf { display: grid; gap: 2px; text-align: left; background: none; border: 0; padding: 4px 0; cursor: pointer; color: inherit; font-size: 14px; }
.fundknopf:hover > span:last-child { color: var(--accent); }
.aussage { display: grid; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }

/* Archiv fragen, Befunde */
.fragkarte { border-color: var(--accent); }
.antwort { font-size: 16px; line-height: 1.6; }
.beleg { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin: 0 2px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; text-decoration: none; vertical-align: 1px; }
a.beleg:hover { background: var(--accent); color: #fff; }
.befund { display: grid; gap: 4px; }
.befund.b-widerspruch { border-left: 3px solid var(--h-negativ); } .befund.b-meinungswandel { border-left: 3px solid var(--h-gemischt); }
.bchip.b-widerspruch { color: var(--h-negativ); border-color: var(--h-negativ); } .bchip.b-meinungswandel { color: var(--s4); border-color: var(--s4); }
.bkarte { display: grid; gap: 2px; padding: 6px 0 6px 10px; border-left: 2px solid var(--line); font-size: 14px; }

/* Gesprächsnetz (ECharts, wie die Netzansicht von Home Assistant) */
.netzseite { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100vh; padding: 18px 24px; gap: 10px; }
.netzkopf { display: flex; gap: 10px 18px; align-items: center; flex-wrap: wrap; }
.netzgruppe { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.fadenknopf { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 3px 10px; font-size: 13px; cursor: pointer; color: var(--ink-3); }
.fadenknopf.an { color: var(--ink); border-color: var(--accent); background: var(--accent-soft); }
.fadenknopf i { display: inline-block; width: 16px; height: 3px; border-radius: 2px; opacity: .35; }
.fadenknopf.an i { opacity: 1; }
.fadenknopf .num { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.switch.klein button { padding: 3px 10px; font-size: 13px; }
.netzsuche { width: 190px; padding: 5px 10px; font-size: 14px; }
.netzflaeche { position: relative; min-height: 0; background: var(--card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  background-image: radial-gradient(var(--line-2) 1px, transparent 1px); background-size: 22px 22px; }
.netzchart { position: absolute; inset: 0; }

/* Suche */
.suchfeld { font-size: 18px; padding: 13px 16px; }
.treffer-gruppe { margin-top: 22px; }
.treffer-gruppe > .gkopf { text-decoration: none; color: inherit; display: block; margin-bottom: 4px; }
.treffer-gruppe > .gkopf b { font-weight: 600; } .treffer-gruppe > .gkopf:hover b { color: var(--accent); }
.treffer { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 2px 12px; padding: 7px 6px; border-radius: 4px; text-decoration: none; color: inherit; }
.treffer:hover { background: var(--accent-soft); }
.treffer .t { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 2px; }
.treffer .x { font-size: 15px; line-height: 1.55; }
.treffer .who { font-size: 13px; margin-right: 6px; }

/* Splash (einmal je Sitzung, Klick überspringt) */
.splash-wrap { position: fixed; inset: 0; z-index: 100; cursor: pointer; }
canvas.splash { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* dezentes Einblenden der Seiten */
.fade { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .play.laedt::after { animation: none; border-color: var(--accent); opacity: .5; } .nav .spielt, .dots i, .bar.unbestimmt i, .ell::after, .fade { animation: none; } .side { transition: none; } }
.veredeln-stand { margin-top: 10px; }
.btn.small > svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 2px; }
/* Schreibweisen */
.korr { text-decoration: underline dotted var(--ink-3); text-underline-offset: 3px; cursor: help; }
.marke { position: fixed; transform: translateX(-50%); z-index: 30; background: var(--card-solid); box-shadow: 0 4px 14px rgba(0,0,0,.14); }
.modal-bg { position: fixed; inset: 0; z-index: 40; background: rgba(20,24,30,.28); display: grid; place-items: start center; padding: 12vh 16px 16px; overflow-y: auto; }
.modal { width: min(560px, 100%); background: var(--card-solid); gap: 10px; }
.sw-felder { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.sw-felder label { display: grid; gap: 4px; }
.sw-pfeil { padding-bottom: 10px; color: var(--ink-3); }
.sw-bsp { display: block; color: var(--ink-2); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-bsp:hover { color: var(--accent); }
.sw-auch { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; font-size: 14px; }
.sw-auch input { margin-top: 3px; }
.sw-zeile { display: flex; gap: 12px; align-items: baseline; }
.sw-falsch { text-decoration: line-through; color: var(--ink-3); }
.chip.merkmal { background: var(--accent-soft); }
.pkarte .merkmale { color: var(--ink-2); }
.netzhilfe { flex: 1 1 340px; text-align: right; }
.abs .whobtn::after { content: " ⇄"; opacity: 0; transition: opacity .15s; }
.abs:hover .whobtn::after { opacity: .55; }
.am-fuss { flex-basis: 100%; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line-2); padding-top: 6px; margin-top: 2px; }
.am-fuss label { display: inline-flex; gap: 6px; align-items: center; }
.anmelden { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.anmelden form { width: min(380px, 100%); gap: 12px; }
.anmelden .brand { padding: 4px 0 6px; text-align: center; font-size: 17px; }
.zugang { max-width: 420px; gap: 10px; }
.bildwahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 10px 0 4px; }
.bildwahl button { padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--card); cursor: pointer; overflow: hidden; aspect-ratio: 1; }
.bildwahl button:hover, .bildwahl button:focus-visible { border-color: var(--accent); outline: 2px solid var(--accent-soft); }
.bildwahl img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fakten { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.fakten .quelle { font-size: 12px; color: var(--ink-3); margin-left: 4px; }
.kontroversen { gap: 10px; }
.kontra { display: grid; gap: 4px; padding-left: 12px; border-left: 2px solid rgba(199,70,62,.45); }
.kontra.auch { border-left-color: var(--line); }
.kontra .quelle { font-size: 12px; color: var(--ink-3); margin-left: 4px; }

/* Player: Leiste oben (die Folge läuft weiter, während man herumklickt) */
.shell.mit-leiste .view { height: calc(100vh - 56px); }
.leiste { position: relative; display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 12px; border-bottom: 1px solid var(--line-2); background: var(--side); backdrop-filter: blur(6px); }
.leiste .play { width: 36px; height: 36px; }
.leiste .play svg { width: 16px; height: 16px; }
.leiste-text { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; padding: 4px 6px; border-radius: 6px; }
.leiste-text:hover { background: var(--accent-soft); }
.leiste-text > span { display: grid; min-width: 0; line-height: 1.3; }
.leiste-text b { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leiste-text .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.leiste-text .who { font-weight: 500; }
.leiste-fort { position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--accent); pointer-events: none; }
.nav .spielt { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: puls 1.6s ease-in-out infinite; }
@keyframes puls { 50% { opacity: .3; } }
.icon-btn.an { background: var(--accent-soft); color: var(--accent); }
.icon-btn.gross { width: 48px; height: 48px; } .icon-btn.gross svg { width: 24px; height: 24px; }
.play.gross { width: 60px; height: 60px; } .play.gross svg { width: 24px; height: 24px; }
@media (max-width: 860px) { .shell.mit-leiste .view { height: calc(100vh - 108px - var(--oben)); } }

/* Suche in einer Folge: wer hat das Wort gesagt, wann, in welchem Satz */
.fsuche { position: relative; }
.fsuche-feld { display: flex; align-items: center; gap: 4px; }
.fsuche-feld > svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; margin-right: 4px; }
.fsuche-feld .input { flex: 1; padding: 7px 10px; }
.fsuche-feld .small { padding: 0 6px; white-space: nowrap; }
.fsuche-feld .icon-btn { font-size: 20px; width: 32px; height: 32px; }
.fsuche-feld .icon-btn:disabled { opacity: .35; cursor: default; }
.fsuche-liste { position: absolute; top: calc(100% + 6px); left: 0; right: 0; max-width: 860px; max-height: min(62vh, 600px); overflow-y: auto; padding: 6px;
  background: var(--card-solid); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 28px rgba(0,0,0,.16); }
.fsuche-wer { margin: 2px 4px 8px; }
.fsuche-wer .chip { cursor: pointer; background: transparent; }
.fsuche-wer .chip.an { background: var(--accent-soft); border-color: var(--c); }
.fsuche-treffer { display: grid; grid-template-columns: 28px 150px minmax(0, 1fr); gap: 10px; align-items: start; width: 100%; text-align: left;
  border: 0; background: none; padding: 8px; border-radius: 6px; cursor: pointer; }
.fsuche-treffer:hover { background: var(--accent-soft); }
.fsuche-treffer.cur { background: var(--mark); }
.fsuche-kopf { display: grid; line-height: 1.3; min-width: 0; }
.fsuche-kopf .who { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsuche-satz { font-size: 15px; line-height: 1.5; }
.fsuche-satz mark, .fsuche-satz mark { background: var(--mark); color: inherit; border-radius: 2px; padding: 0 1px; }
.fsuche-satz .kurz { display: none; }
@media (max-width: 860px) {
  .fsuche-treffer { grid-template-columns: 28px minmax(0, 1fr); }
  .fsuche-kopf { display: flex; gap: 8px; align-items: baseline; }
  .fsuche-satz { grid-column: 2; }
  .fsuche-satz .voll { display: none; } .fsuche-satz .kurz { display: inline; }
}

/* Player-Ansicht: wer spricht (groß, mit Bild), Knöpfe, mitlaufendes Transkript */
.player-ansicht { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); max-width: 980px; margin: 0 auto; padding: 20px 32px 0; }
.player-ansicht:fullscreen { max-width: none; padding: 32px max(32px, calc((100vw - 980px) / 2)) 0;
  background: radial-gradient(120% 90% at 50% 18%, var(--bg-center), var(--bg-edge)) fixed, var(--bg-edge); }
.pl-titel { display: flex; align-items: center; gap: 12px; }
.pl-titel .thumb { width: 72px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; flex: none; }
.pl-folge { color: inherit; text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-folge:hover { text-decoration: underline; }
.pl-folge b { font-weight: 500; }
.pl-jetzt { display: grid; gap: 14px; padding: 18px 0 12px; border-bottom: 1px solid var(--line-2); }
.pl-wer { display: flex; align-items: center; gap: 20px; min-height: 104px; }
.pl-wer .avatar.gross { width: 96px; height: 96px; outline: 3px solid var(--c, var(--line)); outline-offset: 3px; }
.pl-name { display: block; font-size: 30px; line-height: 1.2; font-weight: 600; text-decoration: none; letter-spacing: -.01em; }
a.pl-name:hover { text-decoration: underline; }
.pl-steuer { display: grid; gap: 8px; }
.pl-steuer .zeitleiste { height: 18px; }
.pl-zeiten { display: flex; justify-content: space-between; margin-top: -4px; }
.pl-knoepfe { display: grid; grid-template-columns: 1fr auto auto auto 1fr; align-items: center; gap: 10px; }
.pl-knoepfe > :first-child { grid-column: 2; } .pl-knoepfe .tempo { justify-self: end; }
.pl-text { overflow-y: auto; position: relative; padding: 14px 0 45vh; -webkit-mask-image: linear-gradient(transparent, #000 28px); mask-image: linear-gradient(transparent, #000 28px); }
.pl-text .abs { cursor: pointer; opacity: .5; transition: opacity .3s; }
.pl-text .abs:hover, .pl-text .abs.jetzt { opacity: 1; }
.pl-text .abs .zeit { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.pl-text .abs p { font-size: 18px; }
@media (max-width: 860px) {
  .player-ansicht { padding: 12px 16px 0; }
  .pl-titel .thumb { width: 56px; }
  .pl-wer { gap: 14px; min-height: 80px; }
  .pl-wer .avatar.gross { width: 68px; height: 68px; }
  .pl-name { font-size: 22px; }
  .pl-text .abs { grid-template-columns: minmax(0, 1fr); }
  .pl-text .abs .zeit { display: none; }
  .pl-text .abs p { font-size: 17px; }
}

code.adresse { font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--card-solid); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; overflow-wrap: anywhere; }
button.li { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line-2); cursor: pointer; font: inherit; color: inherit; }
