/* Basis-Stile für die gesamte Seite */
body {
    background-color: #333; /* Dunkler Hintergrund */
    color: #fff; /* Heller Text */
    font-family: Arial, sans-serif; /* Schriftart */
    margin: 0;
    padding: 0;
}

/* Container für allgemeine Layouts */
.container1 {
    background: #444; /* Einheitlicher Hintergrund */
    padding: 20px;
    border-radius: 8px; /* Abgerundete Ecken */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Schatten für Tiefe */
    margin: 20px auto; /* Zentrierte Box */
    width: 80%; /* Breite auf 50% */
    max-width: 1200px; /* Maximalbreite */
}

.container {
    width: 80%; /* Breite der Container */
    margin: auto;
    padding: 20px;
    overflow: hidden;
}

/* Header-Stile */
.header {
    padding: 20px;
    background: #444; /* Dunkler Hintergrund für Header */
    color: #fff; /* Heller Text */
    text-align: center;
}

/* Stile für die Pflanzenliste */
.plant-list {
    background: #444; /* Einheitlicher Hintergrund */
    padding: 20px;
    border-radius: 8px; /* Abgerundete Ecken */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Schatten für Tiefe */
    margin: 20px auto; /* Zentrierte Box */
    width: 80%; /* Breite auf 50% */
    max-width: 1200px; /* Maximalbreite */
}

        .new-plant-form {
            margin: 20px auto;
            padding: 20px;
            border: 1px solid #ccc;
            display: none; /* Standardmäßig verstecken */
            max-width: 600px; /* Maximale Breite des Formulars */
            background-color: #333; /* Hintergrundfarbe für dunkles Design */
            color: #fff; /* Textfarbe für dunkles Design */
            border-radius: 8px; /* Abrundung der Ecken */
        }

        .new-plant-form input[type="text"],
        .new-plant-form input[type="date"],
        .new-plant-form input[type="number"],
        .new-plant-form input[type="submit"],
        .new-plant-form input[type="button"] {
            width: 100%; /* Volle Breite der Eingabefelder */
            margin-bottom: 10px; /* Abstand zwischen den Feldern */
            padding: 8px; /* Innenabstand für bessere Benutzererfahrung */
        }

        .new-plant-form input[type="submit"] {
            background-color: #4CAF50; /* Hintergrundfarbe für den Submit-Button */
            color: white; /* Textfarbe des Submit-Buttons */
            border: none; /* Keine Rahmen für den Submit-Button */
            cursor: pointer; /* Zeiger beim Überfahren des Buttons */
        }

        .new-plant-form input[type="submit"]:hover {
            background-color: #45a049; /* Dunklere Hintergrundfarbe beim Hover-Effekt */
        }

        .new-plant-form input[type="button"] {
            background-color: #f44336; /* Hintergrundfarbe für den Abbrechen-Button */
            color: white; /* Textfarbe des Abbrechen-Buttons */
            border: none; /* Keine Rahmen für den Abbrechen-Button */
            cursor: pointer; /* Zeiger beim Überfahren des Buttons */
        }

        .new-plant-form input[type="button"]:hover {
            background-color: #e53935; /* Dunklere Hintergrundfarbe beim Hover-Effekt */
        }

/* Stil für die Überschriften */
.plant-list h2, .new-plant-form h2 {
    text-align: center;
    color: #fff; /* Heller Text */
}

/* Stile für die Pflanzenliste Tabelle */
.plant-list table {
    width: 100%; /* Volle Breite der Tabelle */
    border-collapse: collapse; /* Keine Zwischenräume */
}

.plant-list th, .plant-list td {
    border: 1px solid #555; /* Rahmen für Zellen */
    padding: 10px; /* Innenabstand */
    text-align: center; /* Zentrierter Text */
}

.plant-list th {
    background: #555; /* Hintergrund für Kopfzeilen */
}

.plant-list tr:nth-child(even) {
    background: #444; /* Hintergrund für gerade Zeilen */
}

.plant-list tr:nth-child(odd) {
    background: #333; /* Hintergrund für ungerade Zeilen */
}

.plant-list a {
    color: #1e90ff; /* Linkfarbe */
    text-decoration: none;
}

.plant-list a:hover {
    text-decoration: underline; /* Unterstreichung bei Hover */
}

