
/* ==========================================
   HADEKI – TEAMSEITE
   Eigenständige CSS-Datei
========================================== */


/* ==========================================
   GRUNDEINSTELLUNGEN
========================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Trebuchet MS", Arial, sans-serif;
    background: #e4f5ee;
    color: #24483f;
}

.seite {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    background: #e4f5ee;
}


/* ==========================================
   KOPFBEREICH
========================================== */

.kopfbereich {
    position: relative;
    flex: 0 0 auto;

    width: 100%;
    min-height: 140px;

    padding: 18px 24px 12px;
}


/* KINDERLOGO */

.kopf-logo {
    position: absolute;

    top: 18px;
    left: 24px;

    width: 90px;
    height: 90px;

    z-index: 2;
}

.kopf-logo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* ==========================================
   LEGO-NAVIGATION
========================================== */

.navigation {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    align-items: center;
    gap: 15px;

    width: 100%;
    max-width: 760px;

    margin: 0 auto;
}

.navifeld {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;

    text-decoration: none;
    cursor: pointer;
}

.navifeld img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;

    transition: transform 0.2s ease;
}

.navifeld:hover img {
    transform: translateY(-5px);
}

.navifeld:focus-visible {
    outline: 3px solid #326f69;
    outline-offset: 4px;

    border-radius: 8px;
}


/* ==========================================
   HAUPTINHALT
========================================== */

.inhalt {
    flex: 1 1 auto;

    width: 100%;
    max-width: 1140px;

    margin: 0 auto;
    padding: 20px 35px 70px;
}


/* ==========================================
   TEAM-EINLEITUNG
========================================== */

.team-einleitung {
    max-width: 750px;

    margin: 0 auto 40px;

    text-align: center;
}

