* {
            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;
            /* Globale Touch-Optimierung für mobile Geräte */
            touch-action: manipulation;
            -webkit-text-size-adjust: 100%;
        }
        
        .container {
            max-width: 400px;
            margin: 0 auto;
            padding: 20px;
        }
        
        .app-header {
            text-align: center;
            color: white;
            margin-bottom: 30px;
            position: relative;
        }
        
        .app-title {
            font-size: 28px;
            font-weight: bold;
            margin-bottom: 10px;
        }
        
        .user-info {
            position: absolute;
            top: 0;
            left: 0;
            display: flex;
            align-items: center;
            gap: 10px;
            background: rgba(255,255,255,0.2);
            padding: 8px 12px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: bold;
        }
        
        .logout-btn {
            background: none;
            border: none;
            color: white;
            font-size: 16px;
            cursor: pointer;
            padding: 4px;
            border-radius: 50%;
            transition: background 0.3s;
        }
        
        .logout-btn:hover {
            background: rgba(255,255,255,0.3);
        }
        .orders-overview-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: background 0.3s;
    margin-right: 5px;
}

.orders-overview-btn:hover {
    background: rgba(255,255,255,0.3);
}
        .mode-selector {
            display: flex;
            gap: 8px;
            margin-bottom: 10px;
            flex-wrap: wrap;
        }
        
        /* NEU: Abholung-Sektion direkt unter Bedienung */
        .abholung-section {
            margin-bottom: 25px;
        }
        
        .abholung-btn-full {
            width: 100%;
            padding: 10px 8px;
            border: none;
            border-radius: 12px;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            text-align: center;
            position: relative;
            background: rgba(255,255,255,0.2);
            color: white;
            /* Verhindert Zoom beim Doppelklick auf Handy */
            touch-action: manipulation;
            user-select: none;
            -webkit-user-select: none;
            -webkit-touch-callout: none;
        }
        
        .abholung-btn-full.active {
            background: white;
            color: #667eea;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }
        
        .mode-btn {
            position: relative;
            flex: 1;
            min-width: 90px;
            padding: 10px 8px;
            border: none;
            border-radius: 12px;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            text-align: center;
            /* Verhindert Zoom beim Doppelklick auf Handy */
            touch-action: manipulation;
            user-select: none;
            -webkit-user-select: none;
            -webkit-touch-callout: none;
        }
        
        .mode-btn.active {
            background: white;
            color: #667eea;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }
        
        .mode-btn:not(.active) {
            background: rgba(255,255,255,0.2);
            color: white;
        }
        .order-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
}
        .section {
            background: white;
            border-radius: 20px;
            padding: 25px;
            margin-bottom: 20px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.1);
        }
        
        .section-title {
            font-size: 20px;
            font-weight: bold;
            color: #333;
            margin-bottom: 20px;
            text-align: center;
        }
        
        /* NEU: Section Header mit Export-Buttons */
        .section-header-with-export {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-bottom: 20px;
        }
        
        .section-header-with-export .station-title {
            text-align: center;
            margin-bottom: 0;
        }
        
        /* NEU: Export-Buttons */
        .export-buttons {
            display: flex;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap;
        }
        
        .export-btn {
            padding: 8px 16px;
            border: none;
            border-radius: 8px;
            font-size: 12px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 5px;
            /* Verhindert Zoom beim Doppelklick auf Handy */
            touch-action: manipulation;
            user-select: none;
            -webkit-user-select: none;
            -webkit-touch-callout: none;
        }
        
        .export-btn.pdf-btn {
            background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
            color: white;
        }
        
        .export-btn.pdf-btn:hover {
            background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
            transform: translateY(-1px);
        }
        
        .export-btn.excel-btn {
            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
            color: white;
        }
        
        .export-btn.excel-btn:hover {
            background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
            transform: translateY(-1px);
        }
        
        /* NEU: Statistik-Zusammenfassung */
        .stats-summary {
            margin-bottom: 20px;
        }
        
        .summary-card {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 15px;
            padding: 20px;
            color: white;
        }
        
        .summary-title {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 15px;
            text-align: center;
        }
        
        .summary-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }
        
        .summary-item {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            padding: 10px;
            text-align: center;
        }
        
        .summary-label {
            font-size: 11px;
            opacity: 0.8;
            margin-bottom: 4px;
        }
        
        .summary-value {
            font-size: 13px;
            font-weight: bold;
        }
        
        .summary-value.highlight {
            font-size: 16px;
            color: #ffd700;
        }
        
        /* NEU: Erweiterte Statistik-Karten */
        .enhanced-stats-card {
            border-left: 4px solid #667eea;
        }
        
        .day-highlights {
            background: rgba(102, 126, 234, 0.1);
            border-radius: 8px;
            padding: 10px;
            margin-bottom: 10px;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
        }
        
        .highlight-item {
            font-size: 12px;
            color: #667eea;
            font-weight: bold;
        }
        
        .enhanced-item {
            position: relative;
        }
        
        .station-badge {
            display: inline-block;
            background: #6c757d;
            color: white;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 10px;
            margin-left: 8px;
        }
        
        .rank-badge {
            display: inline-block;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 10px;
            margin-right: 8px;
            font-weight: bold;
        }
        
        .rank-badge.rank-1 {
            background: #ffd700;
            color: #333;
        }
        
        .rank-badge.rank-2 {
            background: #c0c0c0;
            color: #333;
        }
        
        .rank-badge.rank-3 {
            background: #cd7f32;
            color: white;
        }
        
        .more-items {
            font-style: italic;
            opacity: 0.7;
        }
        
        .waiter-selector {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            margin-bottom: 20px;
        }
        
        .waiter-btn {
            padding: 15px;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            background: white;
            cursor: pointer;
            text-align: center;
            font-weight: bold;
            transition: all 0.3s;
        }
        
        .waiter-btn.selected {
            border-color: #667eea;
            background: #667eea;
            color: white;
        }
        
       .table-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

