/* ==========================================================================
   LimesFaktur · Editorial UI — redesigned
   Typografie: Fraunces (display, serif) + Instrument Sans (body) + JetBrains Mono
   Farben:     dunkelgrün + warme Papier-Neutrale + knappe Akzente
   ========================================================================== */

:root {
    /* --- Brand --- */
    --primary: #0b4033;
    --primary-hover: #082d24;
    --primary-deep: #062019;
    --primary-soft: rgba(11, 64, 51, 0.08);
    --primary-tint: #ecf0ec;

    --accent-yellow: #fcca7c;
    --accent-yellow-deep: #e8a94a;
    --accent-coral: #ea7071;
    --accent-coral-deep: #d85a5b;

    /* --- Warm paper neutrals --- */
    --paper: #f7f4ed;
    --paper-deep: #eeeae0;
    --card: #ffffff;
    --border: #e8e2d5;
    --border-strong: #d1cab8;

    /* --- Text --- */
    --text: #1a1a17;
    --muted: #6a6960;
    --muted-soft: #9b9a90;

    /* --- Shadows (subtle, warm) --- */
    --shadow-xs: 0 1px 2px rgba(11, 64, 51, 0.04);
    --shadow-sm: 0 1px 3px rgba(11, 64, 51, 0.06), 0 1px 2px rgba(11, 64, 51, 0.03);
    --shadow-md: 0 8px 24px rgba(11, 64, 51, 0.07), 0 2px 6px rgba(11, 64, 51, 0.04);
    --shadow-lg: 0 24px 48px rgba(11, 64, 51, 0.12), 0 6px 14px rgba(11, 64, 51, 0.06);

    /* --- Radii --- */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    /* --- Fonts --- */
    --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
    --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.55;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "ss01" 1, "cv01" 1;
    text-rendering: optimizeLegibility;
}

/* Soft fade-in on page load */
main { animation: fi .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fi {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color .15s ease;
}
a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: var(--paper-deep);
    padding: 2px 7px;
    border-radius: 4px;
    color: var(--primary);
    letter-spacing: -0.01em;
}

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

/* ==========================================================================
   Typografie
   ========================================================================== */

h1 {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.08;
    color: var(--primary);
    margin: 0 0 24px 0;
    font-variation-settings: "opsz" 144, "SOFT" 50;
}

h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.2;
    color: var(--primary);
    margin: 24px 0 12px 0;
    font-variation-settings: "opsz" 100;
}

h3 {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    margin: 0 0 14px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

h4 {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin: 16px 0 8px 0;
}

p { margin: 0 0 12px 0; }
small { font-size: 12px; }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

header {
    background: var(--primary);
    color: #fff;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--primary-deep);
}

header .brand {
    display: flex;
    align-items: baseline;
    gap: 18px;
    min-width: 0;
}

header .brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    background: transparent;
    padding: 0;
    line-height: 0;
    transition: opacity .18s ease;
}
header .brand-logo-wrap:hover { opacity: 0.82; }

header .brand-logo {
    height: 44px;
    max-width: 300px;
    display: block;
}

header .brand small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 500;
    white-space: nowrap;
}
header .brand small strong {
    color: var(--accent-yellow);
    font-weight: 600;
}

nav {
    background: var(--primary-deep);
    padding: 0 28px;
    overflow-x: auto;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0;
}
nav li a {
    display: block;
    padding: 14px 18px;
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    position: relative;
    transition: color .15s ease, background .15s ease;
    white-space: nowrap;
}
nav li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
}
nav li a.active {
    color: #fff;
}
nav li a.active::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 2px;
    background: var(--accent-yellow);
    border-radius: 2px 2px 0 0;
}

/* User-Menü im Header */
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 13px;
    flex-wrap: nowrap;
}
.user-menu .user-name {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}
.user-menu .user-role {
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}
.user-menu .demo-badge {
    background: var(--accent-coral);
    color: #fff;
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.user-menu .btn-sm.btn-secondary {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
}
.user-menu .btn-sm.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.32);
    color: #fff;
}

/* Business-Switcher */
.biz-switcher select {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: all .15s ease;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%23fff' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 9px center;
}
.biz-switcher select:hover {
    background-color: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
}
.biz-switcher select option { color: var(--text); background: #fff; }

/* ==========================================================================
   Layout
   ========================================================================== */

main {
    max-width: 1320px;
    margin: 0 auto;
    padding: 40px 32px 96px;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    gap: 18px;
    flex-wrap: wrap;
}
.toolbar h1 { margin: 0; }

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 26px 30px;
    margin-bottom: 16px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}
.card > *:first-child { margin-top: 0; }
.card > *:last-child { margin-bottom: 0; }
.card > .row:last-of-type { margin-bottom: 0; }

