/* ==================== VARIABLEN ==================== */
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --success: #22c55e;
    --success-hover: #16a34a;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --warning: #f59e0b;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius: 12px;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--gray-900);
    line-height: 1.6;
}

/* ==================== LAYOUT ==================== */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

.header-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.user-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    margin-top: 12px;
    color: var(--white);
    font-weight: 500;
}

.user-display span {
    font-size: 1rem;
}

header h1 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

footer {
    text-align: center;
    margin-top: 30px;
}

footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.875rem;
}

footer a:hover {
    color: var(--white);
}

/* ==================== CARDS ==================== */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 16px;
}

/* ==================== STATUS BAR ==================== */
.status-bar {
    background: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    display: inline-block;
    font-weight: 500;
    box-shadow: var(--shadow);
    margin-top: 12px;
}

.status-bar.open {
    background: #dcfce7;
    color: #166534;
}

.status-bar.closed {
    background: #fef3c7;
    color: #92400e;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background: var(--success-hover);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: var(--danger-hover);
}

.btn-warning {
    background: var(--warning);
    color: var(--white);
}

.btn-warning:hover {
    background: #d97706;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.125rem;
    width: 100%;
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--gray-700);
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="time"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--primary);
}

.input-row {
    display: flex;
    gap: 10px;
}

.input-row input {
    flex: 1;
}

.hint {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-top: 8px;
}

/* ==================== TABS ==================== */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    background: rgba(255,255,255,0.2);
    padding: 8px;
    border-radius: var(--radius);
}

.tab {
    flex: 1;
    padding: 12px 8px;
    border: none;
    background: transparent;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    line-height: 1.2;
}

.tab:hover {
    background: rgba(255,255,255,0.1);
}

.tab-icon {
    font-size: 1.4rem;
}

.tab.active {
    background: var(--white);
    color: var(--primary);
}

.tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== RESTAURANT LIST ==================== */
.restaurant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--gray-100);
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.restaurant-item.active {
    background: #dcfce7;
    border: 2px solid var(--success);
}

.restaurant-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dish-count {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.badge {
    background: var(--success);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.restaurant-actions {
    display: flex;
    gap: 8px;
}

/* ==================== DISH GRID ==================== */
.dish-grid {
    display: grid;
    gap: 12px;
}

.dish-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--gray-100);
    border-radius: 8px;
}

.dish-info {
    display: flex;
    flex-direction: column;
}

.dish-name {
    font-weight: 500;
    font-size: 1.1rem;
}

