/* ============================================
   CSS STRUCTURE OVERVIEW
   ============================================
   1. base.css - Variables, global styles, utilities
   2. layout.css - Grid, sections, responsive layout
   3. header.css - Navigation and header styles
   4. hero.css - Hero section styles
   5. collections-brands.css - Collection and brand cards
   6. filters-catalog.css - Filter bar and product grid
   7. cart.css - Shopping cart styles
   8. about-testimonials-footer.css - About, testimonials, footer
   9. toast.css - Toast notification styles
   ============================================ */

:root {
    /* Colors */
    --background: #ffffff;
    --surface: #ffffff;
    --overlay: rgba(0, 0, 0, 0.8);
    
    --text: #333333;
    --text-dark: #1A1A1A;
    --text-light: #555555;
    --muted: #808080;
    
    --primary: #9C1E2F;
    --primary-hover: #7a1826;
    --secondary: #1A1A1A;
    --secondary-dark: #0f0f0f;
    --accent-blue: #3498db;
    --accent-blue-hover: #2980b9;
    --accent-blue-glass: rgba(52, 152, 219, 0.1);
    
    --accent-line: rgba(0, 0, 0, 0.08);
    
    --border: #e0e0e0;
    --border-strong: #cccccc;
    --button-text: #ffffff;
    --glass: rgba(255, 255, 255, 0.05);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 30px rgba(0, 0, 0, 0.18);
    
    /* Utilities */
    --radius: 8px;
    --transition: 0.3s ease-out;
}

/* ============================================
   RESET & GLOBAL STYLES
   ============================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background-color: var(--background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    background-image: 
        radial-gradient(at 0% 0%, rgba(52, 152, 219, 0.03) 0%, transparent 40%),
        radial-gradient(at 100% 30%, rgba(52, 152, 219, 0.05) 0%, transparent 40%),
        radial-gradient(circle, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 20px 20px;
    background-attachment: fixed;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button {
    cursor: pointer;
    font-family: inherit;
}

button:focus {
    outline: 3px solid var(--accent-blue-glass);
    outline-offset: 2px;
    border-radius: 8px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ============================================
   BUTTON STYLES
   ============================================ */

.cta-btn {
    background-color: var(--primary);
    color: var(--button-text);
    border: none;
    border-radius: 5px;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cta-btn:hover {
    background-color: var(--primary-hover);
}

.secondary-cta-btn {
    background: none;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 5px;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.secondary-cta-btn:hover {
    background-color: var(--primary);
    color: #fff;
}

.small-ghost {
    background: none;
    border: 1px solid var(--muted);
    color: var(--muted);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.small-ghost:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text);
}
@media (max-width: 768px) {
    /* Gemeinsames Styling für Kategorien und Marken-Listen */
    #collections-list, 
    #brands-list {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        white-space: nowrap;
        gap: 12px;
        padding: 8px 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    #collections-list::-webkit-scrollbar,
    #brands-list::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    /* Karten kompakter machen */
    .collection-card, 
    .brand-card {
        flex: 0 0 110px; /* Feste Breite, damit sie nebeneinander passen */
        min-width: 110px;
        margin: 0 !important;
    }

    .collection-card img, 
    .brand-card img {
        height: 60px; /* Kleinere Bilder für mehr Platz */
        object-fit: cover;
        border-radius: 6px;
    }

    .collection-card h3, 
    .brand-card h3 {
        font-size: 0.85rem;
        margin-top: 5px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        position: sticky;
        top: 0;
        z-index: 1100;
        height: 50px; /* Feste, schmale Höhe */
        padding: 0 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .logo {
        font-size: 1.1rem !important; /* Kleineres Logo */
        margin: 0;
    }

    /* Den Text "Warenkorb" ausblenden, nur Icon/Zahl lassen */
    .cart-btn-text {
        display: none;
    }

    .cart-toggle-btn {
        padding: 5px 10px;
        font-size: 1.2rem;
    }
    
    /* Suchfeld/Filter-Bereich schmaler machen */
    .filter-section {
        padding: 10px;
        gap: 8px;
    }
}