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

   Zartes Minzgrün
   Fünf Fächer
   Drei Popups
   Footer mit Petrolgrün-Verlauf
========================================== */


/* ==========================================
   SEITENHINTERGRUND
========================================== */

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

body {
    background: #e4f5ee;
}

.startseite {
    background: #e4f5ee;
    color: #24483f;
}


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


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


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

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

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

    box-sizing: border-box;
    padding: 10px;

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

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

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


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


/* ==========================================
   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 {
    font-size: 36px;
    margin-bottom: 12px;
}


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


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


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


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


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


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

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

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

.popup-inhalt {
    position: relative;
    box-sizing: border-box;

    padding: 36px 40px 34px;

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

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

    color: #123f73;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
}

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

    color: #075ba6;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 700;
}

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

    color: #123f73;
    font-size: 16px;
    line-height: 1.6;
}

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


/* ==========================================
   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: #eaf3fc;
    color: #123f73;

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

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

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


/* ==========================================
   POPUP – BETRIEBSZEITEN
========================================== */

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

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

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

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

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


/* ==========================================
   POPUP – KRIPPENBESICHTIGUNG
========================================== */

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

    gap: 20px;

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

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

.popup-kontakt-link {
    display: block;

    color: #075ba6;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;

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

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

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

    color: #075ba6;
    font-size: 19px;
    font-weight: 700;

    text-align: center;
}


/* ==========================================
   NEUER FOOTER – PETROLGRÜN

   Deutlicher Kontrast zum Minzgrün.
   Vier Spalten bleiben erhalten.
========================================== */

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

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

    border-radius: 0;

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

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

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

    color: #ffffff;
}


/* ==========================================
   FOOTER – VIER SPALTEN
========================================== */

.startseite .footer-inner {
    box-sizing: border-box;
    display: grid;

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

    gap: 24px;

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

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

    align-items: start;
}


/* ==========================================
   FOOTER – ÜBERSCHRIFTEN
========================================== */

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


/* ==========================================
   FOOTER – TEXTE UND LINKS
========================================== */

.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;
    padding: 0;
    margin: 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;
}


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

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


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


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


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

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

    .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;
        box-sizing: border-box;

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

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

        margin: 12px auto 24px;

        width: 100px;
        height: 100px;
    }

    /* Footer auf zwei Spalten */

    .startseite .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: 600px) {

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

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

    /* Popups */

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

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

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

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

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

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

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

    .ferien-eintrag {
        flex-direction: column;
        gap: 4px;
        font-size: 15px;
    }

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

    .popup-kontakt {
        padding: 14px;
    }

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

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

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