* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
}

header {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Ermöglicht Umbruch auf kleinen Bildschirmen */
    gap: 15px; /* Abstand zwischen Elementen im Header */
}

h1 {
    color: #667eea;
    font-size: 2.5rem;
    margin-bottom: 0; /* Entfernt unteren Margin, da Gap verwendet wird */
}

nav {
    display: flex;
    gap: 10px; /* Reduzierter Abstand für mehr Tabs */
    align-items: center;
    flex-wrap: wrap; /* Ermöglicht Umbruch der Buttons */
    justify-content: center; /* Zentriert Buttons, wenn sie umbrechen */
}

.tab-btn {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    padding: 8px 15px; /* Etwas kleinere Polsterung */
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem; /* Etwas kleinere Schriftgröße */
}

.tab-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    background: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #c82333;
}

/* Small button variant for calendar recipes */
.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 18px;
}


/* Views */
.view {
    display: none;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Header für Views (für verschobenen Button & neue Titel) */
.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.view-header h2 {
    color: #667eea;
    margin: 0;
}

/* Vorschläge-Karte */
.vorschlag-karte {
    background: linear-gradient(135deg, #f0f2f5, #e6e9ed); /* Etwas anderer Hintergrund */
    border-radius: 15px;
    padding: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vorschlag-karte:hover {
    border-color: #764ba2; /* Andere Akzentfarbe */
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(118, 75, 162, 0.2);
}

.vorschlag-karte h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.vorschlag-person {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}

/* Anpassung für Formulare mit Labels (Vorschlag-Modal) */
#vorschlag-modal form {
    gap: 10px; /* Weniger Abstand im kompakteren Modal */
}
#vorschlag-modal label {
    font-weight: bold;
    color: #555;
    margin-top: 10px;
    display: block;
}

.view.active {
    display: block;
}

/* Suche und Filter */
.search-bar {
    margin-bottom: 20px;
}

.search-bar input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-bar input:focus {
    border-color: #667eea;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Rezepte Grid */
.rezepte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Angepasst für bessere Responsivität */
    gap: 20px;
}

.rezept-karte {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex; /* Für bessere Button-Positionierung */
    flex-direction: column;
    justify-content: space-between;
}

.rezept-karte:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

.rezept-karte h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.rezept-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.kategorie {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.dauer, .portionen {
    background: #28a745;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.letzte-nutzung {
    color: #6c757d;
    font-size: 12px;
    margin-bottom: 15px;
}

.rezept-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: auto; /* Buttons am unteren Rand der Karte */
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    font-size: 18px;
}

/* Kalender */
.kalender-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative; /* Für absolute Positionierung des Monatsnamens */
}

.kalender-header h2 {
    color: #333;
    font-size: 1.8rem;
    margin: 0; /* Entfernt Standard-Margin */
}

.kalender-header button {
    background: #667eea;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    flex-shrink: 0; /* Verhindert Schrumpfen der Buttons */
}

.kalender-header button:hover {
    background: #5a6fd8;
    transform: scale(1.1);
}

.month-display-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -40px; /* Positioniert oberhalb des Kalender-Headers */
    background: #f8f9fa;
    padding: 8px 20px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    white-space: nowrap; /* Verhindert Umbruch des Monatsnamens */
}

.month-display-container h2 {
    color: #667eea;
    font-size: 1.5rem;
    margin: 0;
}

/* Neue Klasse für Kalender-spezifische Einkaufslisten-Steuerelemente */
.shopping-list-selection-controls-calendar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.shopping-list-selection-controls-calendar .btn-primary,
.shopping-list-selection-controls-calendar .btn-danger {
    padding: 10px 20px;
    font-size: 1rem;
}


.kalender-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.kalender-header-row {
    display: contents;
}

