/* =========================================================
   Externe CSS-Datei fuer die Website "Feuerwerksklassen"
   Alle Formatierungen sind hier ausgelagert (kein style im HTML)
   ========================================================= */

/* 1. ELEMENTSELEKTOREN (gelten direkt fuer HTML-Tags) */

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f6f9;
    color: #111827; /* Sehr dunkles Grau fuer hohen Kontrast (barrierefrei) */
    margin: 0;
    line-height: 1.6;
}

header {
    background-color: #1e293b;
    color: #ffffff;
    padding: 25px 15px;
    text-align: center;
}

h1 {
    margin: 0 0 8px 0;
    font-size: 1.8rem;
}

h2 {
    color: #1e293b;
    border-bottom: 2px solid #cbd5e1;
    padding-bottom: 6px;
    margin-top: 25px;
}

h3 {
    color: #0f172a;
    margin-top: 15px;
}

/* Navigation mit Flexbox */
nav {
    background-color: #0f172a;
    padding: 10px 15px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;          /* Flexbox-Layout fuer die Menueleiste */
    flex-wrap: wrap;        /* Bricht auf kleinen Bildschirmen automatisch um */
    justify-content: center;
    gap: 10px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 4px;
    background-color: #1e293b;
    display: block;
    font-weight: bold;
}

/* 2. PSEUDOFORMAT (:hover fuer Maus-Effekt) */

nav a:hover {
    background-color: #b45309; /* Leuchtendes Dunkelorange beim Drueberfahren */
}

tbody tr:hover {
    background-color: #e2e8f0; /* Zeilen-Markierung in Tabellen */
}

/* Hauptbereich & semantische Container */

main {
    max-width: 960px;
    margin: 20px auto;
    padding: 0 15px;
}

section {
    background-color: #ffffff;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

aside {
    background-color: #eff6ff;
    border-left: 5px solid #1d4ed8;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

footer {
    background-color: #1e293b;
    color: #ffffff;
    text-align: center;
    padding: 20px 15px;
    margin-top: 30px;
}

footer a {
    color: #fde047;
    text-decoration: underline;
}

/* Bilder responsiv und ordentlich proportioniert */
img {
    max-width: 100%;
    max-height: 480px;
    display: block;
    margin: 15px auto;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
}

/* Tabellen-Gestaltung (wie im Kalender-Projekt, aber per CSS statt HTML-Attribut) */
table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    margin: 15px 0;
    background-color: #ffffff;
}

th, td {
    border: 1px solid #64748b;
    padding: 10px 8px;
}

thead th {
    background-color: #1e293b;
    color: #ffffff;
}

tfoot td {
    background-color: #f1f5f9;
    text-align: left;
    font-size: 0.9rem;
    font-style: italic;
}

/* 3. KLASSENSELEKTOREN (beginnen mit einem Punkt .) */

.aktiv {
    background-color: #1d4ed8;
}

/* Flexbox-Container fuer nebeneinander liegende Info-Boxen */
.karten-reihe {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.karte {
    flex: 1 1 280px;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 15px;
    border-radius: 6px;
}

.warnung {
    color: #b91c1c;
    font-weight: bold;
}

.bild-unterschrift {
    text-align: center;
    font-size: 0.9rem;
    font-style: italic;
    color: #334155;
    margin-top: -8px;
    margin-bottom: 15px;
}

/* 4. ID-SELEKTOREN (beginnen mit einer Raute #, nur einmal pro Seite) */

#wichtiger-hinweis {
    background-color: #fef2f2;
    border: 2px solid #b91c1c;
    color: #7f1d1d;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* 5. RESPONSIVES DESIGN (fuer Smartphones bis ca. 380 px Breite) */

@media (max-width: 600px) {
    nav ul {
        flex-direction: column; /* Navigation untereinander auf dem Handy */
        text-align: center;
    }

    h1 {
        font-size: 1.4rem;
    }

    section, aside {
        padding: 12px;
    }

    th, td {
        padding: 6px 4px;
        font-size: 0.82rem; /* Tabelle passt ohne waagerechtes Scrollen auf 380px */
        word-break: break-word;
    }
}
