/* ==================================================
   TEAM
   ================================================== */

.team {

    position: relative;

    width: 100vw;

    margin-left: calc(50% - 50vw);

    min-height: 100vh;

    overflow: visible;

}


/* ==================================================
   FOTO-EBENE
   ================================================== */

.team-fotos {

    position: absolute;

    top: -170px;

    left: -20px;

    width: calc(100% + 1px);

    height: calc(100% + 170px);

    overflow: hidden;

    pointer-events: none;

    z-index: 1;

}


/* ==================================================
   HEROBILD
   ================================================== */

.team-bild {

    position: absolute;

    top: 0;

    left: 50%;

    width: 144vw;

    max-width: none;

    transform: translateX(-50%);

    pointer-events: none;

    opacity: 0;

    animation:
        teamBildFadeIn
        2.2s
        ease-out
        .35s
        forwards;

    will-change: opacity;

    -webkit-mask-image:
        linear-gradient(
            to bottom,
            black 0%,
            black 68%,
            rgba(0,0,0,.85) 76%,
            rgba(0,0,0,.55) 84%,
            rgba(0,0,0,.25) 92%,
            transparent 100%
        ),
        linear-gradient(
            to right,
            black 0%,
            black 18%,
            rgba(0,0,0,.85) 27%,
            rgba(0,0,0,.45) 38%,
            transparent 50%,
            rgba(0,0,0,.45) 62%,
            rgba(0,0,0,.85) 73%,
            black 82%,
            black 100%
        );

    mask-image:
        linear-gradient(
            to bottom,
            black 0%,
            black 68%,
            rgba(0,0,0,.85) 76%,
            rgba(0,0,0,.55) 84%,
            rgba(0,0,0,.25) 92%,
            transparent 100%
        ),
        linear-gradient(
            to right,
            black 0%,
            black 18%,
            rgba(0,0,0,.85) 27%,
            rgba(0,0,0,.45) 38%,
            transparent 50%,
            rgba(0,0,0,.45) 62%,
            rgba(0,0,0,.85) 73%,
            black 82%,
            black 100%
        );

    -webkit-mask-composite: source-in;

    mask-composite: intersect;

}

@keyframes teamBildFadeIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

.team-bild img {

    display: block;

    width: 100%;

    height: auto;

    box-shadow:
        0 25px 60px
        rgba(0,0,0,.14);

}


/* ==================================================
   INHALT
   ================================================== */

.team-content {

    position: relative;

    z-index: 3;

    max-width: 1000px;

    margin: 0 auto;

    padding:
        0
        var(--space-md)
        var(--space-xl);

}


/* ==================================================
   WILLKOMMEN
   ================================================== */

.team-welcome {

    display: block;

    margin-bottom: var(--space-md);

    transform: translateX(-4rem);

}


/* ==================================================
   EINLEITUNG
   ================================================== */

.team-intro {

    max-width: 720px;

    margin-bottom: 4rem;

}


.team-intro h1 {

    margin-top: 0;

    margin-bottom: var(--space-md);

    font-size: 2rem;

    font-weight: 600;

    color: var(--text);

}


.team-intro p {

    max-width: 68ch;

}


/* ==================================================
   TEAM-KARTEN
   ================================================== */

.team-personen-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 2rem;

    margin-bottom: 4rem;

}


/* ==================================================
   TEAM-KARTE
   ================================================== */

.team-person {

    display: flex;

    flex-direction: column;

    width: 100%;

    min-width: 0;

    padding: 0;

    margin: 0;

    border: none;

    border-top:
        1px solid
        rgba(29,121,137,.35);

    background:
        rgba(255,255,255,.42);

    color: var(--text);

    font-family: inherit;

    font-size: inherit;

    line-height: inherit;

    text-align: left;

    cursor: pointer;

    appearance: none;

    -webkit-appearance: none;

    transition:
        transform .3s ease,
        background-color .3s ease,
        box-shadow .3s ease;

}


.team-person:hover {

    transform: translateY(-4px);

    background:
        rgba(255,255,255,.72);

    box-shadow:
        0 14px 35px
        rgba(0,0,0,.08);

}


.team-person:focus-visible {

    outline:
        2px solid
        var(--accent);

    outline-offset: 4px;

}


/* ==================================================
   TEAM-BILD
   ================================================== */

.team-person-bild {

    width: 100%;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    background:
        rgba(255,255,255,.55);

}


