/* =======================================================
   Header & Navigation Styles
   (inklusive Scrollbar Fix für konsistente Header-Position)
   ======================================================= */

/* =======================
   HTML & Body - globale Einstellungen
   ======================= */
html {
    height: 100%;
    overflow-y: scroll; /* Scrollbar immer sichtbar, verhindert Header-Springen */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color); /* Light/Dark Mode */
    color: var(--text-color);           /* Light/Dark Mode */
}

/* =======================
   HEADER
   ======================= */
header {
    background-color: var(--header-bg);
    padding: 14px 20px;
    text-align: center;
    height: 90px;
    box-sizing: border-box;
    flex-shrink: 0; /* Header schrumpft nicht */
    
     /* Flexbox für vertikale Zentrierung */
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertikal zentrieren */
    align-items: center;     /* horizontal zentrieren */
}

header h1 {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2em); /* dynamische Schriftgröße */
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.2;
    color: var(--text-color);
   }

header p {
    margin: 4px 0 0 0; 
    /*top: 4px;
    font-size: 1em;*/
    font-size: clamp(0.9rem, 3vw, 1em);
    font-weight: 300;    
    line-height: 1.2;
    color: var(--text-color);
}

/* =======================
   NAVIGATION
   ======================= */
nav {
    background-color: var(--nav-bg);
    padding: 8px;
    text-align: center;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--link-color);
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    padding-bottom: 3px;
}

nav a:hover {
    border-bottom: 2px solid var(--link-hover-border);
}

nav a.active {
    border-bottom: 2px solid var(--link-hover-border);
}

/* =======================
   FOOTER
   ======================= */
footer {
    text-align: center;
    padding: 10px 20px;
    background-color: var(--footer-bg);
    color: var(--text-color);
    margin-top: 40px;
    font-size: 0.9em;
}

/* =======================
   MAIN WRAPPER
   =======================
   overflow-y: auto sorgt für Scrollbarkeit im Inhalt,
   html overflow-y: scroll verhindert Header-Springen
   ======================= */
main {
    flex: 1 0 auto;
    overflow-y: auto;
}
/* =======================
   RESPONSIVE STYLES
   ======================= */
@media (max-width: 768px) { /* Tablet */
    header h1 {
        font-size: clamp(1.5rem, 4vw, 2em);
    }
    header p {
        font-size: clamp(0.8rem, 3vw, 1em);
    }
}

@media (max-width: 480px) { /* Smartphone */
    header {
        height: auto; /* passt sich Inhalt an */
        padding: 10px 12px;
    }
    header h1 {
        font-size: clamp(1.2rem, 5vw, 1.8em);
    }
    header p {
        font-size: clamp(0.7rem, 3vw, 0.95em);
    }
}
