/* ── Social Rail ──────────────────────────────── */
.social-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-top: 34px;
}

.social-rail a {
    position: relative;
    width: 30px;
    height: 30px;
}

.social-icon {
    position: absolute;
    inset: 0;
    width: 30px;
    height: 30px;
    transition: opacity 0.35s ease;
}

.social-icon-default {
    opacity: 1;
}

.social-icon-hover {
    opacity: 0;
}

.social-rail a:hover .social-icon-default {
    opacity: 0;
}

.social-rail a:hover .social-icon-hover {
    opacity: 1;
}

/* ── Mobile Menu ──────────────────────────────── */
.mobile-menu-toggle {
    display: none;
}

.mobile-menu-toggle {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    isolation: isolate;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    border-radius: 999px;
    background: #89BCD9;
    transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.mobile-menu-toggle span + span {
    margin-top: 6px;
}

.mobile-menu-panel {
    position: fixed;
    top: 18px;
    left: 50%;
    right: auto;
    width: clamp(200px, min(42vw, 58vh), 430px);
    aspect-ratio: 1 / 1.05;
    padding: 7% 5% 2%;
    container-type: inline-size;
    background: url("../assets/images/shape.svg") center / contain no-repeat;
    z-index: 12;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(-12px) scale(0.96);
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
}

.mobile-menu-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 10cqi, 34px);
    margin-top: clamp(4px, 4cqi, 18px);
}

.mobile-menu-links .nav-link {
    padding: 0;
    color: #262E34;
    font-family: "Josefin Sans", sans-serif;
    font-size: clamp(16px, 11cqi, 37px);
    font-weight: 400;
    background: transparent;
}

.mobile-menu-links .nav-link.is-active,
.mobile-menu-links .nav-link:hover {
    color: #262E34;
    background-image: none;
    opacity: 1;
}

.mobile-language-switch {
    justify-content: center;
    margin-top: clamp(8px, 8cqi, 42px);
    gap: 4px;
    align-items: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.mobile-language-switch a {
    color: #262E34;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    padding: 0 6px;
    font-size: 16px;
    line-height: 1;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 34px 28px;
}

.mobile-menu-panel .mobile-language-switch a[data-lang="de"],
.mobile-menu-panel .mobile-language-switch a[data-lang="en"] {
    flex: 0 0 34px;
}

.mobile-language-switch .is-active {
    background-image: url("../assets/images/Ellipse_24.svg");
}

.mobile-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background: #89BCD9;
}

.mobile-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background: #89BCD9;
}

/* ── Bottom Nav ───────────────────────────────── */
.bottom-nav {
    background: var(--accent);
    color: var(--text-dark);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
}

.bottom-nav-inner {
    width: min(100%, var(--content-max-width));
    max-width: var(--content-max-width);
    min-height: 75px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 138px 1fr 64px;
    align-items: center;
    padding: 0 24px;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.nav-brand img {
    width: 50px;
}

.nav-brand span {
    font-size: 12px;
    line-height: 1.05;
}

.nav-brand-name {
    color: #ffffff;
}

.nav-brand-name:hover {
    color: #ffffff;
    opacity: 1;
    transform: none;
}

.nav-brand-role {
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 100px;
    font-family: "Josefin Sans", sans-serif;
    font-size: 26px;
    font-weight: 500;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    background: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

.nav-link.is-active {
    background-image: url("../assets/images/Ellipse_24.svg");
    color: #ffffff;
    opacity: 1;
}

.nav-link.is-active:hover {
    color: #ffffff;
    opacity: 1;
}

.nav-links a:hover,
.nav-brand:hover,
.language-switch a:hover,
.social-rail a:hover,
.footer-socials a:hover {
    transform: translateY(-2px);
}

.nav-links a:hover,
.language-switch a:hover {
    color: #ffffff;
}

.social-rail a:hover,
.footer-socials a:hover {
    opacity: 0.9;
}

/* ── Language Switch ──────────────────────────── */
.language-switch {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    font-family: "Josefin Sans", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 120%;
    letter-spacing: 0;
}

.language-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    background: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

.language-switch .is-active {
    color: #ffffff;
    text-decoration: none;
    background-image: url("../assets/images/Ellipse_24.svg");
}

.language-switch .is-active:hover {
    color: #ffffff;
    text-decoration: none;
    opacity: 1;
}
