/* Allgemeine Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f9f9f9;
    color: #333;
}

/* Header */
.header {
    background-color: #9a281d;
    height: 70px; /* Einheitliche Höhe der Kopfzeile */
    box-sizing: border-box;
}

.menu {
    display: flex;
    justify-content: space-between; /* Logo links, Menüpunkte rechts */
    align-items: center; /* Vertikale Zentrierung von Logo und Menüpunkten */
    max-width: 1000px; /* Maximal 1000px breite Inhalte */
    width: 95%; /* Breite bei kleineren Ansichten */
    height: 100%; /* Nimmt die volle Höhe des Headers ein */
    margin: 0 auto; /* Zentriert die Inhalte horizontal */
    padding: 0 15px; /* Zusätzlicher Abstand links und rechts */
    box-sizing: border-box;
}

.title img {
    height: 50px; /* Logo-Höhe */
    width: auto; /* Automatische Breite passend zum Seitenverhältnis */
}

.nav-links {
    list-style: none;
    display: flex; /* Standardmäßig sichtbar bei breiten Ansichten */
    gap: 15px; /* Abstand zwischen Menüpunkten */
    margin: 0;
    padding: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease; /* Animation für das Öffnen/Schließen */
    opacity: 1; /* Standardmäßig sichtbar */
    max-height: none;
}

.nav-links li {
    display: flex;
    align-items: center; /* Zentriert den Text vertikal */
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.nav-links a:hover {
    color: #f2f2f2; /* Leicht hellere Farbe beim Hover */
}

.login-button {
    background-color: #fff;
    color: #9a281d;
    border: none;
    padding: 8px 8px;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
}

.login-button:hover {
    background-color: #f2f2f2;
}

/* Burger Menu */
.burger-menu {
    display: none; /* Wird bei größeren Bildschirmen ausgeblendet */
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .burger-menu {
        display: block; /* Burger-Menü wird eingeblendet */
    }

    .nav-links {
        display: none; /* Standardmäßig ausgeblendet in der mobilen Ansicht */
        flex-direction: column; /* Vertikale Anordnung */
        background-color: #9a281d; /* Hintergrundfarbe */
        position: absolute;
        top: 70px; /* Direkt unter der Menüleiste */
        right: 15px;
        padding: 10px;
        /* width: 200px; */ /* Breite des Menüs */
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); /* Schatten */
        z-index: 10;
    }

    .nav-links.open {
        display: flex; /* Navigation sichtbar */
    }

    .login-button {
        width: 100%; /* Breiter Button */
        text-align: center;
        background-color: #fff;
        color: #9a281d;
        padding: 10px;
        border-radius:5px;
        /* margin: 10px 0; */ /* Abstand zwischen den Links */
    }

    .login-button:hover {
        /* background-color: #f2f2f2; */
    }
}

/* Hauptinhalt */
.main-content {
    padding: 20px 0;
    width: 95%; /* Standardmäßig 95% der Breite */
    max-width: 1000px; /* Begrenzung auf 1000px bei großen Ansichten */
    margin: 0 auto; /* Horizontal zentriert */
}

.main-content h1 {
    color: #9a281d;
    font-size: 28px;
    margin-bottom: 10px;
}

.main-content p {
    font-size: 16px;
    line-height: 1.5;
}

/* Footer */
.footer {
    background-color: #f2f2f2;
    color: #666;
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
}

.footer a {
    color: #9a281d;
    text-decoration: none;
}

/* Formular-Container */
#registrationForm {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    text-align: left; /* Elemente links ausrichten */
}

/* Formular-Elemente */
.form-group {
    margin-bottom: 30px;
}

.form-group label {
    font-size: 20px;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
    color: #333;
}

input, select, input[type="date"] {
    font-size: 16px;
    padding: 10px;
    width: calc(100% - 20px);
    max-width: 500px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

input:focus, select:focus {
    border-color: #9a281d;
    outline: none;
    box-shadow: 0px 0px 6px rgba(154, 40, 29, 0.5);
}

/* Profil anlegen Button */
.submit-button {
    background-color: #9a281d;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 15px 30px;
    font-size: 20px;
    display: block;
    margin: 20px 0; 
    text-align: center;
}

.submit-button:hover {
    background-color: #b43d2d;
}

/* Geschlechtsauswahl */
.gender-slider {
    display: flex;
    justify-content: space-between;
    max-width: 120px; /* Schmalere Breite für Kreise */
    margin: 10px 0;
    gap: 10px; /* Abstand zwischen den Kreisen */
}

.gender-slider input[type="radio"] {
    display: none; /* Versteckt den ursprünglichen Radio-Button */
}

.gender-slider label {
    width: 50px; /* Kreis-Durchmesser */
    height: 50px; /* Kreis-Durchmesser */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #9a281d;
    border-radius: 50%; /* Macht die Elemente rund */
    font-size: 24px; /* Größe der Icons */
    cursor: pointer;
    background-color: #fff;
    color: #9a281d;
    transition: all 0.3s ease;
}

.gender-slider input[type="radio"]:checked + label {
    background-color: #9a281d; /* Farbige Füllung, wenn ausgewählt */
    color: #fff; /* Weiße Schrift/Icon */
}

/* Checkbox als Kreis */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px; /* Abstand zwischen Kreis und Text */
}

