/* === Profiteile Startseite v5 === */

/* Finder 2-Spalten Layout */
.profiteile-finder-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto 30px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
@media (max-width: 768px) {
    .profiteile-finder-row { grid-template-columns: 1fr; }
}
.profiteile-finder-wrapper {
    padding: 24px;
    background: #fff;
}
.profiteile-info-box {
    background: #fff;
    border-left: 1px solid #eee;
}
.profiteile-search-bar { margin-bottom: 20px; }
.profiteile-search-bar form { display: flex; gap: 8px; }
.profiteile-search-bar input[type="text"] {
    flex: 1; padding: 12px 16px; border: 2px solid #ddd; border-radius: 8px;
    font-size: 14px; color: #333; background: #f8f9fa; outline: none;
}
.profiteile-search-bar input:focus { border-color: #0066CC; }
.profiteile-search-bar button {
    padding: 12px 24px; background: #0066CC; color: #fff; border: none;
    border-radius: 8px; font-weight: 700; font-size: 14px; cursor: pointer;
}
.profiteile-search-bar button:hover { background: #0055aa; }
.profiteile-hsn-tsn { margin-bottom: 20px; }
.profiteile-hsn-tsn h4 { color: #333; margin-bottom: 10px; font-size: 15px; }
.hsn-tsn-fields { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.hsn-field, .tsn-field { flex: 1; min-width: 100px; }
.hsn-field input, .tsn-field input {
    width: 100%; padding: 12px 16px; border: 2px solid #ddd; border-radius: 8px;
    font-size: 14px; color: #333; background: #f8f9fa; outline: none;
}
.hsn-field input:focus, .tsn-field input:focus { border-color: #0066CC; }
.field-hint { font-size: 11px; color: #999; margin-top: 4px; display: block; }
.profiteile-hsn-tsn button {
    padding: 12px 24px; background: #0066CC; color: #fff; border: none;
    border-radius: 8px; font-weight: 700; font-size: 14px; cursor: pointer; margin-top: 2px;
}
.profiteile-hsn-tsn button:hover { background: #0055aa; }
.profiteile-vehicle-finder { margin-top: 20px; }
.profiteile-vehicle-finder h4 { color: #333; margin-bottom: 10px; font-size: 15px; }

/* Slider */
.fp-slide-card { min-width: 240px; flex-shrink: 0; background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; overflow: hidden; text-align: center; transition: transform .2s; text-decoration: none !important; display: block; }
.fp-slide-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.1); }
.fp-slide-card img { width: 100%; height: 220px; object-fit: contain; background: #f8f8f8; padding: 6px; }
.fp-slide-card .fp-sc-body { padding: 10px; }
.fp-slide-card .fp-sc-titel { font-size: 15px; font-weight: 600; color: #333; line-height: 1.3; min-height: 28px; margin-bottom: 4px; }
.fp-slide-card .fp-sc-marke { font-size: 10px; color: #888; margin-bottom: 6px; }
.fp-slide-card .fp-sc-preis { font-size: 28px; font-weight: 800; color: #0066CC; }
.fp-slide-card .fp-sc-btn { display: inline-block; margin-top: 8px; padding: 10px 24px; background: #0066CC; color: #fff; border-radius: 6px; font-size: 14px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }

/* Kategorienbaum */
.kat-tree { display: grid; grid-template-columns: 1fr; gap: 4px; margin-top: 10px; }
.kat-node { width: 100%; }
.kat-btn {
    width: 100%; background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 8px;
    padding: 10px 16px; color: #333; cursor: pointer; font-size: 15px; font-weight: 700;
    transition: all 0.2s; display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.kat-btn:hover { border-color: #0066CC; background: #f0f4ff; }
.kat-btn.active { border-color: #0066CC; background: #e8f0fe; color: #0066CC; }
.kat-btn .kat-icon { font-size: 12px; transition: transform 0.2s; }
.kat-btn.active .kat-icon { transform: rotate(90deg); }
.kat-btn .kat-count { background: #0066CC; color: #fff; border-radius: 12px; padding: 2px 8px; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.kat-children { padding-left: 16px; margin-top: 4px; display: grid; gap: 4px; }
.kat-btn.leaf { font-size: 13px; font-weight: 500; background: #fff; border-color: #e0e0e0; }
.kat-btn.leaf:hover { border-color: #0066CC; background: #f0f4ff; }
.kat-btn.leaf.active { border-color: #0066CC; background: #e8f0fe; color: #0066CC; }
.kat-btn.leaf.active .kat-count { background: #0066CC; }
.kat-loading { color: #0066CC; padding: 8px 16px; font-size: 13px; }

/* Artikel-Karten */
.art-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.art-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; padding: 12px; transition: all 0.2s; display: flex; gap: 12px; align-items: center; }
.art-card:hover { border-color: #0066CC; box-shadow: 0 2px 8px rgba(0,102,204,0.1); }
.art-img { width: 80px; height: 80px; object-fit: contain; background: #f8f8f8; border-radius: 6px; flex-shrink: 0; }
.art-noimg { width: 80px; height: 80px; background: #f0f0f0; border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 11px; }
.art-details { flex: 1; min-width: 0; }
.art-marke { font-size: 13px; color: #0066CC; font-weight: 600; }
.art-name { font-weight: 600; color: #333; font-size: 14px; margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art-nr { font-size: 11px; color: #999; }
.art-lager { font-size: 12px; margin-top: 4px; }
.art-lager-ok { color: #00aa55; font-weight: 600; }
.art-lager-bestell { color: #e8a000; }
.art-right { text-align: right; flex-shrink: 0; }
.art-preis { font-size: 18px; font-weight: 800; color: #333; }
.art-mwst { font-size: 10px; color: #999; }
.art-btn { display: inline-block; margin-top: 6px; padding: 6px 14px; background: #0066CC; color: #fff; border-radius: 6px; text-decoration: none; font-size: 12px; font-weight: 600; white-space: nowrap; }
.art-btn:hover { background: #0055aa; }

/* Hero */
.hero { background: linear-gradient(135deg, #003366 0%, #0055aa 100%); color: #fff; padding: 60px 24px; }
.hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 768px) { .hero-inner { grid-template-columns: 1fr; } }
.hero-badge { display: inline-block; background: rgba(255,255,255,0.15); padding: 6px 14px; border-radius: 20px; font-size: 13px; margin-bottom: 16px; }
.hero h1 { font-family: 'Oswald', sans-serif; font-size: 2.5rem; line-height: 1.2; margin-bottom: 16px; }
.hero h1 span { color: #FF6B00; }
.hero-sub { color: rgba(255,255,255,0.85); font-size: 15px; line-height: 1.6; margin-bottom: 24px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta { display: inline-flex; align-items: center; gap: 8px; background: #FF6B00; color: #fff; padding: 14px 28px; border-radius: 8px; font-weight: 700; font-size: 15px; text-decoration: none; }
.hero-cta svg { width: 18px; height: 18px; }
.hero-cta:hover { background: #e55f00; }
.hero-cta-secondary { display: inline-flex; align-items: center; padding: 14px 28px; border: 2px solid rgba(255,255,255,0.3); color: #fff; border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none; }
.hero-cta-secondary:hover { border-color: #fff; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-card { background: rgba(255,255,255,0.1); padding: 20px; border-radius: 10px; text-align: center; }
.stat-number { font-family: 'Oswald', sans-serif; font-size: 1.4rem; font-weight: 700; }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 4px; }

/* Trust Bar */
.trust-bar { background: #f8f9fa; padding: 16px 24px; border-bottom: 1px solid #eee; }
.trust-bar-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #555; font-weight: 600; }
.trust-item svg { width: 18px; height: 18px; color: #0066CC; }

/* Fachmarkt */
.fachmarkt { padding: 60px 24px; background: #fff; }
.fachmarkt-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 768px) { .fachmarkt-inner { grid-template-columns: 1fr; } }
.fachmarkt-badge { display: inline-block; background: #e8f5e9; color: #2e7d32; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; margin-bottom: 16px; }
.fachmarkt h2 { font-family: 'Oswald', sans-serif; font-size: 2rem; color: #333; margin-bottom: 16px; }
.fachmarkt h2 span { color: #0066CC; }
.fachmarkt p { color: #666; line-height: 1.6; margin-bottom: 12px; }
.fachmarkt-address { background: #f8f9fa; padding: 16px; border-radius: 8px; margin: 16px 0; }
.fachmarkt-address strong { display: block; margin-bottom: 4px; color: #333; }
.fachmarkt-address span { color: #666; font-size: 14px; }
.whatsapp-box { display: flex; align-items: center; gap: 12px; background: #e8f5e9; padding: 14px 18px; border-radius: 10px; text-decoration: none; color: #333; margin-top: 16px; }
.whatsapp-box:hover { background: #c8e6c9; }
.wa-icon { font-size: 28px; }
.wa-text strong { display: block; font-size: 14px; }
.wa-text span { font-size: 13px; color: #666; }
.wa-arrow { font-size: 20px; margin-left: auto; color: #25D366; }
.fachmarkt-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fm-feature { background: #f8f9fa; padding: 20px; border-radius: 10px; text-align: center; }
.fm-feature-icon { font-size: 32px; display: block; margin-bottom: 8px; }
.fm-feature h4 { color: #333; margin-bottom: 4px; }
.fm-feature p { color: #888; font-size: 13px; }

/* Auto-Kategorien */
.auto-section { padding: 60px 24px; background: #f8f9fa; }
.section-header { text-align: center; margin-bottom: 30px; }
.section-header h2 { font-family: 'Oswald', sans-serif; font-size: 2rem; color: #333; }
.section-header h2 span { color: #0066CC; }
.section-header p { color: #888; margin-top: 8px; }
.auto-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 768px) { .auto-grid { grid-template-columns: repeat(2, 1fr); } }
.auto-card { background: #fff; border-radius: 10px; text-decoration: none; overflow: hidden; transition: transform 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.auto-card:hover { transform: translateY(-3px); }
.auto-card-img { height: 80px; display: flex; align-items: center; justify-content: center; font-size: 36px; background: linear-gradient(135deg, #003366, #0055aa); }
.auto-card-body { padding: 14px; }
.auto-card-body h3 { color: #333; font-size: 15px; margin-bottom: 4px; }
.auto-card-body p { color: #888; font-size: 12px; }

/* Featured */
.featured { padding: 60px 24px; background: #fff; }
.featured-inner { max-width: 1200px; margin: 0 auto; }
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 768px) { .featured-grid { grid-template-columns: 1fr; } }
.feat-card { background: #f8f9fa; border-radius: 10px; padding: 24px; text-align: center; }
.feat-card-top { margin-bottom: 12px; }
.feat-emoji { font-size: 40px; }
.feat-card h3 { color: #333; margin-bottom: 8px; }
.feat-desc { color: #888; font-size: 13px; line-height: 1.5; margin-bottom: 12px; }
.feat-price { font-family: 'Oswald', sans-serif; font-size: 1.8rem; color: #0066CC; font-weight: 700; }
.feat-unit { color: #888; font-size: 14px; margin-left: 4px; }
.feat-hint { color: #aaa; font-size: 11px; margin-top: 6px; }

/* Sonderposten */
.deals-section { padding: 60px 24px; background: #f8f9fa; }
.deals-inner { max-width: 1200px; margin: 0 auto; }
.deals-banner { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (max-width: 768px) { .deals-banner { grid-template-columns: 1fr; } }
.deals-text h2 { font-family: 'Oswald', sans-serif; font-size: 1.8rem; color: #333; margin-bottom: 12px; }
.deals-text p { color: #666; line-height: 1.6; margin-bottom: 16px; }
.deals-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini-deal { background: #fff; padding: 16px; border-radius: 8px; text-align: center; }
.mini-deal-emoji { font-size: 28px; }
.mini-deal h4 { color: #333; font-size: 14px; margin: 6px 0 4px; }
.mini-price { color: #0066CC; font-weight: 700; font-size: 16px; }
.mini-note { color: #999; font-size: 11px; }

/* USP */
.usp-section { padding: 60px 24px; background: #fff; }
.usp-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 768px) { .usp-grid { grid-template-columns: repeat(2, 1fr); } }
.usp-card { text-align: center; padding: 24px; }
.usp-icon { font-size: 36px; margin-bottom: 12px; }
.usp-card h3 { color: #333; margin-bottom: 6px; font-size: 15px; }
.usp-card p { color: #888; font-size: 13px; line-height: 1.5; }

/* CTA */
.cta-bottom { padding: 60px 24px; background: linear-gradient(135deg, #003366, #0055aa); color: #fff; text-align: center; }
.cta-bottom h2 { font-family: 'Oswald', sans-serif; font-size: 2rem; margin-bottom: 8px; }
.cta-bottom h2 span { color: #FF6B00; }
.cta-bottom p { color: rgba(255,255,255,0.8); margin-bottom: 20px; }

/* Floating WhatsApp */
.wa-float { position: fixed; bottom: 20px; right: 20px; width: 56px; height: 56px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,0.2); z-index: 999; }
.wa-float:hover { transform: scale(1.1); }

/* Rechte Spalte sticky */
.profiteile-info-box {
    position: sticky;
    top: 0;
    align-self: start;
    max-height: 100vh;
    overflow-y: auto;
}

/* Größere Artikel-Bilder */
.art-img { width: 120px; height: 120px; }
.art-noimg { width: 120px; height: 120px; }
.art-name { white-space: normal; font-size: 15px; }
.art-preis { font-size: 22px; }

/* Rechte Spalte nicht begrenzen */
.profiteile-info-box {
    max-height: none !important;
    overflow-y: visible !important;
}

/* Artikelnummer groesser */
.art-nr { font-size: 15px !important; font-weight: 600; color: #333 !important; }
