
/* ==========================================
   HADEKI – STARTSEITE

   Vollständige eigenständige CSS-Datei

   - Zartes Minzgrün
   - Kleine LEGO-Navigation
   - Fünf Fächer
   - Weisse Trennlinien
   - Kinderlogo im Mittelpunkt
   - Drei Popups
   - Petrolgrüner Footer
   - Tablet und Smartphone
========================================== */


/* ==========================================
   1. GRUNDEINSTELLUNGEN
========================================== */

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

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

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

.seite,
.startseite {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    background: #e4f5ee;
}


/* ==========================================
   2. KOPFBEREICH
========================================== */

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

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

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

    margin: 0;
    padding: 16px 24px;

    background: #e4f5ee;
}


/* ==========================================
   3. LEGO-NAVIGATION

   Die LEGO-Steine sind bewusst kleiner.
========================================== */

.startseite .navigation {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    justify-items: center;

    gap: 12px;

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

    margin: 0 auto;
    padding: 0;
}

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

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    border: none;
    text-decoration: none;
}

.startseite .navifeld img {
    display: block;

    width: 100%;
    max-width: 140px;
    height: auto;
    max-height: 95px;

    object-fit: contain;

    border: 0;

    transition: transform 0.2s ease;
}

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

.startseite .navifeld:focus-visible {
    outline: 3px solid #326f69;
    outline-offset: 5px;
    border-radius: 8px;
}


/* ==========================================
   4. MITTELTEIL
========================================== */

.startseite .start-inhalt {
    position: relative;

    display: flex;
    flex: 1 1 auto;

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

    margin: 0;
    padding: 0;

    background: transparent;
}

.startseite .faecher {
    position: relative;
    flex: 1 1 auto;

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

    margin: 0;
    padding: 0;

    background: transparent;
    overflow: hidden;
}


/* ==========================================
   5. WEISSE TRENNLINIEN
========================================== */

.startseite .faecher-linien {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    z-index: 1;
    pointer-events: none;
}

.startseite .faecher-linien line {
    fill: none;

    stroke: #ffffff;
    stroke-width: 2.5;
    stroke-linecap: round;

    vector-effect: non-scaling-stroke;
}


/* ==========================================
   6. TEXTGESTALTUNG DER FÄCHER
========================================== */

.startseite .fach {
    position: absolute;
    z-index: 2;

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

    padding: 10px;

    background: transparent;
    color: #24483f;
    text-align: center;
}

.startseite .fach-text {
    width: 100%;
    max-width: 100%;
}

.startseite .fach h1 {
    margin: 0 0 10px;

    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;

    color: #1f4f46;
}

.startseite .fach h2 {
    margin: 0 0 10px;

    font-size: 21px;
    line-height: 1.2;
    font-weight: 700;

    color: #1f4f46;
}

.startseite .fach p {
    margin: 0 0 11px;

    font-size: 15px;
    line-height: 1.35;

    color: #2d5a52;
}

.startseite .fach p:last-child {
    margin-bottom: 0;
}


/* ==========================================
   7. LINKS UND POPUP-KNÖPFE
========================================== */

.startseite .fach-link {
    display: inline-block;

    margin-top: 4px;
    padding: 0;

    border: 0;
    background: transparent;

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;

    color: #2d6f63;
    text-decoration: underline;

    cursor: pointer;
}

.startseite .fach-link:hover {
    color: #1f564c;
}

.startseite .fach-link:focus-visible {
    outline: 2px solid #2d6f63;
    outline-offset: 4px;
}


/* ==========================================
   8. FACH 1 – WILLKOMMEN
========================================== */

.startseite .fach-oben {
    top: 7%;
    left: 50%;

    transform: translateX(-50%);

    width: 36%;
    max-width: 500px;
}

.startseite .fach-oben .fach-text {
    max-width: 470px;
}

.startseite .fach-oben h1 {
    margin-bottom: 12px;
    font-size: 36px;
}


/* ==========================================
   9. FACH 2 – BETREUUNGSANGEBOT
========================================== */

.startseite .fach-links-oben {
    top: 23%;
    left: 5%;

    width: 24%;
    max-width: 420px;
}

.startseite .fach-links-oben .fach-text {
    max-width: 380px;
}


/* ==========================================
   10. FACH 3 – TARIFE
========================================== */

.startseite .fach-rechts-oben {
    top: 28%;
    right: 9%;

    width: 24%;
    max-width: 420px;
}

.startseite .fach-rechts-oben .fach-text {
    max-width: 380px;
}


/* ==========================================
   11. FACH 4 – BETRIEBSZEITEN
========================================== */

