.hero.hero--film{
  --film-blende: 1200ms;
  --film-schleier: 8, 30, 28;
  --film-live: #4ade80;
  position: relative;
  padding: 0;
  display: flex;
  align-items: flex-end;

  min-height: clamp(600px, calc(100svh - 120px), 860px);
  background: var(--petrol-druck);
  box-shadow: 0 0 0 100vmax var(--petrol-druck);
}

.hero--film > .film-bild{
  position: absolute;
  z-index: 0;
  top: 0; bottom: 0;
  left: calc(50% - 50vw); right: calc(50% - 50vw);
  overflow: hidden;
}
.film-bild img,
.film-bild video{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.film-standbild{ transition: opacity .6s; }

.film-standbild img{ transform: scale(1.06); }
.film-standbild.ist-weg{ opacity: 0; }
.film-bild video{
  opacity: 0;

  --sx: 1; --z: 1; --dx: 0%;
  transform: scaleX(var(--sx)) scale(calc(var(--z) * 1.06)) translateX(var(--dx));
  transition: opacity var(--film-blende) ease,
              transform var(--film-dauer, 10s) linear;
}
.film-bild video.ist-an{
  opacity: 1;
  transform: scaleX(var(--sx)) scale(var(--z)) translateX(var(--dx));
}

.film-bild::before,
.film-bild::after{ content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; }

.film-bild::before{ background: var(--petrol); mix-blend-mode: color; opacity: .28; }
.film-bild::after{
  background:

    linear-gradient(90deg, rgba(var(--film-schleier), .92) 0%, rgba(var(--film-schleier), .8) 40%, rgba(var(--film-schleier), .45) 58%, rgba(var(--film-schleier), 0) 78%),
    linear-gradient(0deg,  rgba(var(--film-schleier), .75) 0%, rgba(var(--film-schleier), 0) 34%);
}

.hero--film .film-inner{
  position: relative; z-index: 2;
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 48px;
  padding: 112px 0 104px;
}
.hero--film .hero-copy{ max-width: 860px; }
.hero--film h1.film-titel{
  margin: 0 0 22px;
  max-width: none;

  font-size: clamp(40px, 4.7vw, 64px);
  line-height: 1;
  letter-spacing: -.035em;

  min-height: 2.12em;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.film-z{ display: block; overflow: hidden; padding-bottom: .06em; }
.film-z > span{
  display: block;
  transition: transform .9s cubic-bezier(.2, .8, .2, 1);
}
.film-z + .film-z > span{ transition-delay: .12s; }
.film-titel.ist-weg .film-z > span{
  transform: translateY(-105%);
  transition-duration: .45s; transition-delay: 0s;
}
.film-titel.ist-unten .film-z > span{ transform: translateY(105%); transition: none; }

.hero--film .hero-lead.film-unter{
  color: rgba(255, 255, 255, .86);
  max-width: 560px;
  min-height: 3.2em;
  margin-bottom: 30px;
  transition: opacity .5s .3s;
}
.film-unter.ist-weg{ opacity: 0; transition-delay: 0s; transition-duration: .25s; }

.hero--film .eyebrow{
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 22px; padding: 7px 12px 7px 10px;
  border-radius: 999px;
  background: rgba(9, 24, 22, .55);
  border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .9);
  font-size: 12.5px; letter-spacing: .1em;
}
.hero--film .eyebrow::before{
  width: 7px; height: 7px; border-radius: 50%; margin: 0;
  background: var(--film-live);
  animation: film-puls 1.8s infinite;
}
@keyframes film-puls{
  0%{ box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); }
  70%{ box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100%{ box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.hero--film .hero-trust{ margin-top: 22px; gap: 8px; align-items: flex-start; }
.hero--film .hero-trust li{
  padding: 0 10px; height: 32px; display: inline-flex; align-items: center;
  font-size: 9.5px; letter-spacing: .08em;
  border-color: rgba(255, 255, 255, .22);
}
.hero--film .hero-trust li .ht-flagge{ width: 16px; height: auto; }
.hero--film .hero-trust li.ht-badge{ padding: 0; height: 32px; }
.hero--film .hero-trust li.ht-badge img{ height: 32px; width: auto; }
@media (max-width: 820px){

  .hero--film .hero-trust li.ht-badge,
  .hero--film .hero-trust li.ht-badge img{ height: 32px; }

  .hero--film .hero-trust li.ht-badge{ order: -1; }
}

.hero--film > .film-hud{
  position: absolute; z-index: 1; pointer-events: none;
  top: 0; bottom: 0;
  left: calc(50% - 50vw); right: calc(50% - 50vw);

  --glas: rgba(9, 24, 22, .86);
  --glas-rand: rgba(255, 255, 255, .16);
}
.fh-linie{ position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fh-linie path{
  fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1; stroke-dasharray: 3 4;
  opacity: 0; transition: opacity .4s;
}
.film-hud.ist-an .fh-linie path{ opacity: 1; animation: film-strom 1.2s linear infinite; }
@keyframes film-strom{ to{ stroke-dashoffset: -14; } }

.fh-marke{
  position: absolute; width: 86px; height: 86px;
  transform: translate(-50%, -50%) scale(1.25); opacity: 0;
  transition: opacity .35s, transform .6s cubic-bezier(.2, .8, .2, 1);
}
.film-hud.ist-an .fh-marke{
  opacity: 1; transform: translate(-50%, -50%) scale(1);
  animation: film-schweben 6s ease-in-out infinite alternate;
}
@keyframes film-schweben{ to{ margin-left: 6px; margin-top: -4px; } }
.fh-marke::before, .fh-marke::after,
.fh-marke b::before, .fh-marke b::after{
  content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid var(--paper);
}
.fh-marke::before{ left: 0; top: 0; border-right: 0; border-bottom: 0; }
.fh-marke::after{ right: 0; top: 0; border-left: 0; border-bottom: 0; }
.fh-marke b::before{ left: 0; bottom: 0; border-right: 0; border-top: 0; }
.fh-marke b::after{ right: 0; bottom: 0; border-left: 0; border-top: 0; }
.fh-marke i{
  position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px;
  border-radius: 50%; background: var(--film-live); box-shadow: 0 0 0 4px rgba(74, 222, 128, .25);
}
.fh-marke em{
  position: absolute; left: calc(100% + 8px); top: -2px; white-space: nowrap;
  font: 600 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; font-style: normal;
  color: var(--paper); background: rgba(9, 24, 22, .7); border: 1px solid var(--glas-rand);
  padding: 6px 8px; border-radius: 4px;
}
.fh-marke.fh-links em{ left: auto; right: calc(100% + 8px); }
.fh-marke.fh-oben em{ left: 0; top: auto; bottom: calc(100% + 8px); }
.fh-marke.fh-aus{ display: none; }
.fh-marke em::before{
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--film-live); margin-right: 7px; vertical-align: 1px;
}

.fh-panel{
  position: absolute; bottom: 96px; width: 360px;
  right: max(24px, calc((100vw - var(--max)) / 2 + 24px));
  color: var(--paper);
  background: var(--glas); border: 1px solid var(--glas-rand); border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
  opacity: 0; transform: translateY(12px);
  transition: opacity .45s, transform .6s cubic-bezier(.2, .8, .2, 1);
}
.film-hud.ist-an .fh-panel{ opacity: 1; transform: none; }
.fh-panel p{ margin: 0; color: inherit; }
.fh-kopf{ display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.fh-av{ width: 28px; height: 28px; border-radius: 7px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; }
.fh-av img{ width: 18px; height: auto; margin-top: 7px; }
.fh-av--logo{ background: var(--paper); }
.fh-av--logo img{ margin: 0; }
.fh-name{ font-weight: 600; font-size: 13.5px; line-height: 1.25; }
.fh-name small{ display: block; font: 500 11px/1.3 var(--font-mono); color: rgba(255, 255, 255, .55); }
.fh-live{
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font: 600 10.5px/1 var(--font-mono); letter-spacing: .08em; color: var(--film-live);
  border: 1px solid rgba(74, 222, 128, .35); background: rgba(74, 222, 128, .08);
  padding: 5px 7px; border-radius: 4px;
}
.fh-live i{ width: 6px; height: 6px; border-radius: 50%; background: var(--film-live); animation: film-blink 1.2s infinite; }
@keyframes film-blink{ 50%{ opacity: .25; } }
.fh-uhr{ font: 500 11px var(--font-mono); color: rgba(255, 255, 255, .55); }

.fh-body{ padding: 12px 14px 6px; }
.fh-welle{ display: flex; align-items: center; gap: 2px; height: 18px; margin: 0 0 10px; }
.fh-welle span{ width: 3px; height: 30%; border-radius: 2px; background: rgba(255, 255, 255, .55); animation: film-welle 1s ease-in-out infinite alternate; }
@keyframes film-welle{ to{ height: 100%; } }
.fh-panel .fh-zug{ font-size: 13.5px; line-height: 1.45; margin: 0 0 8px; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.fh-zug.ist-an{ opacity: 1; transform: none; }
.fh-zug b{ display: block; font: 600 10.5px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.fh-zug.fh-noa b{ color: var(--film-live); }
.fh-zug .fh-t::after{ content: "▍"; opacity: .7; animation: film-blink .8s infinite; }
.fh-zug.ist-fertig .fh-t::after{ content: ""; }
.fh-chips{ display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.fh-chip{
  font: 600 11px/1 var(--font-mono); color: #dff5ea;
  background: rgba(74, 222, 128, .1); border: 1px solid rgba(74, 222, 128, .28);
  padding: 6px 8px; border-radius: 4px;
  opacity: 0; transform: scale(.9); transition: opacity .25s, transform .35s cubic-bezier(.2, .8, .2, 1);
}
.fh-chip.ist-an{ opacity: 1; transform: none; }
.fh-feld{
  display: grid; grid-template-columns: 104px 1fr; gap: 8px; padding: 7px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .1); font-size: 13px;
  opacity: 0; transition: opacity .3s;
}
.fh-feld.ist-an{ opacity: 1; }
.fh-feld span{ font: 500 11px/1.5 var(--font-mono); color: rgba(255, 255, 255, .5); text-transform: uppercase; letter-spacing: .04em; }
.fh-feld strong{ font-weight: 500; }
.fh-feld mark{ background: rgba(74, 222, 128, .18); color: inherit; border-radius: 3px; padding: 0 3px; transition: background 1.2s; }
.fh-feld.ist-alt mark{ background: transparent; }
.fh-aktion{
  display: flex; align-items: center; gap: 10px; padding: 9px 14px;
  border-top: 1px solid rgba(255, 255, 255, .07); font-size: 13px; line-height: 1.3;
  opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .4s cubic-bezier(.2, .8, .2, 1);
}
.fh-aktion.ist-an{ opacity: 1; transform: none; }
.fh-logo{ width: 24px; height: 24px; border-radius: 6px; background: var(--paper); display: grid; place-items: center; flex: 0 0 auto; }
.fh-logo img{ width: 16px; height: 16px; object-fit: contain; }
.fh-was{ flex: 1; }
.fh-was small{ display: block; font: 500 11px/1.3 var(--font-mono); color: rgba(255, 255, 255, .5); }
.fh-haken{
  width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .3);
  display: grid; place-items: center; flex: 0 0 auto; transition: all .3s;
}
.fh-haken svg{ width: 10px; height: 10px; opacity: 0; transition: opacity .2s; }
.fh-lade{ width: 12px; height: 12px; border: 1.5px solid rgba(255, 255, 255, .3); border-top-color: var(--paper); border-radius: 50%; animation: film-dreh .7s linear infinite; }
@keyframes film-dreh{ to{ transform: rotate(360deg); } }
.fh-aktion.ist-ok .fh-haken{ background: var(--film-live); border-color: var(--film-live); }
.fh-aktion.ist-ok .fh-haken svg{ opacity: 1; }
.fh-aktion.ist-ok .fh-lade{ display: none; }

.film-leiste{
  position: absolute; z-index: 3;
  left: 0; right: 0; bottom: 28px;
  display: flex; gap: 8px; align-items: center;
}
.film-seg{
  flex: 1; height: 30px; padding: 0;
  background: none; border: 0; cursor: pointer; position: relative;
}
.film-seg::before,
.film-seg i{
  content: ""; position: absolute; left: 0; right: 0; top: 14px;
  height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .25);
}
.film-seg i{ background: var(--paper); transform-origin: left; transform: scaleX(0); }
.film-seg.ist-fertig i{ transform: scaleX(1); }
.film-seg.ist-dran i{ animation: film-fuellen var(--film-seg, 9s) linear forwards; }
.film-leiste.ist-pause .film-seg.ist-dran i{ animation-play-state: paused; }
@keyframes film-fuellen{ to{ transform: scaleX(1); } }
.film-seg:focus-visible,
.film-pp:focus-visible{ outline: 2px solid var(--paper); outline-offset: 2px; }
.film-pp{
  flex: 0 0 auto; width: 36px; height: 36px; margin-left: 8px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .08); color: var(--paper);
  cursor: pointer; display: grid; place-items: center;
}
.film-pp svg{ width: 14px; height: 14px; }

@media (max-width: 820px){
  .hero.hero--film{ min-height: calc(100svh - 64px); margin-top: 0; }
  .film-bild::after{
    background:
      linear-gradient(0deg, rgba(var(--film-schleier), .95) 0%, rgba(var(--film-schleier), .72) 48%, rgba(var(--film-schleier), 0) 78%);
  }

  .film-bild video{ --z: 1 !important; --dx: 0% !important; }

  .hero--film .film-inner{
    position: static;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 150px 0 72px;
  }
  .hero--film .hero-copy{ position: relative; z-index: 2; }

  .hero--film h1.film-titel{ font-size: clamp(36px, 10.4vw, 52px); margin-bottom: 14px; min-height: 0; }
  .hero--film .hero-lead.film-unter{ font-size: 16px; min-height: 4.8em; margin-bottom: 0; }

  .fh-marke, .fh-linie{ display: none; }
  .fh-panel{ top: 16px; bottom: auto; left: 16px; right: 16px; width: auto; }
  .fh-body{ padding: 0 14px; }

  .fh-welle, .fh-zug, .fh-chips, .fh-feld:nth-child(n+2){ display: none; }
  .fh-aktion + .fh-aktion{ display: none; }
  .hero--film .eyebrow{ font-size: 10.5px; letter-spacing: .06em; margin-bottom: 16px;
    margin-top: var(--film-luecke, 0px); transition: margin-top .45s ease; }

  .film-leiste{ bottom: 18px; right: 72px; }
}

@media (prefers-reduced-motion: reduce){
  .film-bild video{ transition: opacity .01s; transform: scaleX(var(--sx)) !important; }
  .film-z > span, .film-unter{ transition: none !important; }
  .film-hud *, .hero--film .eyebrow::before{ animation: none !important; }
}

.hero--film .hero-cta-primary{ border: 1.5px solid var(--paper); }

body:has(.hero--film) .wg-knopf{ width: 52px; height: 52px; padding: 0; justify-content: center; gap: 0; }
body:has(.hero--film) .wg-text{ display: none; }

@media (min-width: 821px){
  .film-leiste{ right: max(0px, calc(88px - (100vw - 100%) / 2)); }
}

@media (max-width: 767px){
  .hero--film .fh-panel{ display: none; }
}

@media (max-width: 767px){

  .hero.hero--film .hero-trust{
    display: grid !important;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px; row-gap: 3px;
    align-items: center; margin-top: 20px;
  }
  .hero.hero--film .hero-trust li.ht-badge{ grid-column: 1; grid-row: 1 / span 2; height: 36px; }
  .hero.hero--film .hero-trust li.ht-badge img{ height: 36px; width: auto; }
  .hero.hero--film .hero-trust li.ht-de{ grid-column: 2; grid-row: 1; }
  .hero.hero--film .hero-trust li.ht-privacy{ grid-column: 2; grid-row: 2; }

  .hero.hero--film .hero-trust li.ht-de,
  .hero.hero--film .hero-trust li.ht-privacy{
    display: inline-flex; align-items: center; gap: 7px !important;
    height: auto; padding: 0 !important;
    border: 0 !important; background: none !important;
    font-family: var(--font-body); font-size: 12.5px !important; line-height: 1.3;
    letter-spacing: 0; text-transform: none;
    color: rgba(255, 255, 255, .72) !important;
  }
  .hero.hero--film .hero-trust li.ht-de *,
  .hero.hero--film .hero-trust li.ht-privacy *{
    font-size: inherit !important; color: inherit !important;
  }
  .hero.hero--film .hero-trust li.ht-de .ht-flagge{ width: 15px !important; height: 10px !important; }
  .hero.hero--film .hero-trust li.ht-privacy svg{ display: inline-block; width: 15px; height: 13px; }

  .hero--film .eyebrow{
    background: none; border: 0; border-radius: 0; padding: 0;
    color: rgba(255, 255, 255, .72);
  }
  .hero--film .eyebrow::before{ display: none; }

  body:has(.hero--film) .wg{ display: none; }
  .film-leiste{ right: 0; }
}
