/* Allgemeine Styles */
.canteen-plan {
    --primary-color: var(--primary-color, #0071e3);
    --text-color: var(--text-color, #1d1d1f);
    --label-color: var(--label-color, #495057);
    --price-color: var(--price-color, #28a745);
    --closed-color: var(--closed-color, #856404);
    --closed-bg-color: var(--closed-bg-color, #fff3cd);
    --border-radius: var(--border-radius, 8px);
    max-width: 1200px;
    margin: 0 auto;
    font-family: var(--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);
    font-size: var(--font-size, 14px);
    color: var(--text-color);
}

.canteen-header {
    text-align: center;
    margin-bottom: 30px;
}

.canteen-header h2 {
    font-size: 1.8em;
    color: #333;
    margin: 0 0 10px;
}

/* Tabellen-Layout */
.menu-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.menu-table th {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: left;
}

.menu-table td {
    padding: 15px;
    border: 1px solid #dee2e6;
    vertical-align: top;
}

/* Tag-Header */
.day-name {
    font-weight: 600;
    font-size: 1.1em;
    color: #333;
    margin-bottom: 5px;
}

.day-date {
    font-size: 0.9em;
    color: #666;
}

/* Menü-Items */
.menu-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.menu-item:last-child {
    border-bottom: none;
}

.dish-name {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.dish-description {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
}

.dish-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

/* Tags und Preise */
.dish-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    background: #e9ecef;
    color: var(--label-color);
}

.price {
    font-weight: 600;
    color: var(--price-color);
}

/* Heute-Ansicht */
.canteen-plan.today {
    max-width: 600px;
}

.today .menu-day {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
}

.today .day-header {
    background: #f8f9fa;
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
}

.today .menu-items {
    padding: 15px;
}

.today .menu-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.today .menu-item:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-table {
        display: block;
        overflow-x: auto;
    }

    .menu-table th,
    .menu-table td {
        min-width: 200px;
    }

    .dish-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .price {
        margin-top: 5px;
    }
}

/* Eigenschaften-Tags */
.dish-tag[data-type="vegetarisch"] {
    background: #d4edda;
    color: #155724;
}

.dish-tag[data-type="vegan"] {
    background: #cce5ff;
    color: #004085;
}

/* "Geschlossen" Styling */
.closed-message {
    text-align: center;
    color: var(--closed-color);
    background-color: var(--closed-bg-color);
    padding: 15px;
    border-radius: 4px;
    margin: 10px 0;
}

/* Stil-Varianten */
.menu-table.style-modern {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius);
    border: none;
}

.menu-table.style-minimal {
    border: none;
    background: transparent;
}

.menu-table.style-classic {
    border: 1px solid #e5e5e5;
    border-collapse: collapse;
}

.menu-table.style-bordered {
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* Gemeinsame Stile */
.menu-table th,
.menu-table td {
    padding: 15px;
}

.style-classic th,
.style-classic td {
    border: 1px solid #e5e5e5;
}

.style-bordered th {
    background: var(--primary-color);
    color: white;
}

.style-bordered td {
    border: 1px solid #e5e5e5;
} 