:root { color-scheme: light; --ink: #3c424f; --muted: #5f697b; --primary: #392f6e; --primary-hover: #4d4382; --line: #e0dee7; }
* { box-sizing: border-box; }
body { margin: 0; background: #f7f7f9; color: var(--ink); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 23px max(24px, calc((100vw - 1120px) / 2)); background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--primary); text-decoration: none; font-size: 24px; font-weight: 750; letter-spacing: -.7px; }
.brand-mark { display: block; width: 38px; height: 38px; object-fit: contain; flex: 0 0 auto; }
.brand-section { color: var(--ink); font-size: 14px; font-weight: 450; letter-spacing: 0; padding-left: 16px; margin-left: 4px; border-left: 1px solid var(--line); }
main { max-width: 1120px; margin: 0 auto; padding: 72px 24px; min-height: calc(100vh - 166px); }
.login-layout { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 72px; }
.eyebrow { display: block; color: var(--primary); font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
h1 { font-size: clamp(30px, 4vw, 47px); line-height: 1.15; letter-spacing: -1.3px; font-weight: 650; margin: 18px 0 24px; overflow-wrap: anywhere; }
h2 { margin: 0 0 10px; font-size: 25px; line-height: 1.3; font-weight: 650; letter-spacing: -.45px; }
p { margin: 0 0 24px; }
.intro p { max-width: 420px; color: var(--muted); font-size: 18px; }
.status { display: inline-flex; gap: 8px; align-items: center; background: #eeebf5; color: var(--primary); padding: 5px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.status span { width: 7px; height: 7px; border-radius: 100%; background: var(--primary); }
.card { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 34px; box-shadow: 0 6px 24px #392f6e0c; }
.muted { color: var(--muted); }
label { display: block; margin: 18px 0 6px; font-size: 14px; font-weight: 650; }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1px solid #9691a8; border-radius: 7px; color: var(--ink); background: white; font: inherit; }
textarea { resize: vertical; min-height: 100px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, .table-scroll:focus-visible { outline: 3px solid #8d7cbc; outline-offset: 3px; }
.booking-note { white-space: pre-wrap; overflow-wrap: anywhere; min-width: 160px; }
button { cursor: pointer; font: inherit; font-weight: 600; border-radius: 7px; }
.button-primary { display: flex; justify-content: space-between; width: 100%; margin-top: 27px; padding: 12px 16px; border: 1px solid var(--primary); background: var(--primary); color: white; }
.button-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.button-secondary { padding: 8px 15px; background: white; border: 1px solid #9691a8; color: var(--ink); }
.button-secondary:hover { background: #f1eef7; }
.error { padding: 13px 15px; background: #fff0ed; border: 1px solid #f0bdb0; border-radius: 7px; color: #8b2d1c; font-size: 14px; }
.success { padding: 13px 15px; background: #eaf5ee; border: 1px solid #a2cbb1; border-radius: 7px; color: #245638; }
.dashboard h1 { margin-bottom: 36px; }
.dashboard-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.dashboard .status { margin-bottom: 22px; }
dl { margin: 24px 0 0; }
dt { color: var(--muted); font-size: 13px; }
dd { margin: 2px 0 16px; overflow-wrap: anywhere; }
dd:last-child { margin-bottom: 0; }
.next-step { background: #f0edf6; box-shadow: none; }
.next-step h2 { margin-top: 16px; }
.next-step p { color: var(--muted); margin: 16px 0 0; }
.balance-card .eyebrow { margin-bottom: 22px; }
.balance-card h2 { margin-top: 12px; }
.balance-value { font-size: clamp(40px, 6vw, 58px); color: var(--primary); letter-spacing: -1.5px; overflow-wrap: anywhere; }
.balance-value span { font-size: 23px; font-weight: 500; letter-spacing: 0; }
.balance-value.unlimited { font-size: 38px; }
.quota-detail { padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted); }
.dashboard .balance-card .status { margin-bottom: 0; }
.status.is-muted { background: #eeedf0; color: #62606b; }
.status.is-muted span { background: #62606b; }
.section-card { margin-top: 24px; }
.section-card > .eyebrow { margin-bottom: 12px; }
.section-card > p:last-child { margin-bottom: 0; }
.table-scroll { overflow-x: auto; margin-top: 18px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 650; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
tbody tr:last-child td { border-bottom: 0; }
.number { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.date-cell { white-space: nowrap; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-grid > div { min-width: 0; }
.form-note, .table-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.setup-note { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.button-fit { width: auto; padding-left: 24px; padding-right: 24px; }
.password-card { max-width: 600px; margin: 0 auto; }
.password-card h1 { font-size: 32px; margin-bottom: 20px; }
.rfid-edit { margin-top: 8px; }
.rfid-edit[open] { min-width: 230px; max-width: 360px; }
.rfid-edit summary, .rfid-history summary { color: var(--primary); cursor: pointer; font-weight: 600; }
.rfid-edit summary:focus-visible, .rfid-history summary:focus-visible { outline: 3px solid #8d7cbc; outline-offset: 3px; }
.rfid-edit .button-secondary { margin-top: 12px; }
.rfid-history { margin-top: 24px; }
.employee-edit { border-top: 1px solid var(--line); padding: 16px 0; }
.employee-edit:last-child { padding-bottom: 0; }
.employee-edit summary { cursor: pointer; color: var(--primary); overflow-wrap: anywhere; }
.employee-edit summary:focus-visible { outline: 3px solid #8d7cbc; outline-offset: 3px; }
.employee-meta { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.employee-edit form { padding: 0 0 8px; }
footer { padding: 20px 24px; text-align: center; color: var(--muted); font-size: 12px; }
@media (max-width: 760px) {
    .topbar { padding: 18px 20px; }
    .brand { font-size: 21px; }
    .brand-section { display: none; }
    main { padding: 40px 20px; }
    .login-layout, .dashboard-grid, .form-grid { grid-template-columns: 1fr; gap: 24px; }
    .card { padding: 26px; }
    .intro h1 br { display: none; }
}

.access-settings { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.access-settings h3 { margin: 0 0 1rem; }

/* Bereits auf dem Server abgestimmte Gruppierung beim Passwortwechsel. */
.password-card label[for="new_password"] {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.password-card label[for="confirm_password"] {
    margin-top: 16px;
}

.statistics-filter { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; margin: 22px 0; }
.statistics-filter > div { width: 220px; max-width: 100%; }
.statistics-filter label { margin-top: 0; }
.statistics-filter button { padding: 12px 16px; }
.statistics-period { margin-bottom: 16px; }
.statistics-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.statistics-metrics > div { display: flex; flex-direction: column; padding: 18px; border-radius: 9px; background: #f7f5fa; }
.statistics-metrics dd { margin-top: auto; padding-top: 8px; color: var(--primary); font-size: 23px; font-weight: 650; }
.statistics-subheading { margin: 28px 0 0; font-size: 19px; }
.status.is-warning { background: #fff3da; color: #805514; }
.status.is-warning span { background: #805514; }
.wallbox-warning-text { color: #805514; }
.wallbox-table .status { margin: 0; white-space: nowrap; }
.wallbox-signals li { margin: 8px 0; overflow-wrap: anywhere; }
@media (max-width: 1000px) { .statistics-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .statistics-metrics { grid-template-columns: 1fr; } }
