/* Sprachumschalter (fc-translate) – gestaltet wie die Astra-Menüpunkte und ihre Untermenüs */
.fc-tr-switch { position: relative; list-style: none; }
.fc-tr-dd { position: relative; }
.fc-tr-dd > summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    color: #fff;
    font-family: Montserrat, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    line-height: 1.6;
    transition: color .2s linear;
}
.fc-tr-dd > summary::-webkit-details-marker { display: none; }
.fc-tr-dd > summary::marker { content: ''; }
.fc-tr-dd > summary:hover, .fc-tr-dd[open] > summary { color: var(--ast-global-color-1, #cf1c1f); }
.fc-tr-caret { display: inline-flex; transition: transform .2s; }
.fc-tr-dd[open] .fc-tr-caret { transform: rotate(180deg); }
.fc-tr-switch svg { display: block; flex: none; }
.fc-tr-dd > summary > svg, .fc-tr-lang > svg { border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.fc-tr-ar { font-size: 15px; line-height: 12px; }

/* Liste wie Astras Untermenüs: dunkel, Schatten, graue Einträge, Hover mit rotem Strich links */
.fc-tr-list {
    margin: 0;
    padding: 0;
    list-style: none;
    background: #1a1a1a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
    min-width: 240px;
}
.fc-tr-list li { margin: 0; padding: 0; list-style: none; }
.fc-tr-switch a.fc-tr-lang {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 12px 20px !important;
    color: #ccc !important;
    font-family: Montserrat, sans-serif;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.6;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-decoration: none;
    white-space: nowrap;
    background: transparent !important;
    border: 0 !important;
    border-left: 3px solid transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, .05) !important;
}
.fc-tr-switch a.fc-tr-lang:hover, .fc-tr-switch a.fc-tr-lang:focus {
    background: rgba(207, 28, 31, .1) !important;
    color: #fff !important;
    border-left-color: #cf1c1f !important;
}

/* Desktop: Menüpunkt links neben dem Home-Icon, volle Höhe wie die anderen, Liste schließt unten an */
@media (min-width: 922px) {
    /* Liste richtet sich am Menüpunkt (volle Header-Höhe) aus, nicht am <details> (streckt sich nicht) */
    .fc-tr-switch { display: flex; align-items: center; margin: 0; position: relative; }
    .fc-tr-dd { position: static; padding: 0 14px 0 18px; }
    /* !important: Astra-Regeln für Listen im Menü würden die Liste sonst in den Fluss holen */
    .fc-tr-switch .fc-tr-list { position: absolute !important; top: 100% !important; left: 0 !important; z-index: 9999; }
}
/* Schmalere Desktops: Menüzeile ist ohne Umschalter schon voll – nur Flagge zeigen, Menüpunkte etwas enger */
@media (min-width: 922px) and (max-width: 1365px) {
    .fc-tr-dd > summary .fc-tr-short { display: none; }
    .fc-tr-dd { padding: 0 6px 0 10px; }
    ul:has(> .fc-tr-switch) > li > a.menu-link { padding-left: 12px !important; padding-right: 12px !important; }
}

/* Mobiles Menü: Zeile wie die anderen Menüpunkte, Liste klappt darunter auf */
@media (max-width: 921px) {
    .fc-tr-dd > summary { padding: 14px 20px; font-size: 15px; width: 100%; }
    .fc-tr-list { box-shadow: none; background: rgba(0, 0, 0, .25); }
    .fc-tr-switch a.fc-tr-lang { padding-left: 30px !important; font-size: 14px !important; }
}

/* Hinweis „automatisch übersetzt“ unter dem Footer */
.fc-tr-notice {
    background: #141414;
    color: #8a8a8a;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    padding: 10px 16px 14px;
}
.fc-tr-notice a.fc-tr-lang { color: #bbb; text-decoration: underline; text-underline-offset: 2px; }
.fc-tr-notice a.fc-tr-lang:hover { color: #fff; }
