/* ============================================================================
   LuckyLiq Designsystem V4 – Shop-Header, Mobile-Drawer, Suche & Footer
   - Dark Mode: Espresso-Kopf + Gold-Wortmarke
   - Light Mode: Originalgold-Verlauf (Desktop, Tablet UND Mobil!)
   - Light-Mode-Buttons: Variante A (Mix: Suche & Konto Elfenbein, Warenkorb Espresso)
   - Kein Konflikt zwischen Floating-Cart und Produktseiten-Leiste B29/B12
   ============================================================================ */

.llq-chrome {
    --ll-ch-espresso: #30211D;
    --ll-ch-espresso-deep: #1A100A;
    --ll-ch-espresso-mid: #241710;
    --ll-ch-espresso-soft: #2B1C11;
    --ll-ch-cream: #FFF9EC;
    --ll-ch-ivory: #FFF4DE;
    --ll-ch-ivory-hover: #EAD3A5;
    --ll-ch-ivory-active: #D9BC86;
    --ll-ch-ivory-edge: #5B4327;
    --ll-ch-hover-dark: #493327;
    --ll-ch-gold-light: #FFF4C2;
    --ll-ch-gold-mid: #D4AF37;
    --ll-ch-gold-dark: #8B6914;
    --ll-ch-gold-soft: #E9CE95;
    --ll-ch-gold-text: #FFDF9C;

    /* Semantische Chrome-Tokens – Dark Mode Standard */
    --ll-ch-utility-bg: #0D0B08;
    --ll-ch-utility-text: #F4E7D1;
    --ll-ch-utility-accent: #EFCA88;
    --ll-ch-utility-border: #3A2F1E;

    --ll-ch-header-bg: linear-gradient(180deg, #1A100A 0%, #2B1C11 100%);
    --ll-ch-header-bg-mobile: linear-gradient(180deg, #1A100A 0%, #241710 100%);
    --ll-ch-header-text: #FDFBF7;
    --ll-ch-header-wordmark: #FFF4C2;
    --ll-ch-header-sub: #D1C3B5;

    --ll-ch-nav-bg: #140F0A;
    --ll-ch-nav-text: #FDFBF7;
    --ll-ch-nav-active: #D4AF37;
    --ll-ch-nav-hover: #FFF4C2;
    --ll-ch-nav-indicator: #D4AF37;
    --ll-ch-nav-border: #D4AF37;
    --ll-ch-sale-accent: #5EEAD4;

    --ll-ch-surface-float: #241B14;
    --ll-ch-surface-inset: #120D08;
    --ll-ch-scrim: rgba(10, 6, 3, 0.78);
    --ll-ch-border: #4A3D22;
    --ll-ch-border-subtle: #3A2F1E;
    --ll-ch-border-control: #B59C73;

    --ll-ch-icon-bg: #30211D;
    --ll-ch-icon-text: #FFF9EC;
    --ll-ch-icon-border: #C5A66C;

    --ll-ch-cart-bg: #30211D;
    --ll-ch-cart-text: #FFF9EC;
    --ll-ch-cart-border: #C5A66C;
    --ll-ch-count-bg: #5EEAD4;
    --ll-ch-count-text: #042F2E;
    --ll-ch-count-border: #140F0A;

    --ll-ch-footer-bg: linear-gradient(180deg, #1A100A 0%, #241710 100%);
    --ll-ch-footer-text: #FDFBF7;
    --ll-ch-footer-muted: #CDC0B4;
    --ll-ch-footer-heading: #FFF4C2;
    --ll-ch-legal-bg: #120D08;
    --ll-ch-legal-text: #FFF4C2;

    /* display: contents wie in V4, damit sticky Nav & Mobile-Bar über die ganze Seite kleben */
    display: contents;
    color: var(--ll-ch-header-text);
    font-family: var(--ll-font-body);
}

/* Light Mode – Originalgold (Desktop, Tablet UND Mobil) + Variante A (Mix) + Creme-Footer (Vorschlag A) */
html.theme-light .llq-chrome {
    --ll-ch-utility-bg: #30211D;
    --ll-ch-utility-text: #F4E7D1;
    --ll-ch-utility-accent: #EFCA88;
    --ll-ch-utility-border: #826B57;

    --ll-ch-header-bg: radial-gradient(circle at center, #FFF4C2 0%, #8B6914 100%);
    --ll-ch-header-bg-mobile: radial-gradient(circle at center, #FFF4C2 0%, #8B6914 100%);
    --ll-ch-header-text: #1A100A;
    --ll-ch-header-wordmark: #1A100A;
    --ll-ch-header-sub: #2B1C17;

    --ll-ch-nav-bg: #FCF6E9;
    --ll-ch-nav-text: #2B1C17;
    --ll-ch-nav-active: #58361C;
    --ll-ch-nav-hover: #58361C;
    --ll-ch-nav-indicator: #8B6129;
    --ll-ch-nav-border: #A58964;
    --ll-ch-sale-accent: #035840;

    --ll-ch-surface-float: #FFFDF7;
    --ll-ch-surface-inset: #EFE5D4;
    --ll-ch-scrim: rgba(45, 27, 13, 0.58);
    --ll-ch-border: rgba(139, 105, 20, 0.34);
    --ll-ch-border-subtle: rgba(139, 105, 20, 0.22);
    --ll-ch-border-control: #745933;

    /* Variante A (Mix): Suche, Konto, Burger & Mobile-Suche in Elfenbein */
    --ll-ch-icon-bg: #FFF4DE;
    --ll-ch-icon-text: #30211D;
    --ll-ch-icon-border: #5B4327;

    /* Variante A (Mix): Warenkorb als Ausnahme in dunklem Espresso */
    --ll-ch-cart-bg: #30211D;
    --ll-ch-cart-text: #FFF9EC;
    --ll-ch-cart-border: #21140C;
    --ll-ch-count-bg: #E9CE95;
    --ll-ch-count-text: #30211D;
    --ll-ch-count-border: #513A23;

    /* Hellmodus-Footer: ruhiges Creme wie Menüleiste (Nutzerbeschluss 26.11., Vorschlag A) */
    --ll-ch-footer-bg: #FCF6E9;
    --ll-ch-footer-text: #2B1C17;
    --ll-ch-footer-muted: #5C4A34;
    --ll-ch-footer-heading: #2D1B0D;
    --ll-ch-legal-bg: #30211D;
    --ll-ch-legal-text: #F4E7D1;
}

.llq-chrome svg {
    display: block;
    flex-shrink: 0;
}

.llq-ch-container {
    width: min(1200px, calc(100% - 32px));
    margin-inline: auto;
}

@media (min-width: 700px) {
    .llq-ch-container {
        width: min(1200px, calc(100% - 48px));
    }
}

/* Skip-Link */
.llq-skip {
    position: fixed;
    left: 12px;
    top: 8px;
    z-index: 1000;
    transform: translateY(-200%);
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 18px;
    border-radius: 10px;
    background: var(--ll-surface);
    color: var(--ll-text);
    border: 2px solid var(--ll-focus);
    font-weight: 700;
    text-decoration: none;
}

.llq-skip:focus {
    transform: none;
}

/* ============================================
   Streifen 1: Utility-Bar
   ============================================ */
.llq-site-header {
    position: relative;
    z-index: 100;
}

.llq-site-header:focus {
    outline: none;
}

.llq-utility-bar {
    background: var(--ll-ch-utility-bg);
    color: var(--ll-ch-utility-text);
    border-bottom: 1px solid var(--ll-ch-utility-border);
    font-size: 0.8125rem;
}

.llq-utility-inner {
    min-height: 38px;
    padding-block: 4px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px 18px;
}

.llq-utility-shipping {
    justify-self: start;
}

.llq-top-info {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ll-ch-utility-text);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    min-height: 32px;
}

.llq-top-info::before {
    content: "";
    position: absolute;
    inset: -6px -4px;
}

.llq-top-info svg {
    width: 15px;
    height: 15px;
    color: var(--ll-ch-utility-accent);
}

.llq-top-info:hover {
    color: var(--ll-ch-gold-light);
    text-decoration: underline;
}

.llq-utility-center {
    margin: 0;
    justify-self: center;
    font-family: var(--ll-font-heading);
    font-weight: 700;
    color: var(--ll-ch-utility-accent);
    letter-spacing: 0.015em;
    text-align: center;
}

.llq-utility-mobile-text {
    display: none;
}

.llq-utility-right {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    justify-self: end;
}

/* Hell/Dunkel-Umschalter – dunkle Spur, aktiver Modus leuchtet in Gold */
.llq-theme-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 2px;
    border: 1px solid #B19474;
    border-radius: 999px;
    background: #241710;
    color: #F4E7D1;
    cursor: pointer;
    min-height: 32px;
}

.llq-theme-toggle::before {
    content: "";
    position: absolute;
    inset: -6px 0;
}

.llq-theme-toggle__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 60px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: transparent;
    color: #F4E7D1;
    transition: background-color 180ms ease, color 180ms ease;
}

.llq-theme-toggle__pill svg {
    width: 13px;
    height: 13px;
}

html:not(.theme-light) .llq-theme-toggle__pill--dark {
    background: #D4AF37;
    color: #1A100A;
}

html.theme-light .llq-theme-toggle__pill--light {
    background: #E9CE95;
    color: #1A100A;
}

/* ============================================
   Streifen 2: Main-Header (Logo, Suche, Konto, Warenkorb)
   ============================================ */
.llq-header-main {
    position: relative;
    background: var(--ll-ch-header-bg);
    color: var(--ll-ch-header-text);
    padding: 14px 0;
}

.llq-header-main-inner {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto;
    align-items: center;
    gap: 16px clamp(16px, 3vw, 40px);
}

.llq-brand {
    display: flex;
    align-items: center;
}

.llq-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ll-ch-header-wordmark);
    transition: transform 180ms ease;
}

