/* Language switcher (navigation). Behaviour in assets/js/lang-switcher.js. */
.kk-lang {
    position: relative;
    display: inline-block;
    /* Webflow's menu aligns items to the top: 14px centres the 40px pill on the "Kredit beantragen" button. */
    vertical-align: top;
    padding-top: 14px;
    margin-left: 16px;
}

.kk-lang__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 12px 0 10px;
    border: 1.5px solid #d3dbe5;
    border-radius: 999px;
    background: #fff;
    color: var(--primary, #002C5A);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .03em;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.kk-lang__btn:hover,
.kk-lang__btn[aria-expanded="true"] {
    border-color: var(--primary, #002C5A);
    box-shadow: 0 4px 14px rgba(0, 44, 90, .12);
}
.kk-lang__btn:focus-visible,
.kk-lang__option:focus-visible {
    outline: 3px solid var(--secondary, #f46b18);
    outline-offset: 2px;
}

.kk-lang__flag,
.kk-lang__option img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
    flex-shrink: 0;
}

.kk-lang__chevron {
    transition: transform .2s ease;
}
.kk-lang__btn[aria-expanded="true"] .kk-lang__chevron {
    transform: rotate(180deg);
}

.kk-lang__menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    padding: 14px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0, 44, 90, .18), 0 0 0 1px rgba(0, 44, 90, .06);
    z-index: 1100;
    transform-origin: top right;
    animation: kk-lang-in .18s ease-out;
}
.kk-lang__menu[hidden] {
    display: none;
}
@keyframes kk-lang-in {
    from { opacity: 0; transform: translateY(-6px) scale(.97); }
    to { opacity: 1; transform: none; }
}

.kk-lang__title {
    padding: 2px 8px 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #6b7685;
}

.kk-lang__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kk-lang__option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #2b3440;
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease;
}
.kk-lang__option:hover {
    background: #f2f5f9;
}
.kk-lang__name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kk-lang__code {
    font-size: 11px;
    font-weight: 700;
    color: #9aa5b1;
}
.kk-lang__option[aria-current="true"] {
    background: #e8eef6;
    color: var(--primary, #002C5A);
    font-weight: 700;
}
.kk-lang__option[aria-current="true"] .kk-lang__code {
    color: #fff;
    background: var(--secondary, #f46b18);
    border-radius: 999px;
    padding: 2px 7px;
}

/* Collapsed (mobile) navigation: the panel opens inline, full width. */
@media (max-width: 991px) {
    .kk-lang {
        display: block;
        padding-top: 0;
        margin: 16px 0 0;
    }
    .kk-lang__menu {
        position: static;
        width: auto;
        margin-top: 10px;
        box-shadow: 0 0 0 1px rgba(0, 44, 90, .08);
    }
}
@media (max-width: 380px) {
    .kk-lang__grid { grid-template-columns: 1fr; }
}

/* Google Translate: hide its banner, tooltips and highlight. */
#goog-gt-tt, .goog-te-balloon-frame, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
body { top: 0 !important; }

@media (prefers-reduced-motion: reduce) {
    .kk-lang__menu { animation: none; }
}
