/*
 * LUMIÈRE / bellaelite — Shared UI
 * Brand logo + Page transition overlay
 */

/* ── Google Fonts (fallback für Seiten ohne eigene Einbindung) ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=Jost:wght@300;400&display=swap');

/* ══════════════════════════════════════════════════════════════
   BRAND LOGO — .lm-brand
   ══════════════════════════════════════════════════════════════ */

.lm-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
    font-weight: 300;
    letter-spacing: .18em;
    color: #f5f0ea;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color .3s, text-shadow .3s;
    white-space: nowrap;
}
.lm-brand__gold {
    color: #C9956A;
    transition: color .3s, text-shadow .3s;
}
.lm-brand__img {
    height: 38px;
    width: auto;
    display: block;
    opacity: .88;
    transition: filter .3s, opacity .3s;
    flex-shrink: 0;
}
.lm-brand:hover {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255,255,255,.5), 0 0 50px rgba(255,255,255,.18);
}
.lm-brand:hover .lm-brand__gold {
    color: #f0c898;
    text-shadow: 0 0 18px rgba(201,149,106,.9), 0 0 40px rgba(201,149,106,.5);
}
.lm-brand:hover .lm-brand__img {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(201,149,106,.9)) drop-shadow(0 0 22px rgba(201,149,106,.5));
}
.lm-brand__suffix {
    font-size: .52em;
    font-weight: 300;
    letter-spacing: .30em;
    text-transform: uppercase;
    color: rgba(201,149,106,.55);
    align-self: flex-end;
    padding-bottom: .12em;
    transition: color .3s;
}
.lm-brand:hover .lm-brand__suffix { color: rgba(201,149,106,.80); }

/* Same suffix for inline .lm-nav__logo */
.lm-nav__logo-suffix {
    font-size: .52em;
    font-weight: 300;
    letter-spacing: .30em;
    text-transform: uppercase;
    color: rgba(201,149,106,.55);
    align-self: flex-end;
    padding-bottom: .12em;
    transition: color .3s;
}
.lm-nav__logo:hover .lm-nav__logo-suffix { color: rgba(201,149,106,.80); }

/* ══════════════════════════════════════════════════════════════
   MOBILE NAV — Burger + Slide-down-Menü (global)
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* Burger-Button — größer & sichtbarer */
    .lm-nav__toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        gap: 0;
        width: 40px; height: 40px;
        background: rgba(201,149,106,.08);
        border: 1px solid rgba(201,149,106,.25) !important;
        border-radius: 3px;
        cursor: pointer;
        padding: 10px 9px;
        transition: background .2s, border-color .2s, box-shadow .2s;
        outline: none;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }
    .lm-nav__toggle:focus { outline: none; }
    .lm-nav__toggle:active { background: rgba(201,149,106,.12); }
    .lm-nav__toggle:hover {
        background: rgba(201,149,106,.16);
        border-color: rgba(201,149,106,.55) !important;
        box-shadow: 0 0 12px rgba(201,149,106,.25);
    }
    .lm-nav__toggle span {
        display: block;
        width: 100%; height: 1.5px;
        background: #f5f0ea;
        margin: 3px 0;
        transition: transform .35s cubic-bezier(.4,0,.2,1),
                    opacity   .25s ease,
                    background .2s;
        transform-origin: center;
    }
    /* X-Animation beim Öffnen */
    .lm-nav__toggle.is-open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); background: #C9956A; }
    .lm-nav__toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .lm-nav__toggle.is-open span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); background: #C9956A; }

    /* Menü — elegantes Dropdown, nicht volle Breite */
    .lm-nav__links {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        right: 16px;
        left: auto;
        top: 80px;
        width: 220px;
        background: rgba(10,10,10,.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(201,149,106,.12);
        border-radius: 6px;
        justify-content: flex-start;
        gap: 0;
        text-align: right;
        padding: 8px 0;
        /* geschlossen */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform-origin: top right;
        transform: scale(.96) translateY(-6px);
        box-shadow: none;
        transition:
            max-height .7s  cubic-bezier(.22,.61,.36,1),
            opacity    .55s cubic-bezier(.22,.61,.36,1),
            transform  .55s cubic-bezier(.22,.61,.36,1),
            box-shadow .55s ease;
        pointer-events: none;
    }
    .lm-nav__links.open {
        max-height: 360px;
        opacity: 1;
        transform: scale(1) translateY(0);
        pointer-events: all;
        box-shadow:
            0 16px 48px rgba(0,0,0,.5),
            0 0 0 1px rgba(201,149,106,.08),
            0 0 40px rgba(201,149,106,.06);
    }
    /* Links gestaffelt einblenden */
    .lm-nav__links li {
        opacity: 0;
        transform: translateX(8px);
        transition: opacity .35s ease, transform .35s ease;
        border-bottom: 1px solid rgba(201,149,106,.06);
    }
    .lm-nav__links li:last-child { border-bottom: none; }
    .lm-nav__links.open li:nth-child(1) { opacity:1; transform:none; transition-delay:.12s; }
    .lm-nav__links.open li:nth-child(2) { opacity:1; transform:none; transition-delay:.21s; }
    .lm-nav__links.open li:nth-child(3) { opacity:1; transform:none; transition-delay:.30s; }
    .lm-nav__links.open li:nth-child(4) { opacity:1; transform:none; transition-delay:.38s; }
    .lm-nav__links.open li:nth-child(5) { opacity:1; transform:none; transition-delay:.45s; }

    .lm-nav__links a { font-size: .78rem; padding: 14px 20px; display: block; }
    .lm-nav__cta { margin: 8px 16px !important; padding: 10px 20px !important; text-align: center; }
}