.llq-logo-link:hover {
    color: var(--ll-ch-header-wordmark);
    transform: translateY(-1px);
}

.llq-brand-image img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(26, 16, 10, 0.28));
}

.llq-logo-text {
    display: flex;
    flex-direction: column;
}

.llq-logo-title {
    font-family: var(--ll-font-heading);
    color: var(--ll-ch-header-wordmark);
    font-size: clamp(1.5rem, 2.4vw, 1.9rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.llq-logo-subtitle {
    margin-top: 3px;
    font-family: var(--ll-font-body);
    color: var(--ll-ch-header-sub);
    font-size: 0.8rem;
    font-weight: 700;
}

/* Goldverlauf-Wortmarke im Dark Mode */
html:not(.theme-light) :is(.llq-header-main, .llq-mobile-sticky-main, .llq-footer) .llq-logo-title {
    background: var(--ll-gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #D4AF37;
}

html:not(.theme-light) :is(.llq-header-main, .llq-mobile-sticky-main, .llq-footer) .llq-logo-title .llq-i-char {
    background: var(--ll-gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

html:not(.theme-light) :is(.llq-header-main, .llq-mobile-sticky-main, .llq-footer) .llq-logo-title .llq-drop {
    background: var(--ll-gold-gradient);
}

.llq-liquid-i {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.llq-i-char {
    display: inline-block;
    clip-path: inset(28% 0 0 0);
    margin-top: -0.1em;
}

.llq-drop {
    position: absolute;
    top: -0.1em;
    width: 0.2em;
    height: 0.2em;
    background-color: currentColor;
    border-radius: 0 50% 50% 50%;
    transform: rotate(45deg);
    animation: llq-drip-pulse 3s infinite ease-in-out;
}

@keyframes llq-drip-pulse {
    0%, 100% { transform: rotate(45deg) scale(1); }
    50% { transform: rotate(45deg) scale(1.05) translateY(0.05em); border-radius: 0 50% 60% 50%; }
}

/* Produktsuche im Header */
.llq-header-search {
    width: 100%;
    max-width: 520px;
    justify-self: center;
}

.llq-header-search-form {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px;
    border: 1px solid var(--ll-ch-border-control);
    border-radius: 10px;
    background: rgba(255, 249, 238, 0.96);
    box-shadow: inset 0 1px 3px rgba(112, 77, 46, 0.12);
}

html:not(.theme-light) .llq-header-search-form {
    background: #1F1812;
    border-color: #C5A66C;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.llq-header-search-form:focus-within {
    border-color: var(--ll-ch-gold-text);
}

html.theme-light .llq-header-search-form:focus-within {
    border-color: var(--ll-ch-espresso);
}

.llq-header-search-form input[type="search"] {
    flex: 1 1 auto;
    width: 0;
    min-width: 0;
    min-height: 44px;
    padding: 0 8px 0 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #291B15;
    font-weight: 600;
    box-shadow: none;
}

html:not(.theme-light) .llq-header-search-form input[type="search"] {
    color: #FDFBF7;
}

.llq-header-search-form input[type="search"]::placeholder {
    color: #685647;
    opacity: 1;
}

html:not(.theme-light) .llq-header-search-form input[type="search"]::placeholder {
    color: #9B8E80;
}

.llq-header-search-form input[type="search"]:focus {
    outline: none;
    box-shadow: none;
    background: transparent;
}

#llq-desktop-search:focus-visible {
    outline: 2px solid var(--ll-focus);
    outline-offset: -2px;
    border-radius: 7px;
}

.llq-header-search-form button {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--ll-ch-icon-border);
    border-radius: 7px;
    background: var(--ll-ch-icon-bg);
    color: var(--ll-ch-icon-text);
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.llq-header-search-form button svg {
    width: 20px;
    height: 20px;
}

/* Header-Aktionen: Konto & Warenkorb */
.llq-header-actions {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.8vw, 20px);
}

.llq-header-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--ll-ch-header-text);
    font-weight: 700;
    font-size: 0.875rem;
    white-space: nowrap;
}

.llq-header-action:hover {
    color: var(--ll-ch-header-text);
}

.llq-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--ll-ch-icon-border);
    border-radius: 8px;
    background: var(--ll-ch-icon-bg);
    color: var(--ll-ch-icon-text);
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.llq-action-icon svg {
    width: 20px;
    height: 20px;
}

/* Warenkorb-Button (Variante A Mix: dunkelbraun Espresso auch im Hellmodus!) */
.llq-cart-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 6px 13px;
    border: 1px solid var(--ll-ch-cart-border);
    border-radius: 9px;
    background: var(--ll-ch-cart-bg);
    color: var(--ll-ch-cart-text);
    box-shadow: inset 0 0 0 1px rgba(213, 171, 109, 0.25), 0 2px 4px rgba(26, 16, 10, 0.22);
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.llq-cart-action:hover {
    color: var(--ll-ch-gold-text);
}

.llq-cart-action svg {
    width: 21px;
    height: 21px;
}

.llq-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--ll-ch-count-bg);
    color: var(--ll-ch-count-text);
    border: 1px solid var(--ll-ch-count-border);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

