.search-btn,
.cart-btn,
.mobile-filter-btn,
.mobile-category-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    position: relative;
    padding: 0.5rem;
    transition: var(--transition);
}

.search-btn:hover,
.cart-btn:hover,
.mobile-filter-btn:hover,
.mobile-category-btn:hover {
    color: var(--primary-color);
}

.mobile-filter-btn,
.mobile-category-btn {
    display: none;
}

/* Geräteinformations-Box */
.device-info-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
    position: relative;
}

.device-info-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 5px;
}

.device-info-close:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.device-info-content {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.device-info-image {
    width: 180px;
    height: 180px;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.device-info-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.device-info-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.device-info-title {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 0;
    padding-right: 2rem;
}

.device-info-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.device-spec-item {
    display: flex;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.spec-label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 90px;
}

.spec-value {
    color: var(--text-primary);
}

.device-info-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .device-info-content {
        grid-template-columns: 1fr;
    }
    
    .device-info-image {
        width: 100%;
        height: 200px;
        margin: 0 auto;
    }
    
    .device-info-specs {
        grid-template-columns: 1fr;
    }
    
    .device-info-title {
        font-size: 1.1rem;
    }
}

.breadcrumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: white;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.activenav {
    font-weight: bold;
}

.product-overview {
    padding: 2rem 0;
}

.overview-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr var(--sidebar-width);
    gap: 2rem;
    position: relative;
}

.sidebar {
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}

.sidebar-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid var(--border-color);
    background: var(--bg-white);
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.sidebar-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.sidebar-close:hover {
    color: var(--primary-color);
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition);
}

.sidebar-toggle {
    position: absolute;
    top: 0;
    width: 30px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
    border-radius: 0 5px 5px 0;
}

.sidebar-toggle:hover {
    background: var(--primary-dark);
}

.sidebar-left .sidebar-toggle {
    right: -30px;
}

.sidebar-right .sidebar-toggle {
    left: -30px;
    border-radius: 5px 0 0 5px;
}

.sidebar.collapsed .sidebar-content {
    opacity: 0;
    visibility: hidden;
    width: 0;
    overflow: hidden;
}

.sidebar.collapsed .sidebar-toggle svg {
    transform: rotate(180deg);
}

.sidebar-section {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.sidebar-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.sidebar-section h4 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
}

.category-tree {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 5px;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-primary);
}

.category-item:hover {
    background: var(--bg-light);
}

.category-item.active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.category-item.has-children {
    padding-left: 0.5rem;
}

.category-toggle {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
    flex-shrink: 0;
}

.category-label {
    flex: 1;
    font-size: 0.9rem;
}

.category-count {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.category-item.active .category-count {
    color: rgba(255,255,255,0.8);
}

.subcategories {
    margin-left: 1.5rem;
    margin-top: 0.25rem;
    display: none;
}

.subcategories.open {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.price-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.name-filter input {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.9rem;
    width: 100%;
    margin-bottom: 3px;
}

.price-filter input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.9rem;
    width: 0;
    min-width: 0;
}

.price-filter span {
    flex-shrink: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input {
    margin-right: 0.5rem;
    cursor: pointer;
    flex-shrink: 0;
}

.btn-filter {
    width: 100%;
    padding: 0.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-filter:hover {
    background: var(--primary-dark);
}

.btn-reset-filters {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-reset-filters:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.promo-banner {
    text-align: center;
}

.promo-banner img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.promo-banner h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.promo-banner p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.btn-small {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-small:hover {
    background: #00b359;
}

.products-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.products-header {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.products-info h1 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.product-count {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.products-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-light);
    padding: 0.25rem;
    border-radius: 5px;
}

.view-btn {
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 3px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.view-btn:hover,
.view-btn.active {
    background: var(--bg-white);
    color: var(--primary-color);
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    background: var(--bg-white);
}

.baseprod-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    width: 100%;
    margin-bottom: 5px;
    background: var(--bg-white);
}

.baseprod-label {
    font-size: 0.9rem;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
}

.filter-tag button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
}

.product-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.list-view .product-card {
    flex-direction: row;
    height: auto;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: var(--bg-light);
    flex-shrink: 0;
}

.list-view .product-image-wrapper {
    width: 250px;
    height: 250px;
    padding-top: 0;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.list-view .product-image {
    position: absolute;
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1;
}

.product-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-badge.sale {
    background: #ff4444;
}

.product-badge.new {
    background: var(--primary-color);
}

.product-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.product-category {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.list-view .product-title {
    font-size: 1.2rem;
    -webkit-line-clamp: 2;
    min-height: 3.36em;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.stars {
    color: #ffc107;
    font-size: 0.9rem;
}

.rating-count {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.product-description {
    display: none;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
    -webkit-line-clamp: 3; /* Anzahl der Zeilen */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-view .product-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    margin-top: auto;
    padding-top: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.list-view .product-footer {
    flex-direction: row;
    align-items: center;
}

.product-price {
    display: flex;
    flex-direction: column;
}

.price-current {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.price-old {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.list-view .product-actions {
    flex-direction: row;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 0;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.page-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

.features-strip {
    background: var(--bg-white);
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-item img {
    width: 48px;
    height: 48px;
}

.feature-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.feature-item span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 0.25rem 0;
}

.footer-col a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1200px) {
    .overview-layout {
        grid-template-columns: 250px 1fr 250px;
    }
    
    :root {
        --sidebar-width: 250px;
    }
}

@media (max-width: 1024px) {
    .overview-layout {
        grid-template-columns: 1fr;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-filter-btn,
    .mobile-category-btn {
        display: flex;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        width: 85%;
        max-width: 350px;
        background: var(--bg-white);
        z-index: 2000;
        overflow-y: auto;
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-hover);
        padding: 0;
    }
    
    .sidebar-header {
        display: flex;
    }
    
    .sidebar-content {
        padding: 1rem;
        gap: 1rem;
    }
    
    .sidebar-section {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
    
    .sidebar-left {
        left: 0;
        transform: translateX(-100%);
    }
    
    .sidebar-left.open {
        transform: translateX(0);
    }
    
    .sidebar-right {
        right: 0;
        transform: translateX(100%);
    }
    
    .sidebar-right.open {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .products-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .products-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .list-view .product-card {
        flex-direction: column;
    }
    
    .list-view .product-image-wrapper {
        width: 100%;
        height: 0;
        padding-top: 100%;
    }

    .list-view .product-image {
        position: absolute;
    }
    
    .list-view .product-actions {
        flex-direction: row;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .logo {
        order: 1;
    }
    
    .header-actions {
        order: 2;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        width: 90%;
    }

    .cart-preview-modal {
        width: 95%;
        max-height: 90vh;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item-image {
        width: 100%;
        height: 150px;
    }

    .cart-item-controls {
        width: 100%;
        justify-content: space-between;
    }
}