/* ToGo Button soll die ganze Breite einnehmen */
.table-btn.togo-btn {
    grid-column: 1 / -1; /* Nimmt alle verfügbaren Spalten ein */
    margin-bottom: 8px; /* Etwas Abstand zu den normalen Tisch-Buttons */
}
        
        .table-btn {
            padding: 15px;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            background: white;
            cursor: pointer;
            text-align: center;
            font-weight: bold;
            transition: all 0.3s;
            /* Verhindert Zoom beim Doppelklick auf Handy */
            touch-action: manipulation;
            user-select: none;
            -webkit-user-select: none;
            -webkit-touch-callout: none;
        }
        
        .table-btn.selected {
            border-color: #667eea;
            background: #667eea;
            color: white;
        }
        
        /* NEU: Sticky Navigation für Menü-Kategorien */
        .menu-sticky-nav {
            position: sticky;
            top: 10px;
            z-index: 100;
            display: flex;
            gap: 8px;
            margin-bottom: 20px;
            padding: 10px;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }
        
        .sticky-nav-btn {
            flex: 1;
            padding: 8px 6px;
            border: none;
            border-radius: 10px;
            font-size: 12px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            text-align: center;
            background: rgba(102, 126, 234, 0.1);
            color: #667eea;
            /* Verhindert Zoom beim Doppelklick auf Handy */
            touch-action: manipulation;
            user-select: none;
            -webkit-user-select: none;
            -webkit-touch-callout: none;
        }
        
        .sticky-nav-btn:hover {
            background: rgba(102, 126, 234, 0.2);
            transform: translateY(-1px);
        }
        
        .sticky-nav-btn:active {
            transform: translateY(0);
            background: rgba(102, 126, 234, 0.3);
        }
        
        .menu-section {
            margin-bottom: 25px;
        }
        
        .menu-section-title {
            font-size: 16px;
            font-weight: bold;
            color: #667eea;
            margin-bottom: 15px;
            padding: 10px;
            background: rgba(102, 126, 234, 0.1);
            border-radius: 8px;
            text-align: center;
        }
        
        .menu-grid {
            display: grid;
            gap: 15px;
        }
        
        .menu-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            background: #f8f9fa;
            /* Verhindert Zoom beim Doppelklick auf Handy */
            touch-action: manipulation;
            user-select: none;
            -webkit-user-select: none;
            -webkit-touch-callout: none;
        }
        
        .menu-item.selected {
            border-color: #667eea;
            background: rgba(102, 126, 234, 0.1);
        }
        
        .menu-item-info {
            flex: 1;
        }
        
        .menu-item-name {
            font-weight: bold;
            color: #333;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .menu-item-price {
            color: #666;
            margin-top: 5px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        /* V2.3: Kleineres Notiz-Icon neben dem Preis */
        .notes-icon {
            width: 20px;
            height: 20px;
            background: #667eea;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            transition: all 0.3s;
            flex-shrink: 0;
            /* Verhindert Zoom beim Doppelklick auf Handy */
            touch-action: manipulation;
            user-select: none;
            -webkit-user-select: none;
            -webkit-touch-callout: none;
        }

        .notes-icon:hover {
            background: #5a67d8;
            transform: scale(1.05);
        }

        .notes-icon.has-notes {
            background: #28a745;
            animation: notesPulse 2s infinite;
        }

        .notes-icon.has-notes:hover {
            background: #218838;
        }

        @keyframes notesPulse {
            0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
            70% { box-shadow: 0 0 0 6px rgba(40, 167, 69, 0); }
            100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
        }
        
        /* V2.3: Entferne die alte menu-item-actions Struktur */
        .quantity-controls {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .qty-btn {
            width: 35px;
            height: 35px;
            border: none;
            border-radius: 50%;
            background: #667eea;
            color: white;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            /* Verhindert Zoom beim Doppelklick auf Handy */
            touch-action: manipulation;
            user-select: none;
            -webkit-user-select: none;
            -webkit-touch-callout: none;
        }
        
        .qty-display {
            font-weight: bold;
            font-size: 18px;
            min-width: 30px;
            text-align: center;
        }
        
        .order-btn {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            width: calc(100% - 40px);
            max-width: 360px;
            padding: 18px;
            border: none;
            border-radius: 15px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            z-index: 999;
            box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
            /* Verhindert Zoom beim Doppelklick auf Handy */
            touch-action: manipulation;
            user-select: none;
            -webkit-user-select: none;
            -webkit-touch-callout: none;
        }
        
        .order-btn:hover:not(:disabled) {
            transform: translateX(-50%) translateY(-4px);
            box-shadow: 0 12px 40px rgba(102, 126, 234, 0.6);
        }
        
        .order-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: translateX(-50%);
            box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
        }
        
        /* NEU: Platz für sticky button am unteren Rand schaffen */
        .section:last-child {
            margin-bottom: 100px;
        }
        
        /* NEU: Waiter-view braucht extra Platz unten */
        #waiter-view .section:last-child {
            margin-bottom: 120px;
        }
        
        .orders-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .order-card {
            border: 2px solid #e0e0e0;
            border-radius: 15px;
            padding: 20px;
            background: #f8f9fa;
            position: relative;
        }
        
        .order-card.new {
            border-color: #ff6b6b;
            background: rgba(255, 107, 107, 0.1);
            animation: pulse 2s infinite;
        }

        /* Ausgezahlte Trinkgeld-Kacheln vollständig ausgrauen */
        .order-card.paid-out {
            opacity: 0.6;
            background: #f0f0f0 !important;
            border-color: #ccc !important;
        }

        .order-card.paid-out .order-table {
            color: #999 !important;
        }

        .order-card.paid-out .order-time {
            color: #28a745 !important;
            font-weight: bold;
        }

        .order-card.paid-out .order-waiter {
            color: #999 !important;
        }

        .order-card.paid-out .order-item {
            color: #999 !important;
        }

        .order-card.paid-out .order-item span {
            color: #999 !important;
        }
        
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.02); }
            100% { transform: scale(1); }
        }
        
        .order-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .order-table {
            font-weight: bold;
            color: #667eea;
            font-size: 18px;
        }
        
        .order-meta {
            text-align: right;
            font-size: 14px;
        }
        
        .order-waiter {
            color: #666;
            font-weight: bold;
        }
        
        .order-time {
            color: #666;
        }
        
        .order-items {
            margin-bottom: 15px;
        }
        
        .order-item {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            padding: 8px 0;
            border-bottom: 1px solid #e0e0e0;
        }
        
        .order-item:last-child {
            border-bottom: none;
        }
        
        .order-actions {
            display: flex;
            gap: 10px;
        }
        
        .action-btn {
            flex: 1;
            padding: 12px;
            border: none;
            border-radius: 10px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            /* Verhindert Zoom beim Doppelklick auf Handy */
            touch-action: manipulation;
            user-select: none;
            -webkit-user-select: none;
            -webkit-touch-callout: none;
        }
        
        .complete-btn {
            background: #28a745;
            color: white;
        }
        
        .complete-btn:hover {
            background: #218838;
        }
        
        .ready-btn {
            background: #ffc107;
            color: #333;
        }
        
        .ready-btn:hover {
            background: #e0a800;
        }
        
        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            background: #28a745;
            color: white;
            padding: 15px 20px;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            transform: translateX(400px);
            transition: transform 0.3s;
            z-index: 1000;
        }
        
        .notification.show {
            transform: translateX(0);
        }
        
        .hidden {
            display: none;
        }
        
        .login-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
        }
        
        .login-card {
            background: white;
            border-radius: 20px;
            padding: 40px;
            text-align: center;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            max-width: 350px;
            width: 90%;
        }
        
        .login-title {
            font-size: 24px;
            font-weight: bold;
            color: #333;
            margin-bottom: 30px;
        }
        
        .login-input {
            width: 100%;
            padding: 15px;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            font-size: 16px;
            margin-bottom: 20px;
            outline: none;
            transition: border-color 0.3s;
        }
        
        .login-input:focus {
            border-color: #667eea;
        }
        
        .login-btn {
            width: 100%;
            padding: 15px;
            border: none;
            border-radius: 12px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: transform 0.2s;
        }
        
        .login-btn:hover {
            transform: translateY(-2px);
        }
        
        .login-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }
        
        .station-title {
            color: #667eea;
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 10px;
        }
        
        .empty-state {
            text-align: center;
            color: #666;
            padding: 40px;
            font-style: italic;
        }
       .kassier-section {
    margin-top: 20px;
    max-width: 100%; /* Begrenzt die Breite */
}

