/* nqCMS-UI Video-Player 0.122.0 – eigenständiges Paket, erzeugt von standalone/video-player/build.mjs. Nicht von Hand ändern. */
/* ---- assets/css/tokens.css ---- */
/*
 * nqCMS-UI Tokens (--nq-*): CI-Farben, Thema hell/dunkel, Maße, Bewegung.
 * Eingebunden über base.css (Galerie) bzw. die nqCMS-Brücke, die semantische Tokens auf nqCMS-Themes abbildet.
 */

  :root {
    --nq-blue: #005d85;
    --nq-air: #cdeafc;
    --nq-red: #a20a20;
    --nq-candy: #f8c7d0;
    --nq-green: #5a8a1d;
    --nq-mint: #e2ecc5;
    --nq-petrol: #578aa0;
    --nq-yellow: #fdc300;
    --nq-sunset: #ec6500;
    --nq-cloud: #f0efeb;
    --nq-grey: #6d6d6d;
    --nq-navy: #102a43;
    --nq-navy-deep: #0a1c2e;
    --nq-gold: #c5a46d;
    --nq-anthracite: #252b32;

    /* Thema hell */
    --nq-bg: var(--nq-cloud);
    --nq-surface: #ffffff;
    --nq-surface-2: #f7f6f2;
    --nq-text: var(--nq-anthracite);
    --nq-muted: #5c5c5c;
    --nq-heading: var(--nq-blue);
    --nq-brand: var(--nq-blue);
    --nq-brand-contrast: #ffffff;
    --nq-accent: var(--nq-gold);
    --nq-accent-text: #7a5c27;
    --nq-line: #dcdad3;
    --nq-error: var(--nq-red);
    --nq-focus: var(--nq-blue);
    --nq-shadow: 0 1px 2px rgb(16 42 67 / .06), 0 8px 24px rgb(16 42 67 / .08);
    --nq-shadow-lg: 0 2px 4px rgb(16 42 67 / .06), 0 24px 48px rgb(16 42 67 / .14);

    --nq-font: Roboto, "Segoe UI", system-ui, -apple-system, sans-serif;
    --nq-font-condensed: "Roboto Condensed", Roboto, system-ui, sans-serif;
    --nq-radius: 14px;
    --nq-radius-sm: 8px;
    --nq-radius-pill: 999px;
    --nq-ease: cubic-bezier(.2, .7, .2, 1);
    --nq-dur: .45s;
    --nq-fade: 3rem;          /* Länge des Randverlaufs ([data-fade]) */
    --nq-logo-mono: grayscale(1) contrast(.85);   /* Logos einfarbig (Logo-Wand, Marquee) */
    --nq-logo-plate: transparent;                /* Fläche hinter farbigen Logos */
    --nq-gutter: clamp(1rem, 3vw, 2.5rem);
    --nq-max: 1240px;
    /* Höhe fester Kopfbereiche: klebende Elemente und Sprungziele halten diesen Abstand. Galerie: Kopfleiste;
       einbettende Systeme setzen hier ihre Navigationshöhe (nqCMS: Token-Brücke). */
    --nq-sticky-top: 4.25rem;
    color-scheme: light;
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --nq-bg: var(--nq-navy-deep);
      --nq-surface: var(--nq-navy);
      --nq-surface-2: #17364f;
      --nq-text: #e6edf3;
      --nq-muted: #a9b8c6;
      --nq-heading: var(--nq-air);
      --nq-brand: var(--nq-air);
      --nq-brand-contrast: var(--nq-navy);
      --nq-accent-text: var(--nq-gold);
      --nq-line: #24445f;
      --nq-error: #ff9b9b;
      --nq-focus: var(--nq-gold);
      --nq-logo-mono: grayscale(1) brightness(0) invert(.86);
      --nq-logo-plate: #f4f6f8;
      --nq-shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .3);
      --nq-shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 24px 48px rgb(0 0 0 / .45);
      color-scheme: dark;
    }
  }

  :root[data-theme="dark"] {
    --nq-bg: var(--nq-navy-deep);
    --nq-surface: var(--nq-navy);
    --nq-surface-2: #17364f;
    --nq-text: #e6edf3;
    --nq-muted: #a9b8c6;
    --nq-heading: var(--nq-air);
    --nq-brand: var(--nq-air);
    --nq-brand-contrast: var(--nq-navy);
    --nq-accent-text: var(--nq-gold);
    --nq-line: #24445f;
    --nq-error: #ff9b9b;
    --nq-focus: var(--nq-gold);
    --nq-logo-mono: grayscale(1) brightness(0) invert(.86);
    --nq-logo-plate: #f4f6f8;
    --nq-shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .3);
    --nq-shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 24px 48px rgb(0 0 0 / .45);
    color-scheme: dark;
  }

  @media (prefers-reduced-motion: reduce) {
    :root { --nq-dur: 0s; }
  }


/* ---- standalone/video-player/embed-reset.css ---- */
/* Grundlage für den Player auf fremden Seiten (WordPress-Themes): ersetzt, was in der Galerie base.css liefert, und
   neutralisiert typische Theme-Regeln (button, input, video, svg, Abstände). Nur :where() innerhalb des Players und der Teile, die er daneben anlegt (Transkript, Platzhalter des Mini-Players),
   damit jede Player-Regel danach gewinnt; build.mjs hebt alles um eine ID an, damit Theme-Regeln verlieren. */