/* ==========================================================================
   Tables
   ========================================================================== */

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
}
thead tr { background: var(--paper-deep); }
th {
    padding: 13px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 10.5px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
    vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .12s ease; }
tbody tr:hover { background: rgba(11, 64, 51, 0.025); }
tfoot tr { background: var(--paper-deep); font-weight: 500; }
tfoot td { border-top: 1px solid var(--border); }

td.right, th.right {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}
td.center, th.center { text-align: center; }
td.nowrap, th.nowrap { white-space: nowrap; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 18px;
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.005em;
    cursor: pointer;
    transition: all .18s cubic-bezier(.2, .8, .2, 1);
    white-space: nowrap;
}
.btn:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(11, 64, 51, 0.2);
}
.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(11, 64, 51, 0.15);
}
.btn:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-sm {
    padding: 5px 11px;
    font-size: 12px;
    gap: 5px;
}

.btn-secondary {
    background: var(--card);
    color: var(--primary);
    border: 1px solid var(--border-strong);
    box-shadow: none;
}
.btn-secondary:hover {
    background: var(--primary-tint);
    color: var(--primary-hover);
    border-color: var(--primary);
    box-shadow: none;
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--accent-coral);
    color: #fff;
    border-color: var(--accent-coral);
}
.btn-danger:hover {
    background: var(--accent-coral-deep);
    border-color: var(--accent-coral-deep);
    box-shadow: 0 4px 14px rgba(234, 112, 113, 0.28);
    color: #fff;
}

.btn-accent {
    background: var(--accent-yellow);
    color: var(--primary);
    border-color: var(--accent-yellow);
}
.btn-accent:hover {
    background: var(--accent-yellow-deep);
    border-color: var(--accent-yellow-deep);
    color: var(--primary);
    box-shadow: 0 4px 14px rgba(252, 202, 124, 0.4);
}

/* ==========================================================================
   Forms
   ========================================================================== */

form .row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
form .field { flex: 1; min-width: 180px; }

form label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: 0.005em;
}

form input[type=text],
form input[type=number],
form input[type=date],
form input[type=time],
form input[type=search],
form input[type=email],
form input[type=password],
form input[type=file],
form textarea,
form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13.5px;
    background: var(--card);
    color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    line-height: 1.4;
}
form input::placeholder, form textarea::placeholder {
    color: var(--muted-soft);
}
form textarea { resize: vertical; min-height: 64px; line-height: 1.45; }

form select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%236a6960' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

form input[type=file] {
    padding: 8px 10px;
    font-size: 13px;
}

form input:hover:not(:focus):not(:disabled),
form select:hover:not(:focus),
form textarea:hover:not(:focus) {
    border-color: var(--muted-soft);
}
form input:focus, form select:focus, form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 64, 51, 0.14);
    background: #fff;
}
form input:disabled {
    background: var(--paper-deep);
    color: var(--muted);
    cursor: not-allowed;
}
form small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.5;
}

/* ==========================================================================
   Stats / Dashboard
   ========================================================================== */

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--card);
    padding: 22px 26px 20px 26px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent-yellow);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    position: relative;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}
.stat-card .value {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: var(--primary);
    margin-bottom: 10px;
}
.stat-card .label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.4;
}
.stat-card .label small {
    font-weight: 400;
    font-size: 11px;
    text-transform: none;
    letter-spacing: 0;
    color: var(--muted-soft);
}

.stat-card.stat-drafts { border-left-color: var(--border-strong); }
.stat-card.stat-open   { border-left-color: var(--accent-yellow); }
.stat-card.stat-paid   { border-left-color: var(--primary); }
.stat-card.stat-sum    { border-left-color: var(--accent-coral); }

/* ==========================================================================
   Totals (Summenblock unter Positionen)
   ========================================================================== */

.totals {
    max-width: 380px;
    margin-left: auto;
    margin-top: 20px;
    font-variant-numeric: tabular-nums;
}
.totals .line {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13.5px;
}
.totals .line.total {
    border-top: 2px solid var(--primary);
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 600;
    font-size: 16px;
    color: var(--primary);
    font-family: var(--font-sans);
    letter-spacing: -0.005em;
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Alerts
   ========================================================================== */

.alert {
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 13.5px;
    line-height: 1.5;
    border: 1px solid;
}
.alert-success {
    background: #edf5f0;
    color: #0b4033;
    border-color: #c5ddcb;
}
.alert-error {
    background: #fdf1f1;
    color: #7a2a2b;
    border-color: #f3c7c7;
}
.alert-info {
    background: var(--paper-deep);
    color: var(--primary);
    border-color: var(--border-strong);
}

/* ==========================================================================
   Status-Badges
   ========================================================================== */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 9px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    font-family: var(--font-sans);
}
.status-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
    flex-shrink: 0;
}

