/* =========================================================
   1. GLOBAL SOFT-DESIGN (Buttons, Felder & Badges)
   ========================================================= */

.btn-primary, .btn-secondary, button.btn, .add-to-cart, #submit-login, .register-form button {
    border-radius: 12px !important;
    transition: all 0.3s ease-in-out !important;
    border: none !important;
}

input[type="text"], input[type="email"], input[type="password"], input[type="number"], textarea, select {
    border-radius: 12px !important;
    border: 1px solid #eee !important;
    padding: 10px 15px !important;
    outline: none !important;
}

input:focus, textarea:focus, select:focus {
    border-radius: 12px !important;
    border-color: #3b55e6 !important;
    box-shadow: 0 0 0 3px rgba(59, 85, 230, 0.1) !important;
}

.new-badge, .on-sale, .discount-percentage {
    border-radius: 8px !important;
    padding: 5px 12px !important;
}








/* =========================================================
   HEADER MODERNISIERUNG - Clean & Contemporary
   ========================================================= */

/* 1. HEADER GLOBAL */
#schigged-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 70px;
    /* WICHTIG: Kein overflow: hidden hier, da es Kinder abschneidet */
}

#schigged-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom-color: transparent;
}

/* 2. HEADER CONTAINER & GRID */
.header-main {
    padding: 1rem 0;
    height: 100%;
    /* WICHTIG: Kein overflow: hidden hier */
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

.header-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    height: 100%;
}

/* 3. LOGO - KORRIGIERTE AUTOMATISCHE ANPASSUNG */
.header-logo {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* WICHTIG: Container darf nichts abschneiden */
    overflow: visible !important;
}

.header-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    /* WICHTIG: Link darf nichts abschneiden */
    overflow: visible !important;
}

/* EINHEITLICHE LOGO-DEFINITION - keine abgeschnittenen Ecken */
.header-logo img.logo {
    height: 45px !important; /* Feste, angemessene Größe */
    width: auto !important;
    max-width: 180px !important;
    transition: transform 0.3s ease;
    object-fit: contain !important;
    display: block;
    /* WICHTIG: Verhindert jegliches Abschneiden */
    overflow: visible !important;
}

.header-logo:hover img {
    transform: scale(1.03);
}

/* 4. MOBILE MENU TOGGLE */
.mobile-menu-toggle {
    background: none;
    border: none;
    padding: 0.75rem;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.mobile-menu-toggle .material-icons {
    font-size: 28px;
    color: #333;
}

/* 5. HEADER RIGHT SECTION */
.header-right {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.header-icon-item {
    position: relative;
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.header-icon-item .material-icons {
    font-size: 24px;
    color: #333;
}

/* Shopping Cart Badge */
.header-icon-item.cart-info {
    position: relative;
}

.cart-products-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #3b55e6;
    color: white;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 6. RESPONSIVE LOGO ANPASSUNGEN - VEREINFACHT */
@media (max-width: 1199px) {
    #schigged-header {
        height: 65px;
    }
    
    .header-logo img.logo {
        height: 40px !important;
        max-width: 160px !important;
    }
}

@media (max-width: 767px) {
    #schigged-header {
        height: 60px;
    }
    
    .header-logo img.logo {
        height: 35px !important;
        max-width: 140px !important;
    }
    
    .header-icon-item {
        padding: 0.5rem;
    }
    
    .header-icon-item .material-icons {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    #schigged-header {
        height: 55px;
    }
    
    .header-logo img.logo {
        height: 30px !important;
        max-width: 120px !important;
    }
    
    .mobile-menu-toggle {
        padding: 0.5rem;
    }
    
    .mobile-menu-toggle .material-icons {
        font-size: 24px;
    }
}

/* =========================================================
   7. DESKTOP NAVIGATION - VOLLSTÄNDIG TRANSPARENT
   ========================================================= */
.header-nav {
    /* ALLE visuellen Elemente entfernt */
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Container innerhalb der Navigation */
.nav-container,
.header-nav .container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* PrestaShop Main Menu - transparent */
#_desktop_top_menu,
.menu.js-top-menu {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Haupt-Menü-Liste */
#top-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    height: 100%;
    align-items: center;
}

#top-menu > li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

#top-menu > li > a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0 1rem;
    position: relative;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    height: 100%;
    border: none !important;
    background: transparent !important;
}

#top-menu > li > a:hover {
    color: #3b55e6;
    background: transparent !important;
}

/* OPTIONAL: Hover-Unterstreichung (kann entfernt werden) */
#top-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: #3b55e6;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

#top-menu > li > a:hover::after,
#top-menu > li.active > a::after {
    transform: scaleX(1);
}











/* 8. MOBILE MENU CANVAS - MODERN UPDATE */
#mobile-menu-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100%;
    background: white;
    z-index: 1001;
    padding: 2rem 1.5rem;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

#mobile-menu-canvas.open {
    transform: translateX(0);
}

.close-menu {
    align-self: flex-end;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    margin-bottom: 2rem;
    border-radius: 50%;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-menu:hover {
    background: rgba(0, 0, 0, 0.05);
}

.close-menu .material-icons {
    font-size: 28px;
    color: #333;
}

.mobile-menu-content {
    flex: 1;
    overflow-y: auto;
}

/* Mobile Menu List Styling */
.mobile-menu-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-content ul li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-menu-content ul li a {
    display: block;
    padding: 1rem 0;
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.2s ease;
    position: relative;
}

.mobile-menu-content ul li a:hover {
    color: #3b55e6;
    padding-left: 0.5rem;
}

/* 9. OVERLAY */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.menu-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* 10. RESPONSIVE ADJUSTMENTS */
@media (max-width: 1199px) {
    .header-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
}

@media (max-width: 767px) {
    .header-row {
        grid-template-columns: auto 1fr auto;
        gap: 1rem;
    }
    
    /* ENTFERNT: Die alte Regel, die das Logo auf 32px setzt */
    /* .header-logo img { height: 32px; } */
    
    .header-right {
        gap: 0.5rem;
    }
    
    .header-icon-item {
        padding: 0.5rem;
    }
    
    .mobile-menu-toggle {
        padding: 0.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (min-width: 1200px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    #mobile-menu-canvas {
        display: none !important;
    }
    
    .menu-overlay {
        display: none !important;
    }
}

/* 11. ANIMATIONS */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#schigged-header {
    animation: slideDown 0.5s ease-out;
}

/* 12. ACCESSIBILITY IMPROVEMENTS */
.mobile-menu-toggle:focus,
.close-menu:focus,
.header-icon-item a:focus {
    outline: 2px solid #3b55e6;
    outline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}