.kalender-wochentag {
    background: #667eea;
    color: white;
    padding: 15px 5px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

.kalender-tag {
    background: white;
    min-height: 100px;
    padding: 8px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kalender-tag:hover {
    background: #f8f9fa;
}

.kalender-tag.heute {
    background: #fff3cd;
    border: 2px solid #ffc107;
}

.kalender-tag.leer {
    background: #f8f9fa;
    cursor: default;
}

.kalender-tag.selected-for-shopping {
    background: #d4edda; /* Light green */
    border: 2px solid #28a745; /* Green border */
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

.tag-nummer {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.tag-rezepte {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kalender-rezept {
    background: #667eea;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    
    /* Änderung: Erlaubt den Zeilenumbruch */
    white-space: normal;
    word-break: break-word;
    
    /* Entfernt, da nicht mehr benötigt, wenn Umbruch erlaubt ist */
    /* overflow: hidden; */
    /* text-overflow: ellipsis; */
    
    display: flex;
    flex-direction: column; /* Neu: Vertikale Anordnung */
    justify-content: center;
    align-items: flex-start;
    gap: 2px; /* Reduzierter Abstand */
}

.kalender-rezept .btn-rate-meal {
    background: #ffc107;
    color: #333;
    border: none;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
}

.kalender-rezept .btn-rate-meal:hover {
    background: #e0a800;
}

.kalender-rezept .ratings-count {
    background: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: bold;
    cursor: help;
}


/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ki-mode-selection, .chat-mode-selection {
    margin-bottom: 20px;
}

.ki-mode-selection label, .chat-mode-selection label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.ki-mode-selection select, .chat-mode-selection select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

.ki-mode-selection select:focus, .chat-mode-selection select:focus {
    outline: none;
    border-color: #667eea;
}

#ingredients-input {
    margin-bottom: 20px;
}

#ingredients-input label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

#ingredients-textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
}

#ingredients-textarea:focus {
    outline: none;
    border-color: #667eea;
}

#generate-recipe-from-ingredients {
    margin-top: 10px;
}

.mode-selection-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.mode-buttons {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-history {
    flex: 1;
    max-width: 300px;
}

.chat-history h3 {
    margin-bottom: 10px;
    color: #667eea;
}

.chat-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
}

.chat-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.chat-item:hover {
    background: #e9ecef;
}

.chat-item p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.chat-item {
    position: relative;
}

.delete-chat-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.3s ease;
}

.delete-chat-btn:hover {
    background: #c82333;
}

.mode-btn {
    background: white;
    border: 2px solid #ddd;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mode-btn:hover {
    border-color: #667eea;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.mode-btn h3 {
    margin: 0 0 10px 0;
    color: #667eea;
    font-size: 1.2rem;
}

.mode-btn p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, select, textarea {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: #667eea;
}

.zutat-input {
    margin-bottom: 5px;
}

.form-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Rezept Detail - Verbesserte Darstellung */
#detail-modal .modal-content {
    max-width: 700px;
    padding: 40px;
}

.rezept-titel {
    color: #667eea;
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 15px;
}

.rezept-meta-detail {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.rezept-meta-detail .kategorie,
.rezept-meta-detail .dauer {
    font-size: 14px;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.rezept-meta-detail .kategorie {
    background: #667eea;
    color: white;
}

.rezept-meta-detail .dauer {
    background: #28a745;
    color: white;
}

#rezept-detail h3 {
    color: #667eea;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    position: relative;
    padding-left: 20px;
}

#rezept-detail h3::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #764ba2;
    font-size: 1.8rem;
    line-height: 1;
}

#detail-zutaten-liste {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

#detail-zutaten-liste li {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

#detail-zutaten-liste li::before {
    content: '✔';
    color: #28a745;
    font-weight: bold;
}

.anleitung {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 20px;
    border-radius: 15px;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #555;
    white-space: pre-wrap;
}

.detail-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 40px;
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

/* Portionen Input im Detail Modal */
.portionen-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.portionen-input-container input[type="number"] {
    width: 80px;
    text-align: center;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 1.1rem;
}

.portionen-label {
    font-size: 1.1rem;
    color: #555;
}

/* KI Chat */
.ki-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.ki-chat-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

.ki-mode-selection {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ki-mode-selection label {
    font-weight: bold;
    color: #555;
}

.ki-mode-selection select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
}

.chat-messages {
    max-height: 400px;
    overflow-y: auto;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    background: #f8f9fa;
}

.user-message {
    background: #667eea;
    color: white;
    padding: 10px 15px;
    border-radius: 18px 18px 5px 18px;
    margin-bottom: 10px;
    margin-left: 50px;
    word-wrap: break-word;
}

.ki-message {
    background: white;
    color: #333;
    padding: 10px 15px;
    border-radius: 18px 18px 18px 5px;
    margin-bottom: 10px;
    margin-right: 50px;
    border: 2px solid #e9ecef;
    word-wrap: break-word;
}

