/* Grundlagen */
body {
    padding: 0;
    margin: 0;
}

body.about-page .about-hero,
body.about-page .about-team {
    width: 100%;
    height: auto;
    min-height: 0;
}

body.about-page {
    overflow-x: hidden;
}

/* Über uns – oberer bereich */
body.about-page .about-hero {
    width: 100%;
    padding: 50px 7%;
    background-color: #ffffff;
}

body.about-page .about-hero__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

/* Text links */
body.about-page .about-hero__content {
    flex: 1;
    width: auto;
    max-width: 600px;
    min-width: 0;
}

body.about-page .about-eyebrow {
    display: block;
    margin: 0 0 10px;
}

body.about-page .about-hero__content h1 {
    margin: 0 0 25px;
}

body.about-page .about-hero__content p {
    margin: 0 0 16px;
}

body.about-page .about-hero__content p:last-child {
    margin-bottom: 0;
}

/* Video rechts */
body.about-page .about-video {
    width: 450px;
    max-width: 42%;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 20px;
    background-color: #111111;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

body.about-page .about-video video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background-color: #111111;
}

/* Team-bereich */
body.about-page .about-team {
    width: 100%;
    padding-top: 75px;
    padding-bottom: 100px;
    background-color: #f5f6f8;
}

body.about-page .about-team__inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Team-überschrift */
body.about-page .about-team__heading {
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto 50px;
    text-align: center;
}

body.about-page .about-team__heading h2 {
    margin: 0 0 15px;
}

body.about-page .about-team__heading p {
    margin: 0;
}

/* Profilkarten */
body.about-page .about-profile {
    width: 90%;
    margin: 0 auto 40px;
    padding: 30px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 35px;
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.10);
}

body.about-page .about-profile:last-child {
    margin-bottom: 0;
}

body.about-page #paula,
body.about-page #elias {
    scroll-margin-top: 100px;
}

/* Foto + position */
body.about-page .about-profile__person {
    width: 180px;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Profilbilder */
body.about-page .about-profile__photo {
    width: 180px;
    min-width: 180px;
    height: auto;
    flex: 0 0 180px;
    overflow: hidden;
    border-radius: 15px;
    background-color: transparent;
}

body.about-page .about-profile .about-profile__photo img {
    display: block !important;
    width: 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: initial !important;
    object-position: initial !important;
    border-radius: 15px !important;
    position: static !important;
    transform: none !important;
    animation: none !important;
}

/* Position unter dem foto */
body.about-page .about-profile__label {
    display: block;
    width: 100%;
    margin: 0;
    text-align: center;
}

/* Profiltext */
body.about-page .about-profile__content {
    flex: 1;
    width: auto;
    min-width: 0;
    padding: 0;
}

body.about-page .about-profile__content h3 {
    margin: 0 0 5px;
    padding: 0;
}

body.about-page .about-profile__role {
    margin: 0 0 20px;
    padding: 0;
}

/* Beschreibung */
body.about-page .about-profile__text {
    width: 100%;
    max-width: 760px;
}

body.about-page .about-profile__text p {
    margin: 0 0 14px;
    padding: 0;
    text-align: left;
}

body.about-page .about-profile__text p:last-child {
    margin-bottom: 0;
}

/* 1 qualifikationen */
body.about-page .qualifications {
    width: 100%;
    max-width: 760px;
    margin-top: 24px;
}

/* Standard-Pfeil von <details> entfernen */
body.about-page .qualifications summary {
    list-style: none;
}

body.about-page .qualifications summary::-webkit-details-marker {
    display: none;
}

/* Button */
body.about-page .qualifications__button {
    width: fit-content;
    padding: 11px 17px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--dark-blue, #2f79d3);
    border-radius: 10px;
    background-color: transparent;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover */
body.about-page .qualifications__button:hover {
    background-color: var(--dark-blue, #2f79d3);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(47, 121, 211, 0.18);
}

/* Pfeil */
body.about-page .qualifications__button::after {
    content: "+";
    display: inline-block;
    transition: transform 0.25s ease;
}

body.about-page .qualifications[open] .qualifications__button::after {
    content: "−";
}

/* Pfeil dreht sich beim Öffnen */
body.about-page .qualifications[open] .qualifications__button::after {
    transform: rotate(180deg);
}

/* Ausgeklappter bereich */
body.about-page .qualifications__content {
    width: 100%;
    margin-top: 16px;
    padding: 18px 22px;
    border-left: 3px solid var(--dark-blue, #2f79d3);
    border-radius: 0 12px 12px 0;
    background-color: #f5f7fa;
}

/* Liste */
body.about-page .qualifications__content ul {
    margin: 0;
    padding-left: 20px;
}

body.about-page .qualifications__content li {
    margin-bottom: 10px;
    padding-left: 3px;
}

body.about-page .qualifications__content li:last-child {
    margin-bottom: 0;
}

/* Geöffneter button */
body.about-page .qualifications[open] .qualifications__button {
    background-color: var(--dark-blue, #2f79d3);
}
/* Über uns – mobile Reihenfolge */
@media (max-width: 800px) {
    /* Video über dem Einführungstext */
    body.about-page .about-hero__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 28px;
    }

    body.about-page .about-video {
        order: -1;
        width: 100%;
        max-width: 600px;
        align-self: center;
    }

    body.about-page .about-hero__content {
        width: 100%;
        max-width: none;
    }

    /* Porträt über dem Profiltext bei Paula und Elias */
    body.about-page .about-profile {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    body.about-page .about-profile__person {
        order: -1;
        align-self: center;
    }

    body.about-page .about-profile__photo {
        flex: 0 0 auto;
    }

    body.about-page .about-profile__content {
        width: 100%;
    }
}