/**
 * Q Menu - Design System
 * Basierend auf Q Timesheet / Q Events Pro v2
 * 
 * @package QMenu
 * @since 2.2.0
 */

/* ===========================================================================
   CSS CUSTOM PROPERTIES - Q Design System
   =========================================================================== */

:root {
    /* Primary Colors */
    --qm-primary: #6366f1;
    --qm-primary-hover: #4f46e5;
    --qm-primary-light: #e0e7ff;
    --qm-primary-dark: #3730a3;
    
    /* Secondary */
    --qm-secondary: #64748b;
    --qm-secondary-light: #f1f5f9;
    
    /* Status Colors */
    --qm-success: #10b981;
    --qm-success-light: #d1fae5;
    --qm-success-dark: #059669;
    --qm-warning: #f59e0b;
    --qm-warning-light: #fef3c7;
    --qm-danger: #ef4444;
    --qm-danger-light: #fee2e2;
    --qm-info: #3b82f6;
    --qm-info-light: #dbeafe;
    
    /* Grayscale */
    --qm-white: #ffffff;
    --qm-gray-50: #f9fafb;
    --qm-gray-100: #f3f4f6;
    --qm-gray-200: #e5e7eb;
    --qm-gray-300: #d1d5db;
    --qm-gray-400: #9ca3af;
    --qm-gray-500: #6b7280;
    --qm-gray-600: #4b5563;
    --qm-gray-700: #374151;
    --qm-gray-800: #1f2937;
    --qm-gray-900: #111827;
    
    /* Shadows */
    --qm-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --qm-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --qm-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Border Radius */
    --qm-radius-sm: 4px;
    --qm-radius: 6px;
    --qm-radius-md: 6px;
    --qm-radius-lg: 8px;
    --qm-radius-xl: 12px;
    
    /* Spacing */
    --qm-gap: 20px;
    --qm-gap-sm: 12px;
    --qm-gap-lg: 24px;
}

/* ===========================================================================
   BASE WRAPPER
   =========================================================================== */

.qm-wrap,
.qm-wrap * {
    box-sizing: border-box;
}

.qm-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--qm-gray-800);
    -webkit-font-smoothing: antialiased;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--qm-gap);
}

/* ===========================================================================
   PAGE HEADER - Q Style
   =========================================================================== */

.qm-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--qm-gap-lg);
    padding-bottom: var(--qm-gap);
    border-bottom: 1px solid var(--qm-gray-200);
}

.qm-page-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--qm-gray-900);
}

.qm-page-title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--qm-primary-light);
    border-radius: var(--qm-radius-lg);
    color: var(--qm-primary);
}

.qm-page-title-icon svg {
    width: 20px;
    height: 20px;
}

/* ===========================================================================
   MAIN CONTENT CARD
   =========================================================================== */

.qm-main-content {
    background: var(--qm-white);
    border: 1px solid var(--qm-gray-200);
    border-radius: var(--qm-radius-xl);
    box-shadow: var(--qm-shadow-sm);
    overflow: hidden;
}

/* ===========================================================================
   CATEGORY SECTIONS
   =========================================================================== */

.qm-category {
    border-bottom: 1px solid var(--qm-gray-200);
}

.qm-category:last-child {
    border-bottom: none;
}

/* Category Header - wie Q Timesheet Tabellen-Header */
.qm-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-bottom: 2px solid var(--qm-primary);
}

.qm-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--qm-white);
    border-radius: var(--qm-radius-lg);
    color: var(--qm-primary);
    box-shadow: var(--qm-shadow-sm);
}

.qm-category-icon svg {
    width: 18px;
    height: 18px;
}

.qm-category-title {
    flex: 1;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #4338ca;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qm-category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: var(--qm-white);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--qm-primary);
    box-shadow: var(--qm-shadow-sm);
}

/* ===========================================================================
   MENU ITEMS TABLE (Desktop)
   =========================================================================== */

