
/* ==========================================
   HADEKI – PREISSEITE

   Eigenständige CSS-Datei

   - Minzgrüner Hintergrund
   - LEGO-Navigation
   - Kinderlogo
   - Tariftabellen
   - Zusatzangebote
   - Einmalige Kosten
   - Petrolgrüner Footer
   - Responsive Gestaltung
========================================== */


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

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

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

body {
    background: #e4f5ee;
    color: #24483f;

    font-family:
        "Trebuchet MS",
        Arial,
        sans-serif;
}

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

    width: 100%;

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

    background: #e4f5ee;
}


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

.kopfbereich {
    position: relative;

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

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

    padding: 18px 110px 16px;
}


/* KINDERLOGO */

.kopf-logo {
    position: absolute;

    top: 16px;
    left: 24px;

    display: block;

    width: 90px;
    height: 90px;
}

.kopf-logo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


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

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

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

    width: 100%;
    min-width: 0;

    text-decoration: none;
}

.navifeld img {
    display: block;

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

    object-fit: contain;

    transition: transform 0.2s ease;
}

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

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


/* ==========================================
   4. HAUPTINHALT
========================================== */

.inhalt {
    flex: 1 1 auto;

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

    margin: 0 auto;
    padding: 22px 30px 65px;
}


/* ==========================================
   5. SEITENEINLEITUNG
========================================== */

.einleitung {
    max-width: 750px;

    margin: 0 auto 32px;

    text-align: center;
}

.einleitung h1 {
    margin: 0 0 12px;

    color: #1f4f46;

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

.einleitung > p:not(.rubrik) {
    margin: 0;

    color: #42685e;

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


/* ==========================================
   6. RUBRIK
========================================== */

.rubrik {
    margin: 0 0 8px;

    color: #4a8776;

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

    text-transform: uppercase;
}


/* ==========================================
   7. TARIFKARTEN
========================================== */

.tarifkarte {
    margin-bottom: 24px;
    padding: 30px;

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

    background: #fbfffc;

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

.tarifkarte h2 {
    margin: 0 0 24px;

    color: #1f4f46;

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


/* ==========================================
   8. TABELLEN
========================================== */

.tabellenbereich {
    width: 100%;
    overflow-x: auto;
}

.tariftabelle {
    width: 100%;

    border-collapse: collapse;

    color: #24483f;

    font-size: 15px;
    text-align: left;
}

.tariftabelle th,
.tariftabelle td {
    padding: 15px 12px;

    vertical-align: middle;
}

.tariftabelle thead th {
    border-bottom:
        2px solid #c8e0d5;

    color: #2a8b91;

    font-weight: 700;
    white-space: nowrap;
}

.tariftabelle tbody tr {
    border-bottom:
        1px solid #e2efe8;
}

.tariftabelle tbody tr:last-child {
    border-bottom: none;
}

.tariftabelle tbody tr:nth-child(even) {
    background: #f2faf6;
}

.tariftabelle tbody th {
    color: #1f4f46;
    font-weight: 700;
}

.preis {
    font-weight: 700;
    white-space: nowrap;
}


/* ==========================================
   9. PREISHINWEISE
========================================== */

.hinweiskarte {
    margin: 0 0 24px;
    padding: 22px 28px;

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

    background: #edf8f2;

    text-align: center;
}

.hinweiskarte h2 {
    margin: 0 0 12px;

    color: #1f4f46;

    font-size: 20px;
}

.hinweiskarte p {
    margin: 8px 0;

    color: #42685e;

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

.hinweiskarte strong {
    color: #1f4f46;
}


/* ==========================================
   10. ZUSATZANGEBOTE
========================================== */

.zusatz-hinweis {
    display: block;

    margin-top: 4px;

    color: #52776c;

    font-size: 12px;
    font-weight: 400;
}

.modul-hinweis {
    display: block;

    margin-top: 4px;

    color: #52776c;

    font-size: 13px;
    font-weight: 400;
}

.kartenhinweis {
    margin: 20px 0 0;

    color: #52776c;

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


/* ==========================================
   11. ABSCHLUSS UND ZURÜCK-LINK
========================================== */

.abschluss {
    margin-top: 30px;
    text-align: center;
}

.abschluss p {
    margin: 0 0 20px;

    color: #42685e;
    line-height: 1.6;
}

.zurueck-link {
    display: inline-block;

    padding: 12px 24px;

    border: 1px solid #b5d5c7;
    border-radius: 25px;

    background: #e4f5ee;

    color: #1f4f46;
    font-weight: 700;

    text-decoration: none;

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

.zurueck-link:hover {
    background: #d0ebde;
    transform: translateY(-2px);
}


/* ==========================================
   12. FOOTER
========================================== */

.site-footer {
    flex: 0 0 auto;

    width: 100%;

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

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

    color: #ffffff;

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


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

.footer-inner {
    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;
}

.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;
    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-bottom: 3px;
}

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

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


/* ==========================================
   14. TABLETS
========================================== */

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

    .kopfbereich {
        min-height: 115px;
        padding: 18px 85px 12px;
    }

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

        width: 65px;
        height: 65px;
    }

    .navigation {
        gap: 8px;
    }

    .navifeld img {
        max-width: 125px;
    }

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

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

    .tarifkarte {
        padding: 25px 20px;
    }

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

        gap: 17px 30px;

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

}


/* ==========================================
   15. SMARTPHONES
========================================== */

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

    /* NAVIGATION */

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

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

        width: 70px;
        height: 70px;
    }

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

        gap: 8px 12px;

        max-width: 320px;
    }

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


    /* HAUPTINHALT */

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

    .einleitung {
        margin-bottom: 22px;
    }

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

    .einleitung > p:not(.rubrik) {
        font-size: 15px;
    }


    /* TARIFKARTEN */

    .tarifkarte {
        padding: 22px 14px;
        border-radius: 15px;
    }

    .tarifkarte h2 {
        font-size: 22px;
    }


    /* TABELLEN */

    .tariftabelle {
        font-size: 13px;
    }

    .tariftabelle th,
    .tariftabelle td {
        padding: 12px 9px;
    }

    .tariftabelle thead th {
        white-space: normal;
    }


    /* HINWEISE */

    .hinweiskarte {
        padding: 20px 16px;
    }


    /* FOOTER */

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

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

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

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

}


/* ==========================================
   16. REDUZIERTE BEWEGUNG
========================================== */

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

    .navifeld img,
    .zurueck-link {
        transition: none;
    }

    .navifeld:hover img,
    .zurueck-link:hover {
        transform: none;
    }

}