.assistant-message {
    background: white;
    color: #333;
    padding: 10px 15px;
    border-radius: 18px 18px 18px 5px;
    margin-bottom: 10px;
    margin-right: 50px;
    border: 2px solid #667eea;
    word-wrap: break-word;
}

.rezept-vorschlag {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 15px;
    margin: 10px 0;
    border: 2px solid #667eea;
}

.rezept-vorschlag h4 {
    color: #667eea;
    margin-bottom: 10px;
}

.chat-input-container {
    display: flex;
    gap: 10px;
}

.chat-input-container input {
    flex: 1;
}

.loading {
    text-align: center;
    color: #667eea;
    font-style: italic;
    margin: 10px 0;
}

.hidden {
    display: none;
}

/* Kalender Auswahlmodus */
.kalender-view.auswahl-modus .kalender-tag:not(.leer) {
    border: 2px solid #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.kalender-tag.auswaehlbar {
    cursor: pointer;
    transition: all 0.2s ease;
}

.kalender-tag.auswaehlbar:hover {
    background-color: #e6f0ff;
    transform: scale(1.02);
    z-index: 1;
}

/* Custom Alert/Confirm Modals */
.custom-modal-content {
    text-align: center;
    padding: 30px;
    max-width: 400px;
}

.custom-modal-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #333;
}

.custom-modal-content .btn-primary,
.custom-modal-content .btn-secondary {
    width: auto;
    margin: 0 10px;
}

.confirm-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Kalender Tag Rezepte Modal */
#kalender-tag-rezepte-modal .modal-content {
    max-width: 500px;
}

#kalender-tag-rezepte-title {
    text-align: center;
    color: #667eea;
    margin-bottom: 25px;
    font-size: 1.8rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 15px;
}

#kalender-tag-rezepte-liste {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.kalender-tag-rezept-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column; /* Changed to column for better stacking of info and actions */
    gap: 10px;
}

.kalender-tag-rezept-item h4 {
    color: #333;
    font-size: 1.2rem;
    margin: 0;
}

.kalender-tag-rezept-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end; /* Align buttons to the right */
    flex-wrap: wrap; /* Allow buttons to wrap */
}

/* Rating Modal */
#rating-modal .modal-content {
    max-width: 450px;
    text-align: center;
}

#rating-modal-title {
    color: #667eea;
    margin-bottom: 15px;
}

#rating-rezept-name, #rating-datum {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #555;
}

.rating-stars {
    font-size: 2.5rem;
    color: #ccc;
    cursor: pointer;
    margin: 20px 0;
}

.rating-stars .star {
    transition: color 0.2s ease;
}

.rating-stars .star.selected {
    color: #ffc107;
}

.rating-person-select {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px; /* Weniger Abstand wegen Kommentarfeld */
}

.rating-person-select label {
    font-weight: bold;
    color: #555;
}

.rating-person-select select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
}

#rating-comment {
    width: 100%;
    margin-bottom: 20px;
    resize: vertical; /* Ermöglicht vertikales Resizing */
}

/* Meal Ratings Detail (always visible in kalender-tag-rezepte-modal) */
.meal-ratings-detail {
    font-size: 0.95rem;
    color: #333;
    background: #e9ecef;
    padding: 10px;
    border-radius: 8px;
    margin-top: 5px;
    text-align: left;
}

.meal-ratings-detail h4 {
    color: #667eea;
    margin-bottom: 5px;
    font-size: 1rem;
}

.meal-ratings-detail p {
    margin: 0;
    padding: 2px 0;
}

/* Ratings in Rezept Detail Modal */
.rezept-ratings-list {
    background: #e9ecef;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

.rezept-ratings-list p {
    margin-bottom: 5px;
    font-size: 1rem;
}

.rezept-ratings-list p:last-child {
    margin-bottom: 0;
}


/* Einkaufsliste Styling */
#einkaufsliste-view h2 {
    color: #667eea;
    margin-bottom: 20px;
    text-align: center;
}

#start-shopping-selection { /* Changed ID from generate-shopping-list-btn */
    display: block;
    margin: 0 auto 20px auto;
}

.shopping-list-info {
    text-align: center;
    margin-bottom: 20px;
    font-style: italic;
    color: #6c757d;
}

