/* =========================================================
   PHISHFLAG – 1ST-PERSON INTRO CUTSCENE
   ========================================================= */

#cutscene-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #090d16;
    z-index: 9999;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: opacity 0.9s ease;
}

#cutscene-flash {
    position: absolute;
    inset: 0;
    background: #ffffff;
    opacity: 0;
    pointer-events: none;
    z-index: 250;
    transition: opacity 0.35s ease;
}

.fp-vignette {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 130px rgba(0, 0, 0, 0.68);
    pointer-events: none;
    z-index: 90;
}

.cutscene-nav {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 400;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    pointer-events: none;
}

.cutscene-nav-btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    background: rgba(15, 23, 42, 0.88);
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
}

.cutscene-nav-skip {
    background: #e09b00;
    color: #082f49;
    border-color: #e09b00;
}

.cutscene-scene {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.cutscene-scene.active {
    display: block;
}

/* =========================================================
   SZENE 1: AM SCHREIBTISCH & PC-MONITOR (1ST-PERSON)
   ========================================================= */
#scene-pc {
    --sw: max(100vw, calc(100vh * 1.7917));
    --desk-zoom-scale: 1.24;
    /* Begrenzt durch Breite (max. 88vw) UND Höhe (max. 54vh / 0.58), damit oben & unten Platz bleibt */
    --mon-w: clamp(280px, min(88vw, calc(54vh / 0.58), calc(var(--sw) * 0.36)), 1050px);
    transform-origin: var(--desk-zoom-x, 50%) var(--desk-zoom-y, 50%);
}

#scene-pc.is-mail-zoomed {
    transform: scale(min(var(--desk-zoom-scale), var(--desk-zoom-limit, var(--desk-zoom-scale))));
    transition: transform 1.25s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    #scene-pc.is-mail-zoomed {
        transform: none;
        transition: none;
    }
}

#scene-pc .pc-setup {
    position: absolute !important;
    left: 50% !important; /* Auf schmalen Screens zentrieren, auf Breitbild leicht rechts */
    bottom: clamp(12px, 4vh, calc(var(--sw) * 0.018)) !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    z-index: 6 !important;
}

/* Ab Desktop-Breite (16:9 & 21:9) wieder leicht nach rechts über die Bild-Tastatur schieben */
@media (min-aspect-ratio: 14/10) {
    #scene-pc .pc-setup {
        left: 54.8% !important;
    }
}

#scene-pc .monitor-bezel {
    width: var(--mon-w) !important;
    height: calc(var(--mon-w) * 0.58) !important;
    padding: clamp(6px, 1.5vw, 16px) clamp(6px, 1.5vw, 16px) clamp(12px, 2.2vw, 26px) !important;
    border-radius: clamp(10px, 1.8vw, 20px) !important;
    border-width: clamp(2px, 0.4vw, 4px) !important;
}

/* Zimmerwand hinter dem Monitor */
.room-wall-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/cutscene/szene1_wand.jpg');
    background-size: cover;
    background-position: center;
}

.led-wall-glow {
    position: absolute;
    top: 22%;
    left: 50%;
    transform: translateX(-50%);
    width: 780px;
    height: 360px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(99, 102, 241, 0.08) 55%, transparent 75%);
    pointer-events: none;
}

.wall-shelf {
    position: absolute;
    top: 14%;
    right: 12%;
    width: 190px;
    height: 12px;
    background: #451a03;
    border-radius: 4px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 0 14px 12px 14px;
}

.shelf-book {
    width: 16px;
    height: 46px;
    border-radius: 3px;
}

.shelf-plant {
    font-size: 34px;
    margin-left: auto;
    line-height: 1;
}

.pc-setup {
    position: absolute;
    top: 43%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.monitor-bezel {
    width: 760px;
    max-width: 92vw;
    height: 440px;
    max-height: 59vh;
    background: #111827;
    border: 14px solid #1f2937;
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(56, 189, 248, 0.16);
    overflow: hidden;
    position: relative;
}

.monitor-screen {
    width: 100%;
    height: 100%;
    background: #0f172a;
    position: relative;
    overflow: hidden;
    container-type: size;
    container-name: monitor;
}

#pc-game-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Moderne E-Mail-Benachrichtigung von oben */
.mail-toast {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 86%;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(8px);
    border: 2px solid #38bdf8;
    border-radius: 14px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.7);
    transition: top 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 20;
}

.mail-toast.visible {
    top: 16px;
}

.mail-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    font-size: 18px;
    flex-shrink: 0;
}

.mail-toast-info {
    flex: 1;
    min-width: 0;
}

.mail-toast-top {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 2px;
}

.mail-toast-top strong {
    color: #ffffff;
    font-size: 15px;
}

.mail-toast-subj {
    font-size: 14px;
    font-weight: 700;
    color: #fde047;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mail-toast-open {
    background: #38bdf8;
    color: #0f172a;
    border: none;
    padding: 9px 16px;
    border-radius: 9px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 3px 0 #0284c7;
}

.mail-toast-open:active {
    transform: translateY(3px);
    box-shadow: none;
}

