/* ==========================================================================
   STYLE1.CSS - Optimierte Version (Dropdown & Social Media)
   ========================================================================== */

/* --- 1. Language Dropdown --- */
.language-dropdown {
    position: relative;
    display: inline-block;
    margin-right: 9px;
}

.dropbtn {
    background-color: transparent;
    color: #f5f5f8;
    padding: 8px 12px; /* Etwas größer für bessere Bedienbarkeit */
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 4px;
    transition: 0.3s;
}

.dropbtn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

.lang-flag {
    width: 18px;
    height: auto;
    display: block;
}

/* Die ausgeklappte Box des Menüs */
.dropdown-content {
    display: none;
    position: absolute;
    right: 0; /* Rechtsbündig ausrichten, damit es nicht links aus dem Bild ragt */
    background-color: white;
    min-width: 160px; 
    max-height: 428px; /* Begrenzung für viele Sprachen */
    overflow-y: auto;  /* Scrollbar, falls die Liste zu lang wird */
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1001;
    border-radius: 4px;
    margin-top: 5px;
}

/* Scrollbar-Design für das Menü (optional) */
.dropdown-content::-webkit-scrollbar {
    width: 5px;
}
.dropdown-content::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 10px;
}

.dropdown-content a {
    color: rgb(13, 26, 54);
    padding: 8px 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a img {
    width: 20px;
    height: auto;
}

/* Hover-Effekt im Menü */
.dropdown-content a:hover {
    background-color: hsl(240, 29%, 97%); 
    color: rgb(205, 41, 39); /* Konsistenz zu deinem Haupt-CSS (Rot-Akzent) */
}

/* Menü bei Hover oder aktiver Klasse anzeigen */
.language-dropdown:hover .dropdown-content,
.language-dropdown.show .dropdown-content {
    display: block;
}

/* --- 2. Footer --- */
footer {
    background: rgb(13, 26, 54);
    color: rgb(249, 249, 251);
    padding: 25px 0; /* Mehr Atemraum */
    margin-top: 50px;
    width: 100%;
}
.footer:a:hover {
background-color: white important;
color: rgb(205, 41, 39) important;
}
.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Wichtig für Mobile */
}

.footer-container p {
    font-size: 14px;
    opacity: 0.8;
}


/* --- 3. Social Media Icons --- */
.social-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.social-links a {
    font-size: 28px;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
}

/* YouTube Original-Rot */
.fa-youtube {
    color: #FF0000; /* Das typische YouTube-Rot */
}

/* Instagram Original-Verlauf */
.fa-instagram {
    /* Instagram nutzt einen komplexen Verlauf */
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.social-links a:hover {
    transform: scale(1.2);
}

/* --- 4. Mobile Anpassung --- */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    /* Dropdown auf Mobile nach links öffnen, um Platz zu sparen */
    .dropdown-content {
        right: auto;
        left: 0;
    }
}
.logo, .language-dropdown {
    z-index: 1000;
}