/* ===== Infotafel Styling ===== */

.infopanel-section {
    background: linear-gradient(135deg, #2a2e37 0%, #5c5250 100%);
    padding: 60px 0;
    width: 100%;
}

.infopanel-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 20px;
}

.infopanel-container {
    background: transparent;
    padding: 0;
    border: none;
    margin: 0;
    box-shadow: none;
    max-width: 900px;
    width: 100%;
}

.infopanel-carousel {
    position: relative;
    background: linear-gradient(135deg, #5c5250 0%, #ffffff 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.25);
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.infopanel-item {
    display: none;
    padding: 55px 50px;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    animation: fadeIn 0.6s ease-in-out;
    text-align: center;
}

.infopanel-item.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.infopanel-content {
    max-width: 850px;
    width: 100%;
    text-align: center;
}

.infopanel-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 3px solid #ffbe33;
    flex-wrap: wrap;
}

.infopanel-type {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #ffbe33 0%, #e6a821 100%);
    color: #222831;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 6px 15px rgba(255, 190, 51, 0.35);
    letter-spacing: 0.5px;
}

.infopanel-date {
    font-size: 13px;
    color: #888;
    font-style: italic;
    font-weight: 600;
    background: #f0f0f0;
    padding: 6px 14px;
    border-radius: 20px;
}

.infopanel-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a1f28;
    margin: 20px 0 15px 0;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(255, 190, 51, 0.08);
}

.infopanel-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #444;
    margin-bottom: 25px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.infopanel-image {
    max-width: 100%;
    max-height: 350px;
    border-radius: 15px;
    margin-top: 25px;
    object-fit: cover;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    border: 4px solid #ffbe33;
    transition: transform 0.3s ease;
}

.infopanel-image:hover {
    transform: scale(1.02);
}

.infopanel-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 18px 0 0 0;
    background: none;
    border: none;
}

.infopanel-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid #ffbe33;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 0 10px rgba(255, 190, 51, 0.2);
}

.infopanel-dot.active {
    background: #ffbe33;
    transform: scale(1.35);
    box-shadow: 0 0 20px rgba(255, 190, 51, 0.5);
}

.infopanel-dot:hover {
    background: #ffe08a;
    transform: scale(1.15);
}

/* Navigation Arrows */
.infopanel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ffbe33 0%, #e6a821 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(255, 190, 51, 0.3);
}

.infopanel-nav:hover {
    background: linear-gradient(135deg, #ffe08a 0%, #ffbe33 100%);
    color: #1a1f28;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 190, 51, 0.5);
}

.infopanel-nav.prev {
    left: 20px;
}

.infopanel-nav.next {
    right: 20px;
}

/* Responsive */
@media (max-width: 768px) {
        /* Pfeile unterhalb des Carousels auf Mobil */
        .infopanel-nav {
            position: static;
            top: auto;
            left: auto;
            right: auto;
            transform: none;
            margin: 10px 8px 0 8px;
            box-shadow: 0 2px 8px rgba(255, 190, 51, 0.18);
        }
        .infopanel-carousel {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .infopanel-controls {
            margin-bottom: 0;
            margin-top: 8px;
        }
    .infopanel-section {
        padding: 40px 0;
    }

    .infopanel-item {
        padding: 40px 25px;
    }
    
    .infopanel-title {
        font-size: 2rem;
    }
    
    .infopanel-text {
        font-size: 1rem;
    }
    
    .infopanel-image {
        max-height: 250px;
    }

    .infopanel-header {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .infopanel-container {
        padding: 15px 10px;
    }

    .infopanel-item {
        padding: 15px;
        min-height: 280px;
    }
    
    .infopanel-title {
        font-size: 1.4rem;
    }
    
    .infopanel-text {
        font-size: 0.95rem;
    }
    
    .infopanel-image {
        max-height: 150px;
    }

    .infopanel-controls {
        gap: 8px;
    }

    .infopanel-dot {
        width: 10px;
        height: 10px;
    }
}