/* Sauberes Vollbild-Webmail-Fenster */
.fullscreen-email {
    position: absolute;
    inset: 0;
    background: #ffffff;
    color: #1e293b;
    display: none;
    flex-direction: column;
    z-index: 30;
    animation: popScale 0.25s ease-out;
}

.fullscreen-email.open {
    display: flex;
}

.email-client-topbar {
    background: #0f172a;
    color: #e2e8f0;
    padding: 8px 16px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.window-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot-red, .dot-yellow, .dot-green {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #22c55e; }

.client-title {
    margin-left: 8px;
    font-weight: 600;
    color: #94a3b8;
}

.urgency-badge {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid #ef4444;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.email-client-layout {
    display: flex;
    flex: 1;
    min-height: 0;
}

.email-sidebar {
    width: 155px;
    background: #f1f5f9;
    border-right: 1px solid #e2e8f0;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.sidebar-item {
    padding: 8px 10px;
    border-radius: 8px;
    color: #475569;
    font-weight: 600;
}

.sidebar-item.active {
    background: #dbeafe;
    color: #1d4ed8;
}

.email-main-pane {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.email-subject-line {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.email-sender-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
}

.sender-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ec4899;
    color: #ffffff;
    font-weight: 800;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fake-addr {
    color: #dc2626;
    font-family: monospace;
    font-size: 12px;
}

.email-to-line {
    color: #64748b;
    font-size: 12px;
}

.email-message-content {
    font-size: 14px;
    line-height: 1.45;
    color: #334155;
    margin: 8px 0;
}

.email-message-content p {
    margin: 6px 0;
}

/* WICHTIG: Menschlicher Spieler kann diesen Button NICHT drücken! */
.scam-cta-btn {
    pointer-events: none;
    width: 100%;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: #ffffff;
    border: none;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 900;
    border-radius: 12px;
    box-shadow: 0 5px 0 #9a3412;
    transition: transform 0.12s ease, background 0.15s ease;
}

.scam-cta-btn.clicked {
    transform: translateY(5px);
    box-shadow: none;
    background: #16a34a;
}

/* Cutscene-Mauszeiger (zuverlässige Bewegung via Web Animations API / JS) */
#dramatic-cursor {
    position: absolute;
    top: 14%;
    left: 10%;
    width: clamp(16px, 4.2cqw, 28px);
    height: clamp(16px, 4.2cqw, 28px);
    z-index: 60;
    pointer-events: none;
    display: none;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
    will-change: left, top;
}

.monitor-neck {
    width: 90px;
    height: 42px;
    background: linear-gradient(180deg, #374151, #1f2937);
}

.monitor-foot {
    width: 220px;
    height: 12px;
    background: #111827;
    border-radius: 8px;
}

/* Schreibtischplatte */
.realistic-desk {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 24%;
    background: linear-gradient(180deg, #78350f 0%, #5c280a 45%, #3b1805 100%);
    border-top: 6px solid #92400e;
    z-index: 5;
}

.desk-keyboard {
    position: absolute;
    top: 16px;
    left: 46%;
    transform: translateX(-50%) perspective(280px) rotateX(28deg);
    width: 310px;
    height: 74px;
    background: #1e293b;
    border: 3px solid #334155;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.kb-keys {
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(90deg, #334155 0 18px, #0f172a 18px 22px),
                      repeating-linear-gradient(0deg, #334155 0 12px, #0f172a 12px 16px);
    opacity: 0.7;
}

.desk-mousepad {
    position: absolute;
    top: 20px;
    left: 63%;
    width: 115px;
    height: 84px;
    background: #0f172a;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.desk-mouse {
    width: 34px;
    height: 54px;
    background: #334155;
    border-radius: 16px;
    border: 2px solid #38bdf8;
}

/* =========================================================
   SZENE 2: DEIN ZIMMER (KOFFER AM BODEN + VEKTOR-GEGENSTÄNDE)
   ========================================================= */
#scene-bedroom {
    background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 64%, #78350f 64%, #451a03 100%);
}

.bedroom-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/zimmer.webp');
    background-size: cover;
    background-position: center;
}

.bed-furniture {
    position: absolute;
    bottom: 32%;
    left: 8%;
    width: 34%;
    height: 24%;
    background: #3b82f6;
    border: 5px solid #1e3a8a;
    border-radius: 16px;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.35);
}

.bed-pillow {
    position: absolute;
    top: 14%;
    left: 6%;
    width: 28%;
    height: 45%;
    background: #f8fafc;
    border-radius: 10px;
    border: 3px solid #cbd5e1;
}

.bed-blanket {
    position: absolute;
    top: 0;
    right: 0;
    width: 62%;
    height: 100%;
    background: #2563eb;
    border-left: 4px solid #1d4ed8;
    border-radius: 0 10px 10px 0;
}

.side-desk-furniture {
    position: absolute;
    bottom: 32%;
    right: 8%;
    width: 26%;
    height: 22%;
    background: #92400e;
    border-top: 8px solid #b45309;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.35);
}

.side-desk-monitor {
    position: absolute;
    top: -65px;
    left: 25%;
    width: 95px;
    height: 58px;
    background: #1e293b;
    border: 4px solid #0f172a;
    border-radius: 6px;
}

.room-prop {
    position: absolute;
    background: rgba(255, 255, 255, 0.92);
    border: 3px solid #0f172a;
    border-radius: 16px;
    padding: 8px 10px;
    cursor: pointer;
    z-index: 25;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.room-prop:hover:not(.packed) {
    transform: scale(1.14) translateY(-5px);
}

.room-prop.packed {
    top: 72% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.2) rotate(22deg);
    opacity: 0;
    pointer-events: none;
}

.floor-suitcase {
    position: absolute;
    bottom: 18%;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 130px;
    z-index: 15;
}

.suitcase-lid {
    width: 260px;
    height: 58px;
    background: #b91c1c;
    border: 5px solid #450a0a;
    border-radius: 16px 16px 0 0;
    transform: perspective(220px) rotateX(28deg);
    transform-origin: bottom;
}

.suitcase-base {
    width: 260px;
    height: 78px;
    background: #dc2626;
    border: 5px solid #450a0a;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 14px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.suitcase-inner-tray {
    width: 224px;
    height: 52px;
    background: #fef3c7;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.suitcase-inner-tray svg {
    width: 34px;
    height: 34px;
}

/* =========================================================
   SZENE 3: PASSAGIERFLUGZEUG (NAHAUFNAHME SITZ -> FENSTER)
   ========================================================= */
#scene-plane {
    background: #0f172a;
    overflow: hidden;
}

.plane-panorama {
    display: flex;
    width: 200vw;
    height: 100vh;
    transform: translateX(0vw);
    transition: transform 2.8s cubic-bezier(0.22, 1, 0.36, 1);
    animation: airlinerHum 2.4s ease-in-out infinite alternate;
}

.plane-panorama.turn-head-right {
    transform: translateX(-100vw);
}

/* Links: Nahaufnahme des Flugzeugsitzes direkt vor dir */
.cabin-forward-view {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(180deg, #475569 0%, #334155 30%, #1e293b 100%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
}

.cabin-overhead-panel {
    position: absolute;
    top: 0;
    width: 520px;
    max-width: 85vw;
    height: 54px;
    background: #cbd5e1;
    border-bottom: 5px solid #94a3b8;
    border-radius: 0 0 24px 24px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.air-vent {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 4px solid #64748b;
    background: #334155;
}

.reading-light {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fef08a;
    box-shadow: 0 0 18px #fde047;
}

.seatbelt-sign {
    background: #0f172a;
    color: #f87171;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
}

/* Großer Vordersitz in Nahaufnahme */
.closeup-seatback {
    width: 680px;
    max-width: 90vw;
    height: 86vh;
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 38%, #1e3a8a 100%);
    border-radius: 95px 95px 0 0;
    border: 12px solid #0f172a;
    border-bottom: none;
    box-shadow: 0 -10px 45px rgba(0, 0, 0, 0.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 28px;
    gap: 24px;
}

.seat-headrest {
    width: 320px;
    height: 115px;
    background: #1e40af;
    border: 5px solid #172554;
    border-radius: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.headrest-napkin {
    width: 210px;
    height: 75px;
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.seat-upper-trim {
    width: 82%;
    height: 10px;
    background: #0f172a;
    border-radius: 5px;
}

.seat-tray-table {
    width: 470px;
    max-width: 84%;
    height: 245px;
    background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%);
    border: 6px solid #64748b;
    border-radius: 18px;
    display: flex;
    justify-content: center;
    box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.7);
}

.tray-turn-latch {
    width: 58px;
    height: 22px;
    background: #334155;
    border-radius: 8px;
    margin-top: 10px;
}

.seat-literature-pocket {
    width: 450px;
    max-width: 82%;
    height: 145px;
    background: #172554;
    border-top: 6px solid #60a5fa;
    border-radius: 0 0 22px 22px;
    position: relative;
}

.safety-leaflet {
    position: absolute;
    top: -26px;
    right: 45px;
    background: #facc15;
    color: #0f172a;
    font-weight: 900;
    font-size: 13px;
    padding: 12px 18px;
    border-radius: 6px;
    transform: rotate(7deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.inflight-mag {
    position: absolute;
    top: -20px;
    left: 55px;
    background: #38bdf8;
    color: #0f172a;
    font-weight: 900;
    font-size: 13px;
    padding: 10px 18px;
    border-radius: 6px;
    transform: rotate(-5deg);
}

.side-cabin-edge {
    position: absolute;
    right: 0;
    top: 12%;
    width: 45px;
    height: 62%;
    background: #e2e8f0;
    border-radius: 40px 0 0 40px;
    border-left: 8px solid #94a3b8;
}

/* Rechts: Großes Flugzeugfenster in Nahaufnahme mit Tragfläche */
.cabin-window-view {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 55%, #94a3b8 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.cabin-interior-panel {
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(90deg, transparent 0 48%, rgba(100, 116, 139, 0.18) 48% 50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.window-recess-outer {
    width: 450px;
    height: 550px;
    max-width: 86vw;
    max-height: 72vh;
    margin-bottom: 55px;
    border-radius: 195px;
    background: linear-gradient(145deg, #f8fafc, #cbd5e1);
    padding: 26px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), inset 0 6px 14px rgba(255, 255, 255, 0.9);
}

.window-glass-pane {
    width: 100%;
    height: 100%;
    border-radius: 170px;
    overflow: hidden;
    position: relative;
    border: 8px solid #64748b;
    box-shadow: inset 0 18px 35px rgba(0, 0, 0, 0.55);
}

.high-altitude-ocean {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 55%, #0284c7 0%, #0369a1 58%, #0c4a6e 100%);
    position: relative;
}

.aerial-island {
    position: absolute;
    top: 46%;
    left: 52%;
    transform: translate(-50%, -50%) scale(0.75);
    transition: transform 5.5s ease-out;
}

.aerial-island.zoom-in {
    transform: translate(-50%, -50%) scale(1.22);
}

.aerial-lagoon {
    width: 210px;
    height: 145px;
    background: rgba(56, 189, 248, 0.55);
    border-radius: 48% 52% 60% 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.aerial-sand {
    width: 172px;
    height: 116px;
    background: #fde047;
    border-radius: 48% 52% 60% 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.aerial-forest {
    width: 138px;
    height: 88px;
    background: #65a30d;
    border-radius: 48% 52% 60% 40%;
}

.airplane-wing-view {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 12;
    pointer-events: none;
}

.cloud-layer-back, .cloud-layer-front {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50px;
}

.cloud-layer-back {
    width: 130px;
    height: 36px;
    top: 20%;
    animation: cloudGlide 8s linear infinite;
}

.cloud-layer-front {
    width: 165px;
    height: 44px;
    top: 66%;
    opacity: 0.72;
    z-index: 15;
    animation: cloudGlide 5.2s linear infinite;
}

.window-glass-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0) 48%);
    pointer-events: none;
    z-index: 20;
}

/* =========================================================
   SZENE 4: STRAND & HORIZONTALE LANDEBAHN (LINKS -> RECHTS)
   ========================================================= */

/* --- SZENE 4: INSEL-1-STIL (2.5D CARTOON STRAND, KOFFER, LANDEBAHN & JET) --- */
#scene-dropoff {
    overflow: hidden;
    background: #0284c7;
}

.dropoff-panorama {
    position: absolute;
    top: 0;
    left: 0;
    width: 300vw;
    height: 100%;
    display: flex;
    transform: translate3d(0vw, 0, 0);
    transition: transform 1.25s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.dropoff-panorama.look-runway {
    transform: translate3d(-100vw, 0, 0);
}

.dropoff-panorama.look-king {
    transform: translate3d(-200vw, 0, 0);
}

.dropoff-panel,
.dropoff-beach-look,
.dropoff-jet-look,
.dropoff-king-look {
    position: relative;
    width: 100vw;
    height: 100%;
    flex-shrink: 0;
    overflow: hidden;
}

/* --- Himmel, Sonne, Wolken & Horizont-Inseln (abgestimmt auf insel1.webp) --- */
.tropical-sky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 55%;
    background: linear-gradient(180deg, #075985 0%, #0284c7 36%, #38bdf8 74%, #bae6fd 100%);
}

.sky-sun-orb {
    position: absolute;
    top: 8%;
    right: 16%;
    width: clamp(70px, 8vw, 115px);
    height: clamp(70px, 8vw, 115px);
    border-radius: 50%;
    background: radial-gradient(circle, #fef9c3 35%, #fde047 68%, rgba(253, 224, 71, 0) 72%);
    box-shadow: 0 0 65px 25px rgba(254, 240, 138, 0.55);
    pointer-events: none;
}

.cartoon-cloud {
    position: absolute;
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 8px 12px rgba(3, 105, 161, 0.16));
    animation: cloudFloatGentle 28s ease-in-out infinite alternate;
    z-index: 2;
}

.cloud-pos-1 {
    top: 9%;
    left: 11%;
    width: clamp(160px, 17vw, 255px);
}

.cloud-pos-2 {
    top: 16%;
    right: 24%;
    left: auto;
    width: clamp(135px, 13.5vw, 205px);
    animation-delay: -9s;
}

@keyframes cloudFloatGentle {
    0%   { transform: translateX(0px); }
    100% { transform: translateX(28px); }
}

.horizon-islands-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: clamp(44px, 7.5vh, 78px);
    pointer-events: none;
}

/* --- Lebendiges Meer (tiefes Ozeanblau zu türkiser Lagune wie insel1.webp) --- */
.tropical-sea {
    position: absolute;
    top: 55%;
    left: 0;
    width: 100%;
    height: 13%;
    background: linear-gradient(180deg, #0369a1 0%, #0ea5e9 34%, #22d3ee 72%, #5eead4 100%);
    border-top: 2px solid rgba(224, 242, 254, 0.72);
    overflow: hidden;
}

.sea-glint {
    position: absolute;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    animation: glintPulse 2.8s ease-in-out infinite alternate;
}

.sea-glint.g1 { top: 22%; left: 18%; width: 65px; }
.sea-glint.g2 { top: 44%; left: 48%; width: 90px; animation-delay: 0.9s; }
.sea-glint.g3 { top: 28%; left: 74%; width: 55px; animation-delay: 1.7s; }
.sea-glint.g4 { top: 58%; left: 86%; width: 75px; animation-delay: 0.4s; }

.sea-ripple {
    position: absolute;
    height: 4px;
    border-radius: 999px;
    background: rgba(240, 249, 255, 0.38);
    animation: rippleDrift 4.2s ease-in-out infinite alternate;
}

.sea-ripple.r1 { top: 36%; left: 12%; width: 140px; }
.sea-ripple.r2 { top: 62%; left: 42%; width: 175px; animation-delay: 1.3s; }
.sea-ripple.r3 { top: 42%; left: 68%; width: 130px; animation-delay: 0.6s; }

@keyframes glintPulse {
    0%   { opacity: 0.2; transform: scaleX(0.85); }
    100% { opacity: 0.9; transform: scaleX(1.12); }
}

@keyframes rippleDrift {
    0%   { transform: translateX(-12px); }
    100% { transform: translateX(14px); }
}

/* --- Strukturierter Sandstrand (warmer Goldsand wie insel1.webp) & Animierte Brandung --- */
.tropical-sand {
    position: absolute;
    top: 68%;
    left: 0;
    width: 100%;
    height: 32%;
    background: linear-gradient(180deg, #fde68a 0%, #f6c453 45%, #e5a93c 100%);
}

.shoreline-surf-svg {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: clamp(26px, 4.5vh, 44px);
    z-index: 3;
    pointer-events: none;
}

.surf-wave-foam,
.surf-wave-back {
    animation: surfWash 3.4s ease-in-out infinite alternate;
    transform-origin: top center;
}

@keyframes surfWash {
    0%   { transform: scaleY(0.84); opacity: 0.85; }
    100% { transform: scaleY(1.16); opacity: 1; }
}

.sand-details-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* --- Große Kokospalmen --- */
.beach-palm-deco {
    position: absolute;
    bottom: 44%;
    width: clamp(135px, 14vw, 215px);
    height: auto;
    z-index: 4;
    pointer-events: none;
    transform-origin: bottom center;
    animation: palmBreeze 4.8s ease-in-out infinite alternate;
}

.beach-palm-deco.palm-left {
    left: 5%;
}

.beach-palm-deco.palm-right {
    right: 6%;
    animation-delay: -2.1s;
}

@keyframes palmBreeze {
    0%   { transform: rotate(-1.5deg); }
    100% { transform: rotate(2deg); }
}

/* --- Dein gelber Koffer am Strand (Panel 1) --- */
.beach-suitcase-actor {
    position: absolute;
    bottom: 24%;
    left: 25%;
    width: clamp(78px, 8vw, 118px);
    height: auto;
    z-index: 7;
    transform: rotate(-4deg);
}

.suitcase-sand-shadow {
    position: absolute;
    bottom: 2px;
    left: 6%;
    width: 88%;
    height: 16%;
    border-radius: 50%;
    background: rgba(120, 53, 15, 0.42);
}

/* --- Detaillierte Landebahn (Panel 2) --- */
.island-runway-strip {
    position: absolute;
    top: 15%;
    left: -4%;
    width: 78%;
    height: clamp(64px, 9.5vh, 96px);
    background: linear-gradient(180deg, #334155 0%, #1e293b 65%, #0f172a 100%);
    border-top: 4px solid #f8fafc;
    border-bottom: 5px solid #f8fafc;
    border-radius: 0 12px 12px 0;
    box-shadow:
        0 10px 0 #b45309,
        0 16px 26px rgba(120, 53, 15, 0.42);
    transform: perspective(480px) rotateX(28deg);
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 4;
}

/* Reifenspuren auf dem Asphalt */
.runway-tire-marks {
    position: absolute;
    inset: 22% 12% 22% 2%;
    background: repeating-linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.45) 0px,
        rgba(15, 23, 42, 0.45) 4px,
        transparent 4px,
        transparent 14px
    );
    pointer-events: none;
}

/* Gestrichelte Mittellinie */
.runway-center-dashes {
    flex: 1;
    height: 5px;
    margin: 0 18px 0 10px;
    background: repeating-linear-gradient(
        90deg,
        #f8fafc 0px,
        #f8fafc 32px,
        transparent 32px,
        transparent 58px
    );
    z-index: 2;
}

/* Zebrastreifen am rechten Bahn-Ende */
.runway-threshold-right {
    width: 24px;
    height: 68%;
    margin-right: 16px;
    background: repeating-linear-gradient(
        180deg,
        #f8fafc 0px,
        #f8fafc 5px,
        transparent 5px,
        transparent 10px
    );
    opacity: 0.9;
    flex-shrink: 0;
    z-index: 2;
}

/* Leuchtende gelbe Randfeuer */
.runway-lights-top,
.runway-lights-bottom {
    position: absolute;
    left: 0;
    right: 14px;
    height: 5px;
    background: radial-gradient(circle, #fde047 45%, transparent 60%);
    background-size: 54px 5px;
    z-index: 3;
}

.runway-lights-top { top: 4px; }
.runway-lights-bottom { bottom: 4px; }

/* --- Passagierjet & Bodenschatten --- */
.runway-jet-actor {
    position: absolute;
    bottom: 20.5%;
    left: 2.5%;
    z-index: 15;
    transform-origin: 46% 78%;
    will-change: transform;
}

.jet-runway-shadow {
    position: absolute;
    bottom: 4px;
    left: 11%;
    width: 78%;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.56) 0%, rgba(15, 23, 42, 0.16) 72%, rgba(15, 23, 42, 0) 100%);
}

.runway-jet-actor svg {
    position: relative;
    width: clamp(290px, 33vw, 510px);
    height: auto;
    display: block;
    z-index: 2;
    filter: drop-shadow(0 8px 14px rgba(15, 23, 42, 0.24));
}

.runway-jet-actor #jet-gear {
    transform-box: view-box;
    transform-origin: 325px 136px;
}

.runway-jet-actor #jet-dust-group {
    opacity: 0;
}

.runway-jet-actor.taking-off {
    animation: runwayTakeoffLeftToRight 4.2s linear forwards;
}

.runway-jet-actor.taking-off .jet-runway-shadow {
    animation: jetShadowLift 4.2s linear forwards;
}

.runway-jet-actor.taking-off #jet-gear {
    animation: jetGearRetract 4.2s ease-in-out forwards;
}

.runway-jet-actor.taking-off #jet-dust-group {
    animation: jetRunwayDust 4.2s ease-out forwards;
}

.runway-jet-actor.taking-off #jet-exhaust-flame {
    transform-box: fill-box;
    transform-origin: right center;
    animation: exhaustPulse 0.13s infinite alternate;
}

@keyframes exhaustPulse {
    0%   { opacity: 0.72; transform: scaleX(0.92) scaleY(0.92); }
    100% { opacity: 1; transform: scaleX(1.26) scaleY(1.06); }
}

@keyframes jetGearRetract {
    0%, 54% { opacity: 1; transform: translateY(0px) scaleY(1); }
    68%, 100% { opacity: 0; transform: translateY(-20px) scaleY(0.12); }
}

@keyframes jetRunwayDust {
    0%   { opacity: 0; transform: translateX(0px) scale(0.7); }
    12%  { opacity: 0.72; transform: translateX(-8px) scale(1); }
    38%  { opacity: 0.52; transform: translateX(-22px) scale(1.18); }
    52%, 100% { opacity: 0; transform: translateX(-34px) scale(1.3); }
}

@keyframes jetShadowLift {
    0%   { opacity: 0.58; transform: scale(1); }
    38%  { opacity: 0.52; transform: scale(0.96); }
    54%  { opacity: 0.32; transform: scale(0.82) translateY(16px); }
    72%  { opacity: 0.08; transform: scale(0.45) translateY(34px); }
    100% { opacity: 0; transform: scale(0.25) translateY(44px); }
}

@keyframes runwayTakeoffLeftToRight {
    0%   { transform: translate(0vw, 0px) rotate(0deg) scale(1); }
    12%  { transform: translate(2.5vw, 0px) rotate(0deg) scale(1); }
    24%  { transform: translate(9vw, 0px) rotate(0deg) scale(1); }
    36%  { transform: translate(20vw, 0px) rotate(0deg) scale(1); }
    46%  { transform: translate(31vw, -3px) rotate(-5deg) scale(0.995); }
    55%  { transform: translate(42vw, -26px) rotate(-13deg) scale(0.97); }
    66%  { transform: translate(58vw, -96px) rotate(-17deg) scale(0.90); }
    78%  { transform: translate(78vw, -214px) rotate(-19.5deg) scale(0.75); }
    90%  { transform: translate(100vw, -365px) rotate(-21deg) scale(0.56); }
    100% { transform: translate(124vw, -525px) rotate(-22deg) scale(0.38); }
}

/* --- PhishKönig in Panel 3 --- */
.beach-king-actor {
    position: absolute;
    bottom: 24%;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(170px, 18vw, 240px);
    z-index: 9;
    filter: drop-shadow(0 14px 12px rgba(120, 53, 15, 0.35));
    animation: kingIdleBob 1.8s ease-in-out infinite alternate;
}

.beach-king-actor img {
    width: 100%;
    height: auto;
    display: block;
}
/* PhishKönig mit Bodenschatten & lebendiger Animation */
.beach-king-actor {
    position: absolute;
    bottom: 24%;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(175px, 17vw, 245px);
    z-index: 9;
    animation: kingIdleBob 1.8s ease-in-out infinite alternate;
}

.king-sand-shadow {
    position: absolute;
    bottom: -6px;
    left: 12%;
    width: 76%;
    height: 18px;
    border-radius: 50%;
    background: rgba(120, 53, 15, 0.45);
    z-index: -1;
}

.beach-king-actor img,
.beach-king-actor svg {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.25));
}

