/* Türchen öffnen: Klappe schwingt auf, innen startet die Rakete, dann kommt das Popup. */
body.stg-advent .stg-adv .tueren.adv-js .tuer.offen > a { perspective: 800px; }
body.stg-advent .stg-adv .tueren.adv-js .tuer.offen .klappe { animation: none; visibility: visible; transform: rotateY(0); z-index: 5; background: #CC0028; border: 2px solid #fff; border-radius: 22px; transition: transform .9s cubic-bezier(.2,.7,.2,1), visibility 0s linear .9s; }
body.stg-advent .stg-adv .tueren.adv-js .tuer.offen .klappe b::after { content: ''; position: absolute; right: .7rem; top: 50%; width: .55rem; height: .55rem; border-radius: 50%; background: #fff; }
body.stg-advent .stg-adv .tueren.adv-js .tuer.offen.auf .klappe { transform: rotateY(-112deg); visibility: hidden; }
.adv-innen { position: absolute; inset: 0; z-index: 4; display: block; background: #0F0A0C; border-radius: inherit; pointer-events: none; animation: adv-innen-weg .45s ease 1.35s forwards; }
.adv-innen svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.adv-innen .rakete { animation: adv-start 1.15s cubic-bezier(.55,0,.75,.4) .35s both; }
.adv-innen .funken { transform-origin: 50px 62px; animation: adv-funke .9s ease-out .3s both; }
@keyframes adv-start { 0% { transform: translate(0, 0); } 25% { transform: translate(0, 5px); } 100% { transform: translate(0, -140px); } }
@keyframes adv-funke { 0% { transform: scale(.2); opacity: 0; } 35% { opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes adv-innen-weg { to { opacity: 0; visibility: hidden; } }

/* Popup wie bei den Referenzen */
.adv-pop { box-sizing: border-box; width: min(1165px, calc(100vw - 1.5rem)); max-width: none; height: min(760px, calc(100vh - 2rem)); height: min(760px, calc(100dvh - 2rem)); max-height: none; margin: auto; padding: 0; border: 0; border-radius: 22px; background: #fff; color: #1A1215; overflow: hidden; }
.adv-pop::backdrop { background: rgba(10,5,6,.84); }
.adv-pop[open] { animation: adv-pop-auf .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes adv-pop-auf { from { transform: scale(.86) translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.adv-pop-rahmen { box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1rem, 3vw, 2.5rem); height: 100%; padding: clamp(1.25rem, 4vw, 3.5rem); overflow: auto; align-items: center; }
.adv-pop-text { min-width: 0; }
.adv-pop .adv-pop-vor { margin: 0 0 .8rem; color: #CC0028; font: 700 .8rem/1.4 var(--font-display); letter-spacing: .16em; text-transform: uppercase; }
.adv-pop h2 { margin: 0 0 1rem; color: #1A1215; font: 800 clamp(2rem, 4.6vw, 3.6rem)/.98 var(--font-display); text-transform: uppercase; letter-spacing: -.02em; overflow-wrap: break-word; hyphens: manual; }
.adv-pop h2 em { display: block; font-style: normal; color: #CC0028; }
.adv-pop .adv-pop-marke { display: inline-block; margin: 0 0 1rem; padding: .2rem .8rem; border: 1px solid #CC0028; border-radius: 2rem; color: #CC0028; font: 700 .75rem/1.6 var(--font-display); text-transform: uppercase; letter-spacing: .06em; }
.adv-pop .adv-pop-satz { margin: 0 0 1.5rem; max-width: 30rem; line-height: 1.6; }
.adv-pop a.adv-pop-knopf { text-decoration: none !important; margin-bottom: .6rem; }
.adv-pop:focus { outline: none; }
.adv-pop-zu { position: absolute; z-index: 3; top: .9rem; right: .9rem; width: 48px; height: 48px; border: 0; border-radius: 14px; background: #0F0A0C; color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }
.adv-pop-zu svg { width: 20px; height: 20px; }
.adv-pop a:focus-visible, .adv-pop button:focus-visible { outline: 3px solid #CC0028; outline-offset: 3px; }
.adv-pop a.adv-pop-knopf:focus-visible { outline: 3px solid #CC0028; outline-offset: 5px; }
.adv-browser-link { position: absolute; inset: 0; z-index: 2; display: block; border-radius: 14px; }
.adv-browser-link span { position: absolute; right: .5rem; top: .3rem; padding: .05rem .7rem; border-radius: 2rem; border: 1px solid #fff; background: #CC0028; color: #fff; font: 600 .68rem/1.5 var(--font-body, sans-serif); white-space: nowrap; text-decoration: none; transition: transform .25s ease; }
.adv-browser-link:hover span, .adv-browser-link:focus-visible span { transform: translateX(-3px); }
.adv-pop .adv-browser-link:focus-visible { outline-offset: -5px; }
.adv-pop a.adv-browser-link::before, .adv-pop a.adv-browser-link::after { content: none; }
.adv-pop-film { min-width: 0; margin: 0; }
.adv-browser { position: relative; border: 2px solid #0F0A0C; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 10px 10px 0 #CC0028; margin-right: 10px; }
.adv-browser-leiste { display: flex; gap: .35rem; padding: .6rem .8rem; background: #0F0A0C; }
.adv-browser-leiste i { width: .55rem; height: .55rem; border-radius: 50%; border: 1.5px solid #fff; }
.adv-browser-leiste i:first-child { background: #CC0028; border-color: #CC0028; }
.adv-browser-bild { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: #0F0A0C; }
.adv-browser-bild img { display: block; width: 100%; height: auto; }
.adv-browser-bild p { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 1rem; color: #fff; text-align: center; }
.adv-pop-halt { position: absolute; z-index: 3; right: .6rem; bottom: .6rem; padding: .35rem .9rem; border-radius: 2rem; border: 1px solid #fff; background: #0F0A0C; color: #fff; font: 600 .75rem/1.6 var(--font-body, sans-serif); cursor: pointer; }
@media (max-width: 50rem) {
  .adv-pop-rahmen { grid-template-columns: minmax(0, 1fr); align-content: start; padding-top: 4.5rem; }
  .adv-pop-film { order: -1; }
  .adv-browser-bild { aspect-ratio: 16 / 10; }
  .adv-pop h2 { font-size: 1.75rem; margin-bottom: .6rem; }
  .adv-pop .adv-pop-marke { margin-bottom: .6rem; }
  .adv-pop .adv-pop-satz { margin-bottom: 1rem; line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) { .adv-pop[open] { animation: none; } body.stg-advent .stg-adv .tueren.adv-js .tuer.offen .klappe { transition: none; } .adv-innen { display: none; } }