.shopping-list-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 20px;
}

.shopping-list {
    list-style: none;
    padding: 0;
}

.shopping-list li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #e9ecef;
    font-size: 1.1rem;
    color: #333;
}

.shopping-list li:last-child {
    border-bottom: none;
}

.shopping-list li input[type="checkbox"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    min-width: 20px; /* Ensure it doesn't shrink */
    cursor: pointer;
    accent-color: #667eea; /* Color of the checkbox */
}

.shopping-list li.checked label {
    text-decoration: line-through;
    color: #999;
}

/* Neue Stile für Produkt-Management */
.product-management {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.product-management input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.product-management input[type="text"]:focus {
    border-color: #667eea;
}

.product-management .btn-primary {
    padding: 12px 25px;
    font-size: 1rem;
}

.product-management .btn-danger {
    padding: 12px 25px;
    font-size: 1rem;
}

.shopping-list li .btn-danger {
    margin-left: auto;
    padding: 6px 12px;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.shopping-list li .btn-danger:hover {
    background: #c82333;
}


/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
        width: 100%;
    }

    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    h1 {
        font-size: 2rem;
    }

    nav {
        flex-direction: row; /* Behält Reihe bei, aber erlaubt Umbruch */
        justify-content: center;
        gap: 8px; /* Kleinerer Abstand für Tabs */
    }

    .tab-btn {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .rezepte-grid, .statistics-grid {
        grid-template-columns: 1fr; /* Eine Spalte auf kleinen Bildschirmen */
    }

    .kalender-grid {
        font-size: 12px;
    }

    .kalender-tag {
        min-height: 80px;
        padding: 4px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 10px;
    }

    .ki-chat-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .form-buttons {
        flex-direction: column;
    }

    .detail-actions {
        flex-direction: column;
    }

    .rezept-actions {
        flex-direction: column;
        align-items: stretch; /* Buttons füllen die Breite */
    }
    .rezept-actions button {
        width: 100%;
    }

    /* Responsive Anpassungen für Detail Modal */
    #detail-modal .modal-content {
        padding: 20px;
    }
    .rezept-titel {
        font-size: 1.8rem;
    }
    #rezept-detail h3 {
        font-size: 1.3rem;
    }
    #detail-zutaten-liste li,
    .anleitung {
        font-size: 1rem;
    }

    .kalender-tag-rezept-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .kalender-tag-rezept-actions {
        width: 100%;
        justify-content: flex-start; /* Buttons linksbündig, wenn umgebrochen */
    }

    .rating-person-select {
        flex-direction: column;
        gap: 5px;
    }
    .shopping-list-selection-controls-calendar {
        flex-direction: column;
        align-items: center;
    }

    .view-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .statistics-year-selector {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* --- Kommentare View Styling --- */
#kommentare-liste {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.comment-item h4 {
    color: #667eea;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.comment-item p {
    margin: 5px 0;
    color: #555;
}

.comment-item strong {
    font-weight: 600;
    color: #333;
}

.comment-text {
    font-style: italic;
    border-left: 3px solid #764ba2;
    padding-left: 10px;
    margin-top: 10px;
    color: #6c757d;
}

.comment-actions {
    margin-top: 10px;
    text-align: right;
}

/* --- Statistik View Styling --- */
.statistics-year-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.statistics-year-selector select {
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
}

.statistics-year-selector button {
    /* Reuse btn-secondary style but adjust size */
    padding: 8px 12px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.statistic-card {
    background: linear-gradient(145deg, #f0f4ff, #ffffff);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #667eea;
    transition: transform 0.3s ease;
}

.statistic-card:hover {
    transform: translateY(-3px);
}

.statistic-card h3 {
    color: #764ba2;
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 1px dashed #e9ecef;
    padding-bottom: 5px;
}

.statistic-card .value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
    text-align: center;
    margin: 10px 0;
}

/* Specific styling for list-based stats (Top 3) */
.statistic-card ul {
    list-style: none;
    padding: 0;
}

.statistic-card li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dotted #ccc;
    font-size: 1rem;
}

.statistic-card li:last-child {
    border-bottom: none;
}

.statistic-card .recipe-name,
.statistic-card .person-name {
    font-weight: 600;
    color: #333;
}

