/* MC-Auswertung — Minimales, sauberes Design */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #16a34a;
    --warning: #d97706;
    --error: #dc2626;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --radius: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--gray-900);
    background: var(--gray-50);
    line-height: 1.5;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Nav */
.navbar {
    background: var(--gray-900);
    color: white;
    padding: 0.75rem 0;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { color: white; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.nav-links a { color: var(--gray-300); text-decoration: none; margin-left: 1.5rem; font-size: 0.9rem; }
.nav-links a:hover { color: white; }

/* Main */
main { padding: 1.5rem 0; min-height: calc(100vh - 120px); }

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.page-header h1 { font-size: 1.5rem; }

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-info { background: #dbeafe; color: #1e40af; }
.alert-warning { background: #fef3c7; color: #92400e; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: white;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s;
}
.btn:hover { background: var(--gray-100); }
.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--gray-100); }
.btn-full { width: 100%; text-align: center; }
.btn-sm { padding: 0.3rem 0.6rem; font-size: 0.8rem; }

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.table th, .table td { padding: 0.6rem 0.8rem; text-align: left; border-bottom: 1px solid var(--gray-200); }
.table th { background: var(--gray-50); font-size: 0.8rem; text-transform: uppercase; color: var(--gray-500); }
.table td { font-size: 0.9rem; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .correct { color: var(--success); font-weight: 600; }
.table .wrong { color: var(--error); }
.table .uncertain { color: var(--warning); font-weight: 600; }
.row-review { background: #fffbeb; }

/* Badges */
.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 500;
}
.badge-created { background: var(--gray-200); color: var(--gray-700); }
.badge-pdf_generated { background: #dbeafe; color: #1e40af; }
.badge-completed { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-ok { background: #dcfce7; color: #166534; }

/* Forms */
.form-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    max-width: 640px;
}
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.3rem; color: var(--gray-700); }
.form-group input, .form-group select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.9rem;
}
.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: 0.8rem; color: var(--gray-500); margin-top: 0.3rem; display: block; }

/* Info Grid */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.info-card {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.info-card strong { display: block; font-size: 0.75rem; color: var(--gray-500); text-transform: uppercase; }
.info-card span { font-size: 1rem; }

/* Sections */
.step-section {
    background: white;
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 1rem;
}
.step-section h2 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.step-done { color: var(--success); margin-bottom: 0.5rem; }

.export-buttons { margin-bottom: 1rem; display: flex; gap: 0.5rem; }

/* Login */
.login-container {
    max-width: 360px;
    margin: 80px auto;
    padding: 2rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}
.login-container h1 { margin-bottom: 0.25rem; }
.login-container p { color: var(--gray-500); margin-bottom: 1.5rem; }

/* Empty State */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--gray-500); }
.empty-state .btn { margin-top: 1rem; }

/* Footer */
.footer { padding: 1rem 0; text-align: center; color: var(--gray-500); }
