/* About Section Styles */
.about {
    background-color: var(--secondary-color);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.05;
    border-radius: 50%;
}

.about::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--gradient-start) 0%, transparent 70%);
    opacity: 0.05;
    border-radius: 50%;
}

.about h2 {
    margin-bottom: 40px;
}

.about p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
}

/* Team Photos Container - Carousel für alle Bildschirmgrößen */
.team-photos-container {
    position: relative;
    overflow: visible;
    width: 90%;
    max-width: 600px;
    aspect-ratio: 4/3;
    margin: 80px auto 120px;
    border-radius: 20px;
}

/* Inner Container für overflow hidden */
.team-photos-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.03);
    z-index: -1;
}

/* Carousel Track */
.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
}

/* Team Photos im Carousel */
.team-photo {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    opacity: 1;
    transform: none;
    filter: none;
    margin: 0;
    padding: 0 10px;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-photo > * {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: none;
    border-radius: 20px;
}

/* Spezieller Bildausschnitt für das erste Bild auf Desktop/Tablet */
@media (min-width: 577px) {
    .team-photo-1 img {
        object-position: center 25%;
    }
}

/* Carousel Dots - außerhalb des Containers */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 5px;
}

/* Keine individuellen Positionierungen mehr */
.team-photo-1,
.team-photo-2,
.team-photo-3,
.team-photo-4,
.team-photo-5 {
    /* Alle Bilder gleich behandeln */
}

/* Statistik-Bereich Styling */
.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 60px;
    gap: 30px;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    filter: none;
}

.stat-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    /* Explizite Farbwerte anstelle von Variablen, um konsistente Darstellung zu gewährleisten */
    background: linear-gradient(90deg, #ff8c42, #9054f7);
    transition: height 0.5s ease;
    /* Garantiert, dass keine Filter angewendet werden, die die Farben verändern könnten */
    filter: none;
    opacity: 1;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-item:hover::before {
    height: 6px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    display: inline-block;
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: inline-block;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 10px;
}

/* Fußnote für Statistiken */
.stats-footnote {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.8;
    font-style: italic;
}

.stats-footnote p {
    margin-bottom: 0;
}

/* Responsive Anpassungen */
@media (min-width: 992px) {
    /* Größere Desktop-Bildschirme - noch mehr Höhe */
    .team-photos-container {
        max-width: 650px;
        aspect-ratio: 3/2;
    }
}

@media (max-width: 992px) {
    .team-photos-container {
        max-width: 500px;
        aspect-ratio: 4/3;
    }
}

@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        width: 100%;
        max-width: 300px;
    }
    
    .team-photos-container {
        width: 85%;
        max-width: 400px;
        aspect-ratio: 1/1;
        margin: 60px auto 100px;
    }
}

@media (max-width: 576px) {
    .stat-number {
        font-size: 2.8rem;
    }
    
    .stat-suffix {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .stats-footnote {
        font-size: 0.75rem;
        margin-top: 15px;
    }
    
    .team-photos-container {
        width: 90%;
        max-width: 320px;
        aspect-ratio: 1/1;
        margin: 50px auto 80px;
    }
    
    .carousel-dots {
        bottom: -30px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .dot.active {
        width: 25px;
    }
}