/* --- Header & Navigation --- */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Vertikales Padding auf 0 gesetzt, damit das Logo bis an die Kanten geht */
    padding: 0 30px; 
    
    position: relative; 
    width: 100%;
    /* Feste Höhe des Headers */
    height: 70px; 
    
    box-sizing: border-box;
    z-index: 1000;

    background-color: #a68d76 !important; 
    color: white;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
}

.app-title {
    display: flex;
    align-items: center;
    /* Nutzt die volle Header-Höhe aus */
    height: 70px; 
    /* Erhöht, damit das Logo sich in der Breite entfalten kann */
    max-width: 350px; 
    margin-left: -20px;
    margin-top: 10px;
}

.header-logo {
    display: block;
    /* Zwingt das Bild auf die volle Höhe des Headers */
    height: 80%; 
    /* Breite passt sich automatisch an, um Proportionen zu wahren */
    width: auto;       
    max-width: 100%;   
    /* Sorgt dafür, dass das Bild den Raum optimal füllt */
    object-fit: contain;
    /* Verhindert den "Inline-Abstand" unter Bildern */
    vertical-align: bottom; 
    margin: 0;
}

/* --- Responsive Anpassungen --- */
@media (max-width: 600px) {
    .app-header {
        height: 55px; 
        padding: 0 15px;
    }
    .app-title {
        height: 55px;
    }
}

/* Rechte Seite: Flagge & Menü */
.header-right {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 15px;
}

.flag-dropdown button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    color: white;
    display: flex;
    align-items: center;
}

.app-menu {
    font-size: 1.3em;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
}

/* --- Content Bereich --- */
#main-content {
    margin-top: 0; 
    padding: 0;
    position: relative;
    z-index: 1;
}

#main-content img {
    display: block;
    width: 100%;
    height: auto;
}

/* --- Menü Panel & Items --- */
.app-menu-panel {
    position: absolute;
    top: 100%; 
    right: 20px;
    background-color: #a68d76;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    min-width: 180px;
    overflow: hidden;
    z-index: 1000;
    display: none; 
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-menu-item {
    padding: 12px 18px;
    color: white;
    font-family: 'Arial', sans-serif;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.app-menu-item:last-child {
    border-bottom: none;
}

.app-menu-item:hover {
    background-color: #8e7762; 
    color: #fdf5e6;
}

/* Flaggen-Menü */
.flag-menu {
    background-color: #a68d76;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: white;
}

.flag-item:hover {
    background-color: #8e7762;
}