/* ========================================
   SPEISEKARTE PAGE
   ======================================== */
.speisekarte-intro-text {
    font-size: var(--font-size-body) !important;
    color: var(--thai-dark-green);
    margin: 0 auto;
    text-align: center;
}

.speisekarte-highlight {
    font-weight: var(--font-weight-bold);
    font-size: larger;
}

.speisekarte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    padding: 0 var(--spacing-lg);
}

.speisekarte-item {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.speisekarte-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.speisekarte-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ========================================
   LIGHTBOX
   ======================================== */

.speisekarte-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.speisekarte-lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.lightbox-content {
    max-width: 95%;
    max-height: 95vh;
    width: auto;
    height: 85vh;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: static;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    margin-left: 20px;
}

.lightbox-close:hover {
    color: var(--thai-gold);
}

.lightbox-zoom {
    position: static;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: var(--border-radius);
}

.lightbox-zoom:hover {
    color: var(--thai-gold);
    transform: scale(1.1);
}

.lightbox-zoom.active {
    background-color: var(--thai-dark-green);
    color: var(--thai-gold);
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 95%;
    max-height: 95vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 20px;
    z-index: 10001;
    pointer-events: none;
}

.lightbox-header>* {
    pointer-events: all;
}

.lightbox-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: none;
    /* Nur auf Mobile sichtbar */
    justify-content: center;
    align-items: center;
    z-index: 10001;
    pointer-events: none;
}

.lightbox-footer>* {
    pointer-events: all;
}

.lightbox-content-wrapper.zoom-active {
    cursor: none;
}

.lightbox-zoom-lens {
    position: absolute;
    border: 3px solid var(--thai-gold);
    border-radius: 50%;
    width: 200px;
    height: 200px;
    pointer-events: none;
    display: none;
    z-index: 10001;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-zoom-lens.active {
    display: block;
}

.lightbox-zoom-result {
    position: absolute;
    border: 3px solid var(--thai-gold);
    border-radius: var(--border-radius);
    width: 400px;
    height: 400px;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    z-index: 10002;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.lightbox-zoom-result.active {
    display: block;
}

.lightbox-nav-desktop {
    position: fixed;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10000;
}

.lightbox-nav-desktop>* {
    pointer-events: all;
}

.lightbox-nav-mobile {
    display: none;
    gap: 50px;
}

.lightbox-prev,
.lightbox-next {
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 40px;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--thai-dark-green);
    color: var(--thai-gold);
}


/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .speisekarte-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .speisekarte-lightbox.active {
        flex-direction: column;
        justify-content: space-between;
    }

    .lightbox-header {
        position: static;
        height: 60px;
        background-color: rgba(0, 0, 0, 0.8);
        padding: 0 15px;
        flex-shrink: 0;
    }

    .lightbox-footer {
        position: static;
        height: 55px;
        background-color: rgba(0, 0, 0, 0.8);
        flex-shrink: 0;
        display: flex;
    }

    .lightbox-content-wrapper {
        max-width: 100%;
        max-height: none;
        flex: 1;
        min-height: 0;
        padding: 10px;
    }

    .lightbox-content {
        max-width: 100%;
        max-height: 100%;
        height: 100%;
        width: auto;
    }

    .lightbox-zoom {
        display: none;
    }

    .lightbox-close {
        font-size: 40px;
        margin-left: auto;
    }

    .lightbox-nav-desktop {
        display: none;
    }

    .lightbox-nav-mobile {
        display: flex;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 30px;
        padding: 6px 18px;
        background-color: rgba(0, 0, 0, 0.7);
    }

    /* Zoom-Elemente auf Mobil verstecken */
    .lightbox-zoom-lens,
    .lightbox-zoom-result {
        display: none !important;
    }
}