/* css/style.css - Dark Mode & Modern Design */

:root {
    /* Dark Mode Farben */
    --background-color: #1a1a2e; /* Dunkler Hintergrund */
    --text-color: #e0e0e0;       /* Helle Textfarbe */
    --card-background: #2c2c4d; /* Hintergrund für Container/Karten */
    --primary-color: #007bff;   /* Primärfarbe (z.B. für Buttons) */
    --primary-hover-color: #0056b3; /* Hover-Effekt Primärfarbe */
    --danger-color: #dc3545;    /* Farbe für Warnungen/Abmelden */
    --danger-hover-color: #c82333; /* Hover-Effekt Warnfarbe */
    --border-color: #4a4a6e;    /* Rahmenfarbe */
    --input-background: #3e3e60; /* Hintergrund für Eingabefelder */
    --input-text-color: #e0e0e0; /* Textfarbe in Eingabefeldern */
    --success-background: #28a745; /* Hintergrund für Erfolgsmeldungen */
    --success-text-color: #ffffff; /* Textfarbe für Erfolgsmeldungen */
    --error-background: #dc3545;   /* Hintergrund für Fehlermeldungen */
    --error-text-color: #ffffff;   /* Textfarbe für Fehlermeldungen */
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; /* Modernere Schriftart */
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding-top: 50px;
    box-sizing: border-box;
}

.container {
    background-color: var(--card-background);
    padding: 40px;
    border-radius: 12px; /* Abgerundetere Ecken */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); /* Tieferer Schatten */
    max-width: 800px;
    width: 90%;
    box-sizing: border-box;
    animation: fadeIn 0.8s ease-out; /* Fade-In Effekt */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-container,
.change-password-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 450px; /* Etwas breiter für bessere Lesbarkeit */
}

h1, h2 {
    color: var(--primary-color); /* Überschriftenfarbe */
    text-align: center;
    margin-bottom: 25px; /* Etwas mehr Abstand */
    font-weight: 600; /* Halbfett */
}

header {
    display: flex;
    flex-wrap: wrap; /* Ermöglicht Umbruch auf kleineren Bildschirmen */
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    gap: 15px; /* Abstand zwischen Elementen im Header */
}

header h1 {
    margin: 0;
    font-size: 1.8em;
    color: var(--text-color); /* Helle Textfarbe für den Haupttitel */
}

header nav {
    display: flex;
    gap: 15px; /* Abstand zwischen Navigationslinks */
}

header nav a {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 8px; /* Moderner abgerundeter Button */
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 500;
}

header nav a:last-child { /* Spezieller Stil für den Abmelden-Button */
    background-color: var(--danger-color);
}

header nav a:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-2px); /* Leichter Schwebe-Effekt */
}

header nav a:last-child:hover {
    background-color: var(--danger-hover-color);
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
    text-align: left; /* Text links ausrichten */
    width: 100%; /* Volle Breite */
}

form input[type="text"],
form input[type="password"] {
    width: calc(100% - 22px); /* Anpassung für Padding und Border */
    padding: 12px; /* Mehr Padding */
    margin-bottom: 20px; /* Mehr Abstand */
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Abgerundeter Input */
    background-color: var(--input-background);
    color: var(--input-text-color);
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form input[type="text"]:focus,
form input[type="password"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25); /* Leichter Fokus-Schatten */
    outline: none; /* Standard-Outline entfernen */
}

form button {
    background-color: var(--primary-color);
    color: white;
    padding: 14px 25px; /* Mehr Padding */
    border: none;
    border-radius: 8px; /* Abgerundeter Button */
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600; /* Halbfett */
    width: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: 10px; /* Abstand nach oben zum vorherigen Element */
}

form button:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.error-message,
.message.error {
    background-color: var(--error-background);
    color: var(--error-text-color);
    padding: 12px;
    margin-top: 20px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    width: 100%; /* Volle Breite */
    box-sizing: border-box;
}

.message.success {
    background-color: var(--success-background);
    color: var(--success-text-color);
    padding: 12px;
    margin-top: 20px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    width: 100%; /* Volle Breite */
    box-sizing: border-box;
}

.chart-section {
    margin-top: 40px; /* Mehr Abstand */
    text-align: center;
}

canvas {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto 0 auto; /* Abstand oben und zentriert */
}
/* css/style.css - Füge dies am Ende hinzu */

.spreadsheet-section {
    margin-top: 50px; /* Abstand zur Sektion darüber */
    text-align: center;
}

.spreadsheet-section h2 {
    margin-bottom: 25px;
}
.user-role {
    font-size: 0.9em;
    color: var(--text-color);
    margin-top: -15px; /* Etwas näher an den Titel rücken */
    margin-bottom: 15px;
    opacity: 0.8;
}

.calendar-section {
    margin-top: 50px; /* Abstand zur Sektion darüber */
    text-align: center;
}

.calendar-section h2 {
    margin-bottom: 25px;
}
.iframe-container {
    background-color: var(--input-background); /* Leichter Hintergrund für den Container */
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden; /* Sicherstellen, dass Iframe-Ränder innerhalb des Containers bleiben */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    width: 100%; /* Passt sich der Container-Breite an */
    max-width: 800px; /* Max-Breite wie der Hauptcontainer */
}

.iframe-container iframe {
    display: block; /* Entfernt zusätzlichen Platz unter dem Iframe */
    width: 100%;
    height: 600px; /* Feste Höhe, kann angepasst werden */
    border: none; /* Entfernt den Standard-Iframe-Border */
}

.iframe-note {
    font-size: 0.9em;
    color: var(--text-color);
    margin-top: 20px;
    opacity: 0.7; /* Leicht transparenter Hinweis */
}
/* css/style.css - Füge dies am Ende hinzu oder aktualisiere bestehende Regeln */

/* ... (bestehende CSS-Regeln) ... */

.create-user-button {
    background-color: #28a745 !important; /* Grüne Farbe für "Erstellen" */
}

.create-user-button:hover {
    background-color: #218838 !important; /* Dunkleres Grün beim Hover */
}

.create-user-container {
    max-width: 500px; /* Ähnlich wie change-password-container */
}

form select {
    width: calc(100% - 22px); /* Anpassung für Padding und Border */
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--input-background);
    color: var(--input-text-color);
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none; /* Entfernt Standard-Pfeil */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23e0e0e0%22%20d%3D%22M287%2C197.3L159.1%2C69.5c-3.2-3.2-8.3-3.2-11.5%2C0L5.4%2C197.3c-3.2%2C3.2-3.2%2C8.3%2C0%2C11.5l11.5%2C11.5c3.2%2C3.2%2C8.3%2C3.2%2C11.5%2C0l118.8-118.8l118.8%2C118.8c3.2%2C3.2%2C8.3%2C3.2%2C11.5%2C0l11.5-11.5C290.2%2C205.6%2C290.2%2C200.5%2C287%2C197.3z%22%2F%3E%3C%2Fsvg%3E'); /* Eigener Pfeil für Select */
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 12px;
}

form select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}