/* Videoplayer und Video-Sektion (aus maschine-seite.css ausgelagert, 04.10.2026): Produktseiten und Anbaugeräte-Seite.
   Markup: build_maschinen_detail.player(), Verhalten: video-player.js. url() relativ zu dieser Datei. */

/* Video */
.mp-video { padding-bottom: clamp(56px, 7vw, 100px); }
.mp-video video { display: block; width: 100%; margin-top: 22px; border-radius: 6px; background: #000; box-shadow: 0 30px 60px -36px rgba(23, 28, 21, .6); }

.mp-video { position: relative; isolation: isolate; overflow: hidden; padding: clamp(56px, 7vw, 100px) 0; margin-bottom: 0;
  background: radial-gradient(90% 120% at 20% 0%, #33402c 0%, #1f261c 48%, #151a13 100%); color: var(--on-dark); }
.mp-video > .grain { z-index: -1; }
.mp-video .eyebrow { color: var(--lime); }
.mp-video h2.display, .mp-video h2.display span { color: #f3f0e8; }
.mp-video-rahmen { position: relative; margin-top: 24px; border-radius: 6px; overflow: hidden; }
.mp-video-rahmen video { display: block; width: 100%; margin: 0; border-radius: 0; box-shadow: none; background: #000; }
.mp-video-rahmen::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 60px 24px rgba(21, 26, 19, .85), inset 0 0 0 1px rgba(243, 240, 232, .08); }
.mp-video + .mp-tech { margin-top: 0; }

.mp-video-rahmen::after { box-shadow: inset 0 0 110px 46px rgba(21, 26, 19, .92), inset 0 0 0 1px rgba(243, 240, 232, .08); }

/* v26 (02.10.2026): eigener Video-Player (Nachbau der React-Komponente „video-player“ in HTML/CSS/JS).
   Glasrahmen, Steuerleiste blendet beim Überfahren mit Unschärfe ein; großer Play-Knopf solange pausiert. */
.mp-vp { position: relative; overflow: hidden; border-radius: 12px; background: rgba(17, 17, 17, .6); box-shadow: 0 0 20px rgba(0, 0, 0, .2); backdrop-filter: blur(4px); }
.mp-vp video { display: block; width: 100%; height: auto; cursor: pointer; }
.mp-vp svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mp-vp-gross, .mp-vp-leiste { display: none; }
.mp-vp.vp-js .mp-vp-gross { display: grid; place-items: center; position: absolute; z-index: 3; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border: 0; border-radius: 50%;
  background: rgba(17, 17, 17, .6); color: #fff; backdrop-filter: blur(10px); cursor: pointer; transition: transform .3s cubic-bezier(.2, .7, .2, 1), opacity .35s, background .25s; }
.mp-vp.vp-js .mp-vp-gross svg { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; }
.mp-vp.vp-js .mp-vp-gross:hover { transform: scale(1.08); background: var(--lime); color: var(--lime-ink); }
.mp-vp.spielt .mp-vp-gross { opacity: 0; transform: scale(.85); pointer-events: none; }
.mp-vp.vp-js .mp-vp-leiste { display: block; position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; max-width: 576px; margin: 8px auto; padding: 14px 16px; border-radius: 16px;
  background: rgba(17, 17, 17, .6); color: #fff; backdrop-filter: blur(12px); opacity: 0; translate: 0 20px; filter: blur(10px); pointer-events: none;
  transition: opacity .5s cubic-bezier(.2, .7, .2, 1), translate .6s cubic-bezier(.34, 1.4, .64, 1), filter .5s; }
.mp-vp.zeigen .mp-vp-leiste, .mp-vp:focus-within .mp-vp-leiste { opacity: 1; translate: 0 0; filter: blur(0); pointer-events: auto; }
@media (hover: hover) { .mp-vp:hover .mp-vp-leiste { opacity: 1; translate: 0 0; filter: blur(0); pointer-events: auto; } }
.mp-vp-zeile { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mp-vp-zeile + .mp-vp-zeile { margin-top: 8px; }
.mp-vp-zeile > span { min-width: 34px; font: 500 13px/1 var(--text); font-variant-numeric: tabular-nums; color: #fff; }
.mp-vp-zeile > span:last-child { text-align: right; }
.mp-vp-slider { position: relative; flex: 1; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .2); cursor: pointer; touch-action: none; }
.mp-vp-slider::before { content: ''; position: absolute; inset: -8px 0; }
.mp-vp-slider i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; background: #fff; transition: width .3s cubic-bezier(.34, 1.3, .64, 1); }
.mp-vp-slider:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.mp-vp-laut { flex: none; width: 96px; }
.mp-vp-gruppe { display: flex; align-items: center; gap: 4px; }
.mp-vp-leiste button { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 6px; border: 0; border-radius: 8px; background: transparent; color: #fff;
  font: 500 14px/1 var(--text); cursor: pointer; transition: background .2s, transform .2s; }
.mp-vp-leiste button:hover { background: rgba(17, 17, 17, .82); transform: scale(1.1); }
.mp-vp-leiste button:active { transform: scale(.9); }
.mp-vp-tempo button.is-on { background: rgba(17, 17, 17, .82); color: var(--lime); }
.mp-vp .i-pause, .mp-vp .i-leise, .mp-vp .i-stumm { display: none; }
.mp-vp.spielt .i-play { display: none; }
.mp-vp.spielt .i-pause { display: block; }
.mp-vp.leise .i-laut { display: none; }
.mp-vp.leise .i-leise { display: block; }
.mp-vp.stumm .i-laut, .mp-vp.stumm .i-leise { display: none; }
.mp-vp.stumm .i-stumm { display: block; }
/* Rahmen-Overlay der Video-Sektion liegt unter den Bedienelementen */
.mp-video-rahmen::after { z-index: 2; }
@media (max-width: 560px) {
  .mp-vp.vp-js .mp-vp-leiste { margin: 6px; padding: 10px 12px; }
  .mp-vp-laut { width: 60px; }
  .mp-vp-tempo button { min-width: 34px; padding: 0 4px; font-size: 13px; }
  .mp-vp.vp-js .mp-vp-gross { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
}


/* 03.10.2026 (Nutzer: „die Sektion muss auf Handy anders sein“): Video-Sektion am Handy.
   Video randlos über die volle Breite im Format 4:3, kaum Randabschattung, vor dem Start nur der Abspielknopf mit
   Länge. Beim Abspielen eine schlanke Leiste unten im Bild: Play, Zeit, Fortschritt, Länge, Vollbild. */
.mp-vp-hinweis { display: none; }
.mp-vp-voll { display: none !important; }
@media (max-width: 760px) {
  .mp-video { padding: 52px 0 0; }
  .mp-video .wrap { padding-bottom: 0; }
  .mp-video-rahmen { margin: 22px calc(50% - 50vw) 0; width: 100vw; border-radius: 0; }
  .mp-video-rahmen::after { box-shadow: inset 0 26px 30px -18px rgba(21, 26, 19, .7), inset 0 -26px 30px -18px rgba(21, 26, 19, .55); }
  .mp-vp { border-radius: 0; backdrop-filter: none; box-shadow: none; background: #000; }
  .mp-vp video { aspect-ratio: 4 / 3; object-fit: cover; }
  .mp-vp:fullscreen video { aspect-ratio: auto; height: 100%; object-fit: contain; }
  .mp-vp:-webkit-full-screen video { aspect-ratio: auto; height: 100%; object-fit: contain; }
  .mp-vp.vp-js .mp-vp-gross { width: 72px; height: 72px; margin: -52px 0 0 -36px; background: var(--lime); color: var(--lime-ink); backdrop-filter: none;
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .55); }
  .mp-vp.vp-js .mp-vp-gross svg { width: 26px; height: 26px; }
  .mp-vp.vp-js .mp-vp-hinweis { display: flex; align-items: center; gap: 8px; position: absolute; z-index: 3; left: 50%; top: calc(50% + 32px); translate: -50% 0;
    padding: 7px 14px; border-radius: 99px; background: rgba(17, 17, 17, .62); color: #fff; font: 600 13px/1 var(--text); white-space: nowrap; pointer-events: none; transition: opacity .35s; }
  .mp-vp-hinweis b { font-weight: 500; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
  .mp-vp-hinweis b:not(:empty)::before { content: '\B7  '; }
  .mp-vp.lief .mp-vp-hinweis, .mp-vp.spielt .mp-vp-hinweis { opacity: 0; }
  .mp-vp.lief:not(.spielt) .mp-vp-gross { margin-top: -36px; }
  /* Leiste: eine Zeile, randlos, Verlauf statt Glaskachel */
  .mp-vp.vp-js .mp-vp-leiste { display: flex; align-items: center; gap: 4px; max-width: none; margin: 0; padding: 26px 6px 4px; border-radius: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .74)); backdrop-filter: none; filter: none; translate: 0 8px; }
  .mp-vp.vp-js:not(.lief) .mp-vp-leiste { opacity: 0; pointer-events: none; }
  .mp-vp-leiste .mp-vp-zeile { display: contents; }
  .mp-vp-leiste .mp-vp-zeile > span { order: 1; min-width: 0; padding: 0 4px; font-size: 12.5px; }
  .mp-vp-leiste .mp-vp-slider[data-vp-fort] { order: 2; margin: 0 6px; }
  .mp-vp-leiste .mp-vp-zeile > span:last-child { order: 3; }
  .mp-vp-leiste .mp-vp-gruppe:first-child { order: 0; }
  .mp-vp-leiste [data-vp-ton], .mp-vp-leiste .mp-vp-laut, .mp-vp-tempo [data-vp-tempo] { display: none; }
  .mp-vp-tempo { order: 4; }
  .mp-vp-voll { display: grid !important; }
  .mp-vp-leiste button { min-width: 44px; height: 44px; }
  .mp-vp-leiste button:hover { background: transparent; transform: none; }
}

/* 04.10.2026 (Nutzer): stumme Vorschau. Das Video läuft in Schleife ohne Bedienelemente; Abspielknopf, Hinweis und
   Leiste sind unsichtbar, bis jemand tippt (dann video-player.js: von vorn, mit Ton, Leiste). Tastatur: der große
   Knopf bleibt fokussierbar und erscheint beim Fokus. */
.mp-vp.vorschau video { cursor: pointer; }
.mp-vp.vorschau :is(.mp-vp-leiste, .mp-vp-gross, .mp-vp-hinweis) { opacity: 0 !important; pointer-events: none !important; }
.mp-vp.vorschau .mp-vp-gross:focus-visible { opacity: 1 !important; pointer-events: auto !important; }
/* Unter dem Video läuft die dunkle Sektion mit Rauschen weiter, statt dass sofort die nächste beginnt */
@media (max-width: 760px) { .mp-video { padding-bottom: 64px; } }

/* Anbaugeräte-Seite: zwei Videos nebeneinander (Handy: untereinander, randlos wie auf den Produktseiten) */
.ag-filme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); margin-top: 24px; }
.ag-filme figure { margin: 0; }
.ag-filme .mp-video-rahmen { margin-top: 0; }
.ag-filme .mp-vp video { aspect-ratio: 16 / 10; object-fit: cover; }
.ag-filme figcaption { display: grid; gap: 4px; padding: 14px 2px 0; color: rgba(238, 240, 234, .78); font: 400 15px/1.5 var(--text); }
.ag-filme figcaption b { font: 700 18px/1.2 var(--display); letter-spacing: .01em; text-transform: uppercase; color: #f3f0e8; }
.ag-filme figcaption a { justify-self: start; margin-top: 4px; color: var(--lime); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }
@media (max-width: 760px) {
  .ag-filme-grid { grid-template-columns: 1fr; gap: 34px; margin-top: 0; }
  .ag-filme .mp-vp video { aspect-ratio: 4 / 3; }
  .ag-filme figcaption { padding: 14px 0 0; }
}
