/* ==========================================================================
    1. DESIGN-VARIABLEN & MODERNES RESET
   ========================================================================== */
:root {
    --primary-color: #2c3e50;
    --primary-light: #34495e;
    --secondary-color: #2980b9;
    --accent-color: #1abc9c;
    --bg-color: #f4f6f8;
    --card-bg: #ffffff;
    --nav-bg: #ecf0f1;
    --footer-bg: #bdc3c7;
    --text-color: #333333;
    --border-color: #dcdde1;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Globales Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

/* ==========================================================================
    2. CSS GRID BILDSHIRM-LAYOUT
   ========================================================================== */
.grid-container {
    display: grid;
    grid-template-rows: 80px 1fr 50px; /* Korrigiert (keine doppelten Zeilen mehr) */
    grid-template-columns: 200px 1fr;  /* Links Navigation (200px), Rechts Hauptinhalt */
    grid-template-areas:
        "header header"
        "nav    content"
        "footer footer";
    min-height: 100vh;
}

/* ==========================================================================
    3. HEADER
   ========================================================================== */
header {
    grid-area: header;
    background-color: var(--primary-color);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    box-shadow: var(--shadow);
    z-index: 10;
    width: 100%;
}

header h1 {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.header-tagline {
    font-size: 0.875rem;
    opacity: 0.85;
    font-weight: 300;
}

.header-image img {
	max-height: 60px;
	width: auto;
	display: block;
}

/* ==========================================================================
    4. NAVIGATION (SIDEBAR)
   ========================================================================== */
nav {
    grid-area: nav;
    background-color: var(--nav-bg);
    padding: 1.5rem 1.25rem;
    border-right: 3px solid var(--border-color);
}

nav h2 {
    margin-bottom: 1.2rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-light);
}

nav ul {
    list-style: none;
}

nav li {
    margin-bottom: 0.5rem;
}

nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    display: block;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease; /* Korrigiert (abgeschlossener Block) */
}

nav a:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* ==========================================================================
    Main Content Layout & Listen
   ========================================================================== */
main {
    grid-area: content;
    background-color: var(--card-bg);
    padding: 2.5rem;
    overflow-y: auto;
    min-width: 0;
}

main ul,
main ol {
    padding-left: 2rem;        /* Schafft 32px Platz nach links für die Bullets */
    margin-bottom: 1.5rem;   /* Abstand nach unten zu folgenden Absätzen */
    list-style-position: outside; /* Standard: Bullets stehen im eingerückten Bereich */
}

main li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Bild links platzieren, Text fließt rechts vorbei */
.bild-links {
    float: left;
    margin-right: 15px;  /* Abstand zwischen Bild und Text */
    margin-bottom: 10px; /* Abstand nach unten */
    max-width: 250px;    /* Optional: Maximale Breite des Bildes */
    height: auto;
}

/* Bild rechts platzieren, Text fließt links vorbei */
.bild-rechts {
    float: right;
    margin-left: 15px;   /* Abstand zwischen Bild und Text */
    margin-bottom: 10px; /* Abstand nach unten */
    max-width: 250px;    /* Optional: Maximale Breite des Bildes */
    height: auto;
}

/* ==========================================================================
   STYLING FÜR DIE TABELLE (.tabelle1)
   ========================================================================== */
.tabelle1 {
    width: 100%;
    border-collapse: collapse; /* Wichtig: Verhindert doppelte/spaltige Ränder */
    margin: 1.5rem 0 2rem 0;
    background-color: var(--card-bg);
}

.tabelle1 td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color); /* Horizontale Linie unter jeder Zeile */
    vertical-align: middle;
}

/* Mittlere Spalte ("verbunden mit") zentrieren und dezent hervorheben */
.tabelle1 td.verbunden {
    text-align: center;
    font-size: 0.875rem;
    font-style: italic;
    color: var(--secondary-color);
    white-space: nowrap;
    padding: 12px 8px;
}

/* Äußere Spalten gleichmäßig breit machen */
.tabelle1 td:first-child,
.tabelle1 td:last-child {
    width: 42%;
}

/* Hover-Effekt für Tabellenzeilen (optional) */
.tabelle1 tr:hover {
    background-color: var(--nav-bg);
}
/* ==========================================================================
    5. FOOTER
   ========================================================================== */
footer {
    grid-area: footer; 
    background-color: var(--footer-bg);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    border-top: 1px solid var(--border-color);
}