
/* ==========================================
   HADEKI – DIES UND DAS

   Eigenständige CSS-Datei

   Kinderlogo
   LEGO-Navigation
   Weihnachts-Countdown
   Weihnachtsbasteln
   3D-Bilderkarussell
   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;

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

    background: #e4f5ee;
}


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

.kopfbereich {
    position: relative;

    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;
    justify-content: center;
    align-items: center;

    min-width: 0;

    text-decoration: none;
}

.navifeld img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;

    transition: transform 0.2s ease;
}

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

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


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

.inhalt {
    flex: 1 1 auto;

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

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


/* ==========================================
   SEITENTITEL
========================================== */

.einleitung {
    max-width: 750px;

    margin: 0 auto 36px;

    text-align: center;
}

.einleitung h1 {
    margin: 0 0 12px;

    color: #1f4f46;

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

.einleitung p {
    margin: 0;

    color: #42685e;

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


/* ==========================================
   ZWEI THEMENKARTEN
========================================== */

.themen-raster {
    display: grid;

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

    gap: 24px;
}


/* ALLE WEISSEN KARTEN */

.themenkarte,
.galerie-karte {
    min-width: 0;

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

    background: #fbfffc;

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

.themenkarte {
    padding: 30px 28px;

    text-align: center;
}


/* KLEINE ÜBERSCHRIFT */

.rubrik {
    margin: 0 0 8px;

    color: #4a8776;

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

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


/* KARTENTITEL */

.themenkarte h2,
.galerie-karte h2 {
    margin: 0 0 15px;

    color: #1f4f46;

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


/* KARTENTEXTE */

.themenkarte > p:not(.rubrik),
.galerie-intro {
    color: #42685e;
    line-height: 1.6;
}


/* ==========================================
   WEIHNACHTS-COUNTDOWN
========================================== */

#output {
    display: block;

    margin: 24px 0 16px;

    color: #326f69;

    font-size: clamp(27px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.25;
}

.kartennotiz {
    margin: 18px 0 0;

    font-size: 14px;
}


/* ==========================================
   WEIHNACHTSBASTELN
========================================== */

.terminliste {
    list-style: none;

    margin: 18px 0;
    padding: 0;

    color: #315b50;

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

.terminliste li {
    padding: 5px 0;

    border-bottom:
        1px solid #e2efe8;
}

.terminliste li:last-child {
    border-bottom: none;
}


/* ==========================================
   IMPRESSIONEN – GALERIEKARTE
========================================== */

.galerie-karte {
    margin-top: 24px;
    padding: 30px 28px 27px;

    text-align: center;
}

.galerie-intro {
    max-width: 700px;

    margin: 0 auto;

    font-size: 15px;
}


/* ==========================================
   3D-KARUSSELL
========================================== */

/* SICHTBARER GALERIEBEREICH */

.karussell-bereich {
    width: 100%;

    overflow: hidden;
}


/* 3D-BÜHNE */

.zyl-scene {
    display: flex;

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

    width: 100%;
    height: 375px;

    margin: 12px auto 0;

    perspective: 1200px;

    touch-action: pan-y;

    cursor: grab;
}

.zyl-scene:active {
    cursor: grabbing;
}


/* DREHENDER ZYLINDER */

.zyl-carousel {
    position: relative;

    flex: 0 0 auto;

    width: 260px;
    height: 180px;

    transform-style: preserve-3d;
}


/* EINZELNE FOTOKARTEN */

.zyl-card {
    position: absolute;

    inset: 0;

    width: 260px;
    height: 180px;

    margin: 0;

    border-radius: 16px;

    overflow: hidden;

    box-shadow:
        0 10px 25px rgba(20, 58, 49, 0.18);

    backface-visibility: hidden;
}


/* FOTOS */

.zyl-card img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border: none;
    border-radius: 16px;
}


/* ==========================================
   KARUSSELL-STEUERUNG
========================================== */

.karussell-steuerung {
    display: flex;

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

    gap: 17px;
}


/* HINWEISTEXT */

.zyl-hint {
    max-width: 550px;

    margin: 0;

    color: #52776c;

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


/* PFEILKNÖPFE */

.drehknopf {
    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    border: 1px solid #bad6c9;
    border-radius: 50%;

    background: #e4f5ee;

    color: #1f4f46;

    font-size: 23px;

    cursor: pointer;
}

.drehknopf:hover {
    background: #d0ebde;
}


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


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

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

    color: #ffffff;

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


/* FOOTER-TEXTE */

.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-LINKS */

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

    overflow-wrap: anywhere;

    text-decoration: none;

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

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

    text-decoration: underline;

    transform: translateX(5px);
}


/* ==========================================
   TABLET
========================================== */

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

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

    .themen-raster {
        gap: 17px;
    }

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

        gap: 17px 30px;

        max-width: 640px;

        padding: 20px 24px;
    }

}


/* ==========================================
   HANDY
========================================== */

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

    /* LOGO UND NAVIGATION */

    .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 */

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

    .einleitung {
        margin-bottom: 28px;
    }

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

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


    /* THEMENKARTEN */

    .themen-raster {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .themenkarte {
        padding: 25px 20px;
    }

    .themenkarte h2,
    .galerie-karte h2 {
        font-size: 22px;
    }


    /* GALERIE */

    .galerie-karte {
        margin-top: 15px;

        padding: 25px 12px;
    }


    /* KLEINERES KARUSSELL */

    .zyl-scene {
        height: 290px;

        perspective: 1000px;
    }

    .zyl-carousel,
    .zyl-card {
        width: 190px;
        height: 140px;
    }


    /* KARUSSELL-STEUERUNG */

    .karussell-steuerung {
        gap: 8px;
    }

    .zyl-hint {
        font-size: 12px;
    }

    .drehknopf {
        flex-basis: 34px;

        width: 34px;
        height: 34px;
    }


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

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

}
