/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* Container */
.lang-switcher {
    position: relative;
    display: inline-block;
}

/* Toggle-Button */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--teal-600);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    transition: background 0.2s ease;
}

.lang-toggle:hover {
    background: var(--teal-700, var(--teal-600));
}

.lang-globe,
.lang-chevron {
    flex-shrink: 0;
}

/* Chevron dreht sich bei geöffnetem Dropdown */
.lang-switcher.is-open .lang-chevron {
    transform: rotate(180deg);
}

.lang-chevron {
    transition: transform 0.2s ease;
}

/* Dropdown */
.lang-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 180px;
    margin: 0;
    padding: 0;
    list-style: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

.lang-switcher.is-open .lang-dropdown {
    display: block;
}

/* Einträge */
.lang-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    text-decoration: none;
    background: var(--teal-50, #eefafa);
    color: var(--teal-900, #0d3b3f);
    font-size: 15px;
    transition: background 0.15s ease;
}

.lang-item:hover {
    background: var(--teal-100, #d9f2f2);
}

/* Aktive Sprache */
.lang-item.is-active {
    background: var(--teal-600);
    color: #fff;
}

.lang-item.is-active:hover {
    background: var(--teal-600);
}

.lang-check {
    font-weight: 700;
}