/* ==========================================================================
   1. GLOBALE EINSTELLUNGEN & FARBEN
   ========================================================================== */
:root {
    --bg-main: #f8f9fa;       /* Hellgrauer, edler Hintergrund */
    --bg-card: #ffffff;       /* Weiß für Produktkarten */
    --primary: #0056b3;       /* Sportliches Modellbau-Blau */
    --primary-hover: #003d82; /* Dunkleres Blau für Hover-Effekte */
    --text-dark: #212529;     /* Fast Schwarz für perfekte Lesbarkeit */
    --text-muted: #6c757d;    /* Grau für technische Details */
    --border-color: #e3e6f0;  /* Subtile Trennlinien */
    --accent: #e1251b;        /* Rot für "Top-Seller" / Highlights */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    padding-bottom: 0;
}

main {
    max-width: 1140px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ==========================================================================
   2. HEADER & NAVIGATION (MODERN & CLEAN)
   ========================================================================== */
header {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.header-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 30px 20px;
    text-align: center;
}

.logo-area {
    margin-bottom: 10px;
}

.logo-area img {
    max-width: 280px;
    height: auto;
}

.logo-fallback {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-dark);
    text-transform: uppercase;
}

.header-sub {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Navigation */
.main-nav {
    background: #1a1e21; /* Edles Anthrazit */
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1140px;
    margin: 0 auto;
}

.main-nav a {
    display: block;
    padding: 16px 24px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    background: var(--primary);
    color: #ffffff;
}

/* ==========================================================================
   3. SEKTIONEN & STARTSEITEN-GRID
   ========================================================================== */
.intro {
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
    border-left: 5px solid var(--primary);
    margin-bottom: 50px;
}

.intro p:first-child {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 10px;
}

h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* Startseiten Kacheln-Grid */
.sortiment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.sortiment-grid a {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.01);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.sortiment-grid a:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--primary);
    color: var(--primary);
}

/* ==========================================================================
   4. PRODUKTSEITEN (PRODUKTKARTEN)
   ========================================================================== */
.sub-nav {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.sub-nav a {
    padding: 8px 18px;
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.sub-nav a:hover {
    background: var(--primary);
    color: #fff;
}

.product-category {
    margin-bottom: 60px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

/* Highlight-Karte (z.B. für Delro/Premium Modelle) */
.product-card.highlight {
    border: 2px solid var(--primary);
    position: relative;
}

.product-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.specs {
    font-size: 0.85rem;
    color: #495057;
    background: #f1f3f5;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 3px solid var(--primary);
}

.description {
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Badges / Verfügbarkeit */
.badge {
    align-self: flex-start;
    padding: 5px 12px;
    background: #2b8a3e; /* Angenehmes Grün */
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.text-warning {
    background: #e67e22; /* Schönes Orange */
    color: #fff;
}

/* ==========================================================================
   5. FOOTER (COMPACT & DARK)
   ========================================================================== */
footer {
    background: #1a1e21;
    color: #adb5bd;
    margin-top: 80px;
    padding: 50px 20px 30px 20px;
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto;
}

.footer-partners h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.footer-partners h3::after {
    display: none; /* Keine Linien im Footer unter H3 */
}

.partner-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.partner-flex span {
    background: #2b3035;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #dee2e6;
    border: 1px solid #343a40;
}

.partner-flex span strong {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #2b3035;
    font-size: 0.8rem;
}

/* ==========================================================================
   6. RESPONSIVE DESIGN (MOBIL-OPTIMIERUNG)
   ========================================================================== */
@media (max-width: 768px) {
    main {
        margin: 20px auto;
    }
    
    .logo-fallback {
        font-size: 1.6rem;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav a {
        text-align: center;
        padding: 12px;
        border-bottom: 1px solid #2b3035;
    }
    
    .product-grid {
        grid-template-columns: 1fr; /* Eine Spalte auf Handys */
    }
}