/* Stile für Nachrichten */
.message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    width: 80%;
    max-width: 600px;
    margin: 20px auto;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Stile für den Zurück-Button */
.back-button {
    display: block;
    width: 150px;
    margin: 20px auto;
    padding: 10px;
    text-align: center;
    background: #1e90ff; /* Hintergrundfarbe für Button */
    color: #fff; /* Textfarbe */
    border: none;
    border-radius: 4px; /* Abgerundete Ecken */
    cursor: pointer;
    text-decoration: none;
}

.back-button:hover {
    background: #1c86ee; /* Dunklerer Hintergrund beim Hover */
}

/* Stile für Formularfelder */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #fff;
}

.form-group input {
    width: calc(100% - 22px); /* Breite der Eingabefelder */
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #555; /* Rahmen für Eingabefelder */
    border-radius: 4px; /* Abgerundete Ecken */
    background: #333; /* Hintergrundfarbe für Eingabefelder */
    color: #fff; /* Textfarbe */
}

.form-group input[type="submit"] {
    background: #1e90ff;
    cursor: pointer;
}

.form-group input[type="submit"]:hover {
    background: #1c86ee;
}


body {
    background-color: #333; /* Dunkler Hintergrund */
    color: #fff; /* Heller Text */
    font-family: Arial, sans-serif; /* Schriftart */
    margin: 0;
    padding: 0;
}

.container {
    width: 80%; /* Breite der Container */
    margin: auto;
    padding: 20px;
    overflow: hidden;
}

.header {
    padding: 20px;
    background: #444; /* Dunkler Hintergrund für Header */
    color: #fff; /* Heller Text */
    text-align: center;
}

.data-container {
    background: #444; /* Einheitlicher Hintergrund */
    padding: 20px;
    border-radius: 8px; /* Abgerundete Ecken */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Schatten für Tiefe */
    margin: 20px auto; /* Zentrierte Box */
    width: 80%; /* Breite auf 50% */
    max-width: 1200px; /* Maximalbreite */
}

.form-container {
    border: 1px solid #ccc;
    background: #444; /* Einheitlicher Hintergrund */
    padding: 20px;
    border-radius: 8px; /* Abgerundete Ecken */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Schatten für Tiefe */
    margin: 20px auto; /* Zentrierte Box */
    width: 30%; /* Breite auf 50% */
    max-width: 600px; /* Maximalbreite */
}

.form-container1 {
    background: #444; /* Einheitlicher Hintergrund */
    padding: 20px;
    border-radius: 8px; /* Abgerundete Ecken */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Schatten für Tiefe */
    margin: 20px auto; /* Zentrierte Box */
    width: 80%; /* Breite auf 50% */
    max-width: 1200px; /* Maximalbreite */
}

.data-container h2, .form-container h2 {
    text-align: center;
}

.data-container table, .form-container table {
    width: 100%; /* Volle Breite der Tabelle */
    border-collapse: collapse; /* Keine Zwischenräume */
}

.data-container th, .data-container td, .form-container th, .form-container td {
    border: 1px solid #555; /* Rahmen für Zellen */
    padding: 10px; /* Innenabstand */
    text-align: center; /* Zentrierter Text */
}

.data-container th, .form-container th {
    background: #555; /* Hintergrund für Kopfzeilen */
}

.data-container tr:nth-child(even), .form-container tr:nth-child(even) {
    background: #444; /* Hintergrund für gerade Zeilen */
}

.data-container tr:nth-child(odd), .form-container tr:nth-child(odd) {
    background: #333; /* Hintergrund für ungerade Zeilen */
}

.data-container a, .form-container a {
    color: #1e90ff; /* Linkfarbe */
    text-decoration: none;
}

.data-container a:hover, .form-container a:hover {
    text-decoration: underline; /* Unterstreichung bei Hover */
}

.form-container input[type="date"],
.form-container input[type="number"],
.form-container textarea,
.form-container input[type="submit"] {
    width: calc(100% - 22px); /* Breite der Eingabefelder */
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #555; /* Rahmen für Eingabefelder */
    border-radius: 4px; /* Abgerundete Ecken */
    background: #333; /* Hintergrundfarbe für Eingabefelder */
    color: #fff; /* Textfarbe */
}

.form-container input[type="submit"] {
    background: #1e90ff; /* Hintergrundfarbe für Button */
    border: none;
    cursor: pointer;
}

