/* ================================================================
   KSS Header Simple - Clean Styles (No Hover Effects)
   ================================================================ */

/* ================================================================
   BASE SETUP & OVERFLOW FIXES
   ================================================================ */

/* Robuste Overflow-Fixes für WordPress Theme Container */
.wp-site-blocks,
.wp-block-group,
header,
.kss-header-simple,
.kss-header-simple__container,
.kss-header-simple__nav {
    overflow: visible !important;
}

header {
    position: relative;
}

/* ================================================================
   HEADER CONTAINER & BASE STYLES
   ================================================================ */

.kss-header-simple {
    position: relative;
    max-width: 100%;
    z-index: 50;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kss-header-simple.is-sticky {
    position: fixed;
    width: min(var(--kss-container-max-width), var(--kss-page-width));
    top: 0;
    z-index: 9999;
}


#wpadminbar + a + .wp-site-blocks header .kss-header-simple.is-sticky {
    top: 32px;
}

#wpadminbar + .body-background + .skip-link + .wp-site-blocks .kss-header-simple {
    top: 32px !important;
}

.kss-header-simple.is-sticky.alignfull {
    left: 0;
}

/* Sticky mit Liquid Glass - Position fix beibehalten */
.kss-header-simple.is-sticky.kss-header-simple--liquid-glass {
    position: fixed !important;
}

/* ================================================================
   ADMIN BAR OFFSET
   ================================================================ */

/* Admin-Bar Offset für sticky Header */
#wpadminbar+.wp-site-blocks header .kss-header-simple.is-sticky {
    top: 32px;
}
/* ================================================================
   SCROLL SHRINK ANIMATION
   ================================================================ */

