* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 30%, #f59e0b 70%, #f97316 100%);
    background-attachment: fixed;
    color: rgba(107, 114, 128, 0.95);
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            radial-gradient(circle at 20% 50%, rgba(253, 186, 116, 0.4) 0%, transparent 60%),
            radial-gradient(circle at 80% 20%, rgba(251, 146, 60, 0.3) 0%, transparent 60%),
            radial-gradient(circle at 40% 80%, rgba(245, 158, 11, 0.35) 0%, transparent 60%),
            radial-gradient(circle at 60% 30%, rgba(255, 237, 213, 0.64) 0%, transparent 40%);
    z-index: -3;
    pointer-events: none;
}

#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.05;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px) saturate(200%);
    -webkit-backdrop-filter: blur(15px) saturate(200%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
            0 8px 32px rgba(253, 186, 116, 0.4),
            0 2px 8px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.25);
    overflow: hidden;
}

header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(253, 186, 116, 0.12) 0%, rgba(251, 146, 60, 0.08) 50%, rgba(255, 237, 213, 0.05) 100%);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(253, 186, 116, 0.15);
    z-index: -1;
}

h1, h2, h3, label, .modal-content {
    color: rgba(107, 114, 128, 0.95);
}

button,
input,
select,
textarea {
    font-family: inherit;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    overflow: auto;
    padding: 20px;
}

.modal-content {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(15px) saturate(200%);
    -webkit-backdrop-filter: blur(15px) saturate(200%);
    padding: 24px;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: zoomIn 0.4s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close {
    top: 10px;
    right: 10px;
    font-size: 1.8rem;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
}

.notification {
    font-family: inherit;
    background: rgba(34, 197, 94, 0.9);
}

.notification.error {
    background: rgba(239, 68, 68, 0.9);
}

.notification.show {
    display: block;
}
/* Apple-inspired Design mit Glassmorphismus, optimierten P3-Farben und grauer Schriftfarbe */


/* Fallback für nicht-P3-Geräte */
body {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 30%, #f59e0b 70%, #f97316 100%);
    color: #6b7280;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            radial-gradient(circle at 20% 50%, color(display-p3 0.99 0.73 0.45 / 0.5) 0%, transparent 60%),
            radial-gradient(circle at 80% 20%, color(display-p3 0.98 0.57 0.24 / 0.4) 0%, transparent 60%),
            radial-gradient(circle at 40% 80%, color(display-p3 0.96 0.62 0.04 / 0.45) 0%, transparent 60%),
            radial-gradient(circle at 60% 30%, color(display-p3 1 0.93 0.83 / 0.7) 0%, transparent 40%);
    z-index: -3;
    pointer-events: none;
}

/* Fallback für nicht-P3-Geräte */
body::before {
    background:
            radial-gradient(circle at 20% 50%, rgba(253, 186, 116, 0.4) 0%, transparent 60%),
            radial-gradient(circle at 80% 20%, rgba(251, 146, 60, 0.3) 0%, transparent 60%),
            radial-gradient(circle at 40% 80%, rgba(245, 158, 11, 0.35) 0%, transparent 60%),
            radial-gradient(circle at 60% 30%, rgba(255, 237, 213, 0.64) 0%, transparent 40%);
}

#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.05;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(15px) saturate(200%);
    backdrop-filter: blur(15px) saturate(200%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
            0 8px 32px rgba(253, 186, 116, 0.4),
            0 2px 8px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.25);
    overflow: hidden;
}

header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg,
    color(display-p3 0.99 0.73 0.45 / 0.2) 0%,
    color(display-p3 0.98 0.57 0.24 / 0.15) 50%,
    color(display-p3 1 0.93 0.83 / 0.1) 100%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    backdrop-filter: blur(10px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
}

/* Fallback für nicht-P3-Geräte */
header {
    background: linear-gradient(135deg,
    rgba(253, 186, 116, 0.12) 0%,
    rgba(251, 146, 60, 0.08) 50%,
    rgba(255, 237, 213, 0.05) 100%);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(253, 186, 116, 0.15);
    z-index: -1;
}

h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: color(display-p3 0.42 0.45 0.5 / 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    position: relative;
}

/* Fallback für nicht-P3-Geräte */
h1 {
    color: #6b7280;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: color(display-p3 0.42 0.45 0.5 / 0.95);
    margin-bottom: 20px;
}

/* Fallback */
h2 {
    color: #6b7280;
}

h3 {
    margin-top: 10px;
    font-size: 1.25rem;
    font-weight: 500;
    color: color(display-p3 0.42 0.45 0.5 / 0.95);
    letter-spacing: 0.01em;
}

/* Fallback für nicht-P3-Geräte */
h3 {
    color: #6b7280;
}