.checkbox-group input[type="checkbox"] {
    display: none; /* Versteckt die Standard-Checkbox */
}

.checkbox-group label {
    width: 30px; /* Feste Breite */
    height: 30px; /* Feste Höhe, identisch mit der Breite */
    min-width: 30px; /* Mindestbreite, damit der Kreis nicht zusammengedrückt wird */
    min-height: 30px; /* Mindesthöhe, damit der Kreis nicht zusammengedrückt wird */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #9a281d;
    border-radius: 50%; /* Macht den Kreis rund */
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    position: relative; /* Wichtig für das Positionieren des Symbols */
}

.checkbox-group input[type="checkbox"]:checked + label {
    background-color: #9a281d; /* Roter Hintergrund bei Auswahl */
    color: #fff;
}

.checkbox-group input[type="checkbox"]:checked + label::before {
    content: "\f00c"; /* Haken-Symbol */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 18px; /* Größe des Haken-Symbols */
    color: #fff; /* Weißer Haken */
    position: absolute;
    top: 50%; /* Vertikal zentriert */
    left: 50%; /* Horizontal zentriert */
    transform: translate(-50%, -50%); /* Exakte Zentrierung */
}

/* E-Mail-Warnung */
.email-warning {
    color: #9a281d; /* Rot aus der Farbpalette */
    font-size: 14px;
    margin-top: 5px;
    display: none; /* Standardmäßig ausgeblendet */
}


/*Checklist*/
.checklist-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checklist-box {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    transition: all 0.3s ease-in-out; /* Für die Animation */
}

.checklist-box:hover {
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.checklist-box h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.checklist-box p {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.5;
}

.checklist-box small {
    font-size: 12px;
    color: #555;
}

.checklist-box.fade-out {
    opacity: 0; /* Reduziert die Sichtbarkeit */
    transition: opacity 0.5s ease-out; /* Weiches Ausblenden in 0.5 Sekunden */
    height: auto; /* Höhe bleibt konstant, um kein Hochrutschen zu verursachen */
    pointer-events: none; /* Deaktiviert Interaktionen während des Ausblendens */
}


/* Checkbox als Kreis für Checkliste */
.checklist-checkbox-group {
    align-self: flex-start; /* Vertikal oben ausrichten */
    margin-top: 5px; /* Optional: Leichter Abstand von oben */
    flex-shrink: 0;
    margin-right: 15px; /* Abstand zwischen Checkbox und Text */
}

.checklist-checkbox-group input[type="checkbox"] {
    display: none; /* Versteckt die Standard-Checkbox */
}

.checklist-checkbox-group label {
    width: 30px; /* Feste Breite */
    height: 30px; /* Feste Höhe */
    min-width: 30px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #9a281d;
    border-radius: 50%; /* Macht den Kreis rund */
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    position: relative;
}

.checklist-checkbox-group input[type="checkbox"]:checked + label {
    background-color: #9a281d; /* Roter Hintergrund bei Auswahl */
    color: #fff;
}

.checklist-checkbox-group input[type="checkbox"]:checked + label::before {
    content: "\f00c"; /* Haken-Symbol */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 18px; /* Größe des Haken-Symbols */
    color: #fff; /* Weißer Haken */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checklist-content {
    margin-left: 5px; /* Startet exakt 30px vom linken Rand */
    flex-grow: 1; /* Verwendet den restlichen Platz */
}


/* Container-Box für das Formular */
/* Neue Eltern-Box für das Formular */
.form-box {
    width: 95%; /* Maximal 95% der Bildschirmbreite */
    max-width: 600px; /* Begrenzung der Breite auf 600px */
    margin: 0 auto; /* Zentriert die Box horizontal */
    padding: 20px; /* Innenabstand */
    background-color: #ffffff;
    border-radius: 8px; /* Runde Ecken */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Schatteneffekt */
}

/* Formular innerhalb der neuen Box */
.task-form {
    width: 100%; /* Volle Breite innerhalb der Eltern-Box */
    padding: 0;
    margin: 0;
}

/* Eingabefelder */
.task-form input[type="text"],
.task-form textarea,
.task-form input[type="number"] {
    width: 100%; /* Volle Breite innerhalb der Eltern-Box */
    box-sizing: border-box; /* Padding und Border einbeziehen */
    /* margin-bottom: 15px; */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.5;
}

/* Kurzes Eingabefeld für Tage */
.task-form #tage {
    width: 75px;
    text-align: center;
}

/* Checkbox-Styling */
.task-checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-checkbox-group input[type="checkbox"] {
    display: none;
}

.task-checkbox-group label {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #9a281d;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    position: relative;
}

.task-checkbox-group input[type="checkbox"]:checked + label {
    background-color: #9a281d;
    color: #fff;
}

.task-checkbox-group input[type="checkbox"]:checked + label::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 18px;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.delete-link {
    float: right; /* Rechtsbündig */
    color: #9a281d; /* Rot */
    font-size: 14px;
    text-decoration: none;
    font-weight: normal;
    margin-top: 10px;
    margin-bottom: 10px;
}

.delete-link:hover {
    text-decoration: underline;
    color: #d32f2f; /* Dunklerer Rotton beim Hover */
}