/* Shopping List Controls */
.shopping-list-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* TOP Raters List */
.top-raters-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.top-raters-list li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.top-raters-list li:last-child {
    border-bottom: none;
}

.top-raters-list .rank {
    font-weight: bold;
    color: #667eea;
    margin-right: 10px;
}

/* Zutaten Auswahl Modal */
.zutaten-auswahl-content {
    max-width: 500px;
    max-height: 600px;
    width: 90%;
}

.zutaten-auswahl-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.zutaten-auswahl-header h3 {
    margin: 0;
}

.zutaten-auswahl-search {
    margin-bottom: 15px;
}

.zutaten-auswahl-search input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.zutaten-auswahl-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
}

.zutaten-auswahl-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.zutaten-auswahl-item:hover {
    background-color: #f8f9fa;
}

.zutaten-auswahl-item:last-child {
    border-bottom: none;
}

.zutaten-auswahl-item-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.zutaten-auswahl-item-type {
    font-size: 12px;
    color: #666;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}

.zutaten-auswahl-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.zutaten-einheit-selector {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.zutaten-einheit-selector select {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.zutaten-menge-input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.zutaten-item-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.zutaten-item-info {
    flex: 1;
    font-weight: 500;
}

.zutaten-item-remove {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
}

.zutaten-item-remove:hover {
    background: #c82333;
}
    min-width: 30px;
}

.top-raters-list .person-name {
    flex: 1;
    font-weight: 600;
    color: #333;
}

.top-raters-list .count {
    color: #666;
    font-size: 0.9em;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .statistics-year-selector {
        flex-wrap: wrap;
        justify-content: center;
    }

    .shopping-list-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .shopping-list-controls .btn-primary,
    .shopping-list-controls .btn-danger {
        width: 100%;
    }

    .top-raters-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .top-raters-list .rank {
        margin-right: 0;
        margin-bottom: 4px;
    }
}

/* NEUE STILE FÜR ESSEN-VIEW */
.essen-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.essen-form input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.essen-form input[type="text"]:focus {
    border-color: #667eea;
}

.essen-form select {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
    min-width: 150px;
}

.essen-form select:focus {
    border-color: #667eea;
}

.essen-list {
    margin-top: 20px;
}

.essen-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.essen-table th,
.essen-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    word-wrap: break-word;
    word-break: break-all;
    white-space: normal;
    max-width: 150px;
}

.essen-table th:nth-child(4),
.essen-table td:nth-child(4) {
    text-align: center;
    width: 60px;
}

.essen-table th:last-child,
.essen-table td:last-child {
    text-align: right;
}

.essen-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.essen-table tr:hover {
    background: #f8f9fa;
}

.essen-table td button {
    margin-right: 5px;
}

/* Responsive für Essen-Tabelle */
@media (max-width: 768px) {
    .essen-form {
        flex-direction: column;
        align-items: stretch;
    }

    .essen-form input[type="text"],
    .essen-form select {
        width: 100%;
    }

    .essen-table th,
    .essen-table td {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .essen-table th:nth-child(4),
    .essen-table td:nth-child(4) {
        width: 40px;
        padding: 8px 5px;
    }

    .essen-table td button {
        display: block;
        width: 100%;
        margin-bottom: 5px;
        margin-right: 0;
    }
}

/* Essen Modal Styles */
#essen-modal .modal-content {
    max-width: 500px;
}

#essen-modal form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#essen-modal input[type="text"],
#essen-modal select {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

#essen-modal input[type="text"]:focus,
#essen-modal select:focus {
    border-color: #667eea;
}

#essen-modal .form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Bild-Upload Zentrierung */
.image-upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.image-preview-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#rezept-image-preview {
    max-width: 200px;
    max-height: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

#delete-rezept-image-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

#delete-rezept-image-btn:hover {
    background: #c82333;
}

/* Settings Button */
.settings-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #667eea;
    padding: 8px;
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.settings-btn:hover {
    background: rgba(102, 126, 234, 0.1);
}

