/* ============================================================
   eNOTE – Soft-UI / Neumorphismus Design-System
   Weiche Doppelschatten, Pill-Formen, Navy + Teal
   ============================================================ */
:root {
    --enote-primary: #1e3a8a;
    --enote-primary-dark: #172554;
    --enote-primary-light: #2f4ec9;
    --enote-accent: #0d9488;
    --enote-bg: #e8eef5;                    /* weiche Grundfläche */
    --enote-surface: #e8eef5;               /* Neumorphismus: Surface = Hintergrund */
    --enote-text: #1b2640;
    --enote-text-muted: #64748b;
    --enote-border: #d6deea;
    --enote-radius: 1.1rem;
    --enote-radius-lg: 1.75rem;
    --enote-radius-pill: 999px;
    /* Neumorphismus-Doppelschatten (hell + dunkel) – Highlight dezent, kein weißer Fleck */
    --enote-neu-out: 9px 9px 18px #c9d3e2, -6px -6px 14px #f1f5fa;
    --enote-neu-out-sm: 4px 4px 10px #cdd6e4, -3px -3px 8px #f1f5fa;
    --enote-neu-in: inset 4px 4px 10px #cdd6e4, inset -4px -4px 10px #ffffff;
    --enote-shadow-lg: 0 24px 60px rgba(23, 37, 84, .22);
    --enote-gradient: linear-gradient(135deg, #172554 0%, #1e3a8a 55%, #0d9488 130%);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--enote-bg);
    color: var(--enote-text);
    -webkit-tap-highlight-color: transparent;
}

/* Eingefärbte, schlanke Scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--enote-bg); }
::-webkit-scrollbar-thumb { background: #a5b4cf; border-radius: 999px; border: 2px solid var(--enote-bg); }
::-webkit-scrollbar-thumb:hover { background: var(--enote-primary); }
* { scrollbar-width: thin; scrollbar-color: #a5b4cf var(--enote-bg); }

/* Sanfte Seiten-Animation */
.enote-main > * { animation: enote-fadein .35s ease; }
@@keyframes enote-fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Überschriften nie mit Fokus-Rahmen markieren (Programm-/Tastaturfokus bei Navigation) */
h1:focus, h2:focus, h3:focus, h4:focus, [tabindex="-1"]:focus { outline: none; }

/* Buttons nie überlang: nur so breit wie nötig, außer explizit .enote-btn-lg */
.enote-btn { width: fit-content; max-width: 100%; }

/* --- Passwort-Auge --- */
.enote-pw-wrap { position: relative; display: flex; }
.enote-pw-wrap input { width: 100%; padding-right: 3.4rem; }
.enote-pw-eye {
    position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
    border: none; background: transparent; cursor: pointer; font-size: 1.5rem;
    width: 2.6rem; height: 2.6rem; display: grid; place-items: center;
    border-radius: .6rem; line-height: 1; opacity: .7;
    transition: opacity .15s, background .15s;
}
.enote-pw-eye:hover { opacity: 1; background: rgba(30, 58, 138, .08); }
.enote-pw-eye:active { transform: translateY(-50%) scale(.92); }


/* Auth-Buttons kompakt (nicht volle Breite) */
.auth-form .btn-primary, .auth-form .enote-btn-primary { width: auto; min-width: 11rem; justify-self: start; }

/* Karten-/Element-Hover sanft */
.enote-item, .enote-feature, .enote-tile { transition: transform .18s ease, box-shadow .2s ease; }
.enote-item:hover { transform: translateY(-2px); }



/* ============ AUTH (Login / Register) – modern, handy-optimiert ============ */
.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--enote-surface);
}

.auth-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
    padding: 3rem;
    background: var(--enote-gradient);
    color: #fff;
    overflow: hidden;
}
.auth-hero::before, .auth-hero::after {
    content: ""; position: absolute; border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}
