body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Oben beginnen auf dem Smartphone */
    min-height: 100vh;
}

#container {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%; /* Volle Breite auf dem Smartphone */
    max-width: 500px; /* Maximale Breite, um auf großen Bildschirmen nicht zu breit zu werden */
    box-sizing: border-box;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
    color: #555;
    font-weight: bold;
}

input[type="text"],
input[type="hidden"],
button {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Wichtig für die volle Breite */
    font-size: 16px;
}

input[type="text"][readonly] {
    background-color: #eee;
    color: #333;
}

.input-group {
    display: flex;
    align-items: center;
}

.input-group input {
    flex-grow: 1; /* Eingabefeld nimmt den meisten Platz ein */
    margin-right: 10px;
}

/* Radio Buttons Styling */
.radio-group {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.radio-group input[type="radio"] {
    display: none; /* Original Radio Button verstecken */
}

.radio-group label {
    display: inline-block;
    padding: 10px 15px;
    border: 2px solid #ccc;
    border-radius: 20px;
    cursor: pointer;
    text-align: center;
    margin: 0 5px;
    flex-grow: 1;
    font-weight: normal;
}

.radio-group input[type="radio"]:checked + label {
    background-color: #4CAF50; /* Grün, wenn ausgewählt */
    color: white;
    border-color: #4CAF50;
}

/* Button Styling */
#senden_button {
    background-color: #007bff;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

#senden_button:hover {
    background-color: #0056b3;
}

/* Status Bereich nach dem Senden */
#status_bereich {
    text-align: center;
    padding: 30px 0;
    flex-direction: column;
    align-items: center;
}

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

.haken {
    font-size: 4em; /* Großer Haken */
    color: #4CAF50; /* Grüner Haken */
    line-height: 1;
    margin-right: 15px;
}

.meldung {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

#schliessen_button {
    background-color: #f44336; /* Rot zum Schließen */
    color: white;
    font-weight: bold;
    margin-top: 15px;
    cursor: pointer;
}

#schliessen_button:hover {
    background-color: #da190b;
}

/* Media Query für kleinere Bildschirme (Mobile First) */
@media (max-width: 600px) {
    #container {
        padding: 15px;
        margin: 10px;
    }
}

/* ... (Bestehendes CSS) ... */

/* NEUE REGEL FÜR DAS DATUM-FELD */
.datum-group {
    display: flex;
    align-items: center;
    width: 100%; /* Gruppe nimmt volle Breite ein */
}

/* Reduziert die Breite des tatsächlichen Datums-Input-Feldes */
#datum_anzeige {
    width: 20%; /* Nur 20% der Seitenbreite */
    min-width: 70px; /* Mindestbreite für Lesbarkeit auf kleinen Screens */
    flex-shrink: 0; /* Verhindert, dass es kleiner wird */
    margin-right: 10px; /* Abstand zum Haken */
}

/* Stellt sicher, dass der Haken oder das Status-Icon rechts vom Datum gut sichtbar ist */
#check_status {
    flex-grow: 1; /* Nimmt den restlichen Platz ein */
}

/* Status-Anzeige nach dem Senden (Für Fehlermeldung) */
.meldung-container.error .haken {
    color: #f44336; /* Rot für den Fehler */
    content: "✖"; /* Kreuz statt Haken bei Fehler */
}

.meldung-container.error .meldung {
    color: #f44336;
}

/* ... (Rest des CSS bleibt unverändert) ... */