.team-person-bild img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform .4s ease;

}


.team-person:hover
.team-person-bild img {

    transform: scale(1.03);

}


/* ==================================================
   STAN
   ================================================== */

.team-person-bild-stan {

    display: flex;

    align-items: flex-end;

    justify-content: center;

}


.team-person-bild-stan img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    transform: scale(.92);

    filter:
        drop-shadow(
            0 12px 20px
            rgba(0,0,0,.12)
        );

}


.team-person:hover
.team-person-bild-stan img {

    transform: scale(.95);

}


/* ==================================================
   KARTEN-INHALT
   ================================================== */

.team-person-inhalt {

    padding:
        1.25rem
        1.5rem
        1.5rem;

}


.team-person-inhalt h2 {

    margin: 0 0 .25rem;

    font-size: 1.35rem;

    font-weight: 600;

    color: var(--text);

}


.team-person-beruf {

    margin: 0;

    color: var(--muted);

    font-size: 1rem;

}


/* ==================================================
   ABSCHLUSS
   ================================================== */

.team-abschluss {

    max-width: 720px;

    margin-top: 4rem;

    margin-bottom: 2rem;

}


.team-abschluss p {

    font-size: 1.05rem;

}


/* ==================================================
   MODAL – HINTERGRUND
   ================================================== */

.team-modal {

    position: fixed;

    top: 160px;

    right: 0;

    bottom: 0;

    left: 0;

    display: flex;

    align-items: flex-start;

    justify-content: center;

    padding:
        2rem
        var(--space-md)
        3rem;

    background:
        rgba(255,255,255,.10);

    backdrop-filter: blur(9px);

    -webkit-backdrop-filter: blur(9px);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .3s ease,
        visibility .3s ease;

    z-index: 1000;

}


.team-modal.is-open {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

}


/* ==================================================
   TEAM-MODAL – SCROLLSPERRE
   ================================================== */

html.team-modal-open,
body.team-modal-open {

    overflow:
        hidden;

}


/*
 * Ist der Inhalt des Modals oben oder unten angekommen,
 * darf der Scrollimpuls nicht an die darunterliegende
 * Seite weitergegeben werden.
 */

.team-modal-inner {

    overscroll-behavior:
        contain;

    -webkit-overflow-scrolling:
        touch;

}


/*
 * Auch das äußere Modal selbst soll keinen
 * Scrollimpuls an die Seite weiterreichen.
 */

.team-modal {

    overscroll-behavior:
        none;

}


/* ==================================================
   BODY WÄHREND MODAL
   ================================================== */

body.team-modal-open {

    overflow: hidden;

}


/* ==================================================
   MODAL – INNEN
   ================================================== */

.team-modal-inner {

    position: relative;

    display: grid;

    grid-template-columns:
        minmax(260px,.85fr)
        minmax(0,1.15fr);

    column-gap: 4rem;

    width:
        min(
            950px,
            calc(100vw - 4rem)
        );

    max-height:
        calc(100vh - 200px);

    overflow-y: auto;

    margin: 0 auto;

    padding:
        3rem
        3.5rem
        3.5rem;

    box-sizing: border-box;

    background:
        rgba(255,255,255,.88);

    backdrop-filter:
        blur(14px)
        saturate(1.08);

    -webkit-backdrop-filter:
        blur(14px)
        saturate(1.08);

    border:
        1px solid
        rgba(255,255,255,.75);

    border-radius: 6px;

    box-shadow:
        0 30px 80px
        rgba(0,0,0,.16);

    transform: translateY(20px);

    transition:
        transform .3s ease;

}


.team-modal.is-open
.team-modal-inner {

    transform: translateY(0);

}


/* ==================================================
   LINKE SEITE
   ================================================== */

.team-modal-links {

    min-width: 0;

}


/* ==================================================
   MODAL-BILD
   ================================================== */

.team-modal-bild {

    position: relative;

    width: 100%;

    max-width: 280px;

    aspect-ratio: 4 / 5;

    overflow: hidden;

    margin:
        0 0 1.5rem;

    box-shadow:
        0 20px 45px
        rgba(0,0,0,.16);

}


.team-modal-bild img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

}


/* ==================================================
   MODAL – NAME + BERUF
   ================================================== */

.team-modal-person {

    margin-bottom: 2.5rem;

}


