body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

#container {
    max-width: 800px;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    color: #2c3e50;
    margin-bottom: 5px;
}

#current-date-display {
    color: #7f8c8d;
    font-size: 1.1em;
    margin-bottom: 20px;
    min-height: 1.2em;
}

/* --- DATE NAVIGATION --- */
.week-container {
    margin-bottom: 20px;
}

.date-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.date-btn {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    width: calc(20% - 10px); 
    min-width: 60px; 
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    box-sizing: border-box;
    position: relative;
}

@media (max-width: 500px) {
    .date-btn { width: calc(33.33% - 10px); }
}

.date-btn:hover:not(.disabled) {
    transform: translateY(-2px);
    border-color: #bbb;
}

.date-btn.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* Disabled State (für geschlossene Tage) */
.date-btn.disabled {
    background-color: #f0f0f0;
    color: #bdc3c7;
    border-color: #eee;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}

.date-btn .day-name { 
    display: block; 
    font-weight: bold; 
    font-size: 0.9em; 
}

.date-btn .day-date { 
    font-size: 0.75em; 
}

/* --- DASHBOARD --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.status-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.status-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    color: #555;
}

.status-value {
    font-size: 2em;
    font-weight: 800;
    display: block;
}

.status-yes { 
    background-color: #d4edda; 
    border: 2px solid #c3e6cb; 
    color: #155724; 
}

.status-no { 
    background-color: #f8d7da; 
    border: 2px solid #f5c6cb; 
    color: #721c24; 
}

.status-loading { 
    background-color: #fff; 
    border: 2px solid #eee; 
    color: #ccc; 
}

/* Loading & Error States */
#loading, #error {
    text-align: center;
    padding: 20px;
    font-size: 1.2em;
    display: none; 
}
#error { color: #e74c3c; }

/* Meal List Styling */
.meal-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    border-left: 6px solid #3498db; 
}

.card-header {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.category {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85em;
    color: #7f8c8d;
}

.card-body { 
    padding: 20px; 
}

.meal-name { 
    font-size: 1.3em; 
    font-weight: 600; 
    margin-bottom: 15px; 
    color: #2c3e50; 
}

.prices { 
    display: flex; 
    gap: 15px; 
    margin-bottom: 15px; 
    font-size: 0.95em; 
}

.price-tag { 
    background-color: #eef2f3; 
    padding: 5px 10px; 
    border-radius: 4px; 
    color: #555; 
}

.price-tag span { 
    font-weight: bold; color: #2980b9; 
}

.notes { 
    display: flex; flex-wrap: wrap; gap: 8px; 
}

.note-badge { 
    font-size: 0.8em; 
    padding: 4px 8px; 
    border-radius: 12px; 
    background-color: #ecf0f1; 
    color: #7f8c8d; 
    border: 1px solid #bdc3c7; 
}

.note-badge.vegan { 
    background-color: #d4edda; 
    color: #155724; 
    border-color: #c3e6cb; 
}

.meal-card.vegan { 
    border-left-color: #2ecc71; 
}

.meal-card.vegetarisch { 
    border-left-color: #f1c40f; 
}

/* Zusätzliche Farbcodierungen für die neuen Kategorien */
.meal-card.beilage {
    border-left-color: #95a5a6; /* Grau für Beilagen */
}

.meal-card.dessert {
    border-left-color: #e84393; /* Pink für Desserts */
}