.qm-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--qm-white);
}

.qm-table--mobile {
    display: none;
}

/* Table Header */
.qm-table thead th {
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 600;
    color: var(--qm-gray-500);
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: var(--qm-gray-50);
    border-bottom: 1px solid var(--qm-gray-200);
}

/* Table Rows */
.qm-item {
    transition: background 0.15s ease;
}

.qm-item:hover {
    background: var(--qm-gray-50);
}

.qm-item td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--qm-gray-100);
    vertical-align: middle;
}

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

/* Item Name */
.qm-item-name {
    font-weight: 600;
    color: var(--qm-gray-800);
    min-width: 180px;
}

/* Item Description */
.qm-item-description {
    font-size: 13px;
    color: var(--qm-gray-500);
    font-style: italic;
    max-width: 280px;
}

/* Item Ingredients */
.qm-item-ingredients {
    font-size: 13px;
    color: var(--qm-gray-400);
}

/* Item Size */
.qm-item-size {
    text-align: right;
    white-space: nowrap;
    color: var(--qm-gray-500);
    font-size: 13px;
    font-weight: 500;
    min-width: 70px;
}

/* Item Price - Badge Style */
.qm-item-price {
    text-align: right;
    white-space: nowrap;
    min-width: 80px;
}

.qm-price-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--qm-success-light);
    color: var(--qm-success-dark);
    border-radius: var(--qm-radius);
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ===========================================================================
   MOBILE CARDS
   =========================================================================== */

.qm-cards {
    display: none;
    padding: 0;
}

.qm-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--qm-gray-100);
    transition: background 0.15s ease;
}

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

.qm-card:active {
    background: var(--qm-gray-50);
}

.qm-card-main {
    flex: 1;
    min-width: 0;
}

.qm-card-name {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--qm-gray-800);
}

.qm-card-description,
.qm-card-ingredients {
    font-size: 13px;
    color: var(--qm-gray-500);
    margin: 4px 0 0 0;
    line-height: 1.4;
}

.qm-card-description {
    font-style: italic;
}

.qm-card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.qm-card-size {
    font-size: 12px;
    color: var(--qm-gray-400);
    font-weight: 500;
}

.qm-card-price {
    display: inline-flex;
    padding: 4px 10px;
    background: var(--qm-success-light);
    color: var(--qm-success-dark);
    border-radius: var(--qm-radius);
    font-size: 14px;
    font-weight: 600;
}

/* ===========================================================================
   STATS SUMMARY (Optional Header)
   =========================================================================== */

.qm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--qm-gap);
    margin-bottom: var(--qm-gap-lg);
}

.qm-stat-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--qm-white);
    border: 1px solid var(--qm-gray-200);
    border-radius: var(--qm-radius-xl);
    padding: 16px;
    box-shadow: var(--qm-shadow-sm);
}

.qm-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--qm-radius-lg);
    flex-shrink: 0;
}

.qm-stat-icon svg {
    width: 20px;
    height: 20px;
}

.qm-stat-icon-primary {
    background: var(--qm-primary-light);
    color: var(--qm-primary);
}

.qm-stat-icon-success {
    background: var(--qm-success-light);
    color: var(--qm-success);
}

.qm-stat-content {
    flex: 1;
}

.qm-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--qm-gray-900);
    line-height: 1.2;
}

.qm-stat-label {
    font-size: 12px;
    color: var(--qm-gray-500);
    margin-top: 2px;
}

/* ===========================================================================
   EMPTY STATE
   =========================================================================== */

.qm-empty {
    text-align: center;
    padding: 60px 20px;
}

.qm-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--qm-gray-100);
    border-radius: 50%;
    color: var(--qm-gray-400);
    margin-bottom: 16px;
}

.qm-empty-icon svg {
    width: 32px;
    height: 32px;
}

.qm-empty-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--qm-gray-700);
    margin: 0 0 8px 0;
}

