/* 00_tokens_base.css */
/* eduKAMI – Design-Tokens. Abgeleitet aus dem ED:ON-Frontend (assets/css/styles.css: Markenfarben,
   Radien, Schatten, Header-Höhe, Max-Breite) plus warme eduKAMI-Akzente. Schrift: Lexend lokal (OFL). */
@font-face {
  font-family: "Lexend";
  src: url("fonts/Lexend-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
:root {
  --edu-dark: #3B2B69; --edu-light: #00D4D1; --edu-blue: #707DFC; --edu-green: #00A100;
  --edu-yellow: #FFCC00; --edu-red: #FF4A38; --edon-lime: #C3D600;
  --accent: var(--edu-blue); --accent-2: var(--edu-red);
  --radius: 16px; --radius-sm: 10px; --radius-lg: 22px; --radius-pill: 999px;
  --header-h: 68px; --max-w: 1320px;
  --font: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", Tahoma, sans-serif;
  --font-read: "Lexend", "Segoe UI", "Noto Sans", "Noto Sans Arabic", "Geeza Pro", Tahoma, sans-serif;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ring: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent);
  /* Hell (Standard für eduKAMI: warm, papierhaft) */
  --bg: #FAF7F2; --bg-2: #F3EEE6; --surface: #FFFFFF; --surface-2: #F7F4EE; --surface-3: #EEE8DD;
  --border: rgba(59, 43, 105, .13); --border-2: rgba(59, 43, 105, .22);
  --text: #1E1733; --text-2: #574F72; --text-3: #8A83A6; --on-accent: #FFFFFF;
  --scrim: rgba(20, 14, 40, .62);
  --shadow: 0 12px 40px rgba(59, 43, 105, .14); --shadow-sm: 0 4px 16px rgba(59, 43, 105, .10);
  --paper: #FFFDF7; --stage-bg: #201A36;
  --logo-edu: #3B2B69; --logo-kami: #707DFC;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0E0B1A; --bg-2: #14102A; --surface: #1A1536; --surface-2: #221B45; --surface-3: #2C2456;
  --border: rgba(255, 255, 255, .10); --border-2: rgba(255, 255, 255, .17);
  --text: #F4F2FB; --text-2: #BDB7D4; --text-3: #8B85A8; --on-accent: #0B0820;
  --scrim: rgba(6, 4, 18, .74);
  --shadow: 0 10px 40px rgba(0, 0, 0, .38); --shadow-sm: 0 4px 16px rgba(0, 0, 0, .26);
  --paper: #FFFDF7; --stage-bg: #0B0818;
  --logo-edu: #FFFFFF; --logo-kami: #9AA3FF;
  --accent: #8C96FF;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; min-height: 100vh;
}
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 .8em; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
.muted { color: var(--text-2); }
.small { font-size: 13.5px; }
.tiny { font-size: 12px; color: var(--text-3); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.stack > * + * { margin-top: 12px; }
.hidden { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Buttons (ED:ON: Pillenform, 600) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px;
  border-radius: var(--radius-pill); border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none;
  background: var(--surface-2); color: var(--text); transition: transform .15s var(--ease), background .15s, box-shadow .15s, border-color .15s; white-space: nowrap;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 86%, #000); }
.btn--warm { background: var(--edu-red); color: #fff; }
.btn--warm:hover { background: color-mix(in srgb, var(--edu-red) 88%, #000); }
.btn--ghost { background: transparent; border-color: var(--border-2); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--danger { background: var(--edu-red); color: #fff; }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 14px 28px; font-size: 17px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.iconbtn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid transparent;
  background: transparent; color: var(--text); transition: background .15s, transform .15s; position: relative; flex: none;
}
.iconbtn:hover { background: var(--surface-2); }
.iconbtn:active { transform: scale(.94); }
.iconbtn.on, .iconbtn[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.iconbtn[disabled] { opacity: .35; cursor: not-allowed; }
.iconbtn--sm { width: 34px; height: 34px; border-radius: 10px; }
.iconbtn--lg { width: 56px; height: 56px; border-radius: 16px; }
.iconbtn--lg .ic { width: 28px; height: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 5px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-2); background: var(--surface); font-size: 14px; font-weight: 500; color: var(--text-2); transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip.sel, .chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  background: var(--surface-3); color: var(--text-2); white-space: nowrap;
}
.badge--bbk { background: #FFE7E3; color: #B3261A; }
.badge--kami { background: #E6E8FF; color: #3B44B8; }
.badge--proj { background: #DDF7E1; color: #106B1E; }
.badge--tpl { background: #FFF3C4; color: #7A5A00; }
.badge--real { background: var(--edu-dark); color: #fff; }
.badge--demo { background: #DFF7F6; color: #00706E; }
.badge--draft { background: #FFF3C4; color: #7A5A00; }
.badge--warn { background: #FFE7E3; color: #B3261A; }
[data-theme="dark"] .badge--bbk { background: #4A1F1B; color: #FFB4AA; }
[data-theme="dark"] .badge--kami { background: #262B66; color: #C6CAFF; }
[data-theme="dark"] .badge--proj { background: #133A1A; color: #9BE5A6; }
[data-theme="dark"] .badge--tpl, [data-theme="dark"] .badge--draft { background: #3D3210; color: #FFE08A; }
[data-theme="dark"] .badge--demo { background: #0E3836; color: #8CEDEA; }
[data-theme="dark"] .badge--warn { background: #4A1F1B; color: #FFB4AA; }

/* ---------- Formulare ---------- */
.input, .select, .textarea {
  width: 100%; min-height: 42px; padding: 9px 13px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text);
}
.textarea { min-height: 84px; resize: vertical; line-height: 1.45; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.field { display: grid; gap: 5px; font-size: 14px; }
.field > span { font-weight: 600; color: var(--text-2); font-size: 13px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
input[type="range"] { accent-color: var(--accent); width: 100%; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 18px; height: 18px; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }

/* ---------- Karten / Panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.panel h3 { font-size: 16px; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font-size: 14px; color: var(--text-2); }
.note .ic { color: var(--accent); margin-top: 2px; }
.note--warn { background: color-mix(in srgb, var(--edu-yellow) 16%, var(--surface)); border-color: color-mix(in srgb, var(--edu-yellow) 45%, transparent); }
.note--warn .ic { color: #B07D00; }
.note--rights { background: color-mix(in srgb, var(--edu-red) 9%, var(--surface)); border-color: color-mix(in srgb, var(--edu-red) 30%, transparent); }
.note--rights .ic { color: var(--edu-red); }
.empty { text-align: center; padding: 48px 20px; color: var(--text-2); }
.empty .ic { width: 48px; height: 48px; margin: 0 auto 12px; color: var(--text-3); }

/* ---------- Modal / Toast ---------- */
.modal-back { position: fixed; inset: 0; background: var(--scrim); display: grid; place-items: center; z-index: 1000; padding: 16px; opacity: 0; transition: opacity .18s; }
.modal-back.in { opacity: 1; }
.modal { background: var(--surface); color: var(--text); border-radius: var(--radius-lg); box-shadow: var(--shadow); width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; transform: translateY(12px) scale(.98); transition: transform .22s var(--ease-out); }
.modal-back.in .modal { transform: none; }
.modal--wide { width: min(980px, 100%); }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 8px; }
.modal__head h2 { font-size: 19px; margin: 0; }
.modal__body { padding: 8px 20px 16px; overflow: auto; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px 18px; flex-wrap: wrap; }
#toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 2000; display: grid; gap: 8px; pointer-events: none; width: min(520px, calc(100% - 32px)); }
.toast { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--edu-dark); color: #fff; box-shadow: var(--shadow); font-size: 14.5px; opacity: 0; transform: translateY(10px); transition: all .25s var(--ease-out); }
.toast.in { opacity: 1; transform: none; }
.toast--ok .ic { color: #7CF08A; }
.toast--warn .ic, .toast--error .ic { color: var(--edu-yellow); }
.toast--error { background: #7A1B12; }
.loader { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--border-2); border-top-color: var(--accent); animation: spin .8s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .2s; }
.kbd { display: inline-block; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--border-2); background: var(--surface-2); font-size: 12px; font-weight: 600; }

/* 10_layout_pages.css */
/* eduKAMI – Header, Navigation, Startseite, Medienreihen, Karten, Detailseite (ED:ON-verwandt) */
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; }
.skip:focus { left: 12px; background: var(--surface); padding: 8px 14px; border-radius: 10px; }
.header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header__in { height: 100%; display: flex; align-items: center; gap: 18px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; border-radius: 10px; }
.logo svg { height: 40px; width: auto; }
.logo .lg-edu { fill: var(--logo-edu); }
.logo .lg-kami { fill: var(--logo-kami); }
.logo .lg-frame { fill: #3B2B69; }
[data-theme="dark"] .logo .lg-frame { fill: #EDEBFA; }
.nav { display: flex; gap: 2px; align-items: center; flex: 1; min-width: 0; }
.nav a {
  position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: var(--radius-pill);
  font-size: 14.5px; font-weight: 500; color: var(--text-2); text-decoration: none; transition: color .15s, background .15s; white-space: nowrap;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--text); background: var(--surface-2); }
.nav a.active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--accent); }
.nav a .ic { width: 18px; height: 18px; }
.header__right { display: flex; align-items: center; gap: 6px; }
.hsearch { position: relative; width: 210px; }
.hsearch .input { padding-left: 38px; min-height: 40px; border-radius: var(--radius-pill); background: var(--surface); }
.hsearch .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; color: var(--text-3); pointer-events: none; }
.iconbtn .count { position: absolute; top: 3px; right: 3px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--edu-red); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.botnav { display: none; }
main#app { min-height: calc(100vh - var(--header-h) - 120px); opacity: 0; transition: opacity .22s var(--ease); }
main#app.view-in { opacity: 1; }
.footer { border-top: 1px solid var(--border); margin-top: 56px; padding: 26px 0 34px; color: var(--text-3); font-size: 13px; }
.footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
.footer a { color: var(--text-2); }
body.immersive .header, body.immersive .footer, body.immersive .botnav { display: none; }
body.immersive main#app { min-height: 100vh; }

/* ---------- Startseite: Hero ---------- */
.hero { position: relative; margin: 22px 0 8px; border-radius: 26px; overflow: hidden; background: var(--edu-dark); color: #fff; box-shadow: var(--shadow); }
.hero__slides { position: relative; aspect-ratio: 21 / 8.4; min-height: 360px; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ease); pointer-events: none; }
.hero__slide.on { opacity: 1; pointer-events: auto; }
.hero__art { position: absolute; inset: 0; }
.hero__art > img { width: 100%; height: 100%; object-fit: cover; }
.hero__art .stage-static { position: absolute; inset: 0; }
.hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 12, 44, .92) 0%, rgba(20, 12, 44, .62) 40%, rgba(20, 12, 44, .05) 72%), linear-gradient(0deg, rgba(20, 12, 44, .6), transparent 50%); }
.hero__txt { position: absolute; z-index: 2; left: 48px; bottom: 46px; max-width: 540px; }
.hero__kicker { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--edu-light); font-weight: 700; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.hero__txt h1 { font-size: clamp(28px, 3.6vw, 46px); color: #fff; margin-bottom: 12px; }
.hero__txt p { color: rgba(255, 255, 255, .86); font-size: 16.5px; max-width: 480px; }
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hero__cta .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.hero__cta .btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.hero__dots { position: absolute; z-index: 3; right: 26px; bottom: 26px; display: flex; gap: 8px; align-items: center; }
.hero__dot { width: 11px; height: 11px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .45); padding: 0; transition: width .25s, background .25s; }
.hero__dot.on { width: 30px; border-radius: 6px; background: #fff; }
.hero__pause { color: #fff; }
.hero__pause:hover { background: rgba(255, 255, 255, .14); }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0 6px; }
.quick a { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-decoration: none; transition: transform .18s var(--ease), box-shadow .18s; }
.quick a:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.quick .qi { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; color: #fff; }
.quick b { display: block; font-size: 15.5px; }
.quick span { font-size: 13px; color: var(--text-2); }

/* ---------- Medienreihen (ED:ON .rail: scroll-snap) mit zusätzlichen Pfeilen ---------- */
.section { margin-top: 40px; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section__head h2 { font-size: 22px; margin: 0; }
.section__head p { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }
.section__nav { display: flex; gap: 6px; }
.section__nav .iconbtn { border: 1px solid var(--border); background: var(--surface); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 262px; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: thin; scroll-behavior: smooth; }
.rail > * { scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 8px; }
.grid--media { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 18px; }

/* ---------- Medienkarte (ED:ON .card) ---------- */
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-3); }
.card__thumb > img, .card__thumb > .stage-static { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.card:hover .card__thumb > img, .card:hover .card__thumb > .stage-static { transform: scale(1.05); }
.card__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .45), transparent 45%); pointer-events: none; }
.card__play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: #fff; color: var(--edu-dark); display: grid; place-items: center; opacity: 0; transform: scale(.8); transition: all .2s var(--ease); }
.card:hover .card__play { opacity: 1; transform: none; }
.card__fav { position: absolute; z-index: 3; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--edu-red); display: grid; place-items: center; }
.card__fav:hover { background: #fff; }
.card__modes { position: absolute; z-index: 2; left: 10px; bottom: 8px; display: flex; gap: 5px; }
.card__modes span { width: 26px; height: 26px; border-radius: 8px; background: rgba(0, 0, 0, .5); color: #fff; display: grid; place-items: center; }
.card__modes .ic { width: 15px; height: 15px; }
.card__body { padding: 12px 14px 14px; display: grid; gap: 6px; flex: 1; align-content: start; }
.card__badges { display: flex; gap: 6px; flex-wrap: wrap; }
.card__title { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.card__meta { font-size: 13px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Channel-/Listenseiten ---------- */
.chan-banner { margin-top: 22px; border-radius: 22px; padding: 26px 30px; background: linear-gradient(120deg, var(--edu-dark), #1f1640); color: #fff; display: flex; gap: 22px; align-items: center; justify-content: space-between; }
.chan-banner h1 { font-size: 30px; color: #fff; margin-bottom: 6px; }
.chan-banner p { color: rgba(255, 255, 255, .85); margin: 0; max-width: 680px; }
.chan-banner__art { width: 150px; height: 96px; border-radius: 14px; overflow: hidden; flex: none; background: rgba(255, 255, 255, .1); }
.chan-banner__art > img { width: 100%; height: 100%; object-fit: cover; }
.filterbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 18px 0; }
.filterbar .select { width: auto; min-width: 170px; }
.searchbar-page { position: relative; margin-top: 18px; }
.searchbar-page .input { padding-left: 44px; min-height: 50px; border-radius: var(--radius-pill); font-size: 16px; }
.searchbar-page .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.resultinfo { font-size: 13.5px; color: var(--text-2); margin-bottom: 10px; }

/* ---------- Detailseite ---------- */
.chip--back { margin-top: 18px; }
.dhero { position: relative; margin-top: 14px; border-radius: 24px; overflow: hidden; background: var(--edu-dark); color: #fff; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); min-height: 360px; box-shadow: var(--shadow); }
.dhero__cover { position: relative; background: #000; }
.dhero__cover > img, .dhero__cover > .stage-static { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; }
.dhero__txt { padding: 30px 34px; display: flex; flex-direction: column; gap: 12px; justify-content: center; background: linear-gradient(160deg, #3B2B69, #241848); }
.dhero__txt h1 { font-size: clamp(26px, 3vw, 38px); color: #fff; margin: 0; }
.dhero__txt .sub { color: var(--edu-light); font-weight: 600; font-size: 14px; }
.dhero__txt p { color: rgba(255, 255, 255, .86); margin: 0; font-size: 15px; }
.dhero .badge { background: rgba(255, 255, 255, .14); color: #fff; }
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.mode {
  display: grid; gap: 6px; justify-items: center; text-align: center; padding: 16px 10px; border-radius: 16px; border: 2px solid var(--border); background: var(--surface);
  font-weight: 650; font-size: 15px; text-decoration: none; transition: transform .18s var(--ease), border-color .18s, box-shadow .18s; min-height: 112px; align-content: center;
}
.mode .ic { width: 30px; height: 30px; color: var(--accent); }
.mode:not(.off):hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-sm); }
.mode small { font-weight: 400; font-size: 12px; color: var(--text-3); line-height: 1.3; }
.mode.off { opacity: .55; cursor: not-allowed; border-style: dashed; }
.mode.off .ic { color: var(--text-3); }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 28px; margin-top: 26px; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin: 0; }
.meta-grid > div { background: var(--surface); padding: 12px 14px; }
.meta-grid dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.meta-grid dd { margin: 3px 0 0; font-size: 14.5px; }
.prov { font-size: 10px; padding: 1px 6px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); text-transform: none; letter-spacing: 0; font-weight: 600; }
.prov--file { background: #E6E8FF; color: #3B44B8; }
.prov--manual { background: #FFF3C4; color: #7A5A00; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.side-card h3 { font-size: 15px; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.assetrow { display: flex; gap: 12px; align-items: center; padding: 9px 8px; border-radius: 12px; text-decoration: none; transition: background .15s; }
.assetrow:hover { background: var(--surface-2); }
.assetrow__ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.assetrow__t { flex: 1; min-width: 0; }
.assetrow__t b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.assetrow__t small { color: var(--text-3); font-size: 12px; }
.langbtn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border-radius: 16px; border: 0; background: linear-gradient(120deg, #00A6A3, #00D4D1); color: #04211F; font-weight: 700; text-align: left; font-size: 15.5px; box-shadow: var(--shadow-sm); }
.langbtn .ic { width: 28px; height: 28px; }
.langbtn small { display: block; font-weight: 500; font-size: 12.5px; opacity: .85; }
.langbtn:hover { filter: brightness(1.05); }

/* ---------- Responsiv (ED:ON-Breakpoints) ---------- */
@media (max-width: 1520px) { .nav a span.lbl { display: none; } .nav a { padding: 10px; } .nav a.active::after { left: 10px; right: 10px; } }
@media (max-width: 1080px) {
  .detail { grid-template-columns: minmax(0, 1fr); }
  .dhero { grid-template-columns: 1fr; }
  .dhero__cover { aspect-ratio: 16 / 9; }
  .quick { grid-template-columns: repeat(2, 1fr); }
  .hsearch { width: 170px; }
}
@media (max-width: 820px) {
  :root { --header-h: 60px; }
  .wrap { padding: 0 16px; }
  .nav, .hsearch { display: none; }
  .header__in { justify-content: space-between; }
  .botnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; height: 64px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--border); }
  .botnav a { display: grid; justify-items: center; align-content: center; gap: 2px; font-size: 10.5px; text-decoration: none; color: var(--text-2); }
  .botnav a.active { color: var(--accent); }
  body { padding-bottom: 64px; }
  body.immersive { padding-bottom: 0; }
  .hero__slides { aspect-ratio: 4 / 5; min-height: 440px; }
  .hero__txt { left: 22px; right: 22px; bottom: 60px; }
  .hero__slide::after { background: linear-gradient(0deg, rgba(20, 12, 44, .95) 10%, rgba(20, 12, 44, .4) 60%, transparent); }
  .modes { grid-template-columns: repeat(2, 1fr); }
  .chan-banner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 540px) { .rail { grid-auto-columns: 200px; } .quick { grid-template-columns: 1fr; } .dhero__txt { padding: 22px; } }

.detail > * { min-width: 0; }
@media (max-width: 540px) { .section__nav .iconbtn { display: none; } .meta-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } }

/* 20_player_kamishibai_stage_lang.css */
/* eduKAMI – Bühne (Renderer), E-Kamishibai-Player (3 Stile), Satzkarte, Sprachförderassistent.
   Wird auch in exportierte Offline-Präsentationen übernommen. */
.stage { position: relative; width: 100%; overflow: hidden; background: #FFFDF7; container-type: inline-size; }
.stage__layer { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; }
.stage__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.stage--bgmissing::before { content: "Hintergrund fehlt"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; color: #8A83A6; }
.so { position: absolute; transform-origin: 50% 50%; user-select: none; -webkit-user-select: none; }
.so img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.so--ghost { opacity: .35 !important; outline: 3px dashed #8A83A6; }
.so--missing { background: repeating-linear-gradient(45deg, #EEE8DD 0 12px, #F7F4EE 12px 24px); border: 3px dashed #B3261A; border-radius: 12px; display: grid; place-items: center; }
.so__miss { color: #B3261A; font-size: 28px; font-weight: 700; }
.so__shape { position: absolute; inset: 0; width: 100%; height: 100%; }
.so__text { position: absolute; inset: 8% 7% 22%; display: grid; place-items: center; font-family: var(--font-read); font-weight: 600; line-height: 1.2; overflow: hidden; overflow-wrap: anywhere; }
.so--thought .so__text { inset: 8% 9% 18%; }
.so--text .so__text { inset: 6% 4%; }
.so--text { border-radius: 18px; }
.so--clickable { cursor: pointer; }
.so--clickable:hover { filter: drop-shadow(0 0 14px rgba(255, 204, 0, .9)); }
.stage-static .so, .stage-static .stage__layer { pointer-events: none; }

/* ---------- Kamishibai-Player ---------- */
.player-host { position: relative; width: 100%; height: 100vh; height: 100dvh; background: var(--stage-bg); color: #fff; }
.kp { position: absolute; inset: 0; display: flex; flex-direction: column; background: radial-gradient(ellipse at 50% 30%, #2B2350, #120E24 70%); outline: none; overflow: hidden; }
.kp__theatre { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 18px 6px; }
.kp__frame { position: relative; width: min(100%, calc((100dvh - 190px) * 16 / 9)); max-height: 100%; }
.kp__viewport { position: relative; width: 100%; overflow: hidden; background: #000; border-radius: 6px; z-index: 1; }
.kp__card { position: absolute; inset: 0; opacity: 0; transition: none; }
.kp__card.on { opacity: 1; z-index: 2; }
.kp__card.fade-in { animation: kpFadeIn var(--dur) var(--ease) both; }
.kp__card.fade-out { animation: kpFadeOut var(--dur) var(--ease) both; z-index: 3; opacity: 1; }
.kp__card.under { z-index: 1; opacity: 1; }
.kp__card.pull-out { z-index: 3; opacity: 1; animation: kpPull var(--dur) cubic-bezier(.55, 0, .3, 1) both; }
.kp__card.pull-out-rev { z-index: 3; opacity: 1; animation: kpPullRev var(--dur) cubic-bezier(.55, 0, .3, 1) both; }
@keyframes kpFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes kpFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes kpPull { 0% { transform: translateX(0); } 15% { transform: translateX(-2%) rotate(-.3deg); } 100% { transform: translateX(-104%); } }
@keyframes kpPullRev { 0% { transform: translateX(0); } 100% { transform: translateX(104%); } }
.kp__card .stage { position: absolute; inset: 0; height: 100%; }
.kp__frameimg { position: absolute; inset: -4.5% -3.2%; width: 106.4%; height: 109%; max-width: none; z-index: 4; pointer-events: none; }
.kp__door, .kp__curtain, .kp__lights { position: absolute; z-index: 5; pointer-events: none; }
.kp__decor { display: none; }
/* Stil 1: Holz-Butai mit Rahmen, Türen und Holzsockel */
.kp[data-style="holz"] { background: radial-gradient(ellipse at 50% 20%, #5A3D2B, #24160F 75%); }
.kp[data-style="holz"] .kp__frame { width: min(92%, calc((100dvh - 230px) * 16 / 9)); padding: 3.2%; background: linear-gradient(180deg, #A97A4E, #7A5032); border-radius: 14px; box-shadow: 0 30px 60px rgba(0, 0, 0, .55), inset 0 0 0 3px #5E3B24, inset 0 6px 0 rgba(255, 255, 255, .15); }
.kp[data-style="holz"] .kp__frame::before { content: ""; position: absolute; left: 50%; top: -8%; width: 40%; height: 9%; transform: translateX(-50%); background: linear-gradient(180deg, #9A6B42, #7A5032); clip-path: polygon(8% 100%, 50% 0, 92% 100%); }
.kp[data-style="holz"] .kp__frame::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: -6%; height: 6%; background: linear-gradient(180deg, #6E4529, #4A2D1A); border-radius: 0 0 10px 10px; }
.kp[data-style="holz"] .kp__frameimg { display: none; }
.kp[data-style="holz"] .kp__door { top: 3.2%; bottom: 3.2%; width: 47%; background: repeating-linear-gradient(90deg, #8E603C 0 18px, #82572F 18px 20px), #8E603C; border: 3px solid #5E3B24; transition: transform 1.1s cubic-bezier(.5, 0, .2, 1); box-shadow: inset 0 0 30px rgba(0, 0, 0, .35); }
.kp[data-style="holz"] .kp__door--l { left: 3.2%; transform-origin: 0 50%; border-radius: 8px 0 0 8px; }
.kp[data-style="holz"] .kp__door--r { right: 3.2%; transform-origin: 100% 50%; border-radius: 0 8px 8px 0; }
.kp[data-style="holz"] .kp__door::after { content: ""; position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: #E6C27A; }
.kp[data-style="holz"] .kp__door--l::after { right: 10px; } .kp[data-style="holz"] .kp__door--r::after { left: 10px; }
.kp[data-style="holz"].kp--doors-open .kp__door--l { transform: perspective(1600px) rotateY(-78deg); }
.kp[data-style="holz"].kp--doors-open .kp__door--r { transform: perspective(1600px) rotateY(78deg); }
.kp:not([data-style="holz"]) .kp__door { display: none; }
/* Stil 2: moderne Theaterbühne mit Vorhang und Licht */
.kp[data-style="modern"] { background: radial-gradient(ellipse at 50% 0%, #3E2F7A 0%, #160F33 55%, #0B0820 100%); }
.kp[data-style="modern"] .kp__frame { width: min(88%, calc((100dvh - 230px) * 16 / 9)); }
.kp[data-style="modern"] .kp__frameimg { opacity: .9; }
.kp[data-style="modern"] .kp__curtain { top: -6%; bottom: -3%; width: 14%; background: repeating-linear-gradient(90deg, #C9302A 0 14px, #A9221D 14px 26px, #D9443C 26px 34px); box-shadow: inset -12px 0 24px rgba(0, 0, 0, .35); transition: width 1.2s cubic-bezier(.5, 0, .2, 1); }
.kp[data-style="modern"] .kp__curtain--l { left: -9%; border-radius: 0 0 60% 0 / 0 0 12% 0; }
.kp[data-style="modern"] .kp__curtain--r { right: -9%; border-radius: 0 0 0 60% / 0 0 0 12%; }
.kp[data-style="modern"] .kp__lights { inset: -12% -8% auto; height: 40%; background: radial-gradient(ellipse at 30% 0, rgba(255, 230, 160, .22), transparent 55%), radial-gradient(ellipse at 70% 0, rgba(160, 200, 255, .18), transparent 55%); }
.kp[data-style="modern"] .kp__viewport { box-shadow: 0 0 80px rgba(140, 150, 255, .25), 0 30px 60px rgba(0, 0, 0, .6); }
.kp:not([data-style="modern"]) .kp__curtain, .kp:not([data-style="modern"]) .kp__lights { display: none; }
/* Stil 3: schlicht, maximaler Bildraum */
.kp[data-style="minimal"] { background: #000; }
.kp[data-style="minimal"] .kp__theatre { padding: 0; }
.kp[data-style="minimal"] .kp__frame { width: min(100%, calc((100dvh - 92px) * 16 / 9)); }
.kp[data-style="minimal"] .kp__frameimg { display: none; }
.kp[data-style="minimal"] .kp__viewport { border-radius: 0; }
.kp--blackout .kp__viewport::after { content: ""; position: absolute; inset: 0; background: #000; z-index: 9; }
/* Steuerleiste: groß und treffsicher (Whiteboard/Touch) */
.kp__bar { display: flex; align-items: center; gap: 6px; padding: 8px 14px 12px; flex-wrap: wrap; justify-content: center; background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent); transition: opacity .35s, transform .35s; z-index: 10; }
.kp__bar .iconbtn, .kp__triggers .btn { color: #fff; }
.kp__bar .iconbtn:hover { background: rgba(255, 255, 255, .14); }
.kp__bar .iconbtn[aria-pressed="true"] { background: rgba(0, 212, 209, .25); color: var(--edu-light); }
.kp__mid { display: grid; gap: 4px; min-width: 110px; text-align: center; }
.kp__count { font-weight: 700; font-size: 15px; }
.kp__progress { height: 5px; border-radius: 4px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.kp__progress i { display: block; height: 100%; width: 0; background: var(--edu-yellow); }
.kp__sel { width: auto; min-height: 44px; background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); }
.kp__sel option { color: #1E1733; }
.kp--idle .kp__bar, .kp--idle .kp__triggers { opacity: 0; transform: translateY(12px); }
.kp--idle { cursor: none; }
.kp--present .kp__bar { justify-content: center; }
.kp__triggers { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 11; transition: opacity .35s; max-width: 60%; }
.kp__trig { background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .25); color: #fff; }
.kp__trig:hover { background: rgba(0, 0, 0, .65); }
.kp__thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 8px 14px; background: rgba(0, 0, 0, .35); z-index: 10; }
.kp__thumb { flex: none; width: 168px; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #000; padding: 0; color: #fff; text-align: left; }
.kp__thumb.on { border-color: var(--edu-yellow); }
.kp__thumb span { display: block; padding: 4px 8px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp__drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 92vw); z-index: 20; background: var(--surface); color: var(--text); box-shadow: -10px 0 40px rgba(0, 0, 0, .4); overflow-y: auto; }
.kp--drawer .kp__theatre { padding-right: min(410px, 92vw); }
@media (max-width: 900px) { .kp--drawer .kp__theatre { padding-right: 18px; } }

/* ---------- Satzkarte (Lesehilfe außerhalb der Bildfläche) ---------- */
.kp__caption, .br__caption { width: min(100%, 980px); margin: 8px auto 0; z-index: 6; }
.cap { background: rgba(255, 253, 247, .97); color: #1E1733; border-radius: 16px; padding: 10px 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); position: relative; }
.cap__line { margin: 2px 0; font-family: var(--font-read); font-size: clamp(16px, 1.9vw, 24px); line-height: 1.4; font-weight: 500; }
.cap__line + .cap__line { border-top: 1px dashed rgba(59, 43, 105, .25); padding-top: 6px; color: #3B2B69; }
.cap--big .cap__line { font-size: clamp(22px, 3.2vw, 40px); font-weight: 650; text-align: center; }
.cap__line[dir="rtl"] { text-align: right; font-family: "Noto Sans Arabic", "Geeza Pro", "Arial", var(--font-read); line-height: 1.7; }
.cap--big .cap__line[dir="rtl"] { text-align: center; }
.cap__draft { position: absolute; top: -10px; right: 12px; background: var(--edu-yellow); color: #3B2B69; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 8px; }

/* ---------- Sprachförderassistent ---------- */
.lang-drawer { padding: 16px; display: grid; gap: 12px; align-content: start; font-size: 14.5px; }
.lang__head { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.lang__head b { font-size: 17px; }
.lang__langs { display: grid; gap: 10px; }
.lang__src { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface-3); }
.seg--full { display: flex; width: 100%; }
.seg--full .seg__b { flex: 1; }
.seg__b { border: 0; background: transparent; padding: 7px 11px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--text-2); display: inline-flex; align-items: center; gap: 4px; min-height: 36px; }
.seg__b[aria-pressed="true"], .seg__b[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.seg--sm .seg__b { padding: 5px 9px; font-size: 12.5px; }
.lang__text { display: grid; gap: 8px; }
.lang__card { border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; background: var(--surface-2); }
.lang__cardhead { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.lang__sentence { font-family: var(--font-read); font-size: 18px; line-height: 1.5; margin: 0; }
.lang__card[dir="rtl"] .lang__sentence { font-family: "Noto Sans Arabic", "Geeza Pro", "Arial", var(--font-read); font-size: 20px; line-height: 1.8; }
.lang__subhead { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.lang__speech, .lang__vocab { display: grid; gap: 8px; border-top: 1px solid var(--border); padding-top: 10px; }
.lang__foot { border-top: 1px solid var(--border); padding-top: 10px; display: grid; gap: 6px; }
.vcard { display: flex; gap: 8px; align-items: center; justify-content: space-between; border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; background: var(--surface); }
.vcard--wod { border-color: var(--edu-yellow); box-shadow: 0 0 0 2px color-mix(in srgb, var(--edu-yellow) 40%, transparent); }
.vcard__terms { display: grid; gap: 6px; }
.vcard__terms b { display: block; font-size: 16px; }
.vcard__terms small { color: var(--text-2); }
.vcard__terms [dir="rtl"] { text-align: right; }
.vcard__act { display: flex; gap: 2px; }
.wod { display: flex; gap: 8px; align-items: baseline; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--edu-yellow) 25%, var(--surface)); }
.lang-editor { display: grid; gap: 10px; }
.lang-editor__rows { display: grid; gap: 10px; max-height: 52vh; overflow: auto; }
.lang-editor__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: start; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.lang-editor__row .tiny { grid-column: 1 / -1; }
.lang-editor__src { padding: 8px 10px; background: var(--surface-2); border-radius: 10px; font-size: 14px; min-height: 60px; }
@media (max-width: 640px) { .lang-editor__row { grid-template-columns: 1fr; } }

/* ---------- Exportierte Präsentation: Startbildschirm ---------- */
body.ekx { background: #0B0820; color: #fff; margin: 0; }
.ekx__start { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 32px; padding: 32px; max-width: 1300px; margin: 0 auto; }
.ekx__cover { border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.ekx__txt h1 { color: #fff; font-size: clamp(26px, 4vw, 44px); }
.ekx__txt p { color: rgba(255, 255, 255, .8); }
@media (max-width: 800px) { .ekx__start { grid-template-columns: 1fr; } }

/* 30_book_media.css */
/* eduKAMI – Buchmodus (StPageFlip), Overlays/Hotspots, Präsentationswerkzeuge, Video- und Audioplayer */
.br { position: absolute; inset: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; background: radial-gradient(ellipse at 50% 35%, #3A2F5C 0%, #1A1430 60%, #0F0B1E 100%); color: #fff; outline: none; overflow: hidden; }
.br__main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.br__stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; touch-action: none; }
.br__bookwrap { transform-origin: 50% 50%; transition: transform .15s; display: grid; place-items: center; }
.br__book { position: relative; filter: drop-shadow(0 28px 40px rgba(0, 0, 0, .55)); }
/* Buchrücken / Bund (nur Doppelseite) */
.br__book .stf__parent { margin: 0 auto; }
.br__page { background: #FFFDF7; overflow: hidden; }
.br__pagein { position: absolute; inset: 0; overflow: hidden; background: #FFFDF7; }
.br__full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.br__half img { position: absolute; top: 0; height: 100%; width: 200%; max-width: none; object-fit: contain; }
.br__page[data-half="L"] .br__pagein::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 8%; background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .16)); pointer-events: none; }
.br__page[data-half="R"] .br__pagein::after { content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 8%; background: linear-gradient(270deg, transparent, rgba(0, 0, 0, .18)); pointer-events: none; }
.br__scene { position: absolute; top: 0; height: 100%; width: 100%; }
.br__scene--L, .br__scene--R { width: 200%; }
.br__scene--R { left: -100%; }
.br__scene .stage { height: 100%; }
.br__title { display: grid; place-content: center; text-align: center; gap: 6px; padding: 10%; background: linear-gradient(160deg, #FFF6DE, #FCE9C9); color: #3B2B69; }
.br__title h2 { font-size: clamp(16px, 2.6vw, 34px); margin: 0; }
.br__title p { margin: 0; color: #574F72; }
.br__titleart { display: flex; justify-content: center; align-items: end; gap: 0; }
.br__titleart img { height: clamp(70px, 22vh, 280px); width: auto; }
.br__titleart img:first-child { height: clamp(40px, 12vh, 160px); }
.br__missing { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; color: #8A83A6; background: #F7F4EE; padding: 10%; }
.br__missing .ic { width: 36px; height: 36px; margin: 0 auto; color: #B3261A; }
.br__ov { position: absolute; inset: 0; pointer-events: none; }
.br--clean .br__ov, .br--clean .br__draw, .br--clean .br__banner { visibility: hidden; }
.bov { position: absolute; transform: translate(-50%, -50%); pointer-events: none; color: #1E1733; font-family: var(--font-read); font-weight: 600; font-size: clamp(10px, 1.25vw, 20px); line-height: 1.25; }
.bov--bubble, .bov--thought { aspect-ratio: 400 / 220; display: grid; place-items: center; }
.bov--bubble span, .bov--thought span { position: relative; padding: 8% 10% 24%; text-align: center; }
.bov--text { background: rgba(255, 253, 247, .92); border-radius: 12px; padding: .5em .8em; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.bov--sticker img { width: 100%; height: auto; }
.bov .so__shape { position: absolute; inset: 0; width: 100%; height: 100%; }
.br--editing .bov { pointer-events: auto; outline: 2px dashed rgba(112, 125, 252, .8); }
.bov__del { position: absolute; top: -10px; right: -10px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--edu-red); color: #fff; font-weight: 700; line-height: 1; pointer-events: auto; }
.hotspot { position: absolute; transform: translate(-50%, -50%); width: clamp(30px, 3.2vw, 48px); height: clamp(30px, 3.2vw, 48px); border-radius: 50%; border: 3px solid #fff; background: var(--edu-red); color: #fff; display: grid; place-items: center; pointer-events: auto; box-shadow: 0 4px 16px rgba(0, 0, 0, .35); z-index: 5; }
.hotspot .ic { width: 55%; height: 55%; }
.hotspot--pulse::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--edu-red); animation: hsPulse 1.8s ease-out infinite; }
.hotspot--bounce { animation: hsBounce 1.6s ease-in-out infinite; }
.hotspot--spin { background: var(--edu-yellow); color: #3B2B69; }
.hotspot--spin .ic { animation: spin 3s linear infinite; }
.hotspot.hs-fx { animation: hsFx .9s var(--ease-out); }
@keyframes hsPulse { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
@keyframes hsBounce { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, -75%); } }
@keyframes hsFx { 0% { transform: translate(-50%, -50%) scale(1); } 40% { transform: translate(-50%, -50%) scale(1.8) rotate(20deg); box-shadow: 0 0 40px 10px rgba(255, 204, 0, .9); } 100% { transform: translate(-50%, -50%) scale(1); } }
.hspop { position: absolute; z-index: 30; width: 280px; background: var(--surface); color: var(--text); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); display: grid; gap: 6px; }
.hspop > img { max-height: 140px; width: auto; margin: 0 auto; }
.hspop__x { position: absolute; top: 6px; right: 6px; }
.br__draw { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 20; }
.br__draw.active { pointer-events: auto; cursor: crosshair; }
.br[data-tool="pan"] .br__draw { cursor: grab; }
.br__spot { position: absolute; inset: 0; z-index: 21; pointer-events: none; background: radial-gradient(circle 150px at var(--x, 50%) var(--y, 50%), transparent 0 140px, rgba(0, 0, 0, .78) 160px); }
.br__ptr { position: absolute; left: 0; top: 0; z-index: 22; width: 56px; height: 56px; border-radius: 50%; border: 4px solid var(--edu-yellow); box-shadow: 0 0 0 6px rgba(255, 204, 0, .3), 0 0 30px rgba(255, 204, 0, .6); pointer-events: none; }
.br__editlayer { position: absolute; inset: 0; z-index: 19; }
.br__editlayer.placing { cursor: crosshair; background: rgba(112, 125, 252, .06); outline: 3px dashed rgba(112, 125, 252, .6); outline-offset: -6px; }
.br__banner { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 25; display: flex; gap: 12px; align-items: center; background: var(--edu-yellow); color: #3B2B69; padding: 12px 18px; border-radius: 16px; font-size: 18px; box-shadow: var(--shadow); max-width: 90%; }
.br__hint { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 15; display: flex; gap: 8px; align-items: center; background: rgba(0, 0, 0, .55); padding: 8px 14px; border-radius: 12px; font-size: 13.5px; transition: opacity .8s; pointer-events: none; }
.br__hint.fade { opacity: 0; }
.br__bar { display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 6px 12px 12px; transition: opacity .35s, transform .35s; }
.br__bar .iconbtn { color: #fff; }
.br__bar .iconbtn:hover { background: rgba(255, 255, 255, .14); }
.br__mid { display: grid; min-width: 170px; text-align: center; }
.br__count b { display: block; font-size: 16px; }
.br__count small { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .7); }
.br__sel { width: auto; min-height: 44px; max-width: 280px; background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); }
.br__sel option { color: #1E1733; }
.br__langbtn { background: linear-gradient(120deg, #00A6A3, #00D4D1); color: #04211F; }
.br__langbtn[aria-pressed="true"] { box-shadow: 0 0 0 3px #fff; }
.br__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 14px 6px; scrollbar-width: thin; transition: opacity .35s; }
.br__thumb { position: relative; flex: none; width: 104px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #000; }
.br__thumb > img { width: 100%; height: 100%; object-fit: cover; }
.br__thumb.on { border-color: var(--edu-yellow); }
.br__thumbn { position: absolute; left: 4px; bottom: 3px; font-size: 11px; font-weight: 700; background: rgba(0, 0, 0, .6); color: #fff; padding: 0 5px; border-radius: 5px; }
.br__thumbtitle { color: #fff; font-size: 12px; display: grid; place-items: center; height: 100%; }
.br__tools { display: flex; flex-direction: column; gap: 4px; padding: 10px 6px; background: rgba(0, 0, 0, .3); transition: opacity .35s, transform .35s; overflow-y: auto; }
.br__tools .iconbtn { color: #fff; }
.br__tools .iconbtn:hover { background: rgba(255, 255, 255, .14); }
.br__colors { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; }
.br__color { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); padding: 0; }
.br__color.on { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.br__side { width: min(380px, 88vw); background: var(--surface); color: var(--text); overflow-y: auto; box-shadow: -10px 0 40px rgba(0, 0, 0, .35); padding: 16px; display: grid; gap: 10px; align-content: start; }
.br__side .lang-drawer { padding: 0; }
.br__edgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.br__audio { display: flex; gap: 10px; align-items: center; padding: 6px 16px; background: rgba(0, 0, 0, .35); }
.br__audio .iconbtn { color: #fff; }
.br__audiomid { flex: 1; display: grid; gap: 2px; }
.br__time { font-variant-numeric: tabular-nums; font-size: 13px; }
.br--idle .br__bar, .br--idle .br__tools, .br--idle .br__thumbs { opacity: .08; }
.br--idle .br__bar:hover, .br--idle .br__tools:hover { opacity: 1; }
.br--blackout .br__stage::after { content: ""; position: absolute; inset: 0; background: #000; z-index: 40; }
.br--present .br__tools, .br--present .br__thumbs { display: none; }
.tm__list { display: grid; gap: 4px; max-height: 44vh; overflow: auto; }
.tm__row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 4px 8px; border-radius: 8px; }
.tm__row.on { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.stickers { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.sticker { border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); padding: 6px; aspect-ratio: 1; }
.sticker img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 820px) {
  .br { grid-template-columns: minmax(0, 1fr); }
  .br__tools { position: absolute; left: 0; top: 0; z-index: 30; flex-direction: row; flex-wrap: wrap; max-width: 100%; }
  .br__side { position: absolute; right: 0; top: 0; bottom: 0; z-index: 35; }
  .br__mid { min-width: 110px; }
}

/* ---------- Video ---------- */
.vp-wrap { padding-top: 18px; }
.vp__title { display: flex; gap: 10px; align-items: center; margin: 12px 0; font-size: 26px; }
.vp { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.vp__video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.vp__video::cue { background: rgba(0, 0, 0, .72); font-family: var(--font-read); }
.vp__big { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--edu-dark); display: grid; place-items: center; cursor: pointer; transition: opacity .2s; }
.vp__big .ic { width: 38px; height: 38px; }
.vp.playing .vp__big { opacity: 0; pointer-events: none; }
.vp__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; align-items: center; padding: 10px 14px; background: linear-gradient(0deg, rgba(0, 0, 0, .8), transparent); color: #fff; transition: opacity .3s; }
.vp.playing:not(:hover):not(:focus-within) .vp__bar { opacity: 0; }
.vp__bar .iconbtn { color: #fff; }
.vp__seek { flex: 1; }
.vp__time { font-variant-numeric: tabular-nums; font-size: 13.5px; white-space: nowrap; }
.vp__sel { width: auto; min-height: 36px; background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .25); font-size: 13px; }
.vp__sel option { color: #1E1733; }
.vp__nocc { display: inline-flex; align-items: center; gap: 4px; color: rgba(255, 255, 255, .7); }
.vp__err { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; background: #1A1430; color: #fff; }
/* ---------- Audio ---------- */
.ap { padding-top: 18px; }
.ap__card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 22px; box-shadow: var(--shadow-sm); }
.ap__cover { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #fff; border-radius: 16px; }
.ap__body { display: grid; gap: 12px; }
.ap__ctrl { display: flex; gap: 14px; align-items: center; }
.ap__play { background: var(--accent); color: #fff; border-radius: 50%; width: 72px; height: 72px; }
.ap__play:hover { background: color-mix(in srgb, var(--accent) 85%, #000); }
.ap__seek { display: flex; gap: 10px; align-items: center; }
@media (max-width: 820px) { .ap__card { grid-template-columns: 1fr; } }

/* 40_studio.css */
/* eduKAMI – Kreativstudio (Studio-Modus für Lehrkräfte, Kreativ-Modus für Kinder) */
.studio { position: fixed; inset: 0; display: grid; grid-template-columns: 290px minmax(0, 1fr) 320px; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "head head head" "lib center right" "bottom bottom bottom"; background: var(--bg); color: var(--text); }
.st__head { grid-area: head; display: flex; gap: 8px; align-items: center; padding: 8px 12px; background: var(--surface); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.st__title { font-size: 17px; font-weight: 650; border: 1px solid transparent; background: transparent; border-radius: 10px; padding: 6px 10px; min-width: 120px; max-width: 360px; }
.st__title:hover, .st__title:focus { border-color: var(--border-2); background: var(--surface-2); outline: none; }
.st__saved { font-size: 12.5px; color: var(--text-3); }
.st__saved.warn { color: #B07D00; }
.st__head .btn .lbl { display: inline; }
.st__lib { grid-area: lib; border-right: 1px solid var(--border); background: var(--surface); padding: 12px; overflow-y: auto; display: grid; gap: 10px; align-content: start; }
.lib__head { display: flex; justify-content: space-between; align-items: baseline; }
.lib__add { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lib__add .btn { padding: 6px 8px; font-size: 13px; }
.lib__cats { display: flex; flex-wrap: wrap; gap: 4px; }
.lib__cats .chip { min-height: 30px; padding: 3px 10px; font-size: 12.5px; }
.lib__cats .chip .ic { width: 15px; height: 15px; }
.lib__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.lib__item { position: relative; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); aspect-ratio: 1; padding: 6px 6px 18px; cursor: grab; display: grid; place-items: center; transition: transform .12s, border-color .12s; }
.lib__item:hover { border-color: var(--accent); transform: translateY(-2px); }
.lib__item img { width: 100%; height: 100%; object-fit: contain; }
.lib__item--audio { cursor: pointer; background: color-mix(in srgb, var(--edu-green) 12%, var(--surface)); }
.lib__name { position: absolute; left: 4px; right: 4px; bottom: 3px; font-size: 10.5px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.lib__dur { position: absolute; top: 4px; right: 6px; font-size: 10px; color: var(--text-3); }
.st__center { grid-area: center; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg-2); }
.st__ctools { display: flex; gap: 6px; align-items: center; padding: 6px 12px; }
.st__canvasarea { flex: 1; min-height: 0; overflow: auto; display: grid; place-items: center; padding: 16px; }
.st__canvasarea.drop { outline: 3px dashed var(--accent); outline-offset: -10px; }
.st__canvaswrap { box-shadow: var(--shadow); border-radius: 6px; overflow: hidden; touch-action: none; }
.stage[data-mode="edit"] .so { cursor: move; }
.stage.grid .stage__layer::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(59, 43, 105, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(59, 43, 105, .14) 1px, transparent 1px); background-size: 100px 100px; z-index: 900; }
.st__sellayer { position: absolute; inset: 0; z-index: 1000; pointer-events: none; --inv: 1; }
.st__sel { position: absolute; border: calc(2px * var(--inv)) solid var(--edu-blue); box-shadow: 0 0 0 calc(1px * var(--inv)) #fff; transform-origin: 50% 50%; pointer-events: auto; cursor: move; }
.st__sel.locked { border-style: dashed; border-color: #8A83A6; cursor: not-allowed; }
.st__h { position: absolute; width: calc(14px * var(--inv)); height: calc(14px * var(--inv)); background: #fff; border: calc(2px * var(--inv)) solid var(--edu-blue); border-radius: calc(4px * var(--inv)); transform: translate(-50%, -50%); }
.st__h--nw { left: 0; top: 0; cursor: nwse-resize; } .st__h--n { left: 50%; top: 0; cursor: ns-resize; } .st__h--ne { left: 100%; top: 0; cursor: nesw-resize; }
.st__h--e { left: 100%; top: 50%; cursor: ew-resize; } .st__h--se { left: 100%; top: 100%; cursor: nwse-resize; } .st__h--s { left: 50%; top: 100%; cursor: ns-resize; }
.st__h--sw { left: 0; top: 100%; cursor: nesw-resize; } .st__h--w { left: 0; top: 50%; cursor: ew-resize; }
.st__rot { position: absolute; left: 50%; top: calc(-38px * var(--inv)); width: calc(26px * var(--inv)); height: calc(26px * var(--inv)); transform: translateX(-50%); border-radius: 50%; background: var(--edu-blue); color: #fff; display: grid; place-items: center; cursor: grab; }
.st__rot .ic { width: 70%; height: 70%; pointer-events: none; }
.st__ghost { position: absolute; border: calc(2px * var(--inv)) dashed var(--edu-red); background: rgba(255, 74, 56, .06); pointer-events: none; }
.st__ghost span { position: absolute; top: calc(-14px * var(--inv)); left: calc(-14px * var(--inv)); width: calc(28px * var(--inv)); height: calc(28px * var(--inv)); border-radius: 50%; background: var(--edu-red); color: #fff; font-size: calc(16px * var(--inv)); display: grid; place-items: center; font-weight: 700; }
.st__right { grid-area: right; border-left: 1px solid var(--border); background: var(--surface); overflow-y: auto; padding: 10px; display: grid; gap: 10px; align-content: start; }
.st__rbody { display: grid; gap: 10px; }
.st__rbody h3 { font-size: 14.5px; margin: 6px 0 0; display: flex; align-items: center; gap: 6px; }
.presets { display: flex; flex-wrap: wrap; gap: 4px; }
.presets .chip { min-height: 30px; padding: 3px 9px; font-size: 12px; }
.presets .chip .ic { width: 14px; height: 14px; }
.animlist { display: grid; gap: 6px; }
.anim { border: 1px solid var(--border); border-radius: 12px; padding: 6px; display: grid; gap: 6px; }
.anim__head { display: flex; align-items: center; gap: 2px; }
.anim__head.on { color: var(--accent); }
.anim__name { flex: 1; border: 0; background: transparent; text-align: left; display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; padding: 4px; }
.layer { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 10px; }
.layer.on { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.layer__name { flex: 1; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; text-align: left; font-size: 13.5px; min-width: 0; }
.layer__name img { width: 30px; height: 30px; object-fit: contain; background: var(--surface-2); border-radius: 6px; }
.layer__name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.langblock { border: 1px solid var(--border); border-radius: 12px; padding: 8px; display: grid; gap: 6px; }
.select--sm { min-height: 34px; padding: 4px 8px; font-size: 13px; width: auto; }
.st__bottom { grid-area: bottom; border-top: 1px solid var(--border); background: var(--surface); padding: 6px 12px 8px; max-height: 42vh; overflow: auto; }
.st__bhead { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.sb { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 6px; }
.sb__item { position: relative; flex: none; width: 176px; border: 2px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface-2); cursor: pointer; transition: border-color .15s, transform .15s; }
.sb__item.on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.sb__item.dragging { opacity: .4; }
.sb__item.dropto { transform: translateX(8px); border-color: var(--edu-green); }
.sb__thumb { pointer-events: none; }
.sb__label { display: flex; gap: 6px; align-items: center; padding: 4px 6px; font-size: 12.5px; white-space: nowrap; overflow: hidden; }
.sb__n { background: var(--accent); color: #fff; border-radius: 6px; padding: 0 6px; font-weight: 700; font-size: 11.5px; }
.sb__act { position: absolute; top: 4px; right: 4px; display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.sb__item:hover .sb__act, .sb__item:focus-within .sb__act { opacity: 1; }
.sb__act .iconbtn { background: rgba(255, 255, 255, .9); color: #1E1733; }
.sb__add { flex: none; width: 120px; border: 2px dashed var(--border-2); border-radius: 12px; background: transparent; display: grid; place-content: center; gap: 4px; color: var(--text-2); font-size: 13px; }
/* Timeline */
.tl__bar { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.tl__time { font-variant-numeric: tabular-nums; min-width: 64px; }
.tl { display: grid; grid-template-columns: 150px minmax(0, 1fr); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.tl__heads { background: var(--surface-2); border-right: 1px solid var(--border); }
.tl__hcell { height: 42px; display: flex; align-items: center; gap: 4px; padding: 0 6px; font-size: 12.5px; border-bottom: 1px solid var(--border); white-space: nowrap; overflow: hidden; }
.tl__hcell span { overflow: hidden; text-overflow: ellipsis; flex: 1; cursor: text; }
.tl__hcell--ruler { height: 24px; }
.tl__scroll { overflow-x: auto; position: relative; }
.tl__ruler { position: relative; height: 24px; border-bottom: 1px solid var(--border); cursor: pointer; background: var(--surface); }
.tl__ruler span { position: absolute; top: 4px; font-size: 10.5px; color: var(--text-3); padding-left: 3px; border-left: 1px solid var(--border-2); height: 20px; }
.tl__lanes { position: relative; }
.tl__lane { position: relative; height: 42px; border-bottom: 1px solid var(--border); background: repeating-linear-gradient(90deg, transparent 0 79px, var(--border) 79px 80px); }
.tl__lane--anim { background-color: color-mix(in srgb, var(--edu-yellow) 6%, transparent); }
.tl__clip { position: absolute; top: 4px; height: 34px; border-radius: 8px; background: var(--edu-blue); color: #fff; overflow: hidden; cursor: grab; touch-action: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.tl__clip.on { box-shadow: 0 0 0 3px var(--edu-yellow); }
.tl__clip.muted { opacity: .45; }
.tl__clip.manual { background: repeating-linear-gradient(45deg, #5A63D8 0 8px, #707DFC 8px 16px); }
.tl__lane[data-track="tr-sprache"] .tl__clip { background: #00A100; }
.tl__lane[data-track="tr-musik"] .tl__clip { background: #C04DB8; }
.tl__wave { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tl__cname { position: relative; font-size: 11px; padding: 2px 6px; white-space: nowrap; font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); pointer-events: none; }
.tl__trim { position: absolute; top: 0; bottom: 0; width: 8px; cursor: ew-resize; background: rgba(255, 255, 255, .35); }
.tl__trim--l { left: 0; } .tl__trim--r { right: 0; }
.tl__anim { position: absolute; top: 7px; height: 28px; border-radius: 8px; background: var(--edu-yellow); color: #3B2B69; font-size: 11px; font-weight: 600; padding: 4px 6px; white-space: nowrap; overflow: hidden; cursor: grab; touch-action: none; }
.tl__anim--trig { background: repeating-linear-gradient(45deg, #FFE27A 0 8px, #FFCC00 8px 16px); }
.tl__anim.on { box-shadow: 0 0 0 3px var(--edu-blue); }
.tl__playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--edu-red); pointer-events: none; z-index: 5; }
.tl__dur { position: absolute; top: 0; bottom: 0; width: 6px; margin-left: -3px; background: repeating-linear-gradient(0deg, var(--text-3) 0 6px, transparent 6px 10px); cursor: ew-resize; z-index: 4; opacity: .6; }
.tl__hint { margin-top: 6px; }
.clippanel { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-top: 8px; padding: 8px; border-radius: 12px; background: var(--surface-2); }
.clippanel .field { min-width: 110px; }
.recmeter { height: 12px; border-radius: 8px; background: var(--surface-3); overflow: hidden; }
.recmeter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--edu-green), var(--edu-yellow), var(--edu-red)); transition: width .08s; }
.rectime { font-variant-numeric: tabular-nums; font-size: 20px; }
.err { color: var(--edu-red); }
.preview-back { position: fixed; inset: 0; z-index: 900; background: #000; }
.preview-back .player-host { height: 100%; }
.preview-close { position: absolute; top: 12px; right: 12px; z-index: 950; }
/* Kreativ-Modus (Kinder): große Symbole, wenige Optionen */
.studio[data-mode="kids"] { grid-template-columns: 300px minmax(0, 1fr) 300px; }
.studio[data-mode="kids"] .kidshide { display: none; }
.studio[data-mode="kids"] .lib__grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.studio[data-mode="kids"] .lib__name { font-size: 12.5px; }
.studio[data-mode="kids"] .lib__add .btn { min-height: 48px; font-size: 14.5px; }
.studio[data-mode="kids"] .sb__item { width: 200px; }
.st__kidsbar { display: none; }
.studio[data-mode="kids"] .st__kidsbar { display: flex; gap: 8px; padding: 8px 12px 0; justify-content: center; flex-wrap: wrap; }
.kstep { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 16px; border-radius: 16px; border: 2px solid var(--border-2); background: var(--surface); font-weight: 700; font-size: 15.5px; }
.kstep .ic { width: 24px; height: 24px; color: var(--accent); }
.kstep__n { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-size: 13px; }
.kstep.done { border-color: var(--edu-green); }
.kstep.done .kstep__n { background: var(--edu-green); color: #fff; }
.kids__h { font-size: 18px !important; }
.kids__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kbtn { display: grid; justify-items: center; gap: 6px; padding: 12px 8px; border-radius: 16px; border: 2px solid var(--border); background: var(--surface-2); font-weight: 650; font-size: 14px; min-height: 84px; text-align: center; }
.kbtn .ic { width: 30px; height: 30px; color: var(--accent); }
.kbtn:hover { border-color: var(--accent); }
.kbtn--danger .ic { color: var(--edu-red); }
@media (max-width: 1180px) { .studio { grid-template-columns: 240px minmax(0, 1fr) 280px; } .st__head .btn .lbl { display: none; } }
@media (max-width: 900px) {
  .studio, .studio[data-mode="kids"] { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(220px, 1fr) auto auto auto; grid-template-areas: "head" "center" "lib" "right" "bottom"; overflow-y: auto; position: absolute; min-height: 100vh; }
  .st__lib, .st__right { border: 0; max-height: none; }
  .st__bottom { max-height: none; }
}
/* Probehören als kleiner Eckknopf – ein Klick auf die Karte fügt das Geräusch hinzu */
.lib__prev { position: absolute; top: 4px; left: 4px; }

/* 50_cockpit_import_misc.css */
/* eduKAMI – Cockpit, Präsentationsansicht, Import-Assistent, Studio-Einstiege, Assistent, Info, Diverses */
.storagebar { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 8px 16px; background: color-mix(in srgb, var(--edu-yellow) 30%, var(--surface)); font-size: 13.5px; }
.cover-ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--text-3); background: linear-gradient(140deg, var(--surface-2), var(--surface-3)); text-align: center; padding: 10px; font-size: 13px; }
.cover-ph .ic { width: 38px; height: 38px; }
.ic.big { width: 56px; height: 56px; color: #fff; }
.langlist { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 12px 0 0; font-size: 13.5px; }
.langlist dt { color: var(--text-3); font-weight: 600; }
.langlist dd { margin: 0; display: flex; gap: 4px; flex-wrap: wrap; }
/* Cockpit */
.cockpit { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--bg); color: var(--text); }
.ck__head { display: flex; gap: 10px; align-items: center; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.ck__status { font-size: 13px; color: var(--text-3); padding: 4px 10px; border-radius: 8px; background: var(--surface-2); }
.ck__status.ok { color: #106B1E; background: #DDF7E1; }
.ck__grid { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 16px; padding: 16px; overflow: hidden; }
.ck__main { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.ck__curwrap { position: relative; background: #000; border-radius: 14px; overflow: hidden; }
.ck__cur > img, .ck__next > img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #fff; }
.ck__cap { position: absolute; left: 12px; right: 12px; bottom: 10px; display: grid; gap: 4px; }
.ck__cap p { margin: 0; background: rgba(255, 253, 247, .95); color: #1E1733; border-radius: 10px; padding: 6px 12px; font-size: 15px; }
.ck__cap p[dir="rtl"] { text-align: right; }
.ck__nav { display: flex; align-items: center; justify-content: center; gap: 16px; }
.ck__count { font-size: 18px; min-width: 70px; text-align: center; }
.ck__list { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.ck__item { flex: none; display: flex; gap: 6px; align-items: center; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck__item span { background: var(--surface-3); border-radius: 6px; padding: 0 6px; font-weight: 700; }
.ck__item.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.ck__side { overflow-y: auto; display: grid; gap: 14px; align-content: start; padding-right: 4px; }
.ck__side h3 { font-size: 15px; display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.ck__nextwrap { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 8px; display: grid; gap: 6px; }
.ck__next { border-radius: 10px; overflow: hidden; max-width: 320px; }
.ck__end { aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); }
.ck__notes, .ck__ctl { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.ck__qs { margin: 4px 0 0; padding-left: 18px; }
.ck__btns { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ck__btns .btn { min-height: 48px; }
.ck__lang { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.ck__lang summary { padding: 12px 14px; font-weight: 650; cursor: pointer; display: flex; gap: 6px; align-items: center; }
.present__hint { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); font-size: 12px; color: rgba(255, 255, 255, .45); z-index: 40; pointer-events: none; }
@media (max-width: 980px) { .ck__grid { grid-template-columns: 1fr; overflow-y: auto; } .cockpit { position: absolute; min-height: 100vh; } }
/* Studio-Einstiege, Export, Vorlagen */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.way { display: grid; gap: 6px; align-content: start; text-align: left; padding: 20px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s; font: inherit; color: inherit; }
.way:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.way b { font-size: 17px; }
.way span { color: var(--text-2); font-size: 14px; }
.way.off { opacity: .55; cursor: not-allowed; }
.way__ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; margin-bottom: 6px; background: var(--surface-3); }
.way__ic .ic { width: 28px; height: 28px; }
.exportgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tplgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 22px; }
.tplcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.pcard > a { display: block; }
/* Assistent */
.wiz { margin-top: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 22px; }
.wiz__steps { list-style: none; padding: 0; margin: 0 0 18px; display: flex; gap: 6px; flex-wrap: wrap; }
.wiz__steps li { display: flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--text-3); font-size: 13.5px; font-weight: 600; }
.wiz__steps li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: 12px; }
.wiz__steps li.on { background: var(--accent); color: #fff; }
.wiz__steps li.on span { background: #fff; color: var(--accent); }
.wiz__steps li.done { color: var(--edu-green); }
.wiz__body { display: grid; gap: 14px; min-height: 260px; align-content: start; }
.input--big { font-size: 22px; min-height: 58px; }
.wiz__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.wiz__pick { border: 3px solid var(--border); border-radius: 16px; background: var(--surface-2); padding: 8px; display: grid; gap: 4px; justify-items: center; font-weight: 600; font-size: 13px; }
.wiz__pick img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; }
.wiz__pick.on { border-color: var(--edu-green); background: color-mix(in srgb, var(--edu-green) 10%, var(--surface)); }
.wiz__fx { border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; display: grid; gap: 6px; }
.wiz__foot { display: flex; justify-content: space-between; margin-top: 18px; }
/* Import */
.dropzone { margin-top: 16px; border: 3px dashed var(--border-2); border-radius: 22px; padding: 34px; display: grid; justify-items: center; gap: 6px; text-align: center; background: var(--surface); }
.dropzone .ic { width: 42px; height: 42px; color: var(--accent); }
.dropzone.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.imp__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 16px; margin-top: 14px; align-items: start; }
.imp__kinds { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.imp__pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.imp__page { position: relative; border: 2px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface-2); cursor: grab; display: grid; }
.imp__page img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: #fff; }
.imp__page small { padding: 2px 6px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.imp__page.cover { border-color: var(--edu-yellow); }
.imp__page.cover::before { content: "★ Cover"; position: absolute; top: 4px; right: 4px; background: var(--edu-yellow); color: #3B2B69; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; z-index: 2; }
.imp__page.dropto { border-color: var(--edu-green); }
.imp__n { position: absolute; top: 4px; left: 4px; background: var(--edu-dark); color: #fff; border-radius: 6px; padding: 0 6px; font-size: 12px; font-weight: 700; }
.imp__act { display: flex; justify-content: space-around; padding: 2px; }
.imp__table { width: 100%; font-size: 12.5px; border-collapse: collapse; }
.imp__table td { border-bottom: 1px solid var(--border); padding: 3px 6px; overflow-wrap: anywhere; }
/* Info */
.info__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; margin-top: 20px; }
.systab { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.systab th, .systab td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.systab th { color: var(--text-2); font-weight: 600; width: 46%; }
.brandrow { display: flex; gap: 16px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.brandrow .logo { min-width: 0; max-width: 100%; }
.brandrow .logo svg { height: 54px; }
@media (max-width: 900px) { .ways, .exportgrid, .imp__grid { grid-template-columns: 1fr; } }
