.main_section {
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
    font-family: "Poppins", sans-serif;
    color: #333;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.anfahrt-title {
    color: #800000;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.anfahrt-text {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto 20px auto;
    color: #333;
    text-align: center;
}

.route-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.route-button {
    display: none;
    padding: 12px 25px;
    font-size: 1.2rem;
    background-color: #800000;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.route-button:hover {
    background-color: #a00000;
    transform: scale(1.05);
}

.route-icon {
    width: 30px;
    height: 30px;
}

#map {
    height: 400px;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    margin-top: 20px;
}

.leaflet-popup-content-wrapper {
    border-radius: 10px;
    background-color: #fff0f5;
    color: #333;
    font-weight: 500;
}

.leaflet-popup-tip {
    background-color: #fff0f5;
}

.leaflet-routing-container {
    touch-action: auto;
}

@media (min-width: 1024px) {
    .main_section {
        max-width: 100%;
        margin: 0;
        padding: 40px 60px;
        background-color: rgba(255, 255, 255, 0.3);
        border-radius: 0;
        box-shadow: none;
    }

    #map {
        height: 600px;
        width: 90%;
        margin: 20px auto 0 auto;
    }

    .route-button {
        display: flex;
    }
}

@media (max-width: 768px) {
    #map {
        height: 400px;
    }

    .anfahrt-title {
        font-size: 2rem;
    }

    .anfahrt-text {
        font-size: 1rem;
    }
}
