/* Language gate — schlicht, mit Marken-Hintergrund */
html.await-lang-gate body > :not(#langGate):not(.page-bg):not(.overlay):not(#particles),
body.is-lang-gated > :not(#langGate):not(.page-bg):not(.overlay):not(#particles) {
    visibility: hidden;
}

html.await-lang-gate #langGate,
body.is-lang-gated #langGate {
    visibility: visible;
}

body.is-lang-gated .cookie-banner {
    visibility: hidden;
}

.lang-gate {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    place-items: center;
    padding: 24px;
    overflow: hidden;
    background-color: rgba(5, 5, 8, 0.68);
    background-image:
        radial-gradient(1.2px 1.2px at 12% 18%, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(1px 1px at 28% 72%, rgba(255, 255, 255, 0.22), transparent),
        radial-gradient(1.4px 1.4px at 44% 32%, rgba(180, 240, 220, 0.4), transparent),
        radial-gradient(1px 1px at 71% 55%, rgba(255, 255, 255, 0.28), transparent),
        radial-gradient(1.2px 1.2px at 84% 22%, rgba(200, 210, 255, 0.28), transparent),
        radial-gradient(ellipse 55% 40% at 82% 8%, rgba(76, 201, 160, 0.14), transparent 52%),
        radial-gradient(ellipse 45% 35% at 8% 88%, rgba(88, 101, 242, 0.12), transparent 48%),
        radial-gradient(ellipse 80% 45% at 50% -10%, rgba(76, 201, 160, 0.1), transparent 55%),
        linear-gradient(180deg, rgba(6, 6, 10, 0.25) 0%, rgba(6, 6, 10, 0.82) 100%);
    backdrop-filter: blur(14px) saturate(1.15);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
}

.lang-gate::before,
.lang-gate::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(72px);
}

.lang-gate::before {
    width: min(460px, 75vw);
    height: min(460px, 75vw);
    top: -18%;
    right: -12%;
    background: rgba(76, 201, 160, 0.24);
}

.lang-gate::after {
    width: min(380px, 60vw);
    height: min(380px, 60vw);
    bottom: -14%;
    left: -10%;
    background: rgba(88, 101, 242, 0.18);
}

.lang-gate.show {
    display: grid;
}

.lang-gate-inner {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
}

.lang-gate-card {
    padding: 28px 24px 24px;
    border-radius: 18px;
    text-align: center;
    background: rgba(10, 10, 14, 0.88);
    border: 1px solid rgba(76, 201, 160, 0.2);
    box-shadow:
        0 0 0 1px rgba(76, 201, 160, 0.06) inset,
        0 24px 64px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lang-gate-logo {
    margin: 0 auto 14px;
    line-height: 0;
}

.lang-gate-logo img {
    display: block;
    width: 72px;
    height: 72px;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 14px;
}

.lang-gate-eyebrow {
    margin: 0 0 6px;
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.85;
}

.lang-gate-title {
    margin: 0 0 8px;
    font-family: var(--display);
    font-size: clamp(1.35rem, 4vw, 1.65rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text-bright);
}

.lang-gate-welcome {
    margin: 0 0 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1.5;
}

.lang-gate-pitch {
    margin: 0 0 10px;
    font-size: 0.78rem;
    color: var(--text);
    line-height: 1.55;
    max-width: 42ch;
    margin-inline: auto;
    opacity: 0.92;
}

.lang-gate-sub {
    margin: 0 0 20px;
    font-size: 0.76rem;
    color: var(--muted);
    line-height: 1.55;
    max-width: 38ch;
    margin-inline: auto;
}

.lang-gate-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.lang-gate-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 calc(33.333% - 7px);
    min-width: 0;
    max-width: calc(33.333% - 7px);
    padding: 12px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.lang-gate-btn-flag {
    display: grid;
    place-items: center;
    width: 36px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    overflow: hidden;
}

.lang-gate-btn-flag img {
    border-radius: 3px;
    flex-shrink: 0;
}

.lang-gate-btn-label {
    flex: 1;
    min-width: 0;
}

.lang-gate-btn-arrow {
    flex-shrink: 0;
    color: var(--muted);
}

.lang-gate-btn:hover {
    border-color: rgba(76, 201, 160, 0.45);
    background: rgba(76, 201, 160, 0.12);
}

.lang-gate-btn:hover .lang-gate-btn-arrow {
    color: var(--accent);
}

@media (max-width: 640px) {
    .lang-gate-btn {
        flex: 1 1 calc(50% - 5px);
        max-width: calc(50% - 5px);
    }
}

@media (max-width: 400px) {
    .lang-gate-btn {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .lang-gate-card {
        padding: 24px 18px 20px;
    }
}
