/* ========================================
   COMMON STYLES - ReifenDirekt
   ======================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #003366;
    --primary-dark: #002244;
    --accent: #ff6600;
    --accent-hover: #e55a00;
    --success: #28a745;
    --bg: #f4f4f4;
    --white: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --border: #dddddd;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HEADER ========== */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--primary);
    color: var(--white);
    font-size: 13px;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    margin-right: 20px;
    transition: opacity 0.2s;
}

.top-bar a:hover { opacity: 0.8; }

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-right i { margin-right: 5px; }

.main-header {
    padding: 15px 0;
    border-bottom: 3px solid var(--accent);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.logo h1 span { color: var(--accent); }

.logo-tagline {
    font-size: 11px;
    color: var(--text-light);
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid var(--border);
}

.header-nav {
    display: flex;
    gap: 5px;
}

.nav-item {
    position: relative;
}

@media (min-width: 993px) {
    .header-nav .nav-item::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 12px;
    }

    .header-nav .dropdown-menu {
        top: 100%;
        margin-top: 0;
    }
}

.nav-link {
    padding: 10px 18px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link i.fa-chevron-down {
    font-size: 10px;
    transition: transform 0.2s;
}

.nav-item:hover .nav-link i.fa-chevron-down {
    transform: rotate(180deg);
}

.nav-link:hover {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 280px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    z-index: 1000;
}

.dropdown-menu.wide {
    min-width: 480px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
    color: var(--primary);
}

.dropdown-menu a i {
    width: 24px;
    color: var(--primary);
    font-size: 16px;
}

.dropdown-menu .menu-title {
    padding: 8px 20px;
    font-weight: 600;
    color: var(--text);
    font-size: 15px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 5px;
}

/* Felgen Menu Styles */
.felgen-menu {
    min-width: 520px;
    padding: 20px 15px;
}

.felgen-menu > div:first-child {
    border-right: 1px solid #eee;
    padding-right: 15px;
}

.felgen-menu > div:last-child {
    padding-left: 15px;
}

.felgen-item {
    padding: 12px 15px !important;
    border-radius: 4px;
    font-size: 14px !important;
}

.felgen-item i {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 14px;
}

.felgen-item:hover {
    background: #f0f5fa !important;
}

.cart-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: var(--white);
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.cart-btn:hover { background: var(--accent-hover); }

.cart-badge {
    background: var(--white);
    color: var(--accent);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* ========== CATEGORIES BAR ========== */
.categories-bar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 0;
    border-bottom: 3px solid var(--accent);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    color: var(--white);
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    border-right: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.category-item:last-child {
    border-right: none;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent) 0%, #e55a00 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.category-item:hover::before,
.category-item.active::before {
    opacity: 1;
}

.category-item i {
    font-size: 28px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s;
}

.category-item:hover i {
    transform: scale(1.1);
}

.category-item span {
    font-size: 13px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.category-item small {
    font-size: 11px;
    opacity: 0.8;
    position: relative;
    z-index: 1;
    margin-top: 3px;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 0;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-col p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.8;
}

.footer-bottom {
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ========== PAGE CONTENT ========== */
.page-hero {
    background: linear-gradient(135deg, #1a3a5c 0%, #0d2137 100%);
    position: relative;
    overflow: hidden;
    padding: 40px 0;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1920') center/cover;
    opacity: 0.2;
}

.page-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
}

.page-hero-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    border-radius: 4px;
}

.page-hero-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
}

.page-hero-title span {
    color: var(--accent);
}

.page-hero-desc {
    font-size: 16px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== SEARCH BOX STYLES ========== */
.search-section {
    padding: 50px 0;
}

.search-box {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
}

.search-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 20px 30px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-header i {
    font-size: 28px;
    color: var(--accent);
}

.search-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.search-header span {
    font-size: 13px;
    opacity: 0.8;
    display: block;
    font-weight: 400;
}

.search-content {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group label i {
    color: var(--accent);
    margin-right: 6px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text);
    background: var(--white);
    transition: all 0.3s;
    font-family: inherit;
}

.form-control:hover {
    border-color: #bbb;
}

.form-control:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,102,0,0.15);
}

.form-control:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.btn-search {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-search:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,102,0,0.3);
}

.btn-search:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Vehicle Info Display */
.vehicle-info {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    display: none;
}

.vehicle-info.show {
    display: block;
}

.vehicle-info h4 {
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.vehicle-info h4 i {
    color: var(--success);
}

.vehicle-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.vehicle-detail {
    background: var(--white);
    padding: 10px 15px;
    border-radius: 8px;
}

.vehicle-detail span {
    font-size: 11px;
    color: var(--text-light);
    display: block;
}

.vehicle-detail strong {
    font-size: 14px;
    color: var(--primary);
}

/* ========== INFO CARDS ========== */
.info-section {
    padding: 50px 0;
    background: var(--white);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.info-card {
    background: var(--bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.info-card i {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 10px;
}

.info-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-item {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-nav { display: none; }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-item {
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
        padding: 15px 20px;
        border-right: none;
    }
    
    .category-item i {
        margin-bottom: 0;
    }
    
    .page-hero-title { font-size: 28px; }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .footer {
        padding: 35px 0 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    
    .footer-col h4 {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .footer-col a {
        font-size: 13px;
        padding: 5px 0;
    }
    
    .footer-col p {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .footer-bottom {
        font-size: 12px;
        padding-top: 15px;
    }
    
    .vehicle-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 25px 0 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
        padding-bottom: 25px;
    }
    
    .footer-col h4 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .footer-col a {
        font-size: 13px;
        padding: 6px 0;
        display: inline-block;
    }
    
    .footer-col p {
        font-size: 12px;
        line-height: 1.7;
    }
    
    .footer-bottom {
        font-size: 11px;
        padding-top: 15px;
    }
}
