:root {
    --brand: #2454ff;
    --brand-dark: #16336b;
    --bg: #f4f6fb;
}

body {
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- Login --- */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
}
.login-wrapper { width: 100%; max-width: 420px; padding: 1rem; }
.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.login-title { font-weight: 700; margin-bottom: 0.25rem; }
.login-subtitle { color: #6c757d; margin-bottom: 1.5rem; }

/* --- Navigation --- */
.app-navbar {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 0.6rem 1rem;
}
.app-navbar .navbar-brand { font-weight: 700; color: var(--brand-dark); }
.app-navbar .nav-link { font-weight: 500; color: #495057; }
.app-navbar .nav-link.active { color: var(--brand); font-weight: 700; }

.app-main { padding: 1.5rem; max-width: 1200px; margin: 0 auto; }

/* --- Karten --- */
.card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.card-header {
    background: #fff;
    border-bottom: 1px solid #eef0f4;
    font-weight: 600;
    border-radius: 14px 14px 0 0 !important;
}

/* --- Statistik-Karten --- */
.stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: 100%;
}
.stat-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}
.stat-value { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.stat-label { color: #6c757d; font-size: 0.85rem; margin-top: 0.2rem; }

@media (max-width: 576px) {
    .app-main { padding: 1rem 0.75rem; }
    .stat-value { font-size: 1.3rem; }
}

/* --- OCR / Ausweis-Scan --- */
.ocr-box {
    background: #f0f4ff;
    border: 1px dashed #b6c6ff;
    border-radius: 10px;
    padding: 1rem;
}
.ocr-preview {
    max-width: 100%;
    max-height: 220px;
    border-radius: 6px;
    border: 1px solid #ddd;
    display: block;
}
.ocr-debug pre {
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 150px;
    overflow-y: auto;
}