/* Hover-Zustände für Header-Buttons */
@media (hover: hover) {
    html.theme-light .llq-header-search-form button:hover,
    html.theme-light .llq-header-action:not(.llq-cart-action):hover .llq-action-icon {
        background: var(--ll-ch-ivory-hover);
        border-color: var(--ll-ch-hover-dark);
        color: var(--ll-ch-espresso);
    }

    html:not(.theme-light) .llq-header-search-form button:hover,
    html:not(.theme-light) .llq-header-action:not(.llq-cart-action):hover .llq-action-icon,
    .llq-cart-action:hover {
        background: var(--ll-ch-hover-dark);
        border-color: var(--ll-ch-gold-text);
        color: var(--ll-ch-gold-text);
    }
}

/* ============================================
   Streifen 3: Sticky Hauptnavigation + Scroll-Warenkorb
   ============================================ */
.llq-main-navigation {
    position: sticky;
    top: 0;
    z-index: 95;
    background: var(--ll-ch-nav-bg);
    color: var(--ll-ch-nav-text);
    border-bottom: 2px solid var(--ll-ch-nav-border);
    transition: box-shadow 200ms ease;
}

html.theme-light .llq-main-navigation {
    border-bottom-width: 1px;
    box-shadow: 0 3px 9px rgba(69, 49, 28, 0.10);
}

