/* Grundlegende Formatierung */
:root {
    --primary-blue: #500505;
    --dark-bg: #212529;

    /* Bootstrap-Standardfarben (Blau) auf einheitliches Bulenda-Rot umstellen */
    --bs-primary: #500505;
    --bs-primary-rgb: 80, 5, 5;
    --bs-primary-text-emphasis: #500505;
    --bs-primary-bg-subtle: #f3d9d9;
    --bs-primary-border-subtle: #e0a3a3;
    --bs-link-color: #ca0707;
    --bs-link-color-rgb: 202, 7, 7;
    --bs-link-hover-color: #a30606;
    --bs-link-hover-color-rgb: 163, 6, 6;
    --bs-focus-ring-color: rgba(80, 5, 5, 0.25);
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Hero Slider (Karussell) */
#homeCarousel {
    height: 50vh;
    min-height: 400px;
    background-color: #500505;
}

.carousel-inner, .carousel-item {
    height: 100%;
}

.carousel-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-caption {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

/* Fahrzeug- & Galerie-Karten */
.card-img-top {
    height: 300px;
    object-fit: cover;
    border-bottom: 2px solid var(--primary-blue);
}

.text-primary {
    color: var(--primary-blue) !important;
}

.btn-primary {
    background: linear-gradient(160deg, #8c7773 0%, #6b2c2c 45%, #260808 100%);
    border: none;
    padding: 10px 25px;
}

.btn-primary:hover {
    background: linear-gradient(160deg, #7a655f 0%, #571f1f 45%, #180404 100%);
}

.border-primary {
    border-color: var(--primary-blue) !important;
}

.bg-primary {
    background-color: var(--primary-blue) !important;
}

/* Mitarbeiter-Fotos */
.employee-photo {
    display: block;
    width: 60%;
    height: auto;
    margin: 1.5rem auto 0;
    object-fit: contain;
}

.employee-photo-center {
    object-position: center;
    object-fit: contain;
    background-color: #f0f0f0;
}

.grayscale-hover {
    transition: filter 0.3s ease;
}
/* WhatsApp Floating Button (Icon + Text, damit er eindeutig erkennbar ist) */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px 14px 16px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    box-shadow: 2px 4px 14px rgba(0,0,0,0.4);
    color: #FFF;
}

.whatsapp-float .whatsapp-icon {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}

.whatsapp-float .whatsapp-text {
    white-space: nowrap;
}

/* Auf sehr schmalen Bildschirmen bleibt der Text sichtbar, wird aber kompakter */
@media (max-width: 400px) {
    .whatsapp-float {
        padding: 12px 16px 12px 14px;
        font-size: 0.85rem;
        gap: 8px;
    }
    .whatsapp-float .whatsapp-icon {
        font-size: 1.4rem;
    }
}

.form-check-verification {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}
/* Optional: Ein schöner Effekt, bei dem die Bilder erst im Hover farbig werden */
.card:hover .grayscale-hover {
    filter: none;
}

/* In deiner styles.css */
.text-bulenda-red {
    color: #ca0707; /* Hier kannst du den Ton anpassen */
}

.custom-dark {
    background-color: #6d0303; 
    /* Oder noch heller: #4a4e51 */
}
        .table-responsive {
            border-radius: 10px;
            overflow: hidden;
        }
        .table thead {
            background-color: var(--primary-blue);
            color: white;
        }
        .price-card {
            transition: transform 0.2s;
        }
        .price-card:hover {
            transform: translateY(-5px);
        }
        .badge-km {
            font-size: 0.75rem;
        }

#rental-table {
    border-radius: 15px !important;
    overflow: hidden;
    border: none;
}

#rental-table thead {
    background: linear-gradient(90deg, #500505 0%, #ca0707 100%);
}

.table-responsive {
    border: none !important;
}

.header-wave {
    width: 100%;
    overflow: hidden;
}

/* Optional: Schatten für die Tabelle, damit sie sich vom grauen Grund abhebt */
.table-responsive.shadow-sm {
    border: none !important;
    border-radius: 12px;
}

.header-wave svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50px;
}

