/* Tische Page Styles */
.tische-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
        "info image"
        "carousel-title carousel-title"
        "carousel carousel"
        "carousel-nav carousel-nav";
    gap: 2rem;
    width: 100%;
    margin: -4rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.tische-image {
    grid-area: image;
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tische-img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    border-radius: 15px;
}

.tische-info {
    grid-area: info;
    background: rgba(166, 111, 20, 0.1);
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tische-info h2 {
    color: rgba(166, 111, 20, 1);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.tische-info h3 {
    color: rgba(166, 111, 20, 0.8);
    margin-top: 1rem;
    font-size: 1.5rem;
}

.tische-info p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.tische-features {
    list-style-type: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.tische-features li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.4;
}

.tische-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: rgba(166, 111, 20, 1);
}

.tische-highlight {
    color: rgba(166, 111, 20, 1);
    font-weight: 500;
    margin-top: 0.5rem;
}

.carousel-title {
    grid-area: carousel-title;
    text-align: center;
    color: rgba(166, 111, 20, 1);
    font-size: 2rem;
    margin-top: 2rem;
}

/* Image Carousel Styles */
.rollaeden-carousel {
    grid-area: carousel;
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    gap: 2rem;
    position: absolute;
    height: 250px;
    align-items: center;
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 200px;
    height: 200px;
    transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform-origin: center center;
    position: relative;
    transform: scale(0.8);
    opacity: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.carousel-slide.active {
    flex: 0 0 250px;
    height: 250px;
    transform: scale(1);
    opacity: 1;
    z-index: 2;
}

.carousel-slide.active img {
    box-shadow: 0 8px 24px rgba(166, 111, 20, 0.3);
}

.carousel-nav {
    grid-area: carousel-nav;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 0rem;
}

.carousel-btn {
    background: rgba(166, 111, 20, 0.5);
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(166, 111, 20, 1);
    transform: scale(1.1);
}

/* Carousel Overlay Styles */
.carousel-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-overlay.active {
    display: block;
    opacity: 1;
}

.carousel-overlay-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.carousel-overlay-image {
    max-width: 85%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 25px;
}

.carousel-overlay-btn {
    position: absolute;
    top: 50%;
    background: transparent;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-overlay-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.carousel-overlay-btn.prev {
    left: 20px;
}

.carousel-overlay-btn.next {
    right: 20px;
}

.carousel-overlay-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-overlay-close:hover {
    transform: scale(1.1);
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .tische-grid {
        margin: 1rem 0;
        padding: 1rem;
        grid-template-columns: 1fr;
        grid-template-areas: 
            "info"
            "image"
            "carousel-title"
            "carousel"
            "carousel-nav";
    }

    .tische-image {
        max-height: 400px;
    }

    .carousel-slide {
        flex: 0 0 160px;
        height: 160px;
    }

    .carousel-slide.active {
        flex: 0 0 200px;
        height: 200px;
    }
}