.llq-main-navigation.is-stuck {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.llq-nav-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
}

.llq-nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 4px;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}

.llq-nav-inner a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 18px;
    text-decoration: none;
    color: var(--ll-ch-nav-text);
    font-family: var(--ll-font-body);
    font-weight: 700;
    font-size: 0.94rem;
    white-space: nowrap;
    transition: color 180ms ease;
}

.llq-nav-inner a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 3px;
    background: var(--ll-ch-nav-indicator);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 200ms ease;
}

.llq-nav-inner a.llq-nav-home-link {
    justify-content: center;
    min-width: 44px;
    min-height: 48px;
    padding: 0;
}

.llq-nav-inner a.llq-nav-home-link:focus-visible {
    outline-offset: -3px;
}

.llq-nav-inner a:hover,
.llq-nav-inner a[aria-current="page"] {
    color: var(--ll-ch-nav-active);
}

.llq-nav-inner a:hover::after,
.llq-nav-inner a[aria-current="page"]::after {
    transform: scaleX(1);
}

.llq-nav-inner a.llq-nav-link--sale,
.llq-nav-inner a.llq-nav-link--sale:hover,
.llq-nav-inner a.llq-nav-link--sale[aria-current="page"] {
    color: var(--ll-ch-sale-accent);
}

.llq-nav-inner a.llq-nav-link--sale::after {
    background: var(--ll-ch-sale-accent);
}