.form-container input[type="submit"]:hover {
    background: #1c86ee; /* Dunklerer Hintergrund beim Hover */
}

.success {
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    width: 80%;
    max-width: 600px;
    margin: 20px auto;
    background-color: #d4edda;
    color: #155724;
}

.error {
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    width: 80%;
    max-width: 600px;
    margin: 20px auto;
    background-color: #f8d7da;
    color: #721c24;
}

.back-button {
    display: block;
    width: 150px;
    margin: 20px auto;
    padding: 10px;
    text-align: center;
    background: #1e90ff; /* Hintergrundfarbe für Button */
    color: #fff; /* Textfarbe */
    border: none;
    border-radius: 4px; /* Abgerundete Ecken */
    cursor: pointer;
    text-decoration: none;
}

.back-button:hover {
    background: #1c86ee; /* Dunklerer Hintergrund beim Hover */
}
        /* Füge diese CSS-Regeln zu deiner style.css hinzu */
        .new-plant-form {
            background: #444; /* Einheitlicher Hintergrund */
            padding: 20px;
            border-radius: 8px; /* Abgerundete Ecken */
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Schatten für Tiefe */
            margin: 20px auto; /* Zentrierte Box */
            width: 80%; /* Breite auf 80% */
            max-width: 600px; /* Maximalbreite */
            display: none; /* Anfangs versteckt */
        }

        .toggle-form-button {
            background: #1e90ff; /* Hintergrundfarbe für Button */
            color: #fff; /* Textfarbe */
            border: none;
            border-radius: 4px; /* Abgerundete Ecken */
            cursor: pointer;
            padding: 10px 20px;
            margin: 20px auto;
            display: block;
            text-align: center;
        }

        .toggle-form-button:hover {
            background: #1c86ee; /* Dunklerer Hintergrund beim Hover */
        }
                /* Füge diese CSS-Regeln zu deiner style.css hinzu */
                .form-container {
                    background: #444; /* Einheitlicher Hintergrund */
                    padding: 20px;
                    border-radius: 8px; /* Abgerundete Ecken */
                    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Schatten für Tiefe */
                    margin: 20px auto; /* Zentrierte Box */
                    width: 80%; /* Breite auf 80% */
                    max-width: 600px; /* Maximalbreite */
                    display: none; /* Anfangs versteckt */
                }
        
                .toggle-form-button {
                    background: #1e90ff; /* Hintergrundfarbe für Button */
                    color: #fff; /* Textfarbe */
                    border: none;
                    border-radius: 4px; /* Abgerundete Ecken */
                    cursor: pointer;
                    padding: 10px 20px;
                    margin: 20px auto;
                    display: block;
                    text-align: center;
                }
        
                .toggle-form-button:hover {
                    background: #1c86ee; /* Dunklerer Hintergrund beim Hover */
                }
                /* Toolbar */
/* Toolbar */
.toolbar {
    margin-top: 20px;
    background-color: #444; /* Dunkler Hintergrund passend zur Seite */
    color: #fff; /* Heller Text */
    padding: 15px;
    border-radius: 8px; /* Abgerundete Ecken */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Schatten für Tiefe */
    text-align: center;
}

/* Links in der Toolbar */
.toolbar-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.toolbar-link {
    color: #1e90ff; /* Linkfarbe passend zu anderen Links */
    text-decoration: none;
    font-size: 18px;
}

.toolbar-link:hover {
    text-decoration: underline; /* Unterstreichung bei Hover */
}
.toolbar-link {
    cursor: pointer;
    font-size: 18px;
    color: #1e90ff;
    text-decoration: none;
}

.toolbar-link:hover {
    text-decoration: underline;
}

.fade-out {
    opacity: 1;
    transition: opacity 1s ease-out;
}

.fade-out.hidden {
    opacity: 0;
}
.form-group input[type="button"] {
    background-color: #f44336; /* Hintergrundfarbe für den Abbrechen-Button */
    color: white; /* Textfarbe des Abbrechen-Buttons */
    border: none; /* Keine Rahmen für den Abbrechen-Button */
    cursor: pointer; /* Zeiger beim Überfahren des Buttons */
}

.form-group input[type="button"]:hover {
    background-color: #e53935; /* Dunklere Hintergrundfarbe beim Hover-Effekt */
}