.kss-header-simple.has-scroll-shrink {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kss-header-simple.has-scroll-shrink .kss-header-simple__container {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kss-header-simple.has-scroll-shrink .kss-header-simple__brand img {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Shrunk state - smaller padding and logo */
.kss-header-simple.has-scroll-shrink.is-shrunk .kss-header-simple__container {
    padding: 8px 16px;
}

.kss-header-simple.has-scroll-shrink.is-shrunk .kss-header-simple__brand img {
    max-height: 32px !important;
}

/* Für sticky header - zusätzliche Effekte */
.kss-header-simple.has-scroll-shrink.is-sticky.is-shrunk {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
    .kss-header-simple.has-scroll-shrink.is-sticky.is-shrunk {
        background-color: rgba(33, 37, 41, 0.95);
    }
}

/* ================================================================
   BACKGROUND STYLES
   ================================================================ */

/* Transparent Background (Default) */
.kss-header-simple--bg-transparent {
    background-color: transparent;
}

/* White Background */
.kss-header-simple--bg-white {
    background-color: #ffffff !important;
    color: #333333 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.kss-header-simple--bg-white a {
    color: inherit !important;
}

.kss-header-simple--bg-white .kss-header-simple__mobile-toggle {
    color: #333333 !important;
}

/* Light Background */
.kss-header-simple--bg-light {
    background-color: #f8f9fa !important;
    color: #333333 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

.kss-header-simple--bg-light a {
    color: inherit !important;
}

.kss-header-simple--bg-light .kss-header-simple__mobile-toggle {
    color: #333333 !important;
}

/* Dark Background */
.kss-header-simple--bg-dark {
    background-color: #212529 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
}

.kss-header-simple--bg-dark a {
    color: inherit !important;
}

.kss-header-simple--bg-dark .kss-header-simple__mobile-toggle {
    color: #ffffff !important;
}

/* Black Background */
.kss-header-simple--bg-black {
    background-color: #000000 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

.kss-header-simple--bg-black a {
    color: inherit !important;
}

.kss-header-simple--bg-black .kss-header-simple__mobile-toggle {
    color: #ffffff !important;
}

/* Primary Color Background */
.kss-header-simple--bg-primary {
    background-color: var(--kss-primary-color, #007cba) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 124, 186, 0.2) !important;
}

.kss-header-simple--bg-primary a {
    color: inherit !important;
}

.kss-header-simple--bg-primary .kss-header-simple__mobile-toggle {
    color: #ffffff !important;
}

/* Custom Color Background */
.kss-header-simple--bg-custom {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.kss-header-simple--bg-custom a {
    color: inherit;
}

/* ================================================================
   LIQUID GLASS EFFECTS
   ================================================================ */

/* Original Liquid Glass für transparent Background */
.kss-header-simple--liquid-glass.kss-header-simple--bg-transparent,
.kss-header-simple--liquid-glass:not([class*="--bg-"]) {
    position: relative;
    background: linear-gradient(to bottom right,
            rgba(255, 255, 255, 0.35) 0%,
            rgba(255, 255, 255, 0.12) 35%,
            rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow:
        0 10px 30px -10px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.28);
    overflow: hidden;
    isolation: isolate;
    transition: background 0.3s, box-shadow 0.3s;
}

/* Sticky Override für Liquid Glass - Position fix hat Priorität */
.kss-header-simple--liquid-glass.is-sticky {
    position: fixed !important;
}

/* Liquid Glass + Farbe Kombinationen (Gefärbtes Glas) */
.kss-header-simple--liquid-glass:not(.kss-header-simple--bg-transparent) {
    backdrop-filter: saturate(180%) blur(20px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    overflow: hidden !important;
    isolation: isolate !important;
    transition: background 0.3s, box-shadow 0.3s !important;
}

/* Weißes Glas */
.kss-header-simple--liquid-glass.kss-header-simple--bg-white {
    background: linear-gradient(to bottom right,
        rgba(255, 255, 255, 0.85) 0%,
        rgba(255, 255, 255, 0.75) 35%,
        rgba(255, 255, 255, 0.80) 100%) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15), 
                inset 0 1px 0 0 rgba(255, 255, 255, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Helles Glas */
.kss-header-simple--liquid-glass.kss-header-simple--bg-light {
    background: linear-gradient(to bottom right,
        rgba(248, 249, 250, 0.85) 0%,
        rgba(248, 249, 250, 0.75) 35%,
        rgba(248, 249, 250, 0.80) 100%) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.12), 
                inset 0 1px 0 0 rgba(255, 255, 255, 0.4) !important;
    border: 1px solid rgba(248, 249, 250, 0.4) !important;
}

/* Dunkles Glas */
.kss-header-simple--liquid-glass.kss-header-simple--bg-dark {
    background: linear-gradient(to bottom right,
        rgba(33, 37, 41, 0.85) 0%,
        rgba(33, 37, 41, 0.75) 35%,
        rgba(33, 37, 41, 0.80) 100%) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4), 
                inset 0 1px 0 0 rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* Schwarzes Glas */
.kss-header-simple--liquid-glass.kss-header-simple--bg-black {
    background: linear-gradient(to bottom right,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.75) 35%,
        rgba(0, 0, 0, 0.80) 100%) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 
                inset 0 1px 0 0 rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Primärfarbe Glas */
.kss-header-simple--liquid-glass.kss-header-simple--bg-primary {
    background: linear-gradient(to bottom right,
        color-mix(in srgb, var(--kss-primary-color, #007cba) 85%, transparent) 0%,
        color-mix(in srgb, var(--kss-primary-color, #007cba) 75%, transparent) 35%,
        color-mix(in srgb, var(--kss-primary-color, #007cba) 80%, transparent) 100%) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 124, 186, 0.3), 
                inset 0 1px 0 0 rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Fallback für ältere Browser ohne color-mix */
@supports not (background: color-mix(in srgb, red, blue)) {
    .kss-header-simple--liquid-glass.kss-header-simple--bg-primary {
        background: linear-gradient(to bottom right,
            rgba(0, 124, 186, 0.85) 0%,
            rgba(0, 124, 186, 0.75) 35%,
            rgba(0, 124, 186, 0.80) 100%) !important;
    }
}

/* Custom Color Glas - wird via inline style gesetzt */
.kss-header-simple--liquid-glass.kss-header-simple--bg-custom {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.25), 
                inset 0 1px 0 0 rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Glass Effekt Pseudo-Elemente für alle Liquid Glass Varianten */
.kss-header-simple--liquid-glass::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.45) 0%,
            transparent 35% 65%,
            rgba(0, 0, 0, 0.18) 100%);
    mix-blend-mode: soft-light;
    opacity: 0.55;
    z-index: 1;
}

.kss-header-simple--liquid-glass::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/feGaussianBlur%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    mix-blend-mode: overlay;
    z-index: 2;
}

/* Angepasste Pseudo-Elemente für dunkle Backgrounds */
.kss-header-simple--liquid-glass.kss-header-simple--bg-dark::before,
.kss-header-simple--liquid-glass.kss-header-simple--bg-black::before {
    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.25) 0%,
            transparent 35% 65%,
            rgba(0, 0, 0, 0.35) 100%);
    opacity: 0.35;
}

/* ================================================================
   BORDER RADIUS VARIANTEN
   ================================================================ */

/* Small Border Radius (50% des Default-Wertes) */
.kss-header-simple.kss-header-radius--small {
    border-radius: 0 0 
        calc(var(--kss-brand-border-radius-default, 16px) * 0.5) 
        calc(var(--kss-brand-border-radius-default, 16px) * 0.5) !important;
}

/* Medium Border Radius (Standard - 100% des Default-Wertes) */
.kss-header-simple.kss-header-radius--medium {
    border-radius: 0 0 
        var(--kss-brand-border-radius-default, 16px) 
        var(--kss-brand-border-radius-default, 16px) !important;
}

/* Large Border Radius (200% des Default-Wertes) */
.kss-header-simple.kss-header-radius--large {
    border-radius: 0 0 
        calc(var(--kss-brand-border-radius-default, 16px) * 2) 
        calc(var(--kss-brand-border-radius-default, 16px) * 2) !important;
}

/* Disable Border Radius */
.kss-header-simple.kss-header-radius--none {
    border-radius: 0 !important;
}

/* ================================================================
   HEADER LAYOUT ELEMENTS
   ================================================================ */

.kss-header-simple__container {
    padding: 16px var(--kss-page-layout-gap);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(var(--kss-page-layout-gap) * 0.5);
    overflow: visible;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kss-header-simple__brand {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    text-decoration: none;
}

.kss-header-simple__brand--text {
    font-size: 18px;
}

.kss-header-simple__nav {
    flex: 1 1 auto;
    position: relative;
    overflow: visible;
}

.kss-header-simple__right {
    flex: 0 0 auto;
    display: flex;
    gap: 12px;
}

.kss-header-simple__auth {
    text-decoration: none;
    font-weight: 600;
}

.kss-header-simple__auth--logout {
    opacity: .8;
}

.kss-header-simple__right i {
    font-size: 24px;
}

.kss-header-simple__right a.kss-header-simple__auth {
    display: inline-block;
}

.kss-header-simple__right a.kss-header-simple__auth:not(:last-child) {
    margin-right: calc(var(--kss-page-layout-gap) * 0.25);
}

/* WooCommerce Desktop Layout */
.kss-header-simple__cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 24px;
    background-color: rgba(0, 0, 0, 0.05);
    color: inherit;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    margin-right: 12px;
}

.kss-header-simple__cart:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

.kss-header-simple--bg-dark .kss-header-simple__cart,
.kss-header-simple--bg-black .kss-header-simple__cart,
.kss-header-simple--bg-primary .kss-header-simple__cart {
    background-color: rgba(255, 255, 255, 0.1);
}

.kss-header-simple--bg-dark .kss-header-simple__cart:hover,
.kss-header-simple--bg-black .kss-header-simple__cart:hover,
.kss-header-simple--bg-primary .kss-header-simple__cart:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.kss-header-simple__cart-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.kss-header-simple__cart-total {
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
}

.kss-header-simple__user-menu {
    position: relative;
    display: inline-block;
}

.kss-header-simple__user-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    color: inherit;
    border: none;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
}

.kss-header-simple__user-toggle:hover,
.kss-header-simple__user-menu:hover .kss-header-simple__user-toggle {
    background-color: rgba(0, 0, 0, 0.1);
}

.kss-header-simple--bg-dark .kss-header-simple__user-toggle,
.kss-header-simple--bg-black .kss-header-simple__user-toggle,
.kss-header-simple--bg-primary .kss-header-simple__user-toggle {
    background-color: rgba(255, 255, 255, 0.1);
}

.kss-header-simple--bg-dark .kss-header-simple__user-toggle:hover,
.kss-header-simple--bg-black .kss-header-simple__user-toggle:hover,
.kss-header-simple--bg-primary .kss-header-simple__user-toggle:hover,
.kss-header-simple--bg-dark .kss-header-simple__user-menu:hover .kss-header-simple__user-toggle,
.kss-header-simple--bg-black .kss-header-simple__user-menu:hover .kss-header-simple__user-toggle,
.kss-header-simple--bg-primary .kss-header-simple__user-menu:hover .kss-header-simple__user-toggle {
    background-color: rgba(255, 255, 255, 0.2);
}

.kss-header-simple__user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.kss-header-simple__user-menu:hover .kss-header-simple__user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.kss-header-simple--bg-dark .kss-header-simple__user-dropdown,
.kss-header-simple--bg-black .kss-header-simple__user-dropdown,
.kss-header-simple--bg-primary .kss-header-simple__user-dropdown {
    background: rgba(30, 30, 30, 0.95);
    color: #ffffff;
}

.kss-header-simple__user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: inherit;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 15px;
    font-weight: 500;
}

.kss-header-simple__user-dropdown a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.kss-header-simple--bg-dark .kss-header-simple__user-dropdown a:hover,
.kss-header-simple--bg-black .kss-header-simple__user-dropdown a:hover,
.kss-header-simple--bg-primary .kss-header-simple__user-dropdown a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.kss-header-simple__user-dropdown a i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* ================================================================
   DESKTOP NAVIGATION
   ================================================================ */

.kss-header-simple__menu,
.kss-header-simple__menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kss-header-simple__menu {
    display: flex;
    gap: 22px;
    align-items: center;
    justify-content: center;
}

.kss-header-simple__menu li {
    position: relative;
}

.kss-header-simple__menu a {
    text-decoration: none;
    padding: 12px 16px;
    display: block;
    transition: color 0.2s ease;
}

/* Multi-Level Dropdown Navigation (rekursiv) */
.kss-header-simple__menu .menu-item-has-children {
    position: relative;
}

/* Pfeil-Indikatoren für alle Ebenen */
.kss-header-simple__menu .menu-item-has-children > a::after {
    content: '▼';
    font-size: 10px;
    margin-left: 8px;
    transition: transform 0.2s ease;
}

/* Tiefere Ebenen: Pfeil zeigt nach rechts */
.kss-header-simple__menu .sub-menu .menu-item-has-children > a::after {
    content: '▶';
    transform: none;
}

/* Alle Sub-Menüs (rekursiv für beliebige Tiefe) - Einheitlicher Liquid Glass Effekt */
.kss-header-simple__menu .sub-menu {
    position: absolute !important;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.125);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 99999 !important;
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

/* Erste Ebene Dropdown: Unter dem Parent */
.kss-header-simple__menu > .menu-item-has-children .sub-menu {
    top: 100%;
    left: 0;
    margin-top: 5px;
}

/* Tiefere Ebenen: Rechts neben dem Parent */
.kss-header-simple__menu .sub-menu .menu-item-has-children .sub-menu {
    top: -8px;
    left: 100%;
    margin-top: 0;
    margin-left: 5px;
    transform: translateX(-10px);
}

/* FUNKTIONALE Hover States für Sub-Menu Öffnen/Schließen */
.kss-header-simple__menu .menu-item-has-children:hover > .sub-menu,
.kss-header-simple__menu .sub-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Tiefere Ebenen: Transform anpassen */
.kss-header-simple__menu .sub-menu .menu-item-has-children:hover > .sub-menu,
.kss-header-simple__menu .sub-menu .sub-menu.is-open {
    transform: translateX(0);
}

/* Pfeil-Animation für erste Ebene beim Hover */
.kss-header-simple__menu > .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* Sub-Menu Items (alle Ebenen) */
.kss-header-simple__menu .sub-menu li {
    margin: 0;
    position: relative;
}

.kss-header-simple__menu .sub-menu a {
    padding: 10px 16px;
    color: #333;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    transition: padding-left 0.2s ease;
}

.kss-header-simple__menu .sub-menu li:last-child a {
    border-bottom: none;
}

/* Hover-Effekte für Navigation */

/* Parent-Links (Hauptnavigation): Unterstreichung bei Hover */
.kss-header-simple__menu > .menu-item > a:hover {
    text-decoration: underline;
    text-decoration-color: var(--nav-hover-primary);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* Submenu-Links: Blauer Border links bei Hover */
.kss-header-simple__menu .sub-menu a:hover {
    border-left: 3px solid var(--nav-hover-primary);
    padding-left: 19px; /* 16px + 3px border = ausgleich */
    transition: padding-left 0.2s ease;
}


/* ================================================================
   ACTIVE STATES (Current Page) - Desktop Navigation
   ================================================================ */

/* Parent-Links (Hauptnavigation): Unterstreichung für aktuelle Seite */
.kss-header-simple__menu > .current-menu-item > a,
.kss-header-simple__menu > .current-menu-parent > a,
.kss-header-simple__menu > .current-menu-ancestor > a,
.kss-header-simple__menu > .current_page_item > a,
.kss-header-simple__menu > .current_page_parent > a,
.kss-header-simple__menu > .current_page_ancestor > a {
    text-decoration: underline;
    text-decoration-color: var(--nav-hover-primary);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* Submenu-Links: Border für aktuelle Seite (1. Ebene) */
.kss-header-simple__menu .sub-menu .current-menu-item > a,
.kss-header-simple__menu .sub-menu .current-menu-parent > a,
.kss-header-simple__menu .sub-menu .current-menu-ancestor > a,
.kss-header-simple__menu .sub-menu .current_page_item > a,
.kss-header-simple__menu .sub-menu .current_page_parent > a,
.kss-header-simple__menu .sub-menu .current_page_ancestor > a {
    border-left: 3px solid var(--nav-hover-primary);
    padding-left: 19px;
    font-weight: 600;
}

/* Tiefere Submenu-Ebenen: Border für aktuelle Seite (2.+ Ebene) */
.kss-header-simple__menu .sub-menu .sub-menu .current-menu-item > a,
.kss-header-simple__menu .sub-menu .sub-menu .current-menu-parent > a,
.kss-header-simple__menu .sub-menu .sub-menu .current-menu-ancestor > a,
.kss-header-simple__menu .sub-menu .sub-menu .current_page_item > a,
.kss-header-simple__menu .sub-menu .sub-menu .current_page_parent > a,
.kss-header-simple__menu .sub-menu .sub-menu .current_page_ancestor > a {
    border-left: 3px solid var(--nav-hover-secondary);
    font-weight: 600;
}

/* Corporate Identity (CI) Navigation Colors - CSS Variable System */
/* Definiere CI Navigation Colors basierend auf Auswahl */
.kss-header-simple {
    --nav-hover-primary: #007cba;
    --nav-hover-secondary: #0056b3;
}

/* CI Primary Override */
.kss-header-simple[data-ci-colors="primary"] {
    --nav-hover-primary: var(--kss-primary-color, #007cba);
    --nav-hover-secondary: var(--kss-primary-hover-color, var(--kss-primary-color, #0056b3));
}

/* CI Secondary Override */
.kss-header-simple[data-ci-colors="secondary"] {
    --nav-hover-primary: var(--kss-secondary-color, #6c757d);
    --nav-hover-secondary: var(--kss-secondary-hover-color, var(--kss-secondary-color, #5a6268));
}

/* Dropdown Navigation Styling für farbige Backgrounds */
.kss-header-simple--bg-white .kss-header-simple__menu .sub-menu,
.kss-header-simple--bg-light .kss-header-simple__menu .sub-menu {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.kss-header-simple--bg-dark .kss-header-simple__menu .sub-menu,
.kss-header-simple--bg-black .kss-header-simple__menu .sub-menu {
    background-color: #2c3034;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.kss-header-simple--bg-primary .kss-header-simple__menu .sub-menu {
    background-color: var(--kss-primary-color, #007cba);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ================================================================
   FOCUS & ACCESSIBILITY
   ================================================================ */

/* Focus-Styles für bessere Keyboard-Navigation - ohne störenden Background */
.kss-header-simple__brand:focus-visible,
.kss-header-simple__menu a:focus-visible,
.kss-header-simple__right a:focus-visible {
    outline: 2px solid #007cba !important;
    outline-offset: 2px;
}

/* Mausfokus ohne Tastatur: keine Hervorhebung */
.kss-header-simple__brand:focus:not(:focus-visible),
.kss-header-simple__menu a:focus:not(:focus-visible),
.kss-header-simple__right a:focus:not(:focus-visible) {
    outline: none !important;
}

/* Focus innerhalb von Submenus - dezenter ohne Background */
.kss-header-simple__menu .sub-menu a:focus-visible {
    outline: 2px solid #007cba !important;
    outline-offset: 2px;
}

.kss-header-simple__menu .sub-menu a:focus:not(:focus-visible) {
    outline: none !important;
}

/* Burger Button - versteckt für Desktop */
.kss-header-simple__burger {
    display: none;
}



/* ================================================================
   MOBILE NAVIGATION STYLES
   ================================================================ */

/* Mobile Toggle Button (Burger Menu) */
.kss-header-simple__mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    transition: all 0.3s ease;
    border-radius: 4px;
}



.kss-header-simple__mobile-toggle:focus {
    outline: 2px solid var(--kss-color-accent, #007cba);
    outline-offset: 2px;
}

/* Burger Lines */
.kss-header-simple__burger-line {
    display: block;
    width: 24px;
    height: 3px;
    background-color: currentColor;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.kss-header-simple__burger-line:not(:last-child) {
    margin-bottom: 4px;
}

/* Animated Burger to X */
.kss-header-simple__mobile-toggle.is-active .kss-header-simple__burger-line:first-child {
    transform: translateY(7px) rotate(45deg);
}

.kss-header-simple__mobile-toggle.is-active .kss-header-simple__burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.kss-header-simple__mobile-toggle.is-active .kss-header-simple__burger-line:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Sidebar */
.kss-header-simple__mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}



/* Mobile Admin Bar hat andere Höhe */
@media screen and (max-width: 782px) {
    .admin-bar .kss-header-simple__mobile-nav {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

.kss-header-simple__mobile-nav.is-open {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
}

/* Mobile Navigation Overlay */
.kss-header-simple__mobile-nav-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
    opacity: 0;
}

.kss-header-simple__mobile-nav.is-open .kss-header-simple__mobile-nav-overlay {
    opacity: 1;
}

.kss-header-simple__mobile-nav-sidebar {
    position: absolute;
    top: 0px;
    right: 0;
    width: min(400px, 85vw);
    height: 100%;
    background-color: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Mobile Navigation Sidebar */
#wpadminbar + .wp-site-blocks header .kss-header-simple__mobile-nav-sidebar {
    top: -32px; /* WP Admin Bar berücksichtigen */
}

/* Mobile Admin Bar hat andere Höhe */
@media screen and (max-width: 782px) {
    #wpadminbar + .wp-site-blocks header .kss-header-simple__mobile-nav-sidebar{
        top: -16px; /* WP Admin Bar berücksichtigen */
    }
}



/* Mobile Nav Background Styles - übernimmt Header Background */
.kss-header-simple--bg-white .kss-header-simple__mobile-nav-sidebar {
    background-color: #ffffff;
    color: #333333;
}

.kss-header-simple--bg-light .kss-header-simple__mobile-nav-sidebar {
    background-color: #f8f9fa;
    color: #333333;
}

.kss-header-simple--bg-dark .kss-header-simple__mobile-nav-sidebar {
    background-color: #2c3034;
    color: #ffffff;
}

.kss-header-simple--bg-dark .kss-header-simple__mobile-nav-sidebar a {
    color: #ffffff;
}

.kss-header-simple--bg-black .kss-header-simple__mobile-nav-sidebar {
    background-color: #212529;
    color: #ffffff;
}

.kss-header-simple--bg-black .kss-header-simple__mobile-nav-sidebar a {
    color: #ffffff;
}

.kss-header-simple--bg-primary .kss-header-simple__mobile-nav-sidebar {
    background-color: var(--kss-primary-color, #007cba);
    color: #ffffff;
}

.kss-header-simple--bg-primary .kss-header-simple__mobile-nav-sidebar a {
    color: #ffffff;
}

/* Liquid Glass Mobile Nav */
.kss-header-simple--liquid-glass .kss-header-simple__mobile-nav-sidebar {
    background: var(--kss-white-color, #ffffff);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.25), 
                inset 0 1px 0 0 rgba(255, 255, 255, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.kss-header-simple--liquid-glass .kss-header-simple__mobile-nav-sidebar a {
    color: #333333;
}

.kss-header-simple__mobile-nav.is-open .kss-header-simple__mobile-nav-sidebar {
    transform: translateX(0);
}

/* Mobile Navigation Header */
.kss-header-simple__mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background-color: rgba(0, 0, 0, 0.03);
    gap: 16px;
}

.kss-header-simple--bg-dark .kss-header-simple__mobile-nav-header,
.kss-header-simple--bg-black .kss-header-simple__mobile-nav-header,
.kss-header-simple--bg-primary .kss-header-simple__mobile-nav-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.1);
}

.kss-header-simple__mobile-nav-logo {
    display: block;
    line-height: 0;
}

.kss-header-simple__mobile-nav-logo img {
    display: block;
    height: auto;
    max-width: 100%;
}

.kss-header-simple__mobile-nav-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: inherit;
    flex: 1;
}

.kss-header-simple__mobile-nav-cart-section {
    background-color: var(--kss-color-white, #ffffff);
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between; /* Such-Icon links, Warenkorb rechts */
    gap: 12px;
    position: relative; /* Für das absolute Search Overlay */
}

.kss-header-simple--bg-dark .kss-header-simple__mobile-nav-cart-section,
.kss-header-simple--bg-black .kss-header-simple__mobile-nav-cart-section,
.kss-header-simple--bg-primary .kss-header-simple__mobile-nav-cart-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Sidebar Search Toggle */
.kss-header-simple__search-toggle--mobile-sidebar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    color: inherit;
    border: none;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.kss-header-simple__search-toggle--mobile-sidebar:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.kss-header-simple--bg-dark .kss-header-simple__search-toggle--mobile-sidebar,
.kss-header-simple--bg-black .kss-header-simple__search-toggle--mobile-sidebar,
.kss-header-simple--bg-primary .kss-header-simple__search-toggle--mobile-sidebar {
    background-color: rgba(255, 255, 255, 0.1);
}

.kss-header-simple--bg-dark .kss-header-simple__search-toggle--mobile-sidebar:hover,
.kss-header-simple--bg-black .kss-header-simple__search-toggle--mobile-sidebar:hover,
.kss-header-simple--bg-primary .kss-header-simple__search-toggle--mobile-sidebar:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Mobile Sidebar Search Overlay - überdeckt Icon und Cart */
.kss-header-simple__mobile-sidebar-search {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: inherit;
    display: flex;
    align-items: center;
    padding: 16px 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    pointer-events: none;
}

.kss-header-simple__mobile-sidebar-search.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.kss-header-simple__mobile-sidebar-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.kss-header-simple__mobile-sidebar-search-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    outline: none;
    transition: all 0.3s ease;
}

.kss-header-simple__mobile-sidebar-search-input:focus {
    border-color: var(--kss-primary-color, #007cba);
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.kss-header-simple--bg-dark .kss-header-simple__mobile-sidebar-search-input,
.kss-header-simple--bg-black .kss-header-simple__mobile-sidebar-search-input,
.kss-header-simple--bg-primary .kss-header-simple__mobile-sidebar-search-input {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.kss-header-simple--bg-dark .kss-header-simple__mobile-sidebar-search-input:focus,
.kss-header-simple--bg-black .kss-header-simple__mobile-sidebar-search-input:focus,
.kss-header-simple--bg-primary .kss-header-simple__mobile-sidebar-search-input:focus {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.kss-header-simple__mobile-sidebar-search-submit,
.kss-header-simple__mobile-sidebar-search-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.kss-header-simple__mobile-sidebar-search-submit {
    background-color: var(--kss-primary-color, #007cba);
    color: #ffffff;
}

.kss-header-simple__mobile-sidebar-search-submit:hover {
    background-color: var(--kss-primary-hover-color, #005a87);
    transform: scale(1.05);
}

.kss-header-simple__mobile-sidebar-search-close {
    background-color: rgba(0, 0, 0, 0.1);
    color: inherit;
}

.kss-header-simple__mobile-sidebar-search-close:hover {
    background-color: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.kss-header-simple--bg-dark .kss-header-simple__mobile-sidebar-search-close,
.kss-header-simple--bg-black .kss-header-simple__mobile-sidebar-search-close {
    background-color: rgba(255, 255, 255, 0.1);
}

.kss-header-simple--bg-dark .kss-header-simple__mobile-sidebar-search-close:hover,
.kss-header-simple--bg-black .kss-header-simple__mobile-sidebar-search-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.kss-header-simple__mobile-nav-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.05);
    color: inherit;
    text-decoration: none;
    font-size: 1.125rem;
    transition: all 0.2s ease;
}

.kss-header-simple__mobile-nav-cart:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.kss-header-simple--bg-dark .kss-header-simple__mobile-nav-cart,
.kss-header-simple--bg-black .kss-header-simple__mobile-nav-cart,
.kss-header-simple--bg-primary .kss-header-simple__mobile-nav-cart {
    background-color: rgba(255, 255, 255, 0.1);
}

.kss-header-simple--bg-dark .kss-header-simple__mobile-nav-cart:hover,
.kss-header-simple--bg-black .kss-header-simple__mobile-nav-cart:hover,
.kss-header-simple--bg-primary .kss-header-simple__mobile-nav-cart:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.kss-header-simple__mobile-nav-cart-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.kss-header-simple__mobile-nav-cart-label {
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
}

.kss-header-simple__mobile-nav-cart-total {
    font-size: 13px;
    opacity: 0.8;
    line-height: 1;
}

.kss-header-simple__cart-count {
    position: absolute;
    left: 30px;
    top: 0px;
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #e74c3c;
    color: #ffffff;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.kss-header-simple__mobile-nav-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    font-size: 1.5rem;
    color: inherit;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.kss-header-simple__mobile-nav-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.kss-header-simple--bg-dark .kss-header-simple__mobile-nav-close:hover,
.kss-header-simple--bg-black .kss-header-simple__mobile-nav-close:hover,
.kss-header-simple--bg-primary .kss-header-simple__mobile-nav-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}



.kss-header-simple__mobile-nav-close:focus {
    outline: 2px solid var(--kss-color-accent, #007cba);
    outline-offset: 2px;
}

/* Mobile Navigation Content */
.kss-header-simple__mobile-nav-content {
    flex: 1;
    padding: 20px 0;
}

/* Mobile Menu Styles */
.kss-header-simple__mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kss-header-simple__mobile-menu .menu-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.kss-header-simple--bg-dark .kss-header-simple__mobile-menu .menu-item,
.kss-header-simple--bg-black .kss-header-simple__mobile-menu .menu-item,
.kss-header-simple--bg-primary .kss-header-simple__mobile-menu .menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.kss-header-simple__mobile-menu .menu-item:last-child {
    border-bottom: none;
}

/* Wrapper für Link + Toggle Button */
.kss-header-simple__mobile-menu .menu-item-has-children {
    position: relative;
}

.kss-header-simple__mobile-menu .menu-item-has-children > a {
    position: relative;
}

.kss-header-simple__mobile-menu a {
    display: block;
    padding: 16px 20px;
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Parent items mit Children - Platz für Toggle-Button */
.kss-header-simple__mobile-menu .menu-item-has-children > a {
    padding-right: 60px; /* Platz für Toggle-Button */
}

.kss-header-simple__mobile-menu a:hover,
.kss-header-simple__mobile-menu a:focus {
    background-color: rgba(0, 0, 0, 0.05);
}

.kss-header-simple--bg-dark .kss-header-simple__mobile-menu a:hover,
.kss-header-simple--bg-dark .kss-header-simple__mobile-menu a:focus,
.kss-header-simple--bg-black .kss-header-simple__mobile-menu a:hover,
.kss-header-simple--bg-black .kss-header-simple__mobile-menu a:focus,
.kss-header-simple--bg-primary .kss-header-simple__mobile-menu a:hover,
.kss-header-simple--bg-primary .kss-header-simple__mobile-menu a:focus {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Submenu Toggle Button */
.kss-header-simple__mobile-menu .submenu-toggle {
    position: absolute;
    right: 0;
    top: 0;
    width: 48px;
    height: 48px; /* Feste Höhe statt 100% - entspricht der Link-Höhe (16px padding * 2 + line-height) */
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 1;
}

.kss-header-simple__mobile-menu .submenu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.kss-header-simple--bg-dark .kss-header-simple__mobile-menu .submenu-toggle:hover,
.kss-header-simple--bg-black .kss-header-simple__mobile-menu .submenu-toggle:hover,
.kss-header-simple--bg-primary .kss-header-simple__mobile-menu .submenu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.kss-header-simple__mobile-menu .submenu-toggle i {
    transition: transform 0.3s ease;
}

.kss-header-simple__mobile-menu .menu-item-has-children.is-open > .submenu-toggle i {
    transform: rotate(180deg);
}



/* Mobile Submenu Styles */
.kss-header-simple__mobile-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.02);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                padding 0.3s ease;
}

.kss-header-simple--bg-dark .kss-header-simple__mobile-menu .sub-menu,
.kss-header-simple--bg-black .kss-header-simple__mobile-menu .sub-menu,
.kss-header-simple--bg-primary .kss-header-simple__mobile-menu .sub-menu {
    background-color: rgba(255, 255, 255, 0.05);
}

.kss-header-simple__mobile-menu .menu-item-has-children.is-open > .sub-menu {
    max-height: 2000px; /* Große genug für die meisten Submenus - wird smooth animiert */
    opacity: 1;
}

.kss-header-simple__mobile-menu .sub-menu a {
    padding-left: 40px;
    font-size: 0.9rem;
    font-weight: 400;
}

.kss-header-simple__mobile-menu .sub-menu .menu-item-has-children > a {
    padding-right: 60px; /* Platz für Toggle-Button auch in Submenus */
}

.kss-header-simple__mobile-menu .sub-menu .sub-menu a {
    padding-left: 60px;
}

/* ================================================================
   ACTIVE STATES (Current Page) - Mobile Navigation
   ================================================================ */

/* Mobile Menu Active State - Border links */
.kss-header-simple__mobile-menu .current-menu-item > a,
.kss-header-simple__mobile-menu .current-menu-parent > a,
.kss-header-simple__mobile-menu .current-menu-ancestor > a,
.kss-header-simple__mobile-menu .current_page_item > a,
.kss-header-simple__mobile-menu .current_page_parent > a,
.kss-header-simple__mobile-menu .current_page_ancestor > a {
    border-left: 3px solid var(--nav-hover-primary);
    padding-left: 23px; /* 20px + 3px border */
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.03);
}

/* Active States auch mit Children - Toggle-Button Platz beibehalten */
.kss-header-simple__mobile-menu .menu-item-has-children.current-menu-item > a,
.kss-header-simple__mobile-menu .menu-item-has-children.current-menu-parent > a,
.kss-header-simple__mobile-menu .menu-item-has-children.current-menu-ancestor > a {
    padding-right: 60px; /* Platz für Toggle-Button beibehalten */
}

.kss-header-simple--bg-dark .kss-header-simple__mobile-menu .current-menu-item > a,
.kss-header-simple--bg-dark .kss-header-simple__mobile-menu .current-menu-parent > a,
.kss-header-simple--bg-dark .kss-header-simple__mobile-menu .current-menu-ancestor > a,
.kss-header-simple--bg-black .kss-header-simple__mobile-menu .current-menu-item > a,
.kss-header-simple--bg-black .kss-header-simple__mobile-menu .current-menu-parent > a,
.kss-header-simple--bg-black .kss-header-simple__mobile-menu .current-menu-ancestor > a,
.kss-header-simple--bg-primary .kss-header-simple__mobile-menu .current-menu-item > a,
.kss-header-simple--bg-primary .kss-header-simple__mobile-menu .current-menu-parent > a,
.kss-header-simple--bg-primary .kss-header-simple__mobile-menu .current-menu-ancestor > a {
    background-color: rgba(255, 255, 255, 0.08);
}

/* Mobile Submenu Active State - tiefere Ebenen */
.kss-header-simple__mobile-menu .sub-menu .current-menu-item > a,
.kss-header-simple__mobile-menu .sub-menu .current-menu-parent > a,
.kss-header-simple__mobile-menu .sub-menu .current-menu-ancestor > a {
    padding-left: 43px; /* 40px + 3px border */
}

/* Active States für Submenu items mit Children */
.kss-header-simple__mobile-menu .sub-menu .menu-item-has-children.current-menu-item > a,
.kss-header-simple__mobile-menu .sub-menu .menu-item-has-children.current-menu-parent > a,
.kss-header-simple__mobile-menu .sub-menu .menu-item-has-children.current-menu-ancestor > a {
    padding-right: 60px; /* Platz für Toggle-Button beibehalten */
}

.kss-header-simple__mobile-menu .sub-menu .sub-menu .current-menu-item > a,
.kss-header-simple__mobile-menu .sub-menu .sub-menu .current-menu-parent > a,
.kss-header-simple__mobile-menu .sub-menu .sub-menu .current-menu-ancestor > a {
    padding-left: 63px; /* 60px + 3px border */
    border-left-color: var(--nav-hover-secondary);
}

/* Mobile Auth Section */
.kss-header-simple__mobile-auth {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.kss-header-simple__mobile-auth-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--kss-color-text, #333333);
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.kss-header-simple__mobile-auth-item:last-child {
    border-bottom: none;
}



.kss-header-simple__mobile-auth-item i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* ================================================================
   RESPONSIVE BREAKPOINTS
   ================================================================ */

@media screen and (max-width: 1024px) {
    /* Hide desktop navigation */
    .kss-header-simple__nav {
        display: none;
    }
    
    .kss-header-simple__right {
        display: none;
    }
    
    /* Show mobile toggle */
    .kss-header-simple__mobile-toggle {
        display: flex;
    }
    
    /* Adjust header layout for mobile */
    .kss-header-simple__container {
        padding: 16px;
    }
    
    .kss-header-simple__left {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* Prevent body scroll when mobile menu is open */
body.mobile-nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ================================================================
   SEARCH FUNCTIONALITY
   ================================================================ */

/* Search Toggle Button */
.kss-header-simple__search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    color: inherit;
    border: none;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    margin-right: 12px;
}

.kss-header-simple__search-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.kss-header-simple--bg-dark .kss-header-simple__search-toggle,
.kss-header-simple--bg-black .kss-header-simple__search-toggle,
.kss-header-simple--bg-primary .kss-header-simple__search-toggle {
    background-color: rgba(255, 255, 255, 0.1);
}

.kss-header-simple--bg-dark .kss-header-simple__search-toggle:hover,
.kss-header-simple--bg-black .kss-header-simple__search-toggle:hover,
.kss-header-simple--bg-primary .kss-header-simple__search-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Search Overlay */
.kss-header-simple__search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    pointer-events: none;
}

.kss-header-simple__search-overlay.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.kss-header-simple--bg-dark .kss-header-simple__search-overlay,
.kss-header-simple--bg-black .kss-header-simple__search-overlay {
    background: rgba(33, 37, 41, 0.98);
}

.kss-header-simple--bg-primary .kss-header-simple__search-overlay {
    background: color-mix(in srgb, var(--kss-primary-color, #007cba) 98%, transparent);
}

/* Search Container */
.kss-header-simple__search-container {
    width: 100%;
    max-width: 800px;
    padding: 0 var(--kss-page-layout-gap);
}

/* Search Form */
.kss-header-simple__search-form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Search Input */
.kss-header-simple__search-input {
    flex: 1;
    padding: 18px 24px;
    font-size: 24px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    outline: none;
    transition: all 0.3s ease;
}

.kss-header-simple__search-input:focus {
    border-color: var(--kss-primary-color, #007cba);
    box-shadow: 0 0 0 4px rgba(0, 124, 186, 0.1);
}

.kss-header-simple--bg-dark .kss-header-simple__search-input,
.kss-header-simple--bg-black .kss-header-simple__search-input {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.kss-header-simple--bg-dark .kss-header-simple__search-input:focus,
.kss-header-simple--bg-black .kss-header-simple__search-input:focus {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.kss-header-simple--bg-dark .kss-header-simple__search-input::placeholder,
.kss-header-simple--bg-black .kss-header-simple__search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Search Submit Button */
.kss-header-simple__search-submit {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--kss-primary-color, #007cba);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.kss-header-simple__search-submit:hover {
    background-color: var(--kss-primary-hover-color, #005a87);
    transform: scale(1.05);
}

/* Search Close Button */
.kss-header-simple__search-close {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
    color: inherit;
    border: none;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.kss-header-simple__search-close:hover {
    background-color: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.kss-header-simple--bg-dark .kss-header-simple__search-close,
.kss-header-simple--bg-black .kss-header-simple__search-close {
    background-color: rgba(255, 255, 255, 0.1);
}

.kss-header-simple--bg-dark .kss-header-simple__search-close:hover,
.kss-header-simple--bg-black .kss-header-simple__search-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Prevent body scroll when search is open */
body.search-overlay-open {
    overflow: hidden;
}

/* Mobile Anpassungen für Search */
@media screen and (max-width: 1024px) {
    /* Desktop-Such-Button ausblenden */
    .kss-header-simple__right .kss-header-simple__search-toggle {
        display: none;
    }
    
    .kss-header-simple__search-input {
        font-size: 18px;
        padding: 16px 20px;
    }
    
    .kss-header-simple__search-submit,
    .kss-header-simple__search-close {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    
    .kss-header-simple__search-container {
        padding: 0 20px;
    }
}

@media screen and (min-width: 1025px) {
    /* Mobile-Such-Button auf Desktop ausblenden */
    .kss-header-simple__search-toggle--mobile {
        display: none !important;
    }
}

@media screen and (max-width: 480px) {
    .kss-header-simple__search-input {
        font-size: 16px;
        padding: 14px 18px;
    }
    
    .kss-header-simple__search-submit,
    .kss-header-simple__search-close {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    
    .kss-header-simple__search-form {
        gap: 8px;
    }
    
    .kss-header-simple__search-toggle--mobile {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-right: 8px;
    }
}