/**
 * Marty's Moden - Modernes Template
 * Inspiriert von HybridHeroes Design
 * Minimalistisch, Clean, Performance-optimiert
 */

/* ============================================================
   CSS VARIABLES - Design System
   ============================================================ */
:root {
    /* Colors - Minimalistisches Western-Palette */
    --color-primary: #2d2d2d;         /* Dunkles Grau */
    --color-secondary: #8B4513;       /* Saddle Brown */
    --color-accent: #D2691E;          /* Chocolate */
    --color-text: #1a1a1a;            /* Fast Schwarz */
    --color-text-muted: #666666;      /* Grau für Subtexte */
    --color-bg: #ffffff;              /* Weiß */
    --color-bg-alt: #f8f8f8;          /* Off-White */
    --color-border: #e5e5e5;          /* Border Grau */

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Inter', sans-serif;

    /* Font Sizes - Responsive Scale */
    --text-xs: 0.75rem;     /* 12px */
    --text-sm: 0.875rem;    /* 14px */
    --text-base: 1rem;      /* 16px */
    --text-lg: 1.125rem;    /* 18px */
    --text-xl: 1.25rem;     /* 20px */
    --text-2xl: 1.5rem;     /* 24px */
    --text-3xl: 1.875rem;   /* 30px */
    --text-4xl: 2.25rem;    /* 36px */
    --text-5xl: 3rem;       /* 48px */
    --text-6xl: 3.75rem;    /* 60px */

    /* Spacing */
    --space-1: 0.25rem;     /* 4px */
    --space-2: 0.5rem;      /* 8px */
    --space-3: 0.75rem;     /* 12px */
    --space-4: 1rem;        /* 16px */
    --space-5: 1.25rem;     /* 20px */
    --space-6: 1.5rem;      /* 24px */
    --space-8: 2rem;        /* 32px */
    --space-10: 2.5rem;     /* 40px */
    --space-12: 3rem;       /* 48px */
    --space-16: 4rem;       /* 64px */
    --space-20: 5rem;       /* 80px */
    --space-24: 6rem;       /* 96px */
    --space-32: 8rem;       /* 128px */

    /* Container */
    --container-max: 1280px;
    --container-padding: var(--space-6);

    /* Border Radius */
    --radius-sm: 0.25rem;   /* 4px */
    --radius-md: 0.5rem;    /* 8px */
    --radius-lg: 1rem;      /* 16px */
    --radius-xl: 1.5rem;    /* 24px */

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--text-5xl);
    font-weight: 800;
}

h2 {
    font-size: var(--text-4xl);
    font-weight: 700;
}

h3 {
    font-size: var(--text-3xl);
    font-weight: 600;
}

h4 {
    font-size: var(--text-2xl);
    font-weight: 600;
}

p {
    margin-bottom: var(--space-4);
    color: var(--color-text);
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

.section {
    padding: var(--space-20) 0;
}

.section-sm {
    padding: var(--space-12) 0;
}

.section-lg {
    padding: var(--space-32) 0;
}

/* ============================================================
   HEADER - Sticky Navigation
   ============================================================ */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.logo img {
    height: 48px;
    width: auto;
    transition: transform var(--transition-base);
}

.logo:hover img {
    transform: scale(1.05);
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: var(--space-8);
    align-items: center;
}

nav a {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-text);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

nav a:hover,
nav a.active {
    color: var(--color-secondary);
    background: rgba(139, 69, 19, 0.05);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

.hamburger {
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    padding: var(--space-32) 0;
    text-align: center;
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: var(--text-6xl);
    font-weight: 800;
    margin-bottom: var(--space-6);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    font-family: var(--font-primary);
}

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

.btn-primary:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

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

/* ============================================================
   BRANDS SHOWCASE - HybridHeroes Style
   ============================================================ */
.brands-section {
    background: var(--color-bg-alt);
    padding: var(--space-16) 0;
    overflow: hidden;
}

.brands-title {
    text-align: center;
    font-size: var(--text-xl);
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: var(--space-12);
}

.brands-carousel {
    display: flex;
    gap: var(--space-12);
    animation: scroll 30s linear infinite;
}

.brand-logo-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
}

.brand-logo-wrapper img {
    height: 60px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all var(--transition-base);
}

.brand-logo-wrapper:hover img {
    opacity: 1;
    filter: grayscale(0%);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 2));
    }
}

/* ============================================================
   GRID LAYOUTS
   ============================================================ */
.grid {
    display: grid;
    gap: var(--space-8);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-secondary);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-4);
}

.card h3 {
    margin-bottom: var(--space-3);
    font-size: var(--text-2xl);
}

.card p {
    color: var(--color-text-muted);
    font-size: var(--text-base);
}

/* ============================================================
   FOOTER - Multi-Column Layout
   ============================================================ */
footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.9);
    padding: var(--space-16) 0 var(--space-8) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-column h4 {
    color: white;
    font-size: var(--text-lg);
    margin-bottom: var(--space-6);
    font-weight: 600;
}

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

.footer-column li {
    margin-bottom: var(--space-3);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
}

.footer-legal {
    display: flex;
    gap: var(--space-6);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-16) auto;
}

.section-header h2 {
    margin-bottom: var(--space-4);
}

.section-header p {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
}