/* Auf Desktop toggle immer versteckt */
@media (min-width: 769px) {
    .lm-nav__toggle { display: none !important; }
}


/* ══════════════════════════════════════════════════════════════
   PAGE TRANSITION OVERLAY
   ══════════════════════════════════════════════════════════════ */

#lm-transition {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 50% 38%, rgba(201,149,106,.06) 0%, transparent 62%),
        #0a0a0a;
    opacity: 1; /* starts opaque — JS fades out on load */
    will-change: opacity;
    transition: opacity .52s cubic-bezier(.4, 0, .2, 1);
}
#lm-transition.lm-t-out {
    opacity: 0;
    pointer-events: none;
}
#lm-transition.lm-t-in {
    opacity: 1;
    pointer-events: all;
    transition: opacity .32s cubic-bezier(.4, 0, 1, 1);
}

/* ══════════════════════════════════════════════════════════════
   NAV DROPDOWN — .lm-nav__has-dropdown
   ══════════════════════════════════════════════════════════════ */

.lm-nav__has-dropdown { position: relative; }

/* Transparente Brücke — verhindert hover-Abbruch beim Zielen */
.lm-nav__has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%; left: -20px; right: -20px;
    height: 24px;
    display: none;
}
.lm-nav__has-dropdown:hover::after { display: block; }

/* ── Base dropdown (shared) ── */
.lm-nav__dropdown {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    list-style: none;
    background: rgba(8,8,10,.97);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(201,149,106,.18);
    border-radius: 4px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(-10px) scale(.97);
    transform-origin: top center;
    transition:
        opacity .28s cubic-bezier(.16,1,.3,1),
        transform .28s cubic-bezier(.16,1,.3,1);
    z-index: 200;
    box-shadow:
        0 4px 6px rgba(0,0,0,.3),
        0 20px 60px rgba(0,0,0,.55),
        0 0 0 1px rgba(201,149,106,.06) inset;
}
/* Pfeilspitze oben */
.lm-nav__dropdown::before {
    content: '';
    position: absolute;
    top: -5px; left: 50%;
    width: 9px; height: 9px;
    background: rgba(8,8,10,.97);
    border-top: 1px solid rgba(201,149,106,.18);
    border-left: 1px solid rgba(201,149,106,.18);
    transform: translateX(-50%) rotate(45deg);
    z-index: 1;
}
.lm-nav__has-dropdown:hover .lm-nav__dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* ── Two-level Mega-Menu ── */
.lm-nav__dropdown--mega {
    display: flex;
    width: 380px;
    padding: 0;
    min-height: 240px;
}

