/* FARBEN DEFINITION */
:root {
    --primary-blue: #0A3D62;
    --secondary-blue: #1C658D;
    --accent-gold: #FFC300;
    --light-gray: #F0F4F8;
    --sidebar-bg: #1a1a2e;
    --dark-text: #333333;
    --color-bg-dark: #1a1a2e;
    --color-bg-light: #2a2a4a;
}

/* 1. Grund-Reset und Flex-Container */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--light-gray);
    color: var(--dark-text);
}

/* 2. Kopfzeile mit Hintergrundbild NEU */
header.header-with-background {
    height: 250px; /* Höhe des Headers definieren */
    background-image: url('images/header.png'); /* PFAD ANPASSUNG HIER */
    background-size: 100% 100%; /* Bild füllt den gesamten Header-Bereich aus */
    background-position: center; /* Bild zentriert */
    background-repeat: no-repeat; /* Bild wird nicht wiederholt */
    position: relative; 
    display: flex; /* Flexbox für bessere Zentrierung von H1/Nav */
    flex-direction: column;
    justify-content: space-between; /* H1 oben, Nav unten */
    align-items: center;
    padding: 20px 0; /* Vertikales Padding hinzufügen */
    box-sizing: border-box;
    color: white; /* Textfarbe auf Weiß setzen, damit sie vor dem Bild sichtbar ist */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8); /* Schatten für bessere Lesbarkeit */
}

header.header-with-background h1 {
    margin: 0;
    font-size: 3em;
}

/* Footer ANPASSUNGEN für Hintergrundbild */
footer {
    background-image: url('images/footer.png'); /* PFAD ANPASSUNG HIER */
    background-size: 100% 100%; /* Bild füllt den Bereich, kann leicht abschneiden */
    background-position: center; /* Bild zentriert */
    background-repeat: no-repeat; /* Bild wird nicht wiederholt */
    
    background-color: var(--secondary-blue); /* Fallback Farbe, falls Bild nicht lädt */
    
    color: white;
    padding: 20px 10px; /* Padding erhöht, um mehr vom Bild zu zeigen */
    text-align: center;
    margin-top: auto;
    position: relative; /* Für möglichen Text-Schatten oder Overlay */
    z-index: 1; /* Sicherstellen, dass der Footer über anderen Elementen liegt */
}

/* Optional: Overlay für bessere Lesbarkeit des Textes */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Leichte schwarze Transparenz */
    z-index: -1; /* Hinter dem Text */
}

footer p {
    margin: 0; /* Standard-Margin von P entfernen */
    position: relative; /* Text über das Overlay legen */
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8); /* Schatten für bessere Lesbarkeit */
}


.status-online {
    color: var(--accent-gold); 
    font-weight: bold;
}

/* ... (Restliche CSS-Definitionen für content-wrapper, sidebar, main etc. bleiben unverändert) ... */

/* 4. Mobile Anpassung (Unverändert, aber Footer-Padding kann angepasst werden) */
@media (max-width: 768px) {
    /* ... (andere Mobile-Styles) ... */
    footer {
        padding: 15px 10px; /* Padding auf Mobile anpassen */
    }
}

/* 3. --- Haupt-Layout-Container (Sidebar und Main) --- */
.content-wrapper {
    display: flex;
    flex-grow: 1;
}

/* Linke Spalte: Tools/Sidebar (Unverändert) */
.sidebar-left {
    width: 280px;
    background-color: var(--sidebar-bg);
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    border-right: 1px solid #C4D3E0;
}

.sidebar-left h3 {
    color: var(--primary-blue);
    margin-top: 0;
    border-bottom: 2px solid #C4D3E0;
    padding-bottom: 5px;
}
/* ... weitere Sidebar-Styles ... */
.sidebar-left ul { list-style: none; padding: 0; }
.sidebar-left a { color: var(--accent-gold); text-decoration: none; display: block; padding: 5px 0; transition: background-color 0.3s; }
.sidebar-left a:hover { background-color: #DDE5ED; padding-left: 5px; }

/* Rechte Spalte: Hauptinhalt/Main (Unverändert) */
main {
    flex-grow: 1;
    padding: 30px;
    background-color: var(--color-bg-dark);
    color: #fff;
}
main h2 { color: var(--primary-blue); border-bottom: 1px dashed #ced4da; padding-bottom: 10px; }
.main-links-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 20px; }
.main-links-list li { background-color: var(--color-bg-light); padding: 15px; border-radius: 5px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); border-left: 5px solid var(--accent-gold); }
.main-links-list li a { font-weight: bold; color: var(--primary-blue); text-decoration: none; font-size: 1.1em; }


/* 4. Mobile Anpassung NEU */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    .sidebar-left {
        width: auto;
        order: 2; 
        border-right: none;
        background-color: #2a2a4a;
        border-top: 1px solid #C4D3E0;
    }
    main {
        order: 1;
        padding: 20px;
    }
    
    /* Header-Höhe für Mobile reduzieren */
    header.header-with-background {
        height: 150px;
        padding: 10px 0;
    }
    header.header-with-background h1 {
        font-size: 2em;
    }
    .header-nav-overlay {
        background-color: rgba(0, 0, 0, 0.7); /* Festerer Hintergrund für Lesbarkeit */
    }
    .header-nav-overlay a {
        margin: 0 8px;
        font-size: 1em;
    }
}