/* ND Video Manager – ohne externe Fonts, Bibliotheken oder Requests */
.ndvm-shell{--ndvm-accent:#147d77;--ndvm-bg:#102b31;--ndvm-radius:16px;--ndvm-ratio:16 / 9;box-sizing:border-box;width:100%;color:inherit;font-family:inherit}
.ndvm-shell *{box-sizing:border-box}
.ndvm-heading{margin:0 0 14px!important;font-size:clamp(1.15rem,2vw,1.5rem);font-weight:650;line-height:1.3}
.ndvm-player{position:relative;aspect-ratio:var(--ndvm-ratio);border-radius:var(--ndvm-radius);overflow:hidden;background:var(--ndvm-bg);width:100%;isolation:isolate}
.ndvm-shell.ndvm-has-shadow .ndvm-player{box-shadow:0 16px 40px rgba(9,34,39,.19)}
.ndvm-player:focus-visible,.ndvm-start:focus-visible,.ndvm-controls :focus-visible{outline:3px solid var(--ndvm-accent);outline-offset:3px}
.ndvm-cover{position:absolute;inset:0;background-color:var(--ndvm-bg);background-size:cover;background-position:center;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;gap:16px}
.ndvm-cover-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(6,24,29,.17),rgba(7,26,30,.72));pointer-events:none}
.ndvm-start{position:relative;z-index:1;border:0;border-radius:16px;background:transparent;display:flex;flex-direction:column;align-items:center;gap:14px;color:#fff!important;cursor:pointer;min-width:120px;max-width:95%;font:inherit;text-align:center;line-height:1.35;padding:12px;transition:transform .2s ease}
.ndvm-start:hover{transform:translateY(-3px)}
.ndvm-play-icon{display:grid;place-items:center;border-radius:100%;height:76px;width:76px;background:var(--ndvm-accent);box-shadow:0 12px 36px rgba(0,0,0,.25);transition:transform .2s ease}
.ndvm-start:hover .ndvm-play-icon{transform:scale(1.06)}
.ndvm-start-text{font-size:clamp(.9rem,1.5vw,1.14rem);font-weight:600;max-width:35ch;text-shadow:0 2px 15px rgba(0,0,0,.7);overflow-wrap:anywhere}
.ndvm-consent{position:relative;z-index:1;font-size:clamp(.66rem,1.1vw,.81rem);line-height:1.4;color:#e6eeee!important;text-align:center;max-width:56ch;margin:0!important;text-shadow:0 2px 8px rgba(0,0,0,.7)}
.ndvm-player iframe,.ndvm-player video{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain;border:0;background:#000}
.ndvm-description{color:inherit;opacity:.85;line-height:1.65;margin:12px 0 0}
.ndvm-transcript{border:1px solid rgba(75,105,107,.25);border-radius:12px;margin:14px 0 0;overflow:hidden}
.ndvm-transcript summary{cursor:pointer;padding:12px 16px;font-weight:600;list-style:auto}
.ndvm-transcript-content{padding:0 16px 12px;line-height:1.65}
.ndvm-transcript-content p{margin:0 0 .75rem}
.ndvm-message{padding:12px 16px;border-left:3px solid #bf7f37;background:#fcf6e9;font-size:14px}
.ndvm-error{position:absolute;inset:auto 10px 12%;z-index:5;color:white!important;background:rgba(30,20,20,.9);padding:12px 16px;border-radius:8px;text-align:center}
.ndvm-control-overlay{position:absolute;z-index:3;bottom:0;left:0;right:0;background:linear-gradient(0deg,rgba(4,12,17,.91),rgba(4,12,17,.74),transparent);color:white;padding:30px 12px 10px;opacity:0;transition:opacity .18s ease}
.ndvm-player:hover .ndvm-control-overlay,.ndvm-player:focus-within .ndvm-control-overlay,.ndvm-player:focus-visible .ndvm-control-overlay,.ndvm-player.ndvm-custom-playing:has(video:paused) .ndvm-control-overlay{opacity:1}
.ndvm-controls{display:flex;gap:5px;align-items:center;flex-wrap:nowrap;min-height:38px}
.ndvm-control{border:0!important;background:transparent!important;color:#fff!important;cursor:pointer;min-width:32px;min-height:34px;display:grid;place-items:center;border-radius:6px!important;padding:6px!important;flex:0 0 auto;box-shadow:none!important}
.ndvm-control:hover,.ndvm-control.ndvm-active{background:rgba(255,255,255,.19)!important}
.ndvm-control[hidden]{display:none!important}
.ndvm-time{font:500 11px/1.2 system-ui,sans-serif;color:#fff!important;white-space:nowrap;min-width:66px}
.ndvm-progress{flex:1 1 auto;min-width:35px;max-width:none;height:5px;accent-color:var(--ndvm-accent);cursor:pointer}
.ndvm-volume{flex:0 1 58px;min-width:28px;max-width:60px;height:4px;accent-color:var(--ndvm-accent);cursor:pointer}
.ndvm-speed{border:1px solid rgba(255,255,255,.3)!important;border-radius:5px!important;background:#23343b!important;color:#fff!important;font:500 12px system-ui,sans-serif;flex:0 0 auto;max-width:64px;padding:4px 2px!important;min-height:30px}
.ndvm-player:fullscreen{aspect-ratio:auto!important;border-radius:0!important}
.ndvm-player:fullscreen video{object-fit:contain}
@media(max-width:600px){
 .ndvm-control-overlay{opacity:1;padding:22px 7px 7px}
 .ndvm-controls{gap:1px}
 .ndvm-control{min-width:29px;min-height:29px;padding:5px!important}
 .ndvm-control-secondary,.ndvm-volume{display:none}
 .ndvm-time{font-size:10px;min-width:60px}
 .ndvm-speed{max-width:56px;font-size:11px}
 .ndvm-play-icon{width:60px;height:60px}
 .ndvm-consent{font-size:11px}
 .ndvm-cover{gap:6px;padding:8px}
 .ndvm-start{gap:6px}
}
@media(max-width:350px){.ndvm-action-pip{display:none}.ndvm-time{min-width:50px}.ndvm-control{min-width:26px}}
@media(prefers-reduced-motion:reduce){.ndvm-start,.ndvm-play-icon,.ndvm-control-overlay{transition:none}}

/* v1.4 – ruhiges, rahmenloses Grunddesign; individuelle Werte aus PHP-CSS-Variablen */
.ndvm-shell{--ndvm-play-color:#2563eb;--ndvm-play-size:80px;--ndvm-border-size:0px;--ndvm-border-color:#dce4f3;--ndvm-poster-dim:.08}
.ndvm-shell .ndvm-player{border:var(--ndvm-border-size) solid var(--ndvm-border-color);outline:none}
.ndvm-cover-shade{background:rgba(0,0,0,var(--ndvm-poster-dim))}
.ndvm-shell .ndvm-start,.ndvm-shell .ndvm-start:hover,.ndvm-shell .ndvm-start:focus,.ndvm-shell .ndvm-start:active{
    border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;
    color:#fff!important;text-decoration:none!important;min-width:0;min-height:0;max-width:none;
    padding:0!important;border-radius:50%!important;line-height:1!important;
}
.ndvm-shell .ndvm-play-icon{width:var(--ndvm-play-size);height:var(--ndvm-play-size);background:var(--ndvm-play-color);border-radius:50%;flex:0 0 auto}
.ndvm-shell .ndvm-start:focus-visible .ndvm-play-icon,.ndvm-shell .ndvm-pause-overlay:focus-visible .ndvm-play-icon{
    box-shadow:0 0 0 3px #fff,0 0 0 6px var(--ndvm-play-color)!important
}
.ndvm-shell.ndvm-hide-start-icon .ndvm-start{position:absolute;inset:0;width:100%;height:100%;border-radius:0!important}
.ndvm-shell.ndvm-hide-start-icon .ndvm-start .ndvm-play-icon{display:none}
.ndvm-shell.ndvm-hide-start-icon .ndvm-start:focus-visible{outline:3px solid var(--ndvm-play-color)!important;outline-offset:-5px!important}
.ndvm-shell .ndvm-pause-overlay{
    position:absolute;z-index:2;top:50%;left:50%;transform:translate(-50%,-50%);
    border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;
    display:grid;place-items:center;padding:0!important;cursor:pointer;
    opacity:0;visibility:hidden;pointer-events:none;transition:opacity .16s ease;
}
.ndvm-shell .ndvm-pause-overlay .ndvm-play-icon{display:grid;place-items:center;color:#fff}
.ndvm-shell .ndvm-pause-overlay .ndvm-play-icon svg{width:34px;height:34px}
.ndvm-shell .ndvm-player.ndvm-is-paused .ndvm-pause-overlay{opacity:1;visibility:visible;pointer-events:auto}
.ndvm-shell .ndvm-player.ndvm-can-click-pause video{cursor:pointer}
.ndvm-shell .ndvm-player.ndvm-is-playing video{cursor:pointer}
.ndvm-shell .ndvm-control:focus-visible{outline:2px solid var(--ndvm-play-color)!important;outline-offset:1px}
@media(max-width:600px){
 .ndvm-shell .ndvm-play-icon{width:min(var(--ndvm-play-size),84px);height:min(var(--ndvm-play-size),84px)}
 .ndvm-shell .ndvm-controls{gap:0}
 .ndvm-shell .ndvm-control{min-width:28px;padding:4px!important}
}
@media(prefers-reduced-motion:reduce){.ndvm-shell .ndvm-pause-overlay{transition:none}}
.ndvm-shell .ndvm-start::before,.ndvm-shell .ndvm-start::after,.ndvm-shell .ndvm-pause-overlay::before,.ndvm-shell .ndvm-pause-overlay::after{content:none!important;display:none!important}

/* v1.5.0 – Responsiver Player nach tatsächlicher Video-Breite, nicht Viewport.
   Desktop: 2-zeilige volle Steuerung. Kompakt: Kernfunktionen + ausklappbares Menü.
   Prozentuale Größe relativ zum Player mittels CSS-Container-Einheiten. */
.ndvm-player{container-type:inline-size}
.ndvm-shell .ndvm-play-icon{
  width:min(var(--ndvm-play-size),18cqw);
  height:min(var(--ndvm-play-size),18cqw);
  min-width:0;min-height:0;
}
.ndvm-shell .ndvm-play-icon svg,
.ndvm-shell .ndvm-pause-overlay .ndvm-play-icon svg{
  width:42%;height:42%;min-width:12px;min-height:12px;
}
.ndvm-shell .ndvm-cover{gap:clamp(4px,1.5cqw,14px)}
.ndvm-shell .ndvm-consent{max-width:min(90%,60ch)}
.ndvm-shell .ndvm-control-overlay{
  padding:30px 10px 8px;
  opacity:0;
  pointer-events:none;
  z-index:4;
}
.ndvm-shell .ndvm-player:hover .ndvm-control-overlay,
.ndvm-shell .ndvm-player:focus-within .ndvm-control-overlay,
.ndvm-shell .ndvm-player:focus-visible .ndvm-control-overlay,
.ndvm-shell .ndvm-player.ndvm-is-paused .ndvm-control-overlay{
  opacity:1;pointer-events:auto;
}
.ndvm-shell .ndvm-controls{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:0;width:100%}
.ndvm-shell .ndvm-seek-row{display:flex;align-items:center;gap:10px;min-width:0;width:100%;min-height:20px}
.ndvm-shell .ndvm-seek-row .ndvm-progress{flex:1 1 0;min-width:0;width:auto;max-width:none;margin:0}
.ndvm-shell .ndvm-seek-row .ndvm-time{flex:0 0 auto;min-width:0;font-size:11px;text-align:right}
.ndvm-shell .ndvm-toolbar{display:flex;align-items:center;gap:3px;min-width:0;width:100%;min-height:34px}
.ndvm-shell .ndvm-toolbar-spacer{flex:1 1 auto;min-width:1px}
.ndvm-shell .ndvm-toolbar .ndvm-control{min-width:32px;min-height:34px;padding:5px!important}
.ndvm-shell .ndvm-toolbar .ndvm-control svg{width:18px;height:18px}
.ndvm-shell .ndvm-toolbar .ndvm-volume{flex:0 1 60px;min-width:32px;max-width:65px}
.ndvm-shell .ndvm-toolbar .ndvm-speed{max-width:65px;min-height:30px}
.ndvm-shell .ndvm-more-toggle{display:none!important}
.ndvm-shell .ndvm-more-panel[hidden],.ndvm-shell .ndvm-more-panel [hidden]{display:none!important}
.ndvm-shell .ndvm-more-panel{
  box-sizing:border-box;width:100%;margin:8px 0 0;padding:12px;
  border:1px solid rgba(78,113,136,.23);border-radius:var(--ndvm-radius);
  background:#f6f9fc;color:#142c3e;
  box-shadow:0 8px 20px rgba(17,36,56,.10);
  position:relative;z-index:5;
}
.ndvm-shell .ndvm-more-heading{font:650 14px/1.4 system-ui,sans-serif;margin:0 0 10px}
.ndvm-shell .ndvm-more-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ndvm-shell .ndvm-menu-btn{
  display:flex;align-items:center;justify-content:flex-start;gap:8px;
  min-width:0;min-height:42px;max-width:100%;padding:8px!important;
  background:#fff!important;color:#142c3e!important;border:1px solid #d6e0eb!important;
  border-radius:8px!important;box-shadow:none!important;text-align:left;cursor:pointer;
  font:500 12px/1.3 system-ui,sans-serif;overflow-wrap:anywhere;
}
.ndvm-shell .ndvm-menu-btn svg{width:19px;height:19px;flex:0 0 19px}
.ndvm-shell .ndvm-menu-btn:hover,.ndvm-shell .ndvm-menu-btn.ndvm-active{background:#e4eefb!important}
.ndvm-shell .ndvm-more-options{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:12px}
.ndvm-shell .ndvm-more-options label{display:grid;gap:6px;min-width:0;color:#142c3e;font:500 12px/1.3 system-ui,sans-serif}
.ndvm-shell .ndvm-more-options .ndvm-volume{display:block!important;width:100%;max-width:100%;min-width:0;margin:6px 0;accent-color:var(--ndvm-accent)}
.ndvm-shell .ndvm-more-options .ndvm-speed{display:block!important;width:100%;max-width:none;min-height:36px;font-size:13px}
.ndvm-shell .ndvm-more-panel :focus-visible{outline:2px solid var(--ndvm-play-color)!important;outline-offset:2px}

/* Umschaltung ab individueller Elementbreite – per ResizeObserver gesetzt. */
.ndvm-shell .ndvm-player.ndvm-compact .ndvm-control-overlay{
  opacity:1;pointer-events:auto;padding:22px 8px 7px;
}
.ndvm-shell .ndvm-player.ndvm-compact .ndvm-controls{gap:3px}
.ndvm-shell .ndvm-player.ndvm-compact .ndvm-seek-row{gap:8px;min-height:19px}
.ndvm-shell .ndvm-player.ndvm-compact .ndvm-toolbar{gap:4px;min-height:40px}
.ndvm-shell .ndvm-player.ndvm-compact .ndvm-toolbar .ndvm-control{
  min-width:40px;min-height:40px;padding:8px!important;
}
.ndvm-shell .ndvm-player.ndvm-compact .ndvm-toolbar .ndvm-control svg{width:20px;height:20px}
.ndvm-shell .ndvm-player.ndvm-compact .ndvm-toolbar .ndvm-desktop-extra{display:none!important}
.ndvm-shell .ndvm-player.ndvm-compact .ndvm-more-toggle{display:grid!important}
.ndvm-shell .ndvm-player.ndvm-tiny .ndvm-toolbar-mute{display:none!important}
.ndvm-shell .ndvm-player.ndvm-tiny .ndvm-toolbar .ndvm-control{min-width:38px;min-height:38px}
/* Vollbild: Menü gehört temporär in den Fullscreen-Player und bleibt scrollbar. */
.ndvm-shell .ndvm-player:fullscreen .ndvm-more-panel{
  position:absolute;bottom:90px;left:10px;width:calc(100% - 20px);
  max-height:calc(100% - 106px);overflow:auto;margin:0;
}
/* Auf Touchscreens sind die Bedienelemente erreichbar, ohne Hover zu benötigen. */
@media (hover:none),(pointer:coarse){
 .ndvm-shell .ndvm-player.ndvm-custom-playing .ndvm-control-overlay{opacity:1;pointer-events:auto}
}
@media(max-width:600px){
 .ndvm-shell .ndvm-more-panel .ndvm-volume{display:block!important}
 .ndvm-shell .ndvm-toolbar .ndvm-desktop-extra{display:flex}
 .ndvm-shell .ndvm-toolbar select.ndvm-desktop-extra{display:block}
 .ndvm-shell .ndvm-toolbar input.ndvm-desktop-extra{display:block}
 .ndvm-shell .ndvm-player.ndvm-compact .ndvm-toolbar .ndvm-desktop-extra{display:none!important}
}
@media(max-width:330px){
 .ndvm-shell .ndvm-more-actions{grid-template-columns:1fr}
}
/* Die transparente Steuerleisten-Fläche darf den zentralen Pause-/Play-Button
   auf kleinen Videos nicht abdecken. Nur echte Bedienelemente fangen Klicks. */
.ndvm-shell .ndvm-player .ndvm-control-overlay,
.ndvm-shell .ndvm-player.ndvm-compact .ndvm-control-overlay{pointer-events:none!important}
.ndvm-shell .ndvm-player .ndvm-control-overlay button,
.ndvm-shell .ndvm-player .ndvm-control-overlay input,
.ndvm-shell .ndvm-player .ndvm-control-overlay select{pointer-events:auto}

/* v1.5.1: mobile Basis-Einstellungen immer sichtbar; Zusatzmenü ohne Überläufe. */
.ndvm-shell .ndvm-toolbar .ndvm-action-restart{display:none!important}
.ndvm-shell .ndvm-more-panel,
.ndvm-shell .ndvm-more-heading,
.ndvm-shell .ndvm-more-actions,
.ndvm-shell .ndvm-more-actions > *{min-width:0;max-width:100%;overflow-wrap:anywhere}
.ndvm-shell .ndvm-more-panel{overflow-wrap:anywhere}
.ndvm-shell .ndvm-menu-btn{
  width:100%;white-space:normal!important;word-break:normal;
  overflow-wrap:anywhere!important;line-height:1.35!important;
}
.ndvm-shell .ndvm-menu-btn span{
  display:block;flex:1 1 0;min-width:0;max-width:100%;white-space:normal!important;
  overflow-wrap:anywhere!important;word-break:break-word;
}
.ndvm-shell .ndvm-player.ndvm-compact + .ndvm-more-panel .ndvm-more-actions{
  grid-template-columns:minmax(0,1fr);
}
.ndvm-shell .ndvm-player .ndvm-restart-overlay{
  position:absolute;right:8px;top:8px;z-index:6;
  display:none;align-items:center;justify-content:center;gap:6px;
  max-width:calc(100% - 16px);min-width:0;
  border:1px solid rgba(255,255,255,.4)!important;border-radius:999px!important;
  padding:7px 10px!important;background:rgba(5,20,30,.85)!important;
  color:#fff!important;font:600 12px/1.1 system-ui,sans-serif!important;
  cursor:pointer;box-shadow:0 3px 12px rgba(0,0,0,.25)!important;
}
.ndvm-shell .ndvm-restart-overlay svg{width:17px;height:17px;flex:0 0 17px}
.ndvm-shell .ndvm-restart-overlay span{overflow-wrap:anywhere}
.ndvm-shell .ndvm-player.ndvm-is-paused.ndvm-can-restart .ndvm-restart-overlay{display:flex}
.ndvm-shell .ndvm-restart-overlay:focus-visible{outline:2px solid var(--ndvm-play-color)!important;outline-offset:2px!important}
.ndvm-shell .ndvm-error{
  position:absolute;z-index:8;inset:8px 8px auto;max-width:calc(100% - 16px);
  padding:10px 12px;display:flex;flex-wrap:wrap;align-items:center;gap:8px;
  overflow-wrap:anywhere;text-align:left;font-size:12px;line-height:1.45;
}
.ndvm-shell .ndvm-retry{
  padding:6px 10px!important;border-radius:6px!important;
  border:1px solid rgba(255,255,255,.5)!important;
  background:#fff!important;color:#142d3e!important;font:600 12px/1.3 system-ui,sans-serif!important;
  cursor:pointer;
}
.ndvm-shell .ndvm-player.ndvm-has-error .ndvm-pause-overlay{opacity:0!important;pointer-events:none!important}
.ndvm-shell .ndvm-player.ndvm-compact .ndvm-restart-overlay{top:5px;right:5px;padding:5px 7px!important;font-size:11px!important}
.ndvm-shell .ndvm-player.ndvm-tiny .ndvm-restart-overlay span{display:none}


/* v1.5.2: Eine einzige durchgehend sichtbare Steuerleiste – auch in engen
   Elementor-Spalten. Lautstärke und Tempo sind keine zweiten Menüpunkte. */
.ndvm-shell .ndvm-player.ndvm-compact .ndvm-toolbar{gap:2px;min-height:36px}
.ndvm-shell .ndvm-player.ndvm-compact .ndvm-toolbar .ndvm-control{
  min-width:30px;min-height:34px;padding:5px!important;
}
.ndvm-shell .ndvm-player.ndvm-compact .ndvm-toolbar .ndvm-control svg{width:17px;height:17px}
.ndvm-shell .ndvm-player.ndvm-compact .ndvm-toolbar .ndvm-volume{
  display:block!important;flex:1 1 48px;min-width:28px;max-width:72px;
  width:auto;height:18px;margin:0;accent-color:var(--ndvm-play-color);
}
.ndvm-shell .ndvm-player.ndvm-compact .ndvm-toolbar .ndvm-speed{
  display:block!important;flex:0 0 53px;width:53px;max-width:53px;
  min-height:29px;padding:2px 1px!important;font-size:11px;
}
.ndvm-shell .ndvm-player.ndvm-compact .ndvm-toolbar-spacer{flex:0 0 0;min-width:0}
.ndvm-shell .ndvm-player.ndvm-tiny .ndvm-toolbar .ndvm-control{
  min-width:29px;min-height:34px;padding:4px!important;
}
.ndvm-shell .ndvm-player.ndvm-tiny .ndvm-toolbar .ndvm-volume{min-width:27px;flex-basis:28px}
/* Bei sehr schmalen Playern entfällt nur das separate Stummschalt-Icon;
   der direkt sichtbare Lautstärkeregler bleibt erhalten. */
.ndvm-shell .ndvm-player.ndvm-tiny .ndvm-toolbar-mute{display:none!important}
.ndvm-shell .ndvm-player.ndvm-compact .ndvm-toolbar .ndvm-speed,
.ndvm-shell .ndvm-player.ndvm-compact .ndvm-toolbar .ndvm-volume{visibility:visible!important}

/* Auch bei kleinem Viewport und nicht-kompaktem Elementor-Container sichtbar. */
.ndvm-shell .ndvm-toolbar .ndvm-volume{display:block!important}
.ndvm-shell .ndvm-toolbar .ndvm-speed{display:block!important}

/* v1.5.4: Der Lautstärkeregler endet nicht unmittelbar vor der Tempo-Auswahl. */
.ndvm-shell .ndvm-toolbar .ndvm-volume{margin-inline-end:9px!important}
.ndvm-shell .ndvm-player.ndvm-compact .ndvm-toolbar .ndvm-volume{margin-inline-end:9px!important}
.ndvm-shell .ndvm-player.ndvm-tiny .ndvm-toolbar .ndvm-volume{margin-inline-end:6px!important}
/* Bei winzigen 16:9-Playern kollidiert die mittige Play-Fläche sonst mit
   der zweizeiligen Steuerung. Der Play-Button rückt nach oben. */
.ndvm-shell .ndvm-player.ndvm-tiny .ndvm-pause-overlay{top:27%;z-index:5}