.kassier-title {
    font-size: 18px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 15px;
    text-align: center;
}

#orders-overview {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}
.order-summary {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    max-width: 100%; /* Begrenzt die Breite */
}

.order-summary.paid {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

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

.summary-table {
    font-weight: bold;
    color: #667eea;
}

.summary-status {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
}

.status-new { background: #ffc107; color: #333; }
.status-ready { background: #17a2b8; color: white; }
.status-paid { background: #28a745; color: white; }

.summary-total {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-align: right;
    margin: 10px 0;
}

.pay-btn {
    width: 100%;
    background: #28a745;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.pay-btn:hover {
    background: #218838;
}

.pay-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}
        
.bedienung-btn {
    width: 100%;
    margin-bottom: 15px;
}

.station-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 30px;
}

.station-btn {
    min-width: auto;
}
.status-completed { background: #6c757d; color: white; }
.app-logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* Zusätzliche Styles für bessere Admin-Ansicht */
.admin-dashboard {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.admin-title {
    text-align: center;
    color: #667eea;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
}

.admin-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.admin-nav-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.admin-nav-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.admin-nav-btn:not(.active) {
    background: rgba(255,255,255,0.8);
    color: #667eea;
    border: 2px solid #e0e0e0;
}

/* NEU: Admin Station Selector - 2x2 Grid */
.admin-station-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.admin-content.hidden {
    display: none;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-data {
    text-align: center;
    color: #666;
    padding: 40px;
    font-style: italic;
}

/* Trinkgeld-Wallet Styles */
.tip-wallet {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
    margin: 0 8px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}
 .sauce-modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
        }

        .sauce-modal-content {
            background-color: white;
            margin: 10% auto;
            padding: 25px;
            border-radius: 20px;
            width: 90%;
            max-width: 400px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.3);
            text-align: center;
        }

        .sauce-modal-title {
            font-size: 18px;
            font-weight: bold;
            color: #667eea;
            margin-bottom: 20px;
        }

        .sauce-toggle-group {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            margin: 20px 0;
        }

        .sauce-btn {
            padding: 12px 8px;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            background: white;
            color: #333;
            font-size: 14px;
        }

        .sauce-btn.ketchup {
            border-color: #d32f2f;
            color: #d32f2f;
        }

        .sauce-btn.mayo {
            border-color: #666;
            color: #666;
        }

        .sauce-btn.mustard {
            border-color: #fbc02d;
            color: #bf9000;
        }

        .sauce-btn.active {
            background-color: #667eea !important;
            color: white !important;
            border-color: #667eea !important;
            transform: scale(1.05);
        }

        .sauce-modal-footer {
            display: flex;
            gap: 10px;
            margin-top: 25px;
        }

        .sauce-confirm-btn, .sauce-cancel-btn {
            flex: 1;
            padding: 12px;
            border: none;
            border-radius: 10px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
        }

        .sauce-confirm-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .sauce-cancel-btn {
            background: #f8f9fa;
            color: #666;
            border: 2px solid #e0e0e0;
        }

        .sauce-info {
            font-size: 12px;
            color: #666;
            margin-bottom: 15px;
        }

        .sauce-close-btn {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 24px;
            color: #aaa;
            cursor: pointer;
            background: none;
            border: none;
        }

        .sauce-close-btn:hover {
            color: #667eea;
        }

        /* NEU V2.2: Verbesserte Notizen-Modal Styles */
        .notes-input-container {
            margin: 20px 0;
        }

        .notes-input {
            width: 100%;
            padding: 12px;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            font-size: 14px;
            font-family: inherit;
            resize: vertical;
            min-height: 80px;
            outline: none;
            transition: border-color 0.3s;
        }

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

        .notes-counter {
            text-align: right;
            font-size: 12px;
            color: #666;
            margin-top: 5px;
        }

        .notes-counter.warning {
            color: #ff6b6b;
        }

        /* V2.2: Verbesserte Stift-Icon Position - rechts neben Quantity Controls */
        .notes-icon {
            width: 30px;
            height: 30px;
            background: #667eea;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            transition: all 0.3s;
            flex-shrink: 0;
            /* Verhindert Zoom beim Doppelklick auf Handy */
            touch-action: manipulation;
            user-select: none;
            -webkit-user-select: none;
            -webkit-touch-callout: none;
        }

        .notes-icon:hover {
            background: #5a67d8;
            transform: scale(1.05);
        }

        .notes-icon.has-notes {
            background: #28a745;
            animation: notesPulse 2s infinite;
        }

        .notes-icon.has-notes:hover {
            background: #218838;
        }

        @keyframes notesPulse {
            0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
            70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
            100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
        }

        /* NEU: Bestellungs-Auswahl Modal */
        .order-selection-modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
        }

        .order-selection-modal-content {
            background-color: white;
            margin: 10% auto;
            padding: 25px;
            border-radius: 20px;
            width: 90%;
            max-width: 450px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.3);
            text-align: center;
        }

        .order-selection-title {
            font-size: 20px;
            font-weight: bold;
            color: #667eea;
            margin-bottom: 10px;
        }

        .order-selection-subtitle {
            font-size: 14px;
            color: #666;
            margin-bottom: 20px;
        }

        .order-options {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-bottom: 20px;
        }

        .order-option-btn {
            padding: 15px;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            background: white;
            cursor: pointer;
            transition: all 0.3s;
            text-align: left;
        }

        .order-option-btn:hover {
            border-color: #667eea;
            background: rgba(102, 126, 234, 0.05);
        }

        .order-option-btn.primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-color: #667eea;
        }

        .order-option-title {
            font-weight: bold;
            font-size: 16px;
            margin-bottom: 5px;
        }

        .order-option-desc {
            font-size: 12px;
            opacity: 0.8;
        }

        .existing-orders-list {
            max-height: 200px;
            overflow-y: auto;
            margin-top: 15px;
        }

        .existing-order-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            margin-bottom: 10px;
            cursor: pointer;
            transition: all 0.3s;
        }

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

        .existing-order-item.selected {
            border-color: #667eea;
            background: rgba(102, 126, 234, 0.1);
        }

        .existing-order-info {
            flex: 1;
            text-align: left;
        }

        .existing-order-time {
            font-weight: bold;
            color: #333;
            font-size: 14px;
        }

        .existing-order-items {
            font-size: 12px;
            color: #666;
            margin-top: 2px;
        }

        .existing-order-total {
            font-weight: bold;
            color: #667eea;
            font-size: 16px;
        }

        .order-selection-footer {
            display: flex;
            gap: 10px;
            margin-top: 25px;
        }

        .order-selection-confirm, .order-selection-cancel {
            flex: 1;
            padding: 12px;
            border: none;
            border-radius: 10px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
        }

        .order-selection-confirm {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .order-selection-confirm:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .order-selection-cancel {
            background: #f8f9fa;
            color: #666;
            border: 2px solid #e0e0e0;
        }

        .order-selection-close-btn {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 24px;
            color: #aaa;
            cursor: pointer;
            background: none;
            border: none;
        }

        .order-selection-close-btn:hover {
            color: #667eea;
        }

        /* Trinkgeld-Wallet Styles */
        .tip-wallet {
            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
            color: white;
            padding: 6px 12px;
            border-radius: 15px;
            font-size: 14px;
            font-weight: bold;
            margin: 0 8px;
            box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
        }

        /* Kassier-Modal Styles */
        .payment-modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
        }

        .payment-modal-content {
            background-color: white;
            margin: 15% auto;
            padding: 25px;
            border-radius: 20px;
            width: 90%;
            max-width: 400px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.3);
            text-align: center;
        }

        .payment-modal-title {
            font-size: 18px;
            font-weight: bold;
            color: #667eea;
            margin-bottom: 20px;
        }

        .payment-info {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 10px;
            margin-bottom: 20px;
        }

        .payment-amount {
            font-size: 24px;
            font-weight: bold;
            color: #333;
            margin-bottom: 10px;
        }

        .payment-input {
            width: 100%;
            padding: 15px;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            font-size: 18px;
            text-align: center;
            margin-bottom: 15px;
            outline: none;
            transition: border-color 0.3s;
        }

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

        .tip-preview {
            background: rgba(40, 167, 69, 0.1);
            border: 2px solid #28a745;
            border-radius: 10px;
            padding: 10px;
            margin-bottom: 20px;
            font-weight: bold;
            color: #28a745;
        }

        .payment-modal-footer {
            display: flex;
            gap: 10px;
            margin-top: 25px;
        }

        .payment-confirm-btn, .payment-cancel-btn {
            flex: 1;
            padding: 12px;
            border: none;
            border-radius: 10px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
        }

        .payment-confirm-btn {
            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
            color: white;
        }

        .payment-cancel-btn {
            background: #f8f9fa;
            color: #666;
            border: 2px solid #e0e0e0;
        }

        .payment-close-btn {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 24px;
            color: #aaa;
            cursor: pointer;
            background: none;
            border: none;
        }

        .payment-close-btn:hover {
            color: #667eea;
        }

        /* Admin Dashboard Styles */
        .admin-dashboard {
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
        }

        .admin-title {
            text-align: center;
            color: #667eea;
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 30px;
        }

        .admin-nav {
            display: flex;
            gap: 10px;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }

        .admin-nav-btn {
            flex: 1;
            min-width: 120px;
            padding: 12px 16px;
            border: none;
            border-radius: 12px;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            text-align: center;
        }

        .admin-nav-btn.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }

        .admin-nav-btn:not(.active) {
            background: rgba(255,255,255,0.8);
            color: #667eea;
            border: 2px solid #e0e0e0;
        }

        .admin-content.hidden {
            display: none;
        }

        .loading-spinner {
            text-align: center;
            padding: 40px;
            color: #666;
        }

        /* Ausgezahlte Trinkgeld-Kacheln ausgrauen */
        .order-card.paid-out {
            opacity: 0.5;
            background: #f0f0f0 !important;
            border-color: #ccc !important;
        }

        .order-card.paid-out .order-table {
            color: #999 !important;
        }

        .order-card.paid-out .order-time {
            color: #28a745 !important;
            font-weight: bold;
        }

        .order-card.paid-out .order-waiter {
            color: #999 !important;
        }

        /* Auszahlungs-Modal Styles */
        .payout-modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
        }

        .payout-modal-content {
            background-color: white;
            margin: 15% auto;
            padding: 25px;
            border-radius: 20px;
            width: 90%;
            max-width: 400px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.3);
            text-align: center;
        }

        .payout-modal-title {
            font-size: 18px;
            font-weight: bold;
            color: #667eea;
            margin-bottom: 20px;
        }

        .payout-info {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 12px;
            margin-bottom: 20px;
        }

        .payout-waiter {
            font-size: 20px;
            font-weight: bold;
            color: #333;
            margin-bottom: 8px;
        }

        .payout-date {
            font-size: 14px;
            color: #666;
            margin-bottom: 15px;
        }

        .payout-amount {
            font-size: 32px;
            font-weight: bold;
            color: #28a745;
        }

        .payout-modal-footer {
            display: flex;
            gap: 10px;
            margin-top: 25px;
        }

        .payout-confirm-btn, .payout-cancel-btn {
            flex: 1;
            padding: 12px;
            border: none;
            border-radius: 10px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
        }

        .payout-confirm-btn {
            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
            color: white;
        }

        .payout-cancel-btn {
            background: #f8f9fa;
            color: #666;
            border: 2px solid #e0e0e0;
        }

        .payout-close-btn {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 24px;
            color: #aaa;
            cursor: pointer;
            background: none;
            border: none;
        }

        .payout-close-btn:hover {
            color: #667eea;
        }
        
        /* NEU: Teilzahlungs-Modal Styles */
        .partial-payment-modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
        }

        .partial-payment-modal-content {
            background-color: white;
            margin: 5% auto;
            padding: 25px;
            border-radius: 20px;
            width: 90%;
            max-width: 500px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.3);
            text-align: center;
            max-height: 90vh;
            overflow-y: auto;
        }

        .partial-payment-modal-title {
            font-size: 18px;
            font-weight: bold;
            color: #667eea;
            margin-bottom: 20px;
        }

        .partial-payment-info {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 10px;
            margin-bottom: 20px;
        }

        .partial-payment-table {
            font-size: 18px;
            font-weight: bold;
            color: #333;
            margin-bottom: 5px;
        }

        .partial-payment-items {
            max-height: 300px;
            overflow-y: auto;
            margin-bottom: 20px;
            border: 1px solid #e0e0e0;
            border-radius: 10px;
            padding: 10px;
        }

        .partial-payment-item {
            margin-bottom: 12px;
            padding: 10px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            transition: all 0.3s;
        }

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

        .partial-payment-item-label {
            display: flex;
            align-items: center;
            cursor: pointer;
            width: 100%;
        }

        .partial-payment-checkbox {
            margin-right: 12px;
            transform: scale(1.2);
            accent-color: #667eea;
        }

        .partial-payment-item-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
        }

        .partial-payment-item-name {
            font-weight: bold;
            text-align: left;
            flex: 1;
        }

        .partial-payment-item-price {
            font-weight: bold;
            color: #667eea;
            margin-left: 10px;
        }

        .partial-payment-summary {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 10px;
            margin-bottom: 20px;
        }

        .partial-payment-total {
            font-size: 20px;
            font-weight: bold;
            color: #333;
        }

        .partial-payment-modal-footer {
            display: flex;
            gap: 10px;
            margin-top: 25px;
        }

        .partial-payment-close-btn {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 24px;
            color: #aaa;
            cursor: pointer;
            background: none;
            border: none;
        }

        .partial-payment-close-btn:hover {
            color: #667eea;
        }

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

        /* NEU: Zahlungsoptionen Layout */
        .payment-options {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .pay-btn.primary {
            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
            color: white;
            font-weight: bold;
        }

        .pay-btn.secondary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            font-weight: bold;
        }

        .pay-btn.primary:disabled {
            background: #6c757d;
            cursor: not-allowed;
            opacity: 0.6;
        }

        .partial-payment-indicator {
            text-align: center;
            font-size: 12px;
            color: #28a745;
            font-weight: bold;
            margin-top: 5px;
        }

        /* NEU V2.1: Styles für Restbetrag-Anzeige */
        .payment-subtitle {
            text-align: center;
            font-size: 12px;
            color: #666;
            margin-top: 5px;
            margin-bottom: 10px;
            font-style: italic;
        }

        /* NEU: Styles für teilbezahlte Items */
        .partially-paid {
            background: rgba(255, 193, 7, 0.1);
            border-left: 3px solid #ffc107;
        }

        .partially-paid span {
            color: #856404 !important;
        }

        .fully-paid {
            background: rgba(40, 167, 69, 0.1);
            border-left: 3px solid #28a745;
            opacity: 0.7;
        }

        .fully-paid span {
            color: #28a745 !important;
            text-decoration: line-through;
        }
        
        /* Menü-Verwaltung Styles */
        .menu-info {
            text-align: center;
            color: #666;
            font-size: 14px;
            margin-bottom: 20px;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 10px;
        }
        
        .menu-category {
            margin-bottom: 30px;
        }
        
        .menu-category-title {
            font-size: 18px;
            font-weight: bold;
            color: #667eea;
            margin-bottom: 15px;
            padding: 10px;
            background: rgba(102, 126, 234, 0.1);
            border-radius: 8px;
            text-align: center;
        }
        
        .menu-items-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .menu-item-admin {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            padding: 12px;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            background: #fff;
            transition: all 0.3s;
            gap: 10px;
        }
        
        .menu-item-admin.inactive {
            opacity: 0.6;
            background: #f5f5f5;
            border-color: #ccc;
        }
        
        .menu-item-admin.active {
            border-color: #28a745;
            background: rgba(40, 167, 69, 0.05);
        }
        
        .menu-item-info {
            flex: 1;
            min-width: 0;
        }
        
        .menu-item-name {
            font-weight: bold;
            color: #333;
            font-size: 14px;
            line-height: 1.3;
            margin-bottom: 4px;
            word-wrap: break-word;
        }
        
        .menu-item-price {
            color: #666;
            font-size: 13px;
        }
        
        .menu-item-controls {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 8px;
            flex-shrink: 0;
        }
        
        .menu-item-status {
            font-size: 11px;
            font-weight: bold;
            padding: 3px 8px;
            border-radius: 12px;
            text-align: center;
            white-space: nowrap;
        }
        
        .status-active {
            background: rgba(40, 167, 69, 0.1);
            color: #28a745;
        }
        
        .status-inactive {
            background: rgba(220, 53, 69, 0.1);
            color: #dc3545;
        }
        
        .toggle-btn {
            padding: 6px 12px;
            border: none;
            border-radius: 6px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 12px;
            white-space: nowrap;
            min-width: 70px;
        }
        
        .btn-activate {
            background: #28a745;
            color: white;
        }
        
        .btn-activate:hover {
            background: #218838;
        }
        
        .btn-deactivate {
            background: #dc3545;
            color: white;
        }
        
        .btn-deactivate:hover {
            background: #c82333;
        }
        
        /* Version 1.1 - NEU: Undo Button für abholbereite Bestellungen */
        .undo-btn {
            background: #fd7e14;
            color: white;
            font-size: 12px;
        }
        
        .undo-btn:hover {
            background: #e66a00;
        }
        
        /* Responsive Design für sehr kleine Bildschirme */
        @media (max-width: 380px) {
            .menu-item-admin {
                flex-direction: column;
                align-items: stretch;
                gap: 12px;
            }
            
            .menu-item-controls {
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
            }
            
            .toggle-btn {
                flex: 1;
                max-width: 80px;
                font-size: 11px;
                padding: 5px 8px;
            }
            
            /* NEU: Anpassung für sticky navigation auf kleinen Bildschirmen */
            .sticky-nav-btn {
                font-size: 10px;
                padding: 6px 4px;
            }

            /* V2.3: Responsive Design für kleineres Notiz-Icon */
            .notes-icon {
                width: 18px;
                height: 18px;
                font-size: 9px;
            }

            .qty-btn {
                width: 30px;
                height: 30px;
                font-size: 16px;
            }

            .quantity-controls {
                gap: 8px;
            }
            
            /* NEU: Export-Buttons responsive */
            .export-buttons {
                flex-direction: column;
                align-items: center;
            }
            
            .export-btn {
                width: 100%;
                max-width: 200px;
                justify-content: center;
            }
            
            .summary-grid {
                grid-template-columns: 1fr;
            }
        }

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

        /* NEU: Gruppierte Bestellungen in der Übersicht */
        .order-group {
            border: 2px solid #667eea;
            border-radius: 15px;
            margin-bottom: 20px;
            overflow: hidden;
        }

        .order-group-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 12px 20px;
            font-weight: bold;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .order-group-table {
            font-size: 18px;
        }

        .order-group-total {
            font-size: 16px;
        }

        .order-group-orders {
            background: white;
        }

        .grouped-order {
            border-bottom: 1px solid #e0e0e0;
            padding: 15px 20px;
        }

        .grouped-order:last-child {
            border-bottom: none;
        }

        .grouped-order-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            font-size: 14px;
            color: #666;
        }

        .grouped-order-time {
            font-weight: bold;
        }

        .grouped-order-subtotal {
            color: #667eea;
            font-weight: bold;
        }

        .order-group-payment {
            background: #f8f9fa;
            padding: 15px 20px;
            border-top: 1px solid #e0e0e0;
        }

        /* Status-Anzeige für Items in der Bestellübersicht */
        .completed-item {
            background: rgba(40, 167, 69, 0.1);
            border-radius: 5px;
            border-left: 3px solid #28a745;
        }

        .completed-item span {
            color: #28a745 !important;
            opacity: 0.8;
        }

        .ready-item {
            background: rgba(255, 193, 7, 0.1);
            border-radius: 5px;
            border-left: 3px solid #ffc107;
        }

        .ready-item span {
            color: #856404 !important;
            font-weight: bold;
        }

        /* Abholung-spezifische Styles */
        .ready-pickup {
            border-color: #ffc107;
            background: rgba(255, 193, 7, 0.1);
            animation: glow-yellow 2s infinite;
        }

        @keyframes glow-yellow {
            0% { box-shadow: 0 0 5px rgba(255, 193, 7, 0.5); }
            50% { box-shadow: 0 0 20px rgba(255, 193, 7, 0.8); }
            100% { box-shadow: 0 0 5px rgba(255, 193, 7, 0.5); }
        }

        /* Station-Info in Abholung-Ansicht */
        .order-station {
            font-size: 14px;
            color: #666;
            font-weight: normal;
            margin-top: 2px;
        }

        /* Ausgegraute abholbereite Bestellungen in Stationsansichten */
        .ready-grayed {
            opacity: 0.6;
            background: #f5f5f5 !important;
            border-color: #28a745 !important;
            order: 1; /* Sortiert diese ans Ende */
        }

        .ready-grayed .order-table {
            color: #28a745 !important;
        }

        .ready-grayed .order-item span {
            color: #666 !important;
        }

        /* V1.2: Styles für die Teilzahlungs-Gruppierung */
        .partial-payment-group {
            margin-bottom: 20px;
            border: 1px solid #e0e0e0;
            border-radius: 10px;
            padding: 15px;
            background: #fafafa;
        }

        .partial-payment-group-header {
            font-size: 16px;
            color: #667eea;
            margin-bottom: 10px;
            border-bottom: 1px solid #e0e0e0;
            padding-bottom: 8px;
        }

        .partial-payment-group-items {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

/* für anpasste ansicht auskommentieren*/
/* ===================== TABLET-ANSICHT ===================== */
/*
@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    max-width: 700px;
  }

  .waiter-selector,
  .station-selector,
  .table-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mode-selector {
    flex-wrap: nowrap;
    justify-content: space-around;
  }

  .order-btn {
    max-width: 500px;
    font-size: 20px;
    padding: 20px;
  }

  .order-card {
    padding: 25px;
  }
}
*/
/* ===================== DESKTOP/LAPTOP-ANSICHT ===================== */
/*
@media (min-width: 1025px) {
  .container {
    max-width: 1000px;
  }

  .waiter-selector,
  .station-selector,
  .table-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .menu-item,
  .menu-item-admin {
    padding: 20px;
  }

  .order-btn {
    font-size: 22px;
    padding: 22px;
    max-width: 600px;
  }

  .order-card {
    padding: 30px;
  }

  .admin-dashboard {
    max-width: 1200px;
  }
}
@media (min-width: 768px) {
  #orders-overview {
    max-width: 1000px;
  }

  .order-summary {
    padding: 20px;
    font-size: 16px;
  }

  .summary-header {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .summary-table {
    font-size: 18px;
  }

  .summary-total {
    font-size: 20px;
  }

  .pay-btn {
    font-size: 16px;
    padding: 12px;
  }
}*/
/* ===== V2.5: Archiv für bezahlte Bestellungen ===== */
.orders-open-header {
    font-size: 14px;
    font-weight: bold;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px 2px;
}

.orders-archive {
    margin-top: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #f8f9fa;
    overflow: hidden;
}

.orders-archive-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    font-weight: bold;
    color: #6c757d;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.orders-archive-summary::-webkit-details-marker { display: none; }

.orders-archive-summary::after {
    content: '▸';
    margin-left: 10px;
    transition: transform 0.2s ease;
}

.orders-archive[open] .orders-archive-summary::after { transform: rotate(90deg); }

.orders-archive-summary > span:first-child { flex: 1; }

.orders-archive-total { color: #28a745; }

.orders-archive-list { padding: 0 10px 10px; }

.orders-archive .order-group {
    opacity: 0.75;
    filter: grayscale(0.4);
}

/* ===== V2.5: Live-Counter (Wildküche) ===== */
.live-counter:empty { display: none; }

.live-counter-card {
    background: white;
    border-radius: 15px;
    padding: 16px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid #667eea;
}

.live-counter-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.live-counter-title {
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-counter-time { font-size: 12px; color: #6c757d; }

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dc3545;
    display: inline-block;
    animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.live-counter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.live-counter-box {
    border-radius: 12px;
    padding: 14px 8px;
    text-align: center;
}

.live-counter-box.open { background: rgba(255, 193, 7, 0.15); color: #b8860b; }
.live-counter-box.delivered { background: rgba(40, 167, 69, 0.12); color: #28a745; }

.live-counter-num {
    font-size: 40px;
    font-weight: bold;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.live-counter-label {
    font-size: 13px;
    font-weight: bold;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-counter-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-top: 12px;
    overflow: hidden;
}

.live-counter-bar-fill {
    height: 100%;
    background: #28a745;
    transition: width 0.4s ease;
}

.live-counter-sub {
    font-size: 12px;
    color: #6c757d;
    text-align: center;
    margin-top: 8px;
}

.live-counter-items {
    margin-top: 12px;
    border-top: 1px solid #e0e0e0;
    padding-top: 8px;
}

.live-counter-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    padding: 4px 0;
}

.live-counter-item-name { color: #333; }
.live-counter-item-nums { display: flex; gap: 10px; white-space: nowrap; font-weight: bold; }
.lc-open { color: #b8860b; }
.lc-delivered { color: #28a745; }

/* ===== V2.5: Direktverkauf der Pommesbude ===== */
.self-order-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    background: #667eea;
    color: white;
    border-radius: 8px;
    padding: 2px 8px;
    margin-left: 6px;
    vertical-align: middle;
}

/* ===== V3.0: PIN-Anmeldung ===== */
.login-pin {
    letter-spacing: 4px;
    text-align: center;
}

.login-error {
    color: #dc3545;
    font-size: 14px;
    font-weight: bold;
    min-height: 18px;
    margin: -10px 0 12px;
}

/* ===== V3.1: Menü bearbeiten / anlegen ===== */
.menu-add-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

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

.btn-edit:hover { background: #5a6fd6; }

.menu-edit-content { text-align: left; }

.menu-edit-label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: #333;
    margin: 12px 0 6px;
}

.menu-edit-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    background: white;
    outline: none;
    box-sizing: border-box;
}

.menu-edit-input:focus { border-color: #667eea; }

.menu-edit-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 4px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.menu-edit-check input { width: 20px; height: 20px; flex-shrink: 0; }

.menu-edit-error {
    color: #dc3545;
    font-size: 14px;
    font-weight: bold;
    min-height: 18px;
    margin: 10px 0 4px;
}

.menu-edit-delete {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 10px;
    border: 2px solid #dc3545;
    border-radius: 10px;
    background: white;
    color: #dc3545;
    font-weight: bold;
    cursor: pointer;
}

/* ===== V3.3: Datenbank-Sicherung ===== */
.admin-backup-btn {
    display: block;
    text-align: center;
    margin: 0 0 15px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
}
.admin-backup-btn:hover { background: rgba(255, 255, 255, 0.3); }