.startseite .fach-links-unten {
    bottom: 10%;
    left: 18%;

    width: 23%;
    max-width: 430px;
}

.startseite .fach-links-unten .fach-text {
    max-width: 380px;
}


/* ==========================================
   12. FACH 5 – KRIPPENBESICHTIGUNG
========================================== */

.startseite .fach-rechts-unten {
    bottom: 7%;
    right: 18%;

    width: 23%;
    max-width: 430px;
}

.startseite .fach-rechts-unten .fach-text {
    max-width: 380px;
}


/* ==========================================
   13. KINDERLOGO IM MITTELKREIS
========================================== */

.startseite .fach-logo {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

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

    width: 124px;
    height: 124px;

    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);

    z-index: 5;
}

.startseite .fach-logo img {
    display: block;

    width: 82%;
    height: 82%;

    object-fit: contain;
}


/* ==========================================
   14. POPUPS – GRUNDGESTALTUNG
========================================== */

.hadeki-popup {
    width: min(92%, 620px);
    max-height: 85vh;

    margin: auto;
    padding: 0;

    border: none;
    border-radius: 20px;

    background: #ffffff;
    color: #123f73;

    box-shadow: 0 12px 45px rgba(0, 30, 70, 0.28);

    overflow-y: auto;
}

.hadeki-popup::backdrop {
    background: rgba(9, 35, 70, 0.55);
}

.hadeki-popup .popup-inhalt {
    position: relative;

    padding: 36px 40px 34px;

    font-family: inherit;
    text-align: left;
}

.hadeki-popup .popup-inhalt h2 {
    margin: 0 42px 20px 0;

    color: #123f73;

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

.hadeki-popup .popup-inhalt h3 {
    margin: 0 0 18px;

    color: #075ba6;

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

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

    color: #123f73;

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

.hadeki-popup .popup-inhalt p:last-child {
    margin-bottom: 0;
}


/* ==========================================
   15. POPUP – SCHLIESSKREUZ
========================================== */

.hadeki-popup .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: #eaf3fc;
    color: #123f73;

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

    cursor: pointer;
}

.hadeki-popup .popup-schliessen:hover {
    background: #d3e7fa;
}

.hadeki-popup .popup-schliessen:focus-visible {
    outline: 2px solid #075ba6;
    outline-offset: 3px;
}


/* ==========================================
   16. POPUP – BETRIEBSZEITEN
========================================== */

.hadeki-popup .popup-oeffnungszeiten {
    margin: 0 0 28px;
    padding: 13px 16px;

    border-radius: 10px;
    background: #eaf3fc;

    color: #123f73;

    font-size: 25px;
    font-weight: 700;
    line-height: 1.3;

    text-align: center;
}

.hadeki-popup .popup-ferien {
    display: flex;
    flex-direction: column;

    gap: 12px;
    margin-top: 4px;
}

.hadeki-popup .ferien-eintrag {
    display: flex;
    align-items: baseline;
    justify-content: space-between;

    gap: 16px;
    padding: 12px 14px;

    border-radius: 10px;
    background: #f0f7fd;

    color: #123f73;

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

.hadeki-popup .ferien-eintrag span {
    text-align: right;
}


/* ==========================================
   17. POPUP – KRIPPENBESICHTIGUNG
========================================== */

.hadeki-popup .popup-kontakt {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 20px;

    margin: 22px 0;
    padding: 18px 20px;

    background: #f0f7fd;
    border-radius: 12px;
}

.hadeki-popup .popup-kontakt-link {
    display: block;

    color: #075ba6;

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

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

.hadeki-popup .popup-kontakt-link:hover {
    text-decoration: underline;
}

.hadeki-popup .popup-abschluss {
    margin-top: 22px;

    color: #075ba6;

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

    text-align: center;
}


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

.startseite .site-footer {
    position: relative;
    flex: 0 0 auto;

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

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

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

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

    color: #ffffff;
}


/* ==========================================
   19. FOOTER – VIER SPALTEN
========================================== */

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

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

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

    color: #ffffff;

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

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

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

    opacity: 1;
}

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

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

    margin: 0;
    padding: 0;
}

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

.startseite .footer-block a {
    text-decoration: none;
    overflow-wrap: anywhere;
}

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

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


/* ==========================================
   20. ALTE LEGO-ZUSATZLINKS AUSBLENDEN
========================================== */

.startseite .lego-mobile-links {
    display: none !important;
}


/* ==========================================
   21. GROSSE BILDSCHIRME
========================================== */

@media screen and (min-width: 1500px) {

    .startseite .fach h2 {
        font-size: 23px;
    }

    .startseite .fach p {
        font-size: 16px;
    }

    .startseite .fach-logo {
        width: 132px;
        height: 132px;
    }

}


/* ==========================================
   22. MITTLERE BILDSCHIRME
========================================== */

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

    .startseite .fach-oben h1 {
        font-size: 30px;
    }

    .startseite .fach h2 {
        font-size: 19px;
    }

    .startseite .fach p {
        font-size: 14px;
        line-height: 1.3;
    }

    .startseite .fach-oben {
        width: 39%;
    }

    .startseite .fach-links-oben,
    .startseite .fach-rechts-oben {
        width: 26%;
    }

    .startseite .fach-links-unten,
    .startseite .fach-rechts-unten {
        width: 24%;
    }

    .startseite .fach-logo {
        width: 108px;
        height: 108px;
    }

}