.team-modal-person h2 {

    margin:
        0 0 .25rem;

    font-size: 2rem;

    font-weight: 600;

    line-height: 1.15;

    color: var(--text);

}


.team-modal-person
.team-person-beruf {

    margin: 0;

    color: var(--muted);

    font-size: 1rem;

}


/* ==================================================
   MODAL – WERDEGANG
   ================================================== */

.team-modal-weg {

    max-width: 360px;

    margin: 0;

    padding: 0;

}


.team-modal-weg-abschnitt {

    margin-bottom: 2rem;

}


.team-modal-weg-abschnitt h3 {

    margin:
        0 0 .65rem;

    font-size: 1.05rem;

    font-weight: 600;

    color: var(--text);

}


.team-modal-weg-abschnitt p {

    margin: 0;

    font-size: .96rem;

    line-height: 1.65;

    color: var(--muted);

}


/* ==================================================
   KONTAKT
   ================================================== */

.team-modal-kontakt {

    margin-top: 2rem;

    padding-top: 1.25rem;

    border-top:
        1px solid
        rgba(29,121,137,.25);

}


.team-person-email {

    color: var(--accent);

    text-decoration: none;

    font-size: .95rem;

}


.team-person-email:hover {

    text-decoration: underline;

}


/* ==================================================
   RECHTE SEITE
   ================================================== */

.team-modal-text {

    min-width: 0;

    padding-top: .25rem;

}


/* ==================================================
   MODAL – ABSCHNITTE
   ================================================== */

.team-modal-text
.team-modal-abschnitt {

    margin-bottom: 2rem;

}


.team-modal-text
.team-modal-abschnitt h3 {

    margin:
        0 0 1.5rem;

    padding: 0;

    font-size: 1.25rem;

    font-weight: 600;

    color: var(--text);

}


.team-modal-abschnitt p {

    margin: 0;

    font-size: .96rem;

    line-height: 1.65;

}


/* ==================================================
   FORTBILDUNGEN
   ================================================== */

.team-modal-fortbildung {

    position: relative;

    margin-bottom: 1.75rem;

    padding-left: 1.25rem;

}


.team-modal-fortbildung::before {

    content: "";

    position: absolute;

    left: 0;

    top: .35rem;

    width: .65rem;

    height: .65rem;

    background: #f2c94c;

    border-radius: 50%;

}


.team-modal-fortbildung h4 {

    margin:
        0 0 .45rem;

    font-size: .98rem;

    font-weight: 600;

    color: var(--text);

}


.team-modal-fortbildung p {

    margin: 0;

    color: var(--muted);

    font-size: .96rem;

    line-height: 1.65;

}


/* ==================================================
   MODAL – CLAIM
   ================================================== */

.team-modal-claim {

    display: block;

    margin:
        3rem 0 0;

    padding: 0;

    font-family:
        "Overpass",
        sans-serif;

    font-size: 2.2rem;

    font-weight: 600;

    line-height: 1.2;

    color: var(--muted);

}
.team-modal .team-modal-claim {
    color:var(--color-muted);
}

/* ==================================================
   CLAIM – GELBER PUNKT
   ================================================== */

.team-modal-claim::before {

    content: "";

    display: inline-block;

    width: .4em;

    height: .4em;

    margin-right: .1em;

    background: #f2c94c;

    border-radius: 50%;

    transform:
        translateY(-.38em);

}


/* ==================================================
   MODAL – SCHLIESSEN
   ================================================== */

.team-modal-close {

    position: absolute;

    top: .85rem;

    right: .85rem;

    z-index: 10;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 2.5rem;

    height: 2.5rem;

    padding: 0;

    border: none;

    border-radius: 50%;

    background: transparent;

    color: var(--muted);

    font-family: inherit;

    font-size: 2rem;

    line-height: 1;

    cursor: pointer;

}


.team-modal-close:hover {

    background:
        rgba(29,121,137,.10);

    color: var(--accent);

}


.team-modal-close:focus-visible {

    outline:
        2px solid
        var(--accent);

    outline-offset: 2px;

}



```css
/* ==================================================
   TEAM-MODAL – VIEWPORT
   ================================================== */

.team-modal {

    position: fixed;

    top: 160px;
    right: 0;
    bottom: 0;
    left: 0;

    z-index: 2147483647;

    box-sizing: border-box;

    overflow: hidden;

}


/* ==================================================
   MODAL-INHALT
   ================================================== */

.team-modal-inner {

    position: relative;

    z-index: 1;

    max-height:
        calc(100vh - 200px);

    overflow-y: auto;

    overscroll-behavior: contain;

    -webkit-overflow-scrolling: touch;

}
```




