/* ==========================================================================
   Vergrößerte Ansicht der Fotos
   --------------------------------------------------------------------------
   Von beiden Fassungen genutzt, deshalb ohne Rückgriff auf die Variablen des
   einen oder anderen Stylesheets.

   Die Anfahrtsskizze hat ihre eigene, aufwendigere Ansicht in karte.js –
   diese hier ist bewusst schlicht: Bild groß, Beschreibung darunter, zu.
   ========================================================================== */

.lichtbox {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    background-color: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.lichtbox.offen { opacity: 1; }

.lichtbox-bild {
    max-width: min(100%, 1100px);
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    background-color: #ffffff;
}

.lichtbox-text {
    margin: 0;
    max-width: 900px;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-family: "Open Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
}

.lichtbox-zu {
    position: absolute;
    top: 20px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.18s ease;
}

.lichtbox-zu:hover { background-color: rgba(255, 255, 255, 0.24); }

.lichtbox-zu:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

.lichtbox-zu svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@media (max-width: 560px) {
    .lichtbox { padding: 16px; }
    .lichtbox-bild { max-height: 66vh; }

    /* Auf schmalen Geräten würde die Schaltfläche über dem Bild liegen. */
    .lichtbox-zu {
        top: auto;
        bottom: 16px;
        right: 50%;
        transform: translateX(50%);
    }
}

/* Wer Bewegung abgeschaltet hat, bekommt die Ansicht ohne Einblenden. */
@media (prefers-reduced-motion: reduce) {
    .lichtbox { transition: none; }
}
