/* Blazor-Fehlerleiste: nur anzeigen, wenn Blazor bei einem Fehler die Klasse .show setzt */
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.6rem 1rem;
    background: #d32f2f;
    color: #fff;
    z-index: 9999;
    text-align: center;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
}
#blazor-error-ui .reload { color: #fff; text-decoration: underline; margin-left: 0.5rem; }
#blazor-error-ui .dismiss { cursor: pointer; margin-left: 0.5rem; }
#blazor-error-ui.show {
    display: block;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

:root {
    --brand-primary: #1266f1;
    --brand-primary-hover: #0f56cc;
    --brand-success: #15803d;
    --brand-success-hover: #166534;
    --brand-danger: #dc3545;
    --brand-danger-hover: #c82333;
    --brand-secondary: #6c757d;
    --brand-secondary-hover: #5a6268;

    --surface-bg: #ffffff;
    --surface-muted: #f8fafc;
    --surface-app: #f5f7fb;
    --text-primary: #101828;
    --text-muted: #667085;
    --border-soft: #e8edf3;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-soft: 0 12px 30px rgba(16, 24, 40, 0.08);
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
}

.btn {
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--brand-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--brand-primary-hover);
}

.btn-success {
    background-color: var(--brand-success);
    color: white;
}

.btn-success:hover {
    background-color: var(--brand-success-hover);
}

.btn-danger {
    background-color: var(--brand-danger);
    color: white;
}

.btn-danger:hover {
    background-color: var(--brand-danger-hover);
}

.btn-secondary {
    background-color: var(--brand-secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--brand-secondary-hover);
}

.card {
    background: var(--surface-bg);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(16,24,40,0.1);
    margin-bottom: 16px;
    padding: 20px;
}

.menu-category {
    margin-bottom: 24px;
}

.menu-item {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.menu-item:hover {
    background-color: #f8f9fa;
}

.menu-item:last-child {
    border-bottom: none;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    gap: 12px;
}

.order-item:last-child {
    border-bottom: none;
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px;
}

.total-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #28a745;
    text-align: right;
    padding: 16px;
    border-top: 2px solid #28a745;
    margin-top: 16px;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-pending {
    background-color: #ffc107;
    color: #000;
}

.status-inprogress {
    background-color: #17a2b8;
    color: white;
}

.status-delivered {
    background-color: #28a745;
    color: white;
}

.status-cancelled {
    background-color: #dc3545;
    color: white;
}

@media (max-width: 640px) {
    .card {
        margin: 8px;
        padding: 16px;
    }
}

.table-favorites-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 10px 10px 88px;
    background: #b7efb7;
    min-height: 100vh;
}

.table-favorites-page .card {
    margin: 0 0 12px 0;
}

.table-favorites-header {
    background: linear-gradient(135deg, #1f4d23 0%, #163a19 100%);
    color: #fff;
}

.table-favorites-header h1 {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 800;
}

.table-favorites-card {
    background: linear-gradient(135deg, #1f4d23 0%, #163a19 100%);
    color: #fff;
}

.favorites-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.favorite-tile {
    width: 100%;
    border: 1px solid #2f6433;
    border-radius: 16px;
    padding: 10px 14px;
    text-align: left;
    background: linear-gradient(135deg, #1f4d23 0%, #163a19 100%);
    color: #fff;
    cursor: pointer;
}

.favorite-tile:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.favorite-tile__name {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.1;
}

.favorite-tile__note {
    margin-top: 6px;
    font-size: 1.5rem;
    color: #d4f3d7;
}

.favorite-order-cancel {
    padding: 5px 9px;
    font-size: 0.9rem;
}

.table-favorites-footer {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 20px);
    max-width: 760px;
    bottom: 0;
    background: linear-gradient(135deg, #1f4d23 0%, #163a19 100%);
    color: #fff;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.table-favorites-footer__summary {
    font-size: 1rem;
    font-weight: 700;
}

.table-favorites-footer__button {
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 700;
}