/* Left sidebar: country tabs */
.lm-nav__dd-sidebar {
    list-style: none;
    width: 140px;
    flex-shrink: 0;
    background: rgba(201,149,106,.04);
    border-right: 1px solid rgba(201,149,106,.12);
    padding: 8px 0;
    display: flex;
    flex-direction: column;
}
.lm-nav__dd-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    cursor: pointer;
    transition: background .15s;
    position: relative;
}
.lm-nav__dd-tab:hover,
.lm-nav__dd-tab.is-active {
    background: rgba(201,149,106,.09);
}
.lm-nav__dd-tab.is-active::after {
    content: '';
    position: absolute;
    right: -1px; top: 20%; bottom: 20%;
    width: 2px;
    background: #C9956A;
    border-radius: 2px 0 0 2px;
}
.lm-nav__dd-tab__name {
    font-size: .62rem;
    font-weight: 400;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(245,240,234,.5);
    transition: color .15s;
}
.lm-nav__dd-tab:hover .lm-nav__dd-tab__name,
.lm-nav__dd-tab.is-active .lm-nav__dd-tab__name {
    color: #C9956A;
}
.lm-nav__dd-tab__count {
    font-size: .54rem;
    color: rgba(201,149,106,.35);
    background: rgba(201,149,106,.08);
    border-radius: 10px;
    padding: 1px 6px;
    transition: color .15s, background .15s;
}
.lm-nav__dd-tab.is-active .lm-nav__dd-tab__count {
    color: rgba(201,149,106,.7);
    background: rgba(201,149,106,.14);
}
/* "Alle Standorte" link row */
.lm-nav__dd-tab--all {
    margin-top: auto;
    border-top: 1px solid rgba(201,149,106,.1);
    padding-top: 10px;
    cursor: default;
}
.lm-nav__dd-tab--all a {
    font-size: .58rem !important;
    letter-spacing: .18em !important;
    text-transform: uppercase !important;
    color: rgba(201,149,106,.55) !important;
    text-decoration: none;
    transition: color .15s !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.lm-nav__dd-tab--all a:hover { color: #C9956A !important; }
.lm-nav__dd-tab--all a span { transition: transform .18s; }
.lm-nav__dd-tab--all a:hover span { transform: translateX(3px); }

/* Right panels: city lists */
.lm-nav__dd-panels {
    flex: 1;
    position: relative;
    overflow: hidden;
    padding: 8px 0;
}
.lm-nav__dd-panel {
    position: absolute;
    inset: 0;
    list-style: none;
    padding: 4px 0;
    opacity: 0;
    transform: translateX(10px);
    pointer-events: none;
    transition:
        opacity .22s cubic-bezier(.16,1,.3,1),
        transform .22s cubic-bezier(.16,1,.3,1);
    overflow-y: auto;
    scrollbar-width: none;
}
.lm-nav__dd-panel::-webkit-scrollbar { display: none; }
.lm-nav__dd-panel.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}
.lm-nav__dd-panel li a {
    display: block;
    padding: 7px 16px;
    font-size: .64rem !important;
    font-weight: 400 !important;
    letter-spacing: .12em !important;
    color: rgba(245,240,234,.52) !important;
    text-decoration: none;
    white-space: nowrap;
    transition: color .13s, padding-left .13s !important;
}
.lm-nav__dd-panel li a:hover {
    color: #f5f0ea !important;
    padding-left: 22px !important;
}

/* Chevron */
.lm-nav__chevron {
    font-size: .55em;
    opacity: .45;
    margin-left: 4px;
    display: inline-block;
    transition: transform .26s cubic-bezier(.16,1,.3,1), opacity .26s;
    vertical-align: middle;
}
.lm-nav__has-dropdown:hover .lm-nav__chevron {
    transform: rotate(180deg);
    opacity: .8;
}

/* Mobile: hide mega-menu (mobile nav is full-screen) */
@media (max-width: 768px) {
    .lm-nav__dropdown--mega { display: none !important; }
}
