/* Allgemeine Stile für alle Seiten */
body {
    font-family: Arial, sans-serif;
    background-color: #2F4F4F; /* Hintergrundfarbe */
    color: white; /* Textfarbe */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Vollbildhöhe */
}

.container {
    width: 100%;
    max-width: 800px; /* Maximale Breite für größere Seiten */
    margin: 20px auto;
    padding: 20px;
    text-align: center;
    background-color: #2F4F4F; /* Rahmenfarbe */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Schatteneffekt */
}

/* Titel */
h1 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #E0EEE0; /* Helle Schriftfarbe */
}

/* Formulare */
form {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Abstand zwischen Formularfeldern */
}

/* Eingabefelder */
input[type="text"], input[type="email"], input[type="password"], input[type="number"], textarea, select {
    width: 100%; /* Volle Breite */
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #A8D8A8; /* Rahmenfarbe */
    background-color: #E0EEE0;
    color: #2F4F4F;
    font-size: 1em;
    box-sizing: border-box; /* Padding einberechnen */
}

textarea {
    resize: none; /* Keine Größenänderung durch den Nutzer */
}

/* Buttons */
button {
    background-color: #A8D8A8;
    color: #2F4F4F;
    padding: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #E0EEE0; /* Heller Hover-Effekt */
    color: #2F4F4F;
}

/* Link-Stil */
a {
    color: #A8D8A8;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

/* Nachrichten (Erfolg oder Fehler) */
.message-container {
    text-align: center;
    margin-top: 20px;
}

.message {
    padding: 15px;
    border-radius: 5px;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 10px auto;
}

.success {
    background-color: #DFF2BF;
    color: #4F8A10;
    border: 1px solid #4F8A10;
}

.error {
    background-color: #FFBABA;
    color: #D8000C;
    border: 1px solid #D8000C;
}

/* Homepage (zentriertes Design) */
body.homepage {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Vollbildhöhe */
    margin: 0;
}

body.homepage .container {
    background-color: #2F4F4F;
    border: 2px solid #A8D8A8;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    max-width: 500px; /* Etwas schmaler als andere Seiten */
}

/* Register- und Login-Seiten */
body.register-page, body.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

body.register-page .container, body.login-page .container {
    max-width: 500px;
    background-color: #2F4F4F;
    border: 2px solid #A8D8A8;
    border-radius: 8px;
    padding: 30px;
}

/* Dropdowns */
select {
    height: 40px; /* Konsistente Höhe */
}

/* Formulargruppen für bessere Ausrichtung */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

/* Spezifisches Styling für Sondertätigkeit bearbeiten */
body.edit-page .container {
    max-width: 800px;
}

body.edit-page .form-group {
    align-items: stretch;
}

body.edit-page button {
    width: 50%; /* Buttons sind halb so breit wie das Formular */
    margin: 0 auto;
}

/* Tabellen für Bearbeitungsansicht */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th, table td {
    border: 1px solid #A8D8A8;
    padding: 10px;
    text-align: left;
}

table th {
    background-color: #A8D8A8;
    color: #2F4F4F;
}

/* Footer immer unten */
footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 10px;
    background-color: #2F4F4F;
    color: #E0EEE0;
}
.pdf-button {
    display: inline-block;
    background-color: #4F8A10;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
}

.pdf-button:hover {
    background-color: #3C6B07;
}
#datumButton {
    padding: 10px 15px;
    background-color: #4F8A10;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

#datumButton:hover {
    background-color: #3E6D0B;
}

