/* Grundlegende Stile und Resets */
body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f4;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    color: #1a1a1a;
}

p {
    margin-bottom: 1em;
}

a {
    color: #0056b3; /* Blau für Links */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: disc; /* Standard Listenpunkte */
    padding-left: 20px; /* Einrückung für Listen */
    margin-bottom: 1em;
}

li {
    margin-bottom: 0.5em; /* Abstand zwischen Listenelementen */
}

/* Layout Container */
header, nav, main, footer {
    max-width: 960px; /* Maximale Breite des Inhalts */
    margin: 0 auto;   /* Zentriert den Inhalt */
    padding: 1.5em;    /* Innenabstand */
    background-color: #fff; /* Weißer Hintergrund für Hauptbereiche */
    margin-bottom: 1em; /* Abstand zwischen den Bereichen */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Leichter Schatten */
}

header {
    text-align: center;
    border-bottom: 2px solid #ccc;
}

header h1 {
    margin-bottom: 0.2em;
}

/* Navigation */
nav ul {
    list-style: none; /* Keine Listenpunkte für die Navi */
    padding: 0;
    margin: 0;
    display: flex; /* Flexible Box für horizontale Anordnung */
    justify-content: center; /* Zentriert die Navi-Elemente */
    flex-wrap: wrap; /* Lässt Elemente umbrechen auf kleinen Schirmen */
}

nav li {
    margin: 0 1em; /* Abstand zwischen Navi-Elementen */
}

nav a {
    font-weight: bold;
    padding: 0.5em 1em;
    display: block;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav a:hover,
nav a.active { /* Styling für Hover und aktive Seite */
    background-color: #e9e9e9;
    text-decoration: none;
}

/* Hauptinhalt */
main section {
    margin-bottom: 2em; /* Abstand zwischen den Sections */
}

main section h2 {
    border-bottom: 1px solid #eee;
    padding-bottom: 0.3em;
    margin-bottom: 1em;
}

main article {
    margin-bottom: 1.5em;
    padding-left: 10px;
    border-left: 3px solid #0056b3; /* Linker Rand für Artikel */
}

/* Footer */
footer {
    text-align: center;
    font-size: 0.9em;
    color: #666;
    margin-top: 2em;
    padding: 1em;
    background-color: #e9e9e9;
    box-shadow: none;
}

/* Responsive Anpassungen (Beispiel) */
@media (max-width: 768px) {
    header, nav, main, footer {
        padding: 1em;
    }

    nav ul {
        flex-direction: column; /* Navi untereinander auf kleinen Schirmen */
        align-items: center;
    }

    nav li {
        margin: 0.5em 0; /* Vertikaler Abstand für Navi-Elemente */
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px; /* Etwas kleinere Schrift auf sehr kleinen Geräten */
    }
    header h1 {
        font-size: 1.8em;
    }
}