/* ============================================================
   RESPONSIVE DESIGN - Mobile First Optimiert
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --container-padding: var(--space-5);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Brand Carousel schneller auf Tablet */
    .brands-carousel {
        animation: scroll 20s linear infinite;
    }
}

/* Mobile - Optimiert wie westernandcowboy.de */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --text-6xl: 2rem;      /* 32px */
        --text-5xl: 1.75rem;   /* 28px */
        --text-4xl: 1.5rem;    /* 24px */
        --text-3xl: 1.25rem;   /* 20px */
        --text-2xl: 1.125rem;  /* 18px */
        --space-20: 3rem;      /* Reduziert */
        --space-16: 2.5rem;    /* Reduziert */
    }

    /* Header Mobile - 60px wie westernandcowboy.de */
    header {
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .header-container {
        padding: var(--space-3) 0;
    }

    .logo {
        font-size: var(--text-lg);
    }

    .logo img {
        height: 40px;
    }

    /* Navigation Mobile */
    nav > ul {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: white;
        flex-direction: column;
        padding: var(--space-6) var(--space-4);
        gap: 0;
        box-shadow: var(--shadow-xl);
        transition: left var(--transition-base);
        align-items: stretch;
        overflow-y: auto;
        z-index: 999;
    }

    nav > ul.active {
        left: 0;
    }

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

    nav a {
        display: block;
        padding: var(--space-4);
        text-align: left;
        font-size: var(--text-lg);
        background: transparent !important;
    }

    nav a.btn {
        margin-top: var(--space-4);
        text-align: center;
        border-bottom: none !important;
        background: var(--color-primary) !important;
        color: white !important;
        border-radius: var(--radius-md) !important;
        padding: var(--space-4) var(--space-6) !important;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Hero Mobile - mit Bild-Support */
    .hero {
        padding: var(--space-12) 0;
        min-height: auto;
    }

    .hero h1 {
        font-size: var(--text-4xl);
        line-height: 1.2;
        margin-bottom: var(--space-4);
    }

    .hero-subtitle {
        font-size: var(--text-base);
        margin-bottom: var(--space-6);
    }

    .hero-buttons {
        flex-direction: column;
        gap: var(--space-3);
    }

    .hero-buttons .btn {
        width: 100%;
        padding: var(--space-4) var(--space-6);
        font-size: var(--text-base);
    }

    /* Brand Carousel VIEL schneller auf Mobile */
    .brands-section {
        padding: var(--space-10) 0;
    }

    .brands-carousel {
        animation: scroll 15s linear infinite;  /* Von 30s auf 15s */
        gap: var(--space-8);
    }

    .brand-logo-wrapper {
        padding: var(--space-4);
    }

    .brand-logo-wrapper img {
        height: 45px;
        max-width: 150px;
    }

    .brands-title {
        font-size: var(--text-base);
        margin-bottom: var(--space-8);
    }

    /* Section Spacing Mobile */
    .section {
        padding: var(--space-12) 0;
    }

    .section-sm {
        padding: var(--space-8) 0;
    }

    .section-lg {
        padding: var(--space-16) 0;
    }

    .section-header {
        margin-bottom: var(--space-10);
    }

    .section-header h2 {
        font-size: var(--text-3xl);
    }

    .section-header p {
        font-size: var(--text-base);
    }

    /* Buttons Mobile */
    .btn {
        width: 100%;
        padding: var(--space-4) var(--space-6);
        font-size: var(--text-base);
        justify-content: center;
    }

    .btn-outline {
        border-width: 2px;
    }

    /* Cards Mobile */
    .card {
        padding: var(--space-6);
    }

    .card h3 {
        font-size: var(--text-xl);
        margin-bottom: var(--space-3);
    }

    .card p {
        font-size: var(--text-base);
    }

    /* Grid Mobile */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    /* Container Mobile */
    .container {
        padding: 0 var(--space-4);
    }

    /* Footer Mobile */
    footer {
        padding: var(--space-12) 0 var(--space-6) 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer-column {
        text-align: left;
    }

    .footer-column h4 {
        font-size: var(--text-lg);
        margin-bottom: var(--space-4);
    }

    .footer-column p,
    .footer-column li {
        font-size: var(--text-sm);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
        padding-top: var(--space-6);
    }

    .footer-legal {
        flex-direction: column;
        gap: var(--space-2);
        font-size: var(--text-sm);
    }

    /* TwoPixels Branding - Hervorgehoben auf Mobile */
    .twopixels-branding {
        background: white !important;
        padding: var(--space-6) !important;
        border-radius: var(--radius-lg);
        margin-top: var(--space-8) !important;
        box-shadow: var(--shadow-md);
    }

    .twopixels-branding a {
        color: var(--color-primary) !important;
        flex-direction: column;
        gap: var(--space-3) !important;
    }

    .twopixels-branding span {
        font-size: var(--text-base) !important;
        font-weight: 600 !important;
    }

    .twopixels-branding img {
        height: 50px !important;
        opacity: 1 !important;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    :root {
        --text-6xl: 1.75rem;   /* 28px */
        --text-4xl: 1.25rem;   /* 20px */
    }

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

    .brands-carousel {
        animation: scroll 12s linear infinite;  /* Noch schneller */
    }

    .brand-logo-wrapper img {
        height: 35px;
        max-width: 120px;
    }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.hidden { display: none; }
