/* fahrradhaendler.de - Vollbild-Hero Variante */

:root {
    --fh-primary: #1e40af;
    --fh-primary-hover: #1e3a8a;
    --fh-accent: #dc2626;
    --fh-accent-hover: #b91c1c;
    --fh-blue-soft: #eff4ff;
    --fh-gray-soft: #f3f4f6;
    --fh-text: #1f2937;
    --fh-muted: #6b7280;
    --fh-border: #e5e7eb;
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--fh-text);
    background: white;
    line-height: 1.55;
}

/* ===== NAVBAR (transparent über Hero) ===== */
.navbar {
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(8px);
    padding: 1rem 0;
    margin-bottom: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 100;
}
.navbar-brand,
.navbar .nav-link {
    color: white !important;
    font-weight: 500;
}
.navbar-brand { font-weight: 700 !important; font-size: 1.25rem; }
.navbar .nav-link:hover { color: rgba(255,255,255,0.8) !important; }
.dropdown-menu {
    border: 1px solid var(--fh-border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-radius: 8px;
    background: white;
}
.dropdown-item { color: var(--fh-text) !important; }
.dropdown-item:hover { background: var(--fh-blue-soft); color: var(--fh-primary) !important; }

/* ===== HERO MIT VOLLBILD ===== */
.hero {
    position: relative;
    background-image: url('assets/img/hero-bike-shop.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 8rem 0 5rem;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.75) 0%, rgba(30,64,175,0.65) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}
.hero-title {
    color: white;
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-sub {
    color: rgba(255,255,255,0.95);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ===== SEARCH BAR (horizontal, mittig, breit) ===== */
.hero-search-bar {
    background: white;
    border-radius: 12px;
    padding: 0.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr auto;
    gap: 0.25rem;
    max-width: 920px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: left;
}
.search-field {
    padding: 0.65rem 1rem;
    border-right: 1px solid var(--fh-border);
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.search-field:last-of-type { border-right: none; }
.search-field label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--fh-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.15rem;
}
.search-field input,
.search-field select {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--fh-text);
    outline: none;
    width: 100%;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
.search-field input::placeholder { color: #9ca3af; font-weight: 400; }
.search-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236b7280'%3E%3Cpath d='M8 11.5L3.5 7h9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 14px;
    padding-right: 18px;
}
.btn-hero-search {
    background: var(--fh-accent);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem;
}
.btn-hero-search:hover { background: var(--fh-accent-hover); }
.btn-hero-search i { font-size: 1.1rem; }

/* ===== HERO BRAND-BAR ===== */
.hero-brands {
    max-width: 920px;
    margin: 2rem auto 0;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 1rem;
}
.hero-brands-label {
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    font-weight: 500;
}
.hero-brands a img {
    height: 28px;
    width: auto;
    max-width: 90px;
    opacity: 0.9;
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
    transition: opacity 0.15s;
}

.hero-brands a:hover img {
    opacity: 1;
}
.hero-brands-more {
    color: white;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    background: rgba(255,255,255,0.15);
    border-radius: 50px;
    transition: background 0.15s;
}
.hero-brands-more:hover {
    background: rgba(255,255,255,0.25);
    color: white;
}

/* ===== AUTOCOMPLETE DROPDOWN ===== */
.ac-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: -1px;
    background: white;
    border: 1px solid var(--fh-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1050;
    display: none;
}
.ac-dropdown.active { display: block; }
.ac-item {
    padding: .65rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--fh-text);
    font-size: .9rem;
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover, .ac-item.selected { background: var(--fh-blue-soft); }
.ac-item .label { font-weight: 500; }
.ac-item .anzahl { font-size: .8rem; color: var(--fh-muted); white-space: nowrap; }

/* ===== SEKTIONS-FARBEN ===== */
.section-white { background: white; padding: 3.5rem 0; }
.section-blue  { background: var(--fh-blue-soft); padding: 3.5rem 0; }
.section-gray  { background: var(--fh-gray-soft); padding: 3.5rem 0; }

.section-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fh-text);
    margin-bottom: 0.5rem;
}
.section-sub {
    text-align: center;
    color: var(--fh-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* ===== MARKEN-KACHELN ===== */
.marken-featured-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 992px) { .marken-featured-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 576px) { .marken-featured-grid { grid-template-columns: repeat(2, 1fr); } }

.marken-tile-featured {
    background: white;
    border: 1px solid var(--fh-border);
    border-radius: 8px;
    padding: 1.25rem 0.5rem 0.85rem;
    text-align: center;
    text-decoration: none;
    color: var(--fh-text);
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 110px;
}
.marken-tile-featured:hover {
    border-color: var(--fh-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    color: var(--fh-text);
}
.marken-tile-featured .logo-wrap {
    height: 40px;
width: 100%;  
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}
.marken-tile-featured .logo-wrap img {
    max-width: 100%;
    max-height: 34px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.marken-tile-featured .name {
    font-size: 0.85rem;
    color: var(--fh-text);
}

/* CTA-Button rot */
.section-cta {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}
.btn-cta {
    background: var(--fh-accent);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background 0.15s;
}
.btn-cta:hover { background: var(--fh-accent-hover); color: white; }

/* ===== STÄDTE ===== */
.staedte-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem 1.5rem;
}
@media (max-width: 768px) { .staedte-cols { grid-template-columns: repeat(2, 1fr); } }
.staedte-cols a {
    color: var(--fh-primary);
    text-decoration: underline;
    font-size: 0.95rem;
}
.staedte-cols a:hover { color: var(--fh-primary-hover); }

/* ===== RADARTEN ===== */
.radarten-cols {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem 2rem;
}
@media (max-width: 992px) { .radarten-cols { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 576px) { .radarten-cols { grid-template-columns: repeat(2, 1fr); } }
.radarten-col h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    border-bottom: 1px solid var(--fh-border);
    padding-bottom: 0.4rem;
    color: var(--fh-text);
    text-decoration: underline;
}
.radarten-col ul { list-style: none; margin: 0; padding: 0; }
.radarten-col li { margin-bottom: 0.3rem; }
.radarten-col li a {
    color: var(--fh-primary);
    text-decoration: underline;
    font-size: 0.9rem;
}

/* ===== INFO-BLOCKS (SEO) ===== */
.info-blocks-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}
@media (max-width: 768px) { .info-blocks-2col { grid-template-columns: 1fr; } }
.info-block h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--fh-text);
}
.info-block p {
    font-size: 0.9rem;
    color: var(--fh-muted);
    line-height: 1.6;
    margin: 0;
}

/* =================================================
   ANDERE SEITEN (Listing/Detail)
   ================================================= */

.haendler-card {
    height: 100%;
    border: 1px solid var(--fh-border);
    border-radius: 8px;
    background: white;
    transition: all 0.15s;
}
.haendler-card:hover {
    border-color: var(--fh-primary);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.haendler-card .card-body { padding: 1.25rem; }
.haendler-card .card-title { font-size: 1rem; font-weight: 600; color: var(--fh-text); }

.haendler-marken-logos {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 12px;
    background: var(--fh-gray-soft);
    border-radius: 6px;
    margin-bottom: .75rem;
    min-height: 46px;
}
.haendler-marken-logos img {
    height: 22px;
    width: auto;
    max-width: 60px;
    object-fit: contain;
    opacity: 0.75;
}
.haendler-marken-mehr {
    font-size: .7rem;
    color: var(--fh-muted);
    background: white;
    padding: 3px 8px;
    border-radius: 10px;
    border: 1px solid var(--fh-border);
    font-weight: 600;
    margin-left: auto;
}

.badge-feature {
    background: var(--fh-blue-soft);
    color: var(--fh-primary);
    font-weight: 500;
    padding: 0.3rem 0.55rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.marken-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.875rem;
}
.marken-tile {
    background: white;
    border: 1px solid var(--fh-border);
    border-radius: 8px;
    padding: 1.25rem 1rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s;
}
.marken-tile:hover {
    border-color: var(--fh-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    color: var(--fh-text);
}
.marken-tile img { max-width: 100%; max-height: 36px; margin-bottom: 0.75rem; }
.marken-tile .name { font-weight: 600; font-size: 0.9rem; }
.marken-tile .anzahl { color: var(--fh-muted); font-size: 0.75rem; }

.ueber-card { border: 1px solid var(--fh-border); border-radius: 8px; overflow: hidden; }
.ueber-card .ueber-image {
    width: 100%;
    height: 140px;
    background: var(--fh-gray-soft);
    border-bottom: 1px solid var(--fh-border);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ueber-card .ueber-image img { max-width: 90%; max-height: 120px; object-fit: contain; }

.card { border: 1px solid var(--fh-border); border-radius: 8px; }
.card .card-title { font-weight: 600; color: var(--fh-text); }

.btn-primary { background: var(--fh-primary); border-color: var(--fh-primary); }
.btn-primary:hover { background: var(--fh-primary-hover); border-color: var(--fh-primary-hover); }

/* ===== FOOTER ===== */
footer {
    background: #0f172a !important;
    color: rgba(255,255,255,0.85) !important;
    padding: 3rem 0 2rem !important;
    margin-top: 0 !important;
}
footer h5, footer h6 { color: white !important; font-weight: 700; margin-bottom: 1rem; }
footer .text-secondary, footer p, footer li, footer a { color: rgba(255,255,255,0.7) !important; }
footer a:hover { color: white !important; }
footer hr { border-color: rgba(255,255,255,0.15) !important; opacity: 1; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .hero { padding: 6rem 0 3rem; }
    .hero-title { font-size: 1.75rem; }
    .hero-sub { font-size: 0.95rem; }
    .hero-search-bar {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .search-field {
        border-right: none;
        border-bottom: 1px solid var(--fh-border);
    }
    .btn-hero-search {
        margin: 0.25rem;
        justify-content: center;
        padding: 0.85rem;
    }
    .hero-brands { gap: 1rem; }
}

/* ===== PAGE HEADER (kompakt, statt Hero) ===== */
.page-header {
    background: linear-gradient(135deg, var(--fh-primary) 0%, var(--fh-primary-hover) 100%);
    color: white;
    padding: 2.5rem 0;
    margin-bottom: 0;
}
.page-header-content h1 {
    font-size: 1.85rem;
    font-weight: 700;
    margin: 0 0 0.35rem 0;
    letter-spacing: -0.02em;
}
.page-header-content p {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    margin: 0;
}

/* ===== INTRO-BLOCK ===== */
.intro-block .lead {
    font-size: 1.05rem;
    color: var(--fh-text);
    line-height: 1.6;
    margin: 0;
    padding: 1.25rem 1.5rem;
    background: var(--fh-blue-soft);
    border-left: 4px solid var(--fh-primary);
    border-radius: 4px;
}

/* ===== FILTER-CARD (Sidebar) ===== */
.filter-card {
    background: white;
    border: 1px solid var(--fh-border);
    border-radius: 8px;
    padding: 1.25rem;
    position: sticky;
    top: 1rem;
}
.filter-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--fh-text);
    margin: 0 0 0.85rem 0;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--fh-border);
}
.filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.filter-list li {
    margin-bottom: 0.15rem;
}
.filter-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    text-decoration: none;
    color: var(--fh-text);
    font-size: 0.875rem;
    transition: all 0.1s;
}
.filter-list a:hover {
    background: var(--fh-blue-soft);
    color: var(--fh-primary);
}
.filter-list .count {
    color: var(--fh-muted);
    font-size: 0.75rem;
    background: var(--fh-gray-soft);
    padding: 1px 7px;
    border-radius: 10px;
    min-width: 30px;
    text-align: center;
}
.filter-list a:hover .count {
    background: white;
    color: var(--fh-primary);
}

/* ===== HAENDLER-BADGES (Reihe unten) ===== */
.haendler-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
}

/* ===== PAGE HEADER MIT LOGO ===== */
.page-header-with-logo .page-header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.page-header-logo {
    background: white;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    max-width: 140px;
}
.page-header-logo img {
    max-height: 50px;
    max-width: 100%;
    object-fit: contain;
}
@media (max-width: 576px) {
    .page-header-with-logo .page-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .page-header-logo { padding: 0.5rem 0.75rem; min-width: 80px; }
    .page-header-logo img { max-height: 32px; }
}

/* ===== KOMBI FOOTER LINKS ===== */
.kombi-footer {
    background: var(--fh-blue-soft);
    border-radius: 8px;
    padding: 1.5rem 2rem;
}
.kombi-footer h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.85rem 0;
    color: var(--fh-text);
}
.kombi-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.kombi-footer li {
    margin-bottom: 0.5rem;
}
.kombi-footer a {
    color: var(--fh-primary);
    text-decoration: none;
    font-weight: 500;
}
.kombi-footer a:hover {
    text-decoration: underline;
}
.kombi-footer i {
    margin-right: 0.35rem;
    font-size: 0.85rem;
}