/* Stile für Benachrichtigungen */
.notification {
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    width: 80%;
    max-width: 600px;
    margin: 20px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
	background-color: #f8d7da;
	color: #721c24;
}

.notification-text {
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #721c24;
    margin-left: 15px;
	background-color: #f8d7da;
}

/* Stile für fällige Erinnerungen */
.due-reminder {
        background-color: #f8d7da;
    color: #f8d7da; /* Rote Farbe für fällige Erinnerungen */
}
.registration-wrapper {
    background: #333; /* Hintergrundfarbe für das Registrierung-Wrapper */
    padding: 20px;
    border-radius: 8px; /* Abgerundete Ecken */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); /* Schatten für Tiefe */
    width: 100%;
    max-width: 400px; /* Maximalbreite */
    text-align: center; /* Zentrierter Text */
}

.registration-header h1 {
    color: #fff; /* Heller Text für die Header */
    margin-bottom: 20px; /* Abstand zum Formular */
}

.registration-form-container {
    background: #444; /* Hintergrundfarbe für das Formular */
    padding: 20px;
    border-radius: 8px; /* Abgerundete Ecken */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* Schatten für Tiefe */
}

.registration-form input[type="text"],
.registration-form input[type="email"],
.registration-form input[type="password"],
.registration-form button {
    width: calc(100% - 22px); /* Volle Breite der Eingabefelder */
    margin-bottom: 10px; /* Abstand zwischen den Feldern */
    padding: 10px; /* Innenabstand für bessere Benutzererfahrung */
    border: 1px solid #555; /* Rahmen für Eingabefelder */
    border-radius: 4px; /* Abgerundete Ecken */
    background: #333; /* Hintergrundfarbe für Eingabefelder */
    color: #fff; /* Textfarbe */
}

.registration-form button {
    background: #1e90ff; /* Hintergrundfarbe für Button */
    color: #fff; /* Textfarbe */
    border: none; /* Keine Rahmen für den Button */
    cursor: pointer; /* Zeiger beim Überfahren des Buttons */
}

.registration-form button:hover {
    background: #1c86ee; /* Dunklerer Hintergrund beim Hover */
}

.login-link {
    margin-top: 15px;
    color: #fff; /* Heller Text */
}

.login-link a {
    color: #1e90ff; /* Linkfarbe */
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline; /* Unterstreichung bei Hover */
}
/* Allgemeine Container-Stile */
.container2 {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #333; /* Dunkler Hintergrund für die Seite */

	width: 80%; /* Breite der Container */
    margin: auto;
    padding: 20px;
    overflow: hidden;
}

.login-wrapper, .profile-wrapper, .goodbye-message-wrapper, .delete-account-wrapper, .password-reset-wrapper {
    background: #333; /* Hintergrundfarbe für das Login-Wrapper */
    padding: 20px;
    border-radius: 8px; /* Abgerundete Ecken */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); /* Schatten für Tiefe */
    width: 100%;
    max-width: 400px; /* Maximalbreite */
    text-align: center; /* Zentrierter Text */
}

.login-header, .profile-header, .delete-account-header, .goodbye-message, .password-reset-header h1 {
    color: #fff; /* Heller Text für die Header */
    margin-bottom: 20px; /* Abstand zum Formular */
}

.login-form-container, .profile-form-container {
    background: #444; /* Hintergrundfarbe für das Formular */
    padding: 20px;
    border-radius: 8px; /* Abgerundete Ecken */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* Schatten für Tiefe */
}

.login-form input[type="text"],
.login-form input[type="email"],
.login-form input[type="password"],
.login-form button {
    width: calc(100% - 22px); /* Volle Breite der Eingabefelder */
    margin-bottom: 10px; /* Abstand zwischen den Feldern */
    padding: 10px; /* Innenabstand für bessere Benutzererfahrung */
    border: 1px solid #555; /* Rahmen für Eingabefelder */
    border-radius: 4px; /* Abgerundete Ecken */
    background: #333; /* Hintergrundfarbe für Eingabefelder */
    color: #fff; /* Textfarbe */
}

.login-form button {
    background: #1e90ff; /* Hintergrundfarbe für Button */
    color: #fff; /* Textfarbe */
    border: none; /* Keine Rahmen für den Button */
    cursor: pointer; /* Zeiger beim Überfahren des Buttons */
}

