/* Grundlegendes Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f9;
    color: #333;
    overflow: hidden; /* Verhindert doppelte Scrollbalken am Browser-Rand */
}

/* Haupt-Layout */
.container {
    display: flex;
    height: 100vh; /* Fest auf die volle Fensterhöhe gesetzt */
}

/* Sidebar Styling */
.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    flex-shrink: 0;
    overflow-y: auto; /* Sidebar scrollbar, falls das Menü sehr lang ist */
}

.sidebar h2 {
    font-size: 1.2rem;
    margin: 20px 0 10px 0;
    border-bottom: 2px solid #34495e;
    padding-bottom: 10px;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin: 10px 0;
}

.sidebar ul li a {
    color: #bdc3c7;
    text-decoration: none;
    font-weight: bold;
    display: block;
    transition: color 0.3s ease;
}

.sidebar ul li a:hover {
    color: #ffffff;
}

/* Rechter Inhaltsbereich */
.content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background-color: #ed1c24;
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 10;
}

.header h1 {
    flex-grow: 1;
    text-align: center;
    font-size: 1.8rem;
    margin: 0;
}

.header-logo-left {
    width: 60px;
    height: auto;
}

.header-logo-right {
    width: 300px;
    height: auto;
}

.header-logo-right1 {
    width: 100px;
    height: auto;
}

.header-spacer {
    width: 60px;
}

/* Hauptinhalt & Iframe */
.main-content {
    flex-grow: 1; /* Nimmt den restlichen Platz ein */
    background-color: white;
    position: relative;
}

iframe {
    width: 100%;
    height: 100%; /* Füllt .main-content komplett aus */
    border: none;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        max-height: 30vh;
    }

    .header-spacer {
        display: none;
    }
}