/* =========================
   ABOUT US PAGE
========================= */

.about-header {
    position: relative;
    width: calc(100% + 50px); /* Beispiel: 30px links + 20px rechts Padding vom main */
    margin-left: -30px;        /* links das Padding ausgleichen */
    /* Hintergrundbild statt Farbe */
    background-image: url('/assets/images/Flansch2.webp');
    background-size: cover;       /* Bild füllt den gesamten Bereich */
    background-position: center;  /* Bild zentriert */
    background-repeat: no-repeat; /* Wiederholung verhindern */
    padding: 40px 0;
    text-align: center;
    box-sizing: border-box;
}
.about-header::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.4); /* z. B. dunkler Overlay */
    z-index: 0;
}
.about-us-container {
    margin: 0;
    padding: 0;               /* nur Content-Padding, Header bleibt außen */
}
.about-header > * {
    position: relative;
    z-index: 1; /* Text über Overlay */
}

.about-header h1 {
    color: #fff;
    font-size: 2.5rem;
    margin: 0;
    z-index:1;
}

/* Intro links/rechts */
.about-intro {
    display: flex;
    flex-wrap: wrap;
    gap: 100px;
    margin: 40px 0;
    
}

.about-text {
    flex: 1 1 300px;
}

.about-text h2 {
    margin-bottom: 5px;
}

.about-text h3 {
    margin-top: 0;
}

.about-video {
    flex: 1 1 00px;
}

.about-video video {
    width: 100%;
    border-radius: 8px;
}

/* Team Section */
.about-team-section {
    margin-top: 20px;
    text-align: center;
}

.about-team-section h2 {
    font-size: 2rem;
}

.about-team-section p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.team-carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    
}

.team-member {
    position: relative;
    flex: 0 0 auto; /* Basisbreite übernimmt JS */
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    border: 5px solid var(--headerbg);
    border-radius: 8px;
}

.team-member img {
    width: 100%;  /* Höhe passt sich automatisch an die Breite an */
    display: block;
    object-fit: cover;
    object-position: center;
    height: auto; /* sehr wichtig */
    
}
/* Hover Info */
.team-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 5px;
    text-align: center;
    transition: bottom 0.3s ease;
    max-height: 100%; /* Overlay nie zu hoch */
    box-sizing: border-box;
}

.team-info h3 {
    font-size: clamp(12px, 2vw, 32px); /* Skaliert mit Bildschirm */
    margin: 2px 0;
}

.team-info p {
    font-size: clamp(12px, 1.5vw, 32px);
    margin: 0;
}

.team-member:hover .team-info {
    bottom: 0;
}
.certificates-container {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.certificates-container a {
    flex: 1;
}

.certificates-container img {
    width: 100%;
    max-width: 500px;
    border: 5px solid var(--headerbg);
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificates-container img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
    .about-intro {
        flex-direction: column;
    }
    .about-video, .about-text {
        flex: 1 1 100%;
    }
}
@media (max-width: 700px) {
    .team-member {
        flex: 0 0 90%;   /* fast volle Breite auf Mobile */
        max-width: 300px; /* optional Obergrenze */
    }

    .team-member img {
        width: 100%;
        height: auto;
    }
}