/* ========================================
   GOOGLE FONTS
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ========================================
   CSS VARIABLES (Design Tokens)
   ======================================== */
:root {
    /* Primary - Sage Green (Ethik/Natur) */
    --color-primary: #0f766e;
    --color-primary-hover: #0d9488;
    --color-primary-light: #ccfbf1;
    --color-primary-50: #f0fdfa;

    /* Neutral - Slate (Seriosität) */
    --color-slate-900: #0f172a;
    --color-slate-700: #334155;
    --color-slate-500: #64748b;
    --color-slate-300: #cbd5e1;
    --color-slate-100: #f1f5f9;
    --color-slate-50: #f8fafc;

    /* Text Colors */
    --color-text: var(--color-slate-700);
    --color-text-light: var(--color-slate-500);
    --color-text-muted: var(--color-slate-500);

    /* Backgrounds */
    --color-bg: #ffffff;
    --color-bg-light: var(--color-slate-50);
    --color-bg-secondary: var(--color-slate-100);
    --color-border: var(--color-slate-300);
    --color-border-light: var(--color-slate-100);

    /* Accent - Warm Amber */
    --color-accent: #f59e0b;
    --color-accent-light: #fef3c7;

    /* Ethische Dimensionen */
    --color-environment: #059669;
    --color-labor: #2563eb;
    --color-animal: #65a30d;
    --color-transparency: #d97706;

    /* Status */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;

    /* Schatten-Hierarchie (Layered) */
    --shadow-xs: 0 1px 2px rgba(15,23,42,0.04);
    --shadow-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
    --shadow-md: 0 4px 6px -1px rgba(15,23,42,0.08), 0 2px 4px -2px rgba(15,23,42,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(15,23,42,0.10), 0 4px 6px -4px rgba(15,23,42,0.06);
    --shadow-xl: 0 20px 40px -12px rgba(0,0,0,0.08);
    --shadow-accent: 0 8px 20px -4px rgba(15,118,110,0.4);

    /* Border-Radius Hierarchie */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Easing & Timing */
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 200ms;
    --duration-slow: 300ms;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;

    /* Legacy Spacing (kompatibilität) */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Typography - Inter */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: var(--font-sans);
    --font-heading: var(--font-sans);

    /* Type Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    /* Layout */
    --max-width: 1280px;
}

/* ========================================
   RESET & BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.7;
    background-color: var(--color-bg);
    font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
}

/* Accessibility Helper */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    z-index: 9999;
    transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
    top: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.main-nav a {
    color: var(--color-text);
    font-weight: 500;
}

.search-box {
    display: flex;
    gap: var(--spacing-xs);
}

.search-box input {
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
}

.search-box button {
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    min-width: 200px;
    box-shadow: var(--box-shadow);
    list-style: none;
    z-index: 1000;
}

.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    border-bottom: 1px solid var(--color-border);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: var(--spacing-sm);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(20,184,166,0.15), transparent),
        linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    padding: clamp(4rem, 10vh, 8rem) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(20,184,166,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(94,234,212,0.06) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.25rem, 2rem + 3vw, 4rem);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 1rem + 0.75vw, 1.5rem);
    margin-bottom: var(--spacing-md);
    font-weight: 400;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-text {
    font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.1rem);
    margin-bottom: var(--spacing-lg);
    opacity: 0.85;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-align: center;
    transition:
        background-color var(--duration-fast) var(--ease-out),
        box-shadow var(--duration-normal) var(--ease-out),
        transform var(--duration-fast) var(--ease-spring);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    line-height: 1;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    box-shadow: var(--shadow-accent);
}

.btn-primary:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-sm);
}

.btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.8);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

.btn-link {
    background: none;
    color: var(--color-accent);
    padding: 0;
    text-decoration: underline;
}

/* ========================================
   DIMENSIONS SECTION
   ======================================== */
.dimensions-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg-light);
}

.dimensions-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.dimension-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.2s;
}

.dimension-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.dimension-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.dimension-card h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.dimension-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ========================================
   PRODUCTS GRID
   ======================================== */
.products-section, .categories-section {
    padding: var(--spacing-xl) 0;
}

.products-section h2, .categories-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--color-primary);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
}

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

.footer-col h4 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

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

.footer-col a {
    color: rgba(255,255,255,0.8);
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: var(--spacing-md);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid var(--color-border);
        box-shadow: var(--box-shadow);
    }

    .main-nav.mobile-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav li {
        border-bottom: 1px solid var(--color-border);
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        display: block;
        padding: var(--spacing-md);
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 10px;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--color-primary);
        transition: all 0.3s;
    }

    .dropdown-menu {
        position: static;
        border: none;
        box-shadow: none;
        margin-left: var(--spacing-md);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

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