/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Body */
body {
    display: flex;
    min-height: 100vh;
    background-color: #121212; /* Dunkler Hintergrund */
    color: #eee;
    overflow: hidden; /* Scroll nur im Main-Content */
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #1e1e1e;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-right: 2px solid #3498db;
    position: fixed;
    top: 0;
    bottom: 0;
}

.sidebar h2 {
    color: #3498db;
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Abstand zwischen Logo und Schrift */
    font-size: 1.5rem; /* Höhe wie Schrift */
}

.sidebar-logo {
    width: 3.5rem; /* Logo passend zur Schrift */
    height: 3.5rem;
}

.sidebar a {
    color: #eee;
    text-decoration: none;
    padding: 10px 8px;
    border-radius: 5px;
    transition: background 0.2s, color 0.2s;
    display: block;
}

.sidebar a:hover, .sidebar a.active {
    background-color: #3498db;
    color: #121212;
}

.sidebar .menu-section {
    color: #3498db;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.95rem;
}

.sidebar .sub-item {
    padding-left: 20px;
    font-size: 0.9rem;
}

/* Main Content */
.main-content {
    margin-left: 270px; /* Sidebar + Abstand */
    padding: 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    min-height: 100vh;
}

/* Überschriften */
.main-content h1 {
    color: #3498db;
    margin-bottom: 25px;
}

/* Formulare ohne Kästen */
form.form-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    width: 100%;
    margin: auto; /* Zentriert das Formular */
}

form label {
    font-weight: bold;
    color: #eee;
}

form input, form textarea {
    padding: 10px;
    border: 1px solid #3498db; /* Eingabefeld Rahmen */
    background-color: #121212;
    color: #eee;
    font-size: 1rem;
    border-radius: 5px; /* leicht abgerundet, kein Kasten */
}

form input::placeholder, form textarea::placeholder {
    color: #aaa;
}

form button {
    padding: 12px 20px;
    background-color: #3498db;
    color: #121212;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

form button:hover {
    background-color: #2980b9;
}

/* Erfolg & Fehler Meldungen */
p.success-msg {
    color: #2ecc71;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

p.error-msg {
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.required {
    color: #FF4500;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 200px;
        padding: 15px;
    }

    .main-content {
        margin-left: 220px;
        padding: 20px;
    }

    form.form-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 2px solid #3498db;
    }
    .sidebar a, .sidebar .sub-item, .sidebar .menu-section {
        flex: none;
        padding: 10px;
    }
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
}
/* Abschnitt-Boxen für Abteilungen */
.section-box {
    background-color: #1e1e1e;      /* dunkler Hintergrund */
    border-left: 4px solid #3498db; /* linke blaue Linie */
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3); /* leichter Schatten für Tiefe */
}

.section-box h2 {
    color: #3498db;   /* blaue Überschrift */
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Scrollbare Main-Content */
.scrollable {
    overflow-y: auto;
    max-height: 100vh;
    padding-right: 10px; /* Platz für Scrollbar */
}

/* Abstand in Listenpunkten */
.section-box ul {
    list-style-type: disc;
    padding-left: 20px;
    color: #eee;
}

.section-box ul li {
    margin-bottom: 8px;
}