.mapViewContainer {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;

}

.controls {
    background-color: var(--color-surface);
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.control-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.control-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

label {
    font-weight: 500;
    font-size: 14px;
}

select, input[type="file"] {
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background-color: var(--color-surface);
    color: var(--color-text);
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

select:hover, input[type="file"]:hover {
    border-color: var(--color-primary);
}

select:focus, input[type="file"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(33, 133, 208, 0.1);
}

button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background-color: var(--color-primary);
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: var(--color-primary-hover);
}

button:active {
    opacity: 0.8;
}

.status {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    background-color: #e8f5e9;
    color: var(--color-success);
    border: 1px solid var(--color-success);
}

.status.error {
    background-color: #ffebee;
    color: #c62828;
    border-color: #c62828;
}

#mapContainer {
    flex: 1;
    width: 100%;
}

.leaflet-container {
    background-color: #e8f4f8;
}

#details {
    margin-top: 20px
}

#details span {
    font-family: system-ui, sans-serif;
}

.detail-key {
    font-weight: 600;
}

.detail-val {
    margin-right: .5rem;
}

.custom-div-icon {
    /* Basis-Form: Kreis mit Pin-Effekt */
    /*width: 35px;*/
    /*height: 35px;*/
    border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;  /* Kreis-Shape */

    /* Schatten wie ExtraMarkers */
    box-shadow:
            0 1px 5px rgba(0,0,0,0.65),
            inset 0 0 0 1px rgba(255,255,255,0.8);

    /* Positionierung */
    text-align: center;
    line-height: 1;
}

.icon-background-green {
    background-color: #28a745;           /* Grün (markerColor=green) */
}

.icon-background-orange {
    background-color: orange;           /* Grün (markerColor=green) */
}

/* Icon zentrieren */
.custom-div-icon i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: #ffffff;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
    z-index: 2;
}

.route-title-container {
    color: white;
    background-color: #1b5e20;
    border-radius: 10px;
    border: 3px solid white;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-family: Arial, sans-serif;
    min-width: 100px;
    max-width: 600px;
    display: none;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    cursor: grab;
    user-select: none;
    transition: box-shadow 0.2s ease;
    z-index: 1000;
}

.route-title-name  {
    margin: 0 0 8px 0;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: white;
    line-height: 1;
    border-bottom: 1px solid rgba(232, 245, 233, 0.6);
    padding-bottom: 8px;
}

.route-details {
    color: white;
    font-size: 14px;
    line-height: 1.2;
    display: flex;                 /* Kinder nebeneinander */        /* [web:7] */
    justify-content: space-between;/* eines ganz links, eines rechts */ /* [web:13] */
    align-items: start;           /* gleiche vertikale Höhe */      /* [web:5] */
}

.route-details-key {
    font-size: 22px;
    font-weight: bold;"
}

.route-details strong {
    color: white;
}

/* Reset table to browser defaults */
.route-details table {
    all: revert; /* Modern browsers: revert to user-agent stylesheet */
}

/* For broader compatibility (older browsers) */
.route-details table, th, td {
    all: unset; /* Remove all inherited styles */
    display: revert; /* Restore default display type */
}


/* bis 1024px (kleinere Laptops/Tablets) */
@media (max-width: 1024px) {
    .route-title-container {
        max-width: 400px;
        padding: 8px;
        border-width: 2px;
    }

    .route-title-name {
        font-size: 16px;
        padding-bottom: 6px;
    }

    .route-details {
        font-size: 13px;
    }

    .route-details-key {
        font-size: 18px;
    }
}

/* bis 768px (Tablets/kleinere Monitore) */
@media (max-width: 768px) {
    .route-title-container {
        max-width: 320px;
        padding: 6px;
        border-width: 2px;
    }

    .route-title-name {
        font-size: 14px;
    }

    .route-details {
        font-size: 12px;
        gap: 4px;
    }

    .route-details-key {
        font-size: 16px;
    }
}

/* ganz kleine Breiten, z.B. 480px */
@media (max-width: 480px) {
    .route-title-container {
        max-width: 260px;
        padding: 4px;
        border-radius: 8px;
    }

    .route-title-name {
        font-size: 13px;
    }

    .route-details {
        font-size: 11px;
    }

    .route-details-key {
        font-size: 14px;
    }

    #streckenSelect {
        font-size: 11px;
    }
}