/* Wenn Panel 3 aktiv wird, hüpft der PhishKönig einmal kurz zur Begrüßung */
.dropoff-panorama.look-king .beach-king-actor {
    animation:
        kingEntrancePop 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.45s both,
        kingIdleBob 1.8s ease-in-out 1.1s infinite alternate;
}

@keyframes kingEntrancePop {
    0%   { transform: translateX(-50%) scale(0.75) translateY(24px); opacity: 0.4; }
    100% { transform: translateX(-50%) scale(1) translateY(0); opacity: 1; }
}

@keyframes kingIdleBob {
    0%   { transform: translateX(-50%) translateY(0); }
    100% { transform: translateX(-50%) translateY(-10px); }
}

/* --- Randfall-Anpassungen für Hochformat (9:16) --- */
@media (max-aspect-ratio: 1/1) {
    .beach-palm-deco {
        width: 120px;
        bottom: 48%;
    }
    .beach-suitcase-actor {
        left: 30%;
        bottom: 58%;
    }
    .island-runway-strip {
        width: 88%;
    }
}

/* =========================================================
   SZENE 5: STRAND-PANORAMA – UMSCHAUEN & PHISHKÖNIG FINDEN
   ========================================================= */
#scene-king {
    overflow: hidden;
}

.search-beach-panorama {
    position: relative;
    width: 190vw;
    height: 100vh;
    transform: translateX(0vw);
    transition: transform 3.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.search-beach-panorama.found-king {
    transform: translateX(-90vw);
}

.beach-landmark {
    position: absolute;
    z-index: 10;
}

.king-stage {
    position: absolute;
    bottom: 24%;
    left: 142vw;
    transform: translateX(-50%);
    z-index: 20;
    animation: kingFloat 1.9s ease-in-out infinite alternate;
    filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.42));
}

