/**
 * Liza Menu Final - Brautstrauss
 * Bahn-Farbe Creme #FFF9F6 (eine Fläche mit Hero/Bahnen, sobald Hero folgt)
 */

:root {
    --liza-peach: #FFF9F6;
    --liza-dark: #2c2c2c;
    --liza-white: #ffffff;
    --liza-accent: #e67e22;
}

/* 1. Hiding Logic (Checkbox based) */
#liza-menu-toggle {
    display: none !important;
}

.liza-menu-mobile {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden */
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: var(--liza-white);
    z-index: 100000;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.liza-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Interaction: Show when Checkbox is checked */
#liza-menu-toggle:checked ~ .liza-menu-mobile {
    right: 0 !important;
}

#liza-menu-toggle:checked ~ .liza-menu-overlay {
    opacity: 1 !important;
    visibility: visible !important;
}

/* 2. Top Bar (Desktop & Mobile) */
.liza-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 25px;
    background: var(--liza-peach) !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.liza-menu-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--liza-dark);
    min-width: 0;
    flex: 1 1 auto !important;
    overflow: hidden;
}

.liza-brand-text {
    min-width: 0;
    overflow: hidden;
}

.liza-logo-container {
    flex-shrink: 0;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
}

.liza-logo-container img {
    height: 80px !important;
    max-height: 80px !important;
    width: auto !important;
    max-width: none !important;
    margin-right: 15px;
    object-fit: contain;
}

.liza-brand-name {
    font-weight: 800;
    font-size: 1.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.liza-brand-claim {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 3. Hamburger Button */
.liza-menu-hamburger {
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    flex-shrink: 0;
    margin-left: 0;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    padding: 10px 8px;
}

.liza-menu-hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--liza-dark);
    border-radius: 3px;
    transition: 0.3s;
}

/* 4. Desktop Navigation (Bottom Row) */
.liza-menu-bottom {
    background: var(--liza-peach) !important;
    padding: 0 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    width: 100% !important;
    max-width: none !important;
}

.liza-menu-nav {
    display: flex;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 30px;
    max-width: none !important;
    width: 100% !important;
}

.liza-menu-item-v3 a {
    display: block;
    padding: 15px 0;
    color: var(--liza-dark);
    text-decoration: none;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    transition: color 0.3s;
}

.liza-menu-item-v3 a:hover {
    color: var(--liza-accent);
}

/* Hide Desktop Nav on Mobile */
@media screen and (max-width: 1024px) {
    .liza-menu-bottom { display: none !important; }
    .liza-menu-meta { display: none !important; }
}

/* Hide Hamburger on Desktop */
@media screen and (min-width: 1025px) {
    .liza-menu-hamburger { display: none !important; }
    .liza-menu-mobile { display: none !important; }
}

@media screen and (max-width: 1024px) {
    .liza-menu-hamburger {
        display: flex !important;
    }
    .liza-brand-text {
        display: none !important;
    }
    .liza-logo-container {
        width: auto !important;
        height: auto !important;
    }
    .liza-logo-container img {
        height: 76px !important;
        max-height: 76px !important;
        margin-right: 0;
    }
}

@media screen and (max-width: 480px) {
    .liza-menu-top {
        padding: 8px 12px;
        gap: 8px;
    }
    .liza-logo-container {
        width: auto !important;
        height: auto !important;
    }
    .liza-logo-container img {
        height: 72px !important;
        max-height: 72px !important;
        margin-right: 0;
    }
}

/* 5. Mobile Sidebar Content */
.liza-menu-mobile-header {
    padding: 30px 25px;
    background: var(--liza-peach) !important;
    color: var(--liza-dark);
}

.liza-menu-mobile-nav {
    padding: 20px 0;
}

.liza-mobile-item a,
.liza-mobile-toggle {
    display: block;
    padding: 15px 25px;
    color: var(--liza-dark);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
}

.liza-mobile-item a:hover,
.liza-mobile-toggle:hover {
    background: var(--liza-bg-accent, #fff9f6);
}

/* Plugin-Dynamic-CSS (wp_head) setzt .liza-menu-v3/.liza-menu-nav auf Options-Pfirsich */
.liza-menu-v3,
.liza-menu-nav {
    background: var(--liza-peach) !important;
}
