/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;

}

html, body {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    background-color: #f4f4f4;
}

/* Container */
.container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Typografie */
h1, h2 {
    margin-bottom: 1rem;
    color: #222;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

h2 {
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

p {
    margin-bottom: 0.5rem;
}

.time {
    font-weight: bold;
    color: #000;
}

.direction {
    font-weight: bold;
    color: #000;
}

/* Zug-Information */
.train-info {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 2rem;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.train-info p {
    margin: 0.5rem 0;
}

/* Station Layout */
.station {
    margin-bottom: 2rem;
}

.station:last-child {
    margin-bottom: 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem 0;
    background: #333;
    color: #fff;
    border-top: 4px solid #3498db;
    margin-top: 2rem;
    border-radius: 0 0 8px 8px;
}

footer p {
    margin: 0;
}

/* Suche */
.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.search-container input[type="text"] {
    width: 100%;
    max-width: 400px;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    border-right: none;
}

.search-container button {
    padding: 0.5rem;
    border: 1px solid #3498db;
    background-color: #3498db;
    color: #fff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.search-container button:hover {
    background-color: #2980b9;
}

/* Zusatzfunktionen */
.control-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertikal zentrieren */
    margin-bottom: 2rem;
}

.left {
    display: flex;
    align-items: center; /* Vertikal zentrieren */
}
.margin{
    margin-right: 0.3rem; /* Abstand zwischen den Elementen */

}
.right {
    margin-left: auto; /* Abstand zum linken Rand */
}

.control-buttons input[type="number"] {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
}

.control-buttons button {
    padding: 0.5rem 1rem;
    border: 1px solid #3498db;
    background-color: #3498db;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}

.control-buttons button:hover {
    background-color: #2980b9;
}

/* Media Queries für Handys */
@media only screen and (max-width: 600px) {
    html, body {
        font-size: 14px; /* Kleinere Schriftgröße für Handys */
    }

    .container {
        padding: 0.5rem; /* Weniger Innenabstand */
    }

    h1 {
        font-size: 1.5rem; /* Kleinere Überschriftengröße */
    }

    .search-container input[type="text"] {
        max-width: 100%; /* Vollständige Breite für das Eingabefeld */
    }

    .control-buttons input[type="number"] {
        width: 50px; /* Kleinere Breite für das Nummerneingabefeld */
    }

    .control-buttons button {
        padding: 0.5rem; /* Weniger Padding für die Schaltflächen */
        font-size: 14px; /* Kleinere Schriftgröße für die Schaltflächen */
    }
}