.login-form button:hover {
    background: #1c86ee; /* Dunklerer Hintergrund beim Hover */
}

.register-link {
    margin-top: 15px;
    color: #fff; /* Heller Text */
}

.register-link a {
    color: #1e90ff; /* Linkfarbe */
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline; /* Unterstreichung bei Hover */
}
.info-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem; /* Abstand zwischen den Items */
}

.info-item {
    display: flex;
    align-items: center;
    font-size: 1rem; /* Schriftgröße der Info-Items */
}

.info-divider {
    margin: 0 1rem; /* Abstand um den Trennstrich herum */
}


.harvest-message {
    margin-top: 10px;
    font-size: 1rem;
    color: rgb(30, 144, 255); /* Oder jede andere Farbe */
}
.snowflake {
    position: absolute;
    top: -50px;
    color: green;
    font-size: 1.5rem;
    user-select: none;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.9;
    animation: fall linear;
}

@keyframes fall {
    0% { transform: translateY(-100vh); }
    100% { transform: translateY(100vh); }
}

/* Randomized animation duration */
.snowflake:nth-child(1) { animation-duration: 10s; }
.snowflake:nth-child(2) { animation-duration: 12s; }
.snowflake:nth-child(3) { animation-duration: 14s; }
.snowflake:nth-child(4) { animation-duration: 16s; }
.snowflake:nth-child(5) { animation-duration: 18s; }

.year-separator {
    background-color: #f0f0f0;
    font-weight: bold;
    text-align: center;
}

/* Media queries for mobile responsiveness */
@media screen and (max-width: 768px) {
  .container, .container1, .data-container, .form-container, .form-container1, .plant-list {
    width: 95%;
    padding: 10px;
  }

  .header {
    padding: 10px;
  }

  .plant-list table, .data-container table, .form-container table {
    font-size: 14px;
  }

  .plant-list th, .plant-list td, .data-container th, .data-container td, .form-container th, .form-container td {
    padding: 5px;
  }

  .form-group input, .form-container input[type="date"],
  .form-container input[type="number"],
  .form-container textarea,
  .form-container input[type="submit"] {
    width: calc(100% - 10px);
    padding: 8px;
  }

  .back-button {
    width: 100%;
    max-width: 200px;
  }

  .toolbar-links {
    flex-direction: column;
    gap: 10px;
  }

  .toolbar-link {
    font-size: 16px;
  }

  .notification {
    width: 95%;
    padding: 10px;
  }

  .registration-wrapper, .login-wrapper, .profile-wrapper, .goodbye-message-wrapper, .delete-account-wrapper, .password-reset-wrapper {
    width: 95%;
    padding: 15px;
  }

  .info-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-item {
    font-size: 0.9rem;
  }

  .info-divider {
    display: none;
  }

  .harvest-message {
    font-size: 0.9rem;
  }

  .snowflake {
    font-size: 1rem;
  }
}

/* Additional mobile-specific styles */
@media screen and (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .plant-list table, .data-container table, .form-container table {
    font-size: 12px;
  }

  .form-group label {
    font-size: 14px;
  }

  .toggle-form-button {
    font-size: 14px;
    padding: 8px 16px;
  }

  .notification-close {
    font-size: 16px;
  }
}

/* Anpassungen für die Pflanzentabelle */
@media screen and (max-width: 768px) {
  .plant-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .plant-list table {
    font-size: 12px;
    width: 100%;
    table-layout: fixed;
  }

  .plant-list th, .plant-list td {
    padding: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100px;
  }

  /* Reduziere die Breite aller Spalten gleichmäßig */
  .plant-list th,
  .plant-list td {
    font-size: 11px;
  }

  /* Mache die erste Spalte (Name) etwas breiter */
  .plant-list th:first-child,
  .plant-list td:first-child {
    max-width: 80px;
  }
}

/* Noch kleinere Anpassungen für sehr kleine Bildschirme */
@media screen and (max-width: 480px) {
  .plant-list table {
    font-size: 10px;
  }

  .plant-list th, .plant-list td {
    padding: 2px;
    max-width: 60px;
  }

  .plant-list th:first-child,
  .plant-list td:first-child {
    max-width: 70px;
  }
}

/* Zusätzliche Styles für bessere Lesbarkeit */
.plant-list th {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plant-list td {
  white-space: normal;
}
