﻿/* ==========================================================================
   CANNONDALE-DEUTSCHLAND.DE - LAYOUT ENGINE (PART 1: DESKTOP STYLES)
   ========================================================================== */

/* ─── BASE RESETS ─── */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: #ffffff !important;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #222222;
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

.clear {
    clear: both;
    height: 0;
    line-height: 0;
}

/* ─── ⚠️ RECHTSSICHERUNGS-BANDE (TOP BAR) ─── */
.bub-legal-top-bar {
    width: 100%;
    background-color: #000000;
    color: #ffffff;
    padding: 8px 20px;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* ─── 🎛️ NAVIGATION CHASSIS (ASYMMETRISCH RECHTSBÜNDIG) ─── */
.header-nav-container {
    width: 100%;
    background-color: #ffffff;
    border-bottom: 2px solid #f0efed;
    position: sticky;
    top: 0;
    z-index: 999;
}

.navigation-chassis {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Logo links, Links rechts */
}

.bub-logo-link img {
    height: 50px;
    width: auto;
    display: block;
}

/* Die Link-Reihe am PC */
.nav-rebel ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-rebel ul li a {
    font-family: 'Arial Black', sans-serif;
    font-size: 13px;
    font-weight: 900;
    color: #000000 !important;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    display: inline-block;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
    transition: all 0.2s ease-in-out;
}

/* ⚡ RUCKELFREIE HOVER-ENGINE IN GITARRENGOLD */
.nav-rebel ul li a:hover,
.nav-rebel ul li a.active {
    color: #ffb300 !important; /* Euer Texas-Gold */
    border-bottom-color: #ffb300 !important;
}

.nav-rebel ul li a.nav-highlight-gold {
    color: #ffb300 !important;
    border-bottom-color: transparent !important;
}
.nav-rebel ul li a.nav-highlight-gold:hover {
    color: #000000 !important;
}

/* ─── 🏎️ HERO-STAGE (CANNONDALE BRANDING) ─── */
.bub-hero-stage {
    width: 100%;
    background-color: #ffffff;
    padding: 80px 0 60px 0;
}

.bub-hero-limiter {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.bub-hero-prefix, .bub-section-prefix {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: bold;
    color: #888888;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 6px;
}

.bub-hero-title, .bub-section-title-wrap h2 {
    font-family: 'Arial Black', sans-serif;
    font-size: 38px;
    color: #000000;
    margin: 0 0 5px 0;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.bub-stripe-gold {
    width: 80px;
    height: 6px;
    background-color: #ffb300;
    margin-bottom: 30px;
}

.bub-hero-teaser {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #222222;
    max-width: 850px;
    margin: 0;
}

/* ─── 🚲 BIKE-KATALOG GRID SYSTEM (2 SPALTEN) ─── */
.bub-catalog-section {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
}

.bub-section-title-wrap {
    text-align: left;
    margin-bottom: 40px;
}

.bub-section-title-wrap h2 {
    font-size: 26px;
    letter-spacing: -1px;
}

.bub-stripe-black {
    width: 60px;
    height: 6px;
    background-color: #000000;
    margin-top: 5px;
}

.bub-bike-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 100%;
}

.bub-bike-card {
    background-color: #ffffff;
    border: 3px solid #000000;
    padding: 25px;
    position: relative;
    box-shadow: 6px 6px 0px rgba(0,0,0,0.05);
}

.bub-bike-img-wrap {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.bub-bike-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.bub-card-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #000000;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    font-weight: bold;
    padding: 5px 10px;
    letter-spacing: 1px;
}

.bub-bike-card h3 {
    font-family: 'Arial Black', sans-serif;
    font-size: 18px;
    color: #000000;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.bub-bike-spec {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #666666;
    font-weight: bold;
    display: block;
    margin-bottom: 15px;
}

.bub-bike-price {
    font-family: 'Arial Black', sans-serif;
    font-size: 20px;
    color: #000000;
    margin-bottom: 25px;
}
/* Die eckigen Kauf-Buttons unter den Bikes */
.bub-card-actions {
    display: flex;
    gap: 15px;
    width: 100%;
}

.bub-btn-primary, .bub-btn-secondary {
    flex: 1;
    text-align: center;
    font-family: 'Arial Black', sans-serif;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 12px 10px;
    text-decoration: none;
    border-radius: 0px;
    box-shadow: 4px 4px 0px #000000;
    transition: all 0.15s ease-in-out;
}

.bub-btn-primary {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 3px solid #000000 !important;
}
.bub-btn-primary:hover {
    background-color: #ffb300 !important;
    color: #000000 !important;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000000;
}

.bub-btn-secondary {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 3px solid #000000 !important;
}
.bub-btn-secondary:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000000;
}

/* ─── ⚡ LEASING HUB ─── */
.bub-leasing-section {
    width: 100%;
    background-color: #ffffff;
    padding: 40px 0;
}

.bub-leasing-box-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border: 3px solid #000000;
    padding: 40px;
    text-align: center;
    box-shadow: 6px 6px 0px rgba(0,0,0,0.05);
}

