/* Verbesserte CSS für Bestell-Funktionalität */

/* Menu für Gast */
.menu-categories {
    margin-top: 20px;
}

.menu-category {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* GRÖßERE Kategorie-Buttons */
.menu-category-btn {
    width: 100%;
    padding: 20px 20px;  /* Erhöht von 15px */
    background: #2196F3;
    color: white;
    border: none;
    font-size: 18px;  /* Erhöht von 16px */
    font-weight: bold;
    cursor: pointer;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.menu-category-btn:hover {
    background: #1976D2;
    padding-left: 25px;
}

.menu-category-btn:active {
    background: #1565C0;
}

.menu-items-grid {
    padding: 10px;
    background: #f9f9f9;
}

/* FARBIGE Unterkategorie-Header */
.menu-subcategory-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 15px;
    margin: 10px 0 5px 0;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Alternative Farbschemata für verschiedene Unterkategorien */
.menu-subcategory-header:nth-of-type(3n+1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Lila */
}

.menu-subcategory-header:nth-of-type(3n+2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); /* Pink */
}

.menu-subcategory-header:nth-of-type(3n+3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); /* Türkis */
}

.menu-item-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.menu-item-card:hover {
    border-color: #2196F3;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
    transform: translateX(3px);
}

.menu-item-info {
    flex: 1;
}

.menu-item-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
    font-size: 15px;
}

.menu-item-subcat {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

.menu-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-item-price {
    font-weight: bold;
    color: #2196F3;
    font-size: 16px;
    min-width: 70px;
    text-align: right;
}

/* Rechnung */
.bill-items {
    margin-bottom: 20px;
}

.bill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.bill-item:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.bill-item-details {
    flex: 1;
}

.bill-item-name {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.bill-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-quantity {
    width: 28px;
    height: 28px;
    border: 1px solid #2196F3;
    background: white;
    color: #2196F3;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
}

.btn-quantity:hover {
    background: #2196F3;
    color: white;
    transform: scale(1.1);
}

.btn-quantity:active {
    transform: scale(0.95);
}

.bill-item-price-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bill-item-price {
    font-weight: bold;
    color: #2196F3;
    font-size: 16px;
    min-width: 70px;
    text-align: right;
}

.btn-remove {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.btn-remove:hover {
    opacity: 1;
    transform: scale(1.2);
}

.bill-total {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    border-radius: 8px;
    font-size: 18px;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(33, 150, 243, 0.3);
}

/* Toast Benachrichtigung */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsive */
@media (max-width: 600px) {
    .menu-category-btn {
        font-size: 16px;
        padding: 18px 15px;
    }
    
    .menu-item-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .menu-item-actions {
        width: 100%;
        margin-top: 10px;
        justify-content: space-between;
    }
    
    .bill-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bill-item-price-actions {
        width: 100%;
        margin-top: 10px;
        justify-content: space-between;
    }
}
