﻿:root {
    --primary-color: #2c3e50;
    --secondary-color: #1e7e34;
    --light-gray: #f8f9fa;
}
html{
    font-size:14px;
}
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh; /* Sicherstellen, dass die Seite mindestens die Höhe des Viewports hat */
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

body {
    background-image: url('/Images/neuerhinteergrund.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
   
    max-height: 100vh;
    
  
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

main {
    flex: 1; /* Nimmt den verfügbaren Platz ein und lässt den Footer unten */
}
#BackgroundContainer {
    margin: 0;
  
    max-height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

.bottom-center-text {
    position: absolute;
    bottom: 6.25rem; /* Abstand vom unteren Rand */
    /* left: 50%;*/ /* Horizontal zentrieren durch links 50% */
    right: 1.25rem;
    /* transform: translateX(-50%);*/ /* Korrektur der horizontalen Zentrierung */
    text-align: center;
    color: white;
}

#unsereAngeboteLink {
    font-size: 2.75rem;
    font-family: Arial;
    font-weight: bold;
    text-shadow: 0.3125rem 0.0625rem 0rem #042351, -0.0625rem -0.0625rem 0rem #000, 0.0625rem -0.0625rem 0rem #000, -0.0625rem 0.0625rem 0rem #000;
    color: gray;
}

    #unsereAngeboteLink:hover {
        color: white;
    }


.hero-banner {
    position: fixed; /* <- Banner fixieren */
    top: 6vh;
    left: 0;
    right: 0;
    z-index: 1030;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1494972308805-463bc619d34e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    padding: 1rem 0;
    color: white;
    /* margin-bottom ist jetzt unnötig */
}
#Fahrzeugdetaillcontainer{
    margin-top:100px;
}


.vehicle-card {
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    margin-bottom: 1.5rem;
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

    .vehicle-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    }

.vehicle-img-container {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.vehicle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vehicle-card:hover .vehicle-img {
    transform: scale(1.05);
}

.price-badge {
    font-size: 1.1rem;
    background-color: var(--secondary-color);
    padding: 0.5rem 1rem;
}

.spec-badge {
    background-color: var(--light-gray);
    color: var(--primary-color);
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.35rem 0.75rem;
}

.detail-item {
    margin-bottom: 0.5rem;
}

.detail-icon {
    color: var(--secondary-color);
    width: 1.5rem;
    text-align: center;
    margin-right: 0.5rem;
}

.btn-details {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 0.9rem;
}

    .btn-details:hover {
        background-color: #1a252f;
        transform: translateY(-2px);
    }
.ausstattungundbeschreibung{
    margin-top:5rem;
}

.filter-card {
    border-radius: 0.5rem;
}

.no-vehicles {
    padding: 2rem;
    text-align: center;
    background: white;
    border-radius: 0.5rem;
}
/* In Ihrem CSS oder <style> tag */
.vehicle-card .row {
    align-items: stretch; /* Gleichmäßige Höhe erzwingen */
}

.vehicle-img-container {
    height: 100%;
    min-height: 200px; /* Fallback für mobile Ansicht */
}

.vehicle-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
/* Carousel Styles */
.carousel {
    background-color: #fff; /* Weißer Hintergrund statt grau */
    border-radius: 0.5rem;
}

.carousel-inner {
    border-radius: 0.5rem 0.5rem 0 0;
    overflow: hidden;
}

.carousel-image {
    height: 400px;
    width: 100%;
    object-fit: contain;
    background-color: #fff; /* Sicherstellen, dass der Hintergrund weiß ist */
}

/* Für den Fall ohne Bilder */
.carousel-item .bg-light {
    height: 400px;
    background-color: #fff !important;
}

/* Diese Regel direkt einfügen */
.filter-card,
.vehicle-card,
.hero-banner,
.container {
    overflow: visible !important;
}

.dropdown-menu {
    z-index: 2000;
    position: absolute;
}

#AbstandwegenBannerundnav {
    height: 19vh;
}

.scroll-container {
    max-height: calc(100vh - 120px); /* oder gewünschte Höhe */
    overflow-y: auto;
    padding-right: 0.5rem;
}

.footer {
}

/**********************************************MediaQuerrys*******************/




@media only screen and (orientation: landscape) {


  
}
/*Landscapr für redmi 8*/
@media only screen and (device-width: 2340px) and (device-height: 1080px) and (-webkit-device-pixel-ratio: 2.5) and (orientation: landscape) {
    html {
        font-size: 35px;

    }
   

   

  
}
/*Tablets / kleine Laptops (z. B. iPad, Surface Go) */
@media (max-width: 1024px) {
    .vehicle-details {
        margin-top: 0rem;
    }
}

/* Laptops und Desktops */
@media (min-width: 1025px) {
}

/* Große Bildschirme (z. B. 4K-Monitore, TV) */
@media (min-width: 1440px) {
}
/*redmi note 8 pro Portrait*/
@media only screen and (device-width: 1080px) and (device-height: 2340px) and (-webkit-device-pixel-ratio: 2.5) and (orientation: portrait) {
    html {
        font-size: 35px;
    }

    .vehicle-details {
        margin-top: 5rem;
    }
}

@media only screen and (-webkit-device-pixel-ratio: 2.75) and (orientation: portrait) {
    html {
        font-size: 35px;
    }

    /*Angebote liste*/
    #AngeboteContainer {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .vehicle-card {
        flex-direction: column;
    }

    .vehicle-details {
        margin-top: 5rem;
    }

    .vehicle-card .row.g-0 {
        flex-direction: column;
    }

    .vehicle-card .col-md-6 {
        width: 100% !important;
        max-width: 100% !important;
    }

    .vehicle-img-container {
        height: auto;
    }

    .vehicle-img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    /*Detailcontainer*/
    /* Hauptcontainer Layout anpassen */
    .container .row > .col-lg-8,
    .container .row > .col-lg-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}
/* Kleinere Smartphones (z. B. iPhone SE) */
@media (max-width: 480px) {
   
    .vehicle-details {
        margin-top: 5rem;
    }
}

 /*Standard-Smartphones (z. B. iPhone 11, Galaxy A) */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    .vehicle-details {
        margin-top: 5rem;
    }
  
}




