/* PNKI Technologies – Onepager. Tokens aus dem Logo: Tiefe #0A1428, Nacht #14274A, Himmel-Verlauf #0B5BE6→#1A9DF5→#1CD3F7, Papier #F2F5FA, Tinte #0B1730, Nebel #C9D6EA. */

:root {
  --tiefe: #0A1428;
  --nacht: #14274A;
  --papier: #F2F5FA;
  --tinte: #0B1730;
  --nebel: #C9D6EA;
  --sky-1: #0B5BE6;
  --sky-2: #1A9DF5;
  --sky-3: #1CD3F7;
  --grad: linear-gradient(135deg, var(--sky-1) 0%, var(--sky-2) 55%, var(--sky-3) 100%);
  --grad-v: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 55%, var(--sky-3) 100%);

  --gx: 28px;          /* seitlicher Abstand */
  --tx: 13px;          /* Position der Spur */
  --head-h: 64px;
  --font-display: 'Michroma', 'Arial Black', sans-serif;
  --font-text: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
}
@media (min-width: 900px) {
  :root { --gx: 64px; --tx: 31px; --head-h: 72px; }
}

/* Themen je Abschnitt */
.theme-dark { --bg: var(--tiefe); --fg: #fff; --fg2: var(--nebel); --line: rgba(255,255,255,.1); --surface: var(--nacht); --logo-pn: #fff; }
.theme-light { --bg: var(--papier); --fg: var(--tinte); --fg2: #3A4A66; --line: rgba(11,23,48,.12); --surface: #fff; --logo-pn: var(--tinte); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--tiefe);
  color: #fff;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--sky-3); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: var(--gx); top: -100px; z-index: 100; padding: 10px 14px; background: #fff; color: var(--tinte); border-radius: 6px; }
.skip:focus { top: 12px; }

section { position: relative; background: var(--bg); color: var(--fg); padding: 0 var(--gx); }

/* Typografie */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.15rem, 8vw, 6.6rem);
  line-height: 1.04;
  letter-spacing: -.01em;
}
.display-2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.45rem, 3.3vw, 2.7rem);
  line-height: 1.18;
  max-width: 24ch;
}
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--fg2); max-width: 52ch; }
.kicker { font-size: 1rem; font-weight: 500; color: var(--fg2); margin-bottom: 8px; }

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 6px;
  font-weight: 500; font-size: 1rem; line-height: 1.2; text-decoration: none;
  min-height: 48px;
}
.btn .ico { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); color: #fff; }
.btn-ghost { border: 1px solid rgba(255,255,255,.32); color: #fff; }
.btn-dark { background: var(--tinte); color: #fff; }
.btn-big { font-size: 1.15rem; padding: 18px 28px; }
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Kopf */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--head-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 var(--gx);
  background: rgba(10,20,40,.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  --logo-pn: #fff;
}
.brand { display: block; margin-right: auto; }
.brand-mark { height: 26px; width: auto; }
.nav { position: relative; }
.menu { display: flex; gap: 26px; }
.menu a { color: var(--nebel); text-decoration: none; font-size: .95rem; font-weight: 500; padding: 8px 0; }
.menu a:hover { color: #fff; }
.menu-btn {
  display: none; align-items: center; gap: 10px;
  background: none; border: 0; color: #fff; font: inherit; font-weight: 500; cursor: pointer;
  min-height: 44px; padding: 0 4px;
}
.menu-ico { position: relative; width: 20px; height: 14px; }
.menu-ico i { position: absolute; left: 0; right: 0; height: 2px; background: #fff; transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-ico i:first-child { top: 1px; } .menu-ico i:last-child { top: 11px; }
.top.open .menu-ico i:first-child { top: 6px; transform: rotate(45deg); }
.top.open .menu-ico i:last-child { top: 6px; transform: rotate(-45deg); }
.lang { display: flex; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; overflow: hidden; }
.lang button {
  background: none; border: 0; color: var(--nebel); font: inherit; font-weight: 600; font-size: .85rem;
  padding: 0 12px; min-height: 36px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--tinte); }
@media (max-width: 899px) {
  .menu-btn { display: flex; }
  .menu {
    display: none; position: fixed; left: 0; right: 0; top: var(--head-h);
    flex-direction: column; gap: 0;
    background: var(--tiefe); border-top: 1px solid var(--line, rgba(255,255,255,.1));
    padding: 8px var(--gx) 16px;
  }
  .top.open .menu { display: flex; }
  .menu a { display: block; padding: 14px 0; font-size: 1.15rem; border-bottom: 1px solid rgba(255,255,255,.08); }
}

/* Spur (der Strich aus PN|KI) */
.track { position: absolute; left: var(--tx); top: 0; bottom: 0; width: 2px; background: var(--line); }
.track-fill { position: absolute; inset: 0; background: var(--grad-v); transform: scaleY(var(--p, 0)); transform-origin: top; will-change: transform; }
.track-dot { position: absolute; left: -4px; top: -5px; width: 10px; height: 10px; background: var(--bg); border: 2px solid var(--line); transform: rotate(45deg); transition: background .3s, border-color .3s; }
.track-dot.lit { background: var(--sky-2); border-color: var(--sky-3); }

/* Hero */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  padding-top: calc(var(--head-h) + 32px);
  padding-bottom: 28px;
}
.hero-grid { display: grid; grid-template-columns: 8px 1fr; gap: clamp(18px, 3vw, 44px); align-self: center; }
.hero-bar {
  position: relative; width: 8px; border-radius: 4px; overflow: hidden;
  background: var(--grad-v);
  transform-origin: top; 
}
.hero-pulse {
  position: absolute; left: 0; right: 0; height: 44px; top: -44px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.9), rgba(255,255,255,0));
}
.hero-copy { max-width: 1100px; padding: 4px 0; }
.display .line { display: block; overflow: hidden; padding-bottom: .06em; }
.display .line > span { display: block; }
.hero-sub { margin-top: clamp(20px, 3vw, 32px); font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--nebel); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--nebel); font-size: .9rem; margin-top: 48px; }
.hero-scroll { display: inline-flex; align-items: center; gap: 10px; }
.hero-scroll i { width: 40px; height: 1px; background: var(--nebel); }