.team-einleitung h1 {
    margin: 0 0 12px;

    color: #1f4f46;

    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

.team-einleitung p {
    margin: 0;

    color: #42685e;

    font-size: 17px;
    line-height: 1.6;
}


/* ==========================================
   SECHS TEAMFELDER
========================================== */

.team-raster {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}

.teamfeld {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 175px;

    padding: 25px 18px;

    border: 1px solid #c8e0d5;
    border-radius: 16px;

    background: #fbfffc;

    font-family: inherit;
    text-align: center;

    cursor: pointer;

    box-shadow:
        0 5px 16px rgba(34, 91, 75, 0.05);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.teamfeld:hover {
    transform: translateY(-5px);

    background: #ffffff;
    border-color: #80b7a3;

    box-shadow:
        0 9px 22px rgba(34, 91, 75, 0.11);
}

.teamfeld:focus-visible {
    outline: 3px solid #326f69;
    outline-offset: 4px;
}


/* NAMEN */

.team-name {
    display: block;

    margin-bottom: 10px;

    color: #1f4f46;

    font-size: 23px;
    font-weight: 700;
    line-height: 1.25;
}


/* BERUFSBEZEICHNUNGEN */

.team-beruf {
    display: block;

    min-height: 38px;
    margin-bottom: 14px;

    color: #52776c;

    font-size: 15px;
    line-height: 1.4;
}


/* MEHR ERFAHREN */

.team-mehr {
    display: block;

    color: #326f69;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;

    text-decoration: underline;
}

.teamfeld:hover .team-mehr {
    color: #1f4f46;
}


/* ==========================================
   POPUPS – ALLGEMEIN
========================================== */

.team-popup {
    box-sizing: border-box;

    width: min(92%, 600px);
    max-height: 88vh;

    margin: auto;
    padding: 0;

    border: none;
    border-radius: 20px;

    background: #ffffff;
    color: #24483f;

    box-shadow:
        0 16px 50px rgba(20, 58, 49, 0.28);

    overflow-y: auto;
}

.team-popup::backdrop {
    background: rgba(16, 52, 44, 0.55);
}

.popup-inhalt {
    position: relative;

    padding: 38px 40px 36px;
}

.popup-inhalt h2 {
    margin: 0 45px 18px 0;

    color: #1f4f46;

    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.popup-inhalt > p {
    margin: 0 0 15px;

    color: #42685e;

    font-size: 16px;
    line-height: 1.6;
}


/* ==========================================
   POPUP-SCHLIESSKREUZ
========================================== */

.popup-schliessen {
    position: absolute;

    top: 18px;
    right: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    padding: 0;

    border: none;
    border-radius: 50%;

    background: #e4f5ee;
    color: #1f4f46;

    font-family: Arial, sans-serif;
    font-size: 28px;
    line-height: 1;

    cursor: pointer;
    z-index: 5;
}

.popup-schliessen:hover {
    background: #cde8dc;
}

.popup-schliessen:focus-visible {
    outline: 2px solid #326f69;
    outline-offset: 3px;
}


/* ==========================================
   GROSSE POPUPS
   RONNY, DIANA UND LILIAN
========================================== */

.popup-gross {
    width: min(94%, 960px);
    max-height: 90vh;
}

.popup-gross .popup-inhalt {
    padding: 34px 38px 30px;
}


/* ==========================================
   OBEN: PORTRÄT LINKS
   STECKBRIEF RECHTS
========================================== */

.diana-oben {
    display: grid;

    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(0, 1.1fr);

    align-items: center;

    gap: 30px;
}


/* GROSSES PORTRÄT */

.comic-bereich {
    min-width: 0;
}

.comic-bild {
    display: block;

    width: 100%;
    height: auto;
    max-height: 350px;

    object-fit: contain;
    object-position: center;

    border: none;
    border-radius: 0;

    background: transparent;
}


/* ==========================================
   STECKBRIEF
========================================== */

.diana-text {
    min-width: 0;
}

.diana-text h2 {
    margin: 0 44px 5px 0;

    color: #1f4f46;

    font-size: 36px;
    line-height: 1.2;
}

.diana-beruf {
    margin: 0 0 18px;

    color: #326f69;

    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}

.steckbrief-einleitung {
    margin: 0 0 20px;

    color: #315b50;

    font-size: 16px;
    line-height: 1.55;
}

.steckbrief-punkt {
    display: flex;
    align-items: flex-start;

    gap: 13px;

    margin-bottom: 16px;
}

.steckbrief-symbol {
    flex: 0 0 30px;

    color: #326f69;

    font-size: 27px;
    line-height: 1;
    text-align: center;
}

.steckbrief-punkt p {
    margin: 0;

    color: #42685e;

    font-size: 15px;
    line-height: 1.5;
}

.steckbrief-punkt strong {
    color: #1f4f46;
}


/* ==========================================
   UNTEN: DREI GLEICH GROSSE FOTOFLÄCHEN
========================================== */

.foto-bereich {
    margin-top: 25px;
}

.foto-bereich h3 {
    margin: 0 0 15px;

    color: #1f4f46;

    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.foto-raster {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;
}


/* BILD UND BESCHRIFTUNG */

.foto-element {
    min-width: 0;
    margin: 0;

    background: transparent;
}

.foto-element img {
    display: block;

    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;

    object-fit: cover;
    object-position: center 30%;

    border-radius: 13px;
}

.foto-element figcaption {
    margin-top: 9px;
    padding: 0 3px;

    color: #315b50;

    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}


/* PLATZHALTER FÜR FEHLENDE FOTOS */

.foto-platzhalter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 7px;

    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;

    border: 2px dashed #a6d0bd;
    border-radius: 13px;

    background: #eff9f3;
    color: #52776c;

    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.foto-plus {
    display: block;

    font-size: 44px;
    font-weight: 400;
    line-height: 1;

    color: #78bba5;
}


/* ==========================================
   FOOTER
========================================== */

.site-footer {
    flex: 0 0 auto;

    width: 100%;
    margin: 0;
    padding: 0;

    border-top: 2px solid
        rgba(255, 255, 255, 0.85);

    background: linear-gradient(
        to bottom,
        #508b82 0%,
        #326f69 100%
    );

    box-shadow:
        0 -5px 18px rgba(30, 75, 65, 0.12);

    color: #ffffff;
}


/* VIER SPALTEN */

.footer-inner {
    display: grid;

    grid-template-columns:
        1fr 1.2fr 1fr 1.25fr;

    align-items: start;
    gap: 24px;

    width: 100%;
    max-width: 1080px;

    margin: 0 auto;
    padding: 19px 28px 21px;
}

.footer-block {
    min-width: 0;
    text-align: left;
}

.footer-block h3 {
    margin: 0 0 8px;

    color: #ffffff;

    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.footer-block p,
.footer-block li,
.footer-block a {
    color: #ffffff;

    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

.footer-block p {
    margin: 0 0 3px;
}

.footer-block ul {
    list-style: none;

    margin: 0;
    padding: 0;
}

.footer-block li {
    margin: 0 0 3px;
}

.footer-block a {
    display: inline-block;

    text-decoration: none;
    overflow-wrap: anywhere;

    transition:
        transform 0.2s ease,
        color 0.2s ease;
}

.footer-block a:hover {
    color: #e1fff2;
    text-decoration: underline;

    transform: translateX(5px);
}

.footer-block a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}


/* ==========================================
   MITTLERE BILDSCHIRME
========================================== */

@media screen and (max-width: 1100px) {

    .inhalt {
        padding: 20px 25px 60px;
    }

    .team-raster {
        gap: 18px;
    }

}


/* ==========================================
   TABLETS
========================================== */

@media screen and (max-width: 900px) {

    .kopfbereich {
        min-height: 120px;
        padding: 18px 20px 12px;
    }

    .kopf-logo {
        top: 16px;
        left: 15px;

        width: 65px;
        height: 65px;
    }

    .navigation {
        max-width: 680px;
        gap: 8px;
    }

    .inhalt {
        padding: 10px 22px 45px;
    }

    .team-einleitung h1 {
        font-size: 31px;
    }

    .team-raster {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 18px;
    }

    .diana-oben {
        gap: 20px;
    }

    .comic-bild {
        max-height: 300px;
    }

    .footer-inner {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 17px 30px;

        max-width: 640px;
        padding: 20px 24px;
    }

}


/* ==========================================
   SMARTPHONES
========================================== */

@media screen and (max-width: 650px) {

    .kopfbereich {
        min-height: 0;
        padding: 95px 15px 14px;
    }

    .kopf-logo {
        top: 15px;
        left: 15px;

        width: 70px;
        height: 70px;
    }

    .navigation {
        max-width: 480px;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 5px 12px;
    }

    .inhalt {
        padding: 12px 15px 40px;
    }

    .team-einleitung {
        margin-bottom: 28px;
    }

    .team-einleitung h1 {
        font-size: 27px;
    }

    .team-einleitung p {
        font-size: 15px;
    }

    .team-raster {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .teamfeld {
        min-height: 145px;
        padding: 22px 16px;
    }

    .team-name {
        font-size: 21px;
    }

    .team-beruf {
        min-height: 0;
        font-size: 14px;
    }


    /* POPUPS */

    .team-popup {
        width: 94%;
        max-height: 88vh;

        border-radius: 16px;
    }

    .popup-inhalt,
    .popup-gross .popup-inhalt {
        padding: 28px 20px;
    }

    .popup-schliessen {
        top: 12px;
        right: 12px;
    }


    /* PORTRÄT UND STECKBRIEF */

    .diana-oben {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .comic-bild {
        max-height: 280px;
    }

    .diana-text h2 {
        font-size: 28px;
    }

    .diana-beruf {
        font-size: 16px;
    }

    .steckbrief-einleitung {
        font-size: 15px;
    }

    .steckbrief-punkt p {
        font-size: 14px;
    }


    /* FOTOS */

    .foto-bereich h3 {
        font-size: 19px;
    }

    .foto-raster {
        grid-template-columns: 1fr;
        gap: 12px;
    }


    /* FOOTER */

    .footer-inner {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 18px 16px;
        padding: 20px 18px;
    }

    .footer-block h3 {
        font-size: 16px;
    }

    .footer-block p,
    .footer-block li,
    .footer-block a {
        font-size: 13px;
    }

}


/* ==========================================
   BEWEGUNGEN REDUZIEREN
========================================== */

@media (prefers-reduced-motion: reduce) {

    .navifeld img,
    .teamfeld,
    .footer-block a {
        transition: none;
    }

    .navifeld:hover img,
    .teamfeld:hover,
    .footer-block a:hover {
        transform: none;
    }

}
