/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f5f1e8 0%, #e8ddd4 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.week-info {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    color: #4a5568;
    font-weight: 500;
}

.week-button {
    background: linear-gradient(135deg, #d4a574, #c49660);
    color: white;
    padding: 8px 20px;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.week-button:focus-visible {
    outline: 2px solid rgba(212, 165, 116, 0.8);
    outline-offset: 2px;
}

.week-arrow {
    background: linear-gradient(135deg, #f1e0cf, #e2c7a6);
    border: none;
    color: #2d3748;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.week-arrow:focus-visible {
    outline: 2px solid rgba(212, 165, 116, 0.8);
    outline-offset: 2px;
}

#kalenderwoche {
    font-weight: 600;
}

#datum {
    color: #718096;
}

/* Main Content */
main {
    margin-bottom: 20px;
}

.days-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Day Cards */
.day-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.day-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.day-button {
    width: 100%;
    background: none;
    border: none;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

.day-button:hover {
    background: rgba(212, 165, 116, 0.1);
}

.day-button.active {
    background: rgba(212, 165, 116, 0.15);
}

.day-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.arrow {
    font-size: 1rem;
    transition: transform 0.3s ease;
    color: #d4a574;
}

.day-button.active .arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.menu-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(248, 250, 252, 0.8);
}

.menu-dropdown.active {
    max-height: 1000px;
}

.menu-content {
    padding: 20px 20px 20px 20px;
}

.menu-item {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.menu-item:last-child {
    margin-bottom: 0;
}

.menu-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #d4a574;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-item .description {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 10px;
}

.allergens {
    font-size: 0.85rem;
    color: #e53e3e;
    font-weight: 500;
}

.allergens:not(:empty)::before {
    content: "⚠️ ";
}

/* Allergen-Dropdown Button */
.allergen-toggle {
    background: rgba(212, 165, 116, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.8rem;
    color: #d4a574;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.allergen-toggle:hover {
    background: rgba(212, 165, 116, 0.2);
    border-color: rgba(212, 165, 116, 0.5);
}

.allergen-toggle.active {
    background: rgba(212, 165, 116, 0.2);
    border-color: rgba(212, 165, 116, 0.5);
}

.allergen-toggle .arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.allergen-toggle.active .arrow {
    transform: rotate(180deg);
}

/* Allergen-Dropdown Content */
.allergen-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(248, 250, 252, 0.9);
    border-radius: 8px;
    margin-top: 8px;
}

.allergen-dropdown.active {
    max-height: 200px;
}

.allergen-content {
    padding: 12px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.allergen-section {
    margin-bottom: 8px;
}

.allergen-section:last-child {
    margin-bottom: 0;
}

.allergen-section h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: #d4a574;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.allergen-list {
    color: #4a5568;
    font-size: 0.8rem;
}

.allergen-list:empty {
    display: none;
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .week-info {
        flex-direction: row;
        gap: 8px;
        font-size: 1rem;
    }
    
    .day-button {
        padding: 18px;
        font-size: 1rem;
    }
    
    .day-name {
        font-size: 1.1rem;
    }
    
    .menu-content {
        padding: 15px 15px 15px 15px;
    }
    
    .menu-item {
        padding: 12px;
        margin-bottom: 15px;
    }
}

/* Animation für bessere UX */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.day-card {
    animation: fadeIn 0.5s ease forwards;
}

.day-card:nth-child(1) { animation-delay: 0.1s; }
.day-card:nth-child(2) { animation-delay: 0.2s; }
.day-card:nth-child(3) { animation-delay: 0.3s; }
.day-card:nth-child(4) { animation-delay: 0.4s; }
.day-card:nth-child(5) { animation-delay: 0.5s; }

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 165, 116, 0.5);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 165, 116, 0.7);
}
