/* assets/css/tabs/nutrients.css */

.nutrient-card {
    border-top-color: var(--primary-dark) !important;
    display: flex;
    flex-direction: column;
}

/* Kopfbereich (Manufacturer & Name) */
.nut-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 10px;
}

.nut-titles h4 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--primary-dark);
}

.nut-manufacturer {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
    color: #888;
    letter-spacing: 1px;
}

.nut-badges {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
}

/* Spezifische Nährstoff Tags */
.nut-tag-organic { background: #e8f4ec; color: #2d6642; border: 1px solid #c3e6cb; }
.nut-tag-mineral { background: #e2e8f0; color: #4a5568; border: 1px solid #cbd5e0; }
.nut-tag-mixed { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.tag-type { background: #f1f1f1; color: #555; }

/* Uniformierter Nährstoff-Datenblock */
.nut-micros-section {
    margin-top: auto; /* Schiebt die Box immer an den unteren Rand der Karte */
    background: #fcfdfd;
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Abstand zwischen den Gruppen (Makro, Mikro, Zusätze) */
}

.micro-group strong {
    display: block;
    font-size: 0.75rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* Die kleinen Daten-Pillen */
.micro-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.micro-tag {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #555;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.micro-tag b {
    color: var(--primary-dark);
    margin-left: 4px;
    font-size: 0.85rem;
}

/* --- DÜNGE-SCHEMA TABELLE --- */
.schedule-table tbody tr:hover {
    background-color: #fcfdfd;
}

@media (max-width: 768px) {
    .schedule-table, .schedule-table tbody, .schedule-table tr, .schedule-table td, .schedule-table th {
        display: block;
        width: 100%;
    }
    
    .schedule-table thead {
        display: none; /* Versteckt den Tabellenkopf auf kleinen Bildschirmen */
    }
    
    .schedule-table tr {
        border-bottom: 2px solid var(--primary-light);
        margin-bottom: 10px;
    }
    
    .schedule-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px !important;
        border: none !important;
    }
    
    /* Fügt pseudo-labels auf Handys hinzu */
    .schedule-table td:nth-child(3)::before { content: "Basis (1L): "; font-weight: bold; color: #888; }
    .schedule-table td:nth-child(4)::before { content: "Berechnet: "; font-weight: bold; color: var(--primary-dark); }
}

/* --- DÜNGE-SCHEMA TABELLE --- */
.schedule-table tbody tr:hover {
    background-color: #fcfdfd;
}

@media (max-width: 900px) {
    .schedule-table, .schedule-table tbody, .schedule-table tr, .schedule-table td, .schedule-table th {
        display: block;
        width: 100%;
    }
    
    .schedule-table thead {
        display: none; 
    }
    
    .schedule-table tr {
        border-bottom: 3px solid var(--primary-light) !important;
        margin-bottom: 15px;
    }
    
    .schedule-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 15px !important;
        border: none !important;
    }
    
    /* Mobile Pseudo-Labels für die neuen Spalten */
    .schedule-table td:nth-child(2)::before { content: "Typ: "; font-weight: bold; color: #888; font-size: 0.8rem; }
    .schedule-table td:nth-child(3)::before { content: "Nährstoffe: "; font-weight: bold; color: #888; font-size: 0.8rem; }
    .schedule-table td:nth-child(4)::before { content: "Start: "; font-weight: bold; color: #888; font-size: 0.8rem; }
    .schedule-table td:nth-child(5)::before { content: "Basis (1L): "; font-weight: bold; color: #888; font-size: 0.8rem; }
    .schedule-table td:nth-child(6)::before { content: "Berechnet: "; font-weight: bold; color: var(--primary-dark); font-size: 0.9rem; }
}

.val-text {
    min-width: 45px;
    text-align: right;
}

@media (max-width: 768px) {
    .analysis-grid {
        grid-template-columns: 1fr !important;
    }
}