/* Sticky Scroll-Warenkorb in der Desktop-Nav (und Floating auf Tablet – NICHT auf PDP!) */
.llq-floating-cart {
    display: none;
    position: absolute;
    right: 0;
    top: 50%;
    z-index: 120;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 9px;
    background: var(--ll-ch-cart-bg);
    color: var(--ll-ch-cart-text);
    border: 1px solid var(--ll-ch-cart-border);
    box-shadow: var(--ll-btn-shadow);
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%);
    transition: opacity 200ms ease, background-color 180ms ease, color 180ms ease;
}

.llq-floating-cart svg {
    width: 22px;
    height: 22px;
}

.llq-floating-cart .llq-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    font-size: 0.7rem;
}

.llq-floating-cart:hover {
    background: var(--ll-ch-hover-dark);
    color: var(--ll-ch-gold-text);
    border-color: var(--ll-ch-gold-text);
}

@media (min-width: 1043px) {
    .llq-nav-inner {
        padding-inline: 58px;
    }
    .llq-floating-cart.is-visible {
        display: inline-flex;
        opacity: 1;
        pointer-events: auto;
    }
}

/* ============================================
   Tablet (561 px – 1042 px)
   ============================================ */
@media (max-width: 1042px) {
    .llq-utility-bar .llq-theme-toggle__text {
        display: none;
    }
    .llq-utility-bar .llq-theme-toggle__pill {
        min-width: auto;
        padding: 4px 8px;
    }
    .llq-header-main-inner {
        grid-template-columns: auto auto;
        justify-content: space-between;
        gap: 12px 16px;
    }
    .llq-header-main .llq-brand {
        grid-column: 1;
        grid-row: 1;
    }
    .llq-header-main .llq-header-actions {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }
    .llq-header-main .llq-header-search {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: 100%;
    }
    .llq-nav-inner a {
        padding: 12px 12px;
        font-size: 0.9rem;
    }
    /* Tablet Floating-Cart rechts unter der Sticky-Nav – auf Produktseiten deaktiviert (B29!) */
    body:not(.llq-pdp-l) .llq-floating-cart {
        top: calc(100% + 12px);
        width: 52px;
        height: 52px;
        transform: none;
    }
    body:not(.llq-pdp-l) .llq-floating-cart.is-visible {
        display: inline-flex;
        opacity: 1;
        pointer-events: auto;
    }
    /* Auf Produktseiten (Tablet): Warenkorb kompakt rechts IN der Sticky-Nav statt unten */
    body.llq-pdp-l .llq-nav-inner {
        padding-inline: 0 54px;
    }
    body.llq-pdp-l .llq-floating-cart.is-visible {
        display: inline-flex;
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 800px) {
    .llq-utility-inner {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .llq-utility-center {
        display: none;
    }
    .llq-brand-image img {
        width: 44px;
        height: 44px;
    }
    .llq-logo-title {
        font-size: 1.45rem;
    }
    .llq-nav-inner {
        justify-content: center;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .llq-nav-inner::-webkit-scrollbar {
        display: none;
    }
    .llq-nav-inner a {
        padding: 12px 10px;
        font-size: 0.875rem;
    }
}

/* ============================================
   Mobil (<= 560 px): Gold-Verlauf auch im Light Mode!
   ============================================ */
.llq-mobile-sticky-main,
.llq-mobile-search-overlay,
.llq-mobile-drawer,
.llq-mobile-drawer-backdrop {
    display: none;
}

@media (max-width: 560px) {
    .llq-header-main,
    .llq-main-navigation,
    .llq-floating-cart,
    .llq-floating-cart.is-visible {
        display: none !important;
    }

    .llq-utility-inner {
        justify-content: center;
        min-height: 30px;
        padding-block: 4px;
    }

    .llq-utility-shipping,
    .llq-utility-right {
        display: none;
    }

    .llq-utility-center {
        display: block;
        font-family: var(--ll-font-body);
        font-size: 0.78rem;
        font-weight: 700;
        color: var(--ll-ch-utility-text);
    }

    .llq-utility-desktop-text {
        display: none;
    }

    .llq-utility-mobile-text {
        display: inline;
    }

    /* Mobile Sticky-Kopfleiste – im Light Mode jetzt mit echtem Originalgold-Verlauf! */
    .llq-mobile-sticky-main {
        position: sticky;
        top: 0;
        z-index: 100;
        display: block;
        background: var(--ll-ch-header-bg-mobile);
        color: var(--ll-ch-header-text);
        border-bottom: 1px solid var(--ll-ch-border);
        padding: 6px 0;
    }

    .llq-mobile-sticky-main.is-stuck {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    }

    .llq-mobile-sticky-inner {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) 44px 44px;
        gap: 8px;
        align-items: center;
        min-height: 50px;
    }

    .llq-mobile-sticky-main .llq-brand {
        grid-column: 2;
        grid-row: 1;
        justify-content: center;
        min-width: 0;
    }

    .llq-mobile-sticky-main .llq-logo-link {
        gap: 8px;
        min-width: 0;
    }

    .llq-mobile-sticky-main .llq-brand-image {
        flex-shrink: 0;
    }

    .llq-mobile-sticky-main .llq-brand-image img {
        width: 38px;
        height: 38px;
    }

    .llq-mobile-sticky-main .llq-logo-title {
        font-size: 1.25rem;
    }

    .llq-mobile-sticky-main .llq-logo-subtitle {
        display: none;
    }

    /* Mobile Buttons: Burger & Suche = Elfenbein (Light) / Espresso (Dark), Warenkorb = Espresso */
    .llq-mobile-btn {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid var(--ll-ch-icon-border);
        border-radius: 8px;
        background: var(--ll-ch-icon-bg);
        color: var(--ll-ch-icon-text);
        text-decoration: none;
        cursor: pointer;
    }

    .llq-mobile-btn svg {
        width: 21px;
        height: 21px;
    }

    .llq-mobile-cart-link {
        background: var(--ll-ch-cart-bg);
        color: var(--ll-ch-cart-text);
        border-color: var(--ll-ch-cart-border);
    }

    html.theme-light .llq-mobile-cart-link:is(:hover, :focus-visible, :active) {
        color: var(--ll-ch-cart-text);
    }

    .llq-mobile-cart-link .llq-cart-count {
        position: absolute;
        top: -5px;
        right: -5px;
        min-width: 19px;
        height: 19px;
        padding: 0 4px;
        font-size: 0.7rem;
    }

    /* Mobile Such-Overlay */
    .llq-mobile-search-overlay {
        position: fixed;
        inset: 0;
        z-index: 220;
        display: block;
        opacity: 0;
        pointer-events: none;
        background: var(--ll-ch-scrim);
        backdrop-filter: blur(8px);
        transition: opacity 200ms ease;
    }

    .llq-mobile-search-overlay.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .llq-mobile-search-panel {
        background: var(--ll-ch-surface-float);
        padding: 16px;
        border-bottom: 1px solid var(--ll-ch-border-control);
        box-shadow: var(--ll-shadow);
    }

    .llq-mobile-search-form {
        display: grid;
        grid-template-columns: 1fr 44px;
        gap: 8px;
    }

    .llq-mobile-search-form input[type="search"] {
        min-height: 44px;
        border-radius: 999px;
        padding: 10px 16px;
        background: var(--ll-field-rest-bg);
        color: var(--ll-text);
        border: 1px solid var(--ll-field-contour);
    }

    .llq-mobile-search-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 999px;
        border: 1px solid var(--ll-ch-border-control);
        background: var(--ll-ch-espresso);
        color: var(--ll-ch-cream);
        cursor: pointer;
    }

    /* Mobile Drawer */
    .llq-mobile-drawer-backdrop {
        position: fixed;
        inset: 0;
        z-index: 205;
        display: block;
        opacity: 0;
        pointer-events: none;
        background: var(--ll-ch-scrim);
        transition: opacity 200ms ease;
    }

    .llq-mobile-drawer {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 210;
        display: flex;
        flex-direction: column;
        width: min(88vw, 340px);
        height: 100vh;
        height: 100dvh;
        background: var(--ll-ch-surface-float);
        color: var(--ll-text);
        border-right: 1px solid var(--ll-ch-border-control);
        box-shadow: var(--ll-shadow);
        transform: translateX(-105%);
        transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
    }

    body.llq-mobile-drawer-open {
        overflow: hidden;
    }

    body.llq-mobile-drawer-open .llq-mobile-drawer {
        transform: translateX(0);
    }

    body.llq-mobile-drawer-open .llq-mobile-drawer-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .llq-mobile-drawer__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 62px;
        padding: 10px 16px;
        border-bottom: 1px solid var(--ll-border);
    }

    .llq-mobile-drawer__wordmark {
        display: block;
        font-family: var(--ll-font-heading);
        font-size: 1.2rem;
        font-weight: 800;
        color: var(--ll-heading);
    }

    .llq-mobile-drawer__tagline {
        display: block;
        font-size: 0.78rem;
        color: var(--ll-muted);
    }

    .llq-mobile-drawer__close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 999px;
        border: 1px solid var(--ll-ch-border-control);
        background: var(--ll-ch-espresso);
        color: var(--ll-ch-cream);
        cursor: pointer;
    }

    .llq-mobile-drawer__body {
        flex: 1 1 auto;
        overflow-y: auto;
        padding: 12px 16px 18px;
    }

    .llq-mobile-drawer__group {
        display: grid;
        gap: 2px;
        padding: 8px 0;
    }

    .llq-mobile-drawer__group + .llq-mobile-drawer__group {
        border-top: 1px solid var(--ll-border);
        margin-top: 8px;
        padding-top: 14px;
    }

    .llq-mobile-drawer__label {
        margin: 0 0 6px;
        color: var(--ll-muted);
        font-size: 0.75rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .llq-mobile-drawer__link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 46px;
        color: var(--ll-text);
        text-decoration: none;
        font-weight: 700;
    }

    .llq-mobile-drawer__link svg {
        width: 17px;
        height: 17px;
        color: var(--ll-muted);
    }

    .llq-mobile-drawer__link.llq-mobile-drawer__link--sale,
    .llq-mobile-drawer__link.llq-mobile-drawer__link--sale:hover,
    .llq-mobile-drawer__link.llq-mobile-drawer__link--sale svg {
        color: var(--ll-ch-sale-accent);
    }

    .llq-mobile-drawer__home {
        justify-content: flex-start;
        gap: 10px;
    }

    .llq-mobile-drawer__home svg {
        width: 24px;
        height: 24px;
        color: inherit;
    }

    .llq-mobile-drawer__home:hover,
    .llq-mobile-drawer__home[aria-current="page"] {
        color: var(--ll-link);
        text-decoration: underline;
    }

    .llq-mobile-drawer__footer {
        padding: 14px 16px 18px;
        border-top: 1px solid var(--ll-border);
    }

    .llq-mobile-drawer__footer-label {
        display: block;
        margin-bottom: 8px;
        color: var(--ll-muted);
        font-size: 0.75rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .llq-mobile-drawer__footer .llq-theme-toggle {
        width: 100%;
    }

    .llq-mobile-drawer__footer .llq-theme-toggle__pill {
        flex: 1 1 0;
        min-height: 36px;
    }
}

