.language-notice {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 999;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.12),
        rgba(255, 255, 255, 0.06),
        rgba(200, 200, 200, 0.08)
    );
    backdrop-filter: blur(18px) saturate(180%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.language-notice[hidden] {
    display: none;
}

.language-notice__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1200px;
    min-height: 44px;
    margin: 0 auto;
    padding: 0.45rem 1rem;
}

.language-notice__text {
    margin: 0;
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.35;
}

.language-notice__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.language-picker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 34px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0 0.5rem;
    background: var(--button-bg);
    color: var(--text-color);
}

.navbar-actions .language-picker {
    min-height: 40px;
}

.footer-language {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.language-picker--footer {
    min-height: 38px;
}

.language-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 1.4em;
    font-size: 1.05rem;
    line-height: 1;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.language-flag--en::before {
    content: "🇬🇧";
}

.language-flag--de::before {
    content: "🇩🇪";
}

.language-select {
    min-height: 34px;
    border: 0;
    border-radius: 8px;
    padding: 0.35rem 2rem 0.35rem 0.7rem;
    background-color: transparent;
    color: var(--text-color);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

.language-select:focus {
    outline: 2px solid rgba(255, 255, 255, 0.45);
    outline-offset: 2px;
}

.language-notice__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--button-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.language-notice__close:hover,
.language-notice__close:focus {
    background: var(--button-hover);
    transform: translateY(-1px);
}

body.has-language-notice {
    padding-top: 114px;
}

@media (max-width: 720px) {
    .language-notice {
        top: 60px;
    }

    .language-notice__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.65rem 1rem;
    }

    .language-notice__actions {
        width: 100%;
    }

    .language-select {
        flex: 1;
        width: 100%;
    }

    body.has-language-notice {
        padding-top: 148px;
    }
}
