.regierungsfilm {
  position: absolute; z-index: 8; top: 64px; left: 16px;
  width: min(368px, 34vw); box-sizing: border-box; pointer-events: none;
  background: #e5dcc8; color: #302d26; font: 400 15px/1.28 var(--ui);
  border: 1px solid #77705f; border-radius: 2px; overflow: hidden;
  box-shadow: 0 7px 26px #07101385;
  animation: rf-einblenden 300ms ease-out both;
}
.rf-kopf {
  display: flex; align-items: center; justify-content: space-between;
  height: 32px; padding-left: 13px; color: #e5e2d6; background: #313834;
}
.rf-rubrik { font: 700 11px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; }
.regierungsfilm .rf-schliessen {
  appearance: none; width: 38px; height: 32px; padding: 0; margin: 0;
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
  color: #e5e2d6; font: 400 24px/1 var(--ui); pointer-events: auto;
}
.regierungsfilm .rf-schliessen:hover, .regierungsfilm .rf-schliessen:focus-visible {
  color: white; background: #56615a; outline: 2px solid #f2e5c7; outline-offset: -3px;
}
.rf-rahmen { position: relative; isolation: isolate; margin: 0; aspect-ratio: 2 / 1; overflow: hidden; background: #544e43; }
.rf-bild, .rf-zeichnung, .rf-tafel, .rf-motiv, .rf-licht { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rf-bild { transform: scale(1.025); }
.rf-illustriert .rf-tafel { background-image: var(--rf-tafel); }
.rf-tafel, .rf-motiv { background-size: 100% 200%; background-position: center top; }
[data-einstellung="1"] .rf-tafel { background-position: center bottom; animation: rf-schnitt .55s ease-out; }
.rf-bildtitel {
  position: absolute; inset: auto 0 0; padding: 12px 12px 6px; color: #fff8e8;
  font: 500 12px/1.2 var(--ui); letter-spacing: .025em;
  background: linear-gradient(transparent, #151b19d9); text-shadow: 0 1px 3px #141712;
}
.rf-text { border-top: 2px solid #83745a; padding: 11px 13px 13px; }
.regierungsfilm .rf-name { color: #322e26; font: 500 22px/1.13 var(--display); margin: 0; letter-spacing: -.025em; }
.rf-info { color: #655741; font: 700 13px/1.2 var(--ui); margin: 4px 0 7px; }
.rf-bericht { margin: 0; }
.regierungsfilm[data-art="antritt"] .rf-rahmen { aspect-ratio: 3 / 1; }
.regierungsfilm[data-art="antritt"] .rf-bild { height: 150%; top: -21%; }

/* Die Tür dreht am rechten Band. Draußen zieht der Rauch nur langsam durch den Garten. */
[data-szene="bunker"][data-einstellung="0"] .rf-illustriert .rf-motiv {
  background-image: var(--rf-tafel); clip-path: polygon(58% 20%,79.6% 18%,79.6% 82%,58% 85%);
  transform-origin: 79.6% 50%; animation: rf-tuer .76s ease-in-out both;
}
[data-szene="bunker"][data-einstellung="0"] .rf-licht {
  clip-path: polygon(55% 82%,59% 84%,43% 100%,34% 100%); background: #272821;
  animation: rf-spalt .76s ease-in-out both;
}
[data-szene="bunker"][data-einstellung="1"] .rf-licht {
  background: radial-gradient(ellipse 19% 48% at 53% 40%, #6a665c55, transparent 90%);
  animation: rf-rauch 4.7s linear both;
}
/* In der stillen Datscha wandert der Fensterschatten. Danach glimmt die Skala des Radios. */
[data-szene="datscha"][data-einstellung="0"] .rf-licht {
  background: linear-gradient(113deg, transparent 27%, #272b306b 49%, transparent 69%);
  animation: rf-schatten 4.2s ease-in-out both;
}
[data-szene="datscha"][data-einstellung="1"] .rf-licht {
  background: radial-gradient(ellipse 16% 6% at 65% 68%, #e4a34a55, transparent 85%);
  animation: rf-roehre 3.8s ease-out both;
}
/* Der Dampf löst sich über dem Zug; auf dem leeren Bahnsteig bleibt der Nebel hängen. */
[data-szene="bahnsteig"] .rf-licht {
  background: radial-gradient(ellipse 20% 35% at 80% 31%, #d5d6cc66, transparent 92%);
  animation: rf-dampf 4.3s ease-out both;
}
[data-szene="bahnsteig"][data-einstellung="1"] .rf-licht {
  background: radial-gradient(ellipse 48% 14% at 62% 49%, #dde0d359, transparent 92%);
  animation: rf-nebel 4.8s linear both;
}
[data-szene="amtswechsel"] .rf-licht {
  background: linear-gradient(121deg, #f0d8a314, transparent 32%, #18171322 59%, transparent 82%);
  animation: rf-schatten 5s ease-in-out both;
}
/* Auf dem Deck schwankt der Horizont. Fluss und Atlantik haben einen eigenen, flachen Lichtlauf. */
[data-szene="fjordschiff"][data-einstellung="0"] .rf-bild { animation: rf-deck 4.2s ease-in-out both; }
:is([data-szene="fjordschiff"],[data-szene="richmond"],[data-szene="helena"],[data-szene="kimjongil"],[data-szene="idiamin"])[data-einstellung="1"] .rf-licht,
:is([data-szene="prag"],[data-szene="meiji"],[data-szene="hochiminh"])[data-einstellung="0"] .rf-licht {
  background: repeating-linear-gradient(174deg, transparent 0 13px, #dce0c41a 14px, transparent 16px);
  mask-image: linear-gradient(transparent 63%, #0009 89%, transparent);
  animation: rf-stroemung 4.8s ease-in-out both;
}
:is([data-szene="richmond"],[data-szene="petersenhaus"],[data-szene="helena"],[data-szene="churchill"],[data-szene="nzinga"])[data-einstellung="0"] .rf-licht,
:is([data-szene="bolivar"],[data-szene="meiji"])[data-einstellung="1"] .rf-licht {
  background: linear-gradient(107deg, transparent 23%, #e7c99e26 46%, transparent 58%);
  animation: rf-schatten 4.2s ease-out both;
}
:is([data-szene="petersenhaus"],[data-szene="warmsprings"],[data-szene="churchill"],[data-szene="mandela"],[data-szene="mao"])[data-einstellung="1"] .rf-bild,
[data-szene="kimjongil"][data-einstellung="0"] .rf-bild,
[data-szene="prag"][data-einstellung="1"] .rf-bild {
  animation: rf-annaeherung 4.8s ease-in-out both;
}
/* Frühlingslicht wandert durch die Bäume in Georgia und im Garten des Bonner Kanzleramts. */
:is([data-szene="warmsprings"],[data-szene="bolivar"],[data-szene="mandela"],[data-szene="idiamin"])[data-einstellung="0"] .rf-licht,
:is([data-szene="bonn"],[data-szene="nzinga"],[data-szene="gandhi"],[data-szene="polpot"],[data-szene="hochiminh"])[data-einstellung="1"] .rf-licht {
  background: radial-gradient(ellipse at 82% 12%, #f8e7bc3d, transparent 56%);
  animation: rf-laub 4.4s ease-in-out both;
}
[data-szene="bonn"][data-einstellung="0"] .rf-licht {
  background: linear-gradient(118deg, transparent 42%, #acb1a238 53%, transparent 64%);
  animation: rf-schatten 4.2s ease-in-out both;
}
@keyframes rf-deck { from { transform: scale(1.03) rotate(-.55deg); } 45% { transform: scale(1.03) rotate(.48deg) translateY(.35%); } to { transform: scale(1.03) rotate(-.14deg); } }
@keyframes rf-stroemung { from { transform: translate(-1%,1%) scale(1.04); opacity: .45; } 60% { opacity: .8; } to { transform: translate(2%,-1%) scale(1.04); opacity: .55; } }
@keyframes rf-annaeherung { from { transform: scale(1.025); } to { transform: scale(1.058) translateX(-.45%); } }
@keyframes rf-laub { from { transform: translateX(-2%); opacity: .35; } 58% { opacity: .82; } to { transform: translateX(2%); opacity: .48; } }
@keyframes rf-einblenden { from { opacity: 0; transform: translateY(-3px); } }
@keyframes rf-schnitt { from { filter: brightness(.72); } to { filter: brightness(1); } }
@keyframes rf-tuer { 0%,28% { transform: scaleX(1); } 86%,100% { transform: scaleX(1.155); } }
@keyframes rf-spalt { 0%,28% { opacity: 0; } 86%,100% { opacity: .65; } }
@keyframes rf-rauch { from { transform: translate(-2%,5%); opacity: .25; } to { transform: translate(8%,-8%) scale(1.1); opacity: .9; } }
@keyframes rf-schatten { from { transform: translateX(-23%); opacity: .28; } to { transform: translateX(19%); opacity: .78; } }
@keyframes rf-roehre { from { opacity: 0; } 42% { opacity: .9; } to { opacity: .65; } }
@keyframes rf-dampf { from { transform: translate(3%,8%) scale(.86); opacity: .32; } to { transform: translate(-11%,-9%) scale(1.1); opacity: .85; } }
@keyframes rf-nebel { from { transform: translate(-8%,2%); } to { transform: translate(8%,-2%); } }
@media (max-width: 760px) {
  .regierungsfilm { left: 7px; top: 58px; width: min(310px, calc(100vw - 14px)); font-size: 14px; }
  .rf-kopf { height: 28px; }
  .regierungsfilm .rf-schliessen { height: 28px; }
  .rf-text { padding: 8px 11px 10px; }
  .regierungsfilm .rf-name { font-size: 19px; }
}
@media (max-height: 510px) {
  .regierungsfilm { top: 48px; width: min(284px, 44vw); font-size: 13px; }
  .regierungsfilm .rf-rahmen { aspect-ratio: 3.2 / 1; }
  .regierungsfilm .rf-bild { height: 160%; top: -25%; }
  .rf-info { margin: 3px 0 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .regierungsfilm, .regierungsfilm * { animation: none !important; }
  .regierungsfilm .rf-motiv, .regierungsfilm .rf-licht { display: none; }
}
