/* ── MultiLang Translator – Frontend Sprachumschalter ── */

.mlt-language-switcher {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 1.25em 0;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1;
}

/* ── Gemeinsame Label-Beschriftung ── */
.mlt-label {
    color: #6b7280;
    margin-right: 2px;
    font-size: 0.8125rem;
    white-space: nowrap;
}

/* ────────────────────────────────────────
   Buttons-Stil
   ─────────────────────────────────────── */
.mlt-style-buttons .mlt-lang-btn {
    display: inline-block;
    padding: 5px 14px;
    border: 1.5px solid #9ca3af;
    border-radius: 9999px;   /* Pill-Form */
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
    background: #fff;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    line-height: 1.5;
}

.mlt-style-buttons .mlt-lang-btn:hover {
    background: #f3f4f6;
    border-color: #6b7280;
    color: #111827;
    text-decoration: none;
}

.mlt-style-buttons .mlt-lang-btn.mlt-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    cursor: default;
    pointer-events: none;
}

/* Fokus-Ring für Barrierefreiheit */
.mlt-style-buttons .mlt-lang-btn:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* ────────────────────────────────────────
   Dropdown-Stil
   ─────────────────────────────────────── */
.mlt-style-dropdown {
    gap: 8px;
}

.mlt-dropdown-label {
    display: flex;
    align-items: center;
    color: #6b7280;
    cursor: default;
}

.mlt-icon {
    display: block;
    opacity: 0.7;
}

.mlt-style-dropdown .mlt-select {
    padding: 6px 32px 6px 10px;
    font-size: 0.875rem;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    cursor: pointer;
    min-width: 140px;
    appearance: auto;
    font-family: inherit;
    transition: border-color 0.15s;
}

.mlt-style-dropdown .mlt-select:hover {
    border-color: #9ca3af;
}

.mlt-style-dropdown .mlt-select:focus {
    outline: 2px solid #2563eb;
    outline-offset: 1px;
    border-color: #2563eb;
}

/* ────────────────────────────────────────
   Dark-Mode-Anpassung (prefers-color-scheme)
   ─────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
    .mlt-style-buttons .mlt-lang-btn {
        background: transparent;
        border-color: #6b7280;
        color: #e5e7eb;
    }

    .mlt-style-buttons .mlt-lang-btn:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: #9ca3af;
        color: #f9fafb;
    }

    .mlt-style-buttons .mlt-lang-btn.mlt-active {
        background: #3b82f6;
        border-color: #3b82f6;
        color: #fff;
    }

    .mlt-style-dropdown .mlt-select {
        background: #1f2937;
        border-color: #4b5563;
        color: #e5e7eb;
    }
}