/* ===== HAENDLER-DETAIL Badges Row ===== */
.haendler-badges-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.badge-art {
    background: var(--fh-gray-soft);
    color: var(--fh-text);
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.15s;
}
.badge-art:hover {
    background: var(--fh-primary);
    color: white;
}

/* ===== SOCIAL LINKS ===== */
.social-link {
    color: var(--fh-primary);
    transition: color 0.15s;
}
.social-link:hover { color: var(--fh-primary-hover); }

/* ===== ALPHABET-NAV (marken-Übersicht) ===== */
.alphabet-nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    padding: 14px;
    background: white;
    border: 1px solid var(--fh-border);
    border-radius: 8px;
}
.alphabet-nav a {
    display: inline-block;
    min-width: 36px;
    padding: 7px 11px;
    text-align: center;
    background: var(--fh-gray-soft);
    border: 1px solid var(--fh-border);
    border-radius: 4px;
    color: var(--fh-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
}
.alphabet-nav a:hover {
    background: var(--fh-primary);
    color: white;
    border-color: var(--fh-primary);
}
.letter-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fh-text);
    border-bottom: 2px solid var(--fh-primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}
section[id^="letter-"] {
    scroll-margin-top: 1.5rem;
}

/* ===== SEARCH PAGE BAR ===== */
.search-header {
    padding-bottom: 1.5rem;
}
.search-page-bar {
    margin-top: 1.5rem;
    max-width: 100%;
}

/* ===== LEGAL PAGES (Impressum/Datenschutz) ===== */
.legal-block {
    margin-bottom: 2.5rem;
}
.legal-block h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fh-text);
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--fh-blue-soft);
}
.legal-block h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--fh-text);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.legal-block p {
    color: var(--fh-text);
    line-height: 1.7;
    margin-bottom: 0.85rem;
}
.legal-block ul {
    line-height: 1.7;
    padding-left: 1.5rem;
}
.legal-block ul li {
    margin-bottom: 0.35rem;
}
.legal-block a {
    color: var(--fh-primary);
}