/* Settings Page Styles */
.settings-layout {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.settings-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.settings-nav {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.settings-nav-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: none;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    text-align: left;
    transition: all 0.3s ease;
}

.settings-nav-item:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.settings-nav-item.active {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.settings-content {
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.settings-section {
    display: none !important;
}

.settings-section.active {
    display: block !important;
}

.settings-section h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.settings-section p {
    color: #555;
    line-height: 1.6;
    font-size: 1.1rem;
}

.data-actions {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.data-action {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 25px;
    transition: border-color 0.3s ease;
}

.data-action:hover {
    border-color: #667eea;
}

.admin-action h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.admin-action p {
    margin-bottom: 20px;
    color: #666;
}

.import-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
}

.import-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.import-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.warning-details {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.warning-details ul {
    margin: 10px 0;
    padding-left: 20px;
}

.warning-details li {
    margin: 5px 0;
    color: #856404;
}

/* User Management Styles */
.user-management {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.create-user-form {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 25px;
}

.create-user-form h3 {
    color: #667eea;
    margin-bottom: 20px;
}

#create-user-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#create-user-form input,
#create-user-form select {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

#create-user-form input:focus,
#create-user-form select:focus {
    border-color: #667eea;
}

.user-list {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 25px;
}

.user-list h3 {
    color: #667eea;
    margin-bottom: 20px;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.user-name {
    font-weight: bold;
    color: #333;
}

.user-role {
    font-size: 14px;
    color: #666;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 14px;
}

.user-role.admin {
    background: #dc3545;
    color: white;
}

.user-role.user {
    background: #28a745;
    color: white;
}

.user-actions {
    display: flex;
    gap: 10px;
}


/* Statistics Placeholder */
.statistics-placeholder {
    margin-top: 30px;
}

.placeholder-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-placeholder {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    font-size: 18px;
}

/* Admin-only elements */
.admin-only {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .user-management {
        grid-template-columns: 1fr;
    }

    .placeholder-content {
        grid-template-columns: 1fr;
    }
}

.import-status.info {
    background: #cce7ff;
    color: #004085;
    border: 1px solid #b3d7ff;
}

.back-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.back-btn:hover {
    background: #5a6268;
}

/* Responsive Design für Settings */
@media (max-width: 768px) {
    .settings-layout {
        flex-direction: column;
    }

    .settings-sidebar {
        width: 100%;
    }

    .settings-nav {
        display: flex;
        overflow-x: auto;
        padding: 15px;
    }

    .settings-nav-item {
        flex-shrink: 0;
        margin-right: 10px;
        margin-bottom: 0;
        white-space: nowrap;
    }
}

/* Rezept-Detail Bild Zentrierung */
.rezept-image-detail-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#rezept-detail-image {
    max-width: 300px;
    max-height: 300px;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

/* Statistics Styles */
.statistics-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.year-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 10px 20px;
}

#current-stats-year {
    font-size: 18px;
    font-weight: bold;
    color: #667eea;
    min-width: 60px;
    text-align: center;
}

.stats-loading, .stats-error {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
}

.stats-error {
    color: #dc3545;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
}

.stat-card h3 {
    margin: 0 0 15px 0;
    color: #667eea;
    font-size: 16px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.stats-section {
    margin-bottom: 40px;
}

.stats-section h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 18px;
}

.stats-list {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 20px;
}

.stats-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.stats-item:last-child {
    border-bottom: none;
}

.stats-item-name {
    font-weight: 500;
    color: #333;
}

.stats-item-value {
    font-weight: bold;
    color: #667eea;
}

.stats-empty {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

/* General Settings Styles */
.general-settings {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.user-info-section {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 25px;
}

.user-info-section h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.user-info-section p {
    margin: 10px 0;
    color: #333;
}

.general-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* User Statistics Styles */
.user-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.user-comments-section {
    margin-top: 30px;
}

.user-comments-section h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.comments-list {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 20px;
}

.comment-item {
    border-bottom: 1px solid #e9ecef;
    padding: 15px 0;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-date {
    font-size: 0.9rem;
    color: #666;
}

.comment-stars {
    color: #ffd700;
    font-size: 1.1rem;
}

.comment-text {
    color: #333;
    line-height: 1.4;
}

/* Filter-Controls für Essen */
.filter-container {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-select {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    border-color: #667eea;
}

.filter-select option {
    padding: 4px;
}

/* Essen-Tabelle */
.essen-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.essen-table th,
.essen-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.essen-table th {
    background: #667eea;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.essen-table tr:last-child td {
    border-bottom: none;
}

.essen-table tr:hover {
    background: #f8f9fa;
}

.essen-table .btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
    margin-right: 5px;
}
