
/* ==========================================
   HADEKI – JOBS UND AUSBILDUNG

   Eigenständige CSS-Datei
   Minzgrüner Hintergrund
   LEGO-Navigation
   Vier Jobfelder mit Popups
   Petrolgrüner Footer
========================================== */


/* ==========================================
   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 LINKS OBEN */

.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 65px;
}


/* ==========================================
   EINLEITUNG
========================================== */

.job-einleitung {
    max-width: 790px;

    margin: 0 auto 38px;

    text-align: center;
}

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

    color: #1f4f46;

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

.job-einleitung p {
    margin: 0;

    color: #42685e;

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


/* ==========================================
   VIER JOBFELDER
========================================== */

.job-raster {
    display: grid;

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

    gap: 24px;
}

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

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

    padding: 27px 22px;

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

    background: #fbfffc;

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

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

    cursor: pointer;

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

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

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

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

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


/* KATEGORIE */

.job-kategorie {
    display: block;

    margin-bottom: 10px;

    color: #4a8776;

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

    text-transform: uppercase;
    letter-spacing: 0.6px;
}


/* TITEL */

.job-titel {
    display: block;

    margin-bottom: 12px;

    color: #1f4f46;

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


/* ZUSATZTEXT */

.job-zusatz {
    display: block;

    margin-bottom: 19px;

    color: #52776c;

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


/* MEHR ERFAHREN */

.job-mehr {
    display: block;

    color: #326f69;

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

    text-decoration: underline;
}

.jobfeld:hover .job-mehr {
    color: #1f4f46;
}


/* ==========================================
   BEWERBUNGSHINWEIS
========================================== */

.bewerbung-hinweis {
    max-width: 720px;

    margin: 42px auto 0;
    padding: 25px 28px;

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

    background: rgba(255, 255, 255, 0.65);

    text-align: center;
}

.bewerbung-hinweis h2 {
    margin: 0 0 10px;

    color: #1f4f46;

    font-size: 24px;
    line-height: 1.3;
}

.bewerbung-hinweis p {
    margin: 0 0 20px;

    color: #42685e;

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

.bewerbung-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;

    gap: 12px;
}

.bewerbung-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 44px;

    padding: 11px 17px;

    border-radius: 10px;

    background: #326f69;
    color: #ffffff;

    font-size: 15px;
    font-weight: 700;

    text-decoration: none;

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

.bewerbung-links a:hover {
    background: #285b55;
    transform: translateY(-3px);
}


/* ==========================================
   POPUPS – GRUNDGESTALTUNG
========================================== */

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

    width: min(92%, 700px);
    max-height: 85vh;

    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;
}

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

.popup-inhalt {
    position: relative;

    padding: 36px 42px 40px;
}

.popup-kategorie {
    margin: 0 48px 8px 0;

    color: #4a8776;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;

    text-transform: uppercase;
}

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

    color: #1f4f46;

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

.popup-untertitel {
    margin: 0 0 24px;

    color: #326f69;

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

.popup-inhalt > p:not(.popup-kategorie) {
    color: #42685e;

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

.popup-inhalt h3 {
    margin: 27px 0 12px;

    color: #1f4f46;

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


/* ==========================================
   ANFORDERUNGSLISTEN
========================================== */

.anforderungen {
    margin: 0 0 18px;
    padding: 0 0 0 21px;
}

.anforderungen li {
    margin-bottom: 9px;

    color: #42685e;

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

.anforderungen li::marker {
    color: #4a8776;
}


/* ==========================================
   BEWERBEN-KNOPF IM POPUP
========================================== */

.popup-inhalt .popup-abschluss {
    margin: 25px 0 18px;

    color: #265c4f;

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

.bewerben-knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 12px 22px;

    border-radius: 10px;

    background: #326f69;
    color: #ffffff;

    font-size: 15px;
    font-weight: 700;

    text-decoration: none;

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

.bewerben-knopf:hover {
    background: #285b55;
    transform: translateY(-3px);
}

.bewerben-knopf:focus-visible,
.bewerbung-links a:focus-visible {
    outline: 3px solid #8ac3ae;
    outline-offset: 3px;
}


/* ==========================================
   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;
}

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

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


/* ==========================================
   FOOTER – PETROLGRÜNER VERLAUF
========================================== */

.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;
}


/* ==========================================
   FOOTER – 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-ÜBERSCHRIFTEN */

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

    color: #ffffff;

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


/* FOOTER-TEXTE UND LINKS */

.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 55px;
    }

    .job-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;
    }

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

    .job-titel {
        font-size: 22px;
    }

    .job-raster {
        gap: 16px;
    }

    .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;
    }

    .job-einleitung {
        margin-bottom: 27px;
    }

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

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

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

    .jobfeld {
        min-height: 170px;
        padding: 23px 16px;
    }

    .job-titel {
        font-size: 21px;
    }

    .job-zusatz {
        font-size: 14px;
    }

    .bewerbung-hinweis {
        margin-top: 30px;
        padding: 24px 18px;
    }

    .bewerbung-hinweis h2 {
        font-size: 21px;
    }

    .bewerbung-links {
        flex-direction: column;
        align-items: stretch;
    }

    .bewerbung-links a {
        width: 100%;
    }


    /* POPUPS */

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

        border-radius: 16px;
    }

    .popup-inhalt {
        padding: 30px 23px;
    }

    .popup-inhalt h2 {
        font-size: 24px;
    }

    .popup-inhalt > p:not(.popup-kategorie) {
        font-size: 15px;
    }

    .popup-inhalt h3 {
        font-size: 18px;
    }

    .anforderungen li {
        font-size: 14px;
    }

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

    .bewerben-knopf {
        width: 100%;
    }


    /* 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,
    .jobfeld,
    .bewerbung-links a,
    .bewerben-knopf,
    .footer-block a {
        transition: none;
    }

    .navifeld:hover img,
    .jobfeld:hover,
    .bewerbung-links a:hover,
    .bewerben-knopf:hover,
    .footer-block a:hover {
        transform: none;
    }

}