@media (max-width: 360px) {
    .llq-mobile-sticky-main .llq-logo-title {
        font-size: 1.1rem;
    }
    .llq-mobile-sticky-main .llq-brand-image img {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 340px) {
    .llq-mobile-sticky-main .llq-logo-text {
        display: none;
    }
    .llq-mobile-sticky-main .llq-logo-link {
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        gap: 0;
    }
    .llq-mobile-sticky-main .llq-brand-image img {
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   Legal-Strip & Footer (V4, 4 Spalten + Mobil-Akkordeon)
   ============================================ */
.llq-legal-strip {
    position: relative;
    z-index: 10;
    padding: 12px 0;
    border-top: 1px solid var(--ll-ch-border-subtle);
    background: var(--ll-ch-legal-bg);
    color: var(--ll-ch-legal-text);
    font-size: 0.84rem;
    line-height: 1.45;
}

.llq-legal-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    flex-wrap: wrap;
}

.llq-legal-inner svg {
    width: 16px;
    height: 16px;
    color: var(--ll-ch-utility-accent);
}

.llq-footer {
    position: relative;
    z-index: 10;
    padding: clamp(28px, 4vw, 48px) 0 24px;
    background: var(--ll-ch-footer-bg);
    color: var(--ll-ch-footer-text);
    border-top: 1px solid var(--ll-ch-border);
}

html.theme-light .llq-footer {
    border-top: 2px solid #8B6914;
}

.llq-footer-inner {
    display: grid;
    gap: 24px;
}

.llq-footer-top {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 2.1fr);
    gap: 32px;
    align-items: start;
}

.llq-footer-brand {
    display: grid;
    gap: 12px;
}

.llq-footer-brand .llq-brand-image img {
    width: 44px;
    height: 44px;
}

.llq-footer-brand .llq-logo-title {
    font-size: 1.4rem;
}

.llq-footer-claim {
    margin: 0;
    max-width: 34ch;
    color: var(--ll-ch-footer-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.llq-footer-contact {
    display: grid;
    gap: 2px;
    font-size: 0.9rem;
    font-weight: 700;
}

.llq-footer-contact a,
.llq-footer-nav a,
.llq-footer-bottom a {
    color: var(--ll-ch-footer-text);
    text-decoration: none;
    transition: opacity 160ms ease;
}

.llq-footer-contact a:hover,
.llq-footer-nav a:hover,
.llq-footer-bottom a:hover {
    text-decoration: underline;
}

.llq-footer-nav a.llq-footer-link--sale,
.llq-footer-nav a.llq-footer-link--sale:hover {
    color: var(--ll-ch-sale-accent);
    font-weight: 700;
}

.llq-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.llq-footer-section {
    min-width: 0;
}

.llq-footer-section summary {
    list-style: none;
    cursor: default;
    font-family: var(--ll-font-heading);
    color: var(--ll-ch-footer-heading);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 10px;
}

.llq-footer-section summary::-webkit-details-marker {
    display: none;
}

.llq-footer-nav {
    display: grid;
    gap: 2px;
    font-size: 0.92rem;
    font-weight: 600;
}

.llq-footer-nav a,
.llq-footer-contact a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: 4px;
    min-width: 0;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.llq-payment-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--ll-ch-border);
}

.llq-payment-label {
    flex: 0 0 100%;
    width: 100%;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ll-ch-footer-muted);
    margin: 0 0 2px;
}