/* Lade-Sequenz, nur mit JS und ohne Reduced Motion */
.js .hero-bar { animation: barIn .9s var(--ease) both; }
.js .hero-pulse { animation: pulse 3.2s linear 1.2s infinite; }
.js .display .line > span { animation: lineIn .8s var(--ease) both; animation-delay: .35s; }
.js .display .line:nth-child(2) > span { animation-delay: .5s; }
.js .hero-sub, .js .hero-actions { animation: fadeIn .7s var(--ease) both; animation-delay: .95s; }
.js .hero-foot { animation: fadeIn .7s var(--ease) both; animation-delay: 1.3s; }
@keyframes barIn { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes lineIn { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pulse { from { transform: translateY(0); } to { transform: translateY(calc(100% + 100vh)); } }


/* Film */
.film { padding-top: clamp(64px, 10vh, 120px); padding-bottom: clamp(64px, 10vh, 120px); }
/* second film: the sales-office film (HLS, native controls once started) */
.vfilm { padding-top: clamp(64px, 10vh, 120px); padding-bottom: clamp(64px, 10vh, 120px); }
.vfilm .lede { margin-top: 12px; }
.vplayer { position: relative; margin-top: 32px; aspect-ratio: 16 / 9; background: #06101f; border-radius: 12px; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.5); }
.vplayer-poster, .vplayer-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vplayer-video[hidden], .vplayer-btn[hidden], .vplayer-poster[hidden] { display: none; }
.vplayer-btn { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(180deg, rgba(10,20,40,.1), rgba(10,20,40,.55)); border: 0; color: #fff; font: inherit; font-weight: 600; font-size: 1.15rem; cursor: pointer; }
.vplayer-btn:hover .player-ico { transform: scale(1.06); }
.vplayer-btn:focus-visible { outline: 3px solid #1CD3F7; outline-offset: -3px; }
.film .lede { margin-top: 12px; }
.player { position: relative; margin-top: 32px; aspect-ratio: 16 / 9; background: #06101f center / cover no-repeat; border-radius: 12px; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.5); }
.player-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.player.playing .player-video { opacity: 1; }
.player-btn { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(180deg, rgba(10,20,40,.1), rgba(10,20,40,.55)); border: 0; color: #fff; font: inherit; font-weight: 600; font-size: 1.15rem; cursor: pointer; }
.player-ico { width: 84px; height: 84px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(26,157,245,.18); transition: transform .3s var(--ease); }
.player-ico svg { width: 36px; height: 36px; fill: #fff; margin-left: 4px; }
.player-btn:hover .player-ico { transform: scale(1.06); }
.player-sound { font-size: .85rem; font-weight: 500; color: var(--nebel); }
.player.playing .player-btn { opacity: 0; pointer-events: none; }
.player.ended .player-btn { opacity: 1; pointer-events: auto; }
.player-btn:focus-visible { outline-offset: -4px; }
@media (max-width: 640px) { .player { border-radius: 8px; margin-left: calc(-1 * var(--gx) + 12px); margin-right: calc(-1 * var(--gx) + 12px); } .player-ico { width: 64px; height: 64px; } }

/* Hero ohne Panel */
.hero-grid { grid-template-columns: 8px minmax(0, 1fr); }
@media (min-width: 1024px) { .display { font-size: clamp(2.15rem, 7.2vw, 6.6rem); } }
.hero-rule { margin-top: 18px; font-size: .95rem; color: var(--nebel); max-width: 52ch; }
.hero-video.on { opacity: .85; }
.hero-veil { background:
  linear-gradient(90deg, rgba(10,20,40,.88) 0%, rgba(10,20,40,.62) 40%, rgba(10,20,40,.15) 75%, rgba(10,20,40,.3) 100%),
  linear-gradient(180deg, rgba(10,20,40,.5) 0%, rgba(10,20,40,0) 30%, rgba(10,20,40,.15) 70%, var(--tiefe) 100%); }
@media (max-width: 1023px) { .hero-veil { background: linear-gradient(180deg, rgba(10,20,40,.78) 0%, rgba(10,20,40,.55) 55%, var(--tiefe) 100%); } }
.brand-mark { color: #fff; }

/* Drei Regeln */
.rules { padding-top: clamp(80px, 14vh, 160px); padding-bottom: clamp(80px, 14vh, 160px); }
.rules-grid { display: grid; gap: 40px; align-items: center; }
.rules-list { display: grid; gap: 22px; margin-top: 40px; }
.rules-list li { border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; }
.rules-list h3 { font-size: 1rem; font-weight: 500; color: var(--nebel); }
.rules-list p { margin-top: 6px; font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.rules-foot { margin-top: 36px; color: var(--nebel); font-size: 1.1rem; max-width: 40ch; }
.rules-img { width: 100%; border-radius: 10px; aspect-ratio: 16 / 10; object-fit: cover; }
.rules-img.missing { display: none; }
@media (min-width: 1000px) { .rules-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
/* Fünf Welten */
.worlds { padding-top: clamp(80px, 12vh, 140px); padding-bottom: clamp(80px, 12vh, 140px); }
.worlds .lede { margin-top: 12px; }
.world-row { display: grid; gap: 14px; margin-top: 40px; }
.world { position: relative; border-radius: 10px; overflow: hidden; background: var(--nacht); aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; }
.world img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.world img.missing { display: none; }
.world::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,40,0) 30%, rgba(10,20,40,.9) 100%); }
.world h3, .world p { position: relative; z-index: 1; }
.world h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; }
.world p { margin-top: 6px; color: var(--nebel); font-size: .95rem; }
.js .world { opacity: 0; transform: translateX(40px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .world.in { opacity: 1; transform: none; }
@media (min-width: 640px) { .world-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .world-row { grid-template-columns: repeat(5, 1fr); gap: 16px; } .world { aspect-ratio: 3 / 5; padding: 22px 18px; } }
.reduced .world { opacity: 1; transform: none; }

/* Das letzte Wort */
.last { padding-top: clamp(96px, 16vh, 180px); padding-bottom: clamp(96px, 16vh, 180px); display: grid; gap: clamp(18px, 3vh, 32px); }
.last-line { font-size: clamp(1.4rem, 3vw, 2.6rem); line-height: 1.3; font-weight: 500; max-width: 30ch; color: var(--nebel); }
.last-line.strong { color: #fff; }

/* So geht es los */
.startsec { padding-top: clamp(80px, 12vh, 140px); padding-bottom: clamp(80px, 12vh, 140px); }
.steps4 { display: grid; gap: 28px; margin-top: 40px; }
.steps4 li { border-top: 2px solid var(--tinte); padding-top: 18px; }
.steps4 p { font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 500; line-height: 1.35; }
.num { display: block; font-family: var(--font-display); font-size: 1.9rem; line-height: 1; margin-bottom: 14px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (min-width: 640px) { .steps4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .steps4 { grid-template-columns: repeat(4, 1fr); gap: 36px; } }

/* Unternehmen */
.products { padding-top: clamp(80px, 12vh, 140px); padding-bottom: clamp(80px, 12vh, 140px); }
.products .lede { margin-top: 12px; }
.product-row { display: grid; gap: 16px; margin-top: 40px; }
.products-film { margin-top: 56px; }
.products .vplayer { margin-top: 24px; }
.product { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--fg); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
a.product:hover, a.product:focus-visible { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(11,23,48,.45); }
.product-name { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -.01em; }
.product-name b { font-weight: 400; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.product p { color: var(--fg2); line-height: 1.5; flex: 1; }
.product-link { font-weight: 600; }
@media (min-width: 760px) { .product-row { grid-template-columns: 1fr 1fr; } }
.company { padding-top: clamp(80px, 12vh, 140px); padding-bottom: clamp(80px, 12vh, 140px); }
.company-grid { display: grid; gap: 40px; align-items: center; }
.company .lede { margin-top: 16px; max-width: 56ch; }
.company-claim { margin-top: 24px; font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 500; line-height: 1.35; max-width: 32ch; }
.company-logo { width: min(420px, 80vw); height: auto; justify-self: start; }
@media (min-width: 1000px) { .company-grid { grid-template-columns: 1.2fr .8fr; gap: 64px; } .company-logo { justify-self: end; } }

/* Kontakt */
.contact { padding-top: clamp(96px, 18vh, 200px); padding-bottom: clamp(96px, 16vh, 180px); }
.contact .lede { margin-top: 16px; }
.contact .btn { margin-top: 32px; }
.contact-mail { margin-top: 16px; color: var(--nebel); font-size: .95rem; }
.contact-phone { margin-top: 6px; font-size: .95rem; }
.contact-phone a { color: var(--nebel); text-decoration: none; }
.contact-phone a:hover, .contact-phone a:focus-visible { color: inherit; text-decoration: underline; }

/* Fuß */
.foot { background: var(--tiefe); color: var(--nebel); padding: 40px var(--gx) 32px; border-top: 1px solid rgba(255,255,255,.1); }
.foot-logo { width: min(340px, 70vw); height: auto; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 28px; font-size: .9rem; }
.foot-row nav { display: flex; gap: 24px; }
.foot-row a { color: var(--nebel); text-decoration: none; padding: 6px 0; }
.foot-row a:hover { color: #fff; }

/* Rechtsseiten */
.legal { padding: calc(var(--head-h) + 48px) var(--gx) 96px; min-height: 100vh; }
.legal h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
.legal h2 { font-size: 1.2rem; margin-top: 36px; }
.legal p, .legal li { max-width: 70ch; margin-top: 10px; color: var(--fg2); }
.legal .todo { border-left: 3px solid var(--sky-2); padding: 10px 16px; margin-top: 24px; color: var(--fg); }

/* Ohne JS und bei Reduced Motion */
html:not(.js) .track-fill, .reduced .track-fill { transform: none; }
html:not(.js) .track-dot, .reduced .track-dot { background: var(--sky-2); border-color: var(--sky-3); }
.reduced .hero-bar, .reduced .display .line > span, .reduced .hero-sub, .reduced .hero-actions, .reduced .hero-foot { animation: none; }
.reduced .hero-pulse { display: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Hero-Hintergrund */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-canvas, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-video { object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.hero-canvas { opacity: 1; transition: opacity 1.4s ease; }
.hero-bg.video-on .hero-canvas { opacity: 0; }
.hero-veil { position: absolute; inset: 0; }
.hero-grid, .hero-foot { position: relative; z-index: 1; }

/* Player: Video sofort sichtbar (Poster), Overlay-Knopf darüber; nativer Controller bleibt */
.player-video { opacity: 1; }
.player-btn { pointer-events: auto; }
.player.playing .player-btn { display: none; }
.player.ended .player-btn { display: flex; }
.hero-video { opacity: 0; }
.hero-video.on { opacity: .85; }

/* Wort für Wort beim Scrollen */
.js .last-line .w { color: rgba(201,214,234,.22); transition: color .25s; }
.js .last-line .w.on { color: var(--nebel); }
.js .last-line.strong .w.on { color: #fff; }
.reduced .last-line .w { color: inherit; }

/* Aufgaben */
.tasks { padding-top: clamp(80px, 12vh, 140px); padding-bottom: clamp(80px, 12vh, 140px); }
.tasks .lede { margin-top: 12px; }
.task-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.task-list li { padding: 12px 18px; border-radius: 999px; border: 1px solid rgba(201,214,234,.3); font-weight: 500; font-size: 1.05rem; }

/* Player: vor dem Start keine Systemsteuerung (iOS zeigt sonst den Pause-Knopf über dem Poster) */
.player-video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.player-video::-webkit-media-controls-overlay-play-button { display: none !important; }

/* Eigener Player: keine Systemsteuerung, Steuerleiste nur nach Tipp, blendet nach 2,5 s aus */
.player-video::-webkit-media-controls { display: none !important; }
.player-video::-webkit-media-controls-enclosure { display: none !important; }
.player-ui { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(180deg, rgba(10,20,40,0), rgba(10,20,40,.75)); color: #fff; opacity: 0; transition: opacity .25s; }
.player.show-ui .player-ui { opacity: 1; }
.player-ui[hidden] { display: none; }
.player-ui button { background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; display: grid; place-items: center; }
.player-ui svg { width: 22px; height: 22px; fill: #fff; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pui-toggle svg path, .pui-play path, .pui-pause path { stroke: none; }
.pui-full svg, .pui-mute svg { fill: none; }
.pui-mute svg path:first-child { fill: #fff; stroke: none; }
.player.paused .pui-pause { display: none; } .player:not(.paused) .pui-play { display: none; }
.player.muted .pui-wave { display: none; }
.pui-bar { flex: 1; height: 24px; display: flex; align-items: center; cursor: pointer; }
.pui-bar::before { content: ""; position: absolute; left: 0; right: 0; height: 3px; background: rgba(255,255,255,.25); border-radius: 2px; }
.pui-bar { position: relative; }
.pui-fill { position: absolute; left: 0; height: 3px; width: 0; background: var(--grad); border-radius: 2px; }
.pui-time { font-size: .85rem; font-variant-numeric: tabular-nums; min-width: 3.5em; text-align: right; }
.player.playing { cursor: pointer; }
/* film switcher: one stage, three films; tabs as cards, a swipeable row on small screens */
.filme-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.filme-tab { display: grid; grid-template-columns: 132px 1fr; grid-template-rows: 1fr 1fr; column-gap: 14px; align-items: center; text-align: left; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10); color: #fff; font: inherit; cursor: pointer; transition: border-color .2s, background .2s; }
.filme-tab img { grid-row: 1 / 3; width: 132px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; display: block; }
.filme-tab-t { font-weight: 600; align-self: end; line-height: 1.25; }
.filme-tab-d { color: var(--nebel); font-size: .85rem; align-self: start; }
.filme-tab:hover { border-color: rgba(26,157,245,.6); }
.filme-tab.is-active { border-color: #1A9DF5; background: rgba(26,157,245,.14); }
.filme-tab:focus-visible { outline: 3px solid #1CD3F7; outline-offset: 2px; }
@media (max-width: 860px) {
  .filme-tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .filme-tab { flex: 0 0 78%; scroll-snap-align: start; }
}
@media (max-width: 640px) { .filme .vplayer { border-radius: 8px; margin-left: calc(-1 * var(--gx) + 12px); margin-right: calc(-1 * var(--gx) + 12px); } .filme-tab { grid-template-columns: 104px 1fr; } .filme-tab img { width: 104px; } }
@media (min-width: 1100px) {
  .filme { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr); gap: 20px; align-items: stretch; margin-top: 32px; }
  .filme .vplayer { margin-top: 0; align-self: start; }
  .filme-tabs { grid-template-columns: 1fr; grid-auto-rows: 1fr; margin-top: 0; gap: 12px; height: 0; min-height: 100%; }  /* row height comes from the 16:9 player */
  .filme-tab { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto auto; row-gap: 2px; padding: 10px 10px 12px; min-height: 0; overflow: hidden; }
  .filme-tab img { grid-row: auto; width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; margin-bottom: 6px; }
  .filme-tab-t, .filme-tab-d { align-self: start; }
}