/* ==========================================
   23. TABLETS
========================================== */

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

    /* KOPFBEREICH */

    .startseite .kopfbereich {
        min-height: 110px;
        padding: 14px 18px;
    }

    .startseite .navigation {
        max-width: 570px;
        gap: 9px;
    }

    .startseite .navifeld img {
        max-width: 128px;
    }


    /* FÜNF FÄCHER UNTEREINANDER */

    .startseite .start-inhalt {
        display: block;
        min-height: 0;
    }

    .startseite .faecher {
        display: flex;
        flex-direction: column;

        width: 100%;
        height: auto;
        min-height: 0;

        padding: 20px 4% 30px;

        overflow: visible;
    }

    .startseite .faecher-linien {
        display: none;
    }

    .startseite .fach,
    .startseite .fach-oben,
    .startseite .fach-links-oben,
    .startseite .fach-rechts-oben,
    .startseite .fach-links-unten,
    .startseite .fach-rechts-unten {

        position: static;
        display: block;

        transform: none;

        width: 100%;
        max-width: none;

        margin: 0 0 14px;
        padding: 18px;

        text-align: center;

        background: rgba(255, 255, 255, 0.18);
        border-radius: 10px;
    }

    .startseite .fach-text {
        width: 100%;
        max-width: 540px;

        margin: 0 auto;
    }

    .startseite .fach-oben h1 {
        font-size: 28px;
    }

    .startseite .fach h2 {
        font-size: 21px;
    }

    .startseite .fach p {
        font-size: 16px;
    }


    /* KINDERLOGO */

    .startseite .fach-logo {
        position: static;
        order: -1;

        transform: none;

        width: 100px;
        height: 100px;

        margin: 12px auto 24px;
    }


    /* FOOTER MIT ZWEI SPALTEN */

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

        gap: 17px 30px;
        max-width: 640px;

        padding: 20px 24px;
    }

}


/* ==========================================
   24. SMARTPHONES
========================================== */

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

    /* LEGO-NAVIGATION IN ZWEI REIHEN */

    .startseite .kopfbereich {
        min-height: 0;
        padding: 18px 12px 12px;
    }

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

        max-width: 310px;
        gap: 8px 12px;
    }

    .startseite .navifeld img {
        max-width: 135px;
        max-height: 90px;
    }


    /* FÄCHER */

    .startseite .fach {
        padding: 16px;
    }

    .startseite .fach-oben h1 {
        font-size: 26px;
    }

    .startseite .fach h2 {
        font-size: 19px;
    }

    .startseite .fach p {
        font-size: 15px;
        line-height: 1.4;
    }


    /* KINDERLOGO */

    .startseite .fach-logo {
        width: 90px;
        height: 90px;
    }


    /* POPUPS */

    .hadeki-popup {
        width: 94%;
        max-height: 88vh;
        border-radius: 16px;
    }

    .hadeki-popup .popup-inhalt {
        padding: 28px 23px;
    }

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

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

    .hadeki-popup .popup-inhalt p {
        font-size: 15px;
        line-height: 1.5;
    }

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

    .hadeki-popup .popup-oeffnungszeiten {
        font-size: 22px;
    }

    .hadeki-popup .ferien-eintrag {
        flex-direction: column;
        gap: 4px;

        font-size: 15px;
    }

    .hadeki-popup .ferien-eintrag span {
        text-align: left;
    }

    .hadeki-popup .popup-kontakt {
        padding: 14px;
    }

    .hadeki-popup .popup-kontakt-link {
        font-size: 15px;
    }

    .hadeki-popup .popup-abschluss {
        font-size: 18px;
    }


    /* FOOTER MIT ZWEI SPALTEN */

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

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

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

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

}


/* ==========================================
   25. REDUZIERTE BEWEGUNG
========================================== */

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

    .startseite .navifeld img {
        transition: none;
    }

    .startseite .navifeld:hover img {
        transform: none;
    }

}
