@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 400;
    src: url("/style/fonts/open-sans-v40-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }


body {
    font-family: "Open Sans";
    margin: 0;
    background-color: #e0e0e0;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;

}

a {
    color: #333; 
    text-decoration: none; 
    transition: color 0.3s ease; 
}

a:hover {
    color: #555; 
    text-decoration: underline; 
}

/*HEADER ################################################################            */

header {
    width: 100%;
    background-color: #222; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    box-sizing: border-box;
    position: sticky; /* bleibt beim Scrollen sichtbar */
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* leichter Schatten */
}

.logo {
    height: 70px;
    max-width: 160px;
    margin-right: 20px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 18px;
    background-color: #007BFF; /* lebendige Farbe */
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

nav ul li a:hover {
    background-color: #0056b3;
    transform: translateY(-2px); /* leichtes „Anheben“ */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: #fff;
}

/*===================== RESPONSIVE =====================*/
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }

    .logo {
        margin: 0 0 10px 0;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    nav ul li a {
        width: 80%; /* Buttons etwas breiter für mobile Ansicht */
        text-align: center;
    }
}



/*HEADER ################################################################            */


h1 {
    margin-top: 30px;
}


footer {
    width: 100%;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    bottom: 0;
    left: 0;
}



/* ROUTE */

    
    dual-color-yellow-gray {
        background: linear-gradient(to right, #FFFF00 50%, #BEBEBE 50%);
    }
    dual-color-yellow-black {
        background: linear-gradient(to right, #FFFF00 50%, #000000 50%);
        color: white;
    }

.route {
    background-color: #ffffff;
    padding: 10px 10px 15px 10px;
    flex: 0 1 300px;      /* feste Basisbreite, schrumpfbar */
    max-width: 300px;      
    min-width: 280px;     
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column; /* vertikal ausgerichtet */
    /* Kein align-items: center hier, sonst verschiebt sich die Card horizontal */
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.route:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .box-route {
        justify-content: center; /* Cards zentrieren */
    }
    .route {
        max-width: 90%;
    }
}

.route-info {
 
    display: flex;
    align-items: center;
    width: 100%;
    
}

.difficulty {
    position: relative;
    border-radius: 50%;
    padding: 15px;
    min-width: 15px;
    min-height: 15px;
    max-width: 15px;
    max-height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: black;
    margin-right: 10px; /* Abstand zum Namen */
    outline: 1.5px solid black; /* Innere schwarze Linie */
    outline-offset: -9px; /* Verschiebt die Linie nach innen */
    box-shadow: 0 0 0 1.5px black; /* Äußere schwarze Linie */
}



  

.route-details {
    padding-left: 10px;
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;

}

.route-name {
    font-size: 24px;
    color: #333;
    margin: 0;
}

.route-description {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

.date {
    font-size: 14px;
    color: #666;
    align-self: flex-end; 
    margin-top: auto; 
    width: 100%;
    text-align: right;
    padding-top: 5px; 
}


form {
    margin: 0 auto;
    text-align: center;
    width: max-content;
}

select {
    padding: 8px 16px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

select:hover,
select:focus {
    border-color: #88a;
    box-shadow: 0 0 8px #88a;
}


button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #0056b3;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #004494;
}


.box-route {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* gleichmäßige Verteilung */
    gap: 25px;               /* mehr Abstand zwischen den Cards */
    justify-content: center;
    background-color: #f0f0f0;  
    border-radius: 10px;      
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);          
    margin: 15px 0;
    padding: 25px;
    width: auto;
    max-width: 100%; 
    box-sizing: border-box;  
}



/*===================== FILTERS MODERN =====================*/
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background-color: #ffffff; /* reine weiße Fläche für sauberen Look */
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 20px auto;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    align-items: flex-end;
}

.filters label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #444;
    margin-bottom: 4px;
}

.filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f5f5f5;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    cursor: pointer;
    min-width: 150px;
}

.filters select:hover {
    border-color: #007BFF;
    background-color: #eaf2ff;
}

.filters select:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 4px rgba(0,86,179,0.3);
}

.filters button {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filters button:hover {
    background: linear-gradient(135deg, #0056b3, #003f7f);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filters select, .filters button {
        width: 100%;
    }
}


/*===================== FILTERS DASHBOARD HIGH-END SLIM =====================*/
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 700px;  /* schlanker */
    margin: 30px auto;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    justify-content: center; /* zentriert auf breiten Bildschirmen */
}

.filters .filter-card {
    flex: 1 1 180px; /* max. 180px pro Karte, flexibel */
    display: flex;
    flex-direction: column;
    padding: 12px 15px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 140px;
}

.filters .filter-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.filters label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.filters select {
    padding: 8px 10px 8px 32px; /* Platz für Icon */
    border-radius: 10px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23777" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 16px;
}

.filters select:hover {
    border-color: #007BFF;
    background-color: #eaf2ff;
}

.filters select:focus {
    border-color: #0056b3;
    box-shadow: 0 0 6px rgba(0,86,179,0.25);
}

.filters button {
    padding: 8px 14px;
    margin-top: 8px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filters button:hover {
    background: linear-gradient(135deg, #0056b3, #003f7f);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .filters {
        flex-direction: column;
        align-items: center;
    }

    .filters .filter-card {
        flex: 1 1 100%;
        min-width: unset;
    }
}