.custom-king-img {
    max-height: 280px;
    width: auto;
}

/* =========================================================
   DIALOGBOX UNTEN
   ========================================================= */
.dialog-box {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 840px;
    max-width: 94vw;
    background: rgba(15, 23, 42, 0.96);
    border: 4px solid #facc15;
    border-radius: 18px;
    padding: 18px 24px;
    color: #ffffff;
    z-index: 150;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.dialog-text-wrap {
    flex: 1;
    min-width: 0;
}

.dialog-speaker {
    display: inline-block;
    background: #facc15;
    color: #0f172a;
    font-weight: 900;
    font-size: 13px;
    padding: 3px 10px;
    border-radius: 7px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.dialog-text {
    font-size: 17px;
    line-height: 1.5;
    min-height: 50px;
    color: #f8fafc;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.next-btn {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    border: 2px solid #86efac;
    padding: 13px 22px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 5px 0 #14532d;
    white-space: nowrap;
    flex-shrink: 0;
}

.next-btn:active {
    transform: translateY(5px);
    box-shadow: none;
}

@keyframes popScale {
    0% { transform: scale(0.94); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes airlinerHum {
    0% { margin-top: 0px; }
    100% { margin-top: -3px; }
}

@keyframes cloudGlide {
    0% { left: 115%; }
    100% { left: -50%; }
}

@keyframes kingFloat {
    0% { transform: translate(-50%, 0px); }
    100% { transform: translate(-50%, -12px); }
}
/* =========================================================
   RESPONSIVE ANPASSUNGEN FÜR ALLE FORMATE (16:9, 9:16, 4:3, 21:9)
   ========================================================= */

/* 1. Monitor-Innenleben (E-Mail-Toast & Phishing-Mail per Container Queries – komplett ohne Scrollen sichtbar) */
.mail-toast {
    width: 92%;
    padding: clamp(5px, 2.4cqh, 12px) clamp(8px, 2.2cqw, 18px);
    gap: clamp(6px, 1.8cqw, 14px);
    border-radius: clamp(7px, 2.4cqh, 14px);
    border-width: clamp(1.5px, 0.45cqh, 2px);
}

.mail-toast.visible {
    top: clamp(5px, 3cqh, 16px);
}

.mail-avatar {
    width: clamp(22px, 9.5cqh, 42px);
    height: clamp(22px, 9.5cqh, 42px);
    font-size: clamp(11px, 4.2cqh, 18px);
}

.mail-toast-top {
    font-size: clamp(9px, 3cqh, 13px);
}

.mail-toast-top strong {
    font-size: clamp(10px, 3.4cqh, 15px);
}

.mail-toast-subj {
    font-size: clamp(10px, 3.2cqh, 14px);
}

.mail-toast-open {
    padding: clamp(4px, 1.8cqh, 9px) clamp(8px, 2cqw, 16px);
    font-size: clamp(10px, 3.2cqh, 14px);
    border-radius: clamp(5px, 1.8cqh, 9px);
    flex-shrink: 0;
}

.fullscreen-email {
    overflow: hidden;
}

.email-client-topbar {
    flex-shrink: 0;
    padding: clamp(3px, 1.4cqh, 8px) clamp(6px, 2cqw, 16px);
    font-size: clamp(7.5px, 2.7cqh, 13px);
    gap: 1.5cqw;
}

.window-controls {
    gap: clamp(3px, 0.8cqw, 6px);
    min-width: 0;
}

.dot-red, .dot-yellow, .dot-green {
    width: clamp(5px, 2cqh, 10px);
    height: clamp(5px, 2cqh, 10px);
    flex-shrink: 0;
}

.client-title {
    margin-left: clamp(4px, 1cqw, 8px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.urgency-badge {
    font-size: clamp(7px, 2.4cqh, 12px);
    padding: clamp(1px, 0.4cqh, 2px) clamp(4px, 1cqw, 8px);
    border-radius: clamp(3px, 1.2cqh, 6px);
    white-space: nowrap;
    flex-shrink: 0;
}

.email-client-layout {
    overflow: hidden;
}

.email-sidebar {
    width: 22cqw;
    min-width: 0;
    padding: clamp(5px, 2cqh, 12px) clamp(4px, 1.1cqw, 8px);
    gap: clamp(2px, 0.8cqh, 4px);
    font-size: clamp(7.5px, 2.7cqh, 13px);
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-item {
    padding: clamp(3px, 1.4cqh, 8px) clamp(4px, 1.2cqw, 10px);
    border-radius: clamp(4px, 1.4cqh, 8px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-main-pane {
    flex: 1;
    min-width: 0;
    min-height: 0;
    padding: clamp(5px, 2.2cqh, 16px) clamp(8px, 2.5cqw, 20px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(3px, 1.3cqh, 8px);
    overflow: hidden;
}

.email-subject-line {
    font-size: clamp(9px, 3.6cqh, 18px);
    line-height: 1.18;
    margin-bottom: 0;
}

.email-sender-row {
    gap: clamp(5px, 1.4cqw, 10px);
    padding-bottom: clamp(3px, 1.4cqh, 8px);
    font-size: clamp(7.5px, 2.7cqh, 13px);
    line-height: 1.22;
}

.email-sender-row > div:last-child {
    min-width: 0;
}

.sender-circle {
    width: clamp(16px, 7cqh, 34px);
    height: clamp(16px, 7cqh, 34px);
    font-size: clamp(8px, 3.2cqh, 15px);
    flex-shrink: 0;
}

.fake-addr {
    font-size: clamp(7px, 2.4cqh, 12px);
    word-break: break-word;
}

.email-to-line {
    font-size: clamp(7px, 2.3cqh, 12px);
}

.email-message-content {
    font-size: clamp(8px, 3.05cqh, 15px);
    line-height: 1.3;
    margin: 0;
}

.email-message-content p {
    margin: 0 0 clamp(2px, 1.1cqh, 6px) 0;
}

.email-message-content p:last-child {
    margin-bottom: 0;
}

.scam-cta-btn {
    flex-shrink: 0;
    padding: clamp(5px, 2.1cqh, 14px) clamp(8px, 2cqw, 16px);
    font-size: clamp(8px, 3.1cqh, 15px);
    line-height: 1.18;
    border-radius: clamp(5px, 2cqh, 12px);
    box-shadow: 0 clamp(2px, 0.9cqh, 5px) 0 #9a3412;
    margin-bottom: clamp(2px, 0.9cqh, 5px);
}

.scam-cta-btn.clicked {
    transform: translateY(clamp(2px, 0.9cqh, 5px));
}

/* Auf schmaleren Monitoren (z. B. 4:3 klein oder 9:16 Smartphone) Seitenleiste ausblenden, damit die Mail komplett ohne Scrollen passt */
@container monitor (max-width: 470px) {
    .email-sidebar {
        display: none;
    }
    .client-title {
        display: none;
    }
}

@media (max-width: 768px) {
    .email-sidebar {
        display: none;
    }
    .client-title {
        display: none;
    }
}

/* 2. Dialogbox unten (16:9, 4:3 & 9:16 Hochformat) */
.dialog-box {
    bottom: clamp(12px, 2.2vh, 22px);
    width: min(840px, 94vw);
    padding: clamp(12px, 2vw, 18px) clamp(14px, 2.4vw, 24px);
    gap: clamp(10px, 2vw, 20px);
    border-width: clamp(3px, 0.4vw, 4px);
}

.dialog-speaker {
    font-size: clamp(11px, 1.3vw, 13px);
}

.dialog-text {
    font-size: clamp(14px, 1.7vw, 17px);
    min-height: clamp(40px, 6vh, 50px);
}

.next-btn {
    padding: clamp(10px, 1.4vw, 13px) clamp(14px, 2.2vw, 22px);
    font-size: clamp(14px, 1.6vw, 16px);
}

@media (max-width: 600px) {
    .dialog-box {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .next-btn {
        width: 100%;
        text-align: center;
    }
}

/* 3. Szene 4 & 5: Jet & PhishKönig auf Hochformat */
@media (max-aspect-ratio: 1/1) {
    .runway-jet-actor {
        bottom: 24%;
        left: 2%;
    }
    .runway-jet-actor svg {
        width: clamp(210px, 56vw, 340px);
    }
    .king-stage {
        bottom: 26%;
    }
    .custom-king-img {
        max-height: 32vh;
    }
    #fallback-king-svg {
        width: clamp(170px, 46vw, 240px);
        height: auto;
    }
}
