* {
    margin: 0px;
    padding: 0px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

/* Navigation -----------------------------------------------------
----------------------------------------------------------------*/
body {
    padding-top: 5vh;
}

/* ------------------------------
   NAVIGATION MIT LOGO + GRID
------------------------------ */


nav {
    width: 100%;
    height: 12vh;
    /* genug Platz für Hamburger */
    background-color: rgba(255, 223, 223, 0.968);
    border: rgb(184, 184, 218) light solid;

    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    /* Logo | Menü | Hamburger */
    align-items: center;

    padding: 0 20px;
    overflow: visible;
    /* verhindert Abschneiden */
}

/* Logo links */
.nav-logo {
    height: 50px;
    width: auto;
    justify-self: start;
}

/* Menü in der Mitte */
nav .menue {
    display: flex;
    gap: 20px;
    justify-self: center;
}

nav .menue a {
    text-decoration: none;
    color: rgb(255, 255, 255);
    font-weight: 500;
    font-size: 20px;
    margin: 0;
}

nav a:hover {
    color: rgb(121, 39, 39);
}

nav a.selected {
    color: rgb(151, 94, 94);
}

/* Hamburger rechts */
.hamburger {

    justify-self: end;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;

    z-index: 3000;
    /* über allem */
    margin-right: 5vw;
    /* Abstand vom Rand */
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: #6e1717;
    border-radius: 3px;
}



/* Allgemeine Styles -----------------------------------------------------
----------------------------------------------------------------*/


html {
    scroll-padding-top: 10vh;
}

.menue {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}


.page {

    min-height: 90vh;
}



header {
    padding: 0;
    margin: 0;
    width: 100%;

    background-size: cover;
    color: rgb(255, 221, 221);
}


header section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    margin: 5vh;

}

.fade-in-title {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideIn 1.2s ease-out forwards;
}




h1 {
    font-family: 'Georgia', serif;
    color: #ffe3e3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 2px;





}

.header_style ::after {
    content: '';
    display: block;
    width: 320px;
    height: 4px;
    background: #ffe3e3;
    margin: 16px auto 0;
    border-radius: 999px;
}




@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}




/* CSS ICON PFEIL FÜR ZURÜCK-------------------------------------------------------------------------------------------------------
        ----------------------------------------------------------------------------------------------------------------------------------- */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: #fff3f3;
    /* Rosa */
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

/* Pfeil nur mit CSS */
.back-to-top::before {
    content: "";
    width: 15px;
    height: 15px;
    border-left: 4px solid white;
    border-top: 4px solid white;
    transform: rotate(45deg);
    margin-bottom: -3px;
}

/* Hover-Effekt */
.back-to-top:hover {
    transform: scale(1.15);
    background: #ffdaeb;
}

html {
    scroll-behavior: smooth;
}













/* Footer -----------------------------------------------------
----------------------------------------------------------------*/



footer {
    background-color: rgba(255, 223, 223, 0.968);
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 20px;
    color: rgb(94, 28, 28);
    font-size: 14px;
}













/* ------------------------------
   HAMBURGER ICON – STANDARD (versteckt)
------------------------------ */
.hamburger {
    width: 30px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: absolute;
    right: 20px;
    z-index: 3000;
}

.hamburger span {
    display: block;
    height: 4px;
    background: rgb(255, 255, 255);
    border-radius: 2px;
    transition: 0.3s ease;
}

/* Fade & Slide Animation */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* ------------------------------
   RESPONSIVE – MOBILE (max 780px)
------------------------------ */

@media (max-width: 780px) {

    /* Hamburger sichtbar */
    .hamburger {
        display: flex;
    }

    /* Menü verstecken */
    nav .menue {
        position: absolute;
        top: 10vh;
        right: 0;
        background: rgba(255, 234, 234, 0.473);
        border-radius: 20px;
        flex-direction: column;
        width: 150px;

        display: none;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    /* Menü geöffnet */
    nav .menue.open {
        display: flex;
    }

    nav .menue a {
        color: #6e1717;
        padding: 10px 0;
        border-bottom: 1px solid #ddd;
    }
}

/* ------------------------------
   HAMBURGER ANIMATION (X)
------------------------------ */

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}
























/******************************************************************************************
**********************************************************************************************

ab ad begintt da für Handy

*******************************************************************************************
******************************************************************************************
*******************************************************************************************/

/* Mobile Responsivität */
@media (max-width: 768px) {

    /* Global */
    * {
        margin: 0px;
        padding: 0px;
    }

    html {
        scroll-padding-top: auto;
    }

    .nav-logo {
        height: 40px;
    }

    nav .menue {
        position: absolute;
        top: 12vh;
        right: 20px;
        background: rgba(255, 234, 234, 0.9);
        border-radius: 20px;
        flex-direction: column;
        width: 150px;

        display: none;
        padding: 10px 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    nav .menue.open {
        display: flex;
    }

    nav .menue a {
        color: #6e1717;
        padding: 10px 0;
        border-bottom: 1px solid #ddd;
    }

    /* Header */
    header {
        
        height: auto;
        width: 100vw;
        
        
    }

    header section {
        align-items: center;
        justify-content: center;
        
    }

    header h1 {
        justify-content: center;
        font-size: 1.3rem;
        text-align: center;
        padding-left: 2vw;
        padding-right: 2vw;
    }

    /* Pages */
    .page {
        min-height: auto;
        padding: 20px;
    }

    /* Sections */
    section h2 {
        font-size: 1.5rem;
        
    }

    section h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    /* Articles */


    article p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }



    /* Footer */
    footer {
        padding: 20px;
        text-align: center;
        margin-top: 30px;
    }

    footer a {
        font-size: 0.9rem;
        padding: 8px 15px;
    }



}









/* Extra small devices (max-width: 480px)

*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
@media (max-width: 480px) {

    nav a {
        font-size: 12px;
        margin: 3px 5px;
        padding: 5px 10px;
    }

    header {
        
        padding: 15px 0;
    }

    header h1 {
        font-size: 1.3rem;
    }

    section h2 {
        font-size: 1.2rem;
    }

    section h3 {
        font-size: 1rem;
    }

    .grid-container {
        grid-template-columns: 1fr;
        grid-auto-rows: 150px;
    }

    .grid-container-kmd {
        grid-template-columns: 1fr;
    }



    body {
        font-size: 13px;
    }




    /* kmd---------------------------------------------------------------
    ----------------------------------------------------------------------      
    ---------------------------------------------------------------------- */

}