.tabs {
    display: flex;
    background: rgba(253, 186, 116, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.tab-button {
    flex: 1;
    padding: 18px 20px;
    background: transparent;
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    position: relative;
    letter-spacing: 0.02em;
}

.tab-button::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, color(display-p3 0.98 0.57 0.24), rgba(255, 237, 213, 0.6));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

/* Fallback */
.tab-button::before {
    background: linear-gradient(90deg, #fb923c, rgba(255, 237, 213, 0.5));
}

.tab-button:hover {
    background: rgba(255, 237, 213, 0.2);
    color: #ffffff;
    transform: translateY(-1px);
}

.tab-button.active {
    background: rgba(255, 237, 213, 0.25);
    color: #ffffff;
    font-weight: 600;
}

.tab-button.active::before {
    width: 60%;
}

.tab-content {
    display: none;
    padding: 24px;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-card {
    background: rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(12px) saturate(200%);
    backdrop-filter: blur(12px) saturate(200%);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
            0 8px 32px rgba(253, 186, 116, 0.3),
            0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-card:hover {
    transform: translateY(-4px);
    box-shadow:
            0 12px 40px rgba(253, 186, 116, 0.4),
            0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-card h2 {
    color: color(display-p3 0.42 0.45 0.5 / 0.95);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

/* Fallback */
.form-card h2 {
    color: #6b7280;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: color(display-p3 0.42 0.45 0.5 / 0.95);
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

/* Fallback */
label {
    color: #6b7280;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    font-size: 0.95rem;
    color: #1f2937;
    transition: all 0.3s ease;
    font-family: inherit;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

input::placeholder,
textarea::placeholder {
    color: rgba(55, 65, 81, 0.7);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: color(display-p3 0.98 0.57 0.24 / 0.8);
    background: rgba(255, 255, 255, 0.2);
    box-shadow:
            0 0 0 3px rgba(251, 146, 60, 0.3),
            0 4px 12px rgba(253, 186, 116, 0.2);
}

/* Fallback */
input:focus,
select:focus,
textarea:focus {
    border-color: rgba(251, 146, 60, 0.7);
}

button,
.submit-btn,
.add-btn,
.filter-btn,
.reset-btn,
.edit-btn,
.delete-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    margin: 6px 6px 6px 0;
    text-align: center;
    font-family: inherit;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.submit-btn,
.filter-btn {
    background: color(display-p3 0.99 0.73 0.45 / 0.95);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
            0 4px 16px rgba(253, 186, 116, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Fallback */
.submit-btn,
.filter-btn {
    background: rgba(253, 186, 116, 0.9);
}

.submit-btn:hover,
.filter-btn:hover {
    background: color(display-p3 0.99 0.73 0.45 / 1);
    transform: translateY(-2px);
    box-shadow:
            0 8px 24px rgba(253, 186, 116, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Fallback */
.submit-btn:hover,
.filter-btn:hover {
    background: rgba(253, 186, 116, 1);
}

.add-btn,
.edit-btn {
    background: color(display-p3 0.98 0.57 0.24 / 0.95);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
            0 4px 16px rgba(251, 146, 60, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Fallback */
.add-btn,
.edit-btn {
    background: rgba(251, 146, 60, 0.9);
}

.add-btn:hover,
.edit-btn:hover {
    background: color(display-p3 0.98 0.57 0.24 / 1);
    transform: translateY(-2px);
    box-shadow:
            0 8px 24px rgba(251, 146, 60, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Fallback */
.add-btn:hover,
.edit-btn:hover {
    background: rgba(251, 146, 60, 1);
}

.reset-btn,
.delete-btn {
    background: color(display-p3 0.94 0.27 0.27 / 0.95);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
            0 4px 16px rgba(239, 68, 68, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Fallback */
.reset-btn,
.delete-btn {
    background: rgba(239, 68, 68, 0.9);
}

.reset-btn:hover,
.delete-btn:hover {
    background: color(display-p3 0.94 0.27 0.27 / 1);
    transform: translateY(-2px);
    box-shadow:
            0 8px 24px rgba(239, 68, 68, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Fallback */
.reset-btn:hover,
.delete-btn:hover {
    background: rgba(239, 68, 68, 1);
}

.plant-grid,
.watering-grid,
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.plant-card,
.watering-card,
.dashboard-card,
.schedule-card {
    background: rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(12px) saturate(200%);
    backdrop-filter: blur(12px) saturate(200%);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
            0 8px 32px rgba(253, 186, 116, 0.3),
            0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plant-card:hover,
.watering-card:hover,
.dashboard-card:hover,
.schedule-card:hover {
    transform: translateY(-4px);
    box-shadow:
            0 12px 40px rgba(253, 186, 116, 0.4),
            0 4px 12px rgba(0, 0, 0, 0.1);
}

.plant-card.gesund {
    border-left: 4px solid color(display-p3 0.13 0.77 0.37);
}

/* Fallback */
.plant-card.gesund {
    border-left: 4px solid #22c55e;
}

.plant-card.warnung {
    border-left: 4px solid color(display-p3 0.92 0.7 0.03);
}

/* Fallback */
.plant-card.warnung {
    border-left: 4px solid #eab308;
}

.plant-card.kritisch,
.dashboard-card.kritisch {
    border-left: 4px solid color(display-p3 0.94 0.27 0.27);
}

/* Fallback */
.plant-card.kritisch,
.dashboard-card.kritisch {
    border-left: 4px solid #ef4444;
}

.dashboard-card.gesund {
    border-left: 4px solid color(display-p3 0.13 0.77 0.37);
}

/* Fallback */
.dashboard-card.gesund {
    border-left: 4px solid #22c55e;
}

.dashboard-card.warnung {
    border-left: 4px solid color(display-p3 0.92 0.7 0.03);
}

/* Fallback */
.dashboard-card.warnung {
    border-left: 4px solid #eab308;
}

.card-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.watering-image img {
    max-width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.watering-image img:hover {
    transform: scale(1.05);
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-container .form-group {
    flex: 1;
    min-width: 200px;
}

.chart-box {
    background: rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(12px) saturate(200%);
    backdrop-filter: blur(12px) saturate(200%);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
            0 8px 32px rgba(253, 186, 116, 0.3),
            0 2px 8px rgba(0, 0, 0, 0.05);
}

.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow: auto;
    padding: 20px;
}

.modal-content {
    background: rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(15px) saturate(200%);
    backdrop-filter: blur(15px) saturate(200%);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
            0 8px 32px rgba(253, 186, 116, 0.4),
            0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    color: color(display-p3 0.42 0.45 0.5 / 0.95);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Fallback */
.modal-content {
    color: #6b7280;
}

.modal-content h2,
.modal-content h3 {
    color: color(display-p3 0.42 0.45 0.5 / 0.95);
    margin-bottom: 20px;
}

/* Fallback */
.modal-content h2,
.modal-content h3 {
    color: #6b7280;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.8rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close:hover {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
}

#modalImage {
    max-width: 100%;
    border-radius: 8px;
}

.image-preview img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 10px;
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.3s ease;
}

.notification.success {
    background: color(display-p3 0.13 0.77 0.37 / 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* Fallback */
.notification.success {
    background: rgba(34, 197, 94, 0.9);
}

.notification.error {
    background: color(display-p3 0.94 0.27 0.27 / 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* Fallback */
.notification.error {
    background: rgba(239, 68, 68, 0.9);
}

.notification.show {
    display: block;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

th,
td {
    padding: 15px;
    text-align: left;
    color: color(display-p3 0.42 0.45 0.5 / 0.95);
    font-size: 0.95rem;
}

/* Fallback */
th,
td {
    color: #6b7280;
}

th {
    background: rgba(253, 186, 116, 0.25);
    font-weight: 600;
}

td {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

tr:hover {
    background: rgba(255, 237, 213, 0.15);
}

.fertilizer-entry {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.fertilizer-list {
    list-style-type: none;
    padding: 0;
    margin: 12px 0;
}

.fertilizer-list li {
    padding: 15px 0;
    font-size: 0.95rem;
    color: color(display-p3 0.42 0.45 0.5 / 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Fallback */
.fertilizer-list li {
    color: #6b7280;
}

.fertilizer-list li:last-child {
    border-bottom: none;
}

.days-remaining {
    color: color(display-p3 0.92 0.7 0.03 / 0.95);
    font-weight: 500;
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Fallback */
.days-remaining {
    color: rgba(234, 179, 8, 0.95);
}

.water-only-warning {
    color: color(display-p3 0.94 0.27 0.27 / 0.95);
    font-weight: 500;
    margin-top: 10px;
    background: rgba(239, 68, 68, 0.25);
    padding: 10px;
    border-radius: 8px;
}

/* Fallback */
.water-only-warning {
    color: rgba(239, 68, 68, 0.95);
}

#globalWaterWarning {
    background: rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: color(display-p3 0.42 0.45 0.5 / 0.95);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Fallback */
#globalWaterWarning {
    color: #6b7280;
}

#globalWaterWarning.water-only-warning {
    border-left: 4px solid color(display-p3 0.94 0.27 0.27);
    background: rgba(239, 68, 68, 0.25);
}

/* Fallback */
#globalWaterWarning.water-only-warning {
    border-left: 4px solid #ef4444;
}

#globalWaterWarning.days-remaining {
    border-left: 4px solid color(display-p3 0.92 0.7 0.03);
    background: rgba(234, 179, 8, 0.25);
}

/* Fallback */
#globalWaterWarning.days-remaining {
    border-left: 4px solid #eab308;
}

.harvest-info {
    color: color(display-p3 0.13 0.77 0.37 / 0.95);
    font-weight: 500;
    margin-top: 10px;
}

/* Fallback */
.harvest-info {
    color: rgba(34, 197, 94, 0.95);
}

.drying-info {
    color: color(display-p3 0.23 0.51 0.96 / 0.95);
    font-weight: 500;
    margin-top: 10px;
}

/* Fallback */
.drying-info {
    color: rgba(59, 130, 246, 0.95);
}

.drying-complete {
    color: color(display-p3 0.42 0.45 0.5 / 0.95);
    font-weight: 500;
    margin-top: 10px;
    background: rgba(107, 114, 128, 0.25);
    padding: 8px;
    border-radius: 8px;
}

/* Fallback */
.drying-complete {
    color: rgba(107, 114, 128, 0.95);
}

.drying-end {
    color: color(display-p3 0.42 0.45 0.5 / 0.95);
    font-weight: 500;
    margin-top: 8px;
}

/* Fallback */
.drying-end {
    color: #6b7280;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.form-card:nth-child(odd) {
    animation: float 12s ease-in-out infinite;
}

.form-card:nth-child(even) {
    animation: float 12s ease-in-out infinite reverse;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
        border-radius: 12px;
    }

    header {
        padding: 20px 10px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .tabs {
        flex-direction: column;
        position: relative;
    }

    .tab-button {
        padding: 12px;
        font-size: 0.95rem;
    }

    .form-card,
    .plant-card,
    .watering-card,
    .dashboard-card,
    .schedule-card {
        padding: 20px;
        min-height: auto;
    }

    .plant-grid,
    .watering-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .filter-container .form-group {
        flex: 100%;
        min-width: 100%;
    }

    .fertilizer-entry {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    input,
    select,
    textarea {
        padding: 10px;
        font-size: 0.9rem;
    }

    button,
    .submit-btn,
    .add-btn,
    .filter-btn,
    .reset-btn,
    .edit-btn,
    .delete-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .form-card h2 {
        font-size: 1.3rem;
    }

    th,
    td {
        padding: 10px;
        font-size: 0.85rem;
    }

    .fertilizer-list li {
        font-size: 0.85rem;
        padding: 10px 0;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, color(display-p3 0.15 0.15 0.15) 0%, color(display-p3 0.12 0.12 0.12) 100%);
        color: color(display-p3 0.8 0.8 0.8);
    }
}
/* Anpassung der plant-card für bessere Inhaltskontrolle */
.plant-card {
    background: rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(12px) saturate(200%);
    backdrop-filter: blur(12px) saturate(200%);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
            0 8px 32px rgba(253, 186, 116, 0.3),
            0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden; /* Verhindert, dass Inhalte über die Kante hinausgehen */
    max-height: 100%; /* Begrenzt die maximale Höhe */
}

/* Optimierung der Button-Gruppe */
.card-actions {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap; /* Buttons umbrechen, wenn kein Platz */
    gap: 8px; /* Reduzierter Abstand für mehr Platz */
    justify-content: flex-start; /* Links ausrichten */
    padding-top: 10px; /* Kleiner Abstand oben */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Visuelle Trennung */
}

/* Anpassung der Buttons für kompakteres Design */
.edit-btn,
.delete-btn {
    padding: 8px 12px; /* Kompakteres Padding */
    font-size: 0.9rem; /* Kleinere Schrift */
    min-width: auto; /* Flexibelere Breite */
    border-radius: 8px; /* Sanftere Ecken */
    white-space: nowrap; /* Verhindert Textumbruch */
    flex-shrink: 0; /* Verhindert, dass Buttons schrumpfen */
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .plant-card {
        padding: 15px;
        min-height: auto; /* Flexiblere Höhe */
    }

    .card-actions {
        flex-direction: column; /* Buttons untereinander */
        gap: 6px; /* Noch kleinerer Abstand */
        padding-top: 8px;
    }

    .edit-btn,
    .delete-btn {
        padding: 6px 10px; /* Noch kompakter */
        font-size: 0.85rem;
        width: 100%; /* Volle Breite auf kleinen Geräten */
    }
}

@media (max-width: 480px) {
    .plant-card {
        padding: 10px;
    }

    .card-actions {
        gap: 4px;
        padding-top: 6px;
    }

    .edit-btn,
    .delete-btn {
        padding: 5px 8px;
        font-size: 0.8rem;
    }
}