/* Grundlegende Seitenstruktur */
body {
    font-family: 'Arial', sans-serif;
    background-color: #e3f2fc;  /* Helles Blau für den Hintergrund */
    color: #333;  /* Dunkles Grau für den Text */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 16px;  /* Basisgröße für bessere Lesbarkeit */
}

/* Kopfzeile */
header {
    background-color: #81d4fa;  /* Helles Blau für die Kopfzeile */
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);  /* Schatten für Tiefe */
}

header h2 {
    margin: 0;
    font-size: 2em;  /* Größere Schrift für die Kopfzeile */
}

/* Navigation im Header */
header nav ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

header nav ul li {
    display: inline-block;
    margin: 0 15px;
}

header nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1em;
}

header nav ul li a:hover {
    text-decoration: underline;
}

/* Hauptinhalt */
main {
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
    background-color: #ffffff;  /* Weißer Hintergrund für den Hauptbereich */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

main h2 {
    color: #0288d1;  /* Dunkleres Blau für die Überschriften */
    font-size: 1.8em;
    margin-bottom: 15px;
}

/* Absätze (Blocksatz) */
p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #555555;  /* Dunkleres Grau für den Text */
    text-align: justify;  /* Blocksatz */
}

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

a:hover {
    text-decoration: underline;
}

/* Bilder */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
}

/* Tabellen - Um sicherzustellen, dass sie responsiv sind */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #f1f8e9;  /* Sehr helles Grünblau für den Hintergrund der Tabelle */
}

table th, table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

table th {
    background-color: #0288d1;  /* Blau für Tabellenüberschriften */
    color: white;
}

table tr:nth-child(even) {
    background-color: #f5f5f5;  /* Abwechselnde Zeilen im grauen Hintergrund */
}

/* Glossar */
dl {
    margin: 20px 0;
}

dl dt {
    font-weight: bold;
    color: #0288d1;  /* Blau für Glossar-Begriffe */
    margin-top: 10px;
}

dl dd {
    margin: 0 0 15px 20px;
    font-size: 1.1em;
    color: #555555;
}

/* Footer */
footer {
    background-color: #0288d1;  /* Blau für den Footer */
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 30px;
}

footer p {
    margin: 0;
    font-size: 1em;
}

/* Responsivität der Tabellen auf kleinen Bildschirmen */
table-wrapper {
    width: 100%;
    overflow-x: auto; /* Ermöglicht horizontales Scrollen bei Bedarf */
    -webkit-overflow-scrolling: touch; /* Smooth Scroll auf mobilen Geräten */
}

table {
    max-width: 100%;
    display: block; /* Stellt sicher, dass die Tabelle sich auf kleineren Geräten anpasst */
}

/* Medienabfragen für kleinere Bildschirmgrößen */
@media (max-width: 768px) {
    main {
        padding: 15px;
    }

    header h2 {
        font-size: 1.6em;
    }

    header nav ul li {
        display: block;
        margin-bottom: 10px;
    }

    header nav ul li a {
        font-size: 1.2em;
    }

    /* Verkleinerung der Tabellen-Schriftgröße und Verbesserung der Lesbarkeit */
    table th, table td {
        font-size: 0.9em;
    }

    /* Blocksatz für kleine Bildschirme */
    p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;  /* Kleinere Schriftgröße für sehr kleine Bildschirme */
    }

    header h2 {
        font-size: 1.4em;
    }

    header nav ul li {
        margin-bottom: 8px;
    }

    header nav ul li a {
        font-size: 1.1em;
    }

    main h2 {
        font-size: 1.6em;
    }

    table th, table td {
        font-size: 0.85em;
    }

    /* Blocksatz für noch kleinere Bildschirme */
    p {
        font-size: 0.95em;
    }
}