.dish-price {
    color: var(--primary);
    font-weight: 600;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-qty {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-qty:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.quantity {
    font-size: 1.25rem;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

/* ==================== CART ==================== */
.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
}

.cart-summary {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid var(--gray-200);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: var(--gray-600);
}

.cart-service {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: var(--gray-600);
    font-style: italic;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 1.25rem;
    font-weight: 600;
    border-top: 2px solid var(--gray-900);
    margin-top: 10px;
}

/* ==================== ORDERS ==================== */
.order-item {
    background: var(--gray-100);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.order-time {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.order-details {
    padding-left: 10px;
    border-left: 3px solid var(--primary);
}

.order-total {
    margin-top: 10px;
    color: var(--primary);
}

/* ==================== SUMMARY TABLE ==================== */
.summary-table {
    width: 100%;
    border-collapse: collapse;
}

.summary-table th,
.summary-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.summary-table th {
    background: var(--gray-100);
    font-weight: 600;
}

.summary-table tfoot td {
    background: var(--gray-100);
    font-weight: 600;
}

/* ==================== MODAL ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
}

.close:hover {
    color: var(--gray-900);
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
}

.dish-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--gray-100);
    border-radius: 8px;
    margin-bottom: 8px;
}

/* ==================== SUCCESS & MESSAGES ==================== */
.success-message,
.closed-message,
.no-restaurant {
    text-align: center;
    padding: 30px;
}

.success-message h2 {
    color: var(--success);
    margin-bottom: 10px;
}

.closed-message h2 {
    color: var(--warning);
    margin-bottom: 10px;
}

.confirmation-details {
    background: var(--gray-100);
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
}

.confirmation-details .total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--gray-300);
}

.empty {
    color: var(--gray-500);
    text-align: center;
    padding: 20px;
}

.welcome-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

hr {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 20px 0;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 600px) {
    .container {
        padding: 12px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .restaurant-item {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .restaurant-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab {
        flex-direction: row;
        justify-content: center;
    }
    
    .input-row {
        flex-direction: column;
    }
}

/* ==================== ZU SPÄT BILD ==================== */
.too-late-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.too-late-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================== RESTAURANT CARD (Admin) ==================== */
.restaurant-card {
    background: var(--gray-100);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    border: 2px solid transparent;
}

.restaurant-card.active {
    background: #dcfce7;
    border-color: var(--success);
}

.restaurant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.restaurant-times {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.restaurant-times label {
    font-weight: 500;
    color: var(--gray-700);
}

.restaurant-times input[type="time"] {
    width: auto;
    padding: 8px 12px;
}

.restaurant-times span {
    color: var(--gray-500);
}

/* ==================== RESTAURANT OPTION (Mitarbeiter) ==================== */
.restaurant-option {
    background: var(--gray-100);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.restaurant-option:hover {
    background: #e0e7ff;
    border-color: var(--primary);
    transform: translateX(5px);
}

.restaurant-option-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.restaurant-option-time {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.restaurant-option-dishes {
    color: var(--primary);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* ==================== TOTAL BOX ==================== */
.total-box {
    background: var(--primary);
    color: var(--white);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.25rem;
    margin-top: 16px;
}

.order-restaurant {
    color: var(--primary);
    font-size: 0.875rem;
    margin-left: 10px;
}

/* ==================== ORDERS HEADER ==================== */
.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.orders-header h2 {
    margin: 0;
}

/* ==================== HISTORIE ==================== */
.history-accordion {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.history-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--gray-50);
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
    flex-wrap: wrap;
    gap: 10px;
}

.history-accordion-header:hover {
    background: var(--gray-100);
}

.history-accordion-header .accordion-icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
    color: var(--gray-500);
}

.history-accordion.open .accordion-icon {
    transform: rotate(180deg);
}

.history-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.history-accordion.open .history-accordion-content {
    max-height: 5000px;
}

.history-accordion-inner {
    padding: 20px;
    border-top: 1px solid var(--gray-200);
}

/* Hierarchische Historie-Styles */
.history-year > .history-accordion-header {
    background: var(--primary);
    color: white;
}

.history-year > .history-accordion-header:hover {
    background: var(--primary-hover);
}

.history-year > .history-accordion-header .history-total {
    background: white;
    color: var(--primary);
}

.history-year > .history-accordion-header .accordion-icon {
    color: white;
}

.history-month {
    margin-bottom: 8px;
}

.history-month > .history-accordion-header {
    background: var(--gray-100);
}

.history-month > .history-accordion-header:hover {
    background: var(--gray-200);
}

.history-day {
    margin-bottom: 6px;
}

.history-day > .history-accordion-header {
    background: var(--gray-50);
    padding: 12px 16px;
}

.history-day > .history-accordion-header:hover {
    background: var(--gray-100);
}

.history-day .history-accordion-inner {
    padding: 15px;
    background: white;
}

.history-item {
    background: var(--gray-100);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-300);
}

.history-date {
    font-size: 1.1rem;
}

.history-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.history-total {
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.history-restaurant {
    margin-bottom: 16px;
}

.history-restaurant h4 {
    color: var(--primary);
    margin-bottom: 8px;
}

.history-details details {
    margin-top: 12px;
}

.history-details summary {
    cursor: pointer;
    color: var(--primary);
    font-weight: 500;
}

.history-order {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background: var(--white);
    border-radius: 4px;
    margin-top: 8px;
    font-size: 0.9rem;
}

/* ==================== MITARBEITER ==================== */
.employee-card {
    background: var(--gray-100);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.employee-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.employee-header:hover {
    background: var(--gray-200);
}

.employee-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.employee-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.employee-stats {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.employee-total {
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
}

.employee-details {
    padding: 0 16px 16px 16px;
    border-top: 1px solid var(--gray-300);
    background: var(--white);
}

.employee-details table {
    margin-top: 12px;
}

/* ==================== MANUELLE BESTELLUNG ==================== */
.manual-order-form {
    background: var(--gray-100);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.manual-order-form h3 {
    margin-bottom: 16px;
    color: var(--primary);
}

.form-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

.manual-order-items {
    margin: 16px 0;
}

.manual-items-list {
    background: var(--white);
    border-radius: 8px;
    padding: 12px;
}

.manual-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
}

.manual-item:last-of-type {
    border-bottom: none;
}

.manual-total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid var(--primary);
    text-align: right;
    font-size: 1.1rem;
}

#tab-employees hr {
    margin: 24px 0;
    border: none;
    border-top: 1px solid var(--gray-300);
}

/* ==================== UMFRAGEN ==================== */
.poll-form {
    background: var(--gray-100);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.poll-form h3 {
    margin-bottom: 16px;
    color: var(--primary);
}

.poll-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}

.poll-card {
    background: var(--gray-100);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    border-left: 4px solid var(--gray-400);
}

.poll-card.active {
    border-left-color: var(--success);
}

.poll-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.poll-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

.poll-status.active {
    background: #dcfce7;
    color: #166534;
}

.poll-status.inactive {
    background: var(--gray-200);
    color: var(--gray-600);
}

.poll-actions {
    display: flex;
    gap: 8px;
}

.poll-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: var(--white);
    border-radius: 6px;
    flex-wrap: wrap;
    gap: 10px;
}

.poll-time .time-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
}

.poll-time input[type="time"] {
    padding: 4px 8px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
}

.poll-options {
    margin-bottom: 12px;
}

.poll-option {
    margin-bottom: 10px;
}

.poll-option-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.vote-count {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.poll-bar {
    height: 24px;
    background: var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
}

.poll-bar-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    transition: width 0.3s ease;
}

.poll-total {
    text-align: right;
    font-weight: 600;
    color: var(--gray-600);
}

.poll-voters {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 4px;
    padding-left: 4px;
    font-style: italic;
}

/* ==================== EINSTELLUNGEN AKKORDEON ==================== */
.settings-accordion {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.settings-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--gray-50);
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.settings-accordion-header:hover {
    background: var(--gray-100);
}

.settings-accordion-header h3 {
    margin: 0;
    color: var(--gray-700);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-accordion-header .accordion-icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
    color: var(--gray-500);
}

.settings-accordion.open .accordion-icon {
    transform: rotate(180deg);
}

.settings-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.settings-accordion.open .settings-accordion-content {
    max-height: 2000px;
    overflow: visible;
}

.settings-accordion-inner {
    padding: 20px;
    border-top: 1px solid var(--gray-200);
}

.settings-section {
    margin-bottom: 24px;
}

.settings-section h3 {
    margin-bottom: 12px;
    color: var(--gray-700);
}

.maintenance-toggle {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-300);
    transition: 0.3s;
    border-radius: 32px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #dc2626;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(28px);
}

#maintenanceStatus {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Wartungsseite für Mitarbeiter */
.maintenance-screen {
    text-align: center;
    padding: 20px;
}

.maintenance-screen img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* Umfrage für Mitarbeiter */
.poll-voting {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.poll-voting h3 {
    margin-bottom: 16px;
    color: var(--primary);
}

.poll-voting-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--gray-100);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.poll-voting-option:hover {
    background: var(--gray-200);
}

.poll-voting-option.selected {
    border-color: var(--primary);
    background: #ede9fe;
}

.poll-voting-option input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.3);
}

.poll-voting-bar {
    flex: 1;
    margin-left: 16px;
}

.poll-voting-bar .poll-bar {
    height: 20px;
}

.poll-voting-count {
    min-width: 80px;
    text-align: right;
    font-weight: 500;
    color: var(--gray-600);
}

/* ==================== LOGIN OVERLAY ==================== */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.login-box h2 {
    margin-bottom: 10px;
    color: var(--gray-900);
}

.login-box p {
    color: var(--gray-500);
    margin-bottom: 20px;
}

.login-box input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    margin-bottom: 15px;
}

.login-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.login-box .error {
    color: var(--danger);
    margin-bottom: 10px;
}

/* ==================== RABATT-BANNER ==================== */
.rabatt-banner {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white;
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow-lg);
    animation: pulse-glow 2s ease-in-out infinite;
}

.rabatt-banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rabatt-icon {
    font-size: 2.5rem;
    animation: bounce 1s ease infinite;
}

.rabatt-text {
    display: flex;
    flex-direction: column;
}

.rabatt-text strong {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.rabatt-text span {
    font-size: 1rem;
    opacity: 0.9;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(76, 175, 80, 0.8);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* 2 für 1 Aktion Animation */
@keyframes pulse2for1 {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255,193,7,0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(255,193,7,0.6);
    }
}