/* ==================================================
   TEAM – MOBILE BILDGESTALTUNG
   ================================================== */

/* --------------------------------------------------
   MOBILE GRUNDANPASSUNG
   -------------------------------------------------- */

@media (max-width: 900px) {

    .team-fotos {

        top:
            -130px;

        left:
            -35px;

        width:
            calc(100% + 70px);

        height:
            calc(100% + 180px);

    }


    .team-bild {

        width:
            125vw;

        max-width:
            none;

    }

}


/* --------------------------------------------------
   HOCHFORMAT
   Bild Deckkraft reduziert
   -------------------------------------------------- */

@media (max-width: 700px)
and (orientation: portrait) {

    .team-fotos {

        display:
            block;

        opacity:
            .28;

    }


    .team-bild {

        width:
            125vw;

    }

}

/* ==================================================
   TEAM – WILLKOMMEN RESPONSIVE
   ================================================== */

@media (max-width: 1023px) {

    .team-welcome {

        transform:
            translateX(-1.5rem);

        font-size:
            clamp(2.2rem, 7.5vw, 3rem);

        width:
            calc(100% + 2rem);

    }

}



/* --------------------------------------------------
   QUERFORMAT
   Bild Deckkraft erhöhen
   -------------------------------------------------- */

@media (max-width: 900px)
and (orientation: landscape) {

    .team-fotos {

        opacity:
            1;

    }

}

/* ==================================================
   TABLET
   ================================================== */

@media (max-width: 900px) {

    .team-modal {

        top: 100px;

        padding: 1rem;

    }


    .team-modal-inner {

        grid-template-columns:
            minmax(220px,.85fr)
            minmax(0,1.15fr);

        column-gap: 2.5rem;

        width:
            min(
                800px,
                calc(100vw - 2rem)
            );

        max-height:
            calc(100vh - 140px);

        padding:
            2.5rem
            2rem
            2.5rem;

    }


    .team-modal-bild {

        max-width: 220px;

    }


    .team-modal-person h2 {

        font-size: 1.7rem;

    }


    .team-modal-claim {

        margin-top: 2.5rem;

        font-size: 2rem;

    }

}


/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 700px) {

    .team-modal { 
		top: 80px; bottom: 0; 
	
	}
	
	.team-personen-grid {

        grid-template-columns:
            repeat(2, minmax(0,1fr));

        gap: 1.25rem;

    }


    .team-modal {

        top: 80px;

        padding: .75rem;

    }


    .team-modal-inner {

        display: block;

        width:
            calc(100vw - 1.5rem);

        max-height:
            calc(100vh - 100px);

        padding:
            2rem
            1.5rem
            2rem;

    }


    .team-modal-links {

        width: 100%;

    }


    .team-modal-bild {

        width: 200px;

        max-width: 100%;

        margin:
            0 0 1.5rem;

    }


    .team-modal-person {

        margin-bottom: 2rem;

    }


    .team-modal-person h2 {

        font-size: 1.7rem;

    }


    .team-modal-weg {

        max-width: none;

        margin-bottom: 2.5rem;

    }


    .team-modal-text {

        padding-top: 0;

    }


    .team-modal-claim {

        margin-top: 2.5rem;

        padding-top: 1.25rem;

        font-size: 1.8rem;

    }

}


/* ==================================================
   KLEINE MOBILE-GERÄTE
   ================================================== */

@media (max-width: 500px) {

    .team-personen-grid {

        grid-template-columns: 1fr;

    }


    .team-modal-inner {

        padding:
            2rem
            1.25rem
            1.5rem;

    }


    .team-modal-bild {

        width: 100%;

        max-width: 260px;

        aspect-ratio: 4 / 5;

    }


    .team-modal-person h2 {

        font-size: 1.55rem;

    }


    .team-modal-claim {

        font-size: 1.6rem;

    }

}


/* ==================================================
   REDUZIERTE BEWEGUNG
   ================================================== */

@media (prefers-reduced-motion: reduce) {

    .team-bild {

        animation:
            none;

        opacity:
            1;

    }


    .team-person,
    .team-person-bild img,
    .team-modal,
    .team-modal-inner {

        transition: none;

    }

}