.auth-hero::before { width: 20rem; height: 20rem; top: -6rem; right: -6rem; }
.auth-hero::after { width: 14rem; height: 14rem; bottom: -4rem; left: -3rem; }
.auth-hero-logo {
    width: 3.5rem; height: 3.5rem; border-radius: 1rem;
    background: rgba(255, 255, 255, .2); backdrop-filter: blur(6px);
    display: grid; place-items: center; font-size: 1.5rem; font-weight: 800;
}
.auth-hero h1 { margin: 0; font-size: 2.5rem; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.auth-hero p { margin: 0; font-size: 1.05rem; opacity: .92; max-width: 24rem; line-height: 1.6; }
.auth-hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.auth-hero-points li { display: flex; gap: .6rem; align-items: center; font-weight: 500; }
.auth-hero-points .check {
    width: 1.5rem; height: 1.5rem; border-radius: 50%; flex-shrink: 0;
    background: rgba(255, 255, 255, .25); display: grid; place-items: center; font-size: .8rem;
}

.auth-panel { display: grid; place-items: center; padding: 2rem 1.5rem; overflow-y: auto; background: var(--enote-bg); }
.auth-card {
    width: 100%; max-width: 26rem; background: var(--enote-surface);
    border-radius: var(--enote-radius-lg); padding: 2.4rem;
    box-shadow: var(--enote-neu-out); border: none;
}
.auth-card h1 { margin: 0 0 .35rem; font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; }
.auth-subtitle { margin: 0 0 1.5rem; color: var(--enote-text-muted); font-size: .95rem; line-height: 1.5; }

.auth-form { display: grid; gap: 1.1rem; }
.auth-form label { display: grid; gap: .4rem; font-weight: 600; font-size: .88rem; color: var(--enote-text); }
.auth-form input {
    width: 100%; padding: .85rem 1.1rem; font-size: 1rem;
    border: none; border-radius: var(--enote-radius-pill);
    background: var(--enote-surface); color: var(--enote-text);
    box-shadow: var(--enote-neu-in);
    transition: box-shadow .2s;
}
.auth-form input:focus {
    outline: none;
    box-shadow: var(--enote-neu-in), 0 0 0 3px rgba(30, 58, 138, .18);
}
.auth-form small { font-weight: 400; color: var(--enote-text-muted); }
.auth-form .checkbox { display: flex; align-items: center; gap: .55rem; font-weight: 500; }
.auth-form .checkbox input { width: 1.1rem; height: 1.1rem; accent-color: var(--enote-primary); }

.btn-primary {
    padding: .8rem 1.4rem; border: none; border-radius: var(--enote-radius-pill);
    background: var(--enote-gradient); color: #fff;
    font-size: 1rem; font-weight: 700; cursor: pointer;
    box-shadow: 0 8px 20px rgba(23, 37, 84, .35);
    transition: transform .15s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(23, 37, 84, .45); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .7; cursor: wait; transform: none; }

.alert { padding: .8rem 1rem; border-radius: .8rem; font-size: .9rem; font-weight: 500; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.alert-info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

/* Hinweis-Dialog: offene Kasse wiederhergestellt */
.enote-wiederhergestellt { display: grid; gap: .7rem; }
.enote-wiederhergestellt-text { margin: 0; color: var(--enote-text); font-weight: 600; }
.enote-wiederhergestellt-zeile { display: flex; justify-content: space-between; align-items: center; gap: .8rem; background: var(--enote-surface); padding: .7rem 1rem; border-radius: var(--enote-radius); box-shadow: var(--enote-neu-in); }
.enote-wiederhergestellt-zeile span { color: var(--enote-text-muted); font-weight: 600; }
.enote-wiederhergestellt-soll strong { color: var(--enote-primary); font-size: 1.15rem; }

.auth-footer { margin-top: 1.4rem; font-size: .9rem; color: var(--enote-text-muted); text-align: center; }
.auth-footer a { color: var(--enote-primary-dark); font-weight: 700; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* Handy: Hero ausblenden, Formular zentrieren */
@media (max-width: 860px) {
    .auth-page { grid-template-columns: 1fr; }
    .auth-hero { display: none; }
    .auth-panel { padding: 1.5rem 1rem; }
    .auth-card { box-shadow: none; border: none; padding: 1.5rem .5rem; }
}


/* --- Layout --- */
.enote-layout {
    height: 100vh;
    height: 100dvh;
    overflow: hidden; /* Seite scrollt nicht; einzelne Bereiche scrollen intern */
    display: flex;
    flex-direction: column;
}

.enote-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 1.4rem;
    background: var(--enote-bg);
    box-shadow: 0 6px 18px #cdd6e4;
}
.enote-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.enote-brand-icon {
    display: grid; place-items: center;
    width: 2.4rem; height: 2.4rem;
    border-radius: .9rem;
    background: var(--enote-gradient); color: #fff; font-weight: 800; font-size: .9rem;
    box-shadow: var(--enote-neu-out-sm);
}
.enote-brand-name { font-weight: 800; font-size: 1.15rem; color: var(--enote-text); letter-spacing: .02em; }
.enote-topbar-actions { display: flex; align-items: center; gap: .6rem; min-width: 0; }

/* Laden-Umschalter in der Topbar */
.enote-salon-switcher { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.enote-salon-switcher-ico { font-size: 1.05rem; }
.enote-salon-switcher .enote-select2 { min-width: 10rem; max-width: 16rem; }
.enote-user { font-size: .9rem; color: var(--enote-text-muted); }
.enote-topbar-actions form { margin: 0; }

/* --- User-Menü (Avatar + Dropdown: Profil + Logout) --- */
.enote-usermenu { position: relative; }
.enote-avatar-btn {
    border: none; background: transparent; cursor: pointer; padding: 0;
    border-radius: 50%; box-shadow: var(--enote-neu-out-sm);
    transition: transform .15s, box-shadow .2s;
}
.enote-avatar-btn:hover { transform: translateY(-1px); box-shadow: var(--enote-neu-out); }
.enote-avatar {
    display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
    background: var(--enote-gradient); color: #fff; font-weight: 800; font-size: .95rem;
}
.enote-usermenu-popup {
    position: absolute; right: 0; top: calc(100% + .6rem); z-index: 1500;
    min-width: 13rem; background: var(--enote-surface); border-radius: var(--enote-radius);
    box-shadow: var(--enote-shadow-lg); padding: .5rem; display: grid; gap: .15rem;
    animation: enote-fadein .18s ease;
}
.enote-usermenu-name {
    padding: .6rem .8rem; font-weight: 700; font-size: .88rem; color: var(--enote-text);
    border-bottom: 1px solid var(--enote-border); margin-bottom: .25rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 16rem;
}
.enote-usermenu-link {
    display: flex; align-items: center; gap: .5rem; width: 100%;
    padding: .6rem .8rem; border: none; background: transparent; border-radius: .6rem;
    color: var(--enote-text); text-decoration: none; font-size: .9rem; font-weight: 600;
    cursor: pointer; text-align: left; transition: background .15s;
}
.enote-usermenu-link:hover { background: rgba(30, 58, 138, .08); }
.enote-usermenu-danger { color: #b91c1c; }
.enote-usermenu form { margin: 0; }

.enote-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .6rem 1.3rem; border-radius: var(--enote-radius-pill); border: none;
    font-size: .92rem; font-weight: 700; cursor: pointer; text-decoration: none;
    background: var(--enote-surface); color: var(--enote-text);
    box-shadow: var(--enote-neu-out-sm);
    transition: transform .15s ease, box-shadow .2s ease;
    width: fit-content; max-width: 100%;
}
.enote-btn:hover { transform: translateY(-2px); box-shadow: var(--enote-neu-out); }
.enote-btn:active { transform: translateY(0); box-shadow: var(--enote-neu-in); }
.enote-btn-primary { background: var(--enote-gradient); color: #fff; box-shadow: 0 8px 20px rgba(23, 37, 84, .35); }
.enote-btn-primary:hover { box-shadow: 0 12px 26px rgba(23, 37, 84, .45); }
.enote-btn-ghost { background: var(--enote-surface); color: var(--enote-text); }
.enote-btn-abbrechen { background: var(--enote-surface); color: #b91c1c; box-shadow: var(--enote-neu-out-sm); }
.enote-btn-abbrechen:hover { color: #991b1b; box-shadow: var(--enote-neu-out); }
.enote-btn:disabled { opacity: .65; cursor: wait; transform: none; }
.enote-btn-sm { padding: .4rem .85rem; font-size: .8rem; }

.enote-body { flex: 1; display: flex; min-height: 0; }

.enote-nav-desktop {
    display: flex; flex-direction: column; gap: .35rem;
    width: 14rem; padding: 1.1rem .85rem;
    background: var(--enote-bg);
    /* sichtbare Trennung zum Hauptinhalt rechts */
    border-right: 1px solid var(--enote-border);
    box-shadow: 6px 0 18px rgba(205, 214, 228, .45);
}
.enote-nav-link {
    padding: .7rem 1rem; border-radius: var(--enote-radius-pill);
    color: var(--enote-text); text-decoration: none; font-weight: 600; font-size: .95rem;
    transition: box-shadow .18s ease, color .18s ease, transform .15s ease;
}
.enote-nav-link:hover { box-shadow: var(--enote-neu-in); }
.enote-nav-link.active { background: var(--enote-gradient); color: #fff; box-shadow: 0 8px 18px rgba(23, 37, 84, .3); }

/* Untergruppe (z. B. Administration → Facturation/Journaux) */
.enote-nav-subgroup {
    display: flex; flex-direction: column; gap: .2rem;
    margin-left: 1.1rem; padding-left: .9rem;
    border-left: 2px solid var(--enote-border);
}
.enote-nav-sub { font-size: .88rem; padding: .5rem .9rem; }

/* Gruppen-Label in der Sidebar (z. B. Vente / Gestion / Compte) */
.enote-nav-group-label {
    margin: .9rem 0 .15rem .3rem; font-size: .7rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .06em; color: var(--enote-text-muted);
    /* sichtbare Trennung zur vorherigen Gruppe */
    padding-top: .8rem; border-top: 1px solid var(--enote-border);
}

.enote-main { flex: 1; min-width: 0; min-height: 0; padding: 1.5rem; overflow-x: hidden; display: flex; flex-direction: column; }

.enote-footer {
    flex-shrink: 0;
    padding: 1rem 1.5rem .65rem;
    border-top: 1px solid var(--enote-border);
    background: linear-gradient(115deg, rgba(30, 58, 138, .035), rgba(13, 148, 136, .055));
}
.enote-footer-inner, .enote-footer-bottom {
    width: 100%; max-width: 90rem; margin-inline: auto;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.enote-footer-brand { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.enote-footer-monogram {
    display: flex; align-items: baseline; justify-content: center; flex-shrink: 0;
    width: 2.8rem; height: 2.8rem; padding-top: .45rem; border-radius: .9rem;
    background: var(--enote-gradient); color: #fff; font-size: 1.4rem; font-weight: 800;
    box-shadow: var(--enote-neu-out-sm);
}
.enote-footer-monogram span { color: #5eead4; }
.enote-footer-name { color: var(--enote-primary-dark); font-size: 1.05rem; font-weight: 800; text-decoration: none; }
.enote-footer-brand p { margin: .2rem 0 0; color: var(--enote-text-muted); font-size: .8rem; }
.enote-footer-contacts { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0; font-style: normal; min-width: 0; }
.enote-footer-contacts a {
    display: flex; align-items: center; gap: .6rem; min-height: 44px; min-width: 0;
    padding: .45rem .8rem; border: 1px solid var(--enote-border); border-radius: .9rem;
    color: var(--enote-text); text-decoration: none; font-size: .82rem;
    background: var(--enote-surface); transition: box-shadow .18s ease, border-color .18s ease;
}
.enote-footer-contacts a:hover { box-shadow: var(--enote-neu-out-sm); border-color: var(--enote-accent); }
.enote-footer-contacts a > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.enote-footer-contacts small { display: block; margin-bottom: .15rem; color: var(--enote-text-muted); font-size: .68rem; }
.enote-footer-icon { flex-shrink: 0; color: var(--enote-primary); font-size: 1.2rem; font-weight: 700; }
.enote-footer a:focus-visible { outline: 2px solid var(--enote-accent); outline-offset: 4px; border-radius: .5rem; }
.enote-footer-bottom { flex-wrap: wrap; margin-top: .8rem; color: var(--enote-text-muted); font-size: .7rem; }
@media (max-width: 1024px) {
    .enote-footer-inner { flex-wrap: wrap; }
    .enote-footer-contacts { flex: 1 1 auto; }
}
@media (max-width: 640px) {
    .enote-footer { padding: 1.1rem 1rem calc(6.5rem + env(safe-area-inset-bottom)); }
    .enote-footer-contacts { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); }
    .enote-footer-bottom { gap: .4rem; }
}

/* Auf der Caisse-Seite: keine Seiten-Scrollbar, nur Listen scrollen intern */
.enote-caisse {
    display: flex; flex-direction: column; gap: 1rem;
    flex: 1; min-height: 0; /* volle Höhe des Main-Bereichs nutzen */
}
.enote-caisse-body {
    display: grid; grid-template-columns: 1fr 22rem; grid-template-rows: minmax(0, 1fr);
    gap: 1rem; flex: 1; min-height: 0; /* Zeile füllt die verfügbare Höhe, wächst nicht über den Inhalt hinaus */
}
@media (max-width: 900px) { .enote-caisse-body { grid-template-columns: 1fr; grid-template-rows: none; } }

/* Katalog-Spalte: volle Höhe, Tiles füllen den Rest unterhalb von Scan + Filter */
.enote-caisse-katalog { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.enote-caisse-katalog .enote-tiles { flex: 1; min-height: 0; }

/* Handy-Bottom-Nav standardmäßig ausblenden (Desktop/Tablet zeigen Sidebar) */
.enote-nav-mobile { display: none; }

/* --- Modal --- */
.enote-modal-backdrop {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    background: rgba(15, 23, 42, .5); padding: 1rem;
}
.enote-modal {
    width: 100%; background: var(--enote-bg); border-radius: var(--enote-radius-lg);
    box-shadow: var(--enote-shadow-lg);
    max-height: calc(100vh - 3rem); display: flex; flex-direction: column;
}
.enote-modal-md { max-width: 32rem; }
.enote-modal-lg { max-width: 48rem; }
.enote-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--enote-border);
}
.enote-modal-header h2 { margin: 0; font-size: 1.25rem; }
.enote-icon-btn {
    border: none; background: #f3f4f6; color: #6b7280;
    width: 2.25rem; height: 2.25rem; border-radius: 999px;
    font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.enote-modal-body { padding: 1.25rem 1.5rem; overflow-y: auto; }
.enote-modal-error { margin: 1rem 1.5rem 0; }
.enote-modal-footer { padding: 1rem 1.5rem; border-top: 1px solid #eef2f7; display: flex; justify-content: flex-end; gap: .6rem; }

/* --- Toast --- */
.enote-toast {
    position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%);
    z-index: 2400; display: flex; align-items: center; gap: .75rem;
    padding: .8rem 1.1rem; border-radius: 999px; color: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .3); max-width: min(92vw, 30rem);
}
.enote-toast-erfolg { background: #047857; }
.enote-toast-fehler { background: #b91c1c; }
.enote-toast-info { background: #1f2937; }
.enote-toast-close { border: none; background: transparent; color: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; }

/* --- CollapsibleCard --- */
.enote-card { background: var(--enote-surface); border: none; border-radius: var(--enote-radius-lg); box-shadow: var(--enote-neu-out-sm); }
.enote-card-header {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    background: none; border: none; padding: 1.1rem 1.4rem; cursor: pointer; text-align: left;
}
.enote-card-titles h2 { margin: 0; font-size: 1.05rem; }
.enote-card-titles p { margin: .15rem 0 0; color: var(--enote-text-muted); font-size: .88rem; }
.enote-card-chevron { color: var(--enote-text-muted); transition: transform .25s; }
.enote-card-chevron.open { transform: rotate(180deg); }
.enote-card-body { display: none; padding: 0 1.4rem 1.4rem; border-top: 1px solid var(--enote-border); }
.enote-card-body.open { display: block; padding-top: 1.4rem; }

/* --- Spinner --- */
.enote-spinner {
    width: 1rem; height: 1rem; border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
    animation: enote-spin .7s linear infinite;
}
@@keyframes enote-spin { to { transform: rotate(360deg); } }

/* --- Verwaltungsseiten --- */
.enote-page { max-width: 72rem; margin: 0 auto; }
.enote-page-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem;
}
.enote-page-header h1 { margin: 0; font-size: 1.5rem; }
.enote-page-header p { margin: .25rem 0 0; color: #6b7280; }
.enote-empty { color: var(--enote-text-muted); background: var(--enote-surface); padding: 1.5rem; border-radius: var(--enote-radius-lg); box-shadow: var(--enote-neu-in); }

.enote-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.enote-item { background: var(--enote-surface); border: none; border-radius: var(--enote-radius-lg); padding: 1.15rem 1.25rem; display: grid; gap: .6rem; box-shadow: var(--enote-neu-out-sm); }
.enote-item-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.enote-item-head strong { font-size: 1.02rem; }
.enote-price { font-weight: 800; color: var(--enote-primary); }
.enote-item-desc { margin: 0; color: var(--enote-text-muted); font-size: .9rem; }
.enote-item-meta { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.enote-item-actions { display: flex; gap: .5rem; margin-top: .25rem; }

.enote-tag { font-size: .72rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; background: #dbe6f5; color: var(--enote-primary); box-shadow: var(--enote-neu-in); }
.enote-tag-warn { background: #fdeede; color: #c2410c; }
.enote-tag-off { background: #e2e8f0; color: var(--enote-text-muted); }
.enote-bestand { font-size: .85rem; color: var(--enote-text); }
.enote-bestand-warn { color: #c2410c; font-weight: 700; }

.enote-form { display: grid; gap: .9rem; }
.enote-form label { display: grid; gap: .35rem; font-weight: 600; font-size: .9rem; color: var(--enote-text); }
.enote-form input, .enote-select, .enote-form textarea {
    width: 100%; padding: .75rem 1rem; border: none;
    border-radius: var(--enote-radius-pill); font-size: 1rem;
    background: var(--enote-surface); color: var(--enote-text);
    box-shadow: var(--enote-neu-in);
    transition: box-shadow .18s ease;
}
.enote-form textarea { border-radius: var(--enote-radius); resize: vertical; min-height: 4.5rem; font-family: inherit; line-height: 1.4; }
.enote-form input:focus, .enote-select:focus, .enote-form textarea:focus { outline: none; box-shadow: var(--enote-neu-in), 0 0 0 3px rgba(30, 58, 138, .18); }
.enote-form .checkbox { display: flex; align-items: center; gap: .55rem; font-weight: 500; }
.enote-form .checkbox input { width: 1.1rem; height: 1.1rem; accent-color: var(--enote-primary); }

.enote-danger { color: #b91c1c; }
.enote-danger-bg { background: #dc2626; }

.enote-radio-row { display: flex; gap: 1.25rem; }

/* --- Kasse --- */
.enote-muted { color: var(--enote-text-muted); }
.enote-caisse-start { max-width: 30rem; margin: 2rem auto; background: var(--enote-surface); padding: 2rem; border-radius: var(--enote-radius-lg); box-shadow: var(--enote-neu-out); }
.enote-caisse-start h1 { margin: 0 0 .25rem; }
.enote-caisse-hinweis { max-width: 28rem; margin: 3rem auto; text-align: center; }

.enote-kassierer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: .7rem; margin-bottom: .5rem; }
.enote-kassierer-btn {
    padding: 1rem .8rem; border: none; border-radius: var(--enote-radius-lg);
    background: var(--enote-surface); font-weight: 700; cursor: pointer; font-size: .95rem;
    box-shadow: var(--enote-neu-out-sm); transition: transform .15s, box-shadow .2s;
}
.enote-kassierer-btn:hover { transform: translateY(-2px); box-shadow: var(--enote-neu-out); }
.enote-kassierer-btn.gewaehlt { background: var(--enote-gradient); color: #fff; box-shadow: 0 8px 18px rgba(23, 37, 84, .3); }
.enote-pin-input { text-align: center; font-size: 1.5rem; letter-spacing: .4em; }

/* Großer Button (mehr Padding/Schrift), aber NICHT automatisch volle Breite */
.enote-btn-lg { padding: 1rem 1.75rem; font-size: 1.05rem; width: auto; }

/* In der Kasse darf der Encaisser-Button bewusst breit sein */
.enote-ticket .enote-btn-lg, .enote-caisse-start .enote-btn-lg { width: 100%; }

.enote-caisse-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; }
.enote-caisse-header h1 { margin: 0; font-size: 1.4rem; }
.enote-caisse-sitzung-info { display: grid; gap: .1rem; }
.enote-caisse-sitzung-titel { font-weight: 800; font-size: 1.05rem; color: var(--enote-text); }
.enote-caisse-header-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Katalog-Spalte: Tiles scrollen intern, Seite selbst scrollt nicht mit */
.enote-tiles-wrap { min-height: 0; }
.enote-tiles {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .85rem;
    align-content: start;
    height: 100%; overflow-y: auto; overscroll-behavior: contain;
    padding: .15rem; /* Platz für Schatten */
    /* Scrollbar ausblenden (Browser-Scrollbar vermeiden) */
    scrollbar-width: none; -ms-overflow-style: none;
}
.enote-tiles::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* Ticket: volle Höhe der Spalte; NUR die Positionsliste scrollt, Rest bleibt fix */
.enote-ticket {
    background: var(--enote-surface); border: none; border-radius: var(--enote-radius-lg);
    padding: 1.2rem 1.35rem; display: flex; flex-direction: column; gap: .9rem;
    box-shadow: var(--enote-neu-out);
    min-height: 0; overflow: hidden; /* kein Scrollen des ganzen Tickets; Grid-Item darf schrumpfen */
}

/* ScrollBox für die Leistungs-Positionen im Ticket */
.enote-ticket-scroll {
    flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin; scrollbar-color: #b9c6d6 transparent;
    margin: 0 -.35rem; padding: 0 .35rem; /* Schatten der Buttons nicht abschneiden */
}
.enote-ticket-scroll::-webkit-scrollbar { width: 8px; }
.enote-ticket-scroll::-webkit-scrollbar-track { background: transparent; }
.enote-ticket-scroll::-webkit-scrollbar-thumb { background: #b9c6d6; border-radius: 4px; }
.enote-ticket-scroll::-webkit-scrollbar-thumb:hover { background: #93a4ba; }
.enote-tile {
    display: flex; flex-direction: column; gap: .2rem; align-items: stretch;
    padding: .8rem .9rem .75rem; border: none; border-radius: var(--enote-radius-lg); background: var(--enote-surface);
    text-align: left; min-height: 5.4rem;
    box-shadow: var(--enote-neu-out-sm);
    user-select: none; -webkit-user-select: none;
}
.enote-tile-main { display: flex; flex-direction: column; gap: .15rem; align-items: flex-start; cursor: pointer; touch-action: manipulation; flex: 1; transition: transform .15s, box-shadow .2s; }
.enote-tile-main:active { transform: scale(.97); }
.enote-tile:hover { transform: translateY(-2px); box-shadow: var(--enote-neu-out); }
.enote-tile-name { font-weight: 700; font-size: .98rem; }
.enote-tile-price { color: var(--enote-primary); font-weight: 800; }
.enote-tile-warn { font-size: .72rem; color: #c2410c; font-weight: 700; }

.enote-ticket h2 { margin: 0; font-size: 1.15rem; }
.enote-ticket-kopf { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.enote-ticket-pos { display: grid; gap: .35rem; padding: .55rem 0; border-bottom: 1px solid var(--enote-border); }
.enote-ticket-pos-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.enote-ticket-pos-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.enote-ticket-pos-del { width: 2rem; height: 2rem; border-radius: 999px; border: none; background: var(--enote-surface); cursor: pointer; font-weight: 800; box-shadow: var(--enote-neu-out-sm); touch-action: manipulation; }
.enote-ticket-pos-del:active { box-shadow: var(--enote-neu-in); }
.enote-ticket-pos-bottom { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.enote-ticket-pos-preis { font-size: .82rem; color: var(--enote-text-muted); }
.enote-ticket-pos-actions { display: flex; align-items: center; gap: .45rem; }
.enote-ticket-pos-actions button { width: 2.5rem; height: 2.5rem; border-radius: 999px; border: none; background: var(--enote-surface); cursor: pointer; font-weight: 800; font-size: 1.1rem; box-shadow: var(--enote-neu-out-sm); touch-action: manipulation; }
.enote-ticket-pos-actions button:active { box-shadow: var(--enote-neu-in); }
.enote-ticket-pos-sum { font-weight: 800; margin-left: auto; text-align: right; }

.enote-ticket-rabatt { display: grid; gap: .5rem; padding-top: .5rem; border-top: 1px solid var(--enote-border); }
.enote-ticket-total { display: grid; gap: .25rem; padding-top: .5rem; border-top: 1px solid var(--enote-border); }
.enote-ticket-total > div { display: flex; justify-content: space-between; font-size: .92rem; color: var(--enote-text-muted); }
.enote-ticket-total .enote-total { font-size: 1.3rem; font-weight: 800; color: var(--enote-text); }

.enote-zahlart { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.enote-zahlart button { padding: 1.05rem; border: none; border-radius: var(--enote-radius-pill); background: var(--enote-surface); font-weight: 700; font-size: 1.05rem; cursor: pointer; box-shadow: var(--enote-neu-out-sm); transition: all .15s; touch-action: manipulation; }
.enote-zahlart button.aktiv { background: var(--enote-gradient); color: #fff; box-shadow: 0 8px 18px rgba(23, 37, 84, .3); }

.enote-rueckgeld { display: flex; justify-content: space-between; align-items: center; background: #d7f5e8; padding: 1rem 1.15rem; border-radius: var(--enote-radius-lg); box-shadow: var(--enote-neu-in); }
.enote-rueckgeld strong { font-size: 1.5rem; color: #047857; }

.enote-abschluss-soll { display: grid; gap: .55rem; background: var(--enote-surface); padding: .9rem 1.1rem; border-radius: var(--enote-radius-lg); box-shadow: var(--enote-neu-in); }
.enote-abschluss-soll-zeilen { display: grid; gap: .3rem; }
.enote-abschluss-soll-zeilen > div { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; color: var(--enote-text-muted); }
.enote-abschluss-soll-total { display: flex; justify-content: space-between; align-items: center; padding-top: .55rem; border-top: 1px solid var(--enote-border); }
.enote-abschluss-soll-total span { color: var(--enote-text-muted); font-weight: 600; }
.enote-abschluss-soll-total strong { font-size: 1.4rem; color: var(--enote-primary); }

/* --- Zahlungs-Buttons unten im Ticket (platzsparend, Modal-basiert) --- */
.enote-zahl-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; padding-top: .5rem; border-top: 1px solid var(--enote-border); }
.enote-zahl-btn {
    padding: 1.15rem .5rem; border: none; border-radius: var(--enote-radius-lg); cursor: pointer;
    font-weight: 800; font-size: 1.1rem; background: var(--enote-surface); color: var(--enote-text);
    box-shadow: var(--enote-neu-out-sm); transition: transform .15s, box-shadow .2s; touch-action: manipulation;
}
.enote-zahl-btn:hover { transform: translateY(-2px); box-shadow: var(--enote-neu-out); }
.enote-zahl-btn:active { transform: scale(.97); box-shadow: var(--enote-neu-in); }
.enote-zahl-bar { background: var(--enote-gradient); color: #fff; box-shadow: 0 8px 18px rgba(23, 37, 84, .3); }
.enote-zahl-karte { background: var(--enote-surface); }

/* --- Zahlungs-Modal-Inhalt --- */
.enote-zahl-modal { display: grid; gap: 1rem; }
.enote-zahl-total {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--enote-surface); padding: 1.1rem 1.25rem; border-radius: var(--enote-radius-lg);
    box-shadow: var(--enote-neu-in);
}
.enote-zahl-total span { color: var(--enote-text-muted); font-weight: 600; }
.enote-zahl-total strong { font-size: 1.7rem; color: var(--enote-text); }
.enote-zahl-input {
    text-align: center; font-size: 1.4rem; font-weight: 700; padding: .9rem;
    border: 1.5px solid var(--enote-border); border-radius: var(--enote-radius-lg);
    background: #f4f7fb; width: 100%; box-shadow: none;
}
.enote-zahl-input:focus { outline: none; border-color: var(--enote-primary); background: #fff; box-shadow: 0 0 0 3px rgba(30, 58, 138, .15); }
.enote-zahl-input::-webkit-outer-spin-button,
.enote-zahl-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.enote-zahl-input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.enote-modal-sm { max-width: 24rem; }

/* --- Verkaufshistorie in der Kasse --- */
.enote-historie-liste { display: grid; gap: .7rem; max-height: 26rem; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.enote-historie-liste::-webkit-scrollbar { width: 0; display: none; }
.enote-historie-item {
    display: flex; align-items: center; justify-content: space-between; gap: .9rem;
    padding: 1rem 1.15rem; background: var(--enote-surface); border-radius: var(--enote-radius-lg);
    box-shadow: var(--enote-neu-out-sm); transition: transform .15s, box-shadow .2s;
}
.enote-historie-item:hover { transform: translateY(-2px); box-shadow: var(--enote-neu-out); }
.enote-historie-info { display: grid; gap: .3rem; min-width: 0; flex: 1; }
.enote-historie-top { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.enote-historie-betrag { font-size: 1.2rem; font-weight: 800; color: var(--enote-text); }
.enote-tag-zahlart { box-shadow: none; }
.enote-historie-pos { color: var(--enote-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.enote-historie-reçu { flex: 0 0 auto; }

/* --- Barcode-Scan --- */
.enote-scan-box { margin-bottom: .9rem; }
.enote-scan-input {
    width: 100%; padding: 1.05rem 1.25rem; font-size: 1.05rem;
    border: none; border-radius: var(--enote-radius-pill); background: var(--enote-surface);
    box-shadow: var(--enote-neu-in);
}
.enote-scan-input:focus { outline: none; box-shadow: var(--enote-neu-in), 0 0 0 3px rgba(30, 58, 138, .18); }

/* Kategorie-Filter in der Kasse */
.enote-kat-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; }

/* Besitzer-PIN-Sperre */
.enote-pin-sperre { display: grid; place-items: center; min-height: 50vh; }
.enote-pin-sperre-card {
    max-width: 24rem; width: 100%; text-align: center;
    background: var(--enote-surface); border-radius: var(--enote-radius-lg);
    padding: 2.25rem; box-shadow: var(--enote-neu-out); display: grid; gap: .9rem; justify-items: center;
}
.enote-pin-sperre-icon { font-size: 2.4rem; }
.enote-pin-sperre-card h2 { margin: 0; font-size: 1.3rem; }
.enote-pin-sperre-card .enote-btn-primary { min-width: 12rem; }

/* Favoriten-Stern auf Tiles */
.enote-tile-wrap { position: relative; }
.enote-tile { width: 100%; }
.enote-tile-menge {
    display: flex; align-items: center; justify-content: center; gap: .4rem; margin-top: .35rem;
    padding-top: .4rem; border-top: 1px solid var(--enote-border); width: 100%;
}
.enote-tile-menge button {
    width: 2.75rem; height: 2.75rem; border: none; border-radius: 50%; cursor: pointer;
    background: var(--enote-surface); box-shadow: var(--enote-neu-out-sm); font-weight: 800; font-size: 1.3rem;
    display: grid; place-items: center; touch-action: manipulation;
}
.enote-tile-menge button:active { box-shadow: var(--enote-neu-in); }
.enote-tile-menge span { font-weight: 800; min-width: 1.4rem; text-align: center; font-size: 1.05rem; }
.enote-fav-btn {
    position: absolute; top: .4rem; right: .4rem; z-index: 2;
    width: 2rem; height: 2rem; border: none; border-radius: 50%; cursor: pointer;
    background: var(--enote-surface); box-shadow: var(--enote-neu-out-sm);
    font-size: 1rem; line-height: 1; color: #b6c0d4;
    display: grid; place-items: center; transition: color .15s, transform .15s;
}
.enote-fav-btn:hover { transform: scale(1.12); }
.enote-fav-btn.aktiv { color: #f59e0b; }


/* --- Schwebender Mini-Kassen-Button --- */
.enote-mini-caisse {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1500;
    display: flex; align-items: center; gap: .6rem;
    background: var(--enote-primary-dark); color: #fff; border: none; border-radius: 999px;
    padding: .85rem 1.25rem; font-weight: 700; cursor: pointer;
    box-shadow: 0 12px 28px rgba(30,58,138,.4);
}
.enote-mini-caisse .betrag { font-size: 1.05rem; }

/* Kassen-Modus: Navigation (Desktop + Mobile) ausblenden, volle Breite für die Kasse */
.enote-kassen-modus .enote-nav-desktop,
.enote-kassen-modus .enote-nav-mobile { display: none !important; }

/* Sperr-Button (Verwaltung wieder sperren) */
.enote-sperr-btn {
    position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 1500;
    display: flex; align-items: center; gap: .45rem;
    background: var(--enote-surface); color: var(--enote-text); border: none; border-radius: 999px;
    padding: .7rem 1.1rem; font-weight: 700; cursor: pointer;
    box-shadow: var(--enote-neu-out);
}
.enote-sperr-btn:hover { box-shadow: var(--enote-shadow-lg); }

/* ============================================================
   Kunden-Display (zweites Tablet, öffentlich)
   ============================================================ */
.enote-display-layout { min-height: 100vh; background: var(--enote-gradient); display: grid; place-items: center; padding: 1.5rem; }
.enote-display {
    width: 100%; max-width: 34rem; background: var(--enote-surface);
    border-radius: 2rem; padding: 2.5rem 2rem; box-shadow: 0 30px 80px rgba(0,0,0,.3);
    text-align: center;
}
.enote-display-logo {
    width: 4rem; height: 4rem; border-radius: 1.25rem; margin: 0 auto 1rem;
    background: var(--enote-gradient); color: #fff; display: grid; place-items: center;
    font-size: 1.6rem; font-weight: 800;
}
.enote-display h1 { margin: 0; font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.enote-display-sub { margin: .25rem 0 0; color: var(--enote-text-muted); }
.enote-display-status { padding: 2rem 0; color: var(--enote-text-muted); }
.enote-display-leer { padding: 2.5rem 0; }
.enote-display-leer-ico { font-size: 3rem; margin-bottom: 1rem; }
.enote-display-leer p { color: var(--enote-text-muted); font-size: 1.05rem; }

.enote-display-ticket { text-align: left; display: grid; gap: .5rem; margin-top: 1.5rem; }
.enote-display-pos { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.15rem; padding: .4rem 0; }
.enote-display-pos-name { font-weight: 600; }
.enote-display-pos-sum { font-weight: 800; }
.enote-display-rabatt { color: #047857; }
.enote-display-trennlinie { border-top: 2px dashed var(--enote-border); margin: .5rem 0; }
.enote-display-total {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: .75rem; border-top: 2px solid var(--enote-border);
    font-size: 1.3rem;
}
.enote-display-total strong { font-size: 2.25rem; color: var(--enote-primary); }
.enote-display-merci { text-align: center; padding-top: 1.25rem; }
.enote-display-merci-ico { font-size: 2.5rem; }
.enote-display-merci p { margin: .25rem 0 0; font-size: 1.2rem; font-weight: 700; color: #047857; }
.enote-display-rueckgeld { font-size: 1rem; color: var(--enote-text-muted); }

/* Display-Dialog (QR-Code in der Kasse) */
.enote-display-dialog { display: grid; gap: 1rem; justify-items: center; text-align: center; }
.enote-display-qr { width: 14rem; height: 14rem; border-radius: 1rem; box-shadow: var(--enote-neu-out-sm); }
.enote-display-link {
    font-size: .8rem; color: var(--enote-text-muted); word-break: break-all;
    background: var(--enote-surface); padding: .6rem .9rem; border-radius: .6rem; box-shadow: var(--enote-neu-in);
}

/* Roter Hinweis für Besitzer (ungelesene Meldungen) */
.enote-hinweis-box {
    background: #fef2f2; border: 1.5px solid #fecaca; border-radius: var(--enote-radius-lg);
    padding: 1rem 1.25rem; margin-bottom: 1.25rem; text-align: left;
    box-shadow: var(--enote-neu-out-sm);
}
.enote-hinweis-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .6rem; color: #b91c1c; }
.enote-hinweis-item {
    display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
    padding: .55rem .75rem; background: #fff; border-radius: .7rem; margin-bottom: .4rem;
}
.enote-hinweis-item span { flex: 1; min-width: 12rem; font-size: .9rem; color: var(--enote-text); }
.enote-hinweis-item .enote-tag-btn { border: 1px solid #fecaca; border-radius: 999px; padding: .25rem .7rem; color: #b91c1c; opacity: 1; }

/* --- Favorit --- */
.enote-favorit-box {
    background: #fff; border: 1px solid #eef2f7; border-radius: 1rem;
    padding: 1rem 1.25rem; margin-bottom: 1.25rem; display: grid; gap: .5rem;
}
.enote-favorit-box > label { font-weight: 600; font-size: .9rem; }
.enote-favorit-row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.enote-favorit-row .enote-select { flex: 1; min-width: 12rem; }

/* --- Admin --- */
.enote-section-title { font-size: 1.15rem; margin: 1.75rem 0 .85rem; }
.enote-item-pending { border-color: #fde68a; background: #fffbeb; }

/* --- ProduktOwner-Zuweisung --- */
.enote-zuweisung { margin-top: 1rem; border-top: 1px solid var(--enote-border); padding-top: 1rem; display: grid; gap: .5rem; }
.enote-zuweisung h3 { margin: 0; font-size: 1rem; }
.enote-zuweisung-row {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    padding: .5rem .75rem; border-radius: .6rem; background: #fafbff; border: 1px solid var(--enote-border);
}
.enote-zuweisung-rechte { display: flex; gap: 1rem; }
.enote-zuweisung-rechte .checkbox { font-size: .82rem; font-weight: 500; color: var(--enote-text-muted); }

/* --- PO-Dashboard --- */
.enote-po-umsatz { display: grid; gap: .3rem; padding: .6rem .75rem; background: #f8faff; border-radius: .6rem; }
.enote-po-umsatz > div { display: flex; justify-content: space-between; font-size: .88rem; }
.enote-po-umsatz span { color: var(--enote-text-muted); }
.enote-po-provision { display: flex; justify-content: space-between; align-items: center; padding-top: .5rem; border-top: 1px dashed var(--enote-border); font-size: .85rem; }
.enote-po-provision span { color: var(--enote-text-muted); }
.enote-po-provision strong { color: #047857; }

/* --- Ausgaben --- */
.enote-kategorie-row { display: flex; gap: .6rem; margin-bottom: .75rem; }
.enote-input-inline { flex: 1; padding: .55rem .8rem; border: 1.5px solid var(--enote-border); border-radius: .6rem; }
.enote-input-inline:focus { outline: none; border-color: var(--enote-primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.enote-kategorie-liste { display: flex; flex-wrap: wrap; gap: .4rem; }
.enote-ausgaben-summe { margin-left: auto; font-size: .95rem; align-self: center; }
.enote-ausgabe-item { border-left: 3px solid #fca5a5; }

/* Editierbare Kategorie-Chips */
.enote-tag-editierbar { display: inline-flex; align-items: center; gap: .35rem; }
.enote-tag-btn {
    border: none; background: transparent; cursor: pointer; font-size: .75rem;
    padding: 0 .15rem; line-height: 1; color: inherit; opacity: .7;
}
.enote-tag-btn:hover { opacity: 1; }
.enote-tag-btn.enote-danger { color: #b91c1c; }




/* --- Home --- */
.enote-home { max-width: 40rem; margin: 3rem auto; text-align: center; }
.enote-home h1 { font-size: 2.25rem; margin: 0 0 .5rem; }
.enote-home-public h1 { font-size: 3rem; color: var(--enote-primary-dark); }
.enote-lead { font-size: 1.2rem; color: #374151; margin: 0 0 .5rem; }
.enote-home-actions { display: flex; gap: .75rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.enote-home-actions .enote-btn { flex: 0 0 auto; }
.enote-home-warn { text-align: left; margin-top: 1.5rem; }

/* --- Bild-Upload --- */
.enote-file { font-size: .9rem; }
.enote-bild-vorschau {
    max-width: 10rem; max-height: 10rem; border-radius: .7rem;
    border: 1px solid #e5e7eb; object-fit: cover; margin-top: .4rem;
}

/* Wiederverwendbare Bild-Auswahl (Kamera/Galerie + Zuschnitt) */
.enote-bild-auswahl { display: grid; gap: .75rem; }
.enote-bild-auswahl-aktionen { display: flex; gap: .6rem; flex-wrap: wrap; }
.enote-hidden-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

/* Upload-Button (label um verstecktes InputFile) */
.enote-btn-upload { position: relative; cursor: pointer; overflow: hidden; max-width: 100%; white-space: nowrap; text-overflow: ellipsis; }
.enote-bild-vorschau-wrap { display: grid; gap: .4rem; justify-items: start; }


/* --- Finanzen --- */
.enote-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.enote-table th, .enote-table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid #f3f4f6; }
.enote-table th { color: #6b7280; font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.enote-feed { display: grid; gap: .6rem; }
.enote-feed-item { background: var(--enote-surface); border-radius: var(--enote-radius); padding: .8rem 1rem; box-shadow: var(--enote-neu-out-sm); }
.enote-feed-head { display: flex; justify-content: space-between; align-items: center; }
.enote-feed-meta { font-size: .85rem; color: #374151; margin-top: .15rem; }

/* --- Abo --- */
.enote-abo-status {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    background: var(--enote-surface); border: none; border-radius: var(--enote-radius-lg); box-shadow: var(--enote-neu-out-sm);
    padding: 1rem 1.25rem; margin-bottom: 1rem;
}
.enote-probe-banner { background: linear-gradient(135deg, #d7f5e8, #e8eef5); }

/* --- Filter & Logs --- */
.enote-filter-row {
    display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap;
    background: #fff; border: 1px solid #eef2f7; border-radius: 1rem;
    padding: 1rem 1.25rem; margin-bottom: 1.25rem;
}
.enote-filter-row label { display: grid; gap: .3rem; font-weight: 600; font-size: .85rem; }
.enote-filter-row input[type="date"] { padding: .5rem .7rem; border: 1px solid #d1d5db; border-radius: .5rem; }
.enote-filter-row .checkbox { display: flex; align-items: center; gap: .4rem; }

.enote-log-list { display: grid; gap: .75rem; }
.enote-log-item { background: var(--enote-surface); border: 1px solid #fee2e2; border-left: 4px solid #dc2626; border-radius: .8rem; padding: .9rem 1.1rem; }
.enote-log-item.behandelt { border-left-color: #9ca3af; opacity: .75; }
.enote-log-head { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.enote-log-zeit { font-size: .8rem; color: #6b7280; font-weight: 600; }
.enote-log-msg { font-weight: 600; margin: .4rem 0; }
.enote-log-trace {
    background: #1f2937; color: #f9fafb; padding: .8rem; border-radius: .6rem;
    font-size: .75rem; overflow-x: auto; max-height: 16rem;
}

/* --- Live-Umsatz --- */
.enote-live-banner {
    display: flex; align-items: center; gap: .85rem;
    background: linear-gradient(135deg, var(--enote-primary-dark), var(--enote-primary-light)); color: #fff;
    border-radius: 1rem; padding: 1rem 1.25rem; margin-bottom: 1.25rem;
}
.enote-live-dot { width: .7rem; height: .7rem; border-radius: 999px; background: #d1d5db; }
.enote-live-banner.verbunden .enote-live-dot { background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.3); animation: enote-pulse 1.6s infinite; }
@@keyframes enote-pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
.enote-live-label { font-size: .8rem; opacity: .85; }
.enote-live-wert { font-size: 1.4rem; font-weight: 800; }
.enote-live-wert .enote-muted { color: rgba(255,255,255,.75); font-weight: 500; font-size: .95rem; }

/* ============================================================
   RESPONSIVE – Handy (≤640px), Tablet (641-1024px), PC (>1024px)
   ============================================================ */

/* --- Settings / Profil / Bon-Vorschau --- */
.enote-page-narrow { max-width: 40rem; }
.enote-settings-card { padding: 1.25rem 1.4rem; margin-bottom: 1.25rem; }
.enote-settings-card h2 { margin: 0 0 1rem; font-size: 1.1rem; }
.enote-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.enote-logo-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.enote-logo-vorschau { width: 4.5rem; height: 4.5rem; border-radius: .8rem; object-fit: cover; border: 1px solid var(--enote-border); }
.enote-marge { color: #047857; font-weight: 600; }


.enote-bon-preview { background: #fff; border: 1px dashed var(--enote-border); border-radius: .8rem; padding: 1.25rem; text-align: center; font-family: Consolas, monospace; }
.enote-bon-logo { max-width: 5rem; max-height: 5rem; object-fit: contain; margin-bottom: .4rem; }
.enote-bon-name { font-weight: 800; font-size: 1.05rem; }
.enote-bon-slogan { font-style: italic; color: var(--enote-text-muted); font-size: .85rem; }
.enote-bon-line { border-top: 1px dashed #cbd5e1; margin: .7rem 0; }
.enote-bon-muted { color: var(--enote-text-muted); font-size: .85rem; text-align: left; }
.enote-bon-total { font-weight: 800; text-align: left; margin-top: .3rem; }

.enote-profil-kopf { display: flex; align-items: center; gap: 1rem; }
.enote-profil-avatar { width: 4rem; height: 4rem; border-radius: 50%; flex-shrink: 0; background: var(--enote-gradient); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; }
.enote-profil-name { font-size: 1.25rem; font-weight: 800; }
.enote-profil-rollen { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .4rem; }

/* --- Große PCs --- */
@media (min-width: 1400px) {
    .enote-main { padding: 2rem 2.5rem; }
    .enote-page { max-width: 80rem; }
}

/* --- Handy (≤640px): Sidebar aus, flache Bottom-Nav an --- */
@media (max-width: 640px) {
    .enote-layout { height: auto; min-height: 100vh; min-height: 100dvh; overflow: visible; } /* Handy: Seite darf normal scrollen */
    .enote-body { flex-direction: column; }
    .enote-nav-desktop { display: none; }

    .enote-nav-mobile {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
        display: flex; align-items: stretch; justify-content: flex-start;
        gap: .1rem; padding: .45rem .4rem calc(.45rem + env(safe-area-inset-bottom));
        background: var(--enote-bg); box-shadow: 0 -8px 22px #cdd6e4;
        overflow-x: auto; overflow-y: hidden;
        /* verhindert Abschneiden beim Scrollen auf iOS/Android */
        padding-bottom: max(.45rem, env(safe-area-inset-bottom));
        -webkit-overflow-scrolling: touch;
    }
    .enote-mnav-link {
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: .15rem; padding: .45rem .8rem; min-width: 4rem; min-height: 3.4rem; flex: 0 0 auto;
        border-radius: var(--enote-radius); color: var(--enote-text);
        text-decoration: none; font-size: .68rem; font-weight: 600; white-space: nowrap;
        transition: box-shadow .15s, color .15s;
    }
    .enote-mnav-ico { font-size: 1.25rem; line-height: 1; }
    .enote-mnav-link.active { background: var(--enote-gradient); color: #fff; box-shadow: 0 6px 16px rgba(23, 37, 84, .3); }

    /* Genug Platz, damit Inhalt nicht hinter der Bottom-Nav verschwindet */
    .enote-main { padding: 1rem; padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }
    .enote-btn { min-height: 44px; }
    .enote-tile { min-height: 6rem; }
    .enote-caisse-body { grid-template-columns: 1fr; }
    .enote-ticket { position: static; height: auto; max-height: none; }
    .enote-tiles { height: auto; max-height: none; } /* auf dem Handy normal mit der Seite scrollen */
    .enote-caisse { flex: none; } /* Handy: Seite darf normal scrollen */
    .enote-grid { grid-template-columns: 1fr; }
    .enote-form-grid { grid-template-columns: 1fr; }
    .enote-card .enote-table { display: block; overflow-x: auto; white-space: nowrap; }
    .enote-live-banner { padding: .85rem 1rem; }
    .enote-live-wert { font-size: 1.2rem; }
    .enote-filter-row { flex-direction: column; align-items: stretch; }
    .enote-filter-row .enote-btn { width: 100%; }
    .enote-modal { max-height: calc(100vh - 1rem); }
    .enote-modal-backdrop { padding: .5rem; }
    .enote-topbar { padding: .6rem .9rem; }
    .enote-topbar-actions .enote-btn { padding: .45rem .7rem; font-size: .82rem; }
    .enote-user { display: none; }
}

/* --- Tablet (641-1024px) --- */
@media (min-width: 641px) and (max-width: 1024px) {
    .enote-nav { width: 12rem; }
    .enote-caisse-body { grid-template-columns: 1fr 20rem; }
    .enote-main { padding: 1.25rem; }
}

/* ============================================================
   Moderne Eingabe-Controls (Soft-UI)
   ============================================================ */

/* --- Toggle-Checkbox --- */
.enote-toggle {
    position: relative; width: 3.2rem; height: 1.8rem; border: none; cursor: pointer;
    border-radius: 999px; background: var(--enote-surface); box-shadow: var(--enote-neu-in);
    transition: background .25s; flex-shrink: 0;
}
.enote-toggle:disabled { opacity: .5; cursor: not-allowed; }
.enote-toggle-knob {
    position: absolute; top: .25rem; left: .25rem; width: 1.3rem; height: 1.3rem;
    border-radius: 50%; background: #fff; box-shadow: var(--enote-neu-out-sm);
    transition: left .22s cubic-bezier(.34,1.56,.64,1);
}
.enote-toggle.an { background: var(--enote-gradient); }
.enote-toggle.an .enote-toggle-knob { left: calc(100% - 1.55rem); }
.enote-toggle-label { font-weight: 600; font-size: .9rem; cursor: pointer; user-select: none; }

/* --- Pill-Radio --- */
.enote-radio-group { display: flex; gap: .5rem; flex-wrap: wrap; }
.enote-radio-pill {
    padding: .7rem 1.35rem; border: none; border-radius: 999px; cursor: pointer;
    background: var(--enote-surface); color: var(--enote-text); font-weight: 600; font-size: .95rem;
    box-shadow: var(--enote-neu-out-sm); transition: all .18s; touch-action: manipulation;
}
.enote-radio-pill:hover { transform: translateY(-1px); box-shadow: var(--enote-neu-out); }
.enote-radio-pill.aktiv { background: var(--enote-gradient); color: #fff; box-shadow: 0 8px 18px rgba(23, 37, 84, .3); }
.enote-radio-pill:disabled { opacity: .5; cursor: not-allowed; }

/* --- Custom-Select --- */
.enote-select2 { position: relative; width: 100%; }
.enote-select2-trigger {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    padding: .75rem 1.1rem; border: none; border-radius: var(--enote-radius-pill);
    background: var(--enote-surface); color: var(--enote-text); font-size: .95rem; cursor: pointer;
    box-shadow: var(--enote-neu-in); text-align: left;
}
.enote-select2-trigger:disabled { opacity: .5; cursor: not-allowed; }
.enote-select2-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.enote-select2-chevron { color: var(--enote-text-muted); transition: transform .2s; }
.enote-select2.offen .enote-select2-chevron { transform: rotate(180deg); }
.enote-select2-popup {
    position: absolute; z-index: 1500; top: calc(100% + .4rem); left: 0; right: 0;
    background: var(--enote-surface); border-radius: var(--enote-radius);
    box-shadow: var(--enote-shadow-lg); overflow: hidden; animation: enote-fadein .15s ease;
}
.enote-select2-suche {
    width: calc(100% - 1.2rem); margin: .6rem; padding: .55rem .9rem; border: none;
    border-radius: 999px; background: var(--enote-surface); box-shadow: var(--enote-neu-in); font-size: .9rem;
}
.enote-select2-suche:focus { outline: none; box-shadow: var(--enote-neu-in), 0 0 0 3px rgba(30,58,138,.18); }
.enote-select2-liste { max-height: 14rem; overflow-y: auto; padding: .3rem; }
.enote-select2-option {
    width: 100%; text-align: left; padding: .6rem .9rem; border: none; background: transparent;
    border-radius: .6rem; cursor: pointer; font-size: .92rem; color: var(--enote-text); transition: background .15s;
}
.enote-select2-option:hover { background: rgba(30, 58, 138, .08); }
.enote-select2-option.aktiv { background: rgba(30, 58, 138, .12); font-weight: 700; color: var(--enote-primary); }
.enote-select2-leer { padding: .8rem; color: var(--enote-text-muted); font-size: .88rem; text-align: center; }

/* --- DatePicker --- */
.enote-datepicker { position: relative; width: 100%; }
.enote-datepicker-trigger {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    padding: .75rem 1.1rem; border: none; border-radius: var(--enote-radius-pill);
    background: var(--enote-surface); color: var(--enote-text); font-size: .95rem; cursor: pointer;
    box-shadow: var(--enote-neu-in);
}
.enote-datepicker-trigger:disabled { opacity: .5; }
.enote-datepicker-ico { font-size: 1rem; }
.enote-datepicker-popup {
    position: absolute; z-index: 1500; top: calc(100% + .4rem); left: 0; min-width: 17rem;
    background: var(--enote-surface); border-radius: var(--enote-radius-lg);
    box-shadow: var(--enote-shadow-lg); padding: .9rem; animation: enote-fadein .15s ease;
}
.enote-datepicker-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.enote-datepicker-kopf strong { font-size: .95rem; text-transform: capitalize; }
.enote-datepicker-kopf button {
    width: 1.9rem; height: 1.9rem; border: none; border-radius: 50%; cursor: pointer;
    background: var(--enote-surface); box-shadow: var(--enote-neu-out-sm); font-size: 1rem; line-height: 1;
}
.enote-datepicker-wochentage, .enote-datepicker-tage { display: grid; grid-template-columns: repeat(7, 1fr); gap: .15rem; }
.enote-datepicker-wochentage span { text-align: center; font-size: .7rem; font-weight: 700; color: var(--enote-text-muted); padding: .25rem 0; }
.enote-datepicker-tag {
    aspect-ratio: 1; border: none; border-radius: 50%; cursor: pointer; background: transparent;
    font-size: .85rem; color: var(--enote-text); transition: background .12s, color .12s;
}
.enote-datepicker-tag:hover { background: rgba(30, 58, 138, .1); }
.enote-datepicker-tag.heute { box-shadow: var(--enote-neu-in); font-weight: 700; }
.enote-datepicker-tag.gewaehlt { background: var(--enote-gradient); color: #fff; font-weight: 800; }
.enote-datepicker-aktionen { display: flex; justify-content: space-between; margin-top: .6rem; }
.enote-datepicker-aktionen button { border: none; background: transparent; color: var(--enote-primary); font-weight: 700; font-size: .82rem; cursor: pointer; padding: .3rem .4rem; }

/* Filter-Felder mit modernem DatePicker */
.enote-filter-feld { display: grid; gap: .3rem; min-width: 11rem; }
.enote-filter-label { font-size: .8rem; font-weight: 700; color: var(--enote-text-muted); }
.enote-check-row { display: flex; align-items: center; gap: .55rem; }

/* --- Tabs (Admin u. a.) --- */
.enote-tabs { display: flex; gap: .5rem; margin-bottom: 1.25rem; border-bottom: 2px solid #e5e7eb; }
.enote-tab {
    background: none; border: none; padding: .7rem 1.2rem; font-size: .95rem; font-weight: 600;
    color: var(--enote-text-muted); cursor: pointer; border-bottom: 2px solid transparent;
    margin-bottom: -2px; transition: color .15s ease, border-color .15s ease;
}
.enote-tab:hover { color: var(--enote-primary); }
.enote-tab.aktiv { color: var(--enote-primary); border-bottom-color: var(--enote-primary); }

/* --- Filter-Leiste (Suche + Filter über Listen) --- */
.enote-filter-leiste { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.25rem; }
.enote-filter-suche {
    flex: 1 1 14rem; min-width: 12rem; padding: .55rem .9rem; border: 1px solid #d1d5db;
    border-radius: .6rem; font-size: .9rem; background: #fff;
}
.enote-filter-suche:focus { outline: none; border-color: var(--enote-primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
/* Dropdowns in der Filter-Leiste kompakt halten (nicht volle Breite) */
.enote-filter-leiste .enote-select2 { flex: 0 0 auto; width: auto; min-width: 10rem; max-width: 14rem; }
.enote-filter-leiste .enote-select2-trigger { width: 100%; }

/* --- Monats-Picker --- */
.enote-month-row { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }

/* --- PIN-Feld mit Auge-Button --- */
.enote-pin-feld { position: relative; display: flex; align-items: center; }
.enote-pin-feld input { width: 100%; padding-right: 2.6rem; }
.enote-pin-eye {
    position: absolute; right: .45rem; background: none; border: none; cursor: pointer;
    font-size: 1.05rem; padding: .3rem; line-height: 1; opacity: .7; transition: opacity .15s ease;
}
.enote-pin-eye:hover { opacity: 1; }
.enote-monthpicker { display: grid; gap: .6rem; }
.enote-monthpicker-jahr { display: flex; align-items: center; gap: .7rem; }
.enote-monthpicker-jahr strong { font-size: 1.05rem; min-width: 3.5rem; text-align: center; }
.enote-monthpicker-jahr button {
    width: 2rem; height: 2rem; border: none; border-radius: 50%; cursor: pointer;
    background: var(--enote-surface); box-shadow: var(--enote-neu-out-sm); font-size: 1.1rem; line-height: 1;
}
.enote-monthpicker-monate { display: flex; flex-wrap: wrap; gap: .4rem; max-width: 24rem; }


/* ============================================================
   Landing-Page (öffentlich, nicht angemeldet)
   ============================================================ */
.enote-landing { max-width: 72rem; margin: 0 auto; }

.enote-landing-hero {
    text-align: center;
    padding: 3.5rem 1.5rem 3rem;
    background: radial-gradient(ellipse at top, rgba(30,58,138,.08), transparent 60%);
    border-radius: 0 0 2rem 2rem;
}
.enote-landing-badge {
    display: inline-block; padding: .4rem 1rem; border-radius: 999px;
    background: #e8eefc; color: var(--enote-primary-dark);
    font-size: .8rem; font-weight: 700; margin-bottom: 1.25rem;
}
.enote-landing-hero h1 {
    margin: 0 0 1rem; font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800; letter-spacing: -.03em; line-height: 1.08;
    background: var(--enote-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.enote-landing-hero .enote-lead {
    font-size: 1.15rem; color: var(--enote-text-muted);
    max-width: 40rem; margin: 0 auto 1.75rem; line-height: 1.6;
}

.enote-landing-features {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.25rem; padding: 2.5rem 1.5rem;
}
.enote-feature {
    background: var(--enote-surface); border: none;
    border-radius: var(--enote-radius-lg); padding: 1.75rem;
    box-shadow: var(--enote-neu-out-sm); transition: transform .2s, box-shadow .2s;
}
.enote-feature:hover { transform: translateY(-5px); box-shadow: var(--enote-neu-out); }
.enote-feature-icon {
    width: 3.2rem; height: 3.2rem; border-radius: 1rem; display: grid; place-items: center;
    font-size: 1.4rem; background: var(--enote-gradient); color: #fff; margin-bottom: 1rem;
    box-shadow: var(--enote-neu-out-sm);
}
.enote-feature h3 { margin: 0 0 .5rem; font-size: 1.15rem; font-weight: 700; }
.enote-feature p { margin: 0; color: var(--enote-text-muted); font-size: .92rem; line-height: 1.55; }

.enote-landing-cta {
    text-align: center; padding: 3rem 1.5rem; margin: 1rem 1.5rem 3rem;
    background: var(--enote-gradient); border-radius: 2rem; color: #fff;
}
.enote-landing-cta h2 { margin: 0 0 .5rem; font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; }
.enote-landing-cta p { margin: 0 0 1.5rem; opacity: .92; }
.enote-landing-cta .enote-btn-primary { background: #fff; color: var(--enote-primary-dark); box-shadow: 0 10px 25px rgba(0,0,0,.2); }

@media (max-width: 640px) {
    .enote-landing-hero { padding: 2.25rem 1rem 2rem; }
    .enote-landing-features { grid-template-columns: 1fr; padding: 1.75rem 1rem; }
    .enote-landing-cta { margin: .5rem 1rem 2rem; padding: 2rem 1.25rem; }
}


















