/* ========================================
   ACTIVITIES SECTION - Mit dynamischer JS-Berechnung
   ======================================== */

.activities-section {
    padding: 3rem 0.01rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
    padding-top: 85px; 
}

.activities-section .container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Header */
.activities-section .section-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
     margin-top: 2rem;
}

.activities-section .section-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.8rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.activities-section .section-subtitle {
    font-size: 1rem;
    color: #666;
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.6;
    padding: 0 0.5rem;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.tab-button {
    padding: 0.65rem 1.2rem;
    min-width: 120px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-button:hover {
    border-color: #00BFA6;
    color: #00BFA6;
}

.tab-button.active {
    background: linear-gradient(135deg, #00BFA6, #00D4B8);
    border-color: #00BFA6;
    color: white;
}

/* ========================================
   MOBILE CAROUSEL (< 768px)
   ======================================== */

/* Carousel Container */
.activities-carousel {
    position: relative;
    padding: 0;
    overflow: visible; /* ⭐ Wichtig: Schatten nicht abschneiden */
}

/* Desktop Navigation verstecken auf Mobile */
.carousel-nav {
    display: none;
}

/* Carousel Track - JS setzt maxWidth dynamisch */
.carousel-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: visible; /* ⭐ Vertikale Overflow sichtbar für Schatten */
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2rem 1rem 2rem; /* ⭐ Extra Padding für Schatten (oben/unten) */
    margin: -1rem 0; /* ⭐ Negatives Margin um Padding zu kompensieren */
    scroll-snap-type: x mandatory;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

/* Activity Card */
.activity-card {
    min-width: 95%;
    max-width: 360px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* ⭐ Schatten */
    overflow: hidden;
    transition: all 0.3s ease;
    scroll-snap-align: center;
    flex-shrink: 0;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12); /* ⭐ Größerer Schatten bei Hover */
}

/* Card Header */
.card-header {
    height: 180px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 250, 217, 0.2) 0%, transparent 70%);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #00BFA6, #00D4B8);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    z-index: 1;
}

.card-type {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #00BFA6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Body */
.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.65rem;
    line-height: 1.3;
}

.card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: #666;
}

.meta-item i {
    color: #00BFA6;
    flex-shrink: 0;
}

/* Interest Tags */
.interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1rem;
}

.interest-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, rgba(0, 255, 221, 0.1), rgba(81, 255, 232, 0.1));
    border: 1px solid rgba(0, 191, 166, 0.2);
    border-radius: 18px;
    font-size: 0.8rem;
    color: #00332c;
    font-weight: 500;
}

.interest-tag i {
    width: 12px;
    height: 12px;
}

/* Link Button */
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.85rem;
    padding: 0.55rem 1rem;
    background: linear-gradient(135deg, #00BFA6, #00D4B8);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card-link:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 191, 166, 0.3);
}

.card-link i {
    width: 14px;
    height: 14px;
}

/* Carousel Dots (Mobile) */
.carousel-dots-activities {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    background: rgba(0, 191, 166, 0.3);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: #00BFA6;
    width: 10px;
    height: 10px;
}

/* ========================================
   TABLET & DESKTOP (ab 768px)
   ======================================== */

@media (min-width: 768px) {
    .activities-section {
        padding: 4rem 1.5rem;
    }

    .activities-section .section-title {
        font-size: 2.2rem;
    }

    .activities-section .section-subtitle {
        font-size: 1.1rem;
        padding: 0;
    }

    .category-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 2.5rem;
        padding: 0;
        overflow-x: visible;
    }

    .tab-button {
        width: auto;
        min-width: auto;
        padding: 0.7rem 1.75rem;
        font-size: 1rem;
    }

    /* ⭐ Carousel mit Platz für Navigation */
    .activities-carousel {
        padding: 0 50px; /* Platz für Navigation-Buttons */
        overflow: visible; /* ⭐ Schatten sichtbar */
    }

    /* Navigation Buttons anzeigen */
    .carousel-nav {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background: white;
        border: 2px solid #e0e0e0;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 10;
    }

    .carousel-nav:hover {
        background: #00BFA6;
        border-color: #00BFA6;
        color: white;
    }

    .carousel-nav.prev {
        left: 0;
    }

    .carousel-nav.next {
        right: 0;
    }

    .carousel-nav i {
        width: 19px;
        height: 19px;
    }

    /* Dots verstecken */
    .carousel-dots-activities {
        display: none;
    }

    /* ⭐ Track - JS berechnet maxWidth dynamisch */
    .carousel-track {
        gap: 1.5rem;
        padding: 2rem 0; /* ⭐ Mehr Padding für Schatten */
        margin: -1rem 0; /* ⭐ Kompensiere Padding */
        scroll-snap-type: none;
        overflow-x: auto;
        overflow-y: visible; /* ⭐ Schatten sichtbar */
    }

    .activity-card {
        min-width: 320px;
        max-width: 320px;
        scroll-snap-align: start;
    }

    .card-header {
        height: 190px;
        padding: 1.75rem;
    }

    .card-icon {
        width: 75px;
        height: 75px;
        border-radius: 19px;
    }

    .card-body {
        padding: 1.75rem;
    }

    .card-title {
        font-size: 1.2rem;
        margin-bottom: 0.7rem;
    }

    .meta-item {
        font-size: 0.875rem;
        gap: 0.5rem;
    }

    .card-type {
        font-size: 0.75rem;
    }
}

/* ========================================
   DESKTOP (ab 1024px)
   ======================================== */

@media (min-width: 1024px) {
    .activities-section {
        padding: 6rem 2rem;
    }

    .activities-section .section-header {
        margin-bottom: 4rem;
    }

    .activities-section .section-title {
        font-size: 3rem;
    }

    .activities-section .section-subtitle {
        font-size: 1.2rem;
        max-width: 700px;
        line-height: 1.7;
    }

    .category-tabs {
        margin-bottom: 3rem;
    }

    .tab-button {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }

    .carousel-track {
        gap: 2rem;
        padding: 2.5rem 1rem; /* ⭐ Noch mehr Padding für größere Schatten */
        margin: -1.5rem 0;
    }

    .activity-card {
        min-width: 380px;
        max-width: 380px;
    }

    .activity-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15); /* ⭐ Großer Schatten */
    }

    .card-header {
        height: 200px;
        padding: 2rem;
    }

    .card-icon {
        width: 80px;
        height: 80px;
        border-radius: 20px;
    }

    .card-type {
        top: 1rem;
        right: 1rem;
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }

    .card-body {
        padding: 2rem;
    }

    .card-title {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .card-meta {
        gap: 0.5rem;
        margin-bottom: 1.25rem;
    }

    .meta-item {
        font-size: 0.9rem;
        gap: 0.5rem;
    }

    .interest-tags {
        gap: 0.5rem;
        margin-top: 1.25rem;
    }

    .interest-tag {
        padding: 0.4rem 0.9rem;
        border-radius: 20px;
        font-size: 0.85rem;
        gap: 0.4rem;
    }

    .interest-tag i {
        width: 14px;
        height: 14px;
    }

    .carousel-nav {
        width: 48px;
        height: 48px;
    }

    .carousel-nav i {
        width: 20px;
        height: 20px;
    }

    .card-link {
        margin-top: 1rem;
        padding: 0.6rem 1.2rem;
        border-radius: 12px;
        font-size: 0.9rem;
        gap: 0.5rem;
    }

    .card-link i {
        width: 16px;
        height: 16px;
    }
}