/* Smart Hub – Farben & Typografie nach atterseemedia.at (Archivo, Instrument Serif, Türkis #028a98) */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/archivo/archivo-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/archivo/archivo-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('/fonts/instrument-serif/instrument-serif-latin-400-italic.woff2') format('woff2'); }

:root {
  --bg: #faf9f7;            /* warmes Weiß */
  --surface: #ffffff;
  --surface-2: #f3f2f0;
  --surface-3: #ebeae7;
  --ink: #1d1d1f;           /* Anthrazit */
  --ink-2: #424245;
  --muted: #6e6e73;
  --muted-2: #8e8e93;
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.14);
  --teal: #028a98;          /* Akzent */
  --teal-d: #016d78;
  --teal-tint: #e9f6f7;
  --stage: #121314;
  --danger: #c4321f;
  --warn-tint: #fff4e5;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-lg: 0 1px 0 rgba(0,0,0,.03), 0 30px 80px -30px rgba(0,0,0,.35);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --pad: clamp(18px, 4vw, 56px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
::selection { background: var(--teal); color: #fff; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--teal); }
img, video, canvas { display: block; max-width: 100%; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid rgba(2, 138, 152, .45); outline-offset: 2px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 15px;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; white-space: nowrap; text-decoration: none; }
.btn:hover { border-color: var(--teal); color: var(--teal); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--teal); border-color: var(--teal); color: #fff; box-shadow: 0 8px 20px -10px rgba(2,138,152,.7); }
.btn-primary:hover { background: var(--teal-d); border-color: var(--teal-d); color: #fff; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; border-color: #000; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; color: var(--ink); }
.btn-danger { color: var(--danger); border-color: transparent; background: transparent; }
.btn-danger:hover { background: #fdecea; color: var(--danger); border-color: transparent; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { width: 42px; height: 42px; padding: 0; border-radius: 50%; display: inline-grid; place-items: center;
  border: 0; background: transparent; color: inherit; transition: background .2s; }
.icon-btn:hover { background: rgba(0,0,0,.06); }

/* ---------- Boot / Spinner ---------- */
.boot { min-height: 100vh; display: grid; place-items: center; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(2,138,152,.2); border-top-color: var(--teal);
  animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.login-visual { position: relative; overflow: hidden; background: #0f1112; color: #fff; padding: clamp(32px, 5vw, 72px);
  display: flex; flex-direction: column; justify-content: space-between; }
.login-visual::before { content: ''; position: absolute; inset: -20%; background:
  radial-gradient(40% 50% at 20% 25%, rgba(3,163,179,.55), transparent 70%),
  radial-gradient(35% 45% at 85% 80%, rgba(2,138,152,.45), transparent 70%),
  radial-gradient(30% 30% at 70% 20%, rgba(255,255,255,.08), transparent 70%); filter: blur(10px); }
.login-visual > * { position: relative; }
.login-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 40px 0; max-width: 520px; }
.login-mosaic span { aspect-ratio: 4/3; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  display: grid; place-items: center; color: rgba(255,255,255,.75); backdrop-filter: blur(8px); }
.login-mosaic span:nth-child(2n) { background: rgba(3,163,179,.22); }
.login-mosaic .icon { width: 26px; height: 26px; }
.login-claim { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -.04em; font-weight: 700; max-width: 12ch; }
.login-claim em { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.login-note { color: rgba(255,255,255,.65); max-width: 44ch; font-size: 16px; }
.login-panel { display: grid; place-items: center; padding: clamp(28px, 5vw, 72px); }
.login-form { width: 100%; max-width: 380px; display: grid; gap: 18px; }
.login-form h1 { font-size: clamp(30px, 3vw, 40px); letter-spacing: -.035em; line-height: 1.05; }
.login-form .lead { margin: 10px 0 6px; color: var(--muted); }
.field { display: grid; gap: 7px; }
.field > span, .label { font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: .01em; }
.input, .textarea, .select { width: 100%; border: 1px solid var(--line-2); background: var(--surface); border-radius: 12px;
  padding: 12px 14px; font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(2,138,152,.14); }
.textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236e6e73' stroke-width='1.8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.form-error { color: var(--danger); font-size: 14px; min-height: 20px; margin: -6px 0 0; }
.demo-hint { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 14px 16px; font-size: 14px; color: var(--muted); }
.demo-hint strong { color: var(--ink); }
.demo-hint .row { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; }
.demo-hint button { border: 0; background: none; color: var(--teal); font-weight: 600; padding: 0; }
.demo-hint code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--ink); background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }

/* ---------- Kopfzeile ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(250, 249, 247, .82); backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line); }
.topbar-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; height: 68px; padding: 0 var(--pad); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.brand-name i { font-family: var(--serif); font-size: 19px; font-style: italic; color: var(--teal); }
.search { position: relative; justify-self: center; width: 100%; max-width: 560px; }
.search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted-2); pointer-events: none; }
.search input { width: 100%; height: 44px; border-radius: 999px; border: 1px solid transparent; background: var(--surface-3);
  padding: 0 44px 0 44px; font-size: 15px; outline: none; transition: background .2s, border-color .2s, box-shadow .2s; }
.search input::placeholder { color: var(--muted-2); }
.search input:focus { background: var(--surface); border-color: var(--teal); box-shadow: 0 0 0 4px rgba(2,138,152,.12); }
.search .clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; }
.menu { position: absolute; right: var(--pad); top: 62px; width: 260px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-lg); padding: 8px; animation: pop .22s var(--ease); }
.menu-head { padding: 12px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-head b { display: block; }
.menu-head span { color: var(--muted); font-size: 13px; }
.menu button { width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 10px; display: flex; gap: 10px; align-items: center; }
.menu button:hover { background: var(--surface-2); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Mediathek ---------- */
.main { padding: clamp(28px, 4.5vw, 64px) var(--pad) 96px; max-width: 1680px; margin: 0 auto; }
.lib-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(22px, 3vw, 36px); }
.lib-title { font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -.045em; font-weight: 700; }
.lib-title em { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; color: var(--teal); }
.lib-sub { margin: 12px 0 0; color: var(--muted); font-size: clamp(15px, 1.2vw, 18px); }
.tabs { display: inline-flex; gap: 2px; padding: 4px; background: var(--surface-3); border-radius: 999px; overflow-x: auto; max-width: 100%;
  scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--ink-2);
  display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; transition: background .25s var(--ease), color .2s, box-shadow .25s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 12px -6px rgba(0,0,0,.15); }
.tab .count { font-size: 12px; font-weight: 600; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.tab[aria-selected="true"] .count { color: var(--teal); }
.filter-note { display: flex; align-items: center; gap: 10px; margin: -12px 0 24px; color: var(--muted); font-size: 15px; flex-wrap: wrap; }
.filter-note b { color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(26px, 3vw, 40px) clamp(18px, 2vw, 28px); }
.card { display: flex; flex-direction: column; gap: 14px; text-align: left; border: 0; padding: 0; background: none; border-radius: var(--radius);
  animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.thumb { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--surface-3);
  transition: box-shadow .45s var(--ease), transform .45s var(--ease); isolation: isolate; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.thumb.fit { background: linear-gradient(180deg, #efeeeb, #e6e5e1); }
.thumb.fit img { object-fit: contain; padding: 18px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.16)); }
.card:hover .thumb { box-shadow: 0 24px 50px -26px rgba(0,0,0,.45); transform: translateY(-3px); }
.card:hover .thumb img { transform: scale(1.035); }
.thumb .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted-2); }
.thumb .placeholder .icon { width: 44px; height: 44px; }
.thumb .ext { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); font-weight: 700; font-size: 13px; letter-spacing: .1em; color: var(--muted); }
.chip-type { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 8px;
  border-radius: 999px; background: rgba(255,255,255,.88); backdrop-filter: blur(10px); font-size: 12.5px; font-weight: 600; color: var(--ink); }
.chip-type .icon { width: 15px; height: 15px; color: var(--teal); }
.chip-lock { position: absolute; right: 12px; top: 12px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(29,29,31,.72); color: #fff; backdrop-filter: blur(10px); }
.chip-lock .icon { width: 15px; height: 15px; }
.chip-dur { position: absolute; right: 12px; bottom: 12px; padding: 4px 9px; border-radius: 8px; background: rgba(0,0,0,.6); color: #fff;
  font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.9); color: var(--ink); opacity: 0; transform: scale(.85); transition: opacity .3s, transform .4s var(--ease); }
.card:hover .play { opacity: 1; transform: none; }
.play .icon { width: 22px; height: 22px; margin-left: 3px; }
.processing { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(250,249,247,.7); font-size: 13px; font-weight: 600; color: var(--ink-2); gap: 8px; align-content: center; }
.card-body { padding: 0 4px; display: grid; gap: 4px; }
.card-title { font-size: 17px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 14px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.card-meta .ok { color: var(--teal); font-weight: 600; }
.empty { text-align: center; padding: 80px 20px; color: var(--muted); display: grid; justify-items: center; gap: 10px; }
.empty .icon { width: 40px; height: 40px; color: var(--muted-2); }
.empty h3 { color: var(--ink); font-size: 22px; letter-spacing: -.02em; }

/* ---------- Detailansicht ---------- */
.viewer { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 30vw, 440px); background: var(--stage);
  animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.stage { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.stage-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; color: rgba(255,255,255,.85); gap: 12px; }
.stage-bar .icon-btn { color: #fff; }
.stage-bar .icon-btn:hover { background: rgba(255,255,255,.12); }
.stage-bar .pos { font-size: 13px; color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; }
.stage-media { flex: 1; min-height: 0; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: 0 clamp(16px, 3vw, 48px) clamp(16px, 3vw, 40px); position: relative; }
.stage-media video { width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 12px; background: #000; box-shadow: 0 30px 80px -30px rgba(0,0,0,.9); }
.stage-media .img-wrap { width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; cursor: zoom-in; border-radius: 12px; }
.stage-media .img-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; user-select: none; -webkit-user-drag: none; }
.stage-media .img-wrap.zoomed { overflow: auto; cursor: zoom-out; place-items: start; }
.stage-media .img-wrap.zoomed img { max-width: none; max-height: none; }
.stage-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255,255,255,.1); color: #fff; backdrop-filter: blur(8px); transition: background .2s; z-index: 2; }
.stage-nav:hover { background: rgba(255,255,255,.22); }
.stage-nav.prev { left: 14px; } .stage-nav.next { right: 14px; }
.pdf { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; min-height: 0; }
.pdf-scroll { flex: 1; min-height: 0; width: 100%; overflow: auto; display: grid; place-items: center; }
.pdf canvas { background: #fff; border-radius: 4px; box-shadow: 0 20px 60px -20px rgba(0,0,0,.8); }
.pdf-bar { display: inline-flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; backdrop-filter: blur(10px); }
.pdf-bar .icon-btn { color: #fff; width: 36px; height: 36px; }
.pdf-bar .icon-btn:hover { background: rgba(255,255,255,.14); }
.pdf-bar .icon-btn[disabled] { opacity: .35; pointer-events: none; }
.pdf-bar span { min-width: 96px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.no-preview { color: rgba(255,255,255,.7); text-align: center; display: grid; gap: 10px; justify-items: center; }
.no-preview .icon { width: 56px; height: 56px; }

.panel { background: var(--surface); overflow-y: auto; padding: clamp(22px, 2.4vw, 34px); display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.panel-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.badge { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; color: var(--teal); background: var(--teal-tint);
  padding: 5px 11px 5px 9px; border-radius: 999px; }
.badge .icon { width: 15px; height: 15px; }
.panel h2 { font-size: clamp(24px, 2vw, 30px); line-height: 1.12; letter-spacing: -.03em; font-weight: 700; }
.panel .desc { margin: 10px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.6; white-space: pre-line; }
.section-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  transition: border-color .2s, color .2s, background .2s; }
button.tag:hover { border-color: var(--teal); color: var(--teal); }
.facts { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); border-top: 1px solid var(--line); }
.facts dt, .facts dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.facts dt { color: var(--muted); padding-right: 18px; }
.facts dd { text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.dl-box { display: grid; gap: 10px; }
.locked { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink-2); font-size: 14.5px; }
.locked .icon { margin-top: 2px; color: var(--muted); }
.locked b { display: block; color: var(--ink); }
.admin-box { border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 14px; background: #fcfcfb; }
.admin-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.admin-row small { display: block; color: var(--muted); font-size: 13px; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Schalter */
.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #d9d9de; transition: background .25s; pointer-events: none; }
.switch span::after { content: ''; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .3s var(--ease); }
.switch input:checked + span { background: var(--teal); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid rgba(2,138,152,.45); outline-offset: 2px; }

/* Schlagwort-Eingabe */
.tag-input { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; padding: 7px 8px; background: var(--surface);
  transition: border-color .2s, box-shadow .2s; cursor: text; }
.tag-input:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(2,138,152,.14); }
.tag-input .t { display: inline-flex; align-items: center; gap: 4px; background: var(--teal-tint); color: var(--teal-d); border-radius: 999px; padding: 4px 6px 4px 11px; font-size: 14px; font-weight: 600; }
.tag-input .t button { border: 0; background: none; color: inherit; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; padding: 0; }
.tag-input .t button:hover { background: rgba(2,138,152,.15); }
.tag-input input { flex: 1; min-width: 120px; border: 0; outline: none; padding: 5px 4px; font-size: 15px; background: transparent; }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.suggest button { border: 1px dashed var(--line-2); background: none; border-radius: 999px; padding: 4px 10px; font-size: 13px; color: var(--muted); }
.suggest button:hover { border-color: var(--teal); color: var(--teal); }

/* ---------- Dialoge (Upload, Bestätigung) ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(18,19,20,.42); backdrop-filter: blur(6px); display: grid; place-items: center;
  padding: clamp(0px, 3vw, 32px); animation: fade .2s ease; }
.dialog { width: min(820px, 100%); max-height: min(920px, 100%); background: var(--bg); border-radius: 28px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden; animation: pop .3s var(--ease); }
.dialog.small { width: min(440px, 100%); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px 8px; gap: 16px; }
.dialog-head h2 { font-size: 26px; letter-spacing: -.03em; }
.dialog-body { padding: 14px 26px 22px; overflow-y: auto; display: grid; gap: 18px; }
.dialog-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 26px; border-top: 1px solid var(--line); background: var(--surface); flex-wrap: wrap; }
.dialog-foot .hint { color: var(--muted); font-size: 14px; }
.drop { border: 1.5px dashed rgba(2,138,152,.45); border-radius: 22px; background: var(--surface); padding: clamp(28px, 4vw, 48px) 20px; text-align: center;
  display: grid; justify-items: center; gap: 10px; transition: background .2s, border-color .2s, transform .3s var(--ease); cursor: pointer; }
.drop.over { background: var(--teal-tint); border-color: var(--teal); transform: scale(1.01); }
.drop .circle { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-tint); color: var(--teal); }
.drop .circle .icon { width: 26px; height: 26px; }
.drop h3 { font-size: 19px; letter-spacing: -.02em; }
.drop p { margin: 0; color: var(--muted); font-size: 14.5px; }
.drop.compact { padding: 16px; grid-auto-flow: column; justify-content: center; align-items: center; gap: 12px; }
.drop.compact .circle { width: 38px; height: 38px; }
.drop.compact p { display: none; }
.drop.compact h3 { font-size: 15px; }
.up-item { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 16px; display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 18px; }
.up-prev { position: relative; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; background: var(--surface-3); display: grid; place-items: center; color: var(--muted); }
.up-prev img, .up-prev video { width: 100%; height: 100%; object-fit: cover; }
.up-prev .icon { width: 34px; height: 34px; }
.up-fields { display: grid; gap: 12px; min-width: 0; }
.up-row { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 12px; }
.up-file { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.up-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-dl { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; }
.up-dl small { color: var(--muted); display: block; font-size: 12.5px; }
.progress { height: 6px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--teal); transition: width .2s; }
.up-state { font-size: 13px; font-weight: 600; }
.up-state.ok { color: var(--teal); } .up-state.err { color: var(--danger); }

.page-drop { position: fixed; inset: 12px; z-index: 90; border: 2px dashed var(--teal); border-radius: 28px; background: rgba(233,246,247,.86);
  display: grid; place-items: center; font-size: 22px; font-weight: 700; color: var(--teal-d); pointer-events: none; animation: fade .15s; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14.5px; font-weight: 500; box-shadow: 0 12px 30px -12px rgba(0,0,0,.5);
  display: flex; gap: 10px; align-items: center; animation: toast .35s var(--ease); max-width: calc(100vw - 32px); }
.toast.err { background: var(--danger); }
.toast .icon { color: #5fd3de; }
.toast.err .icon { color: #fff; }
@keyframes toast { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Responsiv ---------- */
@media (max-width: 1080px) {
  .viewer { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; overflow-y: auto; }
  .stage { height: min(62vh, 640px); flex: none; }
  .panel { overflow: visible; border-radius: 26px 26px 0 0; margin-top: -10px; position: relative; }
}
@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; }
  .login-visual { min-height: 0; padding-bottom: 36px; }
  .login-mosaic { display: none; }
  .login-claim { font-size: 38px; margin-top: 28px; }
  .topbar-in { grid-template-columns: minmax(0, 1fr) auto; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 10px; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .btn-new-label { display: none; }
  .btn-new { width: 42px; padding: 0; }
  .up-item { grid-template-columns: 1fr; }
  .up-prev { aspect-ratio: 16/9; }
  .up-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .brand-name b { font-size: 14px; }
  .brand-name i { font-size: 17px; }
  .lib-head { margin-bottom: 18px; }
  .tabs { width: 100%; }
  .stage { height: 46vh; }
  .stage-nav { display: none; }
  .overlay { padding: 0; align-items: end; }
  .dialog { border-radius: 24px 24px 0 0; max-height: 94vh; }
  .dialog-head, .dialog-body, .dialog-foot { padding-left: 18px; padding-right: 18px; }
  .dialog-foot .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ======================================================================= Erweiterungen: Navigation, eigene Tabs, Auswahl, Teilen, Formate, Anfragen */
.topbar-in { grid-template-columns: auto auto minmax(0, 1fr) auto; }
.nav { display: flex; gap: 2px; }
.nav-link { position: relative; border: 0; background: none; padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--muted); transition: background .2s, color .2s; white-space: nowrap; }
.nav-link:hover { color: var(--ink); background: rgba(0,0,0,.04); }
.nav-link[aria-current="page"] { color: var(--ink); background: var(--surface-3); }
.nav-badge { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--teal); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.select-sm { padding: 8px 34px 8px 12px; font-size: 14px; border-radius: 999px; width: auto; background-color: var(--surface); }
.hint { color: var(--muted); font-size: 14px; margin: 0; }
.hint code { font-family: ui-monospace, Menlo, monospace; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; color: var(--ink); }
.opt { font-weight: 500; color: var(--muted-2); }
.lead-sm { margin: 0; color: var(--ink-2); font-size: 15px; }
.dot { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .55; margin: 0 8px; vertical-align: middle; }
.spinner.sm { width: 12px; height: 12px; border-width: 2px; vertical-align: -1px; }

/* Eigene Tabs */
.colbar { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: -6px 0 22px; padding: 2px 0; }
.colbar::-webkit-scrollbar { display: none; }
.colbar-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); white-space: nowrap; margin-right: 4px; }
.colbar-label .icon { width: 15px; height: 15px; }
.ctab { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: border-color .2s, background .2s, color .2s; }
.ctab small { font-weight: 500; color: var(--muted-2); font-size: 12.5px; }
.ctab .count { font-size: 12px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.ctab:hover { border-color: var(--teal); }
.ctab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.ctab[aria-selected="true"] small, .ctab[aria-selected="true"] .count { color: rgba(255,255,255,.7); }
.ctab.add { border-style: dashed; color: var(--teal); border-color: rgba(2,138,152,.5); }
.ctab.add .icon { width: 15px; height: 15px; }
.colinfo { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding: 22px 24px; margin-bottom: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.colinfo h2 { font-size: 26px; letter-spacing: -.03em; }
.colinfo p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; display: flex; align-items: center; flex-wrap: wrap; }
.colinfo p .icon { width: 15px; height: 15px; margin-right: 5px; }
.colinfo .colinfo-desc { color: var(--ink-2); max-width: 70ch; }

/* Werkzeugleiste: Anzahl, Auswählen, Sortieren */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 22px; flex-wrap: wrap; }
.toolbar .filter-note { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; }
.toolbar .filter-note .icon { color: var(--teal); }
.tools { display: flex; align-items: center; gap: 8px; }
.sort { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.sort .icon { width: 16px; height: 16px; }
#btn-select[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Auswahl */
.chip-check { position: absolute; left: 12px; top: 12px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.25); display: none; place-items: center; color: transparent; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.chip-check .icon { width: 16px; height: 16px; }
.grid.selecting .chip-check { display: grid; }
.grid.selecting .chip-type, .grid.selecting .play { display: none; }
.card.selected .chip-check { background: var(--teal); border-color: var(--teal); color: #fff; }
.card.selected .thumb { box-shadow: 0 0 0 3px var(--teal), 0 20px 40px -24px rgba(2,138,152,.7); }
.card.selectable:hover .thumb { transform: none; }
.chip-formats { position: absolute; left: 12px; bottom: 12px; padding: 4px 8px; border-radius: 8px; background: rgba(255,255,255,.9); font-size: 12px; font-weight: 700; color: var(--teal-d); }
.selbar { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 18px;
  background: rgba(29,29,31,.94); color: #fff; border-radius: 999px; box-shadow: 0 20px 50px -18px rgba(0,0,0,.6); backdrop-filter: blur(14px); animation: toast .35s var(--ease); max-width: calc(100vw - 24px); overflow-x: auto; }
.selbar-count { white-space: nowrap; font-size: 14.5px; margin-right: 4px; }
.selbar .btn { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; }
.selbar .btn:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.selbar .btn-primary { background: var(--teal); border-color: var(--teal); }
.selbar .btn-ghost { background: transparent; border-color: transparent; }
.selbar .icon-btn { color: #fff; flex: none; }
.selbar .icon-btn:hover { background: rgba(255,255,255,.12); }
.selbar-sep { width: 1px; height: 22px; background: rgba(255,255,255,.2); flex: none; }

/* Detailansicht: Formate */
.stage-bar { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; }
.stage-bar .pos { justify-self: end; padding-right: 6px; }
.formats { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.fpill { border: 0; background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.fpill:hover { background: rgba(255,255,255,.18); color: #fff; }
.fpill[aria-selected="true"] { background: #fff; color: var(--ink); }
.panel-top .panel-tools { display: flex; gap: 6px; }
.fmt-list { display: grid; border-top: 1px solid var(--line); }
.fmt-row { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); padding: 4px 0; }
.fmt-name { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; border: 0; background: none; padding: 8px 4px; text-align: left; border-radius: 10px; }
.fmt-name:hover { background: var(--surface-2); }
.fmt-name b { font-size: 15px; }
.fmt-name small { color: var(--muted); font-size: 13px; }
.fmt-row .icon-btn { width: 36px; height: 36px; color: var(--ink-2); }
.fmt-row a.icon-btn { color: var(--teal); }
.fmt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag .icon { width: 14px; height: 14px; vertical-align: -2px; }
.tag-col { border-color: rgba(2,138,152,.35); color: var(--teal-d); background: var(--teal-tint); }
.tag-add { border-style: dashed; color: var(--muted); background: transparent; }
button.tag-add:hover { color: var(--teal); }

/* Auswahl-Chips */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: all .18s; }
.choice input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid rgba(2,138,152,.4); outline-offset: 2px; }
.choice:hover span { border-color: var(--teal); }
.fs { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.fs legend { font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 0; margin-bottom: 8px; }
.up-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Teilen */
.share-sum { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.share-sum p { margin: 0; font-size: 14.5px; color: var(--ink-2); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.share-sum .icon { width: 15px; height: 15px; }
.thumb-strip { display: flex; gap: 6px; flex-wrap: wrap; }
.mini { position: relative; width: 52px; height: 40px; border-radius: 8px; overflow: hidden; background: var(--surface-3); display: grid; place-items: center; color: var(--muted); flex: none; }
.mini img { width: 100%; height: 100%; object-fit: cover; }
.mini .icon { width: 18px; height: 18px; }
.mini-lock { position: absolute; right: 2px; bottom: 2px; width: 16px; height: 16px; border-radius: 50%; background: rgba(29,29,31,.8); color: #fff; display: grid; place-items: center; }
.mini-lock .icon { width: 10px; height: 10px; }
.mini.more { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.share-done { display: flex; align-items: center; gap: 14px; }
.share-done p { margin: 0; color: var(--ink-2); }
.share-done.big { flex-direction: column; text-align: center; padding: 18px 0; gap: 10px; }
.share-done.big h3 { font-size: 22px; letter-spacing: -.02em; }
.done-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; flex: none; }
.done-icon .icon { width: 24px; height: 24px; }
.link-box { display: flex; gap: 8px; }
.link-box .input { font-family: ui-monospace, Menlo, monospace; font-size: 14px; background: var(--surface-2); }
.link-box.sm .input { padding: 8px 12px; font-size: 13px; }
.share-list, .req-list { display: grid; gap: 14px; }
.share-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto auto; gap: 20px; align-items: center; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.share-row.revoked, .share-row.expired { opacity: .72; }
.share-thumbs { position: relative; height: 80px; }
.share-thumbs span { position: absolute; width: 96px; height: 68px; border-radius: 12px; overflow: hidden; background: var(--surface-3); border: 2px solid #fff; box-shadow: 0 6px 16px -8px rgba(0,0,0,.35); display: grid; place-items: center; color: var(--muted); }
.share-thumbs span:nth-child(1) { left: 0; top: 0; z-index: 3; } .share-thumbs span:nth-child(2) { left: 12px; top: 6px; z-index: 2; transform: rotate(4deg); } .share-thumbs span:nth-child(3) { left: 22px; top: 12px; z-index: 1; transform: rotate(8deg); }
.share-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.share-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.share-title h3 { font-size: 18px; letter-spacing: -.02em; }
.share-meta { margin: 4px 0 10px; color: var(--muted); font-size: 14px; display: flex; align-items: center; flex-wrap: wrap; }
.share-meta .icon { width: 14px; height: 14px; margin-right: 3px; }
.share-stats { display: grid; gap: 4px; font-size: 13.5px; color: var(--muted); text-align: right; white-space: nowrap; }
.share-stats b { color: var(--ink); font-size: 16px; }
.share-actions { display: flex; align-items: center; gap: 4px; }
.share-actions .icon-btn { color: var(--ink-2); }
.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.pill-active, .pill-erledigt { background: var(--teal-tint); color: var(--teal-d); }
.pill-neu { background: #e8f0ff; color: #1d4ed8; }
.pill-in_bearbeitung { background: var(--warn-tint); color: #a15c00; }
.pill-expired, .pill-revoked, .pill-abgelehnt { background: #f3f3f5; color: var(--muted); }

/* Anfragen */
.req-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }
.req-card { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 26px; padding: 26px; display: grid; gap: 10px; align-content: start; transition: transform .4s var(--ease), box-shadow .4s, border-color .2s; }
.req-card:hover { transform: translateY(-3px); border-color: rgba(2,138,152,.4); box-shadow: 0 24px 50px -30px rgba(0,0,0,.35); }
.req-card b { font-size: 22px; letter-spacing: -.025em; }
.req-card > span:not(.req-ic) { color: var(--muted); font-size: 15px; line-height: 1.5; }
.req-card i { font-style: normal; color: var(--teal); font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; }
.req-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--teal-tint); color: var(--teal); display: grid; place-items: center; }
.req-ic .icon { width: 24px; height: 24px; }
.req-ic.sm { width: 38px; height: 38px; border-radius: 11px; flex: none; }
.req-ic.sm .icon { width: 19px; height: 19px; }
.section-h { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 14px; }
.req { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.req summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; }
.req summary::-webkit-details-marker { display: none; }
.req-head { flex: 1; min-width: 0; display: grid; }
.req-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.req-head small { color: var(--muted); font-size: 13.5px; }
.req-body { padding: 0 18px 18px 70px; display: grid; gap: 14px; }
.facts.compact dt, .facts.compact dd { padding: 8px 0; font-size: 14px; }
.facts.compact dd { white-space: pre-line; }
.req-note { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--teal-tint); color: var(--teal-d); font-size: 14.5px; }
.req-admin { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 10px; align-items: end; padding: 14px; border-radius: 14px; background: var(--surface-2); }

@media (max-width: 1180px) {
  .topbar-in { grid-template-columns: auto minmax(0, 1fr) auto; }
  .nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; }
  .topbar-in { height: auto; padding-top: 10px; padding-bottom: 8px; row-gap: 6px; }
}
@media (max-width: 860px) {
  .topbar-in { grid-template-columns: minmax(0, 1fr) auto; }
  .search { grid-row: 2; }
  .nav { grid-row: 3; }
  .share-row { grid-template-columns: 1fr; gap: 12px; }
  .share-thumbs { display: none; }
  .share-stats { text-align: left; display: flex; gap: 16px; }
  .req-cards { grid-template-columns: 1fr; }
  .req-body { padding-left: 18px; }
  .req-admin { grid-template-columns: 1fr; }
  .up-row.three { grid-template-columns: 1fr; }
  .selbar { left: 12px; right: 12px; transform: none; border-radius: 22px; }
  .selbar-count b { font-size: 16px; }
  .colinfo { padding: 18px; }
}
@media (max-width: 560px) {
  .toolbar .filter-note { font-size: 14px; }
  .tools { width: 100%; justify-content: space-between; }
  .stage-bar { grid-template-columns: 42px minmax(0, 1fr); }
  .stage-bar .pos { display: none; }
}

/* ======================================================================= Öffentliche Paketseite */
.pub-top { position: sticky; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px var(--pad);
  background: rgba(250,249,247,.85); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line); }
.opt-light { font-weight: 500; opacity: .8; }
.pub-main { padding-top: clamp(28px, 5vw, 72px); }
.pub-hero { margin-bottom: clamp(28px, 4vw, 48px); max-width: 860px; }
.pub-kicker { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.pub-message { margin: 18px 0 0; font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-2); line-height: 1.6; white-space: pre-line; }
.pub-foot { margin-top: 72px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.pub-msg { min-height: calc(100vh - 80px); display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px; padding: 24px; }
.pub-msg h1 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.035em; }
.pub-msg p { margin: 0; color: var(--muted); max-width: 44ch; }
.pub-ic { width: 64px; height: 64px; border-radius: 20px; background: var(--teal-tint); color: var(--teal); display: grid; place-items: center; }
.pub-ic .icon { width: 30px; height: 30px; }
.pub-pw { display: flex; gap: 8px; width: min(380px, 100%); margin-top: 10px; }
.stage-media.portrait video, .stage-media.portrait .img-wrap img { max-height: 100%; }
@media (max-width: 560px) { .pub-top .btn .opt-light { display: none; } .pub-top .brand-name { display: none; } }

body:has(.selbar) .main { padding-bottom: 140px; }
.card-meta .nowrap { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 860px) {
  .selbar { flex-wrap: wrap; padding: 10px 10px 10px 16px; gap: 6px; overflow: visible; }
  .selbar-count { flex: 1 1 auto; }
  .selbar-sep { display: none; }
  .selbar .btn-sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
}

/* Ergebnis von Attersee Media hinterlegen */
.req-deliver { display: grid; gap: 8px; padding: 14px; border-radius: 14px; border: 1px dashed rgba(2,138,152,.45); }
.req-deliver .section-title { margin: 0 0 4px; }
.deliver-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; }
.deliver-row .up-state { grid-column: 2 / -1; font-size: 13px; }
.deliver-row .up-state:empty { display: none; }
.deliver-title { display: grid; min-width: 0; }
.deliver-title b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.deliver-title small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 560px) { .deliver-row { grid-template-columns: 52px minmax(0, 1fr); } }

/* ======================================================================= Dunkles Design (Schalter in der Kopfzeile, gespeichert pro Browser) */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e0f11; --surface: #18191c; --surface-2: #202125; --surface-3: #2a2b30;
  --ink: #ffffff; --ink-2: #ffffff; --muted: #a9a9b0; --muted-2: #8a8a91; /* Schrift im dunklen Design: rein weiß */
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.16);
  --teal: #14a3b2; --teal-d: #5fd3de; --teal-tint: rgba(20,163,178,.16);
  --stage: #08090a; --danger: #ff6b5a; --warn-tint: rgba(255,170,60,.14);
  --shadow-lg: 0 1px 0 rgba(255,255,255,.03), 0 30px 80px -30px rgba(0,0,0,.9);
}
html[data-theme="dark"] .topbar, html[data-theme="dark"] .pub-top { background: rgba(14,15,17,.8); }
html[data-theme="dark"] .btn-primary:hover { background: #0f8f9c; border-color: #0f8f9c; }
html[data-theme="dark"] .btn-dark, html[data-theme="dark"] .avatar, html[data-theme="dark"] .toast:not(.err),
html[data-theme="dark"] .ctab[aria-selected="true"], html[data-theme="dark"] #btn-select[aria-pressed="true"] { background: #f2f2f4; border-color: #f2f2f4; color: #111214; }
html[data-theme="dark"] .btn-dark:hover { background: #fff; color: #000; border-color: #fff; }
html[data-theme="dark"] .ctab[aria-selected="true"] small, html[data-theme="dark"] .ctab[aria-selected="true"] .count { color: rgba(0,0,0,.55); }
html[data-theme="dark"] .toast:not(.err) .icon { color: var(--teal); }
html[data-theme="dark"] .btn-danger:hover { background: rgba(255,107,90,.14); }
html[data-theme="dark"] .thumb.fit { background: linear-gradient(180deg, #222327, #1b1c1f); }
html[data-theme="dark"] .chip-type, html[data-theme="dark"] .chip-formats { background: rgba(24,25,28,.85); color: var(--ink); }
html[data-theme="dark"] .chip-formats { color: var(--teal-d); }
html[data-theme="dark"] .play { background: rgba(24,25,28,.88); color: #fff; }
html[data-theme="dark"] .processing { background: rgba(14,15,17,.72); }
html[data-theme="dark"] .admin-box { background: var(--surface-2); }
html[data-theme="dark"] .switch span { background: #3a3b41; }
html[data-theme="dark"] .share-thumbs span { border-color: var(--surface); }
html[data-theme="dark"] .pill-neu { background: rgba(80,140,255,.18); color: #9dbdff; }
html[data-theme="dark"] .pill-expired, html[data-theme="dark"] .pill-revoked, html[data-theme="dark"] .pill-abgelehnt { background: var(--surface-3); }
html[data-theme="dark"] .pill-in_bearbeitung { color: #ffb45e; }
html[data-theme="dark"] .demo-hint, html[data-theme="dark"] .colinfo, html[data-theme="dark"] .req, html[data-theme="dark"] .req-card,
html[data-theme="dark"] .share-row, html[data-theme="dark"] .up-item, html[data-theme="dark"] .share-sum { background: var(--surface); }
html[data-theme="dark"] .dialog-foot { background: var(--surface); }
html[data-theme="dark"] .page-drop { background: rgba(14,15,17,.88); }
html[data-theme="dark"] .login-visual { background: #08090a; }
html[data-theme="dark"] ::selection { color: #fff; }

/* Schalter */
.theme-btn { color: var(--ink-2); }
.theme-btn:hover { color: var(--ink); background: var(--surface-3); }
.theme-btn .icon { width: 20px; height: 20px; }
.login-panel { position: relative; }
.theme-float { position: absolute; top: clamp(14px, 3vw, 28px); right: clamp(14px, 3vw, 28px); }
.menu .menu-theme { display: none; }
@media (max-width: 560px) {
  .top-actions .theme-btn { display: none; }
  .menu .menu-theme { display: flex; }
}

.pub-actions { display: flex; align-items: center; gap: 8px; }
@media (max-width: 560px) { .top-actions .theme-btn { display: none; } .pub-actions .theme-btn { display: inline-grid; } }
.fpill[aria-selected="true"] { color: #1d1d1f; }

/* ------------------------------------------------------------------ Firmen & Benutzer (Adminbereich) */
.company-pick { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.company-pick .icon { width: 18px; height: 18px; }
.company-pick .select { max-width: 200px; }
.company-name { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--teal); font: inherit; font-weight: 600; cursor: pointer; justify-self: start; }
.link-btn:hover { text-decoration: underline; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--teal); }
.perm-row { display: flex; flex-wrap: wrap; gap: 18px; margin: 6px 0; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form { display: grid; gap: 16px; }
.adm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.adm-companies { display: grid; gap: 16px; }
.adm-side { display: grid; gap: 16px; position: sticky; top: 90px; }
.adm-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; }
.adm-card .section-h { margin: 0 0 10px; font-size: 18px; }
.adm-company-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.adm-company-head h2 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.adm-company-head .hint { margin: 4px 0 0; }
.adm-actions { display: flex; gap: 6px; flex: none; }
.adm-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
.adm-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.adm-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table td small { display: block; color: var(--muted); }
.adm-table th:not(:first-child), .adm-table td:not(:first-child) { text-align: center; width: 92px; }
.adm-empty { margin: 14px 0 0; }
.switch.sm { width: 42px; height: 26px; display: inline-block; vertical-align: middle; }
.switch.sm span::after { width: 22px; height: 22px; }
.switch.sm input:checked + span::after { transform: translateX(16px); }
.adm-user { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.adm-user small { display: block; color: var(--muted); font-size: 13px; }
.adm-add { display: flex; gap: 8px; margin-top: 12px; }
.adm-add .select { flex: 1; min-width: 0; }
@media (max-width: 980px) { .adm-grid { grid-template-columns: 1fr; } .adm-side { position: static; } }
@media (max-width: 640px) { .adm-table th:not(:first-child), .adm-table td:not(:first-child) { width: 56px; } .adm-company-head { flex-direction: column; } }

/* ================= Module, Academy, Feedback, Team, Personen ================= */
.nav-module { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2) !important; border-radius: 999px; padding-inline: 12px !important; }
.nav-module .icon { width: 15px; height: 15px; color: var(--teal); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin: 0 0 10px; }
.home-head { margin-bottom: clamp(24px, 3vw, 40px); }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.mod-tile { display: grid; gap: 10px; align-content: start; text-align: left; padding: 26px; min-height: 230px; border-radius: 26px; border: 1px solid var(--line);
  background: var(--surface); transition: transform .25s var(--ease), box-shadow .25s, border-color .2s; }
.mod-tile:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: 0 24px 50px -30px rgba(2,138,152,.55); }
.mod-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--teal-tint); color: var(--teal); }
.mod-ico .icon { width: 26px; height: 26px; }
.mod-name { font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.mod-text { color: var(--ink-2); }
.mod-foot { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--teal); font-size: 15px; }
.mod-tile.off { background: var(--surface-2); cursor: not-allowed; }
.mod-tile.off:hover { transform: none; box-shadow: none; border-color: var(--line); }
.mod-tile.off .mod-ico { background: var(--surface-3); color: var(--muted-2); }
.mod-tile.off .mod-name, .mod-tile.off .mod-text { color: var(--muted); }
.mod-tile.off .mod-foot { color: var(--muted); font-weight: 500; font-size: 13.5px; }
.mod-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mod-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted-2); }
.mod-chip .icon { width: 13px; height: 13px; }
.mod-chip.on { background: var(--teal-tint); color: var(--teal-d); }
.mod-check { align-items: flex-start; padding: 6px 0; }
.mod-check span small { display: block; color: var(--muted); font-size: 13px; }
.home-learn, .learn-strip { margin-top: 40px; }
.learn-strip { margin: 0 0 clamp(26px, 3vw, 40px); }
.learn-strip .section-h { display: flex; align-items: center; gap: 8px; }
.learn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.learn-card { display: grid; text-decoration: none; color: inherit; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.learn-card:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -28px rgba(0,0,0,.4); }
.learn-thumb { position: relative; aspect-ratio: 16/9; background: var(--surface-3); display: grid; place-items: center; color: var(--muted-2); }
.learn-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.learn-thumb .icon { width: 36px; height: 36px; }
.learn-type { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.learn-card.expert .learn-type { background: #111; color: #fff; }
.learn-done { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; border-radius: 50%; background: #1f9d55; color: #fff; display: grid; place-items: center; }
.learn-done .icon { width: 18px; height: 18px; stroke-width: 2.6; }
.learn-body { padding: 16px 18px 18px; display: grid; gap: 6px; position: relative; }
.learn-body h3 { font-size: 19px; letter-spacing: -.02em; }
.learn-body .hint { margin: 0; }
.learn-pct { position: absolute; right: 18px; bottom: 26px; font-size: 13px; font-weight: 700; color: var(--teal); }
.progress.slim { height: 5px; margin-right: 48px; }
.late { color: var(--danger) !important; font-weight: 600; }

/* Room-Player – Onboarding (hell, Lernplattform) */
.room-page { position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow-y: auto; display: flex; flex-direction: column; }
.room-page .boot { flex: 1; display: grid; place-items: center; }
.room-error { margin: auto; text-align: center; display: grid; gap: 14px; justify-items: center; padding: 40px; }
.room-error .icon { width: 40px; height: 40px; color: var(--muted-2); }
.rp-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 12px var(--pad); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.rp-title { display: grid; min-width: 0; }
.rp-title small { color: var(--teal); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.rp-title b { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-progress { margin-left: auto; display: flex; align-items: center; gap: 12px; min-width: min(280px, 40vw); }
.rp-progress .progress { flex: 1; height: 8px; }
.rp-progress span { font-size: 14px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rp-body { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; padding: 26px var(--pad) 60px; max-width: 1500px; width: 100%; margin: 0 auto; align-items: start; }
.rp-list { position: sticky; top: 90px; display: grid; gap: 12px; }
.rp-deadline { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; background: var(--warn-tint); padding: 10px 14px; border-radius: 14px; font-size: 14px; }
.rp-desc { margin: 0; color: var(--ink-2); font-size: 15px; }
.rp-lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rp-lessons button { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px; border-radius: 16px; border: 1px solid transparent; background: none; }
.rp-lessons button:hover { background: var(--surface); border-color: var(--line); }
.rp-lessons button.active { background: var(--surface); border-color: var(--teal); box-shadow: 0 10px 24px -18px rgba(2,138,152,.7); }
.rp-check { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; border: 2px solid var(--line-2); color: var(--muted); }
.rp-lessons button.done .rp-check { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.rp-check .icon { width: 17px; height: 17px; stroke-width: 2.8; }
.rp-l-text { display: grid; min-width: 0; }
.rp-l-text b { font-weight: 600; font-size: 15px; }
.rp-l-text small { color: var(--muted); font-size: 13px; }
.rp-player { border-radius: 22px; overflow: hidden; background: #000; aspect-ratio: 16/9; display: grid; place-items: center; color: #fff; }
.rp-player video { width: 100%; height: 100%; object-fit: contain; }
.rp-player .no-preview { color: rgba(255,255,255,.7); }
.vimeo-wrap { position: relative; width: 100%; height: 100%; min-height: 240px; }
.vimeo-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stage-media .vimeo-wrap { width: min(100%, 1400px); aspect-ratio: 16/9; height: auto; max-height: 100%; }
.rp-info { padding: 20px 4px; display: grid; gap: 10px; }
.rp-info h2 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.03em; }
.rp-info p { margin: 0; color: var(--ink-2); }
.rp-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.rp-ok { display: inline-flex; align-items: center; gap: 6px; color: #1f9d55; font-weight: 700; }
@media (max-width: 900px) { .rp-body { grid-template-columns: 1fr; } .rp-list { position: static; order: 2; } .rp-main { order: 1; } .rp-progress { min-width: 110px; } .rp-progress .progress { display: none; } }

/* Expert Room – dunkel & reduziert */
.room-page.expert { background: #0b0c0d; color: #f2f2f4; }
.ex-top { display: flex; align-items: center; gap: 14px; padding: 16px var(--pad); }
.ex-top .icon-btn { color: #fff; background: rgba(255,255,255,.08); }
.ex-top div { display: grid; }
.ex-top small { color: rgba(255,255,255,.5); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.ex-top b { font-size: 20px; }
.ex-desc { padding: 0 var(--pad); color: rgba(255,255,255,.6); margin: 0 0 12px; }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; padding: 8px var(--pad) 60px; }
.ex-tile { display: grid; gap: 8px; text-align: left; background: none; border: 0; color: inherit; padding: 0; }
.ex-thumb { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #1b1c1e; }
.ex-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s, transform .4s var(--ease); }
.ex-tile:hover img { opacity: 1; transform: scale(1.03); }
.ex-play { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.92); color: #0b0c0d; display: grid; place-items: center; }
.ex-play .icon { width: 22px; height: 22px; margin-left: 3px; }
.ex-done { position: absolute; right: 10px; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: #1f9d55; color: #fff; display: grid; place-items: center; }
.ex-done .icon { width: 16px; height: 16px; stroke-width: 2.8; }
.ex-name { font-weight: 600; font-size: 17px; }
.ex-tile small { color: rgba(255,255,255,.5); }
.ex-stage { position: fixed; inset: 0; z-index: 3; background: #000; display: grid; place-items: center; }
.ex-stage-in { width: min(100%, 1400px); display: grid; gap: 12px; padding: 12px; position: relative; }
.ex-stage-in .icon-btn { position: absolute; right: 18px; top: 18px; z-index: 2; color: #fff; background: rgba(0,0,0,.5); }
.ex-player { aspect-ratio: 16/9; max-height: 86vh; display: grid; place-items: center; }
.ex-player video { width: 100%; height: 100%; object-fit: contain; }
.ex-stage-in h2 { font-size: 18px; color: rgba(255,255,255,.8); padding: 0 4px; }

/* Experiences verwalten */
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.room-card { display: grid; gap: 8px; text-align: left; align-content: start; padding: 22px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, transform .2s var(--ease); }
.room-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.room-card h3 { font-size: 21px; letter-spacing: -.02em; }
.room-card .hint { margin: 0; }
.room-card .progress.slim { margin-right: 0; }
.room-type { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.room-card.expert .room-type { color: var(--ink); }
.room-card.customer .room-type { color: #b7791f; }
.re-back { margin-bottom: 10px; display: inline-flex; align-items: center; gap: 4px; }
.re-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.re-head .lib-title { font-size: clamp(30px, 4vw, 48px); margin-top: 6px; }
.switch-row { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.re-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.re-side { display: grid; gap: 16px; }
.re-side > .btn-danger { justify-self: start; }
.re-items { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.re-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); }
.re-item.dragging { opacity: .5; border-style: dashed; }
.re-grip { cursor: grab; color: var(--muted-2); display: grid; }
.re-n { width: 24px; text-align: center; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.re-thumb { width: 88px; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--surface-3); flex: none; display: grid; place-items: center; color: var(--muted-2); }
.re-thumb img { width: 100%; height: 100%; object-fit: cover; }
.re-title { flex: 1; min-width: 0; display: grid; }
.re-title b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.re-title small { color: var(--muted); }
.re-item .icon-btn { width: 34px; height: 34px; }
.re-empty { padding: 18px; border: 1px dashed var(--line-2); border-radius: 16px; }
.re-people { list-style: none; margin: 0 0 12px; padding: 0; display: grid; }
.re-people li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.re-people .check { align-items: flex-start; }
.re-people small { display: block; color: var(--muted); font-size: 13px; }
.re-pct { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; color: var(--teal); font-variant-numeric: tabular-nums; }
.re-pct.ok { color: #1f9d55; }
.re-pct .icon { width: 15px; height: 15px; stroke-width: 2.6; }
.qr-box { width: 170px; background: #fff; border-radius: 14px; padding: 8px; border: 1px solid var(--line); }
.qr-box svg { width: 100%; height: auto; display: block; }
.fb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 420px; overflow-y: auto; }
.fb-list li { border-top: 1px solid var(--line); padding-top: 10px; }
.fb-list p { margin: 4px 0; }
.stars { color: #f5a623; letter-spacing: 2px; }
.type-pick { display: grid; gap: 10px; }
.type-opt { position: relative; }
.type-opt input { position: absolute; opacity: 0; }
.type-opt span { display: grid; grid-template-columns: 40px 1fr; gap: 2px 12px; padding: 14px 16px; border-radius: 18px; border: 1.5px solid var(--line-2); cursor: pointer; }
.type-opt span .icon { grid-row: span 2; width: 26px; height: 26px; color: var(--teal); align-self: center; }
.type-opt span small { color: var(--muted); }
.type-opt input:checked + span { border-color: var(--teal); background: var(--teal-tint); }
@media (max-width: 1000px) { .re-grid { grid-template-columns: 1fr; } }

/* Auswahl aus der Mediathek */
.dialog.dialog-wide { width: min(1100px, 100%); }
.picker { display: grid; gap: 14px; }
.picker-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.search.sm { flex: 1; min-width: 200px; max-width: none; }
.picker-tabs { margin: 0; }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.pick { display: grid; gap: 6px; text-align: left; background: none; border: 0; padding: 0; }
.pick b { font-weight: 600; font-size: 14px; line-height: 1.3; }
.pick small { color: var(--muted); font-size: 12.5px; }
.pick-thumb { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: var(--surface-3); display: grid; place-items: center; outline: 3px solid transparent; transition: outline-color .15s; }
.pick-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pick-thumb em { position: absolute; inset: auto 6px 6px auto; font-style: normal; font-size: 11px; background: rgba(0,0,0,.7); color: #fff; padding: 2px 8px; border-radius: 999px; }
.pick-check { position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.9); border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; }
.pick.on .pick-thumb { outline-color: var(--teal); }
.pick.on .pick-check { background: var(--teal); border-color: var(--teal); color: #fff; }
.pick:disabled { opacity: .45; cursor: default; }
.dialog-foot .picker-count { margin-right: auto; }

/* Team */
.team-list { display: grid; gap: 12px; }
.team-row { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: 8px 24px; position: relative; padding-right: 60px; }
.team-who { display: grid; gap: 2px; align-content: start; justify-items: start; }
.team-who small { color: var(--muted); font-size: 13px; }
.team-row > :not(.team-who):not(.team-remove) { grid-column: 2; }
.team-block { display: grid; gap: 8px; justify-items: start; }
.team-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.team-remove { position: absolute; right: 14px; top: 14px; }
.choice span .icon { width: 14px; height: 14px; margin-right: 6px; }
@media (max-width: 760px) { .team-row { grid-template-columns: 1fr; } .team-row > :not(.team-who):not(.team-remove) { grid-column: 1; } }

/* Suche */
.ai-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; font-weight: 600; font-size: 14px; }
.ai-note > .icon { color: var(--teal); }
.ai-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--teal-tint); color: var(--teal-d); padding: 4px 10px; border-radius: 999px; font-size: 13px; }
.ai-chip .icon { width: 14px; height: 14px; }
.ai-note small { font-weight: 400; }

/* Personen / Gesichter */
.face-crop { display: inline-grid; place-items: center; border-radius: 50%; background: var(--surface-3) no-repeat; color: var(--muted-2); flex: none; box-shadow: inset 0 0 0 1px var(--line); }
.person-grid, .face-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 18px; margin-bottom: 36px; }
.person { display: grid; justify-items: center; gap: 6px; background: none; border: 0; padding: 8px; border-radius: 18px; text-align: center; }
.person:hover { background: var(--surface); }
.person small { color: var(--muted); font-size: 13px; }
.face-q { display: grid; justify-items: center; gap: 8px; text-align: center; }
.face-q .link-btn { font-size: 12.5px; font-weight: 500; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.input-sm { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 12px; }
.scan-card { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.scan-card > .icon { width: 34px; height: 34px; color: var(--teal); }
.scan-card div { flex: 1; display: grid; }
.face-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.face-list li { display: flex; align-items: center; gap: 10px; }
.face-list .input { flex: 1; }
.face-box { position: absolute; border: 2px solid rgba(255,255,255,.85); border-radius: 8px; box-shadow: 0 0 0 1px rgba(0,0,0,.35); pointer-events: none; }
.face-box em { position: absolute; left: -2px; top: 100%; margin-top: 4px; font-style: normal; font-size: 12px; font-weight: 600; background: rgba(0,0,0,.7); color: #fff; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.face-box:not(.named) { border-style: dashed; }
.img-wrap { position: relative; }
.vimeo-state { display: flex; align-items: center; gap: 6px; margin: 0; }
.vimeo-state .icon { width: 14px; height: 14px; color: var(--teal); }
html[data-theme="dark"] .learn-type { background: rgba(0,0,0,.7); color: #fff; }
html[data-theme="dark"] .qr-box { border-color: transparent; }
.section-h small { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 13px; margin-left: 6px; }
.adm-operator { border-color: rgba(2,138,152,.45); box-shadow: 0 18px 40px -32px rgba(2,138,152,.7); }
.adm-operator h2 { margin-top: 6px !important; }
.adm-admin-table th:not(:first-child), .adm-admin-table td:not(:first-child) { width: 86px; font-size: 11px; }
.adm-pa td { background: var(--teal-tint); }
.adm-pa td:first-child { border-radius: 10px 0 0 10px; } .adm-pa td:last-child { border-radius: 0 10px 10px 0; text-align: left !important; }
.adm-company-head .mod-chip { margin-bottom: 2px; }
.perm-col { display: grid; gap: 10px; margin: 6px 0; }
.team-pa { background: var(--teal-tint); border-color: transparent; }
.adm-user-act { display: flex; align-items: center; gap: 4px; flex: none; }
.textarea.emails { min-height: 84px; }

/* ================= Mediathek-Kopf, Startseite, Freigabe-Korb ================= */
.lib-main-head { margin-bottom: 18px; display: grid; gap: 10px; }
.lib-title-row { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); flex-wrap: wrap; }
.lib-title-row .lib-title { margin: 0; }
.search.search-main { flex: 1 1 320px; max-width: 640px; justify-self: start; }
.search.search-main input { height: 56px; font-size: 17px; background: var(--surface); border: 1px solid var(--line-2); padding-left: 48px; box-shadow: 0 10px 30px -24px rgba(0,0,0,.35); }
.search.search-main input:focus { border-color: var(--teal); }
.search.search-main .icon { left: 18px; }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 16.5px; border-radius: 999px; box-shadow: 0 14px 30px -14px rgba(2,138,152,.75); }
.lib-sub-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.lib-sub-row .lib-sub { margin: 0; }
.lib-links { display: flex; gap: 6px; flex-wrap: wrap; }
.lib-link { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 13px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.lib-link:hover { border-color: var(--teal); color: var(--teal); }
.lib-link .icon { width: 15px; height: 15px; }
.lib-link .nav-badge { position: static; margin-left: 2px; }
.lib-filter-row { margin-bottom: 8px; }
@media (max-width: 700px) { .lib-title-row .btn-lg { width: 100%; justify-content: center; } }

.chip-basket { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 6px 16px -8px rgba(0,0,0,.5); opacity: 0; transform: scale(.85); transition: opacity .18s, transform .18s; cursor: pointer; z-index: 2; }
.chip-basket .icon { width: 16px; height: 16px; }
.card:hover .chip-basket, .card:focus-visible .chip-basket, .chip-basket.on { opacity: 1; transform: none; }
.chip-basket.on { background: var(--teal); color: #fff; }
.chip-basket:hover { background: var(--teal); color: #fff; }
.card.selectable .chip-basket { display: none; }
@media (hover: none) { .chip-basket { opacity: 1; transform: none; } }
.card .chip-lock { right: 52px; }
.btn.in-basket { background: var(--teal-tint); border-color: var(--teal); color: var(--teal-d); }
.basket-fab { position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 40; display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 12px 0 20px; border-radius: 999px; border: 0; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 15.5px;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.6); cursor: pointer; }
.basket-fab b { min-width: 32px; height: 32px; border-radius: 999px; background: var(--teal); color: #fff; display: grid; place-items: center; padding: 0 8px; }
.basket-fab.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.08); } }
.selbar ~ .basket-fab { bottom: 96px; }
.basket-list { display: grid; gap: 8px; max-height: 55vh; overflow-y: auto; }
.basket-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); }

.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; margin-bottom: 26px; }
.quick-btn { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; gap: 2px 14px; align-items: center; text-align: left;
  padding: 18px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.quick-btn:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: 0 18px 36px -28px rgba(2,138,152,.7); }
.quick-btn > span { grid-row: span 2; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--teal-tint); color: var(--teal); }
.quick-btn > span .icon { width: 24px; height: 24px; }
.quick-btn b { font-size: 17px; }
.quick-btn small { color: var(--muted); font-size: 13.5px; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; align-items: start; }
.home-mine { grid-column: 1 / -1; }
.home-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.home-card-head .section-h { display: flex; align-items: center; gap: 8px; margin: 0; }
.home-card-head .link-btn { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.home-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.home-list li { border-top: 1px solid var(--line); }
.home-list li > .who, .home-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; }
.home-list .who { display: grid !important; padding: 0 !important; min-width: 0; }
.home-list .who small { color: var(--muted); font-size: 13px; }
.home-list .mod-chips { margin: 0; justify-content: flex-end; }
.home-room { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: none; border: 0; padding: 0; text-align: left; }
.home-room:hover b { color: var(--teal); }
.home-room .room-type { font-size: 11.5px; }
.mod-list { display: grid; gap: 10px; }
.mod-row { display: flex; gap: 12px; align-items: center; }
.mod-row .mod-ico { width: 40px; height: 40px; border-radius: 13px; }
.mod-row .mod-ico .icon { width: 20px; height: 20px; }
.mod-row span:last-child { display: grid; }
.mod-row small { color: var(--muted); font-size: 13px; }
.mod-row.off .mod-ico { background: var(--surface-3); color: var(--muted-2); }
.mod-row.off b { color: var(--muted); }
.mod-stat { font-size: 14px; font-weight: 600; color: var(--ink); min-height: 1em; }
.home-admin { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; padding: 14px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.home-admin .hint { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; font-weight: 600; }
.home-learn.first { margin: 0 0 32px; }
.home-learn .section-h { display: flex; align-items: center; gap: 8px; }

/* ================= QR-Seiten-Editor (Service-Experience) ================= */
.svc-main { display: grid; gap: 16px; }
.svc-form { display: grid; gap: 12px; }
.form-row { display: flex; gap: 10px; align-items: flex-start; }
.form-row > .field, .form-row > .input { flex: 1; min-width: 0; }
.svc-images { display: grid; gap: 14px; margin-bottom: 14px; }
.svc-img { display: flex; gap: 14px; align-items: center; }
.svc-img > div:last-child { display: grid; gap: 4px; }
.svc-img-prev { width: 84px; height: 84px; flex: none; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; color: var(--muted-2); }
.svc-img-prev img { width: 100%; height: 100%; object-fit: contain; }
.svc-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-sw { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface); background: var(--c); box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; position: relative; }
.svc-sw.on { box-shadow: 0 0 0 2px var(--ink); }
.svc-sw-custom { background: conic-gradient(#e11d48, #f59e0b, #22c55e, #06b6d4, #6366f1, #e11d48); overflow: hidden; }
.svc-sw-custom.on { background: var(--c); }
.svc-sw-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; gap: 2px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; }
.seg input:checked + span { background: var(--ink); color: var(--bg); }
.svc-topics, .svc-faqs { display: grid; gap: 10px; margin-bottom: 12px; }
.svc-row { display: grid; gap: 8px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); }
.svc-vids { max-height: 150px; overflow-y: auto; }
.svc-docs { display: grid; gap: 8px; margin-bottom: 12px; }
.svc-doc { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); flex-wrap: wrap; }
.svc-doc-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--teal-tint); color: var(--teal); display: grid; place-items: center; flex: none; }
.svc-doc-t { flex: 1; min-width: 160px; display: grid; }
.svc-doc-t small { color: var(--muted); font-size: 13px; }
.svc-doc-act { display: flex; align-items: center; gap: 4px; }
.doc-st { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.doc-st .icon { width: 14px; height: 14px; }
.doc-st.proc { background: var(--warn-tint); color: #8a5a00; }
.doc-st.ok { background: #e6f6ec; color: #1f7a45; }
.doc-st.err { background: #fdecec; color: #b42318; }
.spinner.sm { width: 14px; height: 14px; border-width: 2px; }
.svc-save { position: fixed; left: 50%; bottom: 24px; z-index: 45; transform: translate(-50%, 140%); display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 20px;
  border-radius: 999px; background: var(--ink); color: var(--bg); box-shadow: 0 20px 40px -18px rgba(0,0,0,.6); transition: transform .3s var(--ease); font-weight: 600; }
.svc-save.show { transform: translate(-50%, 0); }
.svc .switch-row { display: flex; gap: 10px; margin: 6px 0; font-weight: 500; }
html[data-theme="dark"] .doc-st.ok { background: #12301f; color: #7ee2a8; }
html[data-theme="dark"] .doc-st.err { background: #3b1414; color: #fca5a5; }
html[data-theme="dark"] .doc-st.proc { color: #f5c96b; }
.ai-also { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 400; color: var(--muted, #667); }
.ai-rel { border: 1px dashed currentColor; background: transparent; cursor: pointer; font: inherit; font-size: 13px; }
.ai-rel:hover { background: var(--teal-tint); }
.tab-new { display: flex; gap: 8px; margin-top: 8px; }
.tab-new .input { flex: 1; min-width: 0; }

/* ================================================================== Lernbereich (Aufgaben · Wissen · Fortschritt · Nachweise) */
.lw { max-width: 1240px; margin: 0 auto; padding: 0 0 60px; display: flex; flex-direction: column; gap: 22px; }
.lw-narrow { max-width: 880px; }
.lw-head { display: flex; flex-direction: column; gap: 6px; }
.lw-head .eyebrow { margin: 0; }
.lw-h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 650; }
.lw-sub { margin: 0; color: var(--muted); font-size: 16.5px; }
.lw-sub b { color: var(--ink); font-weight: 600; }
.lw-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.lw-label { margin: 0 0 12px; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.lw-label svg { width: 16px; height: 16px; }
.lw-kicker { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--teal); }
.lw-kicker.ok { color: #1a7f4b; }
.lw-kicker svg { width: 15px; height: 15px; }
.lw-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-2); background: var(--surface); }
.lw-tag.soft { border-color: transparent; background: var(--surface-2); color: var(--muted); }
.lw-chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); letter-spacing: 0; text-transform: none; }
.lw-chip svg { width: 13px; height: 13px; }
.lw-chip.done { background: #e6f5ec; color: #1a7f4b; }
.lw-chip.late { background: #fdecea; color: var(--danger); }
.lw-chip.busy { background: var(--teal-tint); color: var(--teal-d); }
.late { color: var(--danger) !important; }
.lw-text { margin: 0; color: var(--ink-2); line-height: 1.6; }

/* Nächster Schritt */
.lw-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 22px; }
.lw-hero-media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #0b4f56, #12343a); }
.lw-hero-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.lw-hero-media:hover img { transform: scale(1.03); }
.lw-hero-ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.5); }
.lw-hero-ph svg { width: 64px; height: 64px; }
.lw-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--teal-d); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.lw-play svg { width: 26px; height: 26px; margin-left: 3px; }
a:hover > .lw-play, a:hover .lw-play { transform: scale(1.06); }
.lw-dur { position: absolute; right: 12px; bottom: 12px; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lw-hero-body { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.lw-hero-body h2 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 650; }
.lw-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 14px; }
.lw-meta span { display: inline-flex; align-items: center; gap: 6px; }
.lw-meta svg { width: 16px; height: 16px; }
.lw-next { margin: 0; font-size: 14px; color: var(--muted); }
.lw-next b { color: var(--ink); font-weight: 600; }
.lw-go { min-height: 48px; padding: 0 22px; }
.lw-alldone { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.lw-alldone > svg { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: #e6f5ec; color: #1a7f4b; }
.lw-alldone div { flex: 1; min-width: 220px; }
.lw-alldone h2 { margin: 0 0 4px; font-size: 22px; }
.lw-alldone p { margin: 0; color: var(--muted); }

.lw-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.lw-main, .lw-side { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.lw-side { position: sticky; top: 90px; }

/* Lernpfad */
.lw-path { padding: 0; overflow: hidden; }
.lw-path-head { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.lw-path-head h3 { margin: 0; font-size: 17px; }
.lw-path-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.lw-ring { position: relative; display: inline-grid; place-items: center; flex: none; }
.lw-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.lw-ring circle { fill: none; stroke-width: 5; }
.lw-ring .bg { stroke: var(--surface-3); }
.lw-ring .fg { stroke: var(--teal); stroke-linecap: round; transition: stroke-dashoffset .8s var(--ease); }
.lw-ring b { position: relative; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lw-tasks { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.lw-task { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; color: inherit; text-decoration: none; transition: background .15s; }
.lw-task:hover { background: var(--surface-2); }
.lw-task.current { background: var(--teal-tint); }
.lw-tick { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.lw-tick svg { width: 14px; height: 14px; }
.done > .lw-tick, .lw-task.done .lw-tick { border-color: #1a7f4b; color: #1a7f4b; }
.lw-task-t, .lw-row-t, .lw-step-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lw-task-t b, .lw-row-t b, .lw-step-t b { font-weight: 600; font-size: 15px; }
.lw-task-t small, .lw-row-t small, .lw-step-t small { color: var(--muted); font-size: 13px; }

.lw-block { display: flex; flex-direction: column; gap: 12px; }
.lw-block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.lw-block-head h2 { margin: 0; font-size: 20px; letter-spacing: -0.015em; }
.lw-seg { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.lw-seg button { border: 0; background: none; border-radius: 9px; min-height: 34px; padding: 0 12px; font: 600 13.5px var(--font); color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.lw-seg button small { color: var(--muted); font-weight: 600; }
.lw-seg button[aria-selected="true"] { background: var(--teal); color: #fff; }
.lw-seg button[aria-selected="true"] small { color: rgba(255,255,255,.75); }
.lw-list { padding: 6px; display: flex; flex-direction: column; }
.lw-row { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; color: inherit; text-decoration: none; }
a.lw-row:hover { background: var(--surface-2); }
.lw-row + .lw-row { border-top: 1px solid var(--line); }
.lw-row.done > svg { width: 20px; height: 20px; color: #1a7f4b; flex: none; }
.lw-row-ico { flex: none; width: 52px; height: 40px; border-radius: 9px; overflow: hidden; display: grid; place-items: center; background: var(--teal-tint); color: var(--teal-d); }
.lw-row-ico img { width: 100%; height: 100%; object-fit: cover; }
.lw-row-ico.expert { background: #1d2224; color: #cde8ea; }
.lw-row-ico svg { width: 20px; height: 20px; }
.lw-open { display: inline-flex; align-items: center; gap: 4px; color: var(--teal-d); font-weight: 600; font-size: 14px; }
.lw-open svg { width: 15px; height: 15px; }
.lw-empty { margin: 0; padding: 18px; color: var(--muted); text-align: center; }
.lw-bar { display: flex; align-items: center; gap: 10px; width: min(220px, 40%); }
.lw-bar .progress { flex: 1; }
.lw-bar small { width: 42px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Ansprechperson & Tipps */
.lw-person { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.lw-person b { display: block; font-size: 16px; }
.lw-person small { color: var(--muted); font-size: 13px; }
.lw-avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #e3ecf3; color: #2d4a62; font-weight: 700; }
.lw-mail { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; text-decoration: none; margin-bottom: 14px; word-break: break-all; }
.lw-mail svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.lw-mail:hover { color: var(--teal-d); }
.lw-ask { width: 100%; justify-content: center; }
.lw-tip p:last-child { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.lw-link { display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.lw-link > svg:first-child { width: 22px; height: 22px; color: var(--teal); }
.lw-link span { flex: 1; display: flex; flex-direction: column; }
.lw-link small { color: var(--muted); }
.lw-link:hover { border-color: var(--line-2); }

/* Wissen nachschlagen */
.lw-search { position: relative; display: block; max-width: 560px; }
.lw-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--muted); }
.lw-search .input { padding-left: 42px; min-height: 50px; border-radius: 14px; }
.lw-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px 18px; margin-bottom: 18px; }
.lw-vcard { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; min-width: 0; }
.lw-vthumb { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #0b4f56, #12343a); margin-bottom: 6px; }
.lw-vthumb img { width: 100%; height: 100%; object-fit: cover; }
.lw-vthumb .lw-play { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
.lw-vthumb .lw-play svg { width: 20px; height: 20px; }
.lw-seen { position: absolute; left: 10px; top: 10px; width: 26px; height: 26px; border-radius: 50%; background: #1a7f4b; color: #fff; display: grid; place-items: center; }
.lw-seen svg { width: 14px; height: 14px; }
.lw-vcard b { font-size: 16px; font-weight: 600; }
.lw-vcard small { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Nachweise */
.lw-cert header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.lw-cert h2 { margin: 0; font-size: 21px; letter-spacing: -0.015em; }
.lw-cert .lw-label { margin-bottom: 6px; }
.lw-cert-box { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.lw-cert-box p { margin: 0; }
.lw-cert-box small { color: var(--muted); }
.lw-cert-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.lw-foot { margin: 0; color: var(--muted); font-size: 13px; max-width: 70ch; }

/* Lernseite (Onboarding-Room) */
.room-page.onboarding { background: var(--bg); }
.lw-lesson { width: 100%; max-width: 1320px; margin: 0 auto; padding: 18px var(--pad) 70px; display: flex; flex-direction: column; gap: 18px; }
.lw-crumbs { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; min-height: 40px; }
.lw-crumb { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 8px 6px 0; font: inherit; color: var(--muted); cursor: pointer; }
.lw-crumb svg { width: 16px; height: 16px; }
.lw-crumb:hover { color: var(--ink); }
.lw-crumb-cur { color: var(--ink); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lw-lhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.lw-lhead h1 { margin: 8px 0 0; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; line-height: 1.1; font-weight: 650; }
.lw-due { margin: 8px 0 0; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.lw-due svg { width: 16px; height: 16px; }
.lw-mine { width: min(260px, 100%); display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 13.5px; color: var(--muted); }
.lw-mine b { color: var(--ink); font-variant-numeric: tabular-nums; }
.lw-mine .progress { grid-column: 1 / -1; }
.lw-lgrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.lw-lmain, .lw-lside { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.lw-player { border-radius: 16px; overflow: hidden; background: #0d1213; aspect-ratio: 16 / 9; box-shadow: 0 30px 60px -40px rgba(0,0,0,.6); }
.lw-player video, .lw-player .vimeo-wrap, .lw-player iframe { width: 100%; height: 100%; display: block; border: 0; }
.lw-player .vimeo-wrap { position: relative; padding: 0; }
.lw-player .no-preview { height: 100%; display: grid; place-items: center; align-content: center; color: rgba(255,255,255,.6); text-align: center; }
.lw-docstage { height: 100%; display: flex; align-items: center; justify-content: center; gap: 28px; padding: 28px; background: linear-gradient(135deg, #f1f5f5, #e4eded); color: var(--ink); }
.lw-docstage img { max-height: 85%; max-width: 40%; border-radius: 6px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.4); background: #fff; }
.lw-docstage div { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; max-width: 320px; }
.lw-docstage b { font-size: 20px; }
.lw-docstage p { margin: 0; color: var(--muted); }
.lw-imgstage { height: 100%; display: grid; place-items: center; background: #0d1213; }
.lw-imgstage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lw-now { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; }
.lw-now b { display: block; font-size: 16px; }
.lw-now small { color: var(--muted); font-size: 13.5px; }
.lw-saved { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.lw-saved svg { width: 14px; height: 14px; }
.lw-about { display: flex; flex-direction: column; gap: 12px; }
.lw-about .lw-label { margin: 0; }
.lw-about .hint { margin: 0; }
.lw-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.lw-finish { display: flex; gap: 16px; align-items: flex-start; }
.lw-finish > svg { flex: none; width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: #e6f5ec; color: #1a7f4b; }
.lw-finish h3 { margin: 0 0 4px; font-size: 22px; }
.lw-finish p { margin: 0; color: var(--ink-2); }
.lw-steps { padding: 0; overflow: hidden; }
.lw-steps header { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.lw-steps h3 { margin: 0; font-size: 17px; }
.lw-steps header small { color: var(--muted); }
.lw-steps ol { list-style: none; margin: 0; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.lw-steps button { width: 100%; display: flex; align-items: flex-start; gap: 12px; padding: 12px; border: 0; background: none; border-radius: 12px; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.lw-steps button:hover { background: var(--surface-2); }
.lw-steps button.active { background: var(--teal-tint); }
.lw-steps button.locked { cursor: not-allowed; }
.lw-steps button.locked .lw-step-t b { color: var(--muted); font-weight: 500; }
.lw-steps .lw-tick { margin-top: 1px; }
.lw-steps button.active .lw-tick { border-color: var(--teal); color: var(--teal-d); }
.lw-steps button.locked .lw-tick svg { width: 12px; height: 12px; }
.lw-docs { display: flex; flex-direction: column; gap: 8px; }
.lw-docs .lw-label { margin-bottom: 4px; }
.lw-doc { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.lw-doc:hover { border-color: var(--line-2); }
.lw-doc span:last-child { display: flex; flex-direction: column; min-width: 0; }
.lw-doc small { color: var(--muted); font-size: 13px; }
.lw-pdf { flex: none; width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; background: #fdecea; color: var(--danger); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.lw-pdf.big { width: 120px; height: 150px; font-size: 22px; border-radius: 10px; }

@media (max-width: 1080px) {
  .lw-cols, .lw-lgrid { grid-template-columns: 1fr; }
  .lw-side { position: static; }
}
@media (max-width: 760px) {
  .lw-hero { grid-template-columns: 1fr; gap: 18px; padding: 14px; }
  .lw-hero-body { padding: 0 6px 6px; }
  .lw-task .lw-chip, .lw-row .lw-chip { display: none; }
  .lw-row .hint { display: none; }
  .lw-lesson { padding-top: 10px; }
  .lw-player { border-radius: 12px; margin: 0 calc(var(--pad) * -1); border-radius: 0; }
  .lw-docstage img { display: none; }
}
html[data-theme="dark"] .lw-chip.done, html[data-theme="dark"] .lw-alldone > svg, html[data-theme="dark"] .lw-finish > svg { background: rgba(26,127,75,.18); color: #59c98d; }
html[data-theme="dark"] .lw-chip.late { background: rgba(196,50,31,.18); color: #f08b7d; }
html[data-theme="dark"] .lw-avatar { background: #2a3640; color: #cfe0ee; }
html[data-theme="dark"] .lw-docstage { background: linear-gradient(135deg, #1d2426, #151b1c); }
@media print { .topbar, .lw-cert-foot { display: none !important; } }

/* ================================================================== Unternehmensansicht Academy */
.dialog.dialog-mid { width: min(640px, 100%); }
.btn-danger-text { color: var(--danger); }
.lw-head-row { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.lw-head-row > div:first-child { display: flex; flex-direction: column; gap: 6px; min-width: 0; max-width: 760px; }
.lw-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lw-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.lw-kpis.small { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.lw-kpi { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 18px; text-align: left; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); font: inherit; color: inherit; overflow: hidden; }
button.lw-kpi { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
button.lw-kpi:hover { border-color: var(--line-2); }
.lw-kpi::before { content: ""; position: absolute; left: 18px; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--muted-2); }
.lw-kpi.late::before { background: var(--danger); } .lw-kpi.soon::before { background: #c2933b; } .lw-kpi.busy::before { background: var(--teal); }
.lw-kpi.done::before { background: #1a7f4b; } .lw-kpi.open::before { background: #6b7c93; }
.lw-kpi[aria-pressed="true"] { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.lw-kpi b { font-size: 32px; line-height: 1.1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.lw-kpi.late b { color: var(--danger); }
.lw-kpi span { font-weight: 600; font-size: 14.5px; }
.lw-kpi small { color: var(--muted); font-size: 12.5px; }
.lw-paths { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.lw-pathcard { display: flex; flex-direction: column; gap: 10px; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .15s, transform .2s var(--ease), box-shadow .2s; }
.lw-pathcard:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 18px 40px -28px rgba(0,0,0,.35); }
.lw-pc-top { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.lw-tag.live { border-color: transparent; background: #e6f5ec; color: #1a7f4b; }
.lw-tag svg { width: 13px; height: 13px; margin-right: 4px; }
.lw-pc-title { font-size: 19px; letter-spacing: -0.015em; }
.lw-pc-desc { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lw-pathcard .lw-meta { font-size: 13px; gap: 4px 14px; }
.lw-pathcard .lw-meta svg { width: 14px; height: 14px; }
.lw-pc-bar { display: grid; grid-template-columns: 1fr auto; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.lw-pc-bar b { color: var(--ink); font-variant-numeric: tabular-nums; }
.lw-pc-bar .progress { grid-column: 1 / -1; }
.lw-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.lw-tabs button { border: 0; background: none; padding: 14px 14px 12px; font: 600 14.5px var(--font); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.lw-tabs button small { background: var(--surface-2); color: var(--muted); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.lw-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--teal); }
.lw-tabs.big { margin-top: -6px; }
.lw-action { padding: 0 10px 6px; }
.lw-action .lw-tabs { margin: 0 -10px; padding: 0 10px; }
.lw-people { list-style: none; margin: 0; padding: 4px 0; }
.lw-people li { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.lw-people li + li { border-top: 1px solid var(--line); }
.lw-person-row { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px; border: 0; background: none; border-radius: 12px; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.lw-person-row:hover { background: var(--surface-2); }
.lw-when { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.lw-list-foot { margin: 0; padding: 10px 10px 6px; border-top: 1px solid var(--line); }
.lw-avatar.sm { width: 36px; height: 36px; font-size: 12.5px; background: hsl(var(--h, 190) 45% 92%); color: hsl(var(--h, 190) 35% 30%); }
html[data-theme="dark"] .lw-avatar.sm { background: hsl(var(--h, 190) 25% 22%); color: hsl(var(--h, 190) 45% 82%); }
.lw-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.lw-feed li { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.lw-feed li > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.lw-feed small { color: var(--muted); font-size: 12.5px; }
.lw-table-card { padding: 0; overflow: hidden; }
.lw-table-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.lw-search.sm { flex: 1; min-width: 200px; max-width: 360px; }
.lw-search.sm .input { min-height: 40px; border-radius: 10px; }
.lw-table-wrap { overflow-x: auto; }
.lw-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lw-table th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.lw-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.lw-table tbody tr { cursor: pointer; }
.lw-table tbody tr:hover td { background: var(--surface-2); }
.lw-table tbody tr:last-child td { border-bottom: 0; }
.lw-table .lw-bar { width: 170px; }
.lw-table td > small.hint { display: block; margin-top: 3px; }
.lw-reminded { display: block; margin-top: 4px; }
.lw-who { display: flex; align-items: center; gap: 10px; }
.lw-who > span:last-child { display: flex; flex-direction: column; }
.lw-who small { color: var(--muted); font-size: 12.5px; }
.lw-funnel ol { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; }
.lw-funnel li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.lw-fn-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.lw-funnel .lw-bar { width: min(260px, 40%); }
.lw-steps-edit { margin-top: 12px; }
.lw-steps-edit .re-item .btn { flex: none; }
.lw-assign-list { list-style: none; margin: 10px 0 0; padding: 0; max-height: 50vh; overflow-y: auto; display: flex; flex-direction: column; }
.lw-assign-list li + li { border-top: 1px solid var(--line); }
.lw-assign-list .check { display: flex; align-items: center; gap: 12px; padding: 10px 4px; cursor: pointer; }
.lw-assign-list .check > span:last-child { display: flex; flex-direction: column; }
.lw-assign-list small { color: var(--muted); }
.lw-assign-bar { display: flex; justify-content: space-between; margin-top: 10px; }
.lw-pp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.lw-pp-head > div { flex: 1; display: flex; flex-direction: column; }
.lw-pp-head small { color: var(--muted); }
.lw-dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; margin: 0 0 16px; font-size: 14px; }
.lw-dl dt { color: var(--muted); }
.lw-dl dd { margin: 0; }
.lw-pp-steps { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; }
.lw-pp-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; }
.lw-pp-steps li + li { border-top: 1px solid var(--line); }
.lw-pp-steps li.done .lw-tick { border-color: #1a7f4b; color: #1a7f4b; }
/* Kapitel & Fragen – Editor */
.lw-le { display: flex; flex-direction: column; gap: 26px; }
.lw-le h3 { margin: 0; font-size: 17px; }
.lw-le .hint { margin: 2px 0 0; }
.lw-le ol { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lw-le-ch li { display: flex; gap: 8px; align-items: center; }
.lw-le-ch .input { flex: 1; }
.lw-le-ch .lw-le-t { flex: none; width: 84px; font-variant-numeric: tabular-nums; }
.lw-le-qi { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.lw-le-qh { display: flex; justify-content: space-between; align-items: center; }
.lw-le-opt { display: flex; gap: 8px; align-items: center; }
.lw-le-opt .input { flex: 1; }
.lw-le-opt input[type=radio] { width: 18px; height: 18px; accent-color: var(--teal); }
/* Kapitel & Quiz – Mitarbeitende */
.lw-chapters { padding: 0; overflow: hidden; }
.lw-chapters header { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.lw-chapters h3 { margin: 0; font-size: 17px; }
.lw-chapters header small { color: var(--muted); font-variant-numeric: tabular-nums; }
.lw-chapters ol { list-style: none; margin: 0; padding: 6px; }
.lw-chapters button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; background: none; border-radius: 10px; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.lw-chapters button:hover { background: var(--surface-2); }
.lw-chapters code { font: 500 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); width: 42px; }
.lw-chapters span { flex: 1; font-size: 14.5px; }
.lw-chapters i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; }
.lw-chapters button.active { background: var(--teal-tint); }
.lw-chapters button.active span { font-weight: 600; }
.lw-chapters button.seen i { border-color: #1a7f4b; background: #1a7f4b; box-shadow: inset 0 0 0 2.5px var(--surface); }
.lw-quiz { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 14px; background: var(--surface-2); }
.lw-quiz .lw-label { margin: 0; color: var(--teal-d); }
.lw-q { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lw-q legend { display: flex; gap: 10px; font-weight: 600; font-size: 15.5px; padding: 0; margin-bottom: 10px; }
.lw-q legend span { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 12.5px; }
.lw-q.ok legend span { background: #1a7f4b; }
.lw-opts { display: flex; flex-direction: column; gap: 8px; }
.lw-opt { text-align: left; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); font: inherit; color: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.lw-opt:hover:not(:disabled) { border-color: var(--teal); }
.lw-opt:disabled { cursor: default; }
.lw-opt.right { border-color: #1a7f4b; background: #e6f5ec; color: #145c37; font-weight: 600; }
.lw-opt.wrong { border-color: var(--danger); background: #fdecea; }
html[data-theme="dark"] .lw-opt.right { background: rgba(26,127,75,.18); color: #8fe0b4; }
html[data-theme="dark"] .lw-opt.wrong { background: rgba(196,50,31,.18); }
.lw-fb { margin: 0; font-size: 14px; color: var(--ink-2); display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.lw-fb svg { width: 15px; height: 15px; align-self: center; }
.lw-q.ok .lw-fb svg { color: #1a7f4b; }
.lw-quiz-lock { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.lw-quiz-lock svg { width: 15px; height: 15px; }
@media (max-width: 1080px) { .lw-kpis, .lw-kpis.small { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .lw-kpis, .lw-kpis.small { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lw-when { display: none; } .lw-dl { grid-template-columns: 110px 1fr; } }

.lw-bar .progress { margin: 0; }
.lw-bar small { line-height: 1; }
.lw-avatar.sm { line-height: 1; }

/* ================================================================== Lernbereich vereinfacht: Module statt Video, Lernseite ohne Seitenleiste */
.lw-top { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 22px; align-items: stretch; }
.lw-path.big { display: flex; align-items: center; gap: 30px; padding: 30px 32px; overflow: visible; }
.lw-path.big .lw-ring b { font-size: 26px; letter-spacing: -0.02em; }
.lw-path.big .lw-ring circle { stroke-width: 9; }
.lw-path-body { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; min-width: 0; }
.lw-path-body .lw-label { margin: 0; color: var(--teal-d); }
.lw-path-body h2 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.12; letter-spacing: -0.025em; }
.lw-path-body .lw-go { margin-top: 8px; }
.lw-top .lw-contact { display: flex; flex-direction: column; justify-content: center; }
.lw-modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.lw-module { display: flex; flex-direction: column; gap: 12px; color: inherit; text-decoration: none; transition: border-color .15s, transform .2s var(--ease), box-shadow .2s; }
.lw-module:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 18px 40px -28px rgba(0,0,0,.35); }
.lw-module.next { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.lw-mod-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lw-mod-n { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.lw-mod-title { font-size: 20px; line-height: 1.2; letter-spacing: -0.015em; }
.lw-mod-learn { display: flex; flex-direction: column; gap: 3px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.lw-mod-learn small { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-d); }
.lw-module .lw-meta { font-size: 13px; gap: 4px 14px; }
.lw-module .lw-meta svg { width: 14px; height: 14px; }
.lw-mod-bar { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.lw-mod-bar .progress { flex: 1; margin: 0; }
.lw-mod-bar small { color: var(--muted); font-variant-numeric: tabular-nums; }
.lw-mod-cta { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-weight: 650; color: var(--teal-d); }
.lw-mod-cta svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.lw-module:hover .lw-mod-cta svg { transform: translateX(3px); }
.lw-module.st-done .lw-mod-cta { color: var(--muted); }
.lw-done-row .btn-primary, .lw-actions .btn-primary { color: #fff; }

.lw-lesson.simple { max-width: 980px; }
.lw-lesson.simple .lw-lhead h1 { margin-top: 0; }
.lw-lesson.simple .lw-mine { width: min(240px, 100%); }
.lw-lesson.simple .lw-player { width: 100%; }
.lw-about { display: flex; flex-direction: column; gap: 16px; padding: 24px 26px; }
.lw-about-head { display: flex; align-items: center; gap: 14px; }
.lw-about-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.lw-about-head small { color: var(--muted); font-size: 13.5px; }
.lw-tick.big { width: 40px; height: 40px; font-size: 15px; border-width: 2px; }
.lw-tick.big svg { width: 20px; height: 20px; }
.lw-tick.big.on { background: #1a7f4b; border-color: #1a7f4b; color: #fff; }
.lw-chaps { display: flex; flex-wrap: wrap; gap: 8px; }
.lw-chaps button { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font: 500 13.5px var(--font); color: var(--ink-2); cursor: pointer; }
.lw-chaps button code { font: 500 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.lw-chaps button:hover { border-color: var(--teal); }
.lw-chaps button.active { border-color: var(--teal); background: var(--teal-tint); color: var(--teal-d); }
.lw-chaps button.seen code { color: #1a7f4b; }
.lw-todo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); }
.lw-todo p { flex: 1; min-width: 220px; margin: 0; display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.lw-todo p svg { width: 18px; height: 18px; color: var(--teal); flex: none; }
.lw-done-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; background: #e6f5ec; }
.lw-done-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #1a7f4b; font-size: 16px; }
.lw-done-badge svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: #1a7f4b; color: #fff; }
html[data-theme="dark"] .lw-done-row { background: rgba(26,127,75,.16); }
html[data-theme="dark"] .lw-done-badge { color: #8fe0b4; }
.lw-next { min-height: 48px; padding: 0 24px; font-size: 16px; }
.lw-skip, .lw-prev { align-self: flex-start; font-size: 13.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.lw-prev svg { width: 14px; height: 14px; }
@media (max-width: 860px) {
  .lw-top { grid-template-columns: 1fr; }
  .lw-path.big { flex-direction: column; align-items: flex-start; gap: 18px; padding: 22px; }
  .lw-done-row .lw-next { width: 100%; justify-content: center; }
}

/* Lernseite: links Video + Beschreibung, rechts alle Videos des Moduls */
.lw-lesson.simple { max-width: 1320px; }
.lw-lesson.simple .lw-lgrid { grid-template-columns: minmax(0, 1fr) 380px; }
.lw-lesson.simple .lw-lside { position: sticky; top: 18px; }
.lw-steps button.done .lw-tick { background: #1a7f4b; border-color: #1a7f4b; color: #fff; }
.lw-steps button.done .lw-step-t b { color: var(--ink); }
.lw-steps button.locked { opacity: .6; }
@media (max-width: 1080px) { .lw-lesson.simple .lw-lgrid { grid-template-columns: 1fr; } .lw-lesson.simple .lw-lside { position: static; } }

/* Abschluss-Seite eines Moduls */
.lw-donepage { flex: 1; display: grid; place-items: center; padding: 40px var(--pad); min-height: 100%; background: radial-gradient(60% 50% at 50% 30%, var(--teal-tint), transparent 70%), var(--bg); }
.lw-donepage-in { max-width: 560px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; animation: lw-pop .5s var(--ease); }
.lw-done-ico { width: 96px; height: 96px; border-radius: 50%; background: #1a7f4b; color: #fff; display: grid; place-items: center; box-shadow: 0 20px 50px -20px rgba(26,127,75,.6); margin-bottom: 8px; }
.lw-done-ico svg { width: 48px; height: 48px; }
.lw-donepage h1 { margin: 0; font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.035em; line-height: 1.05; }
.lw-donepage .lw-label { margin: 0; justify-content: center; }
.lw-donepage .lw-text { font-size: 17px; }
.lw-donepage .lw-actions { justify-content: center; margin-top: 10px; }
@keyframes lw-pop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.lw-top { grid-template-columns: 1fr; }

/* Anmeldung über einen Onboarding-Link: „Smart Onboarding“ */
.login-onb .login-visual { background: linear-gradient(160deg, #06373c 0%, #0f1112 70%); }
.login-steps { display: flex; flex-direction: column; gap: 12px; margin: 40px 0; max-width: 420px; }
.login-steps span { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.login-steps i { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #5fd3de; color: #06373c; display: grid; place-items: center; font: 700 13px var(--font); font-style: normal; }
.login-steps .icon { width: 20px; height: 20px; color: #5fd3de; }
.login-steps b { font-weight: 600; }
.login-onb-eyebrow { margin: 0 0 -10px; min-height: 1em; }
.login-onb-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--teal-tint); color: var(--teal-d); }
.login-onb-card svg { width: 22px; height: 22px; flex: none; }
.login-onb-card span { display: flex; flex-direction: column; }
.login-onb-card small { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.login-onb-card b { color: var(--ink); font-size: 16px; }

/* Sprachwahl (Mitarbeiter-Ansicht) */
.login-tools { position: absolute; top: clamp(14px, 3vw, 28px); right: clamp(14px, 3vw, 28px); display: flex; align-items: center; gap: 8px; z-index: 2; }
.login-tools .theme-float { position: static; }
.lang-pick .select { min-height: 38px; padding-right: 30px; font-weight: 600; }
.lang-top .select { min-height: 36px; max-width: 150px; }
@media (max-width: 640px) { .lang-top .select { max-width: 74px; } }
/* ---------- Unternehmensansicht Schulungen: Tabs Schulungen · Mitarbeiter · Schulung erstellen ---------- */
.ac .lw-head { margin-bottom: 4px; }
.ac .lw-sub .late { color: var(--danger); font-weight: 600; }
.ac-tabs { margin: 6px 0 20px; }
.ac-tabs .ac-tab-new { margin-left: auto; color: var(--teal-d); }
.ac-tabs .ac-tab-new svg { width: 16px; height: 16px; }
.ac-tabs .ac-tab-new[aria-selected="true"] { color: var(--ink); }
.ac-list, .ac-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ac-row { width: 100%; display: grid; grid-template-columns: 48px minmax(0, 1fr) 150px 20px; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.ac-row:hover { border-color: var(--teal); box-shadow: 0 6px 20px rgba(15, 30, 45, .06); }
.ac-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-tint); color: var(--teal-d); }
.ac-ico.expert { background: #1f2933; color: #fff; }
.ac-ico svg { width: 22px; height: 22px; }
.ac-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ac-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ac-title b { font-size: 17px; }
.ac-desc { color: var(--ink-2); font-size: 14.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ac-main .lw-meta { font-size: 13px; gap: 4px 16px; }
.ac-main .lw-meta svg { width: 14px; height: 14px; }
.ac-prog { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 6px; }
.ac-prog b { font-size: 18px; font-variant-numeric: tabular-nums; }
.ac-prog small { color: var(--muted); font-size: 12.5px; }
.ac-prog .progress { grid-column: 1 / -1; margin-top: 6px; }
.ac-prog > small.hint:only-child { grid-column: 1 / -1; }
.ac-chev { color: var(--muted); }
.ac-chev svg { width: 18px; height: 18px; }
.ac-people { gap: 0; }
.ac-people li + li { border-top: 1px solid var(--line); }
.ac-person { width: 100%; display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(160px, 1fr) 170px 150px 96px; gap: 14px; align-items: center; padding: 12px 16px; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.ac-person:hover { background: var(--surface-2); }
.ac-course { display: flex; flex-direction: column; min-width: 0; }
.ac-course b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-course small { color: var(--muted); font-size: 12.5px; }
.ac-course .late { color: var(--danger); font-weight: 600; }
.ac-person .lw-bar { width: auto; }
.ac-st { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ac-st small { font-size: 12px; }
.ac-act { justify-self: end; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; color: var(--teal-d); }
.ac-act svg { width: 15px; height: 15px; }
.ac-create { max-width: 720px; }
.ac-create .type-pick { grid-template-columns: 1fr 1fr; }
.ac-create > .hint { margin: 14px 0 0; }
.ac-remind .field { margin-top: 14px; }
.ac-remind .textarea { min-height: 200px; line-height: 1.5; }
.ac-remind .hint { display: flex; gap: 6px; align-items: flex-start; margin-top: 10px; }
.ac-remind .hint svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.ac-rm-course { display: grid; grid-template-columns: 1fr 140px; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); margin-top: 8px; }
.ac-rm-course .lw-row-t { display: flex; flex-direction: column; }
.ac-rm-course small { color: var(--muted); font-size: 12.5px; }
html[data-theme="dark"] .ac-row:hover { box-shadow: none; }
@media (max-width: 900px) {
  .ac-person { grid-template-columns: minmax(0, 1fr) 120px; }
  .ac-person .ac-course, .ac-person .ac-st { display: none; }
  .ac-person .ac-act { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 640px) {
  .ac-row { grid-template-columns: 40px minmax(0, 1fr); }
  .ac-ico { width: 40px; height: 40px; }
  .ac-prog { grid-column: 2; }
  .ac-chev { display: none; }
  .ac-create .type-pick { grid-template-columns: 1fr; }
  .ac-tabs .ac-tab-new { margin-left: 0; }
}
/* ---------- Geführte Hilfe – Editor ---------- */
.svc-guide h3 { margin: 0 0 10px; font-size: 15.5px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.svc-guide h3 .hint { font-weight: 500; font-size: 13px; }
.gd-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.gd-ok { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; color: #1a7f4b; font-size: 14px; font-weight: 600; }
.gd-ok svg { width: 16px; height: 16px; }
.gd-issues { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; }
.gd-issue { display: flex; align-items: flex-start; gap: 8px; text-align: left; border: 1px solid; border-radius: 12px; padding: 9px 12px; font: 500 13.5px var(--font); cursor: pointer; background: #fdecea; border-color: #f5c2bd; color: #9a2b22; }
.gd-issue svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.gd-issue.warn { background: #fff7e0; border-color: #f1dca0; color: #7a5a00; }
.gd-block { padding: 16px 0 4px; border-top: 1px solid var(--line); margin-top: 12px; }
.gd-topics { display: flex; flex-direction: column; gap: 8px; }
.gd-topic { display: grid; grid-template-columns: 150px 32px minmax(0, 1fr) 20px minmax(180px, 1fr) 36px 36px 36px; gap: 8px; align-items: center; }
.gd-ico-prev { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--teal-tint); color: var(--teal-d); }
.gd-ico-prev svg { width: 18px; height: 18px; }
.gd-arrow { color: var(--muted); text-align: center; font-weight: 700; }
.gd-row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gd-steps { display: flex; flex-direction: column; gap: 12px; }
.gd-step { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 16px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; border-left: 4px solid var(--teal); }
.gd-step.solution { border-left-color: #1a7f4b; }
.gd-step.gd-flash, .gd-topics.gd-flash { box-shadow: 0 0 0 3px var(--teal-tint); }
.gd-step-head { display: grid; grid-template-columns: auto minmax(0, 1fr) 36px; gap: 10px; align-items: center; }
.gd-kind { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--teal-d); white-space: nowrap; }
.gd-step.solution .gd-kind { color: #1a7f4b; }
.gd-kind svg { width: 14px; height: 14px; }
.gd-kind small { font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: 0; }
.gd-title { font-weight: 600; }
.gd-used { margin: -4px 0 0; font-size: 12.5px; }
.gd-orphan { color: #7a5a00; }
.gd-opts { display: flex; flex-direction: column; gap: 6px; }
.gd-opt { display: grid; grid-template-columns: 26px minmax(0, 1fr) 20px minmax(180px, 1fr) 36px; gap: 8px; align-items: center; }
.gd-opt-n { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.gd-vids { display: flex; flex-direction: column; gap: 6px; }
.gd-vid { display: grid; grid-template-columns: 20px minmax(0, 1fr) 96px; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.gd-vid.on { border-color: var(--teal); background: var(--teal-tint); }
.gd-vid-t { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.gd-vid-t svg { width: 15px; height: 15px; flex: none; }
.gd-time { min-height: 34px; padding: 0 8px; font-size: 13.5px; }
.gd-page { max-width: 120px; }
.gd-next { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; }
.gd-next .select { flex: 1; min-width: 220px; }
.gd-stat { margin: 0; }
.gd-target { min-width: 0; }
@media (max-width: 860px) {
  .gd-topic { display: flex; flex-wrap: wrap; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
  .gd-topic .gd-ico { flex: 1 1 120px; } .gd-topic .gd-arrow { display: none; }
  .gd-topic .input, .gd-topic .gd-target { flex: 1 1 100%; }
  .gd-opt { grid-template-columns: 26px minmax(0, 1fr) 36px; }
  .gd-opt .gd-arrow { display: none; }
  .gd-opt .gd-target { grid-column: 2; }
}
/* ---------- Smart Knowledge ---------- */
.sk-head { display: flex; align-items: center; gap: 16px; }
.sk-head .sk-logo { flex: none; border-radius: 14px; box-shadow: 0 8px 22px -10px rgba(1, 90, 99, .6); }
.sk-warn { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: #fff7e0; border: 1px solid #f1dca0; color: #7a5a00; font-size: 14px; line-height: 1.45; }
.sk-warn svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.sk-warn.small { margin: 2px 0 0; padding: 6px 10px; font-size: 12.5px; }
html[data-theme="dark"] .sk-warn { background: #3a2f12; border-color: #5b4a1c; color: #f3d98f; }
.sk-split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.sk-aside { position: sticky; top: 90px; }
@media (max-width: 960px) { .sk-split { grid-template-columns: 1fr; } .sk-aside { position: static; } }
.sk-chat-box { min-height: 420px; }
.sk-chat { display: flex; flex-direction: column; height: min(72vh, 760px); min-height: 420px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); overflow: hidden; }
.sk-spaces { display: flex; gap: 6px; padding: 12px 14px 0; overflow-x: auto; flex: none; }
.sk-spaces button { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 7px 14px; font: 600 14px var(--font); white-space: nowrap; cursor: pointer; }
.sk-spaces button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sk-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--surface-2); }
.sk-m { max-width: min(680px, 88%); padding: 12px 16px; border-radius: 18px; font-size: 15.5px; line-height: 1.55; overflow-wrap: anywhere; }
.sk-m p { margin: 0 0 6px; } .sk-m p:last-child { margin: 0; }
.sk-m ol, .sk-m ul { margin: 4px 0 6px; padding-left: 22px; } .sk-m li { margin: 3px 0; }
.sk-m.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.sk-m.me { align-self: flex-end; background: var(--teal-d); color: #fff; border-bottom-right-radius: 6px; }
.sk-m.err { align-self: stretch; max-width: none; background: #fdecea; border: 1px solid #f5c2bd; color: #9a2b22; }
.sk-src { display: flex; gap: 6px; align-items: flex-start; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.sk-src svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.sk-src a { color: var(--teal-d); }
.sk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sk-chip { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 9px 14px; font: 500 14.5px var(--font); text-align: left; cursor: pointer; }
.sk-chip:hover { border-color: var(--teal); color: var(--teal-d); }
.sk-dots { display: inline-flex; gap: 5px; padding: 4px 0; } .sk-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: skdot 1s infinite; }
.sk-dots i:nth-child(2) { animation-delay: .15s; } .sk-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes skdot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.sk-form { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); flex: none; }
.sk-input { flex: 1; resize: none; min-height: 50px; max-height: 160px; padding: 13px 16px; border: 1.5px solid var(--line-2); border-radius: 16px; font: 16px/1.4 var(--font); color: var(--ink); background: var(--bg); }
.sk-input:focus { outline: none; border-color: var(--teal); }
.sk-send { width: 50px; height: 50px; border: 0; border-radius: 16px; background: var(--teal-d); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.sk-send:disabled { opacity: .5; cursor: default; } .sk-send svg { width: 22px; height: 22px; }
.sk-reset { align-self: center; margin: 0 0 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; }
.sk-reset svg { width: 15px; height: 15px; }
.sk-empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 48px 20px; border: 1px dashed var(--line-2); border-radius: 22px; color: var(--ink-2); }
.sk-empty h2 { margin: 6px 0 0; font-size: 20px; color: var(--ink); } .sk-empty p { margin: 0; max-width: 520px; line-height: 1.5; }
.sk-empty > svg.icon { width: 34px; height: 34px; color: var(--teal-d); }
.sk-list { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.sk-list > .btn { align-self: flex-start; margin-top: 6px; }
.sk-row .ac-main .lw-meta svg { width: 14px; height: 14px; }
.sk-appcard { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 22px 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.sk-appcard p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.sk-appicon { display: grid; justify-items: center; gap: 8px; }
.sk-appicon b { font-size: 13px; }
.sk-appicon .sk-logo { border-radius: 16px; box-shadow: 0 10px 24px -10px rgba(1, 90, 99, .7); }
.sk-dl { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.sk-qr { width: 132px; height: 132px; padding: 8px; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.sk-qr svg { width: 100%; height: 100%; display: block; }
.sk-qr.big { width: 168px; height: 168px; flex: none; }
.sk-app { display: grid; gap: 18px; max-width: 860px; }
.sk-link { display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-top: 10px; }
.sk-link-l { font-weight: 600; font-size: 14px; }
.sk-link .input { font-size: 13.5px; color: var(--ink-2); }
.sk-qrrow { display: flex; gap: 18px; align-items: center; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.sk-qrrow p { margin: 4px 0 10px; }
.sk-invite { display: grid; gap: 14px; }
.sk-widgets { display: grid; gap: 18px; max-width: 860px; }
.sk-code { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; margin-bottom: 12px; }
.textarea.mono { font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.sk-test { padding: 12px 14px; border-radius: 12px; background: var(--teal-tint); font-size: 14px; line-height: 1.5; }
.sk-test b { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; color: var(--teal-d); } .sk-test b svg { width: 16px; height: 16px; }
.sk-test p { margin: 0 0 6px; }
@media (max-width: 640px) { .sk-link { grid-template-columns: 1fr auto; } .sk-link-l { grid-column: 1 / -1; } .sk-qrrow { flex-direction: column; align-items: flex-start; } .sk-code { grid-template-columns: 1fr; } }
/* App (installiert) */
.sk-app-shell { display: flex; flex-direction: column; height: 100vh; height: 100dvh; background: var(--bg); }
.sk-top { display: flex; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; border-bottom: 1px solid var(--line); background: var(--surface); flex: none; }
.sk-brand { display: inline-flex; align-items: center; gap: 10px; } .sk-brand .sk-logo { border-radius: 10px; }
.sk-top-sp { flex: 1; } .sk-company { color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.sk-app-main { flex: 1; min-height: 0; display: flex; padding: 0; }
.sk-app-main .sk-chat-box { flex: 1; display: flex; min-height: 0; }
.sk-app-main .sk-chat { flex: 1; height: auto; min-height: 0; border: 0; border-radius: 0; }
.sk-app-main .sk-msgs { padding: 18px max(16px, calc((100vw - 760px) / 2)); }
.sk-app-main .sk-form { padding: 10px max(12px, calc((100vw - 760px) / 2)) calc(10px + env(safe-area-inset-bottom)); }
.sk-app-main .sk-empty { margin: 24px 16px; flex: 1; align-content: center; }
/* Installationsseite */
.sk-install { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: linear-gradient(160deg, #e6f5f6, var(--bg) 60%); }
html[data-theme="dark"] .sk-install { background: var(--bg); }
.sk-install-card { width: min(440px, 100%); display: grid; gap: 14px; justify-items: center; text-align: center; padding: 30px 24px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 70px -40px rgba(1, 60, 66, .5); }
.sk-install-icon .sk-logo { border-radius: 22px; box-shadow: 0 16px 34px -14px rgba(1, 90, 99, .7); }
.sk-install h1 { margin: 4px 0 0; font-size: 28px; letter-spacing: -.02em; }
.sk-install .lead { margin: 0; color: var(--ink-2); font-size: 16.5px; line-height: 1.5; }
.sk-install .btn-block { width: 100%; justify-content: center; }
.sk-install-qr { width: 190px; height: 190px; padding: 10px; background: #fff; border-radius: 16px; border: 1px solid var(--line); } .sk-install-qr svg { width: 100%; height: 100%; display: block; }
.sk-steps { width: 100%; text-align: left; padding: 16px; border-radius: 18px; background: var(--surface-2); }
.sk-steps h2 { margin: 0 0 10px; font-size: 16.5px; }
.sk-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.sk-steps li { display: flex; gap: 12px; align-items: center; font-size: 16px; line-height: 1.4; }
.sk-step-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--teal-d); }
.sk-step-ic svg { width: 20px; height: 20px; } .sk-kebab { font-size: 22px; line-height: 1; }
.sk-steps .hint { margin: 12px 0 0; }
.sk-install .hint.small { font-size: 12.5px; margin: 0; }
/* Upload: Fortschritt mit Tempo/Restzeit, Abbrechen, Erneut versuchen */
.up-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.up-line .up-state { flex: 1; min-width: 200px; font-variant-numeric: tabular-nums; }
.up-line .btn svg { width: 15px; height: 15px; }
/* Vorschaubild per Regler */
.scrub { display: grid; gap: 4px; }
.scrub-row { display: flex; align-items: center; gap: 6px; }
.scrub-row .icon-btn { width: 32px; height: 32px; flex: none; }
.scrub-range { flex: 1; min-width: 0; accent-color: var(--teal); height: 28px; cursor: pointer; }
.scrub-time { font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--muted); min-width: 58px; text-align: right; }
.scrub .hint { font-size: 12px; }
.up-left { display: grid; gap: 8px; align-content: start; min-width: 0; }
.up-scrub .scrub-time { display: none; }
.up-scrub .hint { text-align: center; }
.thumb-pick { display: grid; gap: 12px; }
.thumb-stage { position: relative; background: #000; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; display: grid; place-items: center; }
.thumb-stage video { width: 100%; height: 100%; object-fit: contain; }
.thumb-stage .spinner { position: absolute; }
.up-scrub [data-step] { display: none; }
.sk-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface); flex: none; }
.sk-pick label { font-weight: 700; font-size: 14px; }
.sk-pick .select { min-width: 260px; flex: 0 1 380px; }
.sk-pick-src { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.sk-pick-src svg { width: 14px; height: 14px; }
/* Smart Knowledge: Wissensquelle (schreibgeschützt) und Wissen hochladen */
.sk-src-row { position: relative; display: flex; align-items: center; }
.sk-src-row .input { padding-left: 38px; }
.sk-src-row .input[readonly] { background: var(--surface-2); color: var(--ink-2); cursor: not-allowed; }
.sk-lock { position: absolute; left: 12px; display: inline-flex; color: var(--muted); }
.sk-lock svg { width: 16px; height: 16px; }
.input.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; }
.sk-unlock { margin-top: 6px; font-size: 13.5px; }
.sk-prov { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 0; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.4; }
.sk-prov svg { width: 15px; height: 15px; flex: none; }
.sk-prov.ok { background: #e7f6ee; color: #146c3f; }
.sk-prov.err { background: #fff7e0; color: #7a5a00; }
html[data-theme="dark"] .sk-prov.ok { background: #143525; color: #8fe0b0; }
html[data-theme="dark"] .sk-prov.err { background: #3a2f12; color: #f3d98f; }
.sk-files-body { display: grid; gap: 10px; }
.sk-drop { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1.5px dashed var(--line-2); border-radius: 14px; cursor: pointer; background: var(--surface-2); }
.sk-drop.over, .sk-drop:hover { border-color: var(--teal); background: var(--teal-tint); }
.sk-drop > svg { width: 22px; height: 22px; color: var(--teal-d); flex: none; }
.sk-drop span { display: grid; gap: 2px; } .sk-drop small { color: var(--muted); font-size: 12.5px; }
.sk-uplist { display: grid; gap: 6px; } .sk-uplist:empty { display: none; }
.sk-uprow { display: grid; grid-template-columns: minmax(0, 1fr) 120px 110px; gap: 10px; align-items: center; font-size: 13.5px; }
.sk-uprow > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-uprow small { color: var(--muted); } .sk-uprow.ok small { color: #146c3f; } .sk-uprow.err small { color: var(--danger); grid-column: 1 / -1; }
.sk-filelist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; max-height: 260px; overflow-y: auto; }
.sk-filelist li { display: grid; grid-template-columns: minmax(0, 1fr) auto 32px; gap: 10px; align-items: center; padding: 6px 8px 6px 12px; }
.sk-filelist li + li { border-top: 1px solid var(--line); }
.sk-fn { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; } .sk-fn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-fn svg { width: 15px; height: 15px; flex: none; color: var(--muted); }
.sk-filelist small { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.sk-filelist .icon-btn { width: 32px; height: 32px; }
.sk-index { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.sk-index > svg { width: 15px; height: 15px; } .sk-index span { flex: 1; } .sk-bad { color: var(--danger); }

/* ================================================================ Notion-Layout (Seitenleiste links, ruhige Flächen) */
:root { --sb-w: 292px; --sb-bg: #f7f7f5; --sb-hover: rgba(55,53,47,.08); --sb-ink: #5f5e5b; --fs: 15px; --btn-r: 8px;
  --bg: #ffffff; --surface-2: #f7f7f5; --surface-3: #efefed; --ink: #37352f; --line: rgba(55,53,47,.09); --line-2: rgba(55,53,47,.16);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; --radius: 14px; --radius-sm: 8px; }
html[data-theme="dark"] { --sb-bg: #202020; --sb-hover: rgba(255,255,255,.06); --sb-ink: #ffffff; --bg: #191919; --surface: #202020; --surface-2: #252525; --surface-3: #2f2f2f; --ink: #ffffff; --ink-2: #ffffff; }
body { font-size: var(--fs); background: var(--bg); }
.shell { display: grid; grid-template-columns: var(--sb-w) minmax(0, 1fr); min-height: 100vh; }
.shell.no-sb { display: block; }
.content { min-width: 0; display: flex; flex-direction: column; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2px; padding: 8px 8px 10px; background: var(--sb-bg);
  border-right: 1px solid var(--line); overflow-y: auto; font-size: 14px; color: var(--sb-ink); z-index: 40; }
.sb-top { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.sb-ws { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; position: relative; color: var(--ink); font-weight: 600; cursor: pointer; }
.sb-ws:hover { background: var(--sb-hover); }
.sb-ws-mark { width: 22px; height: 22px; flex: none; display: grid; }
.sb-ws-mark .brand-mark, .sb-ws-mark svg { width: 22px; height: 22px; }
.sb-ws-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-ws-select { flex: 1; min-width: 0; appearance: none; border: 0; background: none; font: inherit; color: inherit; padding: 0; cursor: pointer; text-overflow: ellipsis; outline-offset: 4px; }
.sb-ws .icon { width: 14px; height: 14px; color: var(--muted); flex: none; pointer-events: none; }
.sidebar .icon-btn { width: 28px; height: 28px; border-radius: 6px; }
.sb-close { display: none; }
.sb-item, .sb-nav .nav-link { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 30px; padding: 4px 8px; border: 0; border-radius: 6px;
  background: none; color: var(--sb-ink); font: 500 14px/1.3 var(--font); text-align: left; white-space: nowrap; }
.sb-item:hover, .sb-nav .nav-link:hover { background: var(--sb-hover); color: var(--ink); }
.sb-item .icon, .sb-nav .nav-link .icon { width: 18px; height: 18px; flex: none; opacity: .8; }
.sb-item kbd { margin-left: auto; font: 11px var(--font); color: var(--muted-2); }
.sb-nav { display: flex; flex-direction: column; gap: 1px; margin-top: 10px; }
.sb-nav::before { content: attr(aria-label); font-size: 12px; font-weight: 600; color: var(--muted-2); padding: 4px 8px 4px; }
.sb-nav .nav-link[aria-current="page"] { background: var(--sb-hover); color: var(--ink); font-weight: 600; }
.sb-nav .nav-link[data-view="settings"] { margin-top: 14px; }
.sb-nav .nav-label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.sb-nav .nav-badge { position: static; margin-left: auto; }
.sb-bottom { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.sb-brand { padding: 4px 8px; opacity: .9; }
.sb-brand .brand-mark { width: 22px; height: 22px; }
.sb-brand .brand-name { flex-direction: row; gap: 4px; align-items: baseline; }
.sb-brand .brand-name b { font-size: 13px; } .sb-brand .brand-name i { font-size: 15px; }
.sb-user { display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px 8px; border: 0; border-radius: 6px; background: none; color: var(--ink); text-align: left; }
.sb-user:hover { background: var(--sb-hover); }
.sb-user .avatar { width: 28px; height: 28px; font-size: 12px; flex: none; display: grid; place-items: center; }
.sb-user-n { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.sb-user-n b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-user-n small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-user > .icon { width: 14px; height: 14px; color: var(--muted); }
.sb-scrim { display: none; }
/* schlanke Kopfzeile */
.shell:not(.no-sb) .topbar { background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 0; }
.shell:not(.no-sb) .topbar-in { grid-template-columns: auto minmax(0, 1fr) auto !important; height: 46px !important; padding: 0 16px !important; gap: 10px; }
.sb-open { display: none; }
.crumb { font-size: 14px; color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shell:not(.no-sb) .top-actions .icon-btn { width: 30px; height: 30px; border-radius: 6px; }
.shell:not(.no-sb) .main { max-width: 1240px; width: 100%; padding: 28px clamp(18px, 5vw, 96px) 96px; }
/* ruhiger: eckigere Buttons, keine Schatten, Notion-Typo */
.btn { border-radius: var(--btn-r); min-height: 36px; padding: 0 14px; font-size: 14px; font-weight: 500; }
.btn-lg { min-height: 42px; }
.btn-primary { box-shadow: none; }
.btn:active { transform: none; }
.input, .select { border-radius: 6px; }
.nav-link { border-radius: 6px; }
.lib-title, .page-title, .lw-h1 { font-family: var(--font); font-weight: 700; letter-spacing: -.02em; }
.lib-title em, .lw-h1 em, .set-preview em { font-family: var(--font); font-style: normal; color: inherit; }
.dialog { border-radius: 12px; }
.menu { position: fixed; z-index: 90; width: 260px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 12px 32px -8px rgba(15,15,15,.25); }
.menu.menu-sb { top: auto; right: auto; }
.menu button { border-radius: 6px; padding: 7px 10px; font-size: 14px; }
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .25s var(--ease); box-shadow: 0 0 40px rgba(0,0,0,.18); }
  body.sb-open .sidebar { transform: none; }
  body.sb-open .sb-scrim { display: block; position: fixed; inset: 0; background: rgba(15,15,15,.3); z-index: 39; }
  .sb-open, .sb-close { display: inline-grid; place-items: center; }
}
/* Anrede-Abfrage */
.callname { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--sb-bg); }
.callname-card { width: min(440px, 100%); background: var(--surface); border-radius: 14px; padding: 36px 32px; box-shadow: 0 0 0 1px var(--line), 0 20px 50px -24px rgba(0,0,0,.25); display: flex; flex-direction: column; gap: 12px; }
.callname-mark .brand-mark, .callname-mark svg { width: 40px; height: 40px; }
.callname-card h1 { margin: 6px 0 0; font-size: 26px; letter-spacing: -.02em; }
.callname-card .lead { margin: 0; color: var(--muted); }
/* Schnellsuche */
.dialog.qs { width: min(620px, 100%); }
.qs-in { width: 100%; font-size: 16px; }
.qs-list { display: flex; flex-direction: column; margin-top: 10px; }
.qs-it { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; background: none; border-radius: 6px; text-align: left; color: var(--ink); }
.qs-it:hover, .qs-it:focus-visible { background: var(--sb-hover); }
.qs-it .icon { width: 18px; height: 18px; color: var(--muted); }
.qs-it kbd { margin-left: auto; color: var(--muted-2); font: 12px var(--font); }
.qs-ans { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
/* Hilfe-Suche auf dem Startbildschirm */
.help-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin: 18px 0 28px; max-width: 760px; }
.help-field { display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 44px; border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 1px var(--line-2); }
.help-field:focus-within { box-shadow: 0 0 0 2px var(--teal); }
.help-field .icon { width: 18px; height: 18px; color: var(--muted); flex: none; }
.help-field input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--ink); outline: 0; }
.help-box .btn { min-height: 44px; }
.help-out { grid-column: 1 / -1; background: var(--surface-2); border-radius: 10px; padding: 14px 16px; }
.help-a p { margin: 0 0 8px; } .help-a p:last-child { margin: 0; }
.help-src { margin: 10px 0 0; font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.help-src .icon { width: 14px; height: 14px; }
.help-sug { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.help-sug .chip { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 4px 10px; font-size: 13px; cursor: pointer; }
.help-setup { margin: 14px 0 24px; display: flex; gap: 8px; align-items: center; }
.help-setup .icon { width: 16px; height: 16px; color: var(--teal); }
.help-wait .icon { width: 16px; height: 16px; animation: spin 1.2s linear infinite; }
/* Einstellungen */
.settings { max-width: 860px; }
.page-title { font-size: 34px; margin: 0 0 4px; }
.set-sec { margin-top: 34px; }
.set-sec h2 { font-size: 15px; font-weight: 600; margin: 0 0 4px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.set-row > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.set-row small { color: var(--muted); font-size: 13px; }
.set-ctl { flex: none; display: flex; align-items: center; gap: 8px; }
.set-ctl .select { min-width: 220px; }
.set-ctl input[type=range] { width: 220px; accent-color: var(--teal); }
.sw { width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--c); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--c); }
.sw-custom input { width: 30px; height: 28px; border: 0; padding: 0; background: none; cursor: pointer; }
.set-preview { margin-top: 18px; padding: 20px; border-radius: var(--radius); background: var(--surface-2); }
.set-preview h3 { margin: 4px 0 4px; font-size: 22px; }
.set-preview .chip { background: var(--teal-tint); color: var(--teal-d); border-radius: 999px; padding: 3px 10px; font-size: 13px; }
.set-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.changelog { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.cl { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; font-size: 14px; }
.cl-d { color: var(--muted); }
.cl ul { margin: 0; padding-left: 18px; }
@media (max-width: 700px) { .set-row { flex-direction: column; align-items: stretch; } .set-ctl .select, .set-ctl input[type=range] { width: 100%; } }
/* Gesammelte Fragen */
.pg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.q-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; margin-top: 18px; }
.q-topics { display: flex; flex-direction: column; gap: 1px; position: sticky; top: 60px; align-self: start; }
.q-topic { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border: 0; background: none; border-radius: 6px; text-align: left; color: var(--ink-2); font-size: 14px; }
.q-topic:hover { background: var(--sb-hover); }
.q-topic[aria-pressed="true"] { background: var(--sb-hover); color: var(--ink); font-weight: 600; }
.q-topic small { color: var(--muted); }
.q-list { display: flex; flex-direction: column; }
.q-row { display: flex; gap: 14px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.q-main { flex: 1; min-width: 0; }
.q-text { margin: 0 0 2px; }
.q-meta { font-size: 12.5px; color: var(--muted); }
.q-meta b { font-weight: 600; color: var(--ink-2); }
.q-acts { display: flex; gap: 4px; align-items: center; flex: none; }
.q-acts .select { max-width: 170px; }
@media (max-width: 760px) { .q-grid { grid-template-columns: 1fr; } .q-topics { position: static; flex-direction: row; overflow-x: auto; } .q-row { flex-direction: column; align-items: stretch; } }
/* Veröffentlichungskalender */
.cal-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 12px; }
.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-nav h2 { margin: 0 6px; font-size: 18px; min-width: 170px; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal-wd { padding: 6px 8px; font-size: 12px; color: var(--muted); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal-day { min-height: 104px; padding: 4px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day.out { background: var(--surface-2); }
.cal-day.out .cal-n { color: var(--muted-2); }
.cal-n { font-size: 12.5px; padding: 2px 4px; align-self: flex-end; border-radius: 999px; min-width: 22px; text-align: center; }
.cal-day.today .cal-n { background: var(--danger); color: #fff; font-weight: 600; }
.cal-ev { border: 0; text-align: left; font-size: 12px; padding: 3px 6px; border-radius: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.cal-ev.plan { background: var(--teal-tint); color: var(--teal-d); }
.cal-ev.done { background: var(--surface-3); color: var(--muted); }
.cal-more { font-size: 11.5px; color: var(--muted); padding-left: 6px; }
.cal-up { margin-top: 26px; }
.cal-up h3 { font-size: 15px; margin: 0 0 8px; }
.cal-up ul { list-style: none; margin: 0; padding: 0; }
.cal-up-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 9px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; color: var(--ink); }
.cal-up-row:hover { background: var(--sb-hover); }
.cal-when { color: var(--teal-d); font-weight: 600; font-size: 13.5px; }
.cal-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cal-people li { display: flex; gap: 10px; align-items: center; }
.cal-people li span { display: flex; flex-direction: column; } .cal-people small { color: var(--muted); }
.plan .lw-assign-list { max-height: 260px; overflow-y: auto; margin-top: 6px; }
@media (max-width: 760px) { .cal-day { min-height: 64px; } .cal-ev { font-size: 0; padding: 0; height: 6px; } .cal-ev b { display: none; } .cal-up-row { grid-template-columns: 1fr; gap: 2px; } }
.shell:not(.no-sb) .topbar-in { display: flex !important; }
.shell:not(.no-sb) .crumb { flex: 1; min-width: 0; }
.shell:not(.no-sb) .lib-title { font-size: clamp(30px, 3.2vw, 40px); }
.help-src-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.help-src-form .field { flex: 1 1 260px; margin: 0; }
.help-src-form .input { font-family: ui-monospace, Menlo, monospace; }
.help-src-form .form-error, .help-src-form .help-out { flex-basis: 100%; }
.set-row code { font-size: 12.5px; background: var(--surface-3); padding: 1px 5px; border-radius: 4px; }

/* ================================================================ Startbildschirm (neu): ruhig, kompakt */
.home2 { max-width: 980px; }
.home2 .home-head { padding: 18px 0 6px; }
.home-date { margin: 0 0 6px; font-size: 13px; color: var(--muted); text-transform: capitalize; }
.home-hi { margin: 0; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; font-weight: 700; letter-spacing: -.025em; }
.home-hi span { color: var(--teal-d); }
.home2 .lib-sub { margin: 6px 0 0; }
.home2 .help-box { margin: 18px 0 8px; }
.home-sec { margin-top: 30px; }
.home-h { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.home-h-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.link-btn { border: 0; background: none; color: var(--muted); font: 500 13px var(--font); display: inline-flex; gap: 4px; align-items: center; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.link-btn:hover { background: var(--sb-hover); color: var(--ink); }
.link-btn .icon { width: 14px; height: 14px; }
.home2 .mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 0; }
.home2 .mod-tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 0; border-radius: 10px; text-align: left; border: 1px solid var(--line); background: var(--surface); box-shadow: none; transition: background .15s, border-color .15s; }
.home2 .mod-tile:hover { background: var(--surface-2); border-color: var(--line-2); transform: none; }
.home2 .mod-ico { width: 36px; height: 36px; border-radius: 8px; flex: none; display: grid; place-items: center; background: var(--teal-tint); color: var(--teal-d); margin: 0; }
.home2 .mod-ico .icon { width: 19px; height: 19px; }
.mod-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.home2 .mod-name { font: 600 14.5px/1.3 var(--font); margin: 0; letter-spacing: 0; }
.home2 .mod-stat { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; font-weight: 400; }
.home2 .mod-tile > .icon { width: 15px; height: 15px; color: var(--muted-2); flex: none; }
.home-pulse { margin-top: 18px; }
.pulse { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink-2); font: 13.5px var(--font); text-align: left; cursor: pointer; }
.pulse:hover { border-color: var(--line-2); }
.pulse b { color: var(--ink); font-weight: 600; }
.pulse-on { display: inline-flex; align-items: center; gap: 6px; color: var(--ok, #0f7b6c); font-weight: 600; }
.pulse-more { margin-left: auto; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.pulse-more .icon { width: 14px; height: 14px; }
.home-recent { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 180px); gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.rc-card { display: flex; flex-direction: column; gap: 4px; border: 0; background: none; padding: 0; text-align: left; color: var(--ink); cursor: pointer; scroll-snap-align: start; min-width: 0; }
.rc-thumb { position: relative; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--surface-3); display: grid; place-items: center; color: var(--muted); }
.rc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.rc-card:hover img { transform: scale(1.04); }
.rc-dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 4px; }
.rc-t { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-card small { font-size: 12px; color: var(--muted); }
.home2 .home-admin { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; border: 0; background: none; }
.dot-on { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2fb67c; box-shadow: 0 0 0 3px rgba(47,182,124,.18); }
.on-txt { color: #1d8f5f; font-weight: 500; }
html[data-theme="dark"] .on-txt { color: #57d39b; }

/* ================================================================ Analyse */
.an-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.period { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.period-sel { display: inline-flex; align-items: center; gap: 6px; }
.period-sel .icon { width: 16px; height: 16px; color: var(--muted); }
.period-label { font-size: 13px; color: var(--muted); }
.period-custom { display: inline-flex; gap: 6px; align-items: center; }
.input-sm, .select-sm { min-height: 32px; font-size: 13.5px; padding-top: 4px; padding-bottom: 4px; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); padding: 4px 10px; border-radius: 999px; background: var(--surface-2); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #2fb67c; animation: pulse-on 2s infinite; }
@keyframes pulse-on { 0%, 100% { box-shadow: 0 0 0 0 rgba(47,182,124,.45); } 50% { box-shadow: 0 0 0 5px rgba(47,182,124,0); } }
.an-tabs { margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.an-load { padding: 40px; display: grid; place-items: center; }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.kpi { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; border: 0; border-right: 1px solid var(--line); background: var(--surface); text-align: left; color: var(--ink); cursor: pointer; position: relative; min-width: 0; }
.kpi:last-child { border-right: 0; }
.kpi:hover { background: var(--surface-2); }
.kpi[aria-selected="true"] { background: var(--surface-2); }
.kpi[aria-selected="true"]::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--teal); }
.kpi-l { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.kpi-l .icon { width: 14px; height: 14px; }
.kpi-v { font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-d { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.kpi-d.up { color: #1d8f5f; } .kpi-d.down { color: #c4554d; }
.an-card { border: 1px solid var(--line); border-radius: 10px; padding: 16px; background: var(--surface); min-width: 0; }
.an-card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.an-card-h h3 { margin: 0; font-size: 14px; font-weight: 600; }
.an-card-h small { color: var(--muted); font-size: 12px; }
.an-chart { margin-top: 14px; }
.lc-wrap { position: relative; }
.lc { width: 100%; height: auto; display: block; overflow: visible; touch-action: pan-y; }
.lc-grid { stroke: var(--line); stroke-width: 1; }
.lc-ax { font: 11px var(--font); fill: var(--muted); }
.lc-line { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lc-area { fill: var(--teal); opacity: .09; }
.lc-cross { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 3; }
.lc-dot { fill: var(--teal); stroke: var(--surface); stroke-width: 2; }
.lc-tip { position: absolute; top: 0; pointer-events: none; background: var(--ink); color: var(--bg); border-radius: 6px; padding: 6px 9px; font-size: 12.5px; white-space: nowrap; box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.lc-tip small { display: block; opacity: .75; font-size: 11.5px; }
.lc-tip b { font-weight: 600; }
.an-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.an-empty { display: flex; gap: 8px; align-items: center; margin: 14px 0 0; }
.an-list { list-style: none; margin: 0; padding: 0; }
.an-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 6px; border: 0; background: none; border-radius: 6px; text-align: left; color: var(--ink); cursor: pointer; }
.an-row:hover:not([disabled]) { background: var(--sb-hover); }
.an-row[disabled] { cursor: default; opacity: .7; }
.an-row-t { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; flex-direction: column; }
.an-row-t small { font-size: 12px; color: var(--muted); }
.an-row-n { font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; min-width: 46px; justify-content: flex-end; }
.an-row-n .icon { width: 13px; height: 13px; color: var(--muted); }
.tb-thumb { width: 40px; height: 28px; border-radius: 5px; overflow: hidden; background: var(--surface-3); display: grid; place-items: center; flex: none; color: var(--muted); }
.tb-thumb.lg { width: 64px; height: 42px; }
.tb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tb-thumb .icon { width: 16px; height: 16px; }
.bars.v { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; align-items: end; height: 140px; }
.bars.v .bar { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 4px; outline-offset: 2px; }
.bars.v .bar-t { flex: 1; display: flex; align-items: flex-end; }
.bars.v .bar-f { width: 100%; height: max(var(--p), 2px); background: var(--teal); border-radius: 3px 3px 0 0; opacity: .85; }
.bars.v .bar:hover .bar-f { opacity: 1; }
.bars.v .bar-l { font-size: 10.5px; color: var(--muted); text-align: left; white-space: nowrap; height: 13px; }
.bars.h { display: flex; flex-direction: column; gap: 7px; }
.bars.h .bar { display: grid; grid-template-columns: 74px minmax(0, 1fr) 46px; align-items: center; gap: 8px; }
.bars.h .bar-l { font-size: 13px; color: var(--ink-2); }
.bars.h .bar-t { height: 10px; background: var(--surface-3); border-radius: 0 4px 4px 0; overflow: hidden; }
.bars.h .bar-f { display: block; height: 100%; width: max(var(--p), 2px); background: var(--teal); border-radius: 0 4px 4px 0; }
.bars.h .bar-n { font-size: 12.5px; text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.an-facts { margin: 0; display: grid; gap: 10px; }
.an-facts div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 8px; font-size: 14px; }
.an-facts dt { color: var(--ink-2); } .an-facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.tbl-wrap { border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--muted); padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .tb-main { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.tbl .tb-main > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.tbl .tb-main small { color: var(--muted); font-size: 12px; }
.tbl .tb-act { text-align: right; white-space: nowrap; }
.th-sort { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; padding: 0; }
.th-sort[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.tr-click { cursor: pointer; }
.tr-click:hover td { background: var(--surface-2); }
.pp-av { position: relative; display: inline-flex; flex: none; }
.pp-av .on { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #2fb67c; border: 2px solid var(--surface); }
.pp-av.lg .lw-avatar { width: 38px; height: 38px; font-size: 13.5px; }
.pp-av.lg .on { width: 12px; height: 12px; }

/* ================================================================ Personen */
.pp-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.pp-bar .lw-search { flex: 1 1 220px; max-width: 360px; }
.seg { display: inline-flex; padding: 3px; background: var(--surface-3); border-radius: 8px; gap: 2px; }
.seg button { border: 0; background: none; padding: 5px 12px; border-radius: 6px; font: 500 13.5px var(--font); color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.seg small { color: var(--muted); }
.pp-all { font-size: 13.5px; margin-left: auto; }
.pp-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pp-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.pp-row:last-child { border-bottom: 0; }
.pp-row:hover { background: var(--surface-2); }
.pp-ck { margin: 0; }
.pp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pp-main b { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-main b small { font-weight: 400; color: var(--muted); }
.pp-main > small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-seen { font-size: 13px; color: var(--muted); white-space: nowrap; }
.pp-seen .on-txt { display: inline-flex; align-items: center; gap: 6px; }
.pp-act { display: inline-flex; align-items: center; gap: 2px; }
.pp-n { font-size: 12.5px; color: var(--muted); min-width: 34px; text-align: right; margin-right: 4px; font-variant-numeric: tabular-nums; }
.pp-to { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 4px; }
.pp-to .chip, .chip-x { background: var(--surface-3); border-radius: 999px; padding: 3px 10px; font-size: 13px; }
.chip-x { display: inline-flex; align-items: center; gap: 4px; }
.chip-x button { border: 0; background: none; padding: 0; display: grid; cursor: pointer; color: var(--muted); }
.chip-x .icon { width: 13px; height: 13px; }

/* ================================================================ Historie */
.hist-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.hist-bar .lw-search { flex: 1 1 180px; max-width: 280px; }
.hist-day { margin-bottom: 18px; }
.hist-day h3 { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 6px; position: sticky; top: 46px; background: var(--bg); padding: 6px 0; z-index: 2; }
.hist-day ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); margin-left: 13px; }
.hist-it { display: flex; align-items: flex-start; gap: 12px; padding: 7px 0 7px 0; margin-left: -14px; }
.hist-ic { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted); }
.hist-ic .icon { width: 13px; height: 13px; }
.t-download .hist-ic, .t-upload .hist-ic { color: var(--teal-d); border-color: color-mix(in srgb, var(--teal) 40%, transparent); background: var(--teal-tint); }
.t-delete .hist-ic, .t-purge .hist-ic { color: #c4554d; }
.t-share .hist-ic, .t-share-view .hist-ic { color: #9065b0; }
.hist-tx { flex: 1; min-width: 0; font-size: 14px; line-height: 1.45; padding-top: 2px; }
.hist-tx b { font-weight: 600; }
.hist-tx span { color: var(--ink-2); }
.hist-tx em { font-style: normal; font-weight: 500; }
.hist-tx small { display: block; font-size: 12.5px; color: var(--muted); }
.hist-it time { font-size: 12.5px; color: var(--muted); padding-top: 4px; font-variant-numeric: tabular-nums; }
.hist-more { display: flex; justify-content: center; margin-top: 10px; }

/* ================================================================ Papierkorb */
.tr-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tr-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tr-row:last-child { border-bottom: 0; }
.tr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tr-main b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.tr-main small { font-size: 12.5px; color: var(--muted); }
.tr-left { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.tr-left.soon { color: #c4554d; }
.tr-act { display: inline-flex; gap: 4px; align-items: center; }

/* ================================================================ In/Out (Clip) */
.dialog.trim-dlg { width: min(920px, 100%); }
.trim { display: flex; flex-direction: column; gap: 12px; }
.trim-stage { background: #000; border-radius: 8px; overflow: hidden; display: grid; place-items: center; max-height: 52vh; }
.trim-stage video { width: 100%; max-height: 52vh; display: block; cursor: pointer; }
.trim-bar { display: flex; align-items: center; gap: 10px; }
.trim-now, .trim-total { font: 500 12.5px ui-monospace, Menlo, monospace; color: var(--ink-2); min-width: 52px; }
.trim-total { text-align: right; }
.trim-track { position: relative; flex: 1; height: 38px; border-radius: 6px; background: var(--surface-3); cursor: pointer; touch-action: none; }
.trim-sel { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--teal) 22%, transparent); border-top: 2px solid var(--teal); border-bottom: 2px solid var(--teal); }
.trim-head { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink); pointer-events: none; }
.trim-h { position: absolute; top: -3px; bottom: -3px; width: 14px; margin-left: -7px; border: 0; border-radius: 4px; background: var(--teal); cursor: ew-resize; padding: 0; }
.trim-h::after { content: ''; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 2px; background: rgba(255,255,255,.8); border-radius: 1px; }
.trim-h:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.trim-ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.trim-ctl kbd { font: 11px var(--font); color: var(--muted); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 4px; margin-left: 2px; }
.trim-ctl .on { background: var(--teal-tint); color: var(--teal-d); }
.trim-tc { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.trim-tc .input { width: 76px; min-height: 32px; font: 13px ui-monospace, Menlo, monospace; }
.trim-len { margin-left: auto; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.clip-badge { position: absolute; left: 12px; top: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 4px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; pointer-events: none; }
.clip-badge .icon { width: 13px; height: 13px; }
.sb-nav .nav-link[data-view="trash"] { margin-top: 14px; }
.sb-nav .nav-link[data-view="trash"] + .nav-link[data-view="settings"] { margin-top: 0; }

/* ================================================================ Handy & Tablet */
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kpi:nth-child(3n) { border-right: 0; } .kpi:nth-child(-n+3) { border-bottom: 1px solid var(--line); } }
@media (max-width: 760px) {
  .shell:not(.no-sb) .main { padding: 16px 14px 80px; }
  .page-title { font-size: 26px; }
  .pg-head { margin-bottom: 12px; }
  .pg-head .admin-actions, .pg-head > .btn { width: 100%; }
  .pg-head .admin-actions .btn, .pg-head > .btn { flex: 1; justify-content: center; }
  .an-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 12px; border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
  .kpi:nth-child(2n) { border-right: 0 !important; }
  .kpi:nth-last-child(-n+2) { border-bottom: 0 !important; }
  .kpi-v { font-size: 22px; }
  .bars.v { height: 110px; }
  /* Tabellen als Karten */
  .tbl-wrap { border: 0; overflow: visible; }
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; padding: 10px 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; background: var(--surface); }
  .tbl td { border: 0; padding: 0; font-size: 14px; }
  .tbl td[data-l]::before { content: attr(data-l); display: block; font-size: 11.5px; color: var(--muted); }
  .tbl td.tb-main { grid-column: 1 / -1; min-width: 0; }
  .tbl td.tb-main::before { display: none; }
  .tbl td.tb-act { grid-column: 1 / -1; text-align: left; }
  .pp-row { flex-wrap: wrap; padding: 10px 12px; }
  .pp-seen { order: 5; width: 100%; padding-left: 50px; margin-top: -4px; }
  .pp-row .pp-ck + .pp-av + .pp-main + .pp-seen { padding-left: 82px; }
  .pp-all { margin-left: 0; }
  .pp-bar .lw-search { max-width: none; }
  .hist-bar > * { flex: 1 1 140px; }
  .hist-bar .period { flex-basis: 100%; }
  .hist-it time { display: none; }
  .tr-row { flex-wrap: wrap; }
  .tr-left { order: 4; }
  .tr-act { margin-left: auto; }
  .tr-act .btn { min-height: 34px; }
  .home2 .mod-grid { grid-template-columns: 1fr; }
  .home-recent { grid-auto-columns: 46%; }
  .help-box { grid-template-columns: 1fr; }
  .help-box .btn { width: 100%; justify-content: center; }
  .pulse-more { margin-left: 0; width: 100%; }
  .trim-ctl .trim-tc { flex: 1 1 40%; }
  .trim-ctl .btn { flex: 1 1 40%; justify-content: center; }
  .trim-len { width: 100%; margin: 0; }
  .an-tools { width: 100%; }
  .an-tools .period { flex: 1; }
  .cal-bar .btn-primary { width: 100%; justify-content: center; }
  .q-acts .select { max-width: none; flex: 1; }
}
@media (max-width: 760px) {
  .overlay { padding: 0 !important; }
  .overlay .dialog:not(.small) { width: 100% !important; max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .overlay:has(.dialog.small) { place-items: end center; }
  .overlay .dialog.small { width: 100%; border-radius: 14px 14px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .dialog-head h2 { font-size: 20px; }
  .dialog-foot { flex-wrap: wrap; }
}
.home2 .mod-grid { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.home2 .mod-tile, .home2 .mod-grid > * { min-width: 0; }
.help-setup { display: block; }
.help-setup .icon { vertical-align: -3px; margin-right: 4px; }
@media (max-width: 760px) { .home2 .mod-grid { grid-template-columns: minmax(0, 1fr); } }
.sk-list-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
/* Design der Firma (Admin) */
.co-design { margin: 0 0 16px; padding: 16px 18px; }
.co-design-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.co-design-h h2 { margin: 0; font-size: 16px; display: flex; gap: 8px; align-items: center; }
.co-design-h h2 .icon { width: 17px; height: 17px; color: var(--teal-d); }
.co-design-h .hint { margin: 4px 0 0; }
.co-design-body { margin-top: 10px; }
@media (max-width: 760px) { .co-design-h { flex-direction: column; } .co-design-h .btn { width: 100%; justify-content: center; } }
/* Logo der Firma */
.co-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.co-cards .co-design { margin: 0; }
.logo-show { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.logo-prev { display: grid; place-items: center start; width: 200px; height: 56px; border-radius: 8px; padding: 6px 10px; border: 1px solid var(--line); }
.logo-prev.light { background: #f7f7f5; } .logo-prev.dark { background: #202020; }
.logo-prev img { max-width: 100%; max-height: 100%; }
.sb-logo { display: block; padding: 6px 8px 2px; margin-bottom: 2px; }
.sb-logo .co-logo { display: block; width: 100%; max-width: 200px; height: auto; aspect-ratio: 4 / 1; object-fit: contain; object-position: left center; }
.brand.has-logo > :not(.co-logo) { display: none; }
.brand .co-logo { height: 34px; width: auto; max-width: 180px; display: block; }
.logo-drop { display: flex; align-items: center; gap: 14px; padding: 28px; border: 2px dashed var(--line-2); border-radius: 12px; cursor: pointer; color: var(--ink-2); }
.logo-drop.over, .logo-drop:hover { border-color: var(--teal); background: var(--teal-tint); }
.logo-drop > .icon { width: 28px; height: 28px; color: var(--teal-d); flex: none; }
.logo-drop small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.logo-work { display: flex; flex-direction: column; gap: 12px; }
.logo-frame { position: relative; aspect-ratio: 4 / 1; width: 100%; overflow: hidden; border-radius: 8px; cursor: grab; touch-action: none; outline: 2px dashed color-mix(in srgb, var(--teal) 55%, transparent); outline-offset: 0;
  background-color: #fff; background-image: linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%), linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%); background-size: 16px 16px; background-position: 0 0, 8px 8px; }
.logo-frame[data-bg="dark"] { background-color: #202020; background-image: linear-gradient(45deg, #2a2a2a 25%, transparent 25%, transparent 75%, #2a2a2a 75%), linear-gradient(45deg, #2a2a2a 25%, transparent 25%, transparent 75%, #2a2a2a 75%); }
.logo-frame:active { cursor: grabbing; }
.logo-frame:focus-visible { outline: 2px solid var(--teal); }
.logo-frame img { position: absolute; max-width: none; user-select: none; pointer-events: none; }
.logo-ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.logo-size { display: inline-flex; align-items: center; gap: 8px; flex: 1 1 220px; }
.logo-size .icon { width: 16px; height: 16px; color: var(--muted); }
.logo-size input { flex: 1; accent-color: var(--teal); }
.logo-size output { font-size: 13px; min-width: 46px; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.logo-mock { display: flex; height: 120px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.lm-sb { width: 34%; background: #f7f7f5; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.lm-main { flex: 1; background: #fff; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.logo-mock[data-bg="dark"] .lm-sb { background: #202020; } .logo-mock[data-bg="dark"] .lm-main { background: #191919; }
.lm-logo canvas { width: 100%; height: auto; display: block; }
.lm-line { height: 7px; border-radius: 4px; background: rgba(120,120,120,.2); width: 80%; } .lm-line.s { width: 55%; } .lm-line.l { height: 12px; width: 50%; }
@media (max-width: 900px) { .co-cards { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .logo-ctl .seg { flex: 1; } .logo-ctl .seg button { flex: 1; justify-content: center; } .logo-prev { width: 100%; } .logo-drop { padding: 20px; } }
.co-design-h .admin-actions { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 4px; flex: none; }

/* ================================================================ Admin-Bereich: Einstellungsseite (Navigation links, klare Abschnitte) */
.adm-page { max-width: 1180px; }
.adm-hero { margin-bottom: 24px; }
.adm-hero .eyebrow { margin: 0 0 4px; }
.adm-hero .lib-sub { margin: 6px 0 0; max-width: 640px; }
.adm-hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.set-shell { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 36px; align-items: start; }
.set-nav { position: sticky; top: 64px; display: flex; flex-direction: column; gap: 1px; }
.set-nav-a { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 6px; color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: none; }
.set-nav-a .icon { width: 16px; height: 16px; color: var(--muted); flex: none; }
.set-nav-a:hover { background: var(--sb-hover); color: var(--ink); }
.set-nav-a[aria-current] { background: var(--sb-hover); color: var(--ink); font-weight: 600; }
.set-nav-a[aria-current] .icon { color: var(--teal-d); }
.set-nav-ext { margin-top: 12px; border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; padding-top: 12px; }
.set-nav-ext span { flex: 1; }
.set-body { min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.set-block { scroll-margin-top: 70px; }
.set-block-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.set-block-h h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.set-block-h p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.set-card { border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; background: var(--surface); }
.set-card .set-row:last-child { border-bottom: 0; }
.set-val { text-align: right; font-size: 14px; color: var(--ink); display: flex; flex-direction: column; align-items: flex-end; gap: 3px; max-width: 60%; }
.set-val small { color: var(--muted); font-size: 12.5px; }
.set-val.mod-chips { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; margin: 0; }
.set-val .link-btn { margin-top: 2px; }
.set-inline { flex-direction: row; align-items: center; gap: 6px; width: 100%; max-width: 420px; }
.set-inline .input { flex: 1; min-width: 0; }
/* Mitglieder */
.team-search { max-width: 360px; margin-bottom: 12px; }
#view-team .team-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
#view-team .team-row { display: block; padding: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
#view-team .team-row:last-child { border-bottom: 0; }
#view-team .team-row.open { background: var(--surface-2); }
.team-head { display: flex; align-items: center; gap: 4px; padding-right: 10px; }
.team-head.static { padding: 12px 14px; gap: 12px; }
.team-toggle { flex: 1; min-width: 0; display: grid; grid-template-columns: 36px minmax(160px, 1.2fr) 120px minmax(0, 2fr) 20px; align-items: center; gap: 12px; padding: 12px 14px; border: 0; background: none; text-align: left; color: var(--ink); cursor: pointer; font: inherit; }
.team-toggle:hover { background: var(--sb-hover); }
.team-head .lw-avatar { width: 34px; height: 34px; font-size: 12.5px; }
#view-team .team-who { display: flex; flex-direction: column; min-width: 0; gap: 0; }
#view-team .team-who b { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-team .team-who small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-role { white-space: nowrap; }
.team-sum { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; overflow: hidden; max-height: 24px; }
.team-chev .icon { width: 16px; height: 16px; color: var(--muted); transition: transform .2s; }
.team-row.open .team-chev .icon { transform: rotate(180deg); }
#view-team .team-remove { position: static; }
.team-remove-sp { width: 36px; flex: none; }
.team-pa-note { margin: -6px 14px 12px 62px; font-size: 13px; }
.team-pa { background: var(--surface-2) !important; }
.team-detail { padding: 4px 18px 14px 62px; display: flex; flex-direction: column; }
.td-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.td-row:first-child { border-top: 0; }
.td-l { font-size: 13.5px; font-weight: 600; display: flex; flex-direction: column; gap: 2px; }
.td-l small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.td-c { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.td-c.choices { flex-direction: row; }
#view-team .choice span { padding: 5px 11px; font-size: 13px; border-radius: 6px; }
.perm-row { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.switch-l { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.switch.sm { width: 34px; height: 20px; }
/* Rollen-Matrix */
.tbl.roles td, .tbl.roles th { text-align: center; }
.tbl.roles td:first-child, .tbl.roles th:first-child { text-align: left; }
.tbl.roles td.yes { color: #1d8f5f; font-weight: 600; }
.tbl.roles td.no { color: var(--muted-2); }
.tbl.roles td.part { color: var(--ink-2); font-size: 12.5px; }
.tbl.roles .tb-main { display: table-cell; min-width: 180px; }
/* Plattform-Admin */
.adm-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.adm-tools .lw-search { max-width: 320px; flex: 1; }
#view-admin .adm-grid { grid-template-columns: minmax(0, 1fr) 300px; }
#view-admin .adm-side { top: 64px; }
#view-admin .adm-card { border-radius: 12px; padding: 18px 20px; }
#view-admin .adm-company-head h2 { font-size: 18px; }
#view-admin .adm-table th { text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 500; }
#view-admin .adm-operator { border-color: color-mix(in srgb, var(--teal) 30%, var(--line)); }
@media (max-width: 1200px) { #view-admin .adm-grid { grid-template-columns: 1fr; } #view-admin .adm-side { position: static; } }
@media (max-width: 1000px) { .team-toggle { grid-template-columns: 36px minmax(0, 1fr) auto 20px; } .team-sum { display: none; } }
@media (max-width: 900px) {
  .set-shell { grid-template-columns: 1fr; gap: 16px; }
  .set-nav { position: sticky; top: 46px; z-index: 5; flex-direction: row; overflow-x: auto; gap: 4px; padding: 6px 0; background: var(--bg); scrollbar-width: none; }
  .set-nav-a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
  .set-nav-ext { margin: 0; border-top: 1px solid var(--line); padding-top: 5px; border-radius: 999px; }
  .set-nav-ext > .icon:last-child { display: none; }
  .set-block { scroll-margin-top: 110px; }
}
@media (max-width: 760px) {
  .set-block-h { flex-direction: column; align-items: stretch; }
  .set-block-h .btn { width: 100%; justify-content: center; }
  .set-row .set-val { text-align: left; align-items: flex-start; max-width: 100%; }
  .set-val.mod-chips { justify-content: flex-start; }
  .set-inline { max-width: none; }
  .team-toggle { grid-template-columns: 34px minmax(0, 1fr) 20px; padding: 10px 12px; gap: 10px; }
  .team-role { display: none; }
  .team-detail { padding: 4px 14px 14px; }
  .td-row { grid-template-columns: 1fr; gap: 8px; }
  .team-pa-note { margin: -4px 14px 12px; }
  .tbl.roles td { text-align: left; }
  .adm-tools .lw-search { max-width: none; }
}
.set-block-h:has(> h2) { display: block; }
#view-admin .adm-grid, #view-admin .adm-companies { min-width: 0; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1201px) { #view-admin .adm-grid { grid-template-columns: minmax(0, 1fr) 300px; } }
#view-admin .adm-card { min-width: 0; }
@media (max-width: 760px) {
  #view-admin .adm-company-head { flex-direction: column; }
  #view-admin .adm-actions { flex-wrap: wrap; width: 100%; }
  #view-admin .adm-actions .btn { flex: 1 1 auto; justify-content: center; }
  #view-admin .adm-table { display: block; overflow-x: auto; white-space: nowrap; }
  #view-admin .adm-table td:first-child { white-space: normal; min-width: 150px; }
  #view-admin .adm-card { padding: 14px; }
}
@media (min-width: 1201px) { #view-admin .adm-grid { grid-template-columns: minmax(0, 1fr); } }
#view-admin .adm-side { position: static; }
#view-admin .adm-company-head > div:first-child { min-width: 0; flex: 1; }
#view-admin .adm-unassigned .section-h { font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--ink); }
/* Vimeo: Vorschaubild aus dem Smart Hub, Klick startet den Player */
.vimeo-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: #000; cursor: pointer; display: grid; place-items: center; }
.vimeo-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.vimeo-play { position: relative; width: 74px; height: 74px; border-radius: 50%; background: rgba(0,0,0,.55); display: grid; place-items: center; color: #fff; transition: transform .15s, background .15s; backdrop-filter: blur(4px); }
.vimeo-poster:hover .vimeo-play { transform: scale(1.06); background: var(--teal); }
.vimeo-play .icon { width: 30px; height: 30px; margin-left: 4px; }
.vimeo-state { display: flex; flex-direction: column; gap: 6px; }
.vimeo-state .hint { margin: 0; }
.vimeo-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-wait { display: inline-flex; align-items: center; gap: 6px; color: #b7791f; font-weight: 500; }
html[data-theme="dark"] .pp-wait { color: #e0b05a; }
.pp-wait .icon { width: 14px; height: 14px; }
.team-wait { display: block; font-size: 12px; margin-top: 2px; white-space: nowrap; }
/* Vimeo-Status */
.vm-problem, .vm-ok { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 8px; margin: 10px 0 4px; font-size: 14px; }
.vm-problem { background: #fdf0ef; color: #9f2f27; } .vm-ok { background: #edf7f2; color: #1d6b48; }
html[data-theme="dark"] .vm-problem { background: #3a2220; color: #f2b8b2; } html[data-theme="dark"] .vm-ok { background: #1e3329; color: #9fdcbf; }
.vm-problem .icon, .vm-ok .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.mod-chip.bad { background: #fdf0ef; color: #b3362d; }
.vm-bad { color: #b3362d; font-weight: 600; }
.vm-folders { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; gap: 6px 14px; }
.vm-folders span { display: inline-flex; align-items: center; gap: 5px; } .vm-folders .icon { width: 14px; height: 14px; color: var(--muted); }
.vm-errors { margin-top: 12px; font-size: 13.5px; }
.vm-errors ul { list-style: none; margin: 6px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; }
.vm-errors li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.vm-errors li:last-child { border-bottom: 0; }
.vm-errors small { color: var(--muted); } .vm-errors code { color: #b3362d; font-size: 12px; text-align: right; }
.vimeo-err { color: #b3362d !important; } .vimeo-err-msg { font-size: 12.5px; word-break: break-word; }
.spinner.sm { width: 14px; height: 14px; border-width: 2px; }
/* YouTube-Inhalte */
.chip-yt { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; background: #ff0033; color: #fff; font-size: 11px; font-weight: 600; padding: 3px 7px 3px 5px; border-radius: 6px; }
.chip-yt .icon { width: 14px; height: 14px; }
.vimeo-poster.yt:hover .vimeo-play { background: #ff0033; }
.yt-box .btn { margin-top: 8px; }
.yt-box > .icon { color: #ff0033; }
.yt-check { display: flex; align-items: center; gap: 6px; margin-top: -4px; }
.yt-check .icon { width: 15px; height: 15px; }
.yt-check.ok { color: #1d8f5f; }
.yt-done { margin-top: 10px; }
.yt-frame { width: min(100%, 1100px); aspect-ratio: 16 / 9; } .yt-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 8px; }
.chip-yt { top: auto; right: auto; bottom: 10px; left: 10px; }

/* ---------- Abschlusstest (Schulungen) */
.fq { display: grid; gap: 16px; }
.fq h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fq-src { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.fq-src > li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.fq-src .re-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fq-src .re-title b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fq-ok { color: #1f9d55; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.fq-ok svg { width: 14px; height: 14px; }
.fq-gen { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-top: 10px; }
.fq-gen .field { margin: 0; min-width: 150px; }
.fq-list { margin: 12px 0 8px; padding-left: 22px; display: grid; gap: 12px; }
.fq-list > li > b { display: block; margin-bottom: 4px; }
.fq-list ul { list-style: none; padding: 0; margin: 0 0 4px; display: grid; gap: 2px; }
.fq-list ul li { display: flex; align-items: center; gap: 6px; padding: 2px 0 2px 20px; color: var(--muted); font-size: 14px; }
.fq-list ul li.right { color: #1f9d55; font-weight: 600; padding-left: 0; }
.fq-list ul li svg { width: 14px; height: 14px; }
.fq-qtools { margin-left: auto; display: inline-flex; gap: 2px; }
.lw-le-qh { display: flex; align-items: center; gap: 8px; }
.fq-pass { color: #1f9d55; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.fq-pass svg { width: 14px; height: 14px; }
.fq-fail { color: #c2410c; }
.fq-stage { display: flex; align-items: center; gap: 20px; min-height: 220px; padding: 32px; background: linear-gradient(135deg, var(--teal-tint), transparent); border-radius: inherit; }
.fq-stage h2 { margin: 2px 0 6px; }
.fq-stage p { margin: 0 0 8px; color: var(--muted); }
.fq-ico { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; }
.fq-ico svg { width: 30px; height: 30px; }
.fq-test .lw-opt.picked { border-color: var(--teal); background: var(--teal-tint); font-weight: 600; }
.fq-test .lw-opt[disabled] { cursor: default; }
.fq-result { display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px; border-radius: 12px; margin: 8px 0 12px; }
.fq-result svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.fq-result.ok { background: rgba(31, 157, 85, .1); color: #1f9d55; }
.fq-result.bad { background: rgba(194, 65, 12, .08); color: #c2410c; }
.lw-steps .fq-step .lw-tick svg { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .fq-src > li { flex-wrap: wrap; }
  .fq-src .re-title { flex-basis: calc(100% - 40px); }
  .fq-stage { padding: 20px; gap: 14px; min-height: 160px; }
  .fq-ico { width: 48px; height: 48px; }
}
/* Neuer Inhalt: YouTube-Link als zweite Möglichkeit */
.up-yt { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.up-yt:hover { border-color: var(--teal); background: var(--teal-tint); }
.up-yt > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.up-yt small { color: var(--muted); }
.up-yt > svg { width: 18px; height: 18px; color: var(--muted); }
.up-yt-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #ff0033; color: #fff; flex: none; }
.up-yt-ico svg { width: 20px; height: 20px; }
/* Schulung: angesehener Anteil des Videos */
.lw-watch { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.lw-watch .progress { flex: 0 0 140px; }
.lw-watch small { color: var(--muted); }
.lw-watch.warn small { color: #c2410c; font-weight: 600; }
/* YouTube: Endansicht abdecken (keine Vorschläge „Mehr von …“) */
.yt-guard { position: relative; }
.yt-cover { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: #000; border-radius: inherit; overflow: hidden; }
.yt-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.yt-replay { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 0; border-radius: 999px; background: rgba(255,255,255,.92); color: #111; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer; }
.yt-replay svg { width: 18px; height: 18px; }
/* Personen: Module je Person freigeben/sperren */
.pp-mods { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.mod-tog { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border: 1px dashed var(--line-2); border-radius: 999px; background: transparent; color: var(--muted); font-family: inherit; font-size: 12px; font-weight: 500; line-height: 1.4; cursor: pointer; }
.mod-tog svg { width: 13px; height: 13px; }
.mod-tog.on { border-style: solid; border-color: var(--teal); background: var(--teal-tint); color: var(--teal-d); }
.mod-tog:hover { border-color: var(--teal); color: var(--teal-d); }
.mod-tog:disabled { opacity: .5; cursor: progress; }

/* ---------- Logo „smart hub.“ und Start-Animation */
.sh-brand { display: inline-flex; color: var(--ink); line-height: 0; }
.sh-brand .sh-logo { height: 30px; width: auto; display: block; }
.sb-brand .sh-brand .sh-logo { height: 26px; }
.top-logo .sh-logo { height: 34px; }
.login-logo .sh-logo { height: 54px; }
.splash { position: fixed; inset: 0; z-index: 10000; background: #000; color: #fff; display: grid; place-items: center; transition: opacity .35s ease; }
.splash.out { opacity: 0; pointer-events: none; }
.splash-in { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.splash-logo { line-height: 0; }
.splash-logo .sh-logo { width: min(300px, 62vw); height: auto; overflow: visible; }
.splash-logo .sh-smart { animation: sh-in-left .7s cubic-bezier(.2,.8,.2,1) .15s both; }
.splash-logo .sh-hub { animation: sh-in-up .7s cubic-bezier(.2,.8,.2,1) .45s both; }
.splash-logo .sh-dot { transform-box: fill-box; transform-origin: center; animation: sh-dot .65s cubic-bezier(.3,1.6,.5,1) 1.05s both; }
@keyframes sh-in-left { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes sh-in-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes sh-dot { 0% { opacity: 0; transform: translateY(-120px) scale(.6); } 60% { opacity: 1; transform: translateY(6px) scale(1.12); } 100% { opacity: 1; transform: none; } }
.splash-bar { width: min(260px, 56vw); height: 3px; border-radius: 3px; background: rgba(255,255,255,.14); overflow: hidden; }
.splash-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #005f79, #1fb5d1); border-radius: inherit; }
.splash-pct { margin-top: -18px; font-size: 12px; letter-spacing: .08em; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .splash-logo .sh-smart, .splash-logo .sh-hub, .splash-logo .sh-dot { animation: none; } }
.bg-swatches { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bgsw { width: 28px; height: 28px; border-radius: 50%; background: var(--c); border: 1px solid var(--line-2); cursor: pointer; padding: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.bgsw[aria-pressed="true"] { outline: 2px solid var(--teal); outline-offset: 2px; }
.login-visual .login-logo .sh-smart, .login-visual .login-logo .sh-dot { fill: #2aa3c2; }

/* ---------- Favoriten (Mediathek) */
.chip-fav { position: absolute; right: 52px; top: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; z-index: 2; cursor: pointer;
  background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 6px 16px -8px rgba(0,0,0,.5); opacity: 0; transform: scale(.85); transition: opacity .18s, transform .18s; }
.chip-fav .icon { width: 17px; height: 17px; fill: none; }
.card:hover .chip-fav, .card:focus-visible .chip-fav, .chip-fav.on { opacity: 1; transform: none; }
.chip-fav.on { color: #f5b301; }
.chip-fav.on .icon { fill: #f5b301; stroke: #f5b301; }
.chip-fav:hover { color: #f5b301; }
.card.selectable .chip-fav { display: none; }
@media (hover: none) { .chip-fav { opacity: 1; transform: none; } }
.card .chip-lock { right: 94px; }
.fav-btn .icon { fill: none; }
.fav-btn.on { color: #d99a00; border-color: #f5b301; background: rgba(245,179,1,.12); }
.fav-btn.on .icon { fill: #f5b301; stroke: #f5b301; }
.fav-strip { margin: 4px 0 18px; }
.fav-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 15px; }
.fav-head .icon { width: 18px; height: 18px; color: #f5b301; fill: #f5b301; }
.fav-head small { color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.fav-row { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.fav-item { position: relative; flex: 0 0 180px; scroll-snap-align: start; }
.fav-open { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: var(--ink); cursor: pointer; font: inherit; }
.fav-thumb { position: relative; display: block; aspect-ratio: 16/10; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.fav-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fav-thumb.fit img { object-fit: contain; padding: 8px; }
.fav-thumb .placeholder { display: grid; place-items: center; height: 100%; color: var(--muted); }
.fav-play { position: absolute; left: 8px; bottom: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; }
.fav-play .icon { width: 12px; height: 12px; }
.fav-open:hover .fav-thumb { border-color: var(--teal); }
.fav-title { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-open small { color: var(--muted); font-size: 12px; margin-top: -3px; }
.fav-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; opacity: 0; transition: opacity .15s; }
.fav-x .icon { width: 13px; height: 13px; }
.fav-item:hover .fav-x, .fav-x:focus-visible { opacity: 1; }
@media (hover: none) { .fav-x { opacity: 1; } }
@media (max-width: 640px) { .fav-item { flex-basis: 140px; } }
/* Personen: Person anklicken → Rechte bearbeiten */
.pp-name { all: unset; cursor: pointer; font-weight: 600; color: var(--ink); }
.pp-name:hover, .pp-name:focus-visible { color: var(--teal-d); text-decoration: underline; text-underline-offset: 3px; }
html[data-theme="dark"] .pp-name:hover { color: var(--teal); }
.pp-name small { font-weight: 400; color: var(--muted); }
#view-people .pp-row { cursor: pointer; }
.person-dlg .dialog-body { padding-top: 6px; }
.pd-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.pd-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pd-who b { font-size: 17px; }
.pd-who small { color: var(--muted); display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pd-who small .icon { width: 13px; height: 13px; }
.pd-sum { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.pd-ed { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 14px; }
.pd-ed .team-detail { padding: 0; border: 0; }
@media (max-width: 640px) { .pd-head { flex-wrap: wrap; } }
.person-dlg .pd-ed { display: block; grid-template-columns: none; }
.person-dlg .pd-ed .team-detail { padding: 0; margin: 0; grid-column: 1 / -1; }
.person-dlg .pd-ed .td-row { grid-template-columns: 170px minmax(0, 1fr); }
@media (max-width: 640px) { .person-dlg .pd-ed .td-row { grid-template-columns: 1fr; } }
/* Sprache im Benutzermenü */
.menu-lang { display: flex; align-items: center; gap: 6px; padding: 6px 12px; color: var(--muted); font-size: 13px; }
.menu-lang .icon { width: 16px; height: 16px; }
.menu-lang > span { flex: 1; color: var(--ink); }
.ml-btn { border: 1px solid var(--line-2); background: transparent; color: var(--ink); border-radius: 8px; padding: 3px 8px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.ml-btn.on { background: var(--teal); border-color: var(--teal); color: #fff; }
/* Einzelrechte und Medien-Preset */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 16px; }
.feat-grid .switch-l { align-items: center; }
.feat-grid .switch-l:has(input:disabled) { opacity: .5; }
.feat-own { font-size: 11px; color: var(--teal-d); background: var(--teal-tint); border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
html[data-theme="dark"] .feat-own { color: #fff; }
.td-feats .link-btn { margin-top: 8px; }
.preset-check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.preset-check span { display: flex; flex-direction: column; gap: 2px; }
.preset-check small { color: var(--muted); }
.ctab-preset .icon { width: 13px; height: 13px; color: #f5b301; fill: #f5b301; margin-right: 4px; vertical-align: -2px; }
.ctab-mine { background: var(--teal); color: #fff !important; border-radius: 999px; padding: 0 7px; margin-left: 6px; font-size: 11px; }
.colinfo-preset { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-d); font-weight: 600; font-size: 13px; margin: 0 0 4px; }
html[data-theme="dark"] .colinfo-preset { color: var(--teal); }
.colinfo-preset .icon { width: 15px; height: 15px; color: #f5b301; fill: #f5b301; }
.preset-chip .icon { width: 12px; height: 12px; color: #f5b301; fill: #f5b301; }

/* Anmeldung Smart Hub: Sujet aus der Website (Sektion Smart Hub) */
.login-visual.login-sujet { background: #c4cbd2 url('/img/login-sujet.webp') 34% 28% / cover no-repeat; }
html[data-theme="dark"] .login-visual.login-sujet { background: #c4cbd2 url('/img/login-sujet.webp') 34% 28% / cover no-repeat; }
.login-sujet::before { inset: 0; filter: none; background:
  linear-gradient(180deg, rgba(5,8,10,.55) 0%, rgba(5,8,10,0) 24%, rgba(5,8,10,0) 46%, rgba(5,8,10,.82) 100%),
  linear-gradient(90deg, rgba(0,105,128,.18), rgba(0,105,128,0) 60%); }
.login-sujet .brand { margin-bottom: auto; }
.login-sujet .login-claim { margin: 0 0 14px; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.login-sujet .login-note { color: rgba(255,255,255,.82); margin: 0; }
@media (max-width: 860px) {
  .login-visual.login-sujet, html[data-theme="dark"] .login-visual.login-sujet { background-image: url('/img/login-sujet-s.webp'); background-position: 34% 22%; min-height: 250px; padding-bottom: 24px; }
  .login-sujet::before { background: linear-gradient(180deg, rgba(5,8,10,.5) 0%, rgba(5,8,10,0) 45%, rgba(5,8,10,.35) 100%); }
  .login-sujet .login-claim, .login-sujet .login-note { display: none; }
}
.login-sujet .login-claim { max-width: none; white-space: nowrap; font-size: clamp(32px, 4.2vw, 64px); }

.linkish { background: none; border: 0; padding: 0; color: var(--teal-d); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 10px; font-size: 12.5px; background: var(--surface-2); color: var(--muted); }
.chip .icon { width: 13px; height: 13px; }
.chip.chip-ok { background: var(--teal-tint); color: var(--teal-d); }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
/* Mediathek: Ansichten, Filter, Kontextmenü */
.layout-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-2, rgba(0,0,0,.04)); }
.layout-switch .icon-btn { width: 32px; height: 32px; border-radius: 8px; }
.layout-switch .icon-btn[aria-checked="true"] { background: var(--surface, #fff); color: var(--teal); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.lib-filters { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.lib-filters .btn.on { color: var(--teal); background: color-mix(in srgb, var(--teal) 10%, transparent); }
.lib-filters .btn.on::after { content: attr(data-n); font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--teal); color: #fff; margin-left: 2px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -8px 0 20px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--teal) 35%, transparent); background: color-mix(in srgb, var(--teal) 8%, transparent); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.fchip .icon { width: 14px; height: 14px; }
.fchip:hover { border-color: var(--teal); }
/* Symbolgrößen */
.grid.lay-small { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 14px; }
.grid.lay-small .card { gap: 8px; }
.grid.lay-small .card-title { font-size: 13.5px; }
.grid.lay-small .card-meta, .grid.lay-small .chip-type, .grid.lay-small .chip-formats, .grid.lay-small .chip-basket { display: none; }
.grid.lay-small .thumb { aspect-ratio: 1; }
.grid.lay-small .thumb.fit img { padding: 10px; }
.grid.lay-large { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.grid.lay-xl { grid-template-columns: repeat(auto-fill, minmax(min(100%, 680px), 1fr)); }
.grid.lay-xl .card-title { font-size: 20px; }
/* Detaillisten */
.grid.lay-list, .grid.lay-thumbs { display: block; border-top: 1px solid var(--line); }
.lrow { display: grid; grid-template-columns: 34px minmax(180px, 3fr) minmax(70px, .9fr) minmax(120px, 2fr) 104px 86px 34px; gap: 12px; align-items: center; width: 100%;
  padding: 7px 10px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; color: var(--ink); font: inherit; font-size: 14px; animation: none; border-radius: 0; }
.lrow.with-thumb { grid-template-columns: 76px minmax(180px, 3fr) minmax(70px, .9fr) minmax(120px, 2fr) 104px 86px 34px; padding: 8px 10px; }
.lrow.card { flex-direction: unset; }
.lrow.card:hover { background: var(--surface-2, rgba(0,0,0,.035)); }
.lrow.selected { background: color-mix(in srgb, var(--teal) 10%, transparent); }
.lhead { position: sticky; top: 0; z-index: 2; background: var(--bg, #faf9f7); font-size: 12.5px; color: var(--muted); padding-top: 9px; padding-bottom: 9px; }
.lh { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; font-weight: 600; letter-spacing: .02em; }
.lh:hover, .lh[aria-sort="ascending"], .lh[aria-sort="descending"] { color: var(--teal); }
.lh-dir { font-size: 10px; }
.lc-ic { display: grid; place-items: center; color: var(--muted); }
.lc-ic .icon { width: 18px; height: 18px; }
.lc-check { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--muted-2); display: grid; place-items: center; color: transparent; }
.lrow.selected .lc-check { background: var(--teal); border-color: var(--teal); color: #fff; }
.lc-thumb { width: 76px; height: 48px; border-radius: 6px; overflow: hidden; background: var(--surface-3); display: grid; place-items: center; color: var(--muted-2); }
.lc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lc-thumb.fit img { object-fit: contain; padding: 3px; }
.lc-name { display: grid; min-width: 0; }
.lc-name b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-name small { color: var(--muted); font-size: 12px; display: inline-flex; gap: 4px; align-items: center; }
.lc-name small .icon { width: 12px; height: 12px; }
.lc-kind, .lc-date, .lc-size { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lc-size { text-align: right; }
.lhead .lc-size { justify-content: flex-end; }
.lc-tags { display: flex; gap: 4px; flex-wrap: nowrap; overflow: hidden; min-width: 0; }
.lc-tags i { font-style: normal; font-size: 12px; padding: 2px 7px; border-radius: 999px; background: var(--surface-3); white-space: nowrap; }
.lc-tags small { color: var(--muted); font-size: 12px; }
.lc-act .chip-fav { position: static; width: 28px; height: 28px; opacity: .35; }
.lrow:hover .lc-act .chip-fav, .lc-act .chip-fav.on { opacity: 1; }
@media (max-width: 760px) {
  .lrow, .lrow.with-thumb { grid-template-columns: 34px minmax(0, 1fr) 70px 34px; }
  .lrow.with-thumb { grid-template-columns: 64px minmax(0, 1fr) 70px 34px; }
  .lc-tags, .lc-size, .lc-kind { display: none; }
  .lc-thumb { width: 64px; height: 42px; }
}
/* Kontextmenü / Filterauswahl */
.popmenu { position: fixed; z-index: 400; min-width: 230px; max-width: 320px; max-height: min(70vh, 520px); overflow: auto; padding: 6px; border-radius: 12px; background: var(--surface, #fff); color: var(--ink);
  box-shadow: 0 18px 50px -12px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.06); animation: rise .14s var(--ease) both; }
.pm-head { padding: 6px 10px 8px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-item { display: flex; gap: 10px; align-items: center; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; font-size: 14px; text-align: left; cursor: pointer; text-decoration: none; }
.pm-item .icon { width: 16px; height: 16px; color: var(--muted); }
.pm-item:hover, .pm-item:focus-visible { background: color-mix(in srgb, var(--teal) 10%, transparent); outline: none; }
.popmenu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }
.pm-list { display: grid; }
.pm-check { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.pm-check:hover { background: color-mix(in srgb, var(--teal) 8%, transparent); }
.pm-check small { color: var(--muted); font-variant-numeric: tabular-nums; }
.pm-check[hidden] { display: none; }
.pm-search { margin: 0 4px 6px; width: calc(100% - 8px); }
.pm-clear { color: var(--teal); justify-content: center; }
.tools { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) {
  .toolbar .tools { width: 100%; justify-content: flex-start; gap: 6px; }
  .lib-filters { width: 100%; }
  .lib-filters .btn { flex: 1; justify-content: center; }
  .tools .sort { flex: 1 1 100%; min-width: 0; max-width: 100%; }
  .tools .sort select { flex: 1; width: 100%; min-width: 0; max-width: 100%; text-overflow: ellipsis; }
}

/* Smart Connect (Admin): Logo links, Apps rechts */
.connect-block { margin-bottom: 28px; }
.connect-head { margin-bottom: 14px; }
.connect-row { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: 28px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.connect-brand .sh-logo { display: block; width: 100%; max-width: 220px; height: auto; }
.connect-apps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.connect-app { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--surface-2, rgba(0,0,0,.03)); }
.connect-mark { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #7d2ae8, #00c4cc); color: #fff; font-weight: 700; font-size: 18px; }
.connect-txt { display: grid; min-width: 0; }
.connect-txt small { color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .connect-row { grid-template-columns: 1fr; gap: 18px; } }

/* Versionen in der Detailliste */
.lc-ver { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* Versionen, Ausschnitt, Duplikate */
.chip-ver { position: absolute; left: 10px; bottom: 10px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--accent, #006980); color: #fff; }
.crop-dialog { max-width: 760px; }
.crop-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.crop-tools .btn[aria-pressed="true"] { background: var(--surface-3); font-weight: 700; }
.crop-stage { position: relative; display: inline-block; max-width: 100%; line-height: 0; background: var(--surface-3); border-radius: 12px; overflow: hidden; }
.crop-stage img { display: block; max-width: 100%; max-height: 60vh; user-select: none; -webkit-user-drag: none; }
.crop-rect { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0,0,0,.45); border-radius: 4px; cursor: move; touch-action: none; }
.dup-dialog { max-width: 880px; }
.dup-list { display: grid; gap: 14px; margin-top: 12px; }
.dup-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; border: 1px solid var(--line, #e5e7eb); border-radius: 14px; }
.dup-side { margin: 0; display: grid; gap: 8px; min-width: 0; }
.dup-img { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--surface-3); }
.dup-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dup-side figcaption { display: grid; gap: 2px; min-width: 0; }
.dup-side figcaption b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dup-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
@media (max-width: 640px) { .dup-pair { grid-template-columns: 1fr; } }

/* Smart Review (intern) */
.rv-wrap { max-width: 920px; margin: 0 auto; padding: 16px; }
.rv-card { background: var(--surface, #fff); border: 1px solid var(--line, #dfe5e8); border-radius: 12px; padding: 16px; margin-top: 14px; }
.rv-card h2 { font-size: 16px; margin: 0 0 10px; }
.rv-form { display: grid; gap: 10px; }
.rv-form label, .rv-card label { display: grid; gap: 4px; font-size: 14px; }
.rv-list { display: grid; gap: 8px; margin-top: 14px; }
.rv-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--line, #dfe5e8); border-radius: 12px; color: inherit; text-decoration: none; background: var(--surface, #fff); }
.rv-row-main { display: grid; gap: 2px; }
.rv-row-side { display: grid; gap: 4px; justify-items: end; }
.rv-row small, .rv-row-side small { color: var(--muted, #6b7280); }
.rv-status { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 9px; background: #eef2f4; color: #1d2330; }
.rv-st-approved { background: #dcf3e4; color: #14532d; }
.rv-st-changes { background: #fff1d6; color: #7a4a00; }
.rv-st-review { background: #e0f0f4; color: #00485a; }
.rv-next { font-size: 13px; font-weight: 600; }
.rv-next-owner { color: #00485a; }
.rv-next-partner { color: #7a4a00; }
.rv-pool { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.rv-pool li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--line, #eef2f4); padding-bottom: 8px; }
.rv-pool li > span:first-child { flex: 1; min-width: 160px; }
.rv-rel { display: inline-flex !important; grid-auto-flow: column; align-items: center; gap: 6px !important; font-size: 13px; }
.rv-ver { border: 1px solid var(--line, #dfe5e8); border-radius: 12px; padding: 14px; margin-top: 12px; display: grid; gap: 10px; }
.rv-ver header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rv-ver header small { color: var(--muted, #6b7280); }
.rv-msg { font-style: italic; margin: 0; }
.rv-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.rv-file { margin: 0; display: grid; gap: 6px; align-content: start; }
.rv-img { width: 100%; border-radius: 8px; background: #eef2f4; aspect-ratio: 4 / 3; object-fit: cover; }
.rv-file figcaption { font-size: 12px; color: var(--muted, #6b7280); overflow-wrap: anywhere; }
.rv-note { margin: 0; padding: 8px 10px; border-left: 3px solid #006980; background: #f3f8fa; font-size: 14px; white-space: pre-line; }
.rv-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rv-link { width: 100%; font: inherit; padding: 8px; border: 1px solid var(--line, #c9d2d7); border-radius: 8px; }
.rv-picklist { display: grid; gap: 6px; max-height: 60vh; overflow: auto; }
.rv-pick { display: flex !important; grid-auto-flow: column; align-items: center; gap: 8px !important; }

/* Etappe 1: Menü, Kopfzeile, Suche, Startseite */
body.sb-mini .sidebar { width: 64px; }
body.sb-mini .sidebar .nav-label, body.sb-mini .sidebar .sb-search span, body.sb-mini .sidebar .sb-search kbd, body.sb-mini .sidebar .sb-ws-name, body.sb-mini .sidebar .sb-ws-select, body.sb-mini .sidebar .sb-ws > span:not(.sb-ws-mark) { display: none !important; }
body.sb-mini .sidebar .nav-link, body.sb-mini .sidebar .sb-search { justify-content: center; }
.nav-sep { height: 1px; background: var(--line, #e3e8eb); margin: 10px 8px; }
.sb-mini-btn { flex: 0 0 auto; }
.top-help, .top-settings { font-weight: 700; }
.top-help { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line, #dfe5e8); background: none; cursor: pointer; }
.lib-title { display: none; }
.search-main { max-width: 440px; width: 100%; margin: 0 auto; position: relative; display: flex; align-items: center; height: 36px; border-radius: 10px; }
.search-main input { height: 36px; font-size: 14px; }
.search-kind { border: 0; background: transparent; font: inherit; font-size: 13px; color: var(--muted, #6b7280); padding: 0 6px; cursor: pointer; border-left: 1px solid var(--line, #dfe5e8); }
.lib-main-head .lib-title-row { display: flex; align-items: center; gap: 16px; justify-content: center; }
.lib-title-row .btn-new { margin-left: 16px; height: 36px; padding: 0 14px; font-size: 14px; }
.tabs { display: grid; grid-template-columns: repeat(6, max-content); gap: 6px; }
.tabs .tab { height: 30px; padding: 0 10px; font-size: 13px; }
.zoom-ctl { display: inline-flex; align-items: center; gap: 6px; color: var(--muted, #6b7280); }
.zoom-ctl input { width: 120px; accent-color: #006980; }
.recent-edits { display: grid; gap: 4px; }
.re-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2fr); gap: 12px; align-items: center; padding: 8px 10px; border-radius: 8px; background: none; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.re-row:not(.re-head):hover { background: var(--sb-hover, #f0f4f6); }
.re-head { font-size: 12px; color: var(--muted, #6b7280); cursor: default; }
.re-t { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.re-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-sec { margin-bottom: 18px; }
.set-h { font-size: 14px; margin: 0 0 8px; }
.set-seg { display: flex; gap: 8px; }
.help-topics { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.help-topic { width: 100%; text-align: left; padding: 10px 12px; border: 1px solid var(--line, #dfe5e8); border-radius: 10px; background: none; font: inherit; cursor: pointer; }
.help-topics li p { margin: 6px 4px 4px; }

/* Smart PR */
.btn-link { background: none; border: 0; padding: 0; color: var(--accent, #006980); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; }
.pr-h { font-size: 16px; margin: 16px 0 6px; }
.pr-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pr-items li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line, #dfe5e8); border-radius: 10px; font-size: 14px; flex-wrap: wrap; }
.pr-items li > span { flex: 1; min-width: 0; }
.pr-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pr-table-wrap { overflow-x: auto; margin-top: 8px; }
.pr-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pr-table th, .pr-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line, #dfe5e8); vertical-align: top; }
.pr-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #6b7280); }
.pr-send { display: grid; gap: 12px; }
.pr-send label { display: grid; gap: 4px; font-size: 14px; }
.pr-send textarea, .pr-send input { font: inherit; width: 100%; box-sizing: border-box; }
.pr-links { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.pr-links li { display: grid; gap: 4px; font-size: 14px; }
.pr-links input { font: inherit; font-size: 13px; width: 100%; box-sizing: border-box; padding: 6px 8px; }

/* Suche: Typ-Auswahl sitzt innerhalb des Feldes */
.search.search-main { height: 56px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); box-shadow: 0 10px 30px -24px rgba(0,0,0,.35); padding-right: 6px; }
.search.search-main:focus-within { border-color: var(--teal); }
.search.search-main input { height: 54px; border: 0; box-shadow: none; background: transparent; padding-left: 48px; }
.search.search-main input:focus { border: 0; }
.search.search-main .search-kind { height: 36px; border: 0; border-left: 1px solid var(--line-2); padding: 0 10px; font-size: 14px; background: transparent; }

/* Startseite: Zuletzt bearbeitet als große Kacheln */
.recent-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.rt-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 150px; padding: 16px; text-align: left; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); }
.rt-tile:hover { border-color: var(--teal); box-shadow: 0 10px 28px -20px rgba(0,0,0,.35); }
.rt-ico { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 12px; background: var(--surface-2); color: var(--teal); }
.rt-t { font-size: 16px; font-weight: 600; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rt-tile small { color: var(--muted); font-size: 12px; }
@media (max-width: 1100px) { .recent-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Favoriten unter Mediathek */
.sb-nav .nav-link.nav-sub { padding-left: 30px; font-size: 13px; }
/* Menü-Kopf: Logo verdeckt den Einklapp-Schalter nicht */
.sb-top { position: relative; z-index: 3; min-height: 36px; }
.sb-mini-btn, .sb-close { position: relative; z-index: 4; }
.sb-bottom { position: relative; z-index: 1; }
/* Eingeklappt: nur der Einklapp-Schalter, kein Firmenzeichen daneben */
body.sb-mini .sb-top .sb-ws { display: none; }
body.sb-mini .sb-top { justify-content: center; }

/* Meine Auswahl: großer Button unten rechts, Ziel für Drag & Drop */
.basket-fab { min-height: 64px; min-width: 200px; padding: 0 24px; border-radius: 999px; font-size: 16px; font-weight: 600; gap: 12px; }
.basket-fab b { min-width: 28px; height: 28px; border-radius: 14px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; }
.basket-fab.drop-on { outline: 3px dashed var(--teal); outline-offset: 5px; transform: scale(1.04); }
.card[draggable="true"] { cursor: grab; }
/* Startseite: News, Für dich offen, Verwalten – dezente Kacheln */
.news-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(26px, 3vw, 40px) clamp(18px, 2vw, 28px); }
.news-card { min-height: 0; }
.soft-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.soft-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.soft-tile:hover { border-color: var(--teal); }
.soft-tile svg { color: var(--teal); }
.st-t { font-weight: 600; font-size: 15px; }
.soft-tile small { color: var(--muted); font-size: 12px; }
.news-cur-item, .news-pick-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 12px; margin-bottom: 8px; background: var(--surface); width: 100%; font: inherit; color: var(--ink); text-align: left; }
.news-pick-item { cursor: pointer; }
.news-cur-item .rc-t, .news-pick-item .rc-t { flex: 1; font-size: 14px; }
.news-cur-item .rc-thumb, .news-pick-item .rc-thumb { width: 72px; height: 44px; border-radius: 8px; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); flex: 0 0 auto; }
.news-cur-item .rc-thumb img, .news-pick-item .rc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-pick { max-height: 300px; overflow: auto; }

/* Mediathek: Medien links, Tabs und Angaben rechts */
.lib-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.lib-main-col { min-width: 0; }
.lib-body .grid { justify-content: start; }
.lib-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 18px; }
.lib-meta { border: 1px solid var(--line-2); border-radius: 14px; padding: 16px; background: var(--surface); font-size: 14px; }
.lm-thumb { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.lm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lm-title { font-size: 16px; margin: 0 0 10px; line-height: 1.3; }
.lm-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line-2); }
.lm-row span { color: var(--muted); }
.lm-row b { font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.lm-desc { margin: 10px 0 0; color: var(--ink-2, var(--ink)); }
.lm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.card.is-sel { outline: 2px solid var(--teal); outline-offset: 3px; }
.sb-ws-mark.has-logo { width: auto; min-width: 44px; height: 44px; padding: 0 2px; display: inline-flex; align-items: center; }
.sb-ws-mark.has-logo img { height: 40px; width: auto; max-width: 190px; object-fit: contain; }
@media (max-width: 1100px) { .lib-body { grid-template-columns: minmax(0, 1fr); } .lib-side { position: static; } }

/* Mediathek: ganz links ausrichten, Tabs horizontal, Angaben bündig mit dem Titel */
#view-library, #view-library .lib-body, #view-library .lib-main-col { max-width: none; width: 100%; margin-left: 0; margin-right: 0; }
#view-library .lib-body { align-items: start; grid-template-columns: minmax(0, 1fr) 300px; margin-top: 0; }
#view-library .lib-side { margin-top: 0; padding-top: 0; top: 0; }
#view-library .colbar { flex-wrap: wrap; overflow-x: visible; }

/* Mediathek: ganz links, Tabs waagerecht, Angaben oben bündig, größeres Logo, News sanft einblenden */
.shell:not(.no-sb) .main:has(#view-library:not([hidden])) { max-width: none; width: 100%; margin: 0; padding-left: clamp(18px, 2.2vw, 36px); }
#view-library .lib-main-head .lib-title-row { justify-content: flex-start; }
#view-library .search-main { margin: 0 0 0 auto; }
#view-library .lib-main-head .lib-title-row { flex-wrap: nowrap; }
#view-library .colbar { flex-direction: row; flex-wrap: wrap; margin-top: 0; }
#view-library .lib-body { margin-top: 0; }
#view-library .lib-side { margin-top: 0; top: 0; }
.sb-ws-mark.has-logo { height: 60px; min-width: 60px; }
.sb-ws-mark.has-logo img { height: 54px; max-width: 240px; }
.news-sec:not([hidden]) { animation: newsFade .7s ease both; }
.news-sec .news-row .rc-card { opacity: .92; }
@keyframes newsFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Mediathek, Runde 5: alles links, Tabs waagerecht, Angaben bündig mit den Assets, größeres Logo, News sichtbar */
#view-library .lib-body, #view-library .lib-main-col { display: block; width: 100%; max-width: none; margin: 0; padding: 0; }
#view-library .lib-main-head, #view-library .lib-title-row, #view-library .lib-head, #view-library .toolbar, #view-library .tools { justify-content: flex-start; margin-left: 0; }
#view-library .search-main { margin: 0 0 0 12px; }
#view-library .tools { margin-right: auto; }
#view-library .colbar { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
#view-library .colbar .ctab { flex: 0 0 auto; width: auto; }
.lib-grid-row { display: flex; align-items: flex-start; gap: 24px; width: 100%; }
.lib-grid-row > .grid { flex: 1 1 auto; min-width: 0; justify-content: start; margin-top: 0; }
.lib-side { position: sticky; top: 16px; flex: 0 0 300px; width: 300px; margin: 0; padding: 0; align-self: flex-start; }
.lib-meta { margin-top: 0; }
@media (max-width: 1100px) { .lib-grid-row { flex-direction: column; } .lib-side { position: static; width: 100%; flex: none; } }
.sb-ws-mark.has-logo { height: 72px; min-width: 72px; }
.sb-ws-mark.has-logo img { height: 64px; max-width: 280px; }
.news-empty { margin: 0; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: 14px; }
@media (max-width: 720px) {
  #view-library .lib-main-head .lib-title-row, #view-library .lib-head, #view-library .toolbar, #view-library .tools { flex-wrap: wrap; }
  #view-library .search-main { margin-left: 0; width: 100%; }
  .lib-grid-row, .lib-grid-row > .grid { min-width: 0; max-width: 100%; }
}
#view-library .lib-title-row .search-main { display: flex !important; visibility: visible; opacity: 1; flex: 0 1 460px; min-width: 240px; }
/* Sortierung läuft über die Spaltenköpfe der Detailliste – Auswahlmenü entfällt */
#view-library label.sort { display: none !important; }

/* Mediathek: Medientyp-Tabs dünn und klein, rechts bündig mit den Angaben; Suche so hoch wie „Neuer Inhalt“, etwas breiter */
#view-library .lib-title-row { align-items: center; }
#view-library .btn-new { height: 46px; }
#view-library .lib-title-row .search-main { flex: 0 1 600px; max-width: 680px; height: 46px; }
#view-library .lib-title-row .search-main input { height: 44px; font-size: 15px; }
#view-library .lib-filter-row { margin: 0 0 0 auto; flex: 0 0 auto; }
#view-library .lib-filter-row .tabs { display: flex; gap: 4px; border: 0; }
#view-library .lib-filter-row .tab { font-size: 12.5px; padding: 3px 8px; height: auto; min-height: 0; line-height: 1.3; border-radius: 6px; }
#view-library .lib-filter-row .tab .count { font-size: 11px; }
@media (max-width: 720px) { #view-library .lib-filter-row { margin: 8px 0 0; } }

/* Runde 6: Kategorie-Tabs schlank rechts bündig zur Angaben-Spalte, Suche so hoch wie der Button, Angaben fixiert */
#view-library .lib-filter-row { display: flex; justify-content: flex-end; margin: 0 0 12px; }
#view-library .lib-filter-row .tabs { display: inline-flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; border: 0; padding: 0; }
#view-library .lib-filter-row .tab { font-size: 12px; font-weight: 500; padding: 4px 10px; height: 26px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; line-height: 1; }
#view-library .lib-filter-row .tab[aria-selected="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
#view-library .lib-filter-row .tab .count { margin-left: 4px; font-size: 11px; opacity: .7; }
#view-library .lib-title-row { align-items: center; }
#view-library .btn-new { height: 48px; padding: 0 18px; }
#view-library .search.search-main { height: 48px; flex: 1 1 520px; max-width: 760px; }
#view-library .search.search-main input { height: 46px; }
.lib-side { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; align-self: flex-start; }
@media (max-width: 720px) {
  #view-library .search.search-main { flex: 1 1 100%; min-width: 0; width: 100%; max-width: 100%; }
  #view-library .lib-filter-row { justify-content: flex-start; }
  #view-library .lib-filter-row .tabs { justify-content: flex-start; max-width: 100%; }
}

/* Runde 7: „Meine Auswahl“ oben rechts über den Tabs, Angaben fixiert */
#view-library .lib-filter-row { flex-wrap: wrap; flex-direction: column; align-items: flex-end; width: 100%; max-width: 100%; min-width: 0; }
#view-library .lib-top-right { display: flex; justify-content: flex-end; width: 100%; margin-bottom: 10px; }
#view-library .lib-top-right:empty { display: none; }
#view-library .lib-filter-row .tabs { max-width: 100%; white-space: normal; }
.basket-fab.in-slot { position: static; right: auto; bottom: auto; box-shadow: none; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; background: transparent; color: var(--ink); border: 1px solid var(--teal); }
.basket-fab.in-slot b { font-size: 12px; }
.basket-fab.in-slot.bump { animation: none; }
@media (max-width: 720px) { #view-library .lib-filter-row { align-items: stretch; } #view-library .lib-top-right { justify-content: flex-start; } #view-library .lib-filter-row .tabs { justify-content: flex-start; } }

/* Runde 8: Kategorie-Zeile unter dem Titel mit Favoriten links, Suche doppelt so lang, Untertext entfällt */
#view-library #lib-sub { display: none; }
#view-library .lib-sub-row { display: flex; align-items: center; justify-content: flex-start; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
#view-library .lib-tabs { display: inline-flex; gap: 4px; flex-wrap: wrap; align-items: center; border: 0; padding: 0; }
#view-library .lib-tabs .tab, #view-library .fav-pill { font-size: 12px; font-weight: 500; padding: 4px 10px; height: 26px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; line-height: 1; cursor: pointer; color: var(--ink); }
#view-library .lib-tabs .tab[aria-selected="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
#view-library .fav-pill { border-color: var(--teal); color: var(--teal); }
#view-library .lib-filter-row .tabs { display: none; }
#view-library .search.search-main { flex: 1 1 1040px; max-width: 1520px; }
.basket-hint { margin: 0 0 12px; }

/* Runde 9: Mediathek-Kopf und Angaben bleiben beim Scrollen stehen; Kopf kompakter und höher gerückt */
.main:has(#view-library:not([hidden])) { padding-top: 12px; }
#view-library .lib-main-head { position: sticky; top: 0; z-index: 30; background: var(--bg); padding: 0 0 6px; margin: 0; }
#view-library .lib-title { font-size: clamp(22px, 2.4vw, 28px); margin: 0; }
#view-library .lib-sub-row { margin: 0 0 6px; }
#view-library .lib-filter-row { position: sticky; top: var(--lib-head-h, 110px); z-index: 29; background: var(--bg); margin: 0; padding: 2px 0 6px; }
#view-library .lib-top-right { margin-bottom: 4px; }
.lib-side { top: var(--lib-stick-h, 150px); max-height: calc(100vh - var(--lib-stick-h, 150px) - 16px); }

/* Runde 10: Seitenmenü eingeklappt = mehr Platz für Assets: eine Spalte mehr, schmalere Angaben-Spalte */
body.sb-mini #view-library .grid:not(.lay-small):not(.lay-large):not(.lay-xl):not(.lay-list):not(.lay-thumbs) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
body.sb-mini #view-library .lib-grid-row { gap: 16px; }
body.sb-mini #view-library .lib-side { width: 260px; flex-basis: 260px; }
body.lib-noside #view-library .lib-side { display: none; }
body.lib-noside #view-library .lib-grid-row > .grid { width: 100%; }
#view-library #btn-meta-toggle[aria-pressed="true"] { background: var(--ink); color: var(--surface); }

/* Runde 11: Kopf und Angaben stehen fest, nur die Assets scrollen; Suche mittig und breit; Buttons über den Angaben */
.shell:not(.no-sb) .main:has(#view-library:not([hidden])) { padding-bottom: 0; }
#view-library .lib-main-head, #view-library .lib-filter-row { position: static !important; top: auto !important; background: none; }
#view-library .lib-main-head { padding: 0 0 4px; }
#view-library .lib-title-row { display: flex; align-items: center; justify-content: flex-start; gap: 16px; }
#view-library .search.search-main { position: relative; margin: 0 auto !important; flex: 0 1 auto; width: min(1100px, 70vw); max-width: none; height: 40px; min-width: 0; border-radius: 12px; }
#view-library .search.search-main input { height: 38px; font-size: 14px; }
#view-library .lib-filter-row { display: flex; flex-direction: column; align-items: flex-end; margin: 0 0 6px; width: 100%; }
#view-library .lib-top-right { display: flex; justify-content: flex-end; align-items: center; gap: 8px; width: 100%; margin: 0; }
#view-library .lib-top-right:empty { display: none; }
#view-library .btn-new { height: 34px; padding: 0 12px; font-size: 13px; }
#view-library .lib-sub-row { margin: 0; }
#view-library .lib-grid-row { display: flex; align-items: stretch; gap: 20px; overflow: hidden; }
#view-library .lib-grid-row > .grid { flex: 1 1 auto; min-width: 0; min-height: 0; overflow-y: auto; align-content: start; padding-bottom: 24px; margin-top: 0; }
#view-library .lib-side { position: static !important; top: auto !important; flex: 0 0 300px; width: 300px; height: 100%; max-height: none; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
#view-library .lib-side-toggle { align-self: flex-end; width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; line-height: 1; font-size: 16px; padding: 0; }
#view-library .lib-side-toggle span { display: inline-block; transition: transform .2s; }
#view-library .lib-tabs .tab, #view-library .fav-pill { height: 24px; font-size: 12px; padding: 0 10px; }
body.lib-noside #view-library .lib-side { width: 40px; flex-basis: 40px; overflow: hidden; align-items: center; }
body.lib-noside #view-library .lib-side .lib-meta { display: none; }
body.lib-noside #view-library .lib-side-toggle { align-self: center; }
body.lib-noside #view-library .lib-side-toggle span { transform: rotate(180deg); }

/* Runde 12: volle Breite nutzen; Suche dünner und fest mittig oben */
.shell .main:has(#view-library:not([hidden])), .shell:not(.no-sb) .main:has(#view-library:not([hidden])) { max-width: none !important; width: 100% !important; margin: 0 !important; }
#view-library:not([hidden]), #view-library:not([hidden]) .lib-body, #view-library:not([hidden]) .lib-main-col { max-width: none !important; width: 100%; }
#view-library .lib-title-row { position: relative; min-height: 44px; }
#view-library .lib-title-row .search.search-main { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: min(820px, 56vw); height: 36px; margin: 0 !important; flex: none; }
#view-library .lib-title-row .search.search-main input { height: 34px; font-size: 13.5px; }
@media (max-width: 1100px) { #view-library .lib-title-row .search.search-main { position: static; transform: none; width: 100%; margin: 0 0 8px !important; } }

/* Runde 12: volle Breite, Suche mittig oben und dünner, Aktionen auf Höhe der Tabs */
.shell:not(.no-sb) .main:has(#view-library:not([hidden])) { max-width: none; width: 100%; }
#view-library .lib-title-row { position: relative; justify-content: center; min-height: 40px; }
#view-library .lib-title { position: absolute; left: 0; top: 50%; transform: translateY(-50%); white-space: nowrap; }
#view-library .search.search-main { width: min(960px, 100%); height: 36px; margin: 0 auto !important; flex: 0 1 960px; }
#view-library .search.search-main input { height: 34px; font-size: 14px; }
#view-library .lib-sub-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 8px; }
#view-library .lib-sub-row .lib-top-right { width: auto; display: flex; align-items: center; gap: 8px; }
#view-library .lib-filter-row:empty, #view-library .lib-filter-row:not(:has(*)) { display: none; }
#view-library .lib-filter-row { display: none; }
#view-library .btn-new { height: 24px; padding: 0 10px; font-size: 12px; }
#view-library .lib-sub-row .lib-top-right .basket-fab.in-slot { height: 24px; font-size: 12px; padding: 0 10px; }
@media (max-width: 720px) {
  #view-library .lib-title { position: static; transform: none; }
  #view-library .lib-title-row { flex-direction: column; align-items: stretch; }
  #view-library .search.search-main { width: 100%; flex: 1 1 auto; }
}

/* Runde 12: volle Breite, Suche mittig und dünn, Aktionen auf Tab-Höhe, Angaben wieder einblendbar */
.shell:not(.no-sb) .main:has(#view-library:not([hidden])) { max-width: none !important; width: 100%; }
#view-library .lib-title-row { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(300px, 820px) minmax(0, 1fr); align-items: center; gap: 16px; }
#view-library .lib-title-row .lib-title { grid-column: 1; justify-self: start; }
#view-library .lib-title-row .search.search-main { grid-column: 2; justify-self: center; width: 100%; height: 34px; margin: 0 !important; }
#view-library .lib-title-row .search.search-main input { height: 32px; font-size: 13px; }
#view-library .lib-sub-row { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
#view-library .lib-sub-row .lib-top-right { width: auto; margin-left: auto; align-items: center; }
#view-library .lib-sub-row .lib-links { display: none; }
#view-library .lib-filter-row { display: none !important; }
#view-library .lib-top-right { display: flex; align-items: center; gap: 8px; }
#view-library #btn-meta-show { display: none; }
body.lib-noside #view-library #btn-meta-show { display: inline-flex; }
#view-library #btn-new, #view-library #btn-new.btn-new { height: 30px; padding: 0 12px; font-size: 13px; }
#view-library .lib-top-right .basket-fab.in-slot { height: 30px; }
#view-library .lib-side { min-height: 0; }

/* Runde 12: volle Breite, Suche mittig und dünn, Aktionen auf Höhe der Tabs, Favoriten wie Tabs */
#view-library, #view-library .lib-body, #view-library .lib-main-col { max-width: none !important; width: 100% !important; }
#view-library .lib-title-row { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(280px, 720px) minmax(0, 1fr); align-items: center; gap: 16px; }
#view-library .lib-title-row .lib-title { grid-column: 1; justify-self: start; }
#view-library .search.search-main { grid-column: 2; justify-self: center; width: 100% !important; max-width: 720px; height: 34px !important; margin: 0 !important; border-radius: 10px; }
#view-library .search.search-main input { height: 32px !important; font-size: 13px; }
#view-library .search.search-main .icon { width: 14px; height: 14px; }
#view-library .lib-filter-row { display: none !important; }
#view-library .lib-sub-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
#view-library .lib-top-right { order: 2; margin-left: auto; width: auto; display: flex; gap: 8px; align-items: center; }
#view-library .lib-top-right:empty { display: none; }
#view-library .lib-top-right .btn-new, #view-library .lib-top-right .basket-fab.in-slot { height: 24px; font-size: 12px; padding: 0 10px; border-radius: 999px; }
#view-library .lib-tabs { order: 1; }
#view-library .lib-tabs .tab, #view-library .fav-pill { height: 22px; font-size: 12px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); line-height: 1; }
#view-library .lib-tabs .tab[aria-selected="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
#view-library .fav-pill { border-color: var(--line-2); color: var(--ink); }
#view-library .lib-side-toggle { width: 24px; height: 24px; }
body.lib-noside #view-library .lib-side { width: 36px; flex: 0 0 36px; }
body.lib-noside #view-library .lib-side-toggle { align-self: center; margin-top: 8px; }

/* Runde 12: volle Breite, Suche dünn und mittig oben, Aktionen auf Tab-Höhe, Angaben wieder einblendbar, alles etwas kleiner */
#view-library { width: 100%; }
#view-library .lib-main-col { width: 100%; }
#view-library .lib-title-row { position: relative; min-height: 34px; }
#view-library .lib-title { font-size: clamp(20px, 2vw, 24px); }
#view-library .search.search-main { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: min(880px, 46vw); height: 34px; margin: 0 !important; border-radius: 10px; }
#view-library .search.search-main input { height: 32px; font-size: 13px; }
#view-library .search.search-main .icon { left: 12px; }
#view-library .lib-sub-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; min-height: 30px; }
#view-library .lib-sub-row .lib-tabs { flex: 1 1 auto; min-width: 0; }
#view-library .lib-top-right { width: auto; flex: 0 0 auto; gap: 6px; margin: 0; }
#view-library .lib-top-right:empty { display: none; }
#view-library .lib-filter-row:empty, #view-library .lib-filter-row:has(> .lib-top-right:empty) { display: none; }
#view-library .lib-filter-row { display: none; }
#view-library .lib-links { display: none; }
#view-library .btn-new, #view-library #btn-new { height: 30px; padding: 0 10px; font-size: 12px; }
#view-library .basket-fab.in-slot { height: 30px; font-size: 12px; padding: 0 10px; }
#view-library .lib-tabs .tab, #view-library .fav-pill { height: 24px; font-size: 12px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font-weight: 500; }
#view-library .fav-pill { border-color: var(--line-2); color: var(--ink); }
#view-library .lib-tabs .tab[aria-selected="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
#view-library .lib-grid-row { gap: 14px; }
#view-library .lib-side { flex: 0 0 280px; width: 280px; }
body.lib-noside #view-library .lib-side { width: 34px; flex-basis: 34px; align-items: center; justify-content: flex-start; padding-top: 4px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; }
body.lib-noside #view-library .lib-side-toggle { align-self: center; }
body.lib-noside #view-library .lib-side::after { content: 'Angaben'; writing-mode: vertical-rl; font-size: 12px; color: var(--muted); letter-spacing: .04em; margin-top: 8px; }
body.lib-noside #view-library .lib-side:has(#btn-meta-toggle) { cursor: default; }
#view-library #btn-meta-show { display: none; height: 30px; padding: 0 10px; font-size: 12px; }
body.lib-noside #view-library #btn-meta-show { display: inline-flex; }
#view-library .lib-side-toggle { display: none; }
body.lib-noside #view-library .lib-side-toggle { display: inline-flex; }
#view-library .lib-side-toggle { display: inline-flex; }

/* Speicherkontingent in der Seitenleiste (direkt unter „Papierkorb“) */
.sb-storage { position: relative; margin: 10px 14px 6px; padding: 10px 12px 10px 40px; border-radius: 12px; background: var(--surface-3); font-size: 12.5px; color: var(--muted); min-width: 200px; }
.sb-storage > .icon { position: absolute; left: 12px; top: 12px; width: 18px; height: 18px; color: var(--teal); }
.sb-st-head { color: var(--ink); font-weight: 600; font-size: 13.5px; }
.sb-st-bar { height: 4px; border-radius: 999px; background: var(--line-2); margin: 8px 0 6px; overflow: hidden; }
.sb-st-bar i { display: block; height: 100%; border-radius: inherit; background: var(--teal); transition: width .3s ease; }
.sb-storage.warn .sb-st-bar i { background: #b7791f; }
.sb-storage.danger .sb-st-bar i { background: var(--danger); }
.sb-storage.danger .sb-st-text { color: var(--danger); font-weight: 600; }

/* Schriftgröße (Einstellungen → Schriftgröße) */
html.fs-gross body { zoom: 1.12; }
html.fs-sehr body { zoom: 1.25; }

/* News: Sujet-Auswahl und Bilder in Mitteilungen */
.sujet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-height: 60vh; overflow: auto; }
.sujet-grid .rc-card { width: 100%; }
.msg-img { display: block; width: 100%; max-height: 240px; object-fit: cover; border-radius: 12px; margin: 8px 0; }
.msg-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; margin-right: 12px; }
.msg-row:has(.msg-thumb) { display: flex; align-items: center; }

/* Mediathek-Kopfzeile: Suche ganz links, Aktionen ganz rechts; eingeklappte Seitenleiste nutzt die Breite */
#view-library .lib-sub-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#view-library .lib-sub-row > .search-main { order: -1; flex: 0 1 360px; max-width: 420px; margin: 0; }
#view-library .lib-sub-row > .lib-top-right { order: 9; margin-left: auto; }
#view-library .lib-sub-row > .lib-tabs { flex: 1 1 auto; min-width: 0; }
body.lib-noside #view-library .lib-sub-row > .search-main { flex-basis: 420px; max-width: none; }

/* Mediathek-Kopf, endgültige Regel: Suche ganz links, Buttons ganz rechts, Platz der eingeklappten Seitenleiste nutzen */
#view-library .lib-title-row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; }
#view-library .lib-title-row .search.search-main { position: static; transform: none; width: auto; order: -1; flex: 0 1 560px; max-width: 640px; height: 40px; margin: 0 !important; }
#view-library .lib-title-row .search.search-main input { height: 38px; font-size: 14px; }
#view-library .lib-title-row .lib-top-right { order: 2; margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 8px; width: auto; margin-bottom: 0; }
#view-library .lib-title-row .lib-top-right .basket-fab.in-slot { position: static; }
#view-library .lib-title-row .btn-new { display: inline-flex; }
body.lib-noside #view-library .lib-main-col { max-width: none; }

/* Mediathek-Kopf, Nachschärfung: Suche füllt links den freien Raum, rechte Gruppe passt ohne Überlauf */
#view-library .lib-title-row { flex-wrap: nowrap; }
#view-library .lib-title-row .search.search-main { flex: 1 1 auto; min-width: 0; max-width: 640px; margin-left: 0 !important; margin-right: 0 !important; left: auto; right: auto; }
#view-library .lib-title-row .lib-top-right { flex: 0 0 auto; min-width: 0; }
#view-library .lib-title-row .lib-top-right > * { flex-shrink: 0; white-space: nowrap; }
#view-library .lib-title-row .lib-top-right .basket-fab.in-slot { position: static !important; transform: none !important; }
#view-library .lib-title-row .lib-top-right .basket-fab.in-slot { display: inline-flex; }

/* Mediathek-Kopf, endgültig: Suche bündig mit Favoriten links, rechte Gruppe ganz rechts, kein Grid mehr */
#view-library .lib-title-row { display: flex !important; grid-template-columns: none !important; justify-content: flex-start !important; flex-wrap: nowrap !important; align-items: center !important; gap: 12px !important; min-height: 44px; position: relative !important; margin-left: 0 !important; padding-left: 0 !important; }
#view-library .lib-title-row .lib-title { grid-column: auto !important; justify-self: auto !important; }
#view-library .lib-title-row .search.search-main { grid-column: auto !important; justify-self: auto !important; position: relative !important; left: auto !important; right: auto !important; top: auto !important; transform: none !important; order: -1 !important; flex: 1 1 auto !important; width: auto !important; min-width: 0 !important; max-width: none !important; margin: 0 !important; height: 40px !important; }
#view-library .lib-title-row .search.search-main input { height: 38px !important; }
#view-library .lib-title-row .lib-top-right { order: 2 !important; margin-left: auto !important; flex: 0 0 auto !important; display: flex !important; align-items: center !important; justify-content: flex-end !important; gap: 8px !important; width: auto !important; }
#view-library .lib-main-head > .lib-title-row { width: 100% !important; max-width: none !important; justify-self: stretch !important; box-sizing: border-box; }
#view-library .lib-title-row .search.search-main { width: auto !important; flex: 1 1 auto !important; max-width: none !important; }
#view-library .lib-main-head { grid-template-columns: minmax(0, 1fr) !important; width: 100%; box-sizing: border-box; }

/* Metadaten-Schalter: nur Symbol, rechts in der Filterzeile */
.meta-toggle { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.meta-toggle .meta-lbl { font-size: 13px; color: var(--muted); white-space: nowrap; }
.meta-toggle .icon-btn { width: 34px; height: 34px; }

/* Bild bearbeiten */
.imgedit-ov { position: fixed; inset: 0; background: rgba(10,20,25,.55); display: grid; place-items: center; z-index: 1000; padding: 16px; }
.imgedit { background: var(--surface); border-radius: 14px; width: min(1100px, 100%); max-height: 92vh; display: flex; flex-direction: column; box-shadow: 0 30px 80px -30px rgba(0,0,0,.5); }
.imgedit-head, .imgedit-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.imgedit-foot { border-top: 1px solid var(--line-2); border-bottom: 0; justify-content: flex-end; }
.imgedit-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; padding: 16px; overflow: auto; }
.imgedit-stage { position: relative; min-height: 320px; display: grid; place-items: center; background: #0d1517; border-radius: 10px; overflow: hidden; }
.imgedit-cv { max-width: 100%; max-height: 70vh; height: auto; width: auto; }
.imgedit-load { position: absolute; }
.imgedit-side { display: flex; flex-direction: column; gap: 12px; }
.imgedit-row { display: grid; grid-template-columns: 90px 1fr 36px; align-items: center; gap: 8px; font-size: 14px; }
.imgedit-row output { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .imgedit-body { grid-template-columns: 1fr; } }

/* Gesichter: Auswahl im Bild und Zuordnung nach dem Upload */
.face-box.dim { opacity: .35; }
.face-box.sel { border-color: var(--teal); border-style: solid; box-shadow: 0 0 0 2px rgba(0,105,128,.45); }
.face-list li { cursor: pointer; border-radius: 10px; }
.face-list li.sel { outline: 2px solid var(--teal); outline-offset: 2px; }
.faceassign { width: min(860px, 100%); }
.faceassign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; padding: 16px; overflow: auto; }
.faceassign-grid .face-q { display: grid; gap: 6px; justify-items: center; }
.faceassign-grid small { color: var(--muted); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.faceassign-hint { padding: 0 16px; }

/* Suchleiste über die volle Breite; Neuer Inhalt und Assets zur Freigabe rechts in der Zeile darunter */
#view-library .lib-title-row { flex-wrap: wrap !important; row-gap: 10px !important; }
#view-library .lib-title-row .search.search-main { flex: 1 1 100% !important; width: 100% !important; max-width: none !important; }
#view-library .lib-title-row .lib-top-right { margin-left: auto !important; }

/* Suchleiste halb so breit wie der Inhaltsbereich; Neuer Inhalt und Assets zur Freigabe rechts in derselben Zeile */
#view-library .lib-title-row { flex-wrap: nowrap !important; row-gap: 0 !important; }
#view-library .lib-title-row .search.search-main { flex: 0 0 50% !important; width: 50% !important; max-width: 50% !important; min-width: 0 !important; }
#view-library .lib-title-row .lib-top-right { margin-left: auto !important; }

/* Metadaten ein/aus: rechts auf Höhe von „Auswählen“; aktives Wort schwarz */
.meta-toggle { display: inline-flex; align-items: center; gap: 8px; margin-left: auto !important; order: 99; }
.meta-toggle .meta-lbl { font-size: 13px; color: var(--muted); white-space: nowrap; }
.meta-toggle .meta-lbl .on { color: var(--ink, #111); font-weight: 600; }
#btn-select { order: 98; }
#view-library .lib-side { align-self: flex-start !important; margin-top: 0 !important; }
/* Symbol und Beschriftung immer sichtbar; Leiste über die volle Breite, damit „Metadaten ein/aus“ ganz rechts steht */
#view-library #btn-meta-show { display: inline-flex !important; height: 34px; width: 34px; padding: 0; }
#view-library .tools { width: 100%; box-sizing: border-box; }
#view-library .meta-toggle { margin-left: auto !important; }

/* Menü eingeklappt: die Mediathek nutzt die frei gewordene Breite links; Suche und Filter rutschen an den linken Rand */
body.sb-mini { --sb-w: 64px; }
body.sb-mini .shell:not(.no-sb) .main:has(#view-library:not([hidden])) { padding-left: 16px; }
/* Eingeklappte Seitenleiste: Speicherkarten und Bereichsüberschrift ausblenden, damit nichts über den Rand ragt */
body.sb-mini .sidebar .nav-section-title, body.sb-mini .sidebar .nav-group-label { display: none !important; }
body.sb-mini .sb-nav::before { display: none; }

/* Metadaten: schwarzer Schalter am Fensterrand entfällt (Umschalten über „Metadaten ein/aus“); eingeklappt bleibt das Symbol */
body:not(.lib-noside) #view-library .lib-side-toggle { display: none !important; }
/* Symbol neben „Metadaten ein/aus“ doppelt so groß */
#view-library #btn-meta-show { height: 68px !important; width: 68px !important; }
#view-library #btn-meta-show svg { width: 40px !important; height: 40px !important; }

/* Geteilt: gespeicherte Freigabe-Pakete unten */
.pack-section { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line, #e3e3e3); }
.pack-head { font-size: 1.1rem; margin: 0 0 12px; }

/* Schalter halb so groß; Menü-Schalter gleich groß */
#view-library #btn-meta-show { height: 34px !important; width: 34px !important; }
#view-library #btn-meta-show svg { width: 20px !important; height: 20px !important; }
.sidebar .icon-btn.sb-mini-btn { width: 34px; height: 34px; }
.sidebar .icon-btn.sb-mini-btn svg { width: 20px; height: 20px; }
/* Gespeicherte Pakete im Korb */
.basket-packs { margin-top: 16px; }
.basket-pack { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line, #e3e3e3); }
.basket-pack .re-title { flex: 1; min-width: 0; }
.basket-pack .re-title small { display: block; color: var(--muted); }

/* News-Editor: großes Vorschaufenster, Bild in voller Größe passend */
.newsed-ov { position: fixed; inset: 0; z-index: 260; background: rgba(8,20,24,.55); display: grid; place-items: center; padding: 14px; }
.newsed { width: min(1320px, 96vw); max-height: 96vh; display: flex; flex-direction: column; background: #fff; color: var(--ink); border-radius: 20px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.5); overflow: hidden; }
.newsed-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line-2, #e6e6e6); }
.newsed-head b { font-size: 18px; }
.newsed-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line-2, #e6e6e6); }
.newsed-sep { width: 1px; height: 26px; background: var(--line-2, #e6e6e6); margin: 0 4px; }
.newsed-lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.newsed-lbl input[type=color] { width: 36px; height: 30px; border: 0; background: none; padding: 0; cursor: pointer; }
.newsed-lbl input[type=range] { width: 140px; }
.newsed-txt { width: 220px; max-width: 100%; }
.newsed-file { cursor: pointer; position: relative; }
.newsed-stage { position: relative; flex: 1 1 auto; min-height: 0; display: grid; place-items: center; background: #0b1f24; padding: 18px; overflow: auto; }
.newsed-cv { display: block; width: auto; height: auto; max-width: 100%; max-height: min(74vh, 1000px); border-radius: 6px; box-shadow: 0 12px 40px rgba(0,0,0,.4); touch-action: none; cursor: default; background: #0b1f24; }
.newsed-hint { position: absolute; color: #cfe6ea; font-size: 15px; margin: 0; pointer-events: none; }
.newsed-foot { display: flex; align-items: center; gap: 10px; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid var(--line-2, #e6e6e6); }
.newsed-msg { margin-right: auto; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .newsed-lbl input[type=range] { width: 100px; } .newsed-txt { width: 160px; } }

/* News: Doppelklick → großes Bild (92 % Breite, 88 % Höhe, Seitenverhältnis bleibt) */
.nl-ov { position: fixed; inset: 0; z-index: 280; background: rgba(6,14,17,.86); display: grid; place-items: center; cursor: zoom-out; }
.nl-img { width: auto; height: auto; max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.nl-close { position: absolute; top: 16px; right: 16px; background: #fff; }

/* Startseite nutzt wie Smart Assets die volle Breite */
.shell:not(.no-sb) .main:has(#view-home:not([hidden])) { max-width: none; width: 100%; }
#view-home, #view-home .home, #view-home .home-head { max-width: none; width: 100%; }

/* ---------- Seitenköpfe: gleiche Größe für Medienarchiv, Geteilt, Schulungen, Service Portal, Externe Produktion, Presseportal ---------- */
.hero-head { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
h1.hero-title { display: block; margin: 0; font-family: var(--font); font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -.045em; font-weight: 700; }
h1.hero-title em { font-family: var(--font); font-style: normal; color: inherit; }
.hero-sub { margin: 0; color: var(--muted); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.45; max-width: 760px; }

/* ---------- Schulungen: volle Breite, Liste oder Kacheln ---------- */
#view-academy .lw.ac { max-width: none; }
.ac-layout { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.ac-layout button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line, #dfe5e8); background: var(--surface, #fff); color: var(--muted, #6b7280); font: inherit; font-size: 14px; cursor: pointer; }
.ac-layout button svg { width: 16px; height: 16px; }
.ac-layout button[aria-pressed="true"] { color: var(--ink, #111); border-color: var(--teal, #006980); box-shadow: inset 0 0 0 1px var(--teal, #006980); }
.ac-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.ac-card { min-height: 170px; }
.ac-card .late { color: #b42318; }

/* ---------- Formulare (Externe Produktion, Presseportal): klarer, moderner ---------- */
.rv-card { border-radius: 18px; padding: 26px; margin-top: 18px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); display: grid; gap: 16px; }
.rv-card h2 { font-size: 19px; letter-spacing: -.01em; margin: 0; }
.rv-card label { gap: 6px; font-size: 14px; font-weight: 600; }
.rv-card input, .rv-card select, .rv-card textarea { font: inherit; font-weight: 400; width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line, #dfe5e8); background: var(--surface, #fff); color: var(--ink, #111); transition: border-color .15s, box-shadow .15s; }
.rv-card textarea { min-height: 110px; resize: vertical; }
.rv-card input:focus, .rv-card select:focus, .rv-card textarea:focus { outline: none; border-color: var(--teal, #006980); box-shadow: 0 0 0 3px rgba(0, 105, 128, .15); }
.rv-card .btn { justify-self: start; height: 44px; padding: 0 22px; border-radius: 12px; }
.rv-wrap .hero-head { margin-bottom: 8px; }

/* ---------- Alle Bereiche nutzen die volle Breite wie die Mediathek ---------- */
.shell:not(.no-sb) .main:has(> section[id^="view-"]:not([hidden])) { max-width: none; width: 100%; }
.lw, .lw-narrow, .rv-wrap, .adm-page, .settings, .home2, .sk-app, .sk-widgets, .pp-bar, .pg-head { max-width: none; }
.main:has(> section[id^="view-"]:not([hidden])) > section > .lw,
.main:has(> section[id^="view-"]:not([hidden])) > section > .rv-wrap,
.main:has(> section[id^="view-"]:not([hidden])) > section > .pg { max-width: none; width: 100%; }

/* ---------- KI Helpdesk: Bereiche, Problemlösungen, Veröffentlichung ---------- */
.kh-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-bottom: 22px; }
.kh-new { display: flex; align-items: flex-start; gap: 14px; padding: 18px; min-height: 96px; text-align: left; border-radius: 18px; border: 1.5px dashed var(--line, #cfd8dc); background: var(--surface, #fff); cursor: pointer; font: inherit; color: var(--ink, #111); transition: border-color .15s, background .15s; }
.kh-new:hover { border-color: var(--teal, #006980); background: rgba(0, 105, 128, .04); }
.kh-new svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--teal, #006980); margin-top: 2px; }
.kh-new span { display: grid; gap: 4px; }
.kh-new small { color: var(--muted, #6b7280); font-size: 13.5px; line-height: 1.4; }
.kh-new-main { border-style: solid; border-color: var(--teal, #006980); background: rgba(0, 105, 128, .06); }
.kh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.kh-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; text-align: left; border-radius: 18px; border: 1px solid var(--line, #dfe5e8); background: var(--surface, #fff); cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, transform .15s; }
.kh-card:hover { border-color: var(--teal, #006980); transform: translateY(-1px); }
.kh-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kh-card-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3, #f1f4f6); color: var(--ink, #111); }
.kh-card-ico.prob { background: rgba(0, 105, 128, .12); color: var(--teal, #006980); }
.kh-card-ico svg { width: 20px; height: 20px; }
.kh-card-name { font-size: 17px; letter-spacing: -.01em; }
.kh-card-sub { color: var(--muted, #6b7280); font-size: 13px; }
.kh-card-foot { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: auto; padding-top: 6px; }
.kh-warn-t { color: #b45309; display: inline-flex; align-items: center; gap: 4px; }
.kh-warn-t svg { width: 14px; height: 14px; }
.kh-none { margin-top: 8px; }
.kh-foot { margin-top: 18px; }
.kh-dlg-body { display: grid; gap: 26px; }
.kh-sec { display: grid; gap: 14px; }
.kh-sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.kh-sec-head h3 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.kh-sec-head .hint { margin: 4px 0 0; }
.kh-probs { display: grid; gap: 10px; }
.kh-prob { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line, #dfe5e8); background: var(--surface, #fff); }
.kh-prob-txt { display: grid; gap: 6px; min-width: 0; }
.kh-prob-txt h4 { margin: 0; font-size: 15.5px; }
.kh-prob-txt p { margin: 0; color: var(--muted, #4b5563); line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.kh-prob-acts { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }
.kh-empty { display: grid; justify-items: center; gap: 6px; padding: 28px 18px; border-radius: 16px; border: 1.5px dashed var(--line, #cfd8dc); text-align: center; }
.kh-empty svg { width: 28px; height: 28px; color: var(--teal, #006980); }
.kh-pub { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 10px; }
.kh-pub-opt { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line, #dfe5e8); background: var(--surface, #fff); cursor: pointer; font: inherit; color: inherit; text-align: left; }
.kh-pub-opt svg { width: 20px; height: 20px; color: var(--teal, #006980); flex: 0 0 auto; }
.kh-pub-opt[aria-checked="true"] { border-color: var(--teal, #006980); box-shadow: inset 0 0 0 1px var(--teal, #006980); background: rgba(0, 105, 128, .05); }
.kh-pub-panel:empty { display: none; }
.kh-panel { display: flex; gap: 18px; align-items: flex-start; padding: 18px; border-radius: 16px; background: var(--surface-3, #f6f8f9); }
.kh-panel > div { display: grid; gap: 8px; min-width: 0; flex: 1; }
.kh-panel p { margin: 0; }
.kh-qr svg { width: 128px; height: 128px; display: block; }
.kh-link { display: flex; gap: 8px; align-items: center; }
.kh-link .input { flex: 1; min-width: 0; }
.kh-mail { margin: 0; }
.kh-dlg-foot { display: flex; justify-content: flex-start; border-top: 1px solid var(--line, #dfe5e8); padding-top: 14px; }

/* ---------- Medienarchiv: Seitenname oben links größer, mit Untertitel ---------- */
.crumb.crumb-big { display: flex; flex-direction: column; gap: 2px; white-space: normal; overflow: visible; line-height: 1.15; }
.crumb-big .crumb-t { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.crumb-big .crumb-s { font-size: 14px; font-weight: 400; color: var(--muted, #6b7280); }

/* ---------- Medienarchiv, Geteilt, Schulungen, Service Portal, Externe Produktion, Presseportal, KI Helpdesk:
   Name nur oben links (groß, mit Untertitel); keine zweite Überschrift im Inhalt ---------- */
#view-shares .lib-head h1.hero-title, #view-shares .lib-head .hero-sub, #view-shares .hero-head, #view-academy .hero-head, #view-feedback .hero-head, #view-review .hero-head, #view-pr .hero-head, #view-knowledge .hero-head { display: none; }
#view-academy .lw-head:has(> .hero-head:only-child), #view-knowledge .sk-head:has(> .hero-head:only-child) { display: none; }
.crumb-big .crumb-s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ---------- Seitenname groß: etwas tiefer, Untertitel größer, Luft zum Inhalt ---------- */
.topbar-in:has(.crumb-big) { height: auto; min-height: 68px; padding-top: 26px; padding-bottom: 22px; align-items: center; }
.crumb-big { gap: 6px; }
.crumb-big .crumb-t { font-size: 30px; line-height: 1.1; }
.crumb-big .crumb-s { font-size: 16.5px; line-height: 1.4; }
.main:has(> section[id^="view-"]:not([hidden])) { scroll-margin-top: 0; }
#view-library:not([hidden]), #view-shares:not([hidden]), #view-academy:not([hidden]), #view-feedback:not([hidden]),
#view-review:not([hidden]), #view-pr:not([hidden]), #view-knowledge:not([hidden]) { padding-top: 10px; }
@media (max-width: 760px) {
  .topbar-in:has(.crumb-big) { padding-top: 14px; padding-bottom: 12px; }
  .crumb-big .crumb-t { font-size: 22px; }
  .crumb-big .crumb-s { font-size: 14px; white-space: normal; }
}
/* Seitenname und Untertitel noch etwas tiefer */
.topbar-in:has(.crumb-big) { padding-top: 40px; }
/* Seitenname groß: Leiste darf höher werden (überschreibt die feste Höhe 46 px im Layout mit Menü) */
.shell:not(.no-sb) .topbar-in:has(.crumb-big) { height: auto !important; min-height: 46px; padding: 40px 16px 26px !important; align-items: flex-start; }
.shell:not(.no-sb) .topbar-in:has(.crumb-big) > :not(.crumb) { align-self: flex-start; }
@media (max-width: 760px) { .shell:not(.no-sb) .topbar-in:has(.crumb-big) { padding: 16px 14px 12px !important; } }
/* Seitenname höher, weniger Abstand */
.shell:not(.no-sb) .topbar-in:has(.crumb-big) { padding: 20px 16px 10px !important; }
.crumb-big { gap: 3px; }
#view-library:not([hidden]), #view-shares:not([hidden]), #view-academy:not([hidden]), #view-feedback:not([hidden]),
#view-review:not([hidden]), #view-pr:not([hidden]), #view-knowledge:not([hidden]) { padding-top: 0; }
.crumb.crumb-big { gap: 6px; }

/* ---------- KI Helpdesk: Übersicht und Einrichtung ---------- */
.kh-ov-head { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.kh-cta { height: 44px; padding: 0 20px; border-radius: 12px; }
.kh-empty-ov { padding: 40px 18px; }
.kh-setup { gap: 18px; }
.kh-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted, #6b7280); text-decoration: none; font-size: 14px; width: max-content; }
.kh-back svg { width: 16px; height: 16px; }
.kh-back:hover { color: var(--ink, #111); }
.kh-back:focus-visible, .kh-drop:focus-visible, .kh-setup .btn:focus-visible, .kh-setup .icon-btn:focus-visible, .kh-setup .link-btn:focus-visible { outline: 2px solid var(--teal, #006980); outline-offset: 2px; }
.kh-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; }
.kh-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.kh-name { margin: 0; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }
.kh-rename { font-size: 14px; }
.kh-act { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.kh-act .btn { height: 44px; padding: 0 20px; border-radius: 12px; }
.kh-act-hint { margin: 0; color: var(--muted, #6b7280); font-size: 14px; max-width: 420px; text-align: right; }
.kh-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.kh-area { display: grid; gap: 14px; padding: 22px; border-radius: 18px; border: 1px solid var(--line, #dfe5e8); background: var(--surface, #fff); min-width: 0; }
.kh-area-head h3 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.kh-area-head .hint { margin: 4px 0 0; }
.kh-area-head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.kh-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 150px; padding: 20px; border-radius: 14px; border: 1.5px dashed var(--line, #cfd8dc); background: var(--surface-3, #f6f8f9); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.kh-drop > svg { width: 26px; height: 26px; color: var(--teal, #006980); }
.kh-drop > span:first-of-type { display: grid; gap: 2px; }
.kh-drop small { color: var(--muted, #6b7280); }
.kh-drop:hover, .kh-drop.over { border-color: var(--teal, #006980); background: rgba(0, 105, 128, .05); }
.kh-drop.disabled { opacity: .5; cursor: not-allowed; }
.kh-types { margin-top: -6px; }
.kh-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kh-item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line, #dfe5e8); }
.kh-item-main { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 200px; }
.kh-item-main svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--muted, #6b7280); }
.kh-item-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kh-item-side { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }
.kh-item-err { flex-basis: 100%; margin: 0; color: #b42318; font-size: 13px; }
.kh-none-row { list-style: none; padding: 4px 2px; }
.kh-st { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.kh-st svg { width: 13px; height: 13px; }
.kh-st-ready { background: #e7f5ee; color: #146c43; }
.kh-st-processing, .kh-st-uploading { background: rgba(0, 105, 128, .1); color: var(--teal, #006980); }
.kh-st-error, .kh-st-upfail { background: #fdecea; color: #b42318; }
.kh-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: khPulse 1.2s ease-in-out infinite; }
@keyframes khPulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .kh-dot { animation: none; } }
.kh-prob { align-items: flex-start; }
.kh-prob-txt { display: grid; gap: 4px; min-width: 0; flex: 1 1 220px; }
.kh-prob-txt p { margin: 0; color: var(--muted, #4b5563); line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.kh-item-form { display: block; padding: 0; border: 0; }
.kh-pform { display: grid; gap: 12px; padding: 16px; border-radius: 14px; border: 1.5px solid var(--teal, #006980); background: rgba(0, 105, 128, .03); }
.kh-pform .form-error { margin: 0; }
.kh-pform-acts { display: flex; justify-content: flex-end; gap: 8px; }
.kh-pform [aria-invalid="true"] { border-color: #b42318; }
.kh-more { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--line, #dfe5e8); }
@media (max-width: 900px) {
  .kh-cols { grid-template-columns: 1fr; }
  .kh-head { align-items: stretch; }
  .kh-act { justify-content: flex-start; }
  .kh-act-hint { text-align: left; }
  .kh-act .btn { width: 100%; justify-content: center; }
}

/* ---------- Externe Produktionen ---------- */
.rvx { max-width: none; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.rvx-ov-head { display: flex; gap: 10px; }
.rvx-cta { height: 44px; padding: 0 20px; border-radius: 12px; }
.rvx-table { display: grid; border: 1px solid var(--line, #dfe5e8); border-radius: 18px; overflow: hidden; background: var(--surface, #fff); }
.rvx-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, 1.6fr); gap: 14px; align-items: center; padding: 16px 20px; color: inherit; text-decoration: none; border-top: 1px solid var(--line, #dfe5e8); }
.rvx-row:first-child { border-top: 0; }
.rvx-row { position: relative; }
.rvx-stretch { color: inherit; text-decoration: none; }
.rvx-stretch::after { content: ''; position: absolute; inset: 0; }
.rvx-row:focus-within { background: var(--surface-3, #f6f8f9); }
.rvx-c-del { position: relative; z-index: 2; justify-self: end; }
.rvx-table-mgr .rvx-row { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, 1.6fr) auto; }
.rvx-row:not(.rvx-row-head):hover { background: var(--surface-3, #f6f8f9); }
.rvx-row:focus-visible { outline: 2px solid var(--teal, #006980); outline-offset: -2px; }
.rvx-row-head { padding-top: 12px; padding-bottom: 12px; font-size: 12.5px; font-weight: 600; color: var(--muted, #6b7280); text-transform: uppercase; letter-spacing: .04em; background: var(--surface-3, #f6f8f9); }
.rvx-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rvx-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--surface-3, #eef2f4); color: var(--ink, #111); }
.rvx-chip-review { background: rgba(0, 105, 128, .12); color: var(--teal, #006980); }
.rvx-chip-waiting, .rvx-chip-changes { background: #fff4e5; color: #9a5b00; }
.rvx-chip-approved { background: #e7f5ee; color: #146c43; }
.rvx-next { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted, #4b5563); }
.rvx-next svg { width: 15px; height: 15px; flex: 0 0 auto; }
.rvx-next-team { color: var(--teal, #006980); font-weight: 600; }
.rvx-next-producer { color: #9a5b00; }
.rvx-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px 24px; flex-wrap: wrap; }
.rvx-title { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; min-width: 0; }
.rvx-meta { display: inline-flex; align-items: center; gap: 6px; color: var(--muted, #6b7280); font-size: 14px; }
.rvx-meta svg { width: 15px; height: 15px; }
.rvx-head-act .btn { height: 44px; padding: 0 20px; border-radius: 12px; }
/* Zeitleiste */
.rvx-tl-wrap { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; padding: 4px 2px 8px; scrollbar-width: thin; }
.rvx-tl { list-style: none; margin: 0; padding: 0; display: flex; min-width: max-content; }
.rvx-step { position: relative; flex: 0 0 auto; scroll-snap-align: center; }
.rvx-step::after { content: ''; position: absolute; top: 25px; left: calc(50% + 22px); width: calc(100% - 44px); height: 2px; background: var(--line, #dfe5e8); }
.rvx-step:last-child::after { display: none; }
.rvx-step.is-done::after { background: var(--teal, #006980); }
.rvx-step button { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 132px; padding: 4px 12px 10px; background: none; border: 0; border-radius: 12px; cursor: pointer; font: inherit; color: var(--muted, #6b7280); }
.rvx-step button:hover { color: var(--ink, #111); }
.rvx-step button:focus-visible { outline: 2px solid var(--teal, #006980); outline-offset: 2px; }
.rvx-dot { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface, #fff); border: 2px solid var(--line, #cfd8dc); color: var(--muted, #6b7280); transition: transform .15s; }
.rvx-dot svg { width: 18px; height: 18px; }
.rvx-dot b { font-size: 16px; }
.rvx-step.is-done .rvx-dot { border-color: var(--teal, #006980); color: var(--teal, #006980); }
.rvx-step.is-current .rvx-dot { background: var(--teal, #006980); border-color: var(--teal, #006980); color: #fff; box-shadow: 0 0 0 5px rgba(0, 105, 128, .16); }
.rvx-step-changes.is-done .rvx-dot, .rvx-step-changes.is-current .rvx-dot { border-color: #c27a00; color: #9a5b00; }
.rvx-step-changes.is-current .rvx-dot { background: #c27a00; color: #fff; box-shadow: 0 0 0 5px rgba(194, 122, 0, .16); }
.rvx-step-approved.is-current .rvx-dot { background: #198754; border-color: #198754; box-shadow: 0 0 0 5px rgba(25, 135, 84, .16); }
.rvx-step-l { font-size: 14px; font-weight: 600; white-space: nowrap; }
.rvx-step small { font-size: 12px; min-height: 16px; }
.rvx-step.is-current .rvx-step-l { color: var(--ink, #111); }
.rvx-step.is-sel button { background: var(--surface-3, #eef2f4); color: var(--ink, #111); }
.rvx-step.is-sel .rvx-dot { transform: scale(1.06); }
/* Inhalt */
.rvx-panel { display: grid; gap: 18px; min-width: 0; }
.rvx-sec { display: grid; gap: 14px; padding: 22px; border-radius: 18px; border: 1px solid var(--line, #dfe5e8); background: var(--surface, #fff); min-width: 0; }
.rvx-sec h3 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.rvx-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.rvx-sec-act { display: flex; gap: 8px; flex-wrap: wrap; }
.rvx-grid2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.rvx-brief { line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }
.rvx-brief-form { display: grid; gap: 12px; }
.rvx-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.rvx-file { margin: 0; display: grid; gap: 8px; align-content: start; min-width: 0; }
.rvx-prev { aspect-ratio: 16 / 10; border-radius: 12px; background: var(--surface-3, #eef2f4); display: grid; place-items: center; overflow: hidden; gap: 8px; color: var(--muted, #6b7280); }
.rvx-prev img, .rvx-prev video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.rvx-prev img { background: var(--surface-3, #eef2f4); }
.rvx-prev > svg { width: 28px; height: 28px; }
.rvx-prev-pdf { grid-auto-flow: row; align-content: center; justify-items: center; }
.rvx-play { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--teal, #006980); color: #fff; display: grid; place-items: center; cursor: pointer; }
.rvx-play svg { width: 22px; height: 22px; }
.rvx-file figcaption { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rvx-fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14px; }
.rvx-file figcaption small { color: var(--muted, #6b7280); font-size: 12px; white-space: nowrap; }
.rvx-rm { justify-self: start; font-size: 13px; }
.rvx-ffb textarea { font-size: 14px; }
.rvx-fnote { margin: 0; padding: 8px 10px; border-radius: 10px; background: #fff4e5; color: #6b4200; font-size: 13.5px; }
.rvx-msg { margin: 0; display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-3, #f6f8f9); color: var(--ink, #111); }
.rvx-msg svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--muted, #6b7280); margin-top: 2px; }
.rvx-state { display: flex; align-items: center; gap: 14px; grid-template-columns: none; }
.rvx-state > svg { width: 26px; height: 26px; color: var(--teal, #006980); flex: 0 0 auto; }
.rvx-state p { margin: 2px 0 0; }
.rvx-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; }
.rvx-actions .btn { min-height: 42px; }
.rvx-actions .hint { margin-right: auto; }
.rvx-decide { border-color: var(--teal, #006980); }
.rvx-changes { border-color: #e8c27a; background: #fffaf2; }
.rvx-fb { line-height: 1.6; overflow-wrap: anywhere; }
.rvx-fblist { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.rvx-fblist li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid #f0dcb2; }
.rvx-approved { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-color: #a7d7bd; background: #f3fbf6; }
.rvx-approved > svg { width: 30px; height: 30px; color: #198754; }
.rvx-approved > div:first-of-type { flex: 1; }
.rvx-approved p { margin: 2px 0 0; color: var(--muted, #4b5563); }
.rvx-submit { border-color: var(--teal, #006980); }
.rvx-prod-form { display: grid; gap: 12px; }
.rvx-prod-new { display: grid; gap: 12px; }
.rvx-prod-sel { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.rvx-prod-sel svg { width: 16px; height: 16px; }
.rvx-draft-hint { margin: 0; }
.rvx-pick { display: grid; gap: 12px; }
.rvx-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; max-height: 55vh; overflow: auto; }
.rvx-pick-item { display: grid; gap: 6px; padding: 6px; border-radius: 12px; border: 2px solid transparent; background: var(--surface-3, #f6f8f9); cursor: pointer; text-align: left; font: inherit; color: inherit; }
.rvx-pick-item[aria-pressed="true"] { border-color: var(--teal, #006980); background: rgba(0, 105, 128, .06); }
.rvx-pick-th { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: #fff; }
.rvx-pick-th img { width: 100%; height: 100%; object-fit: cover; }
.rvx-pick-t { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) {
  .rvx-grid2 { grid-template-columns: 1fr; }
  .rvx-row-head { display: none; }
  .rvx-row, .rvx-table-mgr .rvx-row { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .rvx-c-name { grid-column: 1 / -1; }
  .rvx-table-mgr .rvx-c-name { grid-column: 1; }
  .rvx-c-del { grid-column: 2; grid-row: 1; }
  .rvx-c-ver { display: none; }
  .rvx-c-next { grid-column: 1 / -1; }
  .rvx-head-act, .rvx-head-act .btn { width: 100%; justify-content: center; }
  .rvx-step button { min-width: 108px; padding-left: 8px; padding-right: 8px; }
  .rvx-sec { padding: 16px; }
  .rvx-actions .btn { flex: 1 1 auto; justify-content: center; }
}
.rvx-file figcaption { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; row-gap: 2px; align-items: center; }
.rvx-file figcaption .icon-btn { grid-row: 1 / span 2; grid-column: 2; }
.rvx-file figcaption small { grid-column: 1; }

/* ---------- Externe Produktionen: Videoplayer mit Marken ---------- */
.rvx-vid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 16px; padding: 14px; border-radius: 16px; border: 1px solid var(--line, #dfe5e8); background: var(--surface-3, #f6f8f9); min-width: 0; }
.rvx-vid-main { display: grid; gap: 8px; min-width: 0; }
.rvx-vid-stage { aspect-ratio: 16 / 9; border-radius: 12px; background: #000; display: grid; place-items: center; overflow: hidden; }
.rvx-vid-stage video { width: 100%; height: 100%; object-fit: contain; display: block; }
.rvx-vid-bar { position: relative; height: 14px; margin: 0 4px; border-radius: 7px; background: var(--line, #dfe5e8); }
.rvx-vid-bar:empty { background: transparent; height: 0; }
.rvx-pin { position: absolute; top: 50%; width: 14px; height: 14px; margin-left: -7px; transform: translateY(-50%); border-radius: 50%; border: 2px solid #fff; background: #c27a00; cursor: pointer; padding: 0; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.rvx-pin:hover, .rvx-pin:focus-visible { transform: translateY(-50%) scale(1.25); outline: none; }
.rvx-vid-tools { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rvx-vid-tools .rvx-fname { flex: 1; }
.rvx-tc { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13.5px; color: var(--ink, #111); }
.rvx-vform { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px; border-radius: 12px; background: var(--surface, #fff); border: 1.5px solid var(--teal, #006980); }
.rvx-vform[hidden] { display: none; }
.rvx-vform .input { flex: 1 1 220px; min-width: 0; }
.rvx-vform .form-error { flex-basis: 100%; margin: 0; }
.rvx-tc-mark { padding: 4px 8px; border-radius: 8px; background: #fff4e5; color: #9a5b00; }
.rvx-vid-list { display: flex; flex-direction: column; gap: 8px; min-width: 0; max-height: 420px; }
.rvx-vid-list h4 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.rvx-vid-list h4 small { padding: 1px 8px; border-radius: 999px; background: var(--surface, #fff); font-size: 12px; }
.rvx-vid-list ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; overflow: auto; }
.rvx-vid-list li { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface, #fff); border: 1px solid transparent; }
.rvx-vid-list li.is-on { border-color: #c27a00; }
.rvx-seek { flex: 0 0 auto; border: 0; border-radius: 8px; padding: 3px 8px; background: #fff4e5; color: #9a5b00; cursor: pointer; }
.rvx-seek:hover, .rvx-seek:focus-visible { background: #c27a00; color: #fff; outline: none; }
.rvx-mtext { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: 14px; overflow-wrap: anywhere; }
.rvx-mtext small { color: var(--muted, #6b7280); font-size: 12px; }
.rvx-mnone { background: transparent !important; padding-left: 0 !important; }
.rvx-changes .rvx-vid { background: #fff; }
@media (max-width: 900px) { .rvx-vid { grid-template-columns: 1fr; padding: 10px; } .rvx-vid-list { max-height: none; } }

/* Admin: Firmenliste aufklappbar, Doppelklick öffnet die Bearbeiten-Ansicht */
.adm-company-head { cursor: pointer; align-items: center; justify-content: flex-start; }
.adm-company-head > div:not(.adm-actions) { flex: 1; min-width: 0; }
.adm-toggle { background: none; border: 0; padding: 4px; color: inherit; cursor: pointer; border-radius: 6px; flex: none; display: inline-flex; }
.adm-toggle:hover { background: rgba(0,0,0,.05); }
.adm-toggle svg { width: 18px; height: 18px; }
.adm-company-body[hidden] { display: none; }
.adm-company-body { margin-top: 14px; }

/* Menü: etwas mehr Luft zwischen den Gruppen; Speicherplatz ganz unten, mit Abstand zum Menü */
.nav-sep { margin: 14px 8px; }
.sb-storage-wrap { margin-top: 18px; }

/* ---------- Presseportal: Pressekits ---------- */
.pk { max-width: 1180px; margin: 0 auto; padding: 8px 4px 48px; display: grid; gap: 28px; }
.pk-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pk-eyebrow { margin: 0 0 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pk-h { margin: 0 0 14px; font-size: 16px; font-weight: 650; color: var(--ink-2); }
.pk-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 230px); gap: 14px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x proximity; }
.pk-strip > * { scroll-snap-align: start; }
.pk-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--surface, #fff); border: 1px solid var(--line, #e3e8eb); text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease; }
.pk-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.09); }
.pk-cover { position: relative; display: block; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--surface-3, #eef3f5), var(--line, #dfe5e8)); }
.pk-cover img, .pk-detail-cover img, .pk-preview img, .pk-file-thumb img, .pk-pick-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pk-cover-empty { display: grid; place-items: center; height: 100%; color: var(--muted); }
.pk-cover-empty .icon { width: 36px; height: 36px; opacity: .6; }
.pk-card-body { display: grid; gap: 4px; padding: 12px 14px 14px; }
.pk-card-body strong { font-size: 15px; line-height: 1.25; }
.pk-card-body small { color: var(--muted); font-size: 12.5px; }
.pk-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.pk-stats span { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--surface-3, #eef3f5); color: var(--ink-2); }
.pk-by { margin-top: 2px; }
.pk-empty { min-width: 280px; display: grid; justify-items: start; gap: 6px; padding: 22px; border-radius: 16px; border: 1px dashed var(--line, #cfd8dc); color: var(--muted); }
.pk-empty .icon { width: 28px; height: 28px; }
.pk-empty h3 { margin: 4px 0 0; color: var(--ink-2); }
.pk-create { padding: 22px; border-radius: 20px; background: var(--surface, #fff); border: 1px solid var(--line, #e3e8eb); }
.pk-form { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 26px; align-items: start; }
.pk-form-main { display: grid; gap: 16px; min-width: 0; }
.pk-field { display: grid; gap: 6px; }
.pk-field > span, .pk-field-label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.pk-creator { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); }
.pk-creator i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-style: normal; font-size: 12px; font-weight: 700; background: var(--brand, #006980); color: #fff; }
.pk-files { display: grid; gap: 8px; }
.pk-file { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--surface-3, #f5f8f9); border: 1px solid transparent; }
.pk-file.is-cover { border-color: var(--brand, #006980); }
.pk-file-thumb { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--surface, #fff); }
.pk-file-title { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-badge { font-size: 11px; color: var(--brand, #006980); font-weight: 600; }
.pk-file-acts { display: flex; gap: 2px; }
.pk-file-acts .icon { width: 16px; height: 16px; }
.pk-nofiles { margin: 0; padding: 12px; border-radius: 12px; border: 1px dashed var(--line, #cfd8dc); }
.pk-form-side { display: grid; gap: 10px; align-content: start; }
.pk-preview { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, var(--surface-3, #eef3f5), var(--line, #dfe5e8)); display: grid; }
.pk-preview .pk-cover-empty { height: 100%; }
.pk-upload { justify-self: start; cursor: pointer; }
.pk-form-foot { grid-column: 1 / -1; display: flex; justify-content: flex-end; padding-top: 6px; border-top: 1px solid var(--line, #e3e8eb); padding-top: 16px; }
.pk-detail-hero { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 26px; align-items: center; }
.pk-detail-cover { aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: linear-gradient(135deg, var(--surface-3, #eef3f5), var(--line, #dfe5e8)); display: grid; }
.pk-detail-meta { display: grid; gap: 8px; }
.pk-detail-meta .hero-title { margin: 0; }
.pk-detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.pk-back { font-size: 14px; color: var(--muted); text-decoration: none; justify-self: start; }
.pk-picker .pk-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; max-height: 60vh; overflow: auto; }
.pk-pick { position: relative; display: grid; gap: 6px; cursor: pointer; }
.pk-pick input { position: absolute; top: 8px; left: 8px; z-index: 1; width: 18px; height: 18px; }
.pk-pick-thumb { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--surface-3, #eef3f5); }
.pk-pick-title { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-pick:has(input:checked) .pk-pick-thumb { outline: 3px solid var(--brand, #006980); outline-offset: -3px; }
.pk-sends { display: grid; }
@media (max-width: 760px) {
  .pk-form, .pk-detail-hero { grid-template-columns: 1fr; }
  .pk-strip { grid-auto-columns: 70vw; }
}

/* ---------- Medienkits (Mediathek-Tab, Vorlagen unter „Geteilt“) ---------- */
.fav-filter.on { background: var(--surface-3, #eef3f5); border-color: var(--brand, #006980); color: var(--brand, #006980); }
.fav-filter.on .icon { fill: currentColor; }
.ctab-kit .icon { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; }
#grid.kit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.kit-new { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 180px; border-radius: 16px; border: 1px dashed var(--brand, #006980); background: transparent; color: var(--brand, #006980); font: inherit; font-weight: 600; cursor: pointer; }
.kit-card { width: 100%; text-align: left; font: inherit; cursor: pointer; background: var(--surface, #fff); }
.kit-empty { grid-column: 1 / -1; }
.kit-tpl { display: grid; gap: 10px; margin-bottom: 18px; }
.kit-tpl-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 260px); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.kit-tpl-card { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: var(--surface, #fff); border: 1px solid var(--line, #e3e8eb); }
.kit-tpl-cover { display: grid; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--surface-3, #eef3f5); }
.kit-tpl-cover img { width: 100%; height: 100%; object-fit: cover; }
.kit-tpl-body { display: grid; gap: 4px; min-width: 0; }
.kit-tpl-body strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kit-tpl-body small { color: var(--muted); font-size: 12px; }
.kit-tpl-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.pk-dialog .dialog-body { max-height: 78vh; overflow: auto; }

/* Anmeldung mit Microsoft (Login-Seite) */
.ms-sep { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.ms-sep::before, .ms-sep::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.btn-ms { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ms:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line-2); }
.btn-ms .ms-logo { flex: none; }

/* ---------- Splash: Logo links, Scout (türkis) rechts ---------- */
.splash-row { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 4vw, 48px); flex-wrap: nowrap; }
.splash-row .splash-logo .sh-logo { width: min(260px, 40vw); }
.splash-robot { width: clamp(120px, 24vw, 200px); height: clamp(120px, 24vw, 200px); flex: 0 0 auto; }
.splash-robot canvas, .intro-av canvas, .scout-av canvas { display: block; width: 100%; height: 100%; }

/* ---------- Scout-Knopf neben der Suche ---------- */
.scout-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--line-2, #d8dee0); border-radius: 999px; background: var(--surface, #fff); color: var(--ink, #111); font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.scout-btn:hover { border-color: #006980; }
.scout-btn:focus-visible { outline: 2px solid #006980; outline-offset: 2px; }
.scout-mini { width: 22px; height: 22px; flex: 0 0 auto; }

/* ---------- Scout-Chatfenster ---------- */
.scout-panel { position: fixed; right: 16px; bottom: 16px; z-index: 9000; width: min(380px, calc(100vw - 32px)); height: min(400px, calc(100vh - 32px)); display: flex; flex-direction: column; background: var(--surface, #fff); color: var(--ink, #111); border: 1px solid var(--line-2, #d8dee0); border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.18); overflow: hidden; }
.scout-panel[hidden] { display: none; }
.scout-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-2, #d8dee0); }
.scout-head > div { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.scout-head small { color: var(--muted, #5b6b70); font-size: 12px; }
.scout-av { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; overflow: hidden; }
.scout-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.scout-msg { margin: 0; max-width: 88%; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.scout-msg.bot { background: var(--surface-2, #f2f5f6); align-self: flex-start; }
.scout-msg.me { background: #006980; color: #fff; align-self: flex-end; }
.scout-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line-2, #d8dee0); }
.scout-form input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line-2, #d8dee0); border-radius: 10px; font: inherit; background: var(--surface, #fff); color: var(--ink, #111); }

/* ---------- Einführung der Assistenten (erstes Anmelden) ---------- */
.intro-ov { position: fixed; inset: 0; z-index: 9500; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 16px; }
.intro-box { width: min(640px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface, #fff); color: var(--ink, #111); border-radius: 18px; padding: clamp(20px, 4vw, 32px); }
.intro-box h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 28px); }
.intro-list { display: grid; gap: 14px; margin: 18px 0 22px; }
.intro-card { display: flex; gap: 16px; align-items: flex-start; }
.intro-card h3 { margin: 0 0 4px; font-size: 17px; }
.intro-card h3 small { color: var(--muted, #5b6b70); font-weight: 400; font-size: 14px; }
.intro-card p { margin: 0; color: var(--muted, #5b6b70); line-height: 1.5; font-size: 15px; }
.intro-av { width: 84px; height: 84px; flex: 0 0 auto; border-radius: 50%; overflow: hidden; display: block; }
.intro-av svg { width: 100%; height: 100%; display: block; }
.intro-av:has(canvas) { width: 84px; height: 84px; }
@media (max-width: 560px) { .splash-row { flex-direction: column; } .intro-card { flex-direction: column; } }

/* ---- Medienarchiv Phase 1: Medien stehen im Vordergrund, Bedienelemente nur auf Wunsch ---- */
.mediarchiv-head { margin: 4px 0 14px; }
.mediarchiv-head .lib-title { margin: 0; font-size: 26px; font-weight: 700; color: #0f2a33; }
.mediarchiv-head .lib-sub { margin: 2px 0 0; color: var(--muted, #6b7280); font-size: 14px; }
#view-library .search.search-main { flex: 1 1 100%; width: 100%; }
#view-library .search.search-main input { font-size: 16px; }
#view-library .lib-main-col:not(.filters-open) .colbar,
#view-library .lib-main-col:not(.filters-open) .colinfo,
#view-library .lib-main-col:not(.filters-open) .toolbar .tools,
#view-library .lib-main-col:not(.filters-open) .lib-filter-row,
#view-library .lib-main-col:not(.filters-open) .lib-filters,
#view-library .lib-main-col:not(.filters-open) .zoom-ctl { display: none !important; }
#view-library .lib-main-col.filters-open .colbar,
#view-library .lib-main-col.filters-open .toolbar .tools { display: flex; }
.filter-toggle.on, .filter-toggle[aria-expanded="true"] { color: var(--teal, #006980); background: color-mix(in srgb, var(--teal, #006980) 10%, transparent); }
.search-suggest {
  position: relative; margin: -6px 0 12px; padding: 12px 14px; border-radius: 14px;
  background: var(--surface, #fff); border: 1px solid color-mix(in srgb, #006980 18%, transparent);
  box-shadow: 0 10px 30px rgba(0, 40, 50, .12);
}
.search-suggest[hidden] { display: none; }
.search-suggest .sug-h { margin: 6px 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #6b7280); }
.search-suggest .sug-h:first-child { margin-top: 0; }
.search-suggest .sug-row { display: flex; flex-wrap: wrap; gap: 6px; }
.sug-item {
  display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer;
  padding: 7px 12px; border-radius: 999px; font: inherit; font-size: 14px; color: #0f2a33;
  background: color-mix(in srgb, #006980 8%, transparent);
}
.sug-item:hover, .sug-item:focus-visible { background: color-mix(in srgb, #006980 16%, transparent); outline: none; }
.sug-item svg { width: 14px; height: 14px; color: #006980; }

/* ---- Scout ist die Suche: Kopf links im Suchfeld, Filter und Plus rechts daneben ---- */
#view-library .lib-title-row { flex-wrap: wrap; }
#view-library .search.search-main { flex: 1 1 auto; min-width: 0; position: relative; }
#view-library .search.search-main .scout-in { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; transition: box-shadow .4s ease; }
#view-library .search.search-main .scout-in .scout-mini { width: 26px; height: 26px; animation: scoutLook 7s ease-in-out infinite; }
#view-library .search.search-main .scout-in.thinking { box-shadow: 0 0 0 4px rgba(0, 200, 220, .25), 0 0 18px 4px rgba(0, 200, 220, .55); animation: scoutPulse 1.4s ease-in-out; }
@keyframes scoutLook { 0%, 100% { transform: translate(0, 0); } 35% { transform: translate(1px, 0); } 50% { transform: translate(-1px, 0); } 70% { transform: translate(0, 0); } }
@keyframes scoutPulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.35) drop-shadow(0 0 6px #00c8dc); } }
#view-library .plus-btn, #view-library .filter-toggle { flex: 0 0 auto; }
#view-library .plus-btn[hidden] { display: none; }
.search-suggest .sug-item svg { width: 22px; height: 22px; }
.search-suggest .sug-item { padding: 6px 12px 6px 6px; }

/* ---- Personenleiste in der Suche ---- */
.people-strip { margin: 0 0 14px; }
.people-strip[hidden] { display: none; }
.people-h { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--muted, #6b7280); display: flex; align-items: center; gap: 6px; }
.people-h small { font-weight: 600; background: color-mix(in srgb, #006980 12%, transparent); color: #006980; border-radius: 999px; padding: 1px 8px; }
.people-grid { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.person-card { flex: 0 0 auto; width: 128px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 8px; border: 1px solid var(--line-2, #e5e7eb); border-radius: 14px; background: var(--surface, #fff); cursor: pointer; font: inherit; color: #0f2a33; text-align: center; }
.person-card:hover, .person-card:focus-visible { border-color: #006980; outline: none; }
.person-card img, .person-card i { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: color-mix(in srgb, #006980 14%, transparent); color: #006980; font-style: normal; font-weight: 700; font-size: 22px; margin-bottom: 4px; }
.person-card span { font-size: 14px; font-weight: 600; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-card small { font-size: 12px; color: #006980; }
.person-card em { font-style: normal; font-size: 11px; color: var(--muted, #6b7280); }

/* ---- Medienarchiv: Platz für die Medien, Kopf nur Suche ---- */
body.lib-mode .crumb, body.lib-mode .mediarchiv-head, body.lib-mode .lib-sub-row,
body.lib-mode .sb-ws, body.lib-mode #colinfo, body.lib-mode #learn-strip { display: none !important; }
body.lib-mode .lib-main-head { padding-top: 6px; }
body.lib-mode .lib-main-col { padding-top: 4px; }
.nav-gap { margin-top: 22px; }
#view-library .plus-btn { width: 48px; height: 48px; border-radius: 14px; background: #006980; color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; }
#view-library .plus-btn svg { width: 26px; height: 26px; }
#view-library .plus-btn:hover, #view-library .plus-btn:focus-visible { background: #005a6d; outline: none; }
.menu-company { display: grid; gap: 4px; padding: 8px 12px; font-size: 13px; color: var(--muted, #6b7280); }
.menu-company select { font: inherit; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line-2, #e5e7eb); background: var(--surface, #fff); color: inherit; }

/* Freigabe-Korb: leeres Quadrat mit Zähler neben dem Plus */
.basket-slot { display: inline-flex; }
.basket-fab.in-slot, .basket-fab { position: relative; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; border: 1.5px solid #006980; background: transparent; color: #006980; cursor: pointer; padding: 0; }
.basket-fab.in-slot svg { width: 22px; height: 22px; }
.basket-fab .basket-n { position: absolute; right: 4px; bottom: 2px; font-size: 12px; font-weight: 700; line-height: 1; color: #006980; }
.basket-fab:hover, .basket-fab:focus-visible { background: color-mix(in srgb, #006980 10%, transparent); outline: none; }

/* ---- Medienarchiv: Kopf frei, Werkzeuge unter Speicherplatz in der Seitenleiste ---- */
body.lib-mode .top-actions, body.lib-mode #btn-new, body.lib-mode .lib-side, body.lib-mode #lib-meta { display: none !important; }
body.lib-mode .lib-grid-row { grid-template-columns: 1fr !important; }
.sb-utils { display: grid; gap: 2px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-2, #e5e7eb); }
.sb-utils .nav-link { width: 100%; }

/* ---- Suchleiste im Medienarchiv: nur Suchfeld, Filter, Plus, Freigabe-Korb ---- */
body.lib-mode #search-kind, body.lib-mode .search-kind, body.lib-mode #meta-toggle-wrap, body.lib-mode #btn-meta-show { display: none !important; }

/* ---- Sammlungen in der Seitenleiste: Vorschaubild, Anzahl als Overlay, Titel ---- */
.sb-cols { display: grid; gap: 8px; padding: 4px 0 8px; }
.sb-col { display: grid; gap: 4px; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; text-align: left; border-radius: 10px; }
.sb-col-img { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: color-mix(in srgb, #006980 10%, transparent); color: #006980; }
.sb-col-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sb-col-img svg { width: 28px; height: 28px; }
.sb-col-n { position: absolute; right: 6px; top: 6px; font-style: normal; font-size: 12px; font-weight: 700; line-height: 1; padding: 4px 7px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; }
.sb-col-t { font-size: 13px; font-weight: 600; padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-col:hover .sb-col-img, .sb-col:focus-visible .sb-col-img { outline: 2px solid #006980; outline-offset: 1px; }
.sb-col.is-on .sb-col-t { color: #006980; }

/* ---- Medienarchiv: keine Tabs mehr, Filter über Tags ---- */
body.lib-mode #colbar, body.lib-mode .colbar, body.lib-mode #colinfo, body.lib-mode .colbar-label { display: none !important; }
.sug-item em { font-style: normal; font-size: 11px; color: var(--muted, #6b7280); margin-left: 2px; }

/* ---- Medienarchiv: Favoriten/Freigaben türkis, Speicherplatz dezent (nur Firma) ---- */
body.lib-mode #fav-strip { display: none !important; }
body.lib-mode .nav-link[data-lib="fav"], body.lib-mode .nav-link[data-view="shares"] { color: var(--teal, #006980); }
body.lib-mode .nav-link[data-lib="fav"][aria-current="page"], body.lib-mode .nav-link[data-view="shares"][aria-current="page"] { color: var(--teal, #006980); }
.sb-st-compact { margin: 8px 14px 4px; padding: 6px 10px 7px; background: transparent; border: 0; min-width: 0; font-size: 11.5px; color: var(--muted); display: grid; grid-template-columns: 1fr auto; column-gap: 8px; align-items: center; }
.sb-st-compact .sb-st-bar { grid-column: 1 / -1; margin: 0 0 4px; height: 3px; }
.sb-st-compact .sb-st-text { font-size: 11px; display: flex; flex-direction: column; line-height: 1.3; }
.sb-st-pct { display: none; font-size: 11px; font-weight: 600; color: var(--muted); }
body.sb-mini .sidebar .sb-st-compact { padding: 4px 0; margin: 6px 8px; grid-template-columns: 1fr; justify-items: center; }
body.sb-mini .sidebar .sb-st-bar, body.sb-mini .sidebar .sb-st-text { display: none; }
body.sb-mini .sidebar .sb-st-pct { display: inline; }

/* ---- Scout: 3D-Roboter unten rechts im Medienarchiv, Rückfragen als Knöpfe ---- */
body.lib-mode #scout-in { display: none !important; }
.scout-dock { position: fixed; right: 10px; bottom: 6px; width: 130px; height: 130px; padding: 0; border: 0; background: transparent; cursor: pointer; z-index: 40; }
.scout-dock canvas { width: 100% !important; height: 100% !important; display: block; }
.scout-panel { bottom: 168px; }
.scout-q { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.scout-q .sug-item { font-size: 13px; }

/* ---- Vorschaugröße rechts neben der Suche ---- */
.zoom-slot { display: inline-flex; align-items: center; }
#view-library .zoom-slot .zoom-ctl { display: inline-flex !important; }
#view-library .zoom-slot .zoom-ctl input { width: 96px; }

/* ---- Medienarchiv: Panel für Sammlungen/Freigaben, Suche ganz oben, einheitliche 44px ---- */
#view-library .lib-panel { width: 100%; min-width: 0; padding: 4px 0 24px; overflow-y: auto; }
#view-library .lib-panel[hidden] { display: none !important; }
#view-library .lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
#view-library .lp-col { all: unset; cursor: pointer; display: grid; gap: 8px; }
#view-library .lp-col .sb-col-img { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--surface, #eef3f4); }
#view-library .lp-col .sb-col-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
#view-library .lp-col .sb-col-n { position: absolute; right: 10px; bottom: 10px; font-style: normal; font-size: 12px; font-weight: 600; background: rgba(0,0,0,.62); color: #fff; padding: 3px 9px; border-radius: 999px; }
#view-library .lp-col .sb-col-t { font-weight: 600; font-size: 15px; }
#view-library .lp-col:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; border-radius: 14px; }
/* Vorschaugrößen-Regler sichtbar neben der Suche */
#view-library .lib-main-col .zoom-slot .zoom-ctl { display: inline-flex !important; align-items: center; }
/* Suche, Plus, Freigabe-Korb, Filter: alle 44px hoch */
#view-library .lib-main-head { margin-top: 0; padding-top: 0; }
#view-library .lib-body, #view-library .lib-main-col { margin-top: 0 !important; padding-top: 0 !important; }
#view-library #search { height: 44px; }
#view-library .plus-btn, #view-library .basket-fab.in-slot, #view-library .filter-toggle { height: 44px !important; min-height: 44px !important; width: auto; min-width: 44px; }
#view-library .basket-fab.in-slot { width: 44px; padding: 0; justify-content: center; border-radius: 10px; }
#view-library .basket-fab.in-slot .basket-n, #view-library .basket-fab.in-slot b { min-width: 0; }

/* Scout-Vorlagen im Chat: untereinander, gut lesbar */
.scout-dock { width: 130px !important; height: 130px !important; aspect-ratio: 1 / 1; }
.scout-quick { flex-direction: column; align-items: stretch; gap: 8px; }
.scout-quick .sug-item { text-align: left; white-space: normal; font-size: 14px; line-height: 1.35; padding: 10px 14px; border-radius: 12px; }

/* Speicher: vertikal untereinander, ohne Prozent */
.sb-st-compact { grid-template-columns: 1fr; }
.sb-st-compact .sb-st-pct { display: none !important; }

/* Medienarchiv: Suchleiste ganz oben, Kopfzeile ausgeblendet, Inhalte rutschen nach */
@media (min-width: 900px) {
  body.lib-mode .topbar { display: none !important; }
}
body.lib-mode #view-library #learn-strip:empty { display: none; }
body.lib-mode .main { padding-top: 0 !important; }
body.lib-mode #view-library .lib-main-head { padding-top: 12px; }

/* Einklapp-Knopf in der Suchleiste, auf Höhe der Suche */
.lib-mini { width: 44px; height: 44px; flex: none; }
@media (min-width: 900px) { body.lib-mode .sb-mini-btn { display: none !important; } }

/* Medienarchiv: nur die Kacheln, keine Zähl- oder Hinweistexte in den Tabs */
body.lib-mode #view-library #lib-sub { display: none !important; }

/* ---- Eigene Menüleiste je Modul ---- */
.mod-title { margin: 2px 12px 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.sb-mini .sidebar .mod-title { display: none; }
.nav-link.nav-act { color: var(--teal); }
.nav-link.nav-act .icon { color: var(--teal); }
.nav .sb-utils { margin-top: 18px; }
@media (min-width: 901px) {
  /* Menüpunkte stehen links, die gleichen Reiter im Inhalt entfallen */
  body.mod-mode .top-actions { display: none !important; }
  body.mod-mode #view-academy .ac > .lw-tabs,
  body.mod-mode #view-knowledge .lw-tabs.big.ac-tabs,
  body.mod-mode #view-analytics .an-tabs,
  body.mod-mode #view-team .set-nav,
  body.mod-mode #view-admin .set-nav { display: none !important; }
  body.mod-mode #view-team .set-shell,
  body.mod-mode #view-admin .set-shell { grid-template-columns: minmax(0, 1fr); }
  /* Neu-Knöpfe im Kopf entfallen, sie stehen im Menü */
  body.mod-mode #view-review .rvx-ov-head,
  body.mod-mode #view-pr [data-pk-scroll] { display: none !important; }
}

/* Einheitsmenü: Kopf-Icons stehen im Menü, Markierung bei neuen Mitteilungen */
@media (min-width: 901px) { body.one-menu .top-actions { display: none !important; } }
.nav-link .msg-nav-badge { position: static; margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--teal); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.nav-link .msg-nav-badge[hidden] { display: none; }

/* Service Portal: Presets, eingebetteter Helpdesk */
.svc-preset-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.svc-preset { display: inline-flex; align-items: center; gap: 2px; }
.svc-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; margin-right: 4px; }
.svc-hd .sk-head, .svc-hd .lw-head { display: none; }

/* Runde 13: ein Scrollbereich, unsichtbare Scrollbalken, volle Breite, Zeitleiste rechts */
@media (min-width: 901px) {
  body:has(#view-library:not([hidden])) { overflow: hidden; }
  .shell .main:has(#view-library:not([hidden])) { padding-right: 0 !important; padding-bottom: 0 !important; }
  #view-library .lib-main-head, #view-library .toolbar, #view-library .lib-filter-row, #view-library .filter-chips, #view-library #lib-panel, #view-library #colbar, #view-library #fav-strip, #view-library #colinfo, #view-library #ai-note, #view-library #people-strip { padding-right: 28px; box-sizing: border-box; }
}
.sidebar, #view-library .grid, #view-library .lib-panel, #view-library .lib-side, .main { scrollbar-width: none; -ms-overflow-style: none; }
.sidebar::-webkit-scrollbar, #view-library .grid::-webkit-scrollbar, #view-library .lib-panel::-webkit-scrollbar, #view-library .lib-side::-webkit-scrollbar, .main::-webkit-scrollbar { display: none; width: 0; height: 0; }
#view-library .lib-panel:not([hidden]) { overflow-y: auto; }
#view-library .lib-grid-row { gap: 0; }
#view-library .lib-grid-row > .grid { position: relative; padding-right: 8px; }
.tl { position: relative; flex: 0 0 44px; width: 44px; height: 100%; cursor: pointer; touch-action: none; user-select: none; }
.tl[hidden] { display: none; }
.tl-track { position: absolute; inset: 0; }
.tl-y { position: absolute; right: 8px; transform: translateY(-2px); font-size: 11px; line-height: 1; color: var(--ink-2, #5f6368); font-weight: 500; }
.tl-d { position: absolute; right: 14px; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--ink-3, #9aa0a6); opacity: .7; }
.tl-cur { position: absolute; right: 0; width: 3px; height: 28px; margin-top: 0; border-radius: 3px; background: var(--accent, #028a98); pointer-events: none; transition: top .08s linear; }
.tl-tip { position: absolute; right: 12px; transform: translateY(-50%); padding: 5px 10px; border-radius: 8px; background: var(--ink, #202124); color: var(--surface, #fff); font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 3; }
.tl-tip.on { opacity: 1; }
@media (max-width: 900px) { .tl { display: none; } }

/* Runde 14: Freigabe-Korb als runder Icon-Button, Anzahl als kleines Abzeichen an der Ecke (verdeckt nichts) */
#view-library #basket-slot, #view-library .lib-title-row, #view-library .lib-top-right { overflow: visible; }
#view-library .basket-fab.in-slot, #view-library .lib-top-right .basket-fab.in-slot, #view-library .lib-title-row .lib-top-right .basket-fab.in-slot { position: relative !important; width: 44px; height: 44px !important; min-width: 44px !important; min-height: 44px !important; padding: 0 !important; border-radius: 50%; gap: 0; justify-content: center; font-size: 0; overflow: visible; }
#view-library .basket-fab.in-slot b.basket-n { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; font-size: 11px; font-weight: 700; line-height: 1; background: var(--teal); color: #fff; box-shadow: 0 0 0 2px var(--surface, #fff); pointer-events: none; display: grid; place-items: center; }
#view-library .basket-fab.in-slot b.basket-n:is([data-zero], :empty) { display: none; }

/* Runde 15: Symbole auf den Medien in Hell UND Dunkel sichtbar – türkis auf weißem Kreis */
html .card .chip-fav, html .card .chip-basket, html .card .chip-lock, html .lc-act .chip-fav { background: rgba(255,255,255,.96); color: #028a98; }
html .card .chip-fav .icon, html .card .chip-basket .icon, html .card .chip-lock .icon { color: #028a98; stroke: #028a98; }
html .card .chip-fav.on { color: #d99a00; }
html .card .chip-fav.on .icon { fill: #f5b301; stroke: #f5b301; color: #d99a00; }
html .card .chip-basket.on, html .card .chip-basket:hover { background: #028a98; color: #fff; }
html .card .chip-basket.on .icon, html .card .chip-basket:hover .icon { color: #fff; stroke: #fff; }
html .card .chip-fav:hover .icon { stroke: #d99a00; }

/* Mitteilungen wie kleine Mails */
.mail-wrap { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); height: 100%; min-height: 240px; }
.mail-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; border-right: 1px solid var(--line); scrollbar-width: none; }
.mail-list::-webkit-scrollbar { display: none; }
.mail-row { display: grid; gap: 2px; width: 100%; text-align: left; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font: inherit; }
.mail-row:hover { background: var(--surface-2, rgba(0,0,0,.04)); }
.mail-row.on { background: color-mix(in srgb, var(--teal, #028a98) 12%, transparent); }
.mail-row b { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-row.unread b { font-weight: 700; }
.mail-row.unread b::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--teal, #028a98); margin-right: 8px; }
.mail-sn { font-size: 13px; color: var(--ink-2, #6b7280); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-row small { font-size: 12px; color: var(--ink-3, #9aa0a6); }
.mail-view { padding: 24px 28px; overflow-y: auto; scrollbar-width: none; }
.mail-view::-webkit-scrollbar { display: none; }
.mail-view h2 { margin: 0 0 4px; font-size: 20px; }
.mail-view .msg-img { max-width: 100%; border-radius: 10px; margin: 14px 0; }
@media (max-width: 800px) { .mail-wrap { grid-template-columns: 1fr; } .mail-list { max-height: 40%; border-right: 0; border-bottom: 1px solid var(--line); } }

/* Clips auswählen ist aus der Leiste entfernt (Auswahl per Strg/Shift+Klick) */
#view-library #btn-select { display: none !important; }

/* Speicher: Button ab 75 %, Prozent in der minimierten Ansicht */
.sb-st-more { display: flex; align-items: center; gap: 8px; width: calc(100% - 28px); margin: 6px 14px 4px; padding: 8px 10px; border: 1px solid var(--teal, #028a98); border-radius: 10px; background: transparent; color: var(--teal, #028a98); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; text-align: left; }
.sb-st-more:hover:not(:disabled) { background: var(--teal, #028a98); color: #fff; }
.sb-st-more.sent, .sb-st-more:disabled { opacity: .6; cursor: default; }
.sb-st-more .icon { width: 15px; height: 15px; flex: none; }
body.sb-mini .sidebar .sb-st-more span { display: none; }
body.sb-mini .sidebar .sb-st-more { width: 36px; height: 36px; margin: 6px auto; padding: 0; justify-content: center; }
body.sb-mini .sidebar .sb-storage-wrap { display: block; }
body.sb-mini .sidebar .sb-st-compact .sb-st-pct { display: inline !important; font-size: 12px; }
body.sb-mini .sidebar .sb-st-compact .sb-st-bar, body.sb-mini .sidebar .sb-st-compact .sb-st-text { display: none; }

/* Runde 16: Firmenname oben weg; Ein-/Ausklapp-Knopf auf jeder Seite in der Zeile „Start“ */
.nav-start-row { display: flex; align-items: center; gap: 2px; }
.nav-start-row .nav-link { flex: 1 1 auto; min-width: 0; }
.nav-mini { flex: 0 0 auto; width: 30px; height: 30px; }
.nav-mini svg { width: 18px; height: 18px; }
@media (min-width: 901px) {
  body.one-menu .sb-top, body.one-menu .lib-mini, body.one-menu .sb-ws { display: none !important; }
  body.one-menu .sidebar { padding-top: 14px; }
  body.sb-mini .nav-start-row { flex-direction: column; gap: 2px; }
  body.sb-mini .nav-mini { width: 36px; }
}
@media (max-width: 900px) { .nav-mini { display: none; } }

/* Projekt-Link mit Schreibrecht: Upload-Bereich auf der öffentlichen Seite */
.pub-upload { display: grid; gap: 10px; margin: 0 0 24px; }
.pub-drop { display: grid; gap: 4px; place-items: center; padding: 28px 18px; border: 2px dashed var(--line-2, #cfd6d8); border-radius: 16px; cursor: pointer; text-align: center; }
.pub-drop b { font-size: 16px; } .pub-drop span { color: var(--muted, #6b7280); font-size: 13px; }
.pub-drop.over, .pub-drop:hover { border-color: var(--teal, #028a98); background: color-mix(in srgb, var(--teal, #028a98) 6%, transparent); }
.pub-name { max-width: 320px; }
.pub-up-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.pub-up-list li { display: flex; justify-content: space-between; gap: 12px; }
.pub-up-list li.ok em { color: #1c8a4a; } .pub-up-list li.err em { color: #c0392b; } .pub-up-list em { font-style: normal; color: var(--muted, #6b7280); }

/* Runde 17: Projekte */
.pj-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px;padding:8px 0}
.pj-card{text-align:left;background:none;border:0;cursor:pointer;display:flex;flex-direction:column;gap:6px;color:inherit}
.pj-card .sb-col-img{aspect-ratio:4/3;width:100%;border-radius:14px;overflow:hidden;background:var(--surface-2,#eef3f4);display:grid;place-items:center;position:relative}
.pj-card .sb-col-img img{width:100%;height:100%;object-fit:cover}
.pj-card .sb-col-img svg{width:36px;height:36px;opacity:.5}
.pj-links{display:flex;align-items:center;gap:4px;opacity:.7}.pj-links svg{width:14px;height:14px}
.pj-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.pj-linklist{margin:12px 0 20px;display:flex;flex-direction:column;gap:8px}
.pj-link{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:10px 14px;border:1px solid var(--line,#dde5e7);border-radius:12px}
.pj-link.off{opacity:.55}
.pj-perm{font-size:12px;font-weight:600;padding:3px 10px;border-radius:99px;background:#e6f2f4;color:#006980}
.pj-perm.write{background:#006980;color:#fff}
.pj-url{flex:1;min-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.pj-link small{width:100%;opacity:.65}
.pj-media{position:relative}
.pj-tile{position:relative}
.pj-rm{position:absolute;top:8px;left:8px;z-index:3;width:26px;height:26px;border-radius:50%;border:0;background:rgba(0,0,0,.6);color:#fff;display:none;place-items:center;cursor:pointer}
.pj-tile:hover .pj-rm{display:grid}.pj-rm svg{width:14px;height:14px}
.pj-pick,.pj-choose{display:grid;gap:8px;max-height:55vh;overflow:auto;margin-top:10px}
.pj-pick{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.pj-pk{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid var(--line,#dde5e7);border-radius:12px;background:none;color:inherit;cursor:pointer;text-align:left;position:relative}
.pj-pk.on{border-color:#006980;box-shadow:0 0 0 2px #00698033}
.pj-chk{margin-left:auto;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#006980;color:#fff;opacity:0}
.pj-pk.on .pj-chk{opacity:1}.pj-chk svg{width:13px;height:13px}
.pj-media{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px;align-content:start}
.pj-tile .card{width:100%}

.tl-m { position: absolute; right: 8px; transform: translateY(-2px); font-size: 10px; line-height: 1; color: var(--ink-3, #7a8084); }

/* Runde 18: Bildeditor (dunkel, wie Fotos-Apps) */
.ie2 { position: fixed; inset: 0; z-index: 1200; background: #000; color: #e8eaed; display: block; font-size: 14px; }
.ie2-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; height: 100%; }
.ie2-stage { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ie2-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.ie2-ttl { flex: 1; text-align: center; opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ie2-x { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #2a2b2e; color: #e8eaed; display: grid; place-items: center; cursor: pointer; }
.ie2-x .icon { width: 18px; height: 18px; }
.ie2-save { border: 0; border-radius: 999px; padding: 10px 20px; background: #a8c7fa; color: #062e6f; font-weight: 600; cursor: pointer; }
.ie2-save:disabled { opacity: .6; cursor: default; }
.ie2-wrap { flex: 1; min-height: 0; display: grid; place-items: center; padding: 8px 24px 28px; position: relative; }
.ie2-box { position: relative; line-height: 0; user-select: none; touch-action: none; }
.ie2-cv { display: block; max-width: calc(100vw - 360px - 48px); max-height: calc(100vh - 110px); width: auto; height: auto; }
.ie2-mk { position: absolute; inset: 0; width: 100%; height: 100%; }
.is-mark .ie2-mk { cursor: crosshair; }
.ie2-load { position: absolute; }
.ie2-crop { background: transparent !important; position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0,0,0,.55); cursor: move; touch-action: none; }
.ie2-crop[hidden] { display: none; }
.ie2-crop::before, .ie2-crop::after { content: ''; position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(to right, transparent 33.2%, rgba(255,255,255,.35) 33.3%, rgba(255,255,255,.35) 33.5%, transparent 33.6%, transparent 66.5%, rgba(255,255,255,.35) 66.6%, rgba(255,255,255,.35) 66.8%, transparent 66.9%),
  linear-gradient(to bottom, transparent 33.2%, rgba(255,255,255,.35) 33.3%, rgba(255,255,255,.35) 33.5%, transparent 33.6%, transparent 66.5%, rgba(255,255,255,.35) 66.6%, rgba(255,255,255,.35) 66.8%, transparent 66.9%); }
.ie2-crop::after { display: none; }
.ie2-crop i { position: absolute; width: 22px; height: 22px; margin: -11px; background: #4285f4; border: 2px solid #fff; border-radius: 50%; }
.ie2-crop i[data-h=tl] { left: 0; top: 0; cursor: nwse-resize; } .ie2-crop i[data-h=tr] { left: 100%; top: 0; cursor: nesw-resize; }
.ie2-crop i[data-h=bl] { left: 0; top: 100%; cursor: nesw-resize; } .ie2-crop i[data-h=br] { left: 100%; top: 100%; cursor: nwse-resize; }
.ie2-crop i[data-h=t] { left: 50%; top: 0; cursor: ns-resize; border-radius: 6px; width: 30px; height: 12px; margin: -6px -15px; }
.ie2-crop i[data-h=b] { left: 50%; top: 100%; cursor: ns-resize; border-radius: 6px; width: 30px; height: 12px; margin: -6px -15px; }
.ie2-crop i[data-h=l] { left: 0; top: 50%; cursor: ew-resize; border-radius: 6px; width: 12px; height: 30px; margin: -15px -6px; }
.ie2-crop i[data-h=r] { left: 100%; top: 50%; cursor: ew-resize; border-radius: 6px; width: 12px; height: 30px; margin: -15px -6px; }
.ie2-crop.locked i[data-h=t], .ie2-crop.locked i[data-h=b], .ie2-crop.locked i[data-h=l], .ie2-crop.locked i[data-h=r] { display: none; }
.ie2-panel { background: #141414; display: flex; flex-direction: column; min-height: 0; border-left: 1px solid #2a2b2e; }
.ie2-tabs { display: flex; justify-content: space-around; border-bottom: 1px solid #2a2b2e; padding: 6px 4px 0; }
.ie2-tabs button { flex: 1; background: none; border: 0; color: #c4c7c5; padding: 12px 0 10px; cursor: pointer; border-bottom: 3px solid transparent; display: grid; place-items: center; }
.ie2-tabs button .icon { width: 22px; height: 22px; }
.ie2-tabs button.on { color: #a8c7fa; border-bottom-color: #a8c7fa; }
.ie2-body { flex: 1; overflow: auto; padding: 8px 18px 28px; scrollbar-width: thin; }
.ie2-h { margin: 18px 0 10px; font-size: 13px; font-weight: 600; color: #c4c7c5; letter-spacing: .02em; }
.ie2-big { display: flex; align-items: center; gap: 18px; width: 100%; margin: 0 0 10px; padding: 18px 20px; border: 0; border-radius: 14px; background: #2a2b2e; color: #e8eaed; font-size: 15px; font-weight: 600; cursor: pointer; text-align: left; }
.ie2-big:hover { background: #34363a; } .ie2-big .icon { width: 22px; height: 22px; }
.ie2-ghost { margin-top: 18px; padding: 9px 18px; border-radius: 999px; border: 1px solid #5f6368; background: none; color: #e8eaed; cursor: pointer; }
.ie2-ghost:disabled { opacity: .4; cursor: default; }
.ie2-ratios { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ie2-chip { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 10px; border-radius: 12px; border: 0; background: #2a2b2e; color: #e8eaed; cursor: pointer; font-weight: 600; }
.ie2-chip.on { background: #a8c7fa; color: #062e6f; } .ie2-chip .icon { width: 18px; height: 18px; }
.ie2-rotrow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.ie2-row { display: grid; grid-template-columns: 1fr 44px; grid-template-areas: 'l o' 'i i'; gap: 2px 8px; align-items: center; margin: 12px 0; }
.ie2-row span { grid-area: l; font-weight: 600; } .ie2-row output { grid-area: o; text-align: right; color: #9aa0a6; font-variant-numeric: tabular-nums; } .ie2-row input { grid-area: i; width: 100%; accent-color: #a8c7fa; }
.ie2-filters { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.ie2-flt { background: none; border: 0; color: #e8eaed; cursor: pointer; display: grid; gap: 6px; justify-items: center; font-size: 12px; padding: 0; }
.ie2-flt canvas { width: 100%; height: auto; aspect-ratio: 4/3; border-radius: 10px; background: #2a2b2e; outline: 3px solid transparent; object-fit: cover; }
.ie2-flt.on canvas { outline-color: #a8c7fa; }
.ie2-tools { display: grid; gap: 10px; margin-top: 10px; }
.ie2-tool { display: flex; align-items: center; gap: 16px; background: none; border: 0; color: #e8eaed; font-weight: 600; cursor: pointer; padding: 4px 0; text-align: left; font-size: 14px; }
.ie2-dot { width: 56px; height: 56px; border-radius: 50%; background: #3c3d40; display: grid; place-items: center; } .ie2-dot .icon { width: 22px; height: 22px; }
.ie2-tool.on .ie2-dot { background: #a8c7fa; color: #062e6f; }
.ie2-colors { display: flex; gap: 14px; justify-content: center; margin: 20px 0; }
.ie2-col { width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; box-shadow: 0 0 0 1px rgba(255,255,255,.2); }
.ie2-col.on { box-shadow: 0 0 0 4px rgba(255,255,255,.35); transform: scale(1.1); }
.ie2-markfoot { display: flex; align-items: center; justify-content: space-between; margin-top: 30px; }
.ie2-markfoot .ie2-ghost { margin: 0; } .ie2-ic { background: none; border: 0; color: #e8eaed; cursor: pointer; padding: 8px; } .ie2-ic:disabled { opacity: .35; cursor: default; } .ie2-ic .icon { width: 20px; height: 20px; }
@media (max-width: 900px) {
  .ie2-main { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) 46vh; }
  .ie2-cv { max-width: calc(100vw - 32px); max-height: calc(54vh - 100px); }
  .ie2-wrap { padding: 4px 16px 16px; }
}

/* Viewer: Aktionen oben (Freigeben, Sammlung, Favorit) */
.stage-acts { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.sa-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: #fff; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.sa-btn:hover { background: rgba(255,255,255,.18); }
.sa-btn .icon { width: 17px; height: 17px; }
.sa-btn.on { background: #fff; color: var(--teal, #006980); border-color: #fff; }
.sa-dd { position: relative; }
.sa-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; max-height: 320px; overflow: auto; background: var(--surface, #fff); color: var(--ink, #1f2a2e); border-radius: 12px; box-shadow: 0 12px 36px rgba(0,0,0,.35); padding: 6px; z-index: 20; }
.sa-menu[hidden] { display: none; }
.sa-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 8px; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sa-opt:hover { background: var(--surface-3, #eef3f4); }
.sa-chk { width: 18px; height: 18px; display: grid; place-items: center; color: var(--teal, #006980); } .sa-chk .icon { width: 16px; height: 16px; }
.sa-new { border-top: 1px solid var(--line-2, #e2e8ea); border-radius: 0 0 8px 8px; margin-top: 4px; color: var(--teal, #006980); font-weight: 600; }
.sa-empty { margin: 8px 10px; opacity: .7; }
@media (max-width: 700px) { .sa-btn span { display: none; } .sa-btn { padding: 0 11px; } }
body.lib-cols #view-library .search-main, body.lib-cols #view-library #zoom-slot, body.lib-cols #view-library #btn-filters, body.lib-cols #view-library .toolbar, body.lib-cols #view-library .mediarchiv-head { display: none !important; }
#view-projects:not([hidden]) { padding-top: 10px; }
.pj-head { justify-content: flex-end; margin-bottom: 8px; }
.panel-head { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 22px; }
.panel-head .crumb-t { font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.panel-head .crumb-s { font-size: 16.5px; line-height: 1.4; color: var(--muted, #6b7280); }

/* Runde 19: Nutzungsrechte */
.chip-rights { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 650; background: #fff; color: #8a5a00; box-shadow: 0 1px 4px rgba(0,0,0,.18); z-index: 2; }
.chip-rights.bad { background: #b3261e; color: #fff; }
.chip-rights.warn { background: #ffe8b3; color: #6b4500; }
.chip-rights .icon { width: 12px; height: 12px; }
.rights-banner { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 12px; font-size: 13px; line-height: 1.4; }
.rights-banner .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.rights-banner b { display: block; }
.rights-banner.bad { background: #fde8e6; color: #7a1712; }
.rights-banner.warn { background: #fff3d6; color: #6b4500; }


.ch-dlg .ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
.ch-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; border: 1px solid var(--line, #e3e6e8); border-radius: 14px; background: var(--surface, #fff); cursor: pointer; text-align: center; font: inherit; }
.ch-card:hover { border-color: var(--accent, #006980); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.ch-card canvas { max-width: 100%; border-radius: 8px; background: #eee; }
.ch-card b { font-size: 13px; } .ch-card small { color: var(--muted, #6b7780); font-size: 12px; }

.sim-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.sim-item { flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line, #e3e6e8); background: #f1f3f4; padding: 0; cursor: pointer; display: grid; place-items: center; }
.sim-item img { width: 100%; height: 100%; object-fit: cover; }
.sim-item:hover { outline: 2px solid var(--accent, #006980); }
.usage-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.usage-list li { display: flex; gap: 9px; align-items: flex-start; } .usage-list .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--muted, #6b7780); }
.usage-list small { color: var(--muted, #6b7780); }
.sort-like { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.sort-like .icon { width: 16px; height: 16px; }
.sort-like[hidden] { display: none; }

/* Runde 20: Medien-Check, Farbsuche, Smart-Sammlungen, Feinschliff */
.hc-top { display: flex; gap: 28px; align-items: center; padding: 24px; border: 1px solid var(--line, #e6e8ea); border-radius: 20px; background: var(--surface, #fff); margin-bottom: 18px; }
.hc-score { position: relative; width: 132px; height: 132px; flex: none; }
.hc-score svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.hc-score circle { fill: none; stroke-width: 10; }
.hc-bg { stroke: var(--line, #eceff1); }
.hc-fg { stroke-linecap: round; transition: stroke-dasharray .8s ease; stroke: #1f8a5b; }
.hc-score.warn .hc-fg { stroke: #d99a00; } .hc-score.bad .hc-fg { stroke: #c0392b; }
.hc-score > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.hc-score b { font-size: 38px; line-height: 1; font-weight: 750; letter-spacing: -.02em; }
.hc-score span { font-size: 12px; color: var(--muted); }
.hc-sum h3 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.01em; }
.hc-sum p { margin: 0 0 12px; color: var(--muted); }
.hc-cats { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.hc-cats span { display: inline-flex; gap: 5px; align-items: center; } .hc-cats .icon { width: 15px; height: 15px; }
.hc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.hc-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px; border-radius: 18px; border: 1px solid var(--line, #e6e8ea); background: var(--surface, #fff); text-align: left; font: inherit; color: inherit; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.hc-card:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.08); border-color: var(--accent, #006980); }
.hc-card:disabled { cursor: default; opacity: .75; }
.hc-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: #eef3f5; color: var(--accent, #006980); margin-bottom: 6px; }
.hc-ic .icon { width: 18px; height: 18px; }
.hc-card.bad .hc-ic { background: #fde8e6; color: #b3261e; } .hc-card.warn .hc-ic { background: #fff3d6; color: #8a5a00; } .hc-card.done .hc-ic { background: #e5f5ec; color: #1f8a5b; }
.hc-n { position: absolute; right: 18px; top: 16px; font-size: 26px; font-weight: 750; letter-spacing: -.02em; }
.hc-card b { font-size: 14.5px; } .hc-card small { color: var(--muted); font-size: 12.5px; line-height: 1.4; min-height: 34px; }
.hc-bar { width: 100%; height: 5px; border-radius: 99px; background: var(--line, #eceff1); overflow: hidden; margin-top: 8px; }
.hc-bar i { display: block; height: 100%; background: var(--accent, #006980); border-radius: inherit; }
.hc-card.bad .hc-bar i { background: #c0392b; } .hc-card.warn .hc-bar i { background: #d99a00; }
.hc-go { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 600; color: var(--accent, #006980); margin-top: 6px; }
.hc-go .icon { width: 13px; height: 13px; }
@media (max-width: 640px) { .hc-top { flex-direction: column; text-align: center; } .hc-cats, .hc-acts { justify-content: center; } }
.cm-grid { display: grid; grid-template-columns: repeat(6, 30px); gap: 8px; padding: 6px 10px 4px; }
.cm-sw { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(0,0,0,.08); cursor: pointer; padding: 0; transition: transform .12s; }
.cm-sw:hover:not(:disabled) { transform: scale(1.12); }
.cm-sw.on { box-shadow: 0 0 0 2px var(--surface, #fff), 0 0 0 4px var(--accent, #006980); }
.cm-sw:disabled { opacity: .25; cursor: default; }
.cm-sw[data-n]:not([data-n=""])::after { content: attr(data-n); position: absolute; right: -6px; bottom: -6px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 99px; background: var(--text, #222); color: #fff; font-size: 10px; line-height: 16px; text-align: center; }
.cm-st { margin: 6px 10px 4px; font-size: 12px; }
.fchip .sw { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.fchip-issue { background: #fff3d6 !important; color: #6b4500 !important; }
.fchip-save { border-style: dashed !important; color: var(--accent, #006980) !important; }
.lp-sec { display: flex; align-items: center; gap: 6px; margin: 6px 0 12px; } .lp-sec .icon { width: 15px; height: 15px; } .lp-sec small { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); }
.lp-smart { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 26px; }
.lp-sm { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 10px 10px 12px; border-radius: 18px; border: 1px solid var(--line, #e6e8ea); background: linear-gradient(160deg, rgba(0,105,128,.06), transparent 60%), var(--surface, #fff); cursor: pointer; transition: transform .18s, box-shadow .18s; }
.lp-sm:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.08); }
.lp-sm-th { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #eef1f3; margin-bottom: 6px; place-items: center; }
.lp-sm-th img { width: 100%; height: 100%; object-fit: cover; } .lp-sm-th i { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); }
.lp-sm b { font-size: 14px; padding: 0 4px; } .lp-sm small { color: var(--muted); font-size: 12.5px; padding: 0 4px; }
.lp-sm-x { position: absolute; top: 14px; right: 14px; opacity: 0; background: rgba(255,255,255,.9) !important; transition: opacity .15s; }
.lp-sm:hover .lp-sm-x, .lp-sm:focus-within .lp-sm-x { opacity: 1; }
/* Feinschliff Karten & Viewer */
#grid .card { transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s; }
#grid .card:hover { transform: translateY(-3px); }
#grid .card .thumb img { transition: transform .5s cubic-bezier(.2,.7,.3,1); }
#grid .card:hover .thumb img { transform: scale(1.035); }
#grid .card:focus-visible { outline: 2px solid var(--accent, #006980); outline-offset: 3px; }
.usage-box, .sim-box { padding-top: 4px; }
@media (prefers-reduced-motion: reduce) { #grid .card, #grid .card .thumb img, .hc-card, .lp-sm { transition: none !important; transform: none !important; } }
.lp-sm-th.n0, .lp-sm-th.n1 { grid-template-columns: 1fr; }
.lp-sm-th.n2 { grid-template-columns: 1fr 1fr; }
.lp-sm-th.n3 > :first-child { grid-row: span 2; }
.lp-sm-th.n2 > *, .lp-sm-th.n3 > :first-child, .lp-sm-th.n1 > * { height: 100%; }
.lp-sm-th.n4 > *, .lp-sm-th.n3 > :not(:first-child) { aspect-ratio: auto; }
.lp-sm-th { grid-auto-rows: 1fr; }

/* Runde 21: Kamera-Upload (Handy-App /kamera) */
body.cam-mode { background: #0f1214; color: #f3f5f6; }
.cam { min-height: 100dvh; display: flex; flex-direction: column; gap: 14px; padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 16px); max-width: 560px; margin: 0 auto; }
.cam-head { display: flex; align-items: center; gap: 12px; }
.cam-logo { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #006980; color: #fff; flex: none; }
.cam-logo .icon { width: 22px; height: 22px; }
.cam-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cam-who b { font-size: 17px; letter-spacing: -.01em; } .cam-who small { color: #9aa6ad; font-size: 13px; }
.cam-co { background: transparent; color: #9aa6ad; border: 0; font: inherit; font-size: 13px; padding: 0; max-width: 100%; }
.cam-icon { width: 42px; height: 42px; border-radius: 50%; border: 1px solid #2a3135; background: #171c1f; color: #cfd6da; display: grid; place-items: center; }
.cam-icon .icon { width: 19px; height: 19px; }
.cam-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cam-field { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 14px; background: #171c1f; border: 1px solid #232a2e; }
.cam-field span { display: flex; gap: 6px; align-items: center; font-size: 12px; color: #9aa6ad; } .cam-field .icon { width: 14px; height: 14px; }
.cam-field select, .cam-field input { background: transparent; border: 0; color: #fff; font: inherit; font-size: 15px; padding: 0; outline: none; min-width: 0; width: 100%; }
.cam-field select option { color: #111; }
.cam-field input::placeholder { color: #5d686f; }
.cam-stage { flex: 1; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border-radius: 28px; background: radial-gradient(120% 90% at 50% 30%, rgba(0,105,128,.35), transparent 65%), #13181b; border: 1px solid #1f262a; padding: 26px 16px; }
.cam-shutter { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cam-ring { width: 148px; height: 148px; border-radius: 50%; border: 5px solid rgba(255,255,255,.92); display: grid; place-items: center; transition: transform .15s; box-shadow: 0 0 0 10px rgba(255,255,255,.06), 0 20px 50px rgba(0,0,0,.45); }
.cam-dot { width: 118px; height: 118px; border-radius: 50%; background: #fff; color: #006980; display: grid; place-items: center; transition: transform .15s, background .15s; }
.cam-dot .icon { width: 44px; height: 44px; }
.cam-shutter:active .cam-ring { transform: scale(.94); } .cam-shutter:active .cam-dot { background: #e6f2f4; }
.cam-cta { font-size: 18px; letter-spacing: -.01em; }
.cam-gallery { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #1d2427; border: 1px solid #2a3135; color: #dfe5e8; font-size: 14px; cursor: pointer; }
.cam-gallery .icon { width: 17px; height: 17px; }
.cam-net { display: flex; gap: 8px; align-items: center; margin: 0; padding: 9px 12px; border-radius: 12px; background: #3a2a07; color: #ffd98a; font-size: 13px; }
.cam-net[hidden] { display: none; } .cam-net .icon { width: 16px; height: 16px; flex: none; }
.cam-list-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; } .cam-count { color: #9aa6ad; font-size: 13px; }
.cam-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cam-list:empty::before { content: 'Noch keine Fotos in dieser Sitzung.'; color: #5d686f; font-size: 14px; }
.cam-item { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; background: #171c1f; border: 1px solid #232a2e; animation: camIn .25s ease; }
@keyframes camIn { from { opacity: 0; transform: translateY(-6px); } }
.cam-item img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; flex: none; background: #222; }
.cam-item > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cam-item b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cam-st { color: #9aa6ad; font-size: 12.5px; }
.cam-bar { height: 4px; border-radius: 99px; background: #262e32; overflow: hidden; } .cam-bar i { display: block; height: 100%; width: 0; background: #2bb3c7; transition: width .2s; }
.cam-item[data-st=ok] .cam-bar i { background: #3fbf7f; } .cam-item[data-st=ok] .cam-st { color: #6fd6a2; }
.cam-item[data-st=err] .cam-bar i { background: #e5534b; } .cam-item[data-st=err] .cam-st { color: #ff8f88; }
.cam-retry { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #2a3135; color: #fff; display: grid; place-items: center; flex: none; }
.cam-retry[hidden] { display: none; } .cam-retry .icon { width: 17px; height: 17px; }
.cam-empty { margin: auto; text-align: center; display: grid; gap: 12px; justify-items: center; max-width: 340px; }
.cam-empty > .icon { width: 40px; height: 40px; color: #9aa6ad; } .cam-empty p { color: #9aa6ad; }
@media (max-width: 380px) { .cam-opts { grid-template-columns: 1fr; } }
/* Menüpunkt Kamera-Upload */
.cam-open { margin-bottom: 18px; }
.camp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: start; }
.camp-card { padding: 22px; border-radius: 20px; border: 1px solid var(--line, #e6e8ea); background: var(--surface, #fff); display: flex; flex-direction: column; gap: 10px; }
.camp-card p { margin: 0; }
.camp-os { display: flex; align-items: center; gap: 10px; font-size: 17px; } .camp-os svg { width: 26px; height: 26px; color: var(--accent, #006980); }
.camp-qr { align-self: center; width: 190px; padding: 10px; background: #fff; border-radius: 16px; border: 1px solid var(--line, #e6e8ea); }
.camp-qr svg { width: 100%; height: auto; display: block; }
.camp-steps { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.camp-share { display: inline-block; padding: 0 5px; border: 1px solid var(--line, #ddd); border-radius: 5px; font-size: 12px; }
.camp-how ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.camp-how li { display: flex; gap: 10px; align-items: flex-start; } .camp-how li .icon { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--accent, #006980); }
.camp-admin { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line, #e6e8ea); display: grid; gap: 8px; }
.camp-up { display: flex; gap: 8px; flex-wrap: wrap; } .camp-up .input { width: 150px; }
.cam-logo { object-fit: cover; padding: 0; }
.cam-mode-sw { display: inline-flex; padding: 4px; border-radius: 999px; background: #1d2427; border: 1px solid #2a3135; margin-bottom: 4px; }
.cam-mode-sw button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 999px; border: 0; background: transparent; color: #9aa6ad; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.cam-mode-sw button .icon { width: 16px; height: 16px; }
.cam-mode-sw button[aria-selected=true] { background: #fff; color: #0f1214; }
.cam-shutter.is-video .cam-dot { background: #e5342b; color: #fff; }
.cam-shutter.is-video:active .cam-dot { background: #c92a22; }
.cam-vth { position: relative; width: 54px; height: 54px; border-radius: 10px; overflow: hidden; flex: none; background: #222; display: grid; place-items: center; }
.cam-vth video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-vth .icon { position: relative; width: 20px; height: 20px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }

/* Runde 22: Sammlung-Dropdown im Angaben-Bereich, ähnliche Inhalte */
.stage-acts:empty { display: none; }
.col-dd { display: inline-block; }
.col-dd .sa-menu { left: 0; right: auto; min-width: 240px; box-shadow: 0 12px 36px rgba(0,0,0,.18); border: 1px solid var(--line, #e3e6e8); }
.col-dd-btn { display: inline-flex; align-items: center; gap: 7px; } .col-dd-btn .icon { width: 16px; height: 16px; }
.col-dd-btn .icon:last-child { width: 14px; height: 14px; opacity: .6; }
.col-tags { margin-top: 10px; }
.lib-meta .col-dd { margin: 4px 0 10px; }
.sim-why { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.sim-item { position: relative; }
.sim-n { position: absolute; right: 3px; bottom: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: rgba(0,0,0,.72); color: #fff; font-size: 11px; font-style: normal; line-height: 18px; text-align: center; }

/* Runde 23: Scout im Dunkelmodus – Vorschläge lesbar */
html[data-theme="dark"] .sug-item { color: #eef6f8; background: rgba(95,211,222,.12); }
html[data-theme="dark"] .sug-item:hover, html[data-theme="dark"] .sug-item:focus-visible { background: rgba(95,211,222,.24); }
html[data-theme="dark"] .sug-item svg { color: #5fd3de; }
html[data-theme="dark"] .scout-msg.bot { color: var(--ink); }
/* Angaben-Bereich: Stift am Titel, Formate als Auswahl */
.panel .title-row { display: flex; align-items: flex-start; gap: 6px; }
.panel .title-row > span { flex: 1; min-width: 0; }
.title-edit { flex: none; margin-top: 2px; color: var(--muted); }
.title-edit:hover { color: var(--teal, #006980); }
.title-edit .icon { width: 18px; height: 18px; }
.fmt-dd { display: flex; gap: 8px; align-items: center; }
.fmt-dd .fmt-sel { flex: 1; min-width: 0; }
.fmt-count { margin: 6px 0 0; font-size: 12.5px; }
.fmt-edit { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ch-card .ch-have { font-style: normal; font-size: 11.5px; color: #8a5a00; }
.ch-card .ch-st { font-size: 12px; color: var(--teal, #006980); min-height: 15px; display: inline-flex; gap: 4px; align-items: center; } .ch-card .ch-st .icon { width: 14px; height: 14px; }
.ch-card.done { border-color: #1f8a5b; }
.ch-card:disabled { opacity: .7; cursor: progress; }

/* Runde 23: Assistenten im Bearbeiten-Modus (Pixel / Dub) */
body.edit-open .overlay { z-index: 1300; }
body.edit-open .toasts { z-index: 1400; }
body.edit-open .scout-dock, body.edit-open .scout-panel { display: none !important; }
.ie2-bot, .ve-bot { flex: none; border-top: 1px solid #2a2b2e; background: #101112; }
.bot-dock { padding: 10px 14px 12px; color: #e8eaed; }
.bot-top { display: flex; align-items: center; gap: 10px; }
.bot-av { width: 64px; height: 64px; flex: none; margin: -6px -4px -6px -6px; }
.bot-av canvas { width: 64px !important; height: 64px !important; }
.bot-id { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bot-id b { font-size: 15px; } .bot-id small { color: #9aa0a6; font-size: 12px; }
.bot-min { width: 30px; height: 30px; border-radius: 50%; border: 0; background: #1f2023; color: #c9cdd2; display: grid; place-items: center; cursor: pointer; }
.bot-min .icon { width: 16px; height: 16px; transition: transform .2s; }
.bot-dock.min .bot-main { display: none; } .bot-dock.min .bot-min .icon { transform: rotate(180deg); }
.bot-say { margin: 8px 0 10px; font-size: 13.5px; line-height: 1.45; min-height: 38px; color: #e8eaed; }
.bot-acts { display: flex; flex-wrap: wrap; gap: 6px; max-height: 112px; overflow: auto; }
.bot-chip { display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; border-radius: 999px; border: 1px solid #34363a; background: #1b1c1f; color: #f1f3f4; font: inherit; font-size: 13px; cursor: pointer; transition: background .15s, border-color .15s; }
.bot-chip:hover { background: #26282c; border-color: #5fd3de; }
.bot-chip .icon { width: 14px; height: 14px; color: #5fd3de; }
.bot-dub .bot-chip .icon { color: #ffc21a; } .bot-dub .bot-chip:hover { border-color: #ffc21a; }
.bot-ask { display: flex; gap: 6px; margin-top: 10px; }
.bot-ask input { flex: 1; min-width: 0; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid #34363a; background: #18191c; color: #fff; font: inherit; font-size: 13.5px; outline: none; }
.bot-ask input:focus { border-color: #5fd3de; }
.bot-ask button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; color: #111; display: grid; place-items: center; cursor: pointer; }
.bot-ask button .icon { width: 16px; height: 16px; }
/* Video bearbeiten (Format & Fokus) */
.ve { position: fixed; inset: 0; z-index: 1200; background: #000; color: #e8eaed; font-size: 14px; }
.ve-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; height: 100%; }
.ve-stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ve-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.ve-wrap { flex: 1; min-height: 0; display: grid; place-items: center; padding: 8px 24px 12px; position: relative; }
.ve-box { position: relative; max-width: 100%; max-height: calc(100vh - 170px); height: calc(100vh - 170px); line-height: 0; user-select: none; }
.ve-video { width: 100%; height: 100%; display: block; object-fit: contain; background: #111; }
.ve-crop { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0,0,0,.6); cursor: grab; touch-action: none; border-radius: 2px; transition: none; }
.ve-crop:active { cursor: grabbing; }
.ve-crop i { position: absolute; inset: 0; background: linear-gradient(to right, transparent 33.2%, rgba(255,255,255,.3) 33.3%, rgba(255,255,255,.3) 33.6%, transparent 33.7%, transparent 66.4%, rgba(255,255,255,.3) 66.5%, rgba(255,255,255,.3) 66.8%, transparent 66.9%), linear-gradient(to bottom, transparent 33.2%, rgba(255,255,255,.3) 33.3%, rgba(255,255,255,.3) 33.6%, transparent 33.7%, transparent 66.4%, rgba(255,255,255,.3) 66.5%, rgba(255,255,255,.3) 66.8%, transparent 66.9%); pointer-events: none; }
.ve-box.pv .ve-crop { opacity: 0; }
.ve-prev { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; background: #000; box-shadow: 0 0 0 9999px #000; pointer-events: none; }
.ve-load { position: absolute; }
.ve-ctl { display: flex; align-items: center; gap: 12px; padding: 6px 24px 18px; }
.ve-play { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #111; display: grid; place-items: center; cursor: pointer; flex: none; }
.ve-play .icon { width: 18px; height: 18px; }
.ve-time, .ve-dur { font-variant-numeric: tabular-nums; color: #c4c7c5; font-size: 13px; min-width: 38px; }
.ve-tl { position: relative; flex: 1; height: 40px; }
.ve-path { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 34px; pointer-events: none; opacity: .9; }
.ve-scrub { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; accent-color: #5fd3de; }
.ve-pv { display: inline-flex; gap: 6px; align-items: center; color: #c4c7c5; font-size: 13px; white-space: nowrap; }
.ve-focus { display: grid; gap: 6px; }
.ve-fbtn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid #2f3134; background: #1d1e21; color: #e8eaed; font: inherit; cursor: pointer; }
.ve-fbtn small { color: #9aa0a6; font-size: 12px; }
.ve-fbtn.on { border-color: #ffc21a; background: #2a2619; }
.ve-panel .ie2-chip.on { background: #ffc21a; color: #111; border-color: #ffc21a; }
.ve-status { min-height: 18px; color: #c4c7c5 !important; margin: 10px 0 4px; }
.ve-tip { color: #8a8f95 !important; font-size: 12.5px; }
.ve-sublist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ve-sublist li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: #1d1e21; }
.ve-sublist b { flex: 1; font-weight: 600; } .ve-sublist small { color: #9aa0a6; }
.ve-sublist .ie2-ic .icon { width: 16px; height: 16px; }
@media (max-width: 900px) { .ve-main, .ie2-main { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) 46vh; } .ve-box { height: 40vh; } }
.ve-box { overflow: hidden; }
/* Hochformat-Bilder (z. B. 9:16-Format) vollständig zeigen */
.stage-media .img-wrap:not(.zoomed) { display: flex; align-items: center; justify-content: center; min-height: 0; }
.stage-media .img-wrap:not(.zoomed) img { max-height: 100%; max-width: 100%; height: auto; width: auto; min-height: 0; }

/* Runde 24: Intro – Kugel fährt über den ganzen Bildschirm, stellt Scout, Pixel und Dub vor, Start beim Logo */
.splash { overflow: hidden; }
.splash-in { flex-direction: row; align-items: center; gap: clamp(8px, 3vw, 36px); }
.splash-in .splash-logo .sh-logo { width: min(280px, 46vw); }
.splash-slot { width: clamp(110px, 20vw, 180px); height: clamp(110px, 20vw, 180px); flex: none; }
.splash-bot { position: fixed; left: 0; top: 0; width: clamp(110px, 20vw, 180px); height: clamp(110px, 20vw, 180px); will-change: transform; pointer-events: none; z-index: 2; }
.splash-bot canvas { display: block; width: 100% !important; height: 100% !important; }
.splash-cap { position: fixed; transform: translate(-14px, -50%); opacity: 0; transition: opacity .45s ease, transform .55s cubic-bezier(.2,.8,.2,1); pointer-events: none; display: flex; flex-direction: column; gap: 4px; max-width: min(420px, 46vw); z-index: 3; }
.splash-cap.to-left { text-align: right; align-items: flex-end; transform: translate(14px, -50%); }
.splash-cap.on { opacity: 1; transform: translate(0, -50%); }
.splash-cap b { font-size: clamp(34px, 5.4vw, 64px); line-height: 1; font-weight: 750; letter-spacing: -.035em; color: #fff; }
.splash-cap span { font-size: clamp(15px, 1.6vw, 20px); color: #7fd8e6; letter-spacing: .01em; }
.splash-start { position: fixed; left: 50%; bottom: clamp(48px, 12vh, 120px); transform: translate(-50%, 16px); opacity: 0; transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1); min-width: 190px; height: 54px; padding: 0 34px; border: 0; border-radius: 999px; background: #fff; color: #0f1214; font: inherit; font-size: 17px; font-weight: 650; letter-spacing: .01em; cursor: pointer; box-shadow: 0 0 0 0 rgba(31,181,209,.5); z-index: 4; }
.splash-start.on { opacity: 1; transform: translate(-50%, 0); animation: splashPulse 2.4s ease-out 0.6s infinite; }
.splash-start:hover { background: #e9f8fb; }
.splash-start[hidden] { display: none; }
@keyframes splashPulse { 0% { box-shadow: 0 0 0 0 rgba(31,181,209,.55); } 70% { box-shadow: 0 0 0 18px rgba(31,181,209,0); } 100% { box-shadow: 0 0 0 0 rgba(31,181,209,0); } }
.splash-skip { position: fixed; right: 20px; top: calc(env(safe-area-inset-top) + 18px); border: 0; background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); font: inherit; font-size: 13px; padding: 8px 14px; border-radius: 999px; cursor: pointer; z-index: 4; }
.splash-skip:hover { background: rgba(255,255,255,.16); color: #fff; }
.splash-skip[hidden] { display: none; }
@media (max-width: 560px) { .splash-in { flex-direction: row; } .splash-cap { max-width: 60vw; } }
@media (prefers-reduced-motion: reduce) { .splash-start.on { animation: none; } .splash-cap { transition: none; } }
.splash .splash-logo .sh-smart, .splash .splash-logo .sh-dot { fill: #2aa3c2; }
/* Intro: Kugel rollt auf dem Boden – Schatten, Titel über der Kugel */
.splash-shadow { position: fixed; left: 0; top: 0; width: calc(clamp(110px, 20vw, 180px) * .6); height: 14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(95,211,222,.28), rgba(95,211,222,0)); pointer-events: none; z-index: 1; will-change: transform; }
.splash-cap { transform: translate(0, calc(-100% + 10px)); }
.splash-cap.on, .splash-cap.to-left.on { transform: translate(0, -100%); }
.splash-cap.to-left { transform: translate(0, calc(-100% + 10px)); }
.splash-in { position: relative; z-index: 3; }
/* Intro v3: S-Kurve aus der Tiefe, Vorstellung neben dem Logo, Verschwinden im Logo-Punkt */
.splash-bot { transform-origin: 50% 50%; z-index: 4; }
.splash-in { z-index: 3; }
.splash-shadow { transform-origin: 30% 50%; }
.splash-cap, .splash-cap.on, .splash-cap.to-left, .splash-cap.to-left.on { text-align: left; align-items: flex-start; }
.splash-cap { transform: translate(-10px, -50%); }
.splash-cap.on { transform: translate(0, -50%); }
.splash-cap.below { transform: translate(-50%, 8px); align-items: center; text-align: center; }
.splash-cap.below.on { transform: translate(-50%, 0); }
.splash .sh-dot { transform-box: fill-box; transform-origin: center; }
.splash.dot-pop .splash-logo .sh-dot { animation: shDotPop .6s cubic-bezier(.3,1.7,.5,1) both; }
@keyframes shDotPop { 0% { transform: scale(1); } 35% { transform: scale(1.65); filter: drop-shadow(0 0 14px #2aa3c2); } 100% { transform: scale(1); filter: drop-shadow(0 0 6px rgba(42,163,194,.6)); } }
