/* Allgemeines Styling */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center; /* Zentriert den gesamten Inhalt horizontal */
}

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

label {
    font-weight: bold;
    margin-right: 10px;
    text-align: center; /* Zentriert Label-Text */
    display: block; /* Lässt Labels die volle Breite einnehmen */
    margin: 10px auto; /* Fügt vertikalen Abstand hinzu und zentriert */
}

input[type="text"],
select {
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    display: block; /* Lässt Inputs die volle Breite einnehmen */
    margin: 10px auto; /* Fügt vertikalen Abstand hinzu und zentriert */
    width: 200px; /* Feste Breite */
}

button {
    background-color: #0a9396;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    display: block; /* Lässt Buttons die volle Breite einnehmen */
    margin: 10px auto; /* Fügt vertikalen Abstand hinzu und zentriert */
}

button:hover {
    background-color: #005f73;
}

p {
    font-size: small;
    color: #777;
    text-align: center; /* Zentriert Paragraphen-Text */
}

footer {
    text-align: center;
    margin-top: 20px;
    font-size: smaller;
    color: #777;
}

/* Schichtplan-Layout mit Flexbox */
#schichtplan {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    width: 90%; /* Breite des Schichtplans */
    max-width: 1600px; /* Maximale Breite für bessere Lesbarkeit */
    margin: 0 auto; /* Zentriert den Schichtplan-Container */
}

.mitarbeiter {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%; /* Mitarbeiter-Divs nehmen die volle Breite des #schichtplan-Containers ein */
}

.mitarbeiter label {
    flex: 1 0 100%;
    text-align: left;
    margin-bottom: 5px;
}

.mitarbeiter input.name {
    flex: 1 0 200px;
    margin: 0 auto; /* Zentriert das Namens-Input-Feld */
}

.tag {
    flex: 1 0 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.tag label {
    text-align: center;
    font-size: 14px;
}

.tag div {
    display: flex;
    justify-content: center;
}

.tag select {
    margin-right: 5px;
    margin-bottom: 5px;
    width: 80px;
    margin: 0 auto; /* Zentriert Select-Felder */
}

.tag .arbeitszeit {
    text-align: center;
    font-size: 12px;
    color: #555;
}

.tag .frei {
    margin-top: 5px;
    text-align: center; /* Zentriert "Frei"-Checkboxen */
}