.llq-payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 5px 11px;
    border-radius: 7px;
    background: #FFFFFF;
    color: #1A100A;
    border: 1px solid rgba(45, 27, 13, 0.22);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
}

.llq-payment-badge img {
    display: block;
    height: 22px;
    width: auto;
    object-fit: contain;
}

.llq-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 20px;
    padding-top: 14px;
    border-top: 1px solid var(--ll-ch-border);
    color: var(--ll-ch-footer-muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.llq-footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.llq-footer-bottom-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

@media (max-width: 1106px) {
    .llq-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .llq-footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 560px) {
    .llq-footer-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .llq-footer-section {
        border-top: 1px solid var(--ll-ch-border);
    }
    .llq-footer-section:last-child {
        border-bottom: 1px solid var(--ll-ch-border);
    }
    .llq-footer-section summary {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 48px;
        margin: 0;
        padding: 12px 28px 12px 0;
        cursor: pointer;
    }
    .llq-footer-section summary::after {
        content: "+";
        position: absolute;
        right: 4px;
        font-family: var(--ll-font-body);
        font-size: 1.25rem;
        font-weight: 800;
    }
    .llq-footer-section[open] summary::after {
        content: "−";
    }
    .llq-footer-nav {
        padding-bottom: 12px;
    }
    .llq-footer-nav a {
        min-height: 44px;
    }
}

/* Mitlaufender Nach-oben-Button unten rechts */
.llq-back-to-top {
    position: fixed;
    right: 20px;
    bottom: calc(var(--ll-pdp-b29-reserve, 0px) + var(--ll-back-to-top-abstand, 20px));
    z-index: 90;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--ll-ch-border-control, #D4AF37);
    background: #1B140E;
    color: #FFF4C2;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 200ms ease, transform 200ms ease, background-color 180ms ease, color 180ms ease;
}

html.theme-light .llq-back-to-top {
    background: #FCF6E9;
    color: #291B15;
    border-color: #8B6914;
    box-shadow: 0 8px 22px rgba(74, 51, 9, 0.2);
}

.llq-back-to-top svg {
    width: 22px;
    height: 22px;
}

.llq-back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (hover: hover) {
    .llq-back-to-top.is-visible:hover {
        transform: translateY(-2px);
        background: #2C2117;
        color: #F0DFA0;
    }
    html.theme-light .llq-back-to-top.is-visible:hover {
        background: #F4E8CC;
        color: #1A120D;
    }
}

.llq-back-to-top:focus-visible {
    outline: 2px solid var(--ll-focus, #D4AF37);
    outline-offset: 3px;
}

@media (max-width: 560px) {
    .llq-back-to-top {
        --ll-back-to-top-abstand: 16px;
        right: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .llq-back-to-top {
        transition: none;
        transform: none;
    }
}

@media print {
    .llq-chrome {
        display: none !important;
    }
}
