/* ========================================= */
/* 1. GRUNDEINSTELLUNGEN & RESET             */
/* ========================================= */
html, body { 
    height: 100%; 
    margin: 0; 
    padding: 0; 
    -webkit-tap-highlight-color: transparent; 
    user-select: none; 
}
body { 
    background: #fdfdfd; 
    color: #22303d; 
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; 
}
.hidden { display: none !important; }

/* ========================================= */
/* 2. LAYOUT & CONTAINER                     */
/* ========================================= */
#app-container.sidebar-active main {
    padding-right: 336px;
}

/* Login Container */
#login-container { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100vw; height: 100vh; background-color: #f4f5f7; }
.login-box { background: #fff; padding: 40px; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.1); width: 100%; max-width: 360px; text-align: center; margin: 10px; }
.login-logo { max-width: 120px; margin-bottom: 10px; }
.login-slogan { color: #6a7481; margin-top: -15px; margin-bottom: 30px; font-size: 1.1em; }
.login-box h1 { display: none; }
.login-box form { display: flex; flex-direction: column; gap: 16px; }
.login-box input { padding: 14px; border-radius: 8px; border: 1px solid #ccc; font-size: 1.1em; }
.login-box button { padding: 14px; border-radius: 8px; border: none; background-color: #11695e; color: white; font-size: 1.1em; font-weight: 600; cursor: pointer; margin-top: 8px; }
.login-box p { margin-top: 20px; }
.error-message { color: #e53935; margin-top: 10px; font-weight: 500; min-height: 1.2em; }

/* ========================================= */
/* 3. NAVIGATION & SIDEBAR                   */
/* ========================================= */
.status-bar { height: 38px; background: #fdfdfd; }
.top-nav { display: flex; align-items: center; background: #fdfdfd; height: 50px; padding: 0 16px 0 0; border-bottom: 1.5px solid #f0f1f2; position: sticky; top: 0; left: 0; right: 0; z-index: 10; }
.hamburger { display: flex; flex-direction: column; justify-content: center; width: 38px; height: 38px; background: transparent; border: none; cursor: pointer; margin: 0 8px 0 2px; }
.hamburger span { display: block; height: 3.2px; background: #11695e; margin: 2.5px 0; border-radius: 2px; width: 25px; }
.active-register-display { color: #11695e; font-weight: 600; font-size: 1.1em; padding: 6px 12px; background-color: #f0faf9; border-radius: 8px; margin-left: 16px; white-space: nowrap; }

/* Seitenmenü */
.side-menu { position: fixed; left: 0; top: 0; bottom: 0; width: 250px; background: #fff; box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1); z-index: 100; transform: translateX(-100%); transition: transform 0.25s ease-out; display: flex; flex-direction: column; }
.side-menu.open { transform: translateX(0); }
.side-menu-header { padding: 16px 24px; border-bottom: 1px solid #f0f1f2; margin-bottom: 8px; }
#current-user-display { font-weight: 600; font-size: 1.1em; color: #333; }

/* Menügruppen & Footer */
.side-menu-group { padding: 8px 0; margin: 0 12px; border-bottom: 1px solid #f0f1f2; list-style: none; }
.side-menu-group:last-of-type { border-bottom: none; margin-top: auto; background: #fdfdfd; margin: 0; padding-top: 8px; }
.side-menu-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; border-top: 1px solid #f0f1f2; margin-top: 8px; }
.side-menu-footer span { font-weight: 600; font-size: 1.1em; color: #333; }
.side-menu-footer a { font-size: 1.5em; padding: 4px; color: #555; text-decoration: none; }
.side-menu-footer a:hover { color: #e53935; background-color: transparent; }

/* Menü-Links */
.side-menu li a { color: #333; text-decoration: none; font-size: 1.1em; font-weight: 500; padding: 12px 24px; display: block; border-left: 4px solid transparent; cursor: pointer; }
.side-menu li a:hover { background-color: #f9f9f9; }
.side-menu li.active > a { font-weight: 700; color: #11695e; background-color: #f0faf9; border-left-color: #11695e; }
li[data-role].hidden { display: none; }

/* Submenü */
.side-menu li.submenu-toggle > a { display: flex; justify-content: space-between; align-items: center; }
.submenu-arrow { font-size: 0.7em; transition: transform 0.2s ease-out; }
.side-menu li.submenu-toggle.open > a .submenu-arrow { transform: rotate(180deg); }
.submenu { list-style: none; padding-left: 0; margin: 0; overflow: hidden; background-color: #fcfcfc; }
.submenu.hidden { display: none; }
.submenu li a { padding-left: 48px; font-size: 1.0em; font-weight: 400; }
.submenu li.active a { font-weight: 600; }
.submenu li[data-role="admin"].hidden, .submenu li[data-role="manager"].hidden { display: none; }

/* NAV-BENACHRICHTIGUNGEN (Pulsierend) */
.nav-notification-badge {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #e53935;
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: 2px;
    border: 1.5px solid #fff;
    box-shadow: 0 0 5px rgba(229, 57, 53, 0.7);
    animation: pulse-red 1.5s infinite;
}
@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(229, 57, 53, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}

/* ========================================= */
/* 4. HAUPTBEREICH (MAIN)                    */
/* ========================================= */
main { max-width: 700px; margin: 0 auto; padding: 0 16px 120px 16px; transition: padding-right 0.3s ease; }
.main-view { display: none; padding-top: 24px; }
.main-view.visible { display: block; }

/* ========================================= */
/* 5. WARENKORB SIDEBAR                      */
/* ========================================= */
.order-sidebar {
    width: 320px;
    background-color: #fff;
    border-left: 1.5px solid #f0f1f2;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 88px);
    position: fixed;
    right: 0;
    top: 88px;
    z-index: 5;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.order-sidebar.visible { transform: translateX(0); }
.order-sidebar-header { padding: 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1.5px solid #f0f1f2; flex-shrink: 0; }
.order-sidebar-header h3 { margin: 0; font-size: 1.2em; }
.clear-cart-btn { background: none; border: none; color: #e53935; cursor: pointer; font-weight: 500; }
.order-items-list { flex-grow: 1; overflow-y: auto; padding: 8px; }
.cart-empty-msg { text-align: center; color: #888; margin-top: 40px; }
.order-item { display: flex; align-items: center; padding: 10px 8px; border-bottom: 1px solid #f9f9f9; }
.order-item-details { flex-grow: 1; }
.order-item-name { font-weight: 500; }
.order-item-price { color: #6a7481; font-size: 0.9em; }
.order-item-actions { display: flex; align-items: center; gap: 8px; }
.order-item-actions button { background: #f0f1f2; border: none; width: 28px; height: 28px; border-radius: 50%; font-size: 1.2em; cursor: pointer; line-height: 1; }
.order-item-qty { font-weight: 600; min-width: 20px; text-align: center; }
.order-sidebar-footer { padding: 16px; border-top: 1.5px solid #f0f1f2; background: #fff; flex-shrink: 0; }
.order-summary .summary-line { display: flex; justify-content: space-between; margin-bottom: 8px; }
.order-summary .summary-line.total { font-weight: bold; font-size: 1.2em; margin-top: 12px; }
.pay-main-btn { width: 100%; background: #11695e; color: #fff; border: none; border-radius: 12px; padding: 16px; font-size: 1.2em; font-weight: 600; cursor: pointer; transition: background-color 0.2s; }
.pay-main-btn:disabled { background: #ccc; cursor: not-allowed; }

/* ========================================= */
/* 6. KARTEN & KASSEN-ACTIONS                */
/* ========================================= */
/* Kassen-Top-Leiste */
.kasse-top-actions { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 10px; margin-bottom: 24px; border-bottom: 1px solid #f0f1f2; padding-bottom: 24px; }
.action-group { display: flex; gap: 8px; }
.kasse-top-actions .category-btn { padding: 10px 16px; font-size: 0.95em; border-radius: 10px; background: #fff; border: 1.5px solid #e0e4ed; color: #11695e; font-weight: 600; cursor: pointer; box-shadow: 0 2px 8px rgba(224, 228, 237, 0.2); }
.kasse-top-actions .category-btn:hover { background-color: #f0f1f2; border-color: #ccc; color: #11695e; }
.category-btn.alarm-btn { background-color: #e53935; color: white; border-color: #e53935; }
.category-btn.alarm-btn:hover { background-color: #c62828; border-color: #c62828; color: white; }
.kasse-top-actions .category-btn[style*="#0ea5e9"]:hover { background-color: #0284c7; border-color: #0284c7; color: white; }
.parked-count { display: inline-block; background-color: #11695e; color: white; font-size: 0.8em; padding: 2px 6px; border-radius: 8px; margin-left: 4px; font-weight: 700; }

/* Produkt-Karten Grid */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card { background: #fff; border: 1px solid #f0f1f2; border-radius: 12px; padding: 8px; display: flex; flex-direction: column; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; position: relative; overflow: hidden; }
.card:hover { border-color: #ccc; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); }
.card-quantity { position: absolute; top: -8px; right: -8px; background-color: #11695e; color: white; font-size: 0.9em; font-weight: 700; border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0,0,0,0.2); border: 2px solid white; z-index: 2; }
.card-image-container { height: 80px; width: 100%; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.card-image-container span { font-size: 2.5em; }
.card-text-container { display: flex; flex-direction: column; padding: 0 4px; }
.card-label { font-weight: 500; font-size: 0.95em; color: #22303d; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-price { color: #111; font-size: 1em; font-weight: 600; }

/* ========================================= */
/* 7. SUPER FINALE PAYMENT BUTTONS           */
/* ========================================= */
.payment-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 gleich große Spalten */
    gap: 16px;
    width: 100%;
    margin-top: 30px;
}

.pay-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 12px;
    border: none;
    border-radius: 24px; /* Squircle-Look */
    color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy Effekt */
    background-size: 200% auto;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pay-btn span:not(.emoji) {
    font-size: 1.1em;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 8px;
}

.pay-btn .emoji {
    font-size: 2.8em;
    margin-bottom: 4px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
    transition: transform 0.3s ease;
}

/* Verläufe */
.pay-btn.cash {
    background-image: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 10px 20px -5px rgba(5, 150, 105, 0.4);
}
.pay-btn.nfc-pay-btn {
    background-image: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
}
.pay-btn.qr-pay-btn {
    background-image: linear-gradient(135deg, #475569 0%, #1e293b 100%);
    box-shadow: 0 10px 20px -5px rgba(30, 41, 59, 0.4);
}

/* Glanz-Effekt */
.pay-btn::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

/* Hover */
.pay-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.3);
    z-index: 1;
}
.pay-btn:hover .emoji {
    transform: scale(1.15) rotate(-5deg);
}

/* Active */
.pay-btn:active {
    transform: translateY(2px) scale(0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    filter: brightness(0.9);
}

/* ========================================= */
/* 8. DASHBOARD & TABELLEN                   */
/* ========================================= */
/* Status Dots */
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.status-dot.low { background-color: #22c55e; }
.status-dot.medium { background-color: #f59e0b; }
.status-dot.high { background-color: #ef4444; }

/* Cash Action Card (Operations) */
.cash-action-card { border-left: 4px solid; padding: 12px; margin-bottom: 8px; background-color: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.cash-action-card.deposit { border-color: #11695e; }
.cash-action-card.withdrawal { border-color: #f59e0b; }
.cash-action-details { font-size: 0.9em; color: #6a7481; }
.cash-action-amount { font-weight: 700; font-size: 1.1em; }

/* Lager Tabelle */
.lager-table { width: 100%; border-collapse: separate; border-spacing: 0 10px; margin-top: 24px; }
.lager-table th, .lager-table td { padding: 14px 16px; text-align: left; font-size: 1.1em; background: #fff; box-shadow: 0 1px 4px rgba(224, 228, 237, 0.2); vertical-align: middle; }
.lager-table th { color: #11695e; font-weight: 700; font-size: 1.15em; }
.lager-table tr th:first-child, .lager-table tr td:first-child { border-radius: 14px 0 0 14px; }
.lager-table tr th:last-child, .lager-table tr td:last-child { border-radius: 0 14px 14px 0; }
/* Rechtsbündige Zahlen */
.lager-table th:nth-child(2), .lager-table td:nth-child(2),
.lager-table th:nth-child(3), .lager-table td:nth-child(3),
.lager-table th:nth-child(4), .lager-table td:nth-child(4),
.lager-table th:nth-child(5), .lager-table td:nth-child(5) { text-align: right; }

/* Stock Controls */
.stock-controls { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.stock-btn { background-color: #f0f1f2; border: none; color: #333; width: 32px; height: 32px; border-radius: 50%; font-size: 1.5em; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; }
.stock-btn:hover { background-color: #e0e1e2; }
.stock-display { font-weight: 700; font-size: 1.3em; min-width: 35px; text-align: center; color: #11695e; }

/* Dashboard Cards */
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
.summary-card { background: #fff; border: 1px solid #f0f1f2; border-radius: 12px; padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); display: flex; flex-direction: column; }
.summary-card .label { font-size: 0.9em; color: #6a7481; margin-bottom: 8px; }
.summary-card .value { font-size: 1.8em; font-weight: 600; color: #11695e; }
.summary-card.status-card.warning { background-color: #fff4f4; border-color: #e53935; }
.summary-card.status-card.warning .value { color: #e53935; }

/* ========================================= */
/* 9. LISTEN (KATALOG, KUNDEN ETC.)          */
/* ========================================= */
.katalog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.add-btn { background-color: #11695e; color: white; border: none; border-radius: 50%; width: 44px; height: 44px; font-size: 2em; line-height: 44px; text-align: center; cursor: pointer; box-shadow: 0 4px 12px rgba(17,105,94,0.2); padding: 0; }
.katalog-list { display: flex; flex-direction: column; gap: 10px; }
.katalog-item-wrapper { position: relative; overflow: hidden; border-radius: 12px; }
.katalog-item { display: flex; align-items: center; background: #fff; padding: 12px; border: 1px solid #f0f1f2; border-radius: 12px; transform: translateX(0); transition: transform 0.3s ease; z-index: 2; position: relative; touch-action: pan-y; }
.katalog-item.is-swiped { transform: translateX(-80px); }
.katalog-item-info { flex-grow: 1; overflow: hidden; }
.katalog-item-info .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.katalog-item-info .details { font-size: 0.9em; color: #6a7481; }
.katalog-item-delete { position: absolute; top: 0; right: 0; bottom: 0; width: 80px; background-color: #e53935; color: white; display: flex; align-items: center; justify-content: center; font-weight: 600; cursor: pointer; z-index: 1; }
.katalog-item-actions { display: flex; align-items: center; padding-right: 12px; gap: 8px;}
.katalog-item-edit, .katalog-item-qr, .katalog-item-nfc, .katalog-item-reset-pass { background: transparent; border: none; font-size: 1.5em; cursor: pointer; color: #6a7481; padding: 5px;}
.katalog-item-edit:hover, .katalog-item-qr:hover, .katalog-item-nfc:hover, .katalog-item-reset-pass:hover { color: #11695e; }
.katalog-item.alarm-critical { border-left: 4px solid #e53935; background-color: #fff8f8; }
.katalog-item.alarm-warning { border-left: 4px solid #fdd835; background-color: #fffdf5; }

/* Settings Card (Container für Listen) */
.settings-card { background: #fff; border: 1px solid #f0f1f2; border-radius: 16px; margin-bottom: 24px; box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.settings-card .katalog-header { padding: 16px 20px 0 20px; margin-bottom: 0; }
.settings-card .katalog-list { padding: 16px 20px 20px 20px; gap: 0; }
.settings-card .katalog-item { border: none; border-bottom: 1px solid #f0f1f2; border-radius: 0; padding-left: 4px; padding-right: 4px; }
.settings-card .katalog-item:last-child { border-bottom: none; padding-bottom: 0; }
.settings-card > p { padding: 0 20px 16px 20px; margin-top: -10px; color: #6a7481; }

/* ========================================= */
/* 10. FORMULARE & EINGABEN                  */
/* ========================================= */
.form-layout { display: flex; flex-direction: column; gap: 16px; width: 100%; margin-top: 16px; }
.form-layout input, .form-layout select, .form-layout textarea { padding: 12px; border: 1px solid #ccc; border-radius: 8px; font-size: 1em; width: 100%; box-sizing: border-box; background-color: #fff; font-family: inherit; }
.form-layout fieldset { border: 1px solid #ccc; border-radius: 8px; padding: 10px; margin: 0; }
.form-layout fieldset legend { padding: 0 5px; font-size: 0.9em; color: #6a7481; }
.form-group-inline { display: flex; align-items: center; gap: 16px; }
.checkbox-label { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.submit-btn { background-color: #11695e; color: white; padding: 14px; border: none; border-radius: 8px; font-size: 1.1em; font-weight: 600; cursor: pointer; }
.submit-btn.small { padding: 10px 20px; font-size: 1em; align-self: flex-start; }
.ai-suggest-btn { padding: 8px 12px; font-size: 0.9em; flex-shrink: 0; }
.toggle-switch-label { position: relative; display: inline-block; width: 50px; height: 28px; }
.toggle-switch-label input { opacity: 0; width: 0; height: 0; }
.toggle-switch-label span { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 28px; }
.toggle-switch-label span:before { position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + span { background-color: #11695e; }
input:checked + span:before { transform: translateX(22px); }
.search-bar-container input[type="search"] { width: 100%; padding: 12px 16px; font-size: 1.1em; border: 1.5px solid #e0e4ed; border-radius: 12px; box-sizing: border-box; box-shadow: 0 2px 8px rgba(224, 228, 237, 0.2); }
.search-bar-container input[type="search"]:focus { outline: none; border-color: #11695e; }
.meldebestand-input-group { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.meldebestand-input { width: 70px; padding: 8px; border: 1px solid #ccc; border-radius: 6px; text-align: center; font-size: 1em; font-weight: 600; }
.meldebestand-save-btn { padding: 8px 12px; font-size: 0.9em; background-color: #f0f1f2; border: none; border-radius: 6px; cursor: pointer; }
.meldebestand-save-btn:hover { background-color: #e0e1e2; }

/* ========================================= */
/* 11. MODALS & POPUPS                       */
/* ========================================= */
.modal { position: fixed; z-index: 1001; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; }
.modal.hidden { display: none; }
.modal-content { background: #fff; border-radius: 24px; padding: 20px 24px 28px 24px; width: 90vw; max-width: 380px; box-shadow: 0 2px 32px rgba(0, 0, 0, 0.1); position: relative; display: flex; flex-direction: column; align-items: center; }
.modal-close { position: absolute; top: 10px; left: 10px; background: #f0f1f2; border: none; font-size: 1.5em; color: #6a7481; cursor: pointer; width: 32px; height: 32px; border-radius: 50%; line-height: 32px; text-align: center; padding: 0; }
.modal-content h2 { margin: 10px 0 6px 0; color: #22303d; font-size: 1.32em; font-weight: 600; text-align: center;}

/* Numpad */
.numpad { margin: 0 0 10px 0; width: 100%; }
.numpad-row { display: flex; gap: 10px; margin-bottom: 8px; }
.numpad-row button { flex: 1; font-size: 2em; background: #fff; border: 1.6px solid #e6eaea; border-radius: 12px; color: #637283; padding: 16px 0; cursor: pointer; transition: background 0.1s, color 0.1s; }
.numpad-row button:active { background: #eaf7f4; color: #17877d; }

/* Payment Info in Modal */
.payment-amount { font-size: 3em; font-weight: 700; color: #22303d; margin-bottom: 4px; }
.payment-tax { font-size: 0.9em; color: #6a7481; }
.payment-calc-display { display: flex; gap: 12px; width: 100%; margin-top: 16px; margin-bottom: 20px; }
.payment-display-box { flex: 1; background: #f4f5f7; border: 1px solid #e0e4ed; border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; }
.payment-display-box label { font-size: 0.9em; color: #6a7481; font-weight: 500; margin-bottom: 2px; }
.payment-display-box span { font-size: 1.7em; font-weight: 600; color: #333; }
.payment-display-box.change { background: #f0faf9; border-color: #11695e; }
.payment-display-box.change span { color: #11695e; font-weight: 700; }
.change-label { display: none; }

/* Scanner Modal */
.scanner-content { width: 100vw; height: 100vh; background-color: black; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; }
#reader, #deposit-reader, #payout-reader, #refund-reader, #balance-check-reader { width: 90vw; max-width: 600px; border: 2px solid #ccc; border-radius: 8px; margin-bottom: 16px; aspect-ratio: 1 / 1; }
.close-scanner-btn, .cancel-btn { margin-top: 24px; padding: 12px 24px; color: white; border: none; border-radius: 8px; font-size: 1.1em; font-weight: 600; cursor: pointer; width: 90%; max-width: 600px; }
.close-scanner-btn { background-color: #e53935; }
.cancel-btn { background-color: #888; }
#nfc-write-status { font-weight: 600; margin-top: 10px; color: #11695e; font-size: 1.1em; }

/* ========================================= */
/* 12. SONSTIGES & RESPONSIVE                */
/* ========================================= */
/* Toast Notification */
.toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); padding: 12px 20px; border-radius: 12px; background-color: #333; color: white; font-weight: 500; z-index: 2000; opacity: 0; transition: opacity 0.3s, bottom 0.3s; pointer-events: none; }
.toast.show { opacity: 1; bottom: 100px; }
.toast.success { background-color: #11695e; }
.toast.error { background-color: #e53935; }

.no-alarms-msg, .no-data-msg { text-align: center; padding: 40px 20px; color: #6a7481; }

/* Mobile Bottom Bar */
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; background: transparent; display: none; justify-content: center; align-items: center; z-index: 10; padding: 0 16px 24px 16px; pointer-events: none; }
.bottom-bar .pay-main-btn { background: #11695e; color: #fff; border: none; border-radius: 14px; width: 100%; max-width: 668px; font-weight: 600; box-shadow: 0 4px 24px rgba(17, 105, 94, 0.2); display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: background 0.18s, opacity 0.3s, transform 0.3s; padding: 12px 20px; pointer-events: auto; opacity: 0; transform: translateY(20px); }
.bottom-bar .pay-main-btn.visible { opacity: 1; transform: translateY(0); }
.cart-total-display { display: flex; flex-direction: column; align-items: flex-start; }
#cart-sum-bottom { font-size: 1.4em; }
.cart-tax { font-size: 0.8em; font-weight: 400; opacity: 0.8; }
.bottom-count { font-size: 1.1em; font-weight: 500; padding: 6px 14px; background: rgba(255, 255, 255, 0.2); border-radius: 8px; }

/* Media Queries */
@media (max-width: 1100px) {
    #app-container.sidebar-active main { padding-right: 16px; }
    .order-sidebar { display: none; }
    .bottom-bar { display: flex; }
}

@media (max-width: 380px) {
    .payment-actions { gap: 8px; }
    .pay-btn { padding: 16px 8px; }
    .pay-btn .emoji { font-size: 2.2em; }
    .pay-btn span:not(.emoji) { font-size: 0.95em; }
}

@media print {
    body > *:not(.print-container) { display: none !important; }
    .print-container { display: block !important; }
}

/* ========================================= */
/* 13. NEUE ALARM-STILE (HINZUGEFÜGT)       */
/* ========================================= */
.quick-reply-btn {
    font-size: 0.85em !important;
    padding: 6px 10px !important;
    background-color: #f0f1f2;
    border: 1px solid #ccc !important;
    color: #333 !important;
    box-shadow: none !important;
}

.quick-reply-btn:hover {
    background-color: #e0e4ed !important;
    border-color: #11695e !important;
}

/* Hervorhebung der Antwortbox in der Alarmliste */
.alarm-response-box {
    margin-top: 10px; 
    padding: 10px; 
    border-left: 4px solid #0d9488; 
    background-color: #f0faf9; 
    border-radius: 4px;
    font-size: 0.95em;
}