/* ==================================================
   Klick-Simulator – Gestaltung
   ================================================== */

#simulator {
    position: relative;
    width: 100%;
    font-family: Arial, sans-serif;
    
}

/* Startknopf */

.simulator-start {
    display: inline-block;
    padding: 12px 22px;
    border: 0;
    border-radius: 5px;
    background: #222;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.simulator-start:hover {
    background: #444;
}

/* Hintergrund */

.simulator-overlay {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.94);
}

.simulator-overlay.is-open {
    display: flex;
}

/* Wiedergabefenster */

.simulator-window {
    position: relative;
    display: flex;
    flex-direction: column;
    width: auto;
    height: auto;
    max-width: 96vw;
    max-height: 95vh;
    overflow: hidden;
    background: #111;
    color: #fff;
    transition: none;
}

/* Kopfbereich */

.simulator-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 16px;
    background: #191919;
}

.simulator-album-select {
    flex: 1;
    min-width: 0;
    max-width: 400px;
    padding: 9px 12px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #222;
    color: #fff;
    font-size: 14px;
}

/* Schließen */

.simulator-close {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 4px;
    background: #333;
    color: #fff;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.simulator-close:hover {
    background: #555;
}

/* Medienbereich */

.simulator-stage {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: var(--stage-width, auto);
    height: var(--stage-height, auto);
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #080808;
    touch-action: pan-y;
}

.simulator-media {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.simulator-media-video {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Navigation */

.simulator-navigation {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.simulator-nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 64px;
    margin: 0 12px;
    border: 0;
    border-radius: 5px;
    background: rgba(30, 30, 30, 0.65);
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.2s ease;
}

.simulator-nav-button:hover {
    background: rgba(80, 80, 80, 0.85);
}

/* Fußbereich */

.simulator-footer {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    background: #191919;
    color: #aaa;
    font-size: 12px;
    text-align: center;
}

/* Meldungen */

.simulator-message {
    padding: 25px;
    color: #ccc;
    font-size: 15px;
    text-align: center;
}

.simulator-message.is-error {
    color: #ff8585;
}

/* Smartphone und Tablet */

@media (max-width: 700px) {

    .simulator-overlay {
        padding: 0;
    }

    .simulator-window {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        transition: none;
    }

    .simulator-header {
        padding: 9px;
    }

    .simulator-album-select {
        max-width: none;
    }

    .simulator-stage {
        flex: 1 1 auto;
        width: 100%;
        height: auto;
        min-height: 0;
    }

    .simulator-media,
    .simulator-media-video {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
    }

    .simulator-nav-button {
        width: 38px;
        height: 52px;
        margin: 0 5px;
        font-size: 24px;
    }

    .simulator-footer {
        min-height: 32px;
    }
}

/* ==================================================
   Lived Passion – Milchglas-Design
   Das Seitenmotiv bleibt im Hintergrund sichtbar und
   wird durch die geöffnete Simulator-Ebene weichgezeichnet.
   ================================================== */

#simulator {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.simulator-start {
    color: #f5f1e9;
    border: 1px solid #d6bd8a;
    border-radius: 5px;
    background: rgba(17, 21, 26, 0.78);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.22);
    text-transform: uppercase;
    font-size: 14px;
    padding: 5px 12px;
    display: inline-block;
}

.simulator-start:hover {
    color: #fff;
    background: rgba(80, 64, 37, 0.9);
}

body {
    
    background-color: #11151a;
    background-image: url("/zugangsschutz/assets/sperre.png");
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
    background-attachment: fixed;

    -webkit-backdrop-filter: blur(9px) saturate(115%);
    backdrop-filter: blur(9px) saturate(115%);
}

/* Milchglas-Schleier über der vorhandenen Dummi-Seite */
.simulator-overlay {
    background: linear-gradient(
    to right,
    rgba(255, 255, 0, 0.3),
    rgba(255, 165, 0, 0.3),
    rgba(255, 0, 0, 0.3),
    rgba(0, 128, 0, 0.3),
    rgba(0, 0, 255, 0.3)
  );
    -webkit-backdrop-filter: blur(9px) saturate(115%);
    backdrop-filter: blur(9px) saturate(115%);
}

/* Vorderes Simulatorfenster */
.simulator-window {
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 5px;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.17),
        rgba(255, 255, 255, 0.075)
    );
    color: #f5f1e9;
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* Kopf- und Fußbereich im selben Glas-Look */
.simulator-header,
.simulator-footer {
    background: rgba(17, 21, 26, 0.72);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.simulator-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.simulator-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(245, 241, 233, 0.78);
}

.simulator-album-select {
    color: #f5f1e9;
    border: 1px solid rgba(214, 189, 138, 0.62);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.34);
}

.simulator-album-select:focus {
    outline: 2px solid #d6bd8a;
    outline-offset: 2px;
}

.simulator-close {
    color: #d6bd8a;
    border: 1px solid rgba(214, 189, 138, 0.62);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.3);
}

.simulator-close:hover {
    color: #fff;
    background: rgba(80, 64, 37, 0.82);
}

.simulator-stage {
    background: #080808;
}

.simulator-nav-button {
    color: #f5f1e9;
    border: 1px solid rgba(214, 189, 138, 0.58);
    border-radius: 5px;
    background: rgba(8, 12, 15, 0.68);
}

.simulator-nav-button:hover {
    color: #fff;
    background: rgba(80, 64, 37, 0.9);
}

.simulator-message {
    color: rgba(245, 241, 233, 0.88);
}

.simulator-message.is-error {
    color: #ffb2a8;
}

.simulator-start-link {
    display: inline-block;
    margin: 14px 0 20px;
    padding: 10px 18px;
    color: #f5f1e9;
    text-decoration: none;
    border: 1px solid rgba(214, 189, 138, 0.72);
    border-radius: 5px;
    background: rgba(17, 21, 26, 0.76);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.simulator-start-link:hover {
    color: #fff;
    border-color: #d6bd8a;
    background: rgba(80, 64, 37, 0.88);
}

@media (max-width: 700px) {
    .simulator-window {
        border: 0;
        border-radius: 0;
    }

    .simulator-overlay {
        background: rgba(8, 12, 15, 0.94);
        -webkit-backdrop-filter: blur(9px);
        backdrop-filter: blur(9px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .simulator-window,
    .simulator-start,
    .simulator-start-link {
        transition: none;
    }
}


/* Ruhiger Medienwechsel: keine Zwischenanimation beim Formatwechsel */
.simulator-window {
    transition: none !important;
}

.simulator-stage {
    transition: none !important;
}

.simulator-media {
    opacity: 1;
    transition: none !important;
}
