/* ==========================================================================
   Taster-Fassungen mit eigenen Medien (14.11.2026): „Mein Video“, „Vertraute Stimme“
   Bühne (ganze Fläche = Taster) + Knöpfe/Verwaltung NUR für die Begleitperson
   (Maus/Berührung, nicht gescannt). Knöpfe ≥ 120 × 96 px, kein Scrollen.
   ========================================================================== */
.tmedien { position: relative; flex: 1; width: 100%; height: 100%; min-height: 320px; overflow: hidden;
  background: #000; touch-action: none; cursor: pointer; -webkit-user-select: none; user-select: none; }
.tmedien--stimme { background: #f1dcc4; }
.tmedien--cvi, html[data-theme="cvi"] .tmedien { background: #000; }
.tmedien__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; display: none; }
.tmedien--eigen .tmedien__video { display: block; }
.tmedien__leinwand { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tmedien [hidden], .tmedien-verwaltung [hidden] { display: none !important; }

/* Begleitbereich unten links (über der Leinwand, unter Pause/Stopp des Rahmens) */
.tmedien__begleit { position: absolute; left: 16px; bottom: 16px; z-index: 3; pointer-events: none;
  max-width: calc(100% - 32px); font-family: "DM Sans", system-ui, sans-serif; }
.tmedien__karte { pointer-events: none; width: min(460px, calc(100vw - 32px)); box-sizing: border-box; background: #1a3a6a; color: #fff;
  border-radius: 18px; padding: 14px 16px; box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.tmedien__karte p { margin: 0 0 10px; color: #fff; font: 600 1rem/1.4 "DM Sans", system-ui, sans-serif; }
.tmedien__knopf { pointer-events: auto; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-width: 120px; min-height: 96px; padding: 8px 18px; box-sizing: border-box; border-radius: 18px; border: 3px solid #fff; cursor: pointer;
  font: 700 1.05rem/1.2 "DM Sans", system-ui, sans-serif; color: #fff; background: #4b698c; }
.tmedien__knopf svg { width: 30px; height: 30px; }
.tmedien__knopf--ecke { background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tmedien__knopf:focus-visible { outline: 4px solid #ffd23f; outline-offset: 3px; }
.tmedien--cvi .tmedien__karte, html[data-theme="cvi"] .tmedien__karte { background: #000; border: 3px solid #ffe14d; }
.tmedien--cvi .tmedien__knopf, html[data-theme="cvi"] .tmedien__knopf { background: #000; border-color: #ffe14d; color: #ffe14d; }

/* Verwaltung (Overlay über dem Übungsrahmen) */
.tmedien-verwaltung { position: fixed; inset: 0; z-index: 5000; background: rgba(10,20,35,.94); display: flex; align-items: center; justify-content: center;
  padding: 14px; box-sizing: border-box; font-family: "DM Sans", system-ui, sans-serif; overflow: hidden; }
.tmedien-verwaltung__karte { background: #fff; color: #1a3a6a; border-radius: 20px; padding: 20px 22px; width: min(820px, 100%); max-height: 100%;
  box-sizing: border-box; overflow: hidden; display: flex; flex-direction: column; gap: 8px; }
.tmedien-verwaltung__titel { margin: 0; font-size: 1.5rem; }
.tmedien-verwaltung__hinweis { margin: 0 0 4px; color: #3a5a7c; line-height: 1.4; }
.tmedien-verwaltung__leer { margin: 6px 0; color: #5b6b82; }
.tmedien-verwaltung__meldung { margin: 0; font-weight: 700; color: #1a3a6a; line-height: 1.35; }
.tmedien-verwaltung__zeile { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid #dfe5ee; }
.tmedien-verwaltung__zeile > svg { width: 34px; height: 34px; flex-shrink: 0; }
.tmedien-verwaltung__name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.tmedien-verwaltung__zeile--person { flex-wrap: wrap; }
.tmedien-verwaltung__foto { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; border: 3px solid #cdd8e6; flex-shrink: 0; }
.tmedien-verwaltung__mitte { flex: 1 1 180px; min-width: 160px; display: flex; flex-direction: column; gap: 6px; }
.tmedien-verwaltung__eingabe { font: inherit; font-size: 1.1rem; min-height: 48px; padding: 0 12px; border: 2px solid #9fb2c8; border-radius: 12px; }
.tmedien-verwaltung__stand { color: #3a5a7c; font-size: .95rem; }
.tmedien-verwaltung__knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.tmedien-verwaltung__fuss { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.tmedien-verwaltung__seite { font-weight: 700; min-width: 56px; text-align: center; }
.tmedien-verwaltung__knopf { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-width: 120px; min-height: 96px; padding: 6px 12px; box-sizing: border-box; border-radius: 16px; cursor: pointer;
  font: 700 1rem/1.2 "DM Sans", system-ui, sans-serif; border: 2px solid #4b698c; background: #4b698c; color: #fff; }
.tmedien-verwaltung__knopf svg { width: 28px; height: 28px; }
.tmedien-verwaltung__knopf:disabled { opacity: .4; cursor: default; }
.tmedien-verwaltung__knopf--rand { background: #fff; color: #1a3a6a; }
.tmedien-verwaltung__knopf--hell { background: #e6e9ef; color: #1a3a6a; border-color: #e6e9ef; }
.tmedien-verwaltung__knopf--warn { background: #fff; color: #b3261e; border-color: #b3261e; }
.tmedien-verwaltung__knopf:focus-visible { outline: 4px solid #ffb000; outline-offset: 2px; }
