body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

h1 {
    text-align: center;
    color: #333;
}

label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

/* Ensure consistent spacing for all input fields */
input[type="text"],
input[type="password"],
select {
    width: calc(100% - 20px); /* Adjust width to account for padding */
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Ensure padding is included in the width */
}

/* Ensure consistent spacing for dynamic fields */
.field-wrapper input[type="text"] {
    width: calc(100% - 40px); /* Adjust width to account for padding and remove button */
    margin-right: 10px; /* Add some spacing between the input and the remove button */
}

/* Ensure consistent spacing for the Ablauf table inputs */
#ablauf_table input[type="text"],
#ablauf_table select {
    width: 100%; /* Make inputs and selects fill the cell */
    padding: 8px;
    margin: 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Ensure padding is included in the width */
}

/* Ensure consistent spacing for the datepicker input */
#datum {
    width: calc(100% - 20px); /* Adjust width to account for padding */
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Ensure padding is included in the width */
}

button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

/* Tabelle Stil */
table {
    width: calc(100% - 20px); /* Adjust table width to match text fields */
    margin: 20px 0;
    border-collapse: collapse;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

table th {
    background-color: #007bff;
    color: white;
}

table td input[type="text"], table td select {
    width: 100%; /* Make inputs and selects fill the cell */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Ensure padding is included in the width */
}

/* Position der Add-Button unter der Tabelle */
#ablauf_table button {
    display: block;
    margin: 10px auto;
}

/* Responsive Design für kleine Bildschirme */
@media (max-width: 600px) {
    .container {
        width: 95%;
    }

    table th, table td {
        font-size: 14px;
    }
}

.field-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.field-wrapper input {
    flex: 1;
}

button {
    cursor: pointer;
    padding: 5px 10px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 3px;
}

button:hover {
    background-color: darkred;
}

/* Hellgrüner Hintergrund für Datum und Wochenvers */
#datum, #wochenvers {
    background-color: #58ACFA;
}

/* Hellgrüner Hintergrund für Gottesdienstleitung und Infos an die Gottesdienstleitung */
#gottesdienstleitung, #infos_gottesdienstleitung input {
    background-color: #A5DF00;
}

/* Grüner Hintergrund für Tontechnik, Bildtechnik, Livestream und Musik */
#tontechnik, #bildtechnik, #livestream, #musik {
    background-color: #F7D358;
    color: black;
    border: none;
    padding: 10px;
    border-radius: 5px;
    width: calc(100% - 20px); /* Ensure dropdowns have the same width as text fields */
    box-sizing: border-box; /* Ensure padding is included in the width */
}

.technik-info {
   background-color: #F7D358; 
}

.date-container {
    background-color: #F2F2F2;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.infos_gottesdienstleitung-container {
    background-color: #F2F2F2;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.gridcontainer-container {
    background-color: #F2F2F2;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.ablauf_table-container {
    background-color: #F2F2F2;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.botschaft-container {
    background-color: #F2F2F2;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

#infos_technik {
    padding-top: 20px;
    width: 98%;
}

#infos_gottesdienstleitung {
    padding-top: 20px;
    width: 98%;
}

.hellrot {
    background-color: #ec5252;
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.auth-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background: #f4f4f4;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    text-align: center;
}

.auth-container input, .auth-container button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
}

.auth-container button {
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
}

.auth-container button:hover {
    background-color: #218838;
}

.fixed-bottom-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    padding: 10px;
    text-align: center;
    border-top: 1px solid #ccc;
    z-index: 1000;
}

.fixed-bottom-buttons button {
    margin: 0 5px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.header-container h1 {
    margin: 0;
}

.header-container img {
    height: 50px; /* Passe die Höhe des Logos an */
}

#timestamp-container {
    margin-top: 20px;
    font-size: 14px;
    color: #555;
}

#timestamp {
    font-weight: bold;
    color: #000;
}