.bub-leasing-box-wrapper h2 {
    font-family: 'Arial Black', sans-serif;
    font-size: 22px;
    letter-spacing: -1px;
    margin: 0 0 10px 0;
}

.bub-stripe-gold-center {
    width: 60px;
    height: 6px;
    background-color: #ffb300;
    margin: 0 auto 20px auto;
}

.bub-leasing-box-wrapper p {
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
    max-width: 750px;
    margin: 0 auto 30px auto;
}

.bub-leasing-logos-flex {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.l-logo {
    background-color: #f9f9f9;
    border: 2px solid #dddddd;
    padding: 10px 20px;
    font-family: 'Arial Black', sans-serif;
    font-size: 13px;
    color: #333333;
}

/* ─── 📸 SHOWROOM MOSAIK GRID ─── */
.bub-showroom-gallery-chassis {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto;
}

.bub-showroom-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, 220px);
    gap: 16px;
    width: 100%;
}

.bub-showroom-item {
    border: 3px solid #000000;
    overflow: hidden;
    position: relative;
}

.bub-showroom-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.item-main { grid-column: 1 / 2; grid-row: 1 / 3; }
.item-side-1 { grid-column: 2 / 3; grid-row: 1 / 2; }
.item-side-2 { grid-column: 3 / 4; grid-row: 1 / 3; }
.item-side-3 { grid-column: 2 / 3; grid-row: 2 / 3; }

/* ─── FOOTER ─── */
.bub-landing-footer {
    width: 100%;
    border-top: 2px solid #f0efed;
    background-color: #ffffff;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-limiter {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    font-size: 13px;
    color: #666666;
    line-height: 1.6;
}

/* ─── ⚡ THE CRITICAL TOP-BUTTON ─── */
.bh-scrollicon-rebel {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 3px solid #000000 !important;
    padding: 12px 16px;
    font-family: 'Arial Black', sans-serif;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    z-index: 99999;
    box-shadow: 4px 4px 0px #000000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.bh-scrollicon-rebel.show-btn {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0px) !important;
}

.bh-scrollicon-rebel:hover {
    background-color: #ffb300 !important;
    box-shadow: 5px 5px 0px #000000;
}

/* ==========================================================================
   📱 MOBIL-WEICHE: COMPACT STACKING & ANTI-GLASRAND-SICHERUNG (20PX)
   ========================================================================== */
@media (max-width: 1150px) {
    
    .navigation-chassis,
    .bub-hero-limiter,
    .bub-catalog-section,
    .bub-leasing-box-wrapper,
    .bub-showroom-gallery-chassis,
    .footer-limiter {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100% !important;
    }
    
    .bub-hero-title { font-size: 24px; }
    .bub-section-title-wrap h2 { font-size: 20px; }
    .bub-hero-stage { padding: 40px 0 30px 0; }
    
    /* ─── MOBILE HAMBURGER MECHANIK ─── */
    #bub-menu-trigger {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 25px;
        height: 18px;
        cursor: pointer;
        z-index: 1001;
    }
    #bub-menu-trigger span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #000000;
    }
    
    #bub-menu-trigger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    #bub-menu-trigger.open span:nth-child(2) { opacity: 0; }
    #bub-menu-trigger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-rebel {
        position: fixed !important;
        top: 0; left: 0; width: 100vw; height: 100vh;
        background-color: #ffffff; z-index: 1000;
        display: none !important;
        justify-content: center; align-items: center;
    }
    
    .nav-rebel.mobile-open {
        display: flex !important;
    }
    
    .nav-rebel ul {
        flex-direction: column !important;
        align-items: center;
        gap: 35px !important;
    }
    
    .nav-rebel ul li a { font-size: 18px !important; }

    /* ─── SATELLITEN BIKES STACKEN UNTEREINANDER ─── */
    .bub-bike-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    .bub-card-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .bub-btn-primary, .bub-btn-secondary {
        width: 100% !important;
    }
    
    /* ─── MOBILE PHOTO GALERIE: AUTOMATISCHE WISCH-SCHIENE ─── */
    .bub-showroom-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 12px !important;
        scrollbar-width: none !important;
    }
    .bub-showroom-grid::-webkit-scrollbar { display: none !important; }
    
    .bub-showroom-item {
        min-width: 250px !important;
        max-width: 250px !important;
        height: 250px !important;
        flex-shrink: 0 !important;
    }
}

/* ⚡ Zusatz für den neutralen Säulen-Text */
.bub-säulen-text {
    font-family: 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #444444 !important;
    margin-bottom: 25px !important;
    min-height: 110px; /* Hält die Kacheln am PC automatisch auf exakt derselben Höhe */
}

@media (max-width: 1150px) {
    .bub-säulen-text {
        min-height: auto !important; /* Hebt den Höhenzwang fürs Smartphone flexibel auf */
    }
}