/* Mobile Anpassung */
@media (max-width: 768px) {
    #homeCarousel { height: 40vh; }
    .carousel-caption h1 { font-size: 1.8rem; }
}
/* Fix: Navbar bleibt beim Scrollen oben stehen.
   Der Wrapper #nav-placeholder wird per JS mit der Navbar befuellt und ist danach
   exakt so hoch wie die Navbar selbst -> "position: sticky" auf der Navbar hat dadurch
   keinen Spielraum und rutscht sofort wieder mit. Daher sticky auf den Wrapper legen,
   dessen Elternelement (body) genug Hoehe fuer den Sticky-Effekt bietet. */
#nav-placeholder {
    position: sticky;
    top: 0;
    z-index: 1020;
}

/* Social-Media-Icons in der Fusszeile */
.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-right: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-icon-link:hover {
    background-color: var(--primary-blue);
    color: #fff;
    transform: translateY(-2px);
}

/* Dezente Trennlinie zwischen den Sektionen der Startseite */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 320px;
    margin: 0 auto;
    padding: 0;
}

.section-divider .line {
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(80, 5, 5, 0.35));
}

.section-divider .line.line-end {
    background: linear-gradient(90deg, rgba(80, 5, 5, 0.35), transparent);
}

.section-divider .dot {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin: 0 14px;
    border-radius: 50%;
    background-color: var(--primary-blue);
}

/* Dekorativer Hintergrund-Akzent hinter Fotos in Text/Bild-Sektionen */
.photo-frame {
    position: relative;
}

.photo-frame::before {
    content: "";
    position: absolute;
    top: 18px;
    left: -18px;
    width: 100%;
    height: 100%;
    background-color: var(--primary-blue);
    opacity: 0.10;
    border-radius: 1rem;
    z-index: 0;
}

.photo-frame img {
    position: relative;
    z-index: 1;
}

/* Eyebrow-Chip für lebendigere Textblöcke */
.eyebrow-chip {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-blue);
    background-color: rgba(80, 5, 5, 0.08);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 0.9rem;
}

/* Kacheln für "Aktuelle Angebote" */
.offer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    min-height: 170px;
    padding: 1.5rem 1.75rem;
    border-radius: 1rem;
    color: #fff;
    background: linear-gradient(160deg, #8c7773 0%, #6b2c2c 45%, #260808 100%);
    box-shadow: 0 4px 14px rgba(0,0,0,0.14);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.offer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.24);
}

.offer-card .offer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 1rem;
    font-size: 2.1rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(2px);
}

.offer-card .offer-icon.offer-icon-logo {
    background-color: rgba(255, 255, 255, 0.92);
    padding: 0.6rem;
}

.offer-card .offer-icon.offer-icon-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.offer-card h5 {
    color: #fff !important;
    font-size: 1.1rem;
}

.offer-card p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.offer-card .offer-link {
    margin-top: auto;
    font-weight: 600;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.offer-card .offer-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Testweise: Navbar mit Kachel-Farbverlauf */
.navbar-gradient-test {
    background: linear-gradient(90deg, #260808 0%, #4a1c1c 55%, #5a2626 100%);
}

/* Signatur-Box "Schön, dass Sie da sind!" */
.signature-box {
    max-width: 640px;
    padding: 2rem 2.5rem;
    border-radius: 1rem;
    color: #fff;
    background: linear-gradient(160deg, #8c7773 0%, #6b2c2c 45%, #260808 100%);
    box-shadow: 0 4px 14px rgba(0,0,0,0.14);
}

.signature-box p {
    color: rgba(255, 255, 255, 0.9);
}

.signature-box p:first-child {
    color: #fff;
}

/* Werte-Karten im Bereich "Wir sind Bulenda" - mit Farbverlauf */
.value-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 170px;
    padding: 1.5rem 1.75rem;
    border-radius: 1rem;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(160deg, #8c7773 0%, #6b2c2c 45%, #260808 100%);
    box-shadow: 0 4px 14px rgba(0,0,0,0.14);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.24);
}

.value-card .value-icon,
.value-card h6,
.value-card p {
    position: relative;
    z-index: 2;
}

.value-card .value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 1rem;
    font-size: 2.1rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(2px);
}

.value-card h6 {
    color: #fff !important;
    letter-spacing: 0.03em;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.value-card p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.95rem;
}


/* Kompakter Abstand ueber den Mitarbeiter-Fotos (Service, Ersatzteillager) */
.team-kompakt .employee-photo {
    margin-top: 0.25rem;
}