:is(.nq-video, .nq-video-transcript):not(#nq-v) { font-family: var(--nq-font); font-size: 1.0625rem; line-height: 1.35; letter-spacing: normal; text-transform: none; text-align: left; }
:is(.nq-video, .nq-video-transcript, .nq-video-placeholder):not(#nq-v), :is(.nq-video, .nq-video-transcript) :where(*):not(#nq-v), :is(.nq-video, .nq-video-transcript) :where(*):not(#nq-v)::before, :is(.nq-video, .nq-video-transcript) :where(*):not(#nq-v)::after { box-sizing: border-box; }
:is(.nq-video, .nq-video-transcript) :where(div, p, ul, ol, li, figure, h2, h3, h4, strong, small, span, aside, section, header, footer, nav, label, button, input, select, video, img, svg, canvas, audio, mark, time):not(#nq-v) { margin: 0; }
:is(.nq-video, .nq-video-transcript) :where(ul, ol):not(#nq-v) { padding: 0; list-style: none; }
:is(.nq-video, .nq-video-transcript) :where(img, svg, video, canvas):not(#nq-v) { max-width: 100%; border: 0; border-radius: 0; box-shadow: none; }
:is(.nq-video, .nq-video-transcript) :where(img, svg):not(#nq-v) { display: block; }
:is(.nq-video, .nq-video-transcript) :where(svg):not(#nq-v) { width: auto; height: auto; fill: none; }
:is(.nq-video, .nq-video-transcript) :where(button, input, select):not(#nq-v) {
  font: inherit; color: inherit; letter-spacing: normal; text-transform: none; text-shadow: none; box-shadow: none;
  min-height: 0; min-width: 0; width: auto; height: auto; line-height: inherit;
}
:is(.nq-video, .nq-video-transcript) :where(button):not(#nq-v) { background: none; border: 0; border-radius: 0; padding: 0; }
:is(.nq-video, .nq-video-transcript) :where(button):where(:hover, :focus):not(#nq-v) { background: none; color: inherit; }
:is(.nq-video, .nq-video-transcript) :where(input[type="range"]):not(#nq-v) { padding: 0; border: 0; border-radius: 0; background: none; }
:is(.nq-video, .nq-video-transcript) :where(a):not(#nq-v) { color: inherit; }
:is(.nq-video, .nq-video-transcript) :where(:focus-visible):not(#nq-v) { outline: 3px solid var(--nq-focus); outline-offset: 3px; }

/* ---- assets/css/ui.css ---- */
/*
 * nqCMS-UI Grundbausteine, die Komponenten voraussetzen: Buttons, Icon-Buttons, Formularfelder, .visually-hidden.
 * Nur Klassen, keine Element-Selektoren – daher auch eingebettet (nqCMS) unbedenklich. Layer base.
 */

  .visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }


/* ---------- Buttons nach CI ---------- */

  .nq-btn:not(#nq-v) {
    display: inline-flex; align-items: center; gap: .5em;
    padding: .7em 1.4em; border: 0; border-radius: 18px;
    font-weight: 700; text-decoration: none; cursor: pointer;
    background: var(--nq-air); color: var(--nq-blue);
    transition: background var(--nq-dur) var(--nq-ease), color var(--nq-dur) var(--nq-ease);
  }
  .nq-btn:hover:not(#nq-v) { background: var(--nq-blue); color: #fff; }
  .nq-btn--signal:not(#nq-v) { background: var(--nq-yellow); color: var(--nq-blue); }
  .nq-btn--signal:hover:not(#nq-v) { background: var(--nq-blue); color: var(--nq-yellow); }
  .nq-btn--gold:not(#nq-v) { background: var(--nq-gold); color: var(--nq-navy); }
  .nq-btn--gold:hover:not(#nq-v) { background: var(--nq-navy); color: var(--nq-gold); box-shadow: inset 0 0 0 1px var(--nq-gold); }
  .nq-icon-btn:not(#nq-v) {
    display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem;
    border-radius: 50%; border: 1px solid var(--nq-line); background: var(--nq-surface);
    color: var(--nq-heading); cursor: pointer;
    transition: background var(--nq-dur) var(--nq-ease), border-color var(--nq-dur) var(--nq-ease);
  }
  .nq-icon-btn:hover:not(#nq-v) { border-color: var(--nq-accent); }
  .nq-icon-btn:disabled:not(#nq-v) { opacity: .4; cursor: default; }
  .nq-icon-btn svg:not(#nq-v) { width: 1.2rem; height: 1.2rem; }


/* ---------- Formularfelder (Werkzeuge, Anfragen) ---------- */

  .nq-field:not(#nq-v) { display: grid; gap: .35rem; font-size: .9rem; font-weight: 500; color: var(--nq-heading); }
  .nq-field :is(input, select, textarea):not(#nq-v) {
    width: 100%; min-height: 2.75rem; padding: .6rem .8rem; font: inherit; font-weight: 400; font-size: 1rem; color: var(--nq-text);
    background: var(--nq-surface); border: 1px solid var(--nq-line); border-radius: var(--nq-radius-sm);
    transition: border-color var(--nq-dur), box-shadow var(--nq-dur);
  }
  .nq-field textarea:not(#nq-v) { resize: vertical; line-height: 1.4; }
  .nq-field :is(input, select, textarea):hover:not(#nq-v) { border-color: var(--nq-petrol); }
  .nq-field :is(input, select, textarea):focus-visible:not(#nq-v) { outline: none; border-color: var(--nq-blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--nq-focus) 35%, transparent); }
  .nq-field [aria-invalid="true"]:not(#nq-v) { border-color: var(--nq-error); }
  .nq-field small:not(#nq-v) { font-weight: 400; color: var(--nq-muted); }
  .nq-field__error:not(#nq-v) { margin: 0; font-size: .85rem; font-weight: 500; color: var(--nq-error); }
  .nq-field__error[hidden]:not(#nq-v) { display: none; }
  /* Gruppe aus Radios/Checkboxen: Fehler von NQ.fx.validate landen am Ende der Gruppe */
  .nq-group:not(#nq-v) { margin: 0; padding: 0; border: 0; min-width: 0; }
  .nq-group > legend:not(#nq-v) { padding: 0; margin-bottom: .5rem; font-size: .9rem; font-weight: 500; color: var(--nq-heading); }
  .nq-group > .nq-field__error:not(#nq-v) { flex-basis: 100%; grid-column: 1 / -1; margin-top: .4rem; }


/* ---- assets/css/effects.css (nur .nq-on-dark) ---- */
.nq-on-dark:not(#nq-v) {
    --nq-heading: #fff;
    --nq-text: #e6edf3;
    --nq-muted: #a9b8c6;
    --nq-surface: #17364f;
    --nq-surface-2: #1d4060;
    --nq-line: #2a4d6b;
    --nq-focus: var(--nq-gold);
    --nq-brand: var(--nq-air);
    --nq-brand-contrast: var(--nq-navy);
    --nq-accent-text: var(--nq-gold);
    --nq-logo-mono: grayscale(1) brightness(0) invert(.86);
    --nq-logo-plate: #f4f6f8;
    background: var(--nq-navy);
    border-color: #24445f;
    color: var(--nq-text);
  }
/* ---- components/video-player/video-player.css ---- */
/* Video Player (aus nqMotion): Bühne immer dunkel (.nq-on-dark), Bedienung unten mit Verlauf, Einstellungen als Tafel.
   Farben über --vp-*; Untertitelgröße und -hintergrund setzt das Script (--vp-caption-size, --vp-caption-bg). */

  .nq-video:not(#nq-v) {
    --vp-stage: #05080d; --vp-accent: var(--nq-gold); --vp-on-accent: var(--nq-navy-deep); --vp-track: rgb(255 255 255 / .35);
    --vp-panel: color-mix(in srgb, var(--nq-navy-deep) 92%, transparent); --vp-line: rgb(255 255 255 / .18);
    --vp-shade: rgb(3 8 14 / .62); --vp-radius: var(--nq-radius);
    position: relative; isolation: isolate; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--vp-radius);
    background: var(--vp-stage); color: var(--nq-text); font: .875rem/1.4 var(--nq-font); outline-offset: 4px;
  }
  .nq-video video:not(#nq-v) { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--vp-stage); }
  .nq-video audio:not(#nq-v) { display: none; }
  .nq-video button:not(#nq-v), .nq-video input:not(#nq-v) { font: inherit; }
  .nq-video button:not(#nq-v) { cursor: pointer; }
  .nq-video :focus-visible:not(#nq-v) { outline: 2px solid var(--nq-focus); outline-offset: 2px; }
  .nq-video__ui:not(#nq-v) { position: absolute; inset: 0; pointer-events: none; }
  .nq-video__ui :is(button, input):not(#nq-v), .nq-video__settings:not(#nq-v) { pointer-events: auto; }
  .nq-video__cover:not(#nq-v) { position: absolute; inset: 0; z-index: 0; background: var(--nq-navy) center / cover no-repeat; transition: opacity .3s var(--nq-ease); }
  .nq-video.is-started .nq-video__cover:not(#nq-v) { opacity: 0; }

  .nq-video__bigplay:not(#nq-v) {
    position: absolute; left: 50%; top: 50%; z-index: 3; translate: -50% -50%; display: grid; place-items: center; width: 4.75rem; height: 4.75rem;
    border: 1px solid var(--vp-line); border-radius: 50%; background: var(--vp-panel); color: #fff; backdrop-filter: blur(9px);
    transition: background-color .18s, color .18s, opacity .18s;
  }
  .nq-video__bigplay svg:not(#nq-v) { width: 2.2rem; height: 2.2rem; }
  .nq-video__bigplay:hover:not(#nq-v) { background: var(--vp-accent); color: var(--vp-on-accent); }
  .nq-video__bigplay.is-hidden:not(#nq-v) { opacity: 0; pointer-events: none; }
  .nq-video__loading:not(#nq-v) { position: absolute; left: 50%; top: 50%; z-index: 3; width: 2.9rem; height: 2.9rem; translate: -50% -50%; border: 4px solid var(--vp-track); border-top-color: var(--vp-accent); border-radius: 50%; opacity: 0; transition: opacity .2s; }
  .nq-video__loading.is-visible:not(#nq-v) { opacity: 1; animation: nq-video-spin .8s linear infinite; }
  @keyframes nq-video-spin { to { rotate: 360deg; } }
  .nq-video__message:not(#nq-v) { position: absolute; top: 1rem; left: 50%; z-index: 9; translate: -50% 0; max-width: 90%; padding: .55rem 1rem; border-radius: var(--nq-radius-sm); background: var(--vp-panel); text-align: center; opacity: 0; transition: opacity .2s; }
  .nq-video__message.is-visible:not(#nq-v) { opacity: 1; }

  .nq-video__controls:not(#nq-v) {
    position: absolute; inset: auto 0 0; z-index: 5; padding: 2.6rem 1rem .75rem; pointer-events: auto;
    background: linear-gradient(transparent, color-mix(in srgb, var(--vp-shade) 50%, transparent) 55%, var(--vp-shade)); transition: opacity .25s, translate .25s;
  }
  .nq-video[data-vp-shade="strong"]:not(#nq-v) { --vp-shade: rgb(3 8 14 / .9); }
  .nq-video[data-vp-shade="none"]:not(#nq-v) { --vp-shade: transparent; }
  .nq-video.is-idle:not(#nq-v) { cursor: none; }
  .nq-video.is-idle .nq-video__controls:not(#nq-v) { opacity: 0; translate: 0 .6rem; pointer-events: none; }
  .nq-video.is-blocked :is(.nq-video__controls, .nq-video__bigplay, .nq-video__settings, .nq-video__captions):not(#nq-v) { display: none; }
  .nq-video__bar:not(#nq-v) { display: flex; align-items: center; gap: .75rem; font-size: .75rem; font-variant-numeric: tabular-nums; }
  .nq-video__timeline:not(#nq-v) { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
  .nq-video__progress:not(#nq-v) {
    --vp-progress: 0%; position: relative; z-index: 3; width: 100%; height: .3rem; margin: 0; appearance: none; border-radius: var(--nq-radius-pill); cursor: pointer;
    background: linear-gradient(to right, var(--vp-accent) var(--vp-progress), var(--vp-track) var(--vp-progress));
  }
  .nq-video__progress:not(#nq-v)::-webkit-slider-thumb { appearance: none; width: .85rem; height: .85rem; border-radius: 50%; background: var(--vp-accent); }
  .nq-video__progress:not(#nq-v)::-moz-range-thumb { width: .85rem; height: .85rem; border: 0; border-radius: 50%; background: var(--vp-accent); }
  .nq-video__buffered:not(#nq-v) { position: absolute; left: 0; top: calc(50% - .15rem); height: .3rem; max-width: 100%; border-radius: var(--nq-radius-pill); background: rgb(255 255 255 / .3); pointer-events: none; }
  .nq-video__marks:not(#nq-v) { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
  .nq-video__mark:not(#nq-v) { position: absolute; top: calc(50% - .3rem); width: 3px; height: .6rem; border-radius: 2px; background: #fff; box-shadow: 0 0 3px #000; }
  .nq-video__preview:not(#nq-v) {
    position: absolute; bottom: calc(100% + 1rem); z-index: 6; translate: -50% 0; padding: .45rem; border: 1px solid var(--vp-line); border-radius: var(--nq-radius-sm);
    background: var(--vp-panel); text-align: center; pointer-events: none;
  }
  .nq-video__preview-image:not(#nq-v) { margin: 0 auto .25rem; background-repeat: no-repeat; }
  .nq-video__preview-time:not(#nq-v) { display: block; font-size: .75rem; font-weight: 650; }
  .nq-video__preview-chapter:not(#nq-v) { display: block; max-width: 11rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .7rem; color: var(--nq-muted); }
  .nq-video__buttons:not(#nq-v) { display: flex; align-items: center; gap: .35rem; padding-top: .55rem; }
  .nq-video__btn:not(#nq-v) { display: grid; place-items: center; width: 2.4rem; height: 2.25rem; padding: 0; border: 0; border-radius: var(--nq-radius-sm); background: transparent; color: #fff; }
  .nq-video__btn svg:not(#nq-v) { width: 1.35rem; height: 1.35rem; }
  /* Klicks treffen immer den Knopf, nie das (austauschbare) Icon darin */
  .nq-video button svg:not(#nq-v) { pointer-events: none; }
  .nq-video__btn:hover:not(#nq-v) { background: rgb(255 255 255 / .15); }
  .nq-video__btn.is-active:not(#nq-v) { color: var(--vp-accent); }
  .nq-video__btn[hidden]:not(#nq-v), .nq-video__lang[hidden]:not(#nq-v) { display: none; }
  .nq-video__volume:not(#nq-v) { width: 5.3rem; accent-color: var(--vp-accent); cursor: pointer; }
  .nq-video__spacer:not(#nq-v) { flex: 1; }
  /* Einzeilig (data-vp-controls="inline"): Zeitleiste zwischen Lautstärke und Untertitel-Knopf */
  .nq-video--inline .nq-video__buttons:not(#nq-v) { padding-top: 0; }
  .nq-video--inline .nq-video__bar:not(#nq-v) { flex: 1; min-width: 0; padding-inline: .35rem; }
  .nq-video--inline .nq-video__settings:not(#nq-v) { bottom: calc(var(--vp-controls-height, 46px) + .6rem); max-height: calc(100% - var(--vp-controls-height, 46px) - 1.6rem); }
  .nq-video--inline .nq-video__viz.is-seekbar:not(#nq-v) { bottom: calc(var(--vp-controls-height, 46px) + .2rem); }
  .nq-video__lang:not(#nq-v) { padding: 0 .2rem; font-size: .7rem; font-weight: 750; letter-spacing: .07em; }

  .nq-video__settings:not(#nq-v) {
    position: absolute; right: .9rem; bottom: 5.5rem; z-index: 12; width: min(15rem, calc(100% - 1.8rem)); max-height: calc(100% - 6.6rem); overflow: hidden auto;
    padding: .75rem; border: 1px solid var(--vp-line); border-radius: var(--nq-radius-sm); background: var(--vp-panel); box-shadow: var(--nq-shadow-lg); backdrop-filter: blur(15px);
  }
  .nq-video__settings[hidden]:not(#nq-v), .nq-video__group[hidden]:not(#nq-v), .nq-video__row[hidden]:not(#nq-v) { display: none; }
  /* Menü: Startseite mit Zeilen (Name, aktueller Wert, Pfeil), Unterseite je Gruppe mit Zurück-Knopf; Wechsel animiert das Script */
  .nq-video__group:not(#nq-v) { display: none; }
  .nq-video__settings.is-sub .nq-video__home:not(#nq-v) { display: none; }
  .nq-video__group.is-open:not([hidden]):not(#nq-v) { display: block; }
  .nq-video__home:not(#nq-v) { display: grid; gap: .1rem; }
  .nq-video__row:not(#nq-v), .nq-video__back:not(#nq-v) {
    display: flex; align-items: center; gap: .5rem; width: 100%; padding: .5rem .45rem; border: 0; border-radius: var(--nq-radius-sm);
    background: transparent; color: #fff; font: inherit; font-size: .8rem; text-align: left; cursor: pointer;
  }
  .nq-video__row:hover:not(#nq-v), .nq-video__back:hover:not(#nq-v) { background: rgb(255 255 255 / .1); }
  .nq-video__row svg:not(#nq-v), .nq-video__back svg:not(#nq-v) { flex: none; width: 1.1rem; height: 1.1rem; }
  .nq-video__row-label:not(#nq-v) { flex: 1; min-width: 0; }
  .nq-video__row-value:not(#nq-v) { max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--nq-muted); font-size: .75rem; }
  .nq-video__back:not(#nq-v) { margin-bottom: .4rem; padding-left: .2rem; border-bottom: 1px solid var(--vp-line); border-radius: var(--nq-radius-sm) var(--nq-radius-sm) 0 0; font-weight: 700; }
  .nq-video__options:not(#nq-v) { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; }
  .nq-video__options button:not(#nq-v) { padding: .5rem .35rem; border: 1px solid var(--vp-line); border-radius: var(--nq-radius-sm); background: rgb(255 255 255 / .04); color: #fff; font-size: .75rem; }
  .nq-video__options button:hover:not(#nq-v) { background: rgb(255 255 255 / .15); }
  .nq-video__options button.is-active:not(#nq-v) { border-color: var(--vp-accent); background: color-mix(in srgb, var(--vp-accent) 22%, transparent); }
  .nq-video__status:not(#nq-v) { margin: .35rem 0 0; font-size: .7rem; color: var(--nq-muted); }

  /* Restzeit/Gesamtdauer als Knopf */
  .nq-video__time--toggle:not(#nq-v) { padding: .15rem .3rem; border: 0; border-radius: var(--nq-radius-sm); background: transparent; color: inherit; font: inherit; font-variant-numeric: tabular-nums; cursor: pointer; }
  .nq-video__time--toggle:hover:not(#nq-v) { background: rgb(255 255 255 / .12); }

  /* Tooltips (data-vp-tip): bei Hover mit Maus und bei Tastaturfokus; am Rand bündig, in der Mini-Player-Leiste darunter */
  .nq-video [data-vp-tip]:not(#nq-v) { position: relative; }
  .nq-video [data-vp-tip]:not(#nq-v)::after {
    content: attr(data-vp-tip); position: absolute; bottom: calc(100% + .5rem); left: 50%; z-index: 13; translate: -50% .25rem;
    padding: .3rem .55rem; border: 1px solid var(--vp-line); border-radius: var(--nq-radius-sm); background: var(--vp-panel); color: #fff;
    font-size: .72rem; font-weight: 600; line-height: 1.2; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s, translate .15s;
  }
  @media (hover: hover) { .nq-video [data-vp-tip]:hover:not(#nq-v)::after { opacity: 1; translate: -50% 0; } }
  .nq-video [data-vp-tip]:focus-visible:not(#nq-v)::after { opacity: 1; translate: -50% 0; }
  .nq-video__buttons > [data-vp-tip]:first-child:not(#nq-v)::after { left: 0; translate: 0 .25rem; }
  .nq-video__buttons > [data-vp-tip]:last-child:not(#nq-v)::after { left: auto; right: 0; translate: 0 .25rem; }
  @media (hover: hover) { .nq-video__buttons > [data-vp-tip]:is(:first-child, :last-child):hover:not(#nq-v)::after { translate: 0 0; } }
  .nq-video__buttons > [data-vp-tip]:is(:first-child, :last-child):focus-visible:not(#nq-v)::after { translate: 0 0; }
  .nq-video__bar > [data-vp-tip]:not(#nq-v)::after { left: auto; right: 0; translate: 0 .25rem; }
  @media (hover: hover) { .nq-video__bar > [data-vp-tip]:hover:not(#nq-v)::after { translate: 0 0; } }
  .nq-video__bar > [data-vp-tip]:focus-visible:not(#nq-v)::after { translate: 0 0; }
  .nq-video__floatbar [data-vp-tip]:not(#nq-v)::after { top: calc(100% + .4rem); bottom: auto; left: auto; right: 0; translate: 0 -.25rem; }
  .nq-video [data-vp-tip][aria-expanded="true"]:not(#nq-v)::after, .nq-video.is-idle [data-vp-tip]:not(#nq-v)::after { display: none; }

  /* Untertitel: eigene Ebene über dem Bild, rückt mit der Bedienung */
  .nq-video__captions:not(#nq-v) {
    position: absolute; left: 5%; right: 5%; bottom: calc(var(--vp-controls-height, 50px) + var(--vp-caption-gap, .6rem)); z-index: 8;
    display: flex; flex-direction: column; align-items: center; gap: .25rem; text-align: center; pointer-events: none; transition: bottom .25s;
  }
  .nq-video__captions[hidden]:not(#nq-v) { display: none; }
  .nq-video.is-idle .nq-video__captions:not(#nq-v) { bottom: 1.5rem; }
  .nq-video__line:not(#nq-v) {
    display: block; width: fit-content; max-width: 100%; padding: .15em .5em; border-radius: .3em; white-space: pre-line; overflow-wrap: anywhere;
    color: #fff; background: rgb(0 0 0 / var(--vp-caption-bg, .88)); font-size: calc(clamp(.875rem, 2.5vw, 1.375rem) * var(--vp-caption-size, 1)); line-height: 1.4;
  }
  .nq-video__em:not(#nq-v) { color: var(--vp-accent); font-weight: 700; }
  .nq-video__word:not(#nq-v) { opacity: .42; transition: opacity .12s linear, filter .2s, text-shadow .2s, translate .2s; }
  .nq-video__word.is-spoken:not(#nq-v) { opacity: 1; }
  .nq-video[data-vp-caption-fx="glow"] .nq-video__word.is-spoken:not(#nq-v) { text-shadow: 0 0 .5em color-mix(in srgb, var(--vp-accent) 80%, transparent); }
  .nq-video[data-vp-caption-fx="lift"] .nq-video__word:not(#nq-v) { display: inline-block; filter: brightness(.72); }
  .nq-video[data-vp-caption-fx="lift"] .nq-video__word.is-spoken:not(#nq-v) { filter: none; translate: 0 -.08em; }
  .nq-video[data-vp-caption-fx="instant"] .nq-video__word:not(#nq-v) { transition: none; }

  /* Einwilligung: Texte vom Host, sonst vom Script */
  .nq-video__consent:not(#nq-v) { position: absolute; inset: 0; z-index: 20; display: grid; place-items: safe center; overflow: auto; padding: 1.1rem; background: rgb(5 10 18 / .66); }
  .nq-video__consent[hidden]:not(#nq-v) { display: none; }
  .nq-video__consent-card:not(#nq-v) { width: min(28rem, 100%); padding: 1.35rem; border: 1px solid var(--vp-line); border-radius: var(--nq-radius); background: var(--vp-panel); text-align: center; }
  .nq-video__consent-card strong:not(#nq-v) { display: block; font-size: 1.1rem; color: var(--nq-heading); }
  .nq-video__consent-card p:not(#nq-v) { margin: .5rem 0 1rem; font-size: .8rem; line-height: 1.5; color: var(--nq-muted); }
  .nq-video__consent-settings:not(#nq-v) { margin: .5rem; padding: 0; border: 0; background: none; color: inherit; font-size: .8rem; text-decoration: underline; }
  .nq-video__consent-settings[hidden]:not(#nq-v) { display: none; }

  .nq-video.is-fullscreen:not(#nq-v) { border-radius: 0; aspect-ratio: auto; }

  /* Mini-Player: fest in einer Ecke, Leiste oben zum Ziehen, Bedienung kompakt; Einstellungen öffnen außerhalb */
  .nq-video.is-floating:not(#nq-v) {
    position: fixed; z-index: 2147482000; max-width: calc(100vw - 16px); overflow: visible; border: 1px solid var(--vp-line);
    box-shadow: 0 18px 55px rgb(0 0 0 / .55);
  }
  .nq-video.is-floating video:not(#nq-v), .nq-video.is-floating .nq-video__ui:not(#nq-v) { border-radius: inherit; }
  .nq-video.is-floating .nq-video__ui:not(#nq-v) { overflow: hidden; }
  .nq-video.is-floating .nq-video__ui:has(.nq-video__settings:not([hidden])):not(#nq-v) { overflow: visible; }
  .nq-video-placeholder:not(#nq-v) { display: block; width: 100%; }
  .nq-video__floatbar:not(#nq-v) { display: none; }
  .nq-video.is-floating .nq-video__floatbar:not(#nq-v) {
    position: absolute; inset: 0 0 auto; z-index: 15; display: flex; align-items: center; gap: .25rem; padding: .2rem .3rem;
    background: linear-gradient(var(--vp-shade), transparent); transition: opacity .24s, translate .24s;
  }
  .nq-video.is-floating .nq-video__floatbar[hidden]:not(#nq-v) { display: none; }
  .nq-video__grip:not(#nq-v) { flex: 1; min-width: 0; display: flex; align-items: center; gap: .4rem; padding: .25rem .4rem; cursor: grab; touch-action: none; user-select: none; font-size: .8rem; font-weight: 600; }
  .nq-video__grip:active:not(#nq-v) { cursor: grabbing; }
  .nq-video__grip.is-fixed:not(#nq-v) { cursor: default; }
  .nq-video__grip svg:not(#nq-v) { flex: none; width: 1rem; height: 1rem; }
  .nq-video__float-title:not(#nq-v) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nq-video.is-floating .nq-video__floatbar .nq-video__btn:not(#nq-v) { width: 1.9rem; height: 1.75rem; }
  .nq-video.is-floating .nq-video__floatbar .nq-video__btn svg:not(#nq-v) { width: 1rem; height: 1rem; }
  .nq-video.is-floating .nq-video__controls:not(#nq-v) { padding: 1.25rem .45rem .25rem; }
  .nq-video.is-floating .nq-video__buttons:not(#nq-v) { gap: .1rem; padding-top: .15rem; }
  .nq-video.is-floating .nq-video__btn:not(#nq-v) { width: 1.8rem; height: 1.7rem; }
  .nq-video.is-floating .nq-video__btn svg:not(#nq-v) { width: 1.05rem; height: 1.05rem; }
  .nq-video.is-floating :is(.nq-video__volume, .nq-video__lang, [data-vp-action="captions"]):not(#nq-v) { display: none; }
  .nq-video.is-floating .nq-video__bar:not(#nq-v) { gap: .35rem; font-size: .68rem; }
  .nq-video.is-floating .nq-video__line:not(#nq-v) { font-size: .75rem; }
  .nq-video.is-floating .nq-video__captions:not(#nq-v) { bottom: calc(var(--vp-controls-height, 50px) + .25rem); }
  .nq-video.is-floating .nq-video__settings:not(#nq-v) { bottom: calc(100% + .45rem); right: 0; max-height: min(20rem, 55vh); }
  .nq-video.is-floating[data-vp-dock^="top-"] .nq-video__settings:not(#nq-v) { top: calc(100% + .45rem); bottom: auto; }
  .nq-video.is-floating.is-idle .nq-video__floatbar:not(#nq-v) { opacity: 0; translate: 0 -.45rem; pointer-events: none; }
  .nq-video.is-floating:has(.nq-video__settings:not([hidden])) :is(.nq-video__controls, .nq-video__floatbar):not(#nq-v) { opacity: 1; translate: none; pointer-events: auto; }

  /* Umgebungslicht: Farben aus dem Bild als weiches Licht über dem Video */
  .nq-video__ambient:not(#nq-v) { position: absolute; inset: 0; z-index: 1; opacity: .26; filter: blur(23px) saturate(1.45); mix-blend-mode: screen; pointer-events: none; transition: opacity .25s, background .65s; }
  .nq-video__ambient[hidden]:not(#nq-v) { display: none; }
  .nq-video__ambient:not([data-active="true"]):not(#nq-v) { opacity: 0; }
  .nq-video__filters:not(#nq-v) { position: absolute; width: 0; height: 0; overflow: hidden; }

  /* Hotspots: Knopf im Bild, Infokarte; Zusatzklassen danger, success, info, glass, elevated, minimal, contrast, pulse */
  .nq-video__hotspots:not(#nq-v) { position: absolute; inset: 0; z-index: 11; pointer-events: none; }
  .nq-video__pin:not(#nq-v) {
    position: absolute; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; padding: 0; translate: -50% -50%; pointer-events: auto;
    border: 2px solid #fff; border-radius: 50%; background: color-mix(in srgb, var(--nq-navy) 93%, transparent); color: #fff;
    box-shadow: 0 0 0 5px rgb(8 28 44 / .53), 0 5px 18px rgb(0 0 0 / .6); backdrop-filter: blur(8px); transition: scale .18s, background-color .18s;
  }
  .nq-video__pin svg:not(#nq-v) { width: 1.4rem; height: 1.4rem; transition: rotate .2s; }
  .nq-video__pin:hover:not(#nq-v), .nq-video__pin:focus-visible:not(#nq-v) { scale: 1.13; background: var(--vp-accent); color: var(--vp-on-accent); }
  .nq-video__pin[aria-expanded="true"] svg:not(#nq-v) { rotate: 45deg; }
  .nq-video__pin.danger:not(#nq-v) { background: #9c2537ed; border-color: #ffd0d8; box-shadow: 0 0 0 4px #f43f5e42, 0 5px 20px #0009; }
  .nq-video__pin.success:not(#nq-v) { background: #146849f0; border-color: #a7f3d0; box-shadow: 0 0 0 4px #34d39942, 0 5px 20px #0009; }
  .nq-video__pin.info:not(#nq-v) { background: #1e5599ed; border-color: #bfdbfe; box-shadow: 0 0 0 4px #60a5fa44, 0 5px 20px #0009; }
  .nq-video__pin.glass:not(#nq-v) { background: rgb(248 251 255 / .2); border-color: rgb(255 255 255 / .8); backdrop-filter: blur(16px); }
  .nq-video__pin.elevated:not(#nq-v) { box-shadow: 0 0 0 5px rgb(255 255 255 / .2), 0 10px 28px rgb(0 0 0 / .7); }
  .nq-video__pin.minimal:not(#nq-v) { width: 1.9rem; height: 1.9rem; border-color: var(--nq-navy-deep); background: #fff; color: var(--nq-navy-deep); box-shadow: 0 2px 10px rgb(0 0 0 / .27); backdrop-filter: none; }
  .nq-video__pin.contrast:not(#nq-v) { border: 3px solid #101010; background: #ffeb3b; color: #101010; box-shadow: 0 0 0 3px #fff; backdrop-filter: none; }
  .nq-video__pin.pulse:not(#nq-v) { animation: nq-video-pulse 1.8s ease-in-out infinite; }
  @keyframes nq-video-pulse { 50% { box-shadow: 0 0 0 11px transparent, 0 3px 14px rgb(0 0 0 / .45); } }
  .nq-video__card:not(#nq-v) {
    position: absolute; top: 12%; left: 50%; z-index: 19; translate: -50% 0; width: min(21rem, 88%); padding: 1rem; pointer-events: auto;
    border: 1px solid var(--vp-line); border-radius: var(--nq-radius); background: var(--vp-panel); box-shadow: 0 16px 35px rgb(0 0 0 / .55); backdrop-filter: blur(16px);
  }
  .nq-video__card[hidden]:not(#nq-v) { display: none; }
  .nq-video__card:focus-visible:not(#nq-v) { outline: 2px solid var(--nq-focus); }
  .nq-video__card-title:not(#nq-v) { display: block; font-size: 1rem; color: var(--nq-heading); }
  .nq-video__card p:not(#nq-v) { margin: .5rem 0 .9rem; font-size: .8rem; }
  .nq-video__card.danger:not(#nq-v) { border-color: #ff8799; background: #5b1421f2; }
  .nq-video__card.success:not(#nq-v) { border-color: #6ee7b7; background: #133f32f2; }
  .nq-video__card.info:not(#nq-v) { border-color: #93c5fd; background: #162e53f2; }
  .nq-video__card.glass:not(#nq-v) { background: rgb(23 34 49 / .79); backdrop-filter: blur(20px); }
  .nq-video__card.elevated:not(#nq-v) { box-shadow: 0 22px 55px rgb(0 0 0 / .8); }
  .nq-video__card.minimal:not(#nq-v) { --nq-heading: var(--nq-navy-deep); border-color: #cbd5e1; background: #fffffff5; color: #152033; }
  .nq-video__card.contrast:not(#nq-v) { border: 2px solid #ffeb3b; background: #111; }

  /* Overlays: Anker oben links (eigene Position) bzw. Mitte (feste Positionen); Bewegung über translate, Lage über left/top */
  .nq-video__overlays:not(#nq-v) { position: absolute; inset: 0; z-index: 8; overflow: hidden; pointer-events: none; }
  .nq-video__overlay:not(#nq-v) {
    --vp-anchor-x: 0%; --vp-anchor-y: 0%; position: absolute; max-width: min(42%, 21rem); pointer-events: none;
    translate: calc(0px - var(--vp-anchor-x)) calc(0px - var(--vp-anchor-y));
    animation: nq-video-in var(--vp-enter, .26s) cubic-bezier(.2, .8, .2, 1) both;
  }
  .nq-video__overlay:has(.nq-video__template):not(#nq-v) { max-width: min(57%, 28rem); }
  .nq-video__overlay:not([data-position="custom"]):not(#nq-v) { --vp-anchor-x: 50%; --vp-anchor-y: 50%; }
  .nq-video__overlay:where([data-position]:not([data-position="custom"])):not(#nq-v) { left: 50% !important; top: 50% !important; }
  .nq-video__overlay[data-position="top-left"]:not(#nq-v) { left: 21% !important; top: 21% !important; }
  .nq-video__overlay[data-position="top-right"]:not(#nq-v) { left: 79% !important; top: 21% !important; }
  .nq-video__overlay[data-position="bottom-left"]:not(#nq-v) { left: 21% !important; top: 66% !important; }
  .nq-video__overlay[data-position="bottom-right"]:not(#nq-v) { left: 79% !important; top: 66% !important; }
  .nq-video__overlay[data-position="top-center"]:not(#nq-v) { top: 21% !important; }
  .nq-video__overlay[data-position="bottom-center"]:not(#nq-v) { top: 66% !important; }
  .nq-video__note:not(#nq-v), .nq-video__template:not(#nq-v) {
    box-sizing: border-box; max-width: 100%; padding: .85rem 1.1rem; border-radius: var(--nq-radius); color: #fff;
    background: rgb(15 21 34 / .83); box-shadow: 0 12px 36px rgb(0 0 0 / .32); backdrop-filter: blur(12px); font-size: clamp(.7rem, 1.4vw, 1rem); line-height: 1.35;
  }
  .nq-video__note strong:not(#nq-v) { display: block; font-weight: 650; }
  .nq-video__note p:not(#nq-v), .nq-video__template p:not(#nq-v) { margin: .3em 0 0; }
  .nq-video__template:not(#nq-v) { min-width: min(14rem, 35vw); }
  .nq-video__template.is-soft:not(#nq-v) { background: rgb(18 28 48 / .85); }
  .nq-video__template.is-bold:not(#nq-v) { background: rgb(17 24 39 / .93); font-weight: 700; }
  .nq-video__template.is-compact:not(#nq-v) { min-width: 0; padding: .45rem .65rem; border-radius: var(--nq-radius-sm); }
  .nq-video__heading:not(#nq-v) { display: block; margin-bottom: .55rem; font-size: 1.12em; }
  .nq-video__eyebrow:not(#nq-v) { display: block; margin-bottom: .3rem; font-size: .7em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--nq-air); }
  /* Inhalt aus Markdown-Zeilen: Unterzeile, Abstand, Fett und Hervorhebung (marker, soft, underline) */
  .nq-video__template--note:not(#nq-v) { min-width: 0; }
  .nq-video__overlay:has(.nq-video__template--note):not(#nq-v) { max-width: min(42%, 21rem); }
  .nq-video__heading:last-child:not(#nq-v) { margin-bottom: 0; }
  .nq-video__ov-sub:not(#nq-v) { font-size: .85em; opacity: .82; }
  .nq-video__heading + .nq-video__ov-sub:not(#nq-v) { margin-top: -.35rem; }
  .nq-video__ov-gap:not(#nq-v) { display: block; height: .55em; }
  .nq-video__items:not(:first-child):not(#nq-v) { margin-top: .45rem; }
  .nq-video__ov-strong:not(#nq-v) { font-weight: 750; }
  .nq-video__ov-mark:not(#nq-v) { padding: 0 .18em; border-radius: .2em; color: inherit; background: color-mix(in srgb, var(--vp-accent) 42%, transparent); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
  .nq-video__ov-mark.is-soft:not(#nq-v) { background: rgb(255 255 255 / .16); }
  .nq-video__ov-mark.is-underline:not(#nq-v) { padding: 0; background: none; text-decoration: underline .14em var(--vp-accent); text-underline-offset: .18em; }
  .nq-video__items:not(#nq-v) { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
  .is-horizontal .nq-video__items:not(#nq-v), .nq-video__template--tag-row .nq-video__items:not(#nq-v) { flex-flow: row wrap; gap: .45rem; }
  .nq-video__item:not(#nq-v) { display: inline-flex; align-items: center; gap: .5rem; opacity: 0; translate: 0 .5rem; scale: .97; filter: blur(3px); transition: opacity .3s, translate .35s cubic-bezier(.2, .8, .2, 1), scale .35s, filter .35s; }
  .nq-video__item.is-visible:not(#nq-v) { opacity: 1; translate: none; scale: 1; filter: none; }
  .nq-video__bullet:not(#nq-v) { font-size: 1.5em; line-height: .7; color: var(--nq-air); }
  .nq-video__check:not(#nq-v) { display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; border: 1px solid rgb(255 255 255 / .4); border-radius: 50%; color: transparent; transition: color .28s, background-color .28s, border-color .28s, scale .28s; }
  .nq-video__item.is-checked .nq-video__check:not(#nq-v) { border-color: var(--nq-mint); background: var(--nq-mint); color: var(--nq-navy-deep); scale: 1.08; }
  .nq-video__template--tag-row .nq-video__item:not(#nq-v) { padding: .3rem .65rem; border: 1px solid rgb(255 255 255 / .2); border-radius: var(--nq-radius-pill); background: rgb(255 255 255 / .13); }
  .nq-video__template--stacked-words .nq-video__items:not(#nq-v) { gap: 0; }
  .nq-video__template--stacked-words .nq-video__item:not(#nq-v) { font-size: 1.35em; font-weight: 800; letter-spacing: -.025em; }
  .nq-video__overlay[data-animation="typewriter"] .nq-video__item-label:not(#nq-v) { display: inline-block; clip-path: inset(0 100% 0 0); transition: clip-path .45s steps(12, end); }
  .nq-video__overlay[data-animation="typewriter"] .is-visible .nq-video__item-label:not(#nq-v) { clip-path: inset(0); }
  .nq-video__overlay[data-animation="stagger"] .nq-video__item:not(#nq-v) { transition-delay: 60ms; }
  .nq-video__overlay[data-animation="highlight"] > *:not(#nq-v) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--vp-accent) 65%, transparent), 0 15px 36px rgb(0 0 0 / .3); }
  .nq-video__overlay.danger > *:not(#nq-v) { border: 1px solid rgb(255 145 155 / .55); background: rgb(145 31 48 / .88); }
  .nq-video__overlay.success > *:not(#nq-v) { border: 1px solid rgb(133 255 195 / .4); background: rgb(15 92 70 / .85); }
  .nq-video__overlay.info > *:not(#nq-v) { border: 1px solid rgb(148 204 255 / .5); background: rgb(24 76 132 / .86); }
  .nq-video__overlay.glass > *:not(#nq-v) { background-color: rgb(27 36 52 / .6); backdrop-filter: blur(20px) saturate(125%); }
  .nq-video__overlay.danger.glass > *:not(#nq-v) { background-color: rgb(145 31 48 / .76); }
  .nq-video__overlay.success.glass > *:not(#nq-v) { background-color: rgb(15 92 70 / .74); }
  .nq-video__overlay.info.glass > *:not(#nq-v) { background-color: rgb(24 76 132 / .74); }
  .nq-video__overlay.elevated > *:not(#nq-v) { box-shadow: 0 16px 42px rgb(0 0 0 / .54); translate: 0 -2px; }

  /* Laufschrift: Ticker waagerecht, Abspann senkrecht; Position setzt das Script aus der Videozeit, Randverlauf über [data-fade] */
  .nq-video__overlay:has(.nq-video__template--scroll-text, .nq-video__template--credits):not(#nq-v) { width: var(--vp-scroll-width, 76%); max-width: min(92%, 53rem); }
  .nq-video__template--scroll-text:not(#nq-v), .nq-video__template--credits:not(#nq-v) { position: relative; width: 100%; overflow: hidden; padding: 0; contain: paint; }
  .nq-video__template--scroll-text:not(#nq-v) { height: 3.5rem; font-size: clamp(.8rem, 2.2vw, 1.4rem); font-weight: 600; white-space: nowrap; --nq-fade: 10%; }
  .nq-video__template--credits:not(#nq-v) { height: clamp(9rem, 45vh, 26rem); max-height: 75%; text-align: center; --nq-fade: 14%; }
  :is(.nq-video__template--scroll-text, .nq-video__template--credits) :is(.nq-video__heading, .nq-video__eyebrow):not(#nq-v) { display: none; }
  .nq-video__scroll:not(#nq-v) { position: absolute; top: 0; left: 0; will-change: transform; }
  .nq-video__template--scroll-text .nq-video__scroll:not(#nq-v) { width: max-content; padding-inline: 1rem; line-height: 3.5rem; white-space: pre; }
  .nq-video__template--credits .nq-video__scroll:not(#nq-v) { width: 100%; padding: 1.1rem .75rem; box-sizing: border-box; }
  .nq-video__credit:not(#nq-v) { padding: .6rem 0; font-size: clamp(.8rem, 2vw, 1.5rem); font-weight: 500; line-height: 1.35; }
  .nq-video__credit:first-child:not(#nq-v) { font-size: 1.3em; font-weight: 750; }
  .nq-video__credit.is-header:not(#nq-v) { font-size: clamp(1.25rem, 3vw, 2.4rem); font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
  .nq-video__credit.is-subtext:not(#nq-v) { font-size: clamp(.7rem, 1.5vw, 1.05rem); font-weight: 400; opacity: .75; }
  .nq-video__credit.is-role:not(#nq-v) { font-size: clamp(.7rem, 1.5vw, 1rem); font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--nq-air); }
  .nq-video__credit.is-name:not(#nq-v) { font-size: clamp(1.05rem, 2.5vw, 1.8rem); font-weight: 720; }
  .nq-video__credit.is-spacer:not(#nq-v) { height: 1.6rem; padding: 0; }

  /* Einblenden */
  .nq-video__overlay[data-animation="pop"]:not(#nq-v) { animation: nq-video-pop var(--vp-enter, .35s) cubic-bezier(.2, 1.4, .3, 1) both; }
  .nq-video__overlay[data-animation="slide-left"]:not(#nq-v) { animation: nq-video-slide var(--vp-enter, .35s) ease-out both; }
  .nq-video__overlay[data-animation="glow-in"]:not(#nq-v) { animation: nq-video-glow-in var(--vp-enter, .55s) ease-out both; }
  .nq-video__overlay[data-animation="flash-blur-in"]:not(#nq-v) { animation: nq-video-flash-in var(--vp-enter, .55s) ease-out both; }
  .nq-video__overlay[data-animation="turbulence-in"]:not(#nq-v) { animation: nq-video-turbulence-in var(--vp-enter, .6s) ease-out both; }
  /* Ausblenden (Dauer --vp-exit, Standard 0,28 s) */
  .nq-video__overlay.is-exiting:not(#nq-v) { animation: nq-video-out-down var(--vp-exit, .28s) ease-in both; }
  .nq-video__overlay.is-exiting[data-exit="fade-out"]:not(#nq-v) { animation-name: nq-video-out-fade; }
  .nq-video__overlay.is-exiting[data-exit="shrink"]:not(#nq-v) { animation-name: nq-video-out-shrink; }
  .nq-video__overlay.is-exiting[data-exit="slide-right"]:not(#nq-v) { animation-name: nq-video-out-right; }
  .nq-video__overlay.is-exiting[data-exit="glow-off"]:not(#nq-v) { animation-name: nq-video-glow-out; animation-timing-function: ease-in-out; }
  .nq-video__overlay.is-exiting[data-exit="flash-blur"]:not(#nq-v) { animation-name: nq-video-flash-out; }
  .nq-video__overlay.is-exiting[data-exit="turbulence"]:not(#nq-v) { animation-name: nq-video-turbulence-out; }
  .nq-video__overlay.is-exiting[data-exit="none"]:not(#nq-v) { animation: none; }
  @keyframes nq-video-in { from { opacity: 0; filter: blur(5px); transform: translateY(9px) scale(.97); } }
  @keyframes nq-video-pop { from { opacity: 0; transform: scale(.7); } }
  @keyframes nq-video-slide { from { opacity: 0; transform: translateX(15%); } }
  @keyframes nq-video-glow-in {
    0% { opacity: 0; filter: brightness(.35) drop-shadow(0 0 30px transparent); }
    55% { opacity: 1; filter: brightness(1.5) drop-shadow(0 0 16px rgb(155 205 255 / .95)); }
    100% { opacity: 1; filter: brightness(1) drop-shadow(0 0 0 transparent); }
  }
  @keyframes nq-video-flash-in {
    0% { opacity: 0; filter: brightness(7) blur(8px); transform: scale(1.1); }
    65% { opacity: 1; filter: brightness(5) blur(3px); transform: scale(1.04); }
    100% { opacity: 1; filter: brightness(1) blur(0); transform: scale(1); }
  }
  @keyframes nq-video-turbulence-in {
    0% { opacity: 0; filter: var(--vp-turbulence) brightness(3) blur(5px); transform: scale(1.08); }
    70% { opacity: 1; filter: var(--vp-turbulence) brightness(1.5); transform: scale(1.03); }
    100% { opacity: 1; filter: brightness(1); transform: scale(1); }
  }
  @keyframes nq-video-out-fade { to { opacity: 0; } }
  @keyframes nq-video-out-down { to { opacity: 0; transform: translateY(16px); } }
  @keyframes nq-video-out-shrink { to { opacity: 0; transform: scale(.8); } }
  @keyframes nq-video-out-right { to { opacity: 0; transform: translateX(18px); } }
  @keyframes nq-video-glow-out {
    0% { opacity: 1; filter: brightness(1) drop-shadow(0 0 0 transparent); }
    45% { opacity: 1; filter: brightness(1.5) drop-shadow(0 0 16px rgb(155 205 255 / .95)); }
    100% { opacity: 0; filter: brightness(.35) drop-shadow(0 0 30px transparent); }
  }
  @keyframes nq-video-flash-out {
    35% { opacity: 1; filter: brightness(5) blur(3px); transform: scale(1.04); }
    100% { opacity: 0; filter: brightness(7) blur(8px); transform: scale(1.1); }
  }
  @keyframes nq-video-turbulence-out {
    30% { opacity: 1; filter: var(--vp-turbulence) brightness(1.5); transform: scale(1.03); }
    100% { opacity: 0; filter: var(--vp-turbulence) brightness(3) blur(5px); transform: scale(1.08); }
  }

  /* Visualizer (Zusatzmodul): Fläche über der Bedienung, an der Zeitleiste, oben oder mittig; Ring als SVG */
  .nq-video:not(#nq-v) { --vp-viz-color: var(--nq-air); --vp-viz-accent: #ffffff; }
  .nq-video__viz:not(#nq-v) {
    position: absolute; left: 12%; bottom: 5.75rem; z-index: 7; width: 76%; height: 3.25rem; pointer-events: none;
    opacity: var(--vp-viz-opacity, .92); filter: drop-shadow(0 0 7px color-mix(in srgb, var(--vp-viz-color) 35%, transparent)); transition: bottom .25s;
  }
  .nq-video__viz[hidden]:not(#nq-v) { display: none; }
  .nq-video__viz.is-seekbar:not(#nq-v) { bottom: 3.3rem; z-index: 4; height: 2.95rem; }
  .nq-video__viz.is-top:not(#nq-v) { top: 1rem; bottom: auto; }
  .nq-video__viz.is-center:not(#nq-v) { top: 50%; bottom: auto; height: 3.75rem; translate: 0 -50%; }
  .nq-video.is-idle:not(:focus-within):not(:has(.nq-video__settings:not([hidden]))) .nq-video__viz.is-seekbar:not(#nq-v) { bottom: 0; }
  .nq-video__viz.is-ring:not(#nq-v) { left: 50%; bottom: 6.5rem; width: min(48%, var(--vp-viz-size, 220px)); height: auto; aspect-ratio: 1; translate: -50% 0; overflow: visible; filter: none; }
  .nq-video__viz.is-ring.is-center:not(#nq-v) { top: 50%; bottom: auto; translate: -50% -50%; }
  .nq-video__viz.is-ring.is-top:not(#nq-v) { top: .5rem; bottom: auto; }
  .nq-video__viz.is-ring.is-seekbar:not(#nq-v) { bottom: 3rem; }
  .nq-video__silk-rotation:not(#nq-v) { transform-origin: 150px 150px; animation: nq-video-silk-rotate 10s linear infinite; }
  .nq-video__silk-pulse:not(#nq-v) { transform-origin: 150px 150px; animation: nq-video-silk-pulse 3s ease-in-out infinite alternate; }
  .nq-video__silk-pulse.is-offset:not(#nq-v) { animation-delay: -1.5s; }
  @keyframes nq-video-silk-rotate { to { rotate: 360deg; } }
  @keyframes nq-video-silk-pulse { from { opacity: .5; scale: 1; } to { opacity: 1; scale: 1.03; } }
  .nq-video.is-floating .nq-video__viz.is-seekbar:not(#nq-v) { bottom: 1.95rem; height: 1.8rem; }
  .nq-video.is-floating .nq-video__viz.is-top:not(#nq-v) { top: 2.2rem; height: 1.7rem; }
  .nq-video.is-floating .nq-video__viz.is-center:not(#nq-v) { height: 1.9rem; }
  .nq-video.is-floating .nq-video__viz.is-ring:not(#nq-v) { width: min(40%, 110px); }

  /* Weiterschauen */
  .nq-video__resume:not(#nq-v) {
    position: absolute; left: 50%; top: 50%; z-index: 22; translate: -50% -50%; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: center;
    max-width: calc(100% - 2rem); padding: .8rem 1rem; border: 1px solid var(--vp-line); border-radius: var(--nq-radius-sm); background: var(--vp-panel); pointer-events: auto; text-align: center;
  }
  .nq-video__resume[hidden]:not(#nq-v) { display: none; }
  .nq-video__ghost:not(#nq-v) { padding: .45rem .8rem; border: 1px solid var(--vp-line, var(--nq-line)); border-radius: var(--nq-radius-pill); background: transparent; color: inherit; font: inherit; cursor: pointer; }
  .nq-video__ghost:hover:not(#nq-v) { border-color: currentColor; }

  /* Diagnose */
  .nq-video__diagnostics:not(#nq-v) {
    position: absolute; top: .75rem; left: .75rem; z-index: 50; width: min(24rem, calc(100% - 1.5rem)); max-height: 65%; overflow: auto;
    padding: .5rem .7rem; border-radius: var(--nq-radius-sm); background: rgb(3 8 14 / .9); font-size: .7rem; pointer-events: auto;
  }
  .nq-video__diagnostics[hidden]:not(#nq-v) { display: none; }
  .nq-video__diagnostics-head:not(#nq-v) { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
  .nq-video__diagnostics pre:not(#nq-v) { margin: .35rem 0 0; white-space: pre-wrap; font: .68rem/1.35 ui-monospace, monospace; }

  /* Transkript unter dem Player (Seitenfarben) */
  .nq-video-transcript:not(#nq-v) { margin-top: .75rem; padding: 1rem; border: 1px solid var(--nq-line); border-radius: var(--nq-radius); background: var(--nq-surface); color: var(--nq-text); }
  .nq-video__transcript-head:not(#nq-v) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
  .nq-video__transcript-head strong:not(#nq-v) { color: var(--nq-heading); }
  .nq-video__hint:not(#nq-v) { flex: 1; font-size: .75rem; color: var(--nq-muted); }
  .nq-video__tools:not(#nq-v) { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .7rem 0; }
  .nq-video__search:not(#nq-v) { flex: 1; min-width: 10rem; padding: .5rem .75rem; border: 1px solid var(--nq-line); border-radius: var(--nq-radius-sm); background: var(--nq-bg); color: var(--nq-text); font: inherit; }
  .nq-video__count:not(#nq-v) { font-size: .75rem; color: var(--nq-muted); }
  .nq-video__lines:not(#nq-v) { display: grid; gap: .15rem; max-height: 16rem; overflow-y: auto; }
  .nq-video__cue:not(#nq-v) { display: grid; grid-template-columns: 3.4rem 1fr; gap: .75rem; width: 100%; padding: .5rem; border: 0; border-radius: var(--nq-radius-sm); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
  .nq-video__cue-time:not(#nq-v) { color: var(--nq-muted); font-variant-numeric: tabular-nums; }
  .nq-video__cue:hover:not(#nq-v), .nq-video__cue.is-current:not(#nq-v) { background: var(--nq-surface-2); }
  .nq-video__cue.is-current .nq-video__cue-time:not(#nq-v) { color: var(--nq-brand); font-weight: 700; }
  .nq-video__cue mark:not(#nq-v) { border-radius: 2px; background: var(--nq-gold); color: var(--nq-navy-deep); }
  .nq-video__cue.is-match:not(#nq-v) { outline: 2px solid var(--nq-gold); outline-offset: -2px; }

  @media (hover: none) {
    .nq-video.is-idle:not(#nq-v) { cursor: auto; }
  }
  @media (max-width: 33.75rem) {
    .nq-video:not(#nq-v) { --vp-radius: var(--nq-radius-sm); }
    .nq-video__controls:not(#nq-v) { padding: 1.75rem .5rem .4rem; }
    .nq-video__buttons:not(#nq-v) { gap: 0; }
    .nq-video__btn:not(#nq-v) { width: 2.1rem; height: 2rem; }
    .nq-video__volume:not(#nq-v) { width: 3.1rem; }
    .nq-video--inline .nq-video__volume:not(#nq-v) { display: none; }
    .nq-video--inline .nq-video__bar:not(#nq-v) { padding-inline: .15rem; }
    .nq-video__bar:not(#nq-v) { gap: .45rem; }
    .nq-video__bigplay:not(#nq-v) { width: 3.5rem; height: 3.5rem; }
    .nq-video__settings:not(#nq-v) { bottom: 4.4rem; max-height: calc(100% - 5rem); }
    .nq-video__captions:not(#nq-v) { left: 3%; right: 3%; bottom: calc(var(--vp-controls-height, 44px) + var(--vp-caption-gap, .45rem)); }
    .nq-video__preview-image:not(#nq-v) { scale: .75; transform-origin: bottom center; }
    .nq-video__overlay:not(#nq-v) { max-width: 53%; }
    .nq-video__overlay:has(.nq-video__template):not(#nq-v) { max-width: 65%; }
    .nq-video__note:not(#nq-v), .nq-video__template:not(#nq-v) { padding: .45rem .6rem; border-radius: var(--nq-radius-sm); font-size: .7rem; }
    .nq-video__template:not(#nq-v) { min-width: 0; }
    .nq-video__items:not(#nq-v) { gap: .25rem; }
    .nq-video__overlay[data-position="top-left"]:not(#nq-v), .nq-video__overlay[data-position="bottom-left"]:not(#nq-v) { left: 30% !important; }
    .nq-video__overlay[data-position="top-right"]:not(#nq-v), .nq-video__overlay[data-position="bottom-right"]:not(#nq-v) { left: 70% !important; }
    .nq-video__pin:not(#nq-v) { width: 2.1rem; height: 2.1rem; }
    .nq-video__viz.is-seekbar:not(#nq-v) { bottom: 2.6rem; height: 2rem; }
    .nq-video__viz.is-top:not(#nq-v) { top: .6rem; height: 2rem; }
    .nq-video__consent:not(#nq-v) { padding: .5rem; }
    .nq-video__consent-card:not(#nq-v) { padding: .75rem .9rem; }
    .nq-video__consent-card strong:not(#nq-v) { font-size: .95rem; }
    .nq-video__consent-card p:not(#nq-v) { margin: .3rem 0 .55rem; font-size: .72rem; line-height: 1.4; }
  }

  /* Vollbild-Dialog (data-vp-modal): Breite = kleinerer Wert aus verfügbarer Breite und verfügbarer Höhe × 16/9, daher
     läuft keine Achse über. Rand über --nq-video-modal-gap. Auslöser: mit Poster als Kachel, sonst als Knopf. */
  .nq-video-modal:not(#nq-v) {
    --nq-video-modal-gap: clamp(.75rem, 3vmin, 2.5rem);
    --nq-video-modal-close: 2.75rem;
    position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
    overflow: hidden; border: 0; background: transparent; color: #fff;
  }
  .nq-video-modal[open]:not(#nq-v) { display: grid; place-items: center; }
  .nq-video-modal:not(#nq-v)::backdrop { background: rgb(3 8 14 / .9); }
  .nq-video-modal > .nq-video:not(#nq-v) {
    width: min(
      calc(100vw - 2 * var(--nq-video-modal-gap)),
      calc((100dvh - 2 * var(--nq-video-modal-gap) - var(--nq-video-modal-close)) * 16 / 9)
    );
    max-width: none; margin: var(--nq-video-modal-close) 0 0;
  }
  .nq-video-modal__close:not(#nq-v) {
    position: absolute; top: calc(var(--nq-video-modal-gap) / 2); right: calc(var(--nq-video-modal-gap) / 2); z-index: 2;
    display: grid; place-items: center; width: var(--nq-video-modal-close); height: var(--nq-video-modal-close); padding: 0;
    border: 1px solid rgb(255 255 255 / .25); border-radius: 50%; background: rgb(255 255 255 / .08); color: #fff; cursor: pointer;
    transition: background-color .18s, color .18s;
  }
  .nq-video-modal__close svg:not(#nq-v) { width: 1.5rem; height: 1.5rem; fill: currentColor; pointer-events: none; }
  .nq-video-modal__close:hover:not(#nq-v) { background: var(--nq-gold); color: var(--nq-navy-deep); }
  .nq-video-modal__close:focus-visible:not(#nq-v) { outline: 2px solid var(--nq-gold); outline-offset: 2px; }
  html:has(.nq-video-modal[open]):not(#nq-v) { overflow: hidden; }

  /* Auslöser: mit Vorschaubild als Kachel, sonst als Knopf */
  .nq-video-open:not(#nq-v) {
    display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.2rem; border: 0; border-radius: var(--nq-radius-pill);
    background: var(--nq-navy); color: #fff; font: 600 1rem/1.2 var(--nq-font); cursor: pointer; transition: background-color .18s, color .18s;
  }
  .nq-video-open:hover:not(#nq-v) { background: var(--nq-gold); color: var(--nq-navy-deep); }
  .nq-video-open:focus-visible:not(#nq-v) { outline: 2px solid var(--nq-focus); outline-offset: 3px; }
  .nq-video-open__icon:not(#nq-v) { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: rgb(255 255 255 / .16); }
  .nq-video-open__icon svg:not(#nq-v) { width: 1rem; height: 1rem; fill: currentColor; pointer-events: none; }
  .nq-video-open--poster:not(#nq-v) {
    position: relative; display: block; width: 100%; padding: 0; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--nq-radius);
    background: var(--nq-navy) center / cover no-repeat;
  }
  .nq-video-open--poster:hover:not(#nq-v) { background-color: var(--nq-navy); color: #fff; }
  .nq-video-open--poster .nq-video-open__icon:not(#nq-v) {
    position: absolute; left: 50%; top: 50%; width: 4.75rem; height: 4.75rem; translate: -50% -50%;
    border: 1px solid rgb(255 255 255 / .18); background: rgb(8 28 44 / .78); backdrop-filter: blur(9px); transition: background-color .18s, color .18s;
  }
  .nq-video-open--poster .nq-video-open__icon svg:not(#nq-v) { width: 2.2rem; height: 2.2rem; }
  .nq-video-open--poster:hover .nq-video-open__icon:not(#nq-v) { background: var(--nq-gold); color: var(--nq-navy-deep); }
  .nq-video-open--poster .nq-video-open__label:not(#nq-v) {
    position: absolute; inset: auto 0 0; padding: 2.5rem 1rem .8rem; background: linear-gradient(transparent, rgb(3 8 14 / .75)); text-align: left;
  }