.qm-empty-text {
    color: var(--qm-gray-500);
    margin: 0;
}

/* ===========================================================================
   RESPONSIVE BREAKPOINTS
   =========================================================================== */

@media screen and (max-width: 768px) {
    .qm-wrap {
        padding: 12px;
    }
    
    .qm-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .qm-page-title {
        font-size: 20px;
    }
    
    /* Hide desktop table, show mobile cards */
    .qm-table--desktop {
        display: none;
    }
    
    .qm-cards--mobile {
        display: block;
    }
    
    .qm-category-header {
        padding: 12px 16px;
    }
    
    .qm-category-title {
        font-size: 14px;
    }
    
    .qm-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .qm-wrap {
        padding: 8px;
    }
    
    .qm-card {
        padding: 12px 16px;
    }
    
    .qm-card-name {
        font-size: 14px;
    }
    
    .qm-card-price {
        font-size: 13px;
        padding: 3px 8px;
    }
}

/* ===========================================================================
   STYLE VARIATIONS
   =========================================================================== */

/* Compact Style */
.qm-wrap[data-style="compact"] .qm-item td {
    padding: 10px 16px;
}

.qm-wrap[data-style="compact"] .qm-card {
    padding: 12px 16px;
}

/* Dark Style */
.qm-wrap[data-style="dark"] {
    --qm-white: #1f2937;
    --qm-gray-50: #374151;
    --qm-gray-100: #4b5563;
    --qm-gray-200: #6b7280;
    --qm-gray-500: #d1d5db;
    --qm-gray-700: #f3f4f6;
    --qm-gray-800: #f9fafb;
    --qm-gray-900: #ffffff;
    background: #111827;
    border-radius: var(--qm-radius-xl);
    padding: 24px;
}

