body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    /*background-color: #d71920;*/
    background-color: white;
    color: white;
    padding: 20px;
    text-align: center;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

@media (min-width: 1024px) {
    .container {
        max-width: 66%;
    }
}

.section {
    padding: 40px;
    margin-top: 10px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #ddd;
    scroll-margin-top: 70px;  /* Höhe der Navbar + etwas Padding */
}

.section:nth-child(even) {
    background-color: #f4f4f4;
}

.section h2 {
    color: #d71920;
    margin-bottom: 30px;
    background-color: rgba(215, 25, 32, 0.1); /* Leicht rötlicher Hintergrund mit 10% Deckkraft */
    padding: 10px 20px;
    margin-left: -40px; /* Ausgleich für das section padding */
    margin-right: -40px;
    margin-top: -20px; /* Reduziert den Abstand nach oben */
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #d71920;
    color: white;
}

.fahrzeuge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.fahrzeug-kachel {
    background: #f4f4f4;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s;
}

.fahrzeug-kachel:hover {
    transform: scale(1.05);
}

.fahrzeug-kachel img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.popup-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    max-height: 70vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-dialog {
    max-width: 80%;
}

#fahrzeug-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: block; /* Stelle sicher, dass der Container sichtbar ist */
}

.vehicle-info .container {
    width: 100%;
}

.vehicle-info .row {
    display: flex;
    gap: 20px;  /* Abstand zwischen den Bildern */
}

.vehicle-info .col-md-6 {
    flex: 1;
    max-width: calc(50% - 10px);  /* 50% minus halber gap */
}

.vehicle-info img {
    width: 100%;
    height: auto;
}

.nav-triangle {
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #d71920;  /* DRK-Rot */
    margin-left: 15px;
    margin-right: 15px;  /* Abstand zum Menü */
}

.aktuelles-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.aktuelles-bild {
    max-width: 500px;
    height: auto;
}

/* Responsive Design für kleinere Bildschirme */
@media (max-width: 1000px) {
    .aktuelles-container {
        flex-direction: column; /* Ändert die Richtung zu vertikal */
    }
    
    .aktuelles-bild {
        max-width: 100%; /* Bild nutzt die volle verfügbare Breite */
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: -100px; /* Startet außerhalb des Viewports */
    right: 25px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #d71920;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: bottom 3.3s ease-in-out;
}

.scroll-to-top:hover {
    background-color: #b31419;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.scroll-to-top.show {
    bottom: 25px; /* Finale Position */
}

.scroll-to-top i {
    color: white;
    line-height: 0;
}

/* Mobile Textgrößen */
@media (max-width: 768px) {
    /* Allgemeine Textgröße für den Content */
    .section p, 
    .card-text, 
    .list-group-item {
        font-size: 16px !important;
        line-height: 1.6;
    }

    /* Überschriften */
    .section h3 {
        font-size: 22px !important;
    }

    .section h4 {
        font-size: 20px !important;
    }

    /* Alert-Boxen */
    .alert {
        font-size: 16px !important;
    }

    /* Listen */
    ul li, ol li {
        font-size: 16px !important;
    }

    /* Tabellen */
    table td, 
    table th {
        font-size: 16px !important;
    }
}