/*
 * Theme Name:     Kadence Child
 * Author:         Kadence WP
 * Template:       kadence
 * Text Domain:     kadence-child
 * Description:    Kadence Theme Child für TSV-Projekte
 */

/* =====================================================
 * KADENCE MOBILE HEADER FIX – GLOBAL
 * ===================================================== */
.site-header-sticky.is-sticky {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.8) !important;
}

/* Anker-Korrektur für Sticky Header */
#spendenformular {
scroll-margin-top: 180px;
}

@media (max-width: 768px) {
    .site-header,
    .page-header,
    .entry-header,
    .content-area,
    .site-main,
    .entry-content {
        overflow: visible !important;
        max-height: none !important;
    }
    .page-title,
    h1 {
        white-space: normal !important;
        height: auto !important;
        max-height: none !important;
        line-height: 1.35 !important;
    }
}

/* =====================================================
 * TIER-GALERIE (CSS-Only Karussell)
 * ===================================================== */
.bilder-karussell {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    display: flex;
    gap: 16px;
    padding: 10px 0;
    margin: 30px auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.karussell-slide {
    scroll-snap-align: start;
    flex: 0 0 80%;
    max-width: 80%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.karussell-slide img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

@media (max-width: 767px) {
    .karussell-slide {
        flex: 0 0 90%;
        max-width: 90%;
    }
}

/* Galerie-Thumbnails (klassisch) */
.tier-galerie {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
}

.tier-galerie a {
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tier-galerie a:hover {
    border-color: #753624;
    transform: scale(1.03);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tier-galerie img {
    transition: transform 0.3s ease;
}

.tier-galerie a:hover img {
    transform: scale(1.05);
}