.qm-wrap[data-style="dark"] .qm-category-header {
    background: linear-gradient(135deg, #312e81 0%, #3730a3 100%);
}

.qm-wrap[data-style="dark"] .qm-category-title {
    color: #e0e7ff;
}

.qm-wrap[data-style="dark"] .qm-category-icon {
    background: rgba(255, 255, 255, 0.1);
    color: #a5b4fc;
}

/* Elegant Style (centered headers) */
.qm-wrap[data-style="elegant"] .qm-category-header {
    justify-content: center;
    text-align: center;
    background: transparent;
    border-bottom: 1px solid var(--qm-gray-200);
}

.qm-wrap[data-style="elegant"] .qm-category-icon {
    display: none;
}

.qm-wrap[data-style="elegant"] .qm-category-title {
    color: var(--qm-gray-800);
    font-size: 18px;
    letter-spacing: 1px;
}

/* ===========================================================================
   PRINT STYLES
   =========================================================================== */

@media print {
    .qm-wrap {
        max-width: none;
        padding: 0;
    }
    
    .qm-main-content {
        border: none;
        box-shadow: none;
    }
    
    .qm-category {
        page-break-inside: avoid;
    }
    
    .qm-item:hover {
        background: transparent;
    }
    
    .qm-cards--mobile {
        display: none !important;
    }
    
    .qm-table--desktop {
        display: table !important;
    }
    
    .qm-price-badge {
        background: transparent;
        padding: 0;
        color: inherit;
    }
}

/* ===========================================================================
   ANIMATIONS
   =========================================================================== */

@media (prefers-reduced-motion: no-preference) {
    .qm-category {
        animation: qm-slide-up 0.4s ease-out both;
    }
    
    .qm-category:nth-child(2) { animation-delay: 0.05s; }
    .qm-category:nth-child(3) { animation-delay: 0.1s; }
    .qm-category:nth-child(4) { animation-delay: 0.15s; }
    .qm-category:nth-child(5) { animation-delay: 0.2s; }
    .qm-category:nth-child(6) { animation-delay: 0.25s; }
    .qm-category:nth-child(7) { animation-delay: 0.3s; }
    .qm-category:nth-child(8) { animation-delay: 0.35s; }
}

@keyframes qm-slide-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================================================================
   ACCESSIBILITY
   =========================================================================== */

.qm-item:focus-within {
    outline: 2px solid var(--qm-primary);
    outline-offset: -2px;
}

@media (prefers-contrast: high) {
    .qm-wrap {
        --qm-gray-500: #374151;
        --qm-gray-400: #4b5563;
    }
    
    .qm-price-badge {
        border: 1px solid currentColor;
    }
}

/* ===========================================================================
   TEMPLATE: CLASSIC (Original Design)
   =========================================================================== */

.qm-classic {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.qm-classic .q_menu_wrapper {
    max-width: 1800px;
    margin: 20vh auto;
}

.qm-classic .q_menu_wrapper p {
    line-height: 20px;
    color: #666;
}

.qm-classic .q_menu_header {
    text-align: center;
    font-weight: bold;
    height: 50px;
    margin-bottom: 24px;
}

.qm-classic .q_menu_table {
    width: 100%;
}

.qm-classic .q_menu_table td {
    padding: 10px 3px !important;
    border: unset !important;
}

.qm-classic .q_menu_text_right {
    text-align: right;
}

.qm-classic .q_menu_fat {
    font-weight: bold;
}

.qm-classic .mobile_version {
    display: none;
}

.qm-classic .q_menu_flex {
    display: flex;
    width: 100%;
    padding: 10px 0;
}

.qm-classic .q_menu_mobile_left {
    width: 54%;
}

.qm-classic .q_menu_mobile_right {
    width: 23%;
}

@media screen and (max-width: 1500px) {
    .qm-classic .q_menu_wrapper {
        max-width: 1200px;
    }
}

@media screen and (max-width: 1250px) {
    .qm-classic .q_menu_wrapper {
        max-width: 900px;
    }
}

@media screen and (max-width: 1050px) {
    .qm-classic .q_menu_wrapper {
        max-width: 700px;
    }
}

@media screen and (max-width: 767px) {
    .qm-classic .q_menu_table_description {
        display: none;
    }
    
    .qm-classic .mobile_version {
        display: block;
        font-size: 13px;
    }
    
    .qm-classic .desktop_version {
        display: none;
    }
    
    .qm-classic .q_menu_header {
        font-size: 18px !important;
    }
    
    .qm-classic .q_menu_wrapper {
        margin: 15vh 5vw 10vh 5vw;
        width: unset !important;
    }
}

/* ===========================================================================
   TEMPLATE: CARDS (Elegant Grid)
   =========================================================================== */

.qm-cards-template {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    -webkit-font-smoothing: antialiased;
}

.qm-cards-header {
    text-align: center;
    margin-bottom: 48px;
}

.qm-cards-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--qm-gray-900);
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.qm-cards-subtitle {
    font-size: 16px;
    color: var(--qm-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.qm-cards-container {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.qm-cards-section {
    margin-bottom: 0;
}

.qm-cards-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.qm-cards-section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--qm-gray-800);
    margin: 0;
    white-space: nowrap;
}

.qm-cards-section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--qm-gray-300), transparent);
}

.qm-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.qm-elegant-card {
    background: var(--qm-white);
    border: 1px solid var(--qm-gray-200);
    border-radius: var(--qm-radius-lg);
    transition: all 0.2s ease;
    overflow: hidden;
}

.qm-elegant-card:hover {
    border-color: var(--qm-gray-300);
    box-shadow: var(--qm-shadow-md);
    transform: translateY(-2px);
}

.qm-elegant-card-content {
    padding: 20px;
}

.qm-elegant-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.qm-elegant-card-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--qm-gray-800);
    margin: 0;
    line-height: 1.4;
}

