/* Grundlegende Einstellungen */
:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --text-color: #333;
    --bg-color: #f4f7f6;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}
html, body {height:100%; margin:0;  }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.main {flex: 1 0 auto}

a:link { text-decoration: none; }
a:hover {
  color: #4030F2
  text-decoration: underline;
}
/* Inhalt soll den verfügbaren Platz einnehmen */
.main {
  flex: 1 0 auto;
  }* {
	margin:0;
	padding:0;
}


.container {
    max-width: 1200px;
    margin: 1em auto; /* vorher 0 */
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: #0079F2;
    padding: 2px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}


/* Hero Section */
.hero {
    padding:  20px;
    text-align: left;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hier könnte man später ein Burger-Menü einbauen */
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}

footer {max-height:3em;
    text-align: center;
    padding: 0 0;
    background: #0079F2;
    color: #FFF;
    flex-shrink:0;
}

footer a {
    text-decoration: none;
    color: #fff;
    font-weight: 400;
   }
h4 {font-size:1.1rem; line-height: 1.4rem; }


/* Hamburger MENU */
.main-nav {
    background: #0079F2;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    font-family: 'Inter', serif; }

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
     font-family: 'Inter', sans-serif;
}

.nav-brand {color:#FFF; font-weight:600; font-family: 'Inter', sans-serif;  }

.nav-links li {
    margin-left: 25px;
     color:#FFF;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #666;
}

/* Mobile Einstellungen (Burger Menü) */
.menu-toggle {
    display: none; /* Auf Desktop verstecken */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    position: relative;
    
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: #fff;
    left: 0;
    transition: 0.3s;
    color:#FFF;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Wenn Bildschirm kleiner als 768px ist */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Burger zeigen */
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Menü ist versteckt */
        width: 70%;
        height: 100vh;
        background: #0079F2;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: 0.4s ease-in-out;
        z-index: 1000;
           }

    .nav-links.active {
        right: 0; /* Menü gleitet rein */
    }

    .nav-links li {
        margin: 20px 0;
    }
    
    /* Animation des Burgers zum X */
    .menu-toggle.open .hamburger { background: transparent; }
    .menu-toggle.open .hamburger::before { transform: rotate(45deg); top: 0; }
    .menu-toggle.open .hamburger::after { transform: rotate(-45deg); bottom: 0; }
}


 const menuToggle = document.querySelector('.menu-toggle');
    const navLinks = document.querySelector('.nav-links');

    menuToggle.addEventListener('click', () => {
        navLinks.classList.toggle('active');
        menuToggle.classList.toggle('open');
    });

    // Menü schließen, wenn ein Link geklickt wird (wichtig für Anker-Links)
    document.querySelectorAll('.nav-links a').forEach(link => {
        link.addEventListener('click', () => {
            navLinks.classList.remove('active');
            menuToggle.classList.remove('open');
        });
    });