.status-draft        { background: var(--paper-deep); color: var(--muted); }
.status-final        { background: rgba(252, 202, 124, 0.28); color: #8a5a18; }
.status-paid         { background: rgba(11, 64, 51, 0.10); color: var(--primary); }
.status-cancelled    { background: #e8e4da; color: #7a7a7a; }
.status-cancellation { background: rgba(234, 112, 113, 0.18); color: #8a2f30; }
.status-overdue      { background: var(--accent-coral); color: #fff; }
.status-overdue::before { background: #fff; }

/* Zeilenfärbung je Status */
tr.row-overdue td {
    background: rgba(234, 112, 113, 0.05);
    color: #7a2a2b;
}
tr.row-overdue:hover td { background: rgba(234, 112, 113, 0.08); }
tr.row-cancelled td {
    color: var(--muted-soft);
    text-decoration: line-through;
    text-decoration-color: rgba(0, 0, 0, 0.35);
    background: #fafaf4;
}
tr.row-draft td {
    opacity: 0.72;
    background: #fbfaf4;
}

/* ==========================================================================
   Filter-Leiste (Rechnungsliste)
   ========================================================================== */

.filter-bar {
    background: var(--card);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: 18px;
}
.filter-bar .row { margin-bottom: 0; align-items: end; gap: 14px; }
.filter-bar .field { min-width: 140px; }
.filter-bar .actions {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-tint);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 500;
    margin-right: 6px;
}

/* ==========================================================================
   Tabs (Einstellungen)
   ========================================================================== */

.tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}
.tabs a {
    padding: 12px 22px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    font-size: 13px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all .15s ease;
}
.tabs a:hover { color: var(--primary); text-decoration: none; }
.tabs a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.section-divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 22px 0;
}

/* ==========================================================================
   Sticky Save-Bar
   ========================================================================== */

.save-bar {
    position: sticky;
    bottom: 18px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 15px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 26px;
    border-radius: var(--radius-md);
    z-index: 10;
}
.save-bar small { color: var(--muted); }

/* ==========================================================================
   Inline Form + Spezial-Zeilen
   ========================================================================== */

.inline-form { display: inline; }

.item-row td input,
.item-row td textarea,
.item-row td select {
    font-size: 13px;
    padding: 6px 9px;
}
.item-row td textarea {
    resize: vertical;
    min-height: 36px;
    font-family: inherit;
    line-height: 1.35;
}

/* ==========================================================================
   Login / Setup
   ========================================================================== */

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    background:
        radial-gradient(ellipse at top left, rgba(11, 64, 51, 0.05), transparent 55%),
        radial-gradient(ellipse at bottom right, rgba(252, 202, 124, 0.08), transparent 55%),
        var(--paper);
    font-family: var(--font-sans);
}
.login-wrap { width: 100%; max-width: 440px; }

.login-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.login-brand-band {
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.07), transparent 50%),
        linear-gradient(180deg, var(--primary) 0%, var(--primary-deep) 100%);
    padding: 36px 32px 26px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.login-brand-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}
.login-brand-band img {
    height: 48px;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.login-brand-tag {
    position: relative;
    z-index: 1;
    color: var(--accent-yellow);
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-top: 10px;
    font-weight: 600;
}

.login-content { padding: 32px 34px 34px 34px; }
.login-content h1 {
    font-family: var(--font-display);
    margin: 0 0 22px 0;
    font-size: 22px;
    font-weight: 500;
    color: var(--primary);
    text-align: center;
    letter-spacing: -0.015em;
}
.login-content h3 {
    border: 0;
    padding: 0;
    margin: 6px 0 10px 0;
}

.login-divider {
    margin: 22px 0 18px 0;
    text-align: center;
    color: var(--muted-soft);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    position: relative;
    font-weight: 600;
}
.login-divider::before,
.login-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: var(--border-strong);
}
.login-divider::before { left: 0; }
.login-divider::after { right: 0; }

.demo-note {
    font-size: 11.5px;
    color: var(--muted);
    text-align: center;
    margin-top: 14px;
    line-height: 1.55;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-muted { color: var(--muted); }
.mono, .tabular-numbers { font-variant-numeric: tabular-nums; }

/* Responsive Feinheiten */
@media (max-width: 720px) {
    header { padding: 16px 20px; flex-wrap: wrap; gap: 12px; }
    header .brand-logo { height: 36px; }
    nav { padding: 0 12px; }
    nav li a { padding: 12px 14px; font-size: 12.5px; }
    main { padding: 24px 16px 60px; }
    .card { padding: 20px 22px; }
    .toolbar { flex-direction: column; align-items: stretch; }
    h1 { font-size: 26px; }
}