.qm-elegant-card-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--qm-success-dark);
    white-space: nowrap;
    background: var(--qm-success-light);
    padding: 4px 10px;
    border-radius: var(--qm-radius);
}

.qm-elegant-card-description {
    font-size: 14px;
    color: var(--qm-gray-600);
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.qm-elegant-card-ingredients {
    font-size: 13px;
    color: var(--qm-gray-500);
    font-style: italic;
    margin: 0 0 8px 0;
}

.qm-elegant-card-size {
    display: inline-block;
    font-size: 13px;
    color: var(--qm-gray-500);
    background: var(--qm-gray-100);
    padding: 4px 8px;
    border-radius: var(--qm-radius-sm);
    margin-top: 4px;
}

.qm-cards-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--qm-gray-500);
}

@media screen and (max-width: 767px) {
    .qm-cards-template {
        padding: 24px 16px;
    }
    
    .qm-cards-title {
        font-size: 28px;
    }
    
    .qm-cards-header {
        margin-bottom: 32px;
    }
    
    .qm-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .qm-elegant-card-content {
        padding: 16px;
    }
    
    .qm-cards-section-title {
        font-size: 20px;
    }
}

/* ===========================================================================
   TEMPLATE: MINIMAL (Clean & Simple)
   =========================================================================== */

.qm-minimal {
    font-family: 'Georgia', 'Times New Roman', serif;
    max-width: 700px;
    margin: 0 auto;
    padding: 48px 24px;
    background: var(--qm-white);
    -webkit-font-smoothing: antialiased;
}

.qm-minimal-section {
    margin-bottom: 48px;
}

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

.qm-minimal-title {
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--qm-gray-500);
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--qm-gray-200);
}

.qm-minimal-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qm-minimal-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qm-minimal-item-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.qm-minimal-item-name {
    font-size: 18px;
    font-weight: 400;
    color: var(--qm-gray-900);
    flex-shrink: 0;
}

.qm-minimal-item-dots {
    flex: 1;
    border-bottom: 1px dotted var(--qm-gray-300);
    margin-bottom: 4px;
    min-width: 20px;
}

.qm-minimal-item-price {
    font-size: 18px;
    font-weight: 400;
    color: var(--qm-gray-900);
    flex-shrink: 0;
}

.qm-minimal-item-sub {
    display: flex;
    gap: 16px;
    padding-left: 0;
}

.qm-minimal-item-desc {
    font-size: 14px;
    font-style: italic;
    color: var(--qm-gray-500);
}

.qm-minimal-item-size {
    font-size: 14px;
    color: var(--qm-gray-400);
}

@media screen and (max-width: 767px) {
    .qm-minimal {
        padding: 32px 16px;
    }
    
    .qm-minimal-item-name {
        font-size: 16px;
    }
    
    .qm-minimal-item-price {
        font-size: 16px;
    }
    
    .qm-minimal-title {
        font-size: 12px;
    }
}

/* ===========================================================================
   TEMPLATE: ELEGANT (Dark & Sophisticated)
   =========================================================================== */

.qm-elegant {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    padding: 48px 24px;
    -webkit-font-smoothing: antialiased;
}

.qm-elegant-inner {
    max-width: 900px;
    margin: 0 auto;
}

.qm-elegant-section {
    margin-bottom: 56px;
}

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

.qm-elegant-section-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.qm-elegant-section-title {
    font-size: 24px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #d4af37;
    margin: 0;
    white-space: nowrap;
}

.qm-elegant-section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.4), transparent);
}

.qm-elegant-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.qm-elegant-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
    padding: 20px 24px;
    transition: all 0.3s ease;
}

.qm-elegant-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateX(4px);
}

.qm-elegant-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 8px;
}

.qm-elegant-item-name {
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
}

.qm-elegant-item-price {
    font-size: 18px;
    font-weight: 600;
    color: #d4af37;
    white-space: nowrap;
}

.qm-elegant-item-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.qm-elegant-item-ingredients {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    margin: 0 0 8px 0;
}

.qm-elegant-item-size {
    display: inline-block;
    font-size: 12px;
    color: rgba(212, 175, 55, 0.8);
    background: rgba(212, 175, 55, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

@media screen and (max-width: 767px) {
    .qm-elegant {
        padding: 32px 16px;
    }
    
    .qm-elegant-section-header {
        gap: 16px;
    }
    
    .qm-elegant-section-title {
        font-size: 18px;
        letter-spacing: 0.1em;
    }
    
    .qm-elegant-item {
        padding: 16px;
    }
    
    .qm-elegant-item-name {
        font-size: 16px;
    }
    
    .qm-elegant-item-price {
        font-size: 16px;
    }
    
    .qm-elegant-item-top {
        flex-direction: column;
        gap: 8px;
    }
}

/* ===========================================================================
   WEEKLY MENU (Wochenkarte) - Simple List per Week
   =========================================================================== */

.qm-weekly {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
    font-family: var(--qm-font-family);
}

/* Header */
.qm-weekly-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--qm-gray-200);
}

.qm-weekly-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--qm-gray-800);
    margin: 0 0 8px 0;
}

.qm-weekly-period {
    font-size: 16px;
    color: var(--qm-gray-600);
}

.qm-weekly-kw {
    display: inline-block;
    background: var(--qm-primary);
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    margin-left: 8px;
}

/* Content */
.qm-weekly-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Section (per meal type) */
.qm-weekly-section {
    background: var(--qm-white);
    border-radius: 12px;
    box-shadow: var(--qm-shadow-md);
    overflow: hidden;
}

.qm-weekly-section-title {
    margin: 0;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 700;
    color: var(--qm-white);
    background: linear-gradient(135deg, var(--qm-primary), var(--qm-primary-dark));
}

/* Items */
.qm-weekly-items {
    padding: 8px 0;
}

.qm-weekly-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--qm-gray-100);
}

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

.qm-weekly-item-info {
    flex: 1;
}

.qm-weekly-item-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--qm-gray-800);
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.qm-weekly-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
}

.qm-weekly-badge-v {
    background: var(--qm-success-light);
    color: var(--qm-success-dark);
}

.qm-weekly-badge-vg {
    background: #dcfce7;
    color: #166534;
}

.qm-weekly-item-desc {
    font-size: 14px;
    color: var(--qm-gray-600);
    margin: 0 0 6px 0;
    line-height: 1.5;
}

.qm-weekly-item-allergens {
    display: inline-block;
    font-size: 12px;
    color: #9a3412;
    background: #fed7aa;
    padding: 3px 8px;
    border-radius: 4px;
}

.qm-weekly-item-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--qm-success-dark);
    white-space: nowrap;
}

/* Empty State */
.qm-weekly-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--qm-gray-500);
    background: var(--qm-gray-50);
    border-radius: 12px;
}

.qm-weekly-empty p {
    margin: 0;
    font-size: 16px;
}

/* Allergens Legend */
.qm-weekly-legend {
    margin-top: 32px;
    padding: 20px;
    background: var(--qm-gray-50);
    border-radius: 12px;
}

.qm-weekly-legend-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--qm-gray-700);
    margin: 0 0 16px 0;
}

.qm-weekly-legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.qm-weekly-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.qm-weekly-legend-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--qm-primary);
    color: white;
    font-weight: 700;
    font-size: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.qm-weekly-legend-name {
    color: var(--qm-gray-600);
}

/* Responsive */
@media (max-width: 640px) {
    .qm-weekly {
        padding: 16px;
    }
    
    .qm-weekly-title {
        font-size: 22px;
    }
    
    .qm-weekly-period {
        font-size: 14px;
    }
    
    .qm-weekly-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .qm-weekly-item-price {
        font-size: 16px;
    }
    
    .qm-weekly-legend-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
