/* OM Consulting Prozessassessment – Stylesheet */

/* Lokale Fonts (kein Google CDN – Datenschutz) */
@font-face {
    font-family: 'Roboto';
    font-weight: 300;
    font-style: normal;
    src: url('/static/fonts/Roboto-Light.ttf') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    font-weight: 400;
    font-style: normal;
    src: url('/static/fonts/Roboto-Regular.ttf') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    font-weight: 500;
    font-style: normal;
    src: url('/static/fonts/Roboto-Medium.ttf') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    font-weight: 700;
    font-style: normal;
    src: url('/static/fonts/Roboto-Bold.ttf') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: 'Roboto Condensed';
    font-weight: 400;
    font-style: normal;
    src: url('/static/fonts/Roboto_Condensed-Regular.ttf') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: 'Roboto Condensed';
    font-weight: 700;
    font-style: normal;
    src: url('/static/fonts/Roboto_Condensed-Bold.ttf') format('truetype');
    font-display: swap;
}

:root {
    --color-primary: #340059;
    --color-accent: #BC903D;
    --color-bg: #f8f7fc;
    --color-white: #ffffff;
    --color-text: #1a1a1a;
    --color-muted: #666;
    --color-border: #ddd;
    --color-success: #2E7D32;
    --color-error: #C62828;
    --color-opt: #2B3A3F;
    --color-nut: #6A1B9A;
}

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

body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-weight: 400;
}

/* ── Typografie ── */
h1 { font-family: 'Roboto Condensed', 'Roboto', sans-serif; font-weight: 700; color: var(--color-primary); font-size: 24px; }
h2 { font-family: 'Roboto Condensed', 'Roboto', sans-serif; font-weight: 700; color: var(--color-primary); font-size: 18px; }
h3 { font-family: 'Roboto', sans-serif; font-weight: 700; color: var(--color-accent); font-size: 15px; }

/* ── Layout ── */
.container { max-width: 960px; margin: 0 auto; padding: 20px; }
.header {
    background: var(--color-white);
    padding: 12px 0;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--color-accent);
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.header-brand:hover { opacity: 0.85; }
.header-logo {
    height: 48px;
    width: auto;
}
.header a { color: var(--color-accent); text-decoration: none; font-size: 14px; font-weight: 500; }
.header a:hover { color: var(--color-primary); text-decoration: underline; }
.nav-links { display: flex; gap: 18px; align-items: center; }

/* ── Footer ── */
.footer {
    background: var(--color-primary);
    color: rgba(255,255,255,0.7);
    padding: 12px 0;
    margin-top: 40px;
    font-size: 13px;
}
.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}
.footer a { color: var(--color-accent); text-decoration: none; }
.footer a:hover { color: white; }

/* ── Cards ── */
.card {
    background: var(--color-white);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.card h2 { margin-bottom: 15px; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.2s;
    line-height: 1.2;
    box-sizing: border-box;
}
.btn:hover { opacity: 0.85; }
.btn-primary { background: var(--color-primary); color: white; }
.btn-accent { background: var(--color-accent); color: white; }
.btn-outline { background: transparent; border: 1px solid var(--color-border); color: var(--color-text); }
.btn-sm { padding: 4px 12px; font-size: 13px; white-space: nowrap; }
.btn-danger { background: var(--color-error); color: white; }

/* ── Forms ── */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; font-size: 14px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 5px; font-size: 14px;
    font-family: 'Roboto', sans-serif;
}
.form-group textarea { height: 80px; resize: vertical; }
.form-group .help-text { font-size: 13px; color: var(--color-muted); margin-top: 4px; }
.form-row { display: flex; gap: 15px; }
.form-row .form-group { flex: 1; }

/* ── Flash Messages ── */
.flash { padding: 10px 15px; border-radius: 5px; margin-bottom: 15px; font-size: 14px; }
.flash-success { background: #E8F5E9; color: var(--color-success); border: 1px solid #A5D6A7; }
.flash-error { background: #FFEBEE; color: var(--color-error); border: 1px solid #EF9A9A; }
.flash-warning { background: #FFF8E1; color: #E65100; border: 1px solid #FFE082; }

/* ── Tables ── */
table { width: 100%; border-collapse: collapse; margin: 10px 0; }
th { background: var(--color-primary); color: white; padding: 8px 12px; text-align: left; font-size: 14px; font-weight: 500; }
td { border-bottom: 1px solid var(--color-border); padding: 8px 12px; font-size: 14px; }
tr:hover { background: #f5f3f8; }

/* ── Scores ── */
.score-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    color: white;
}
.score-opt { background: var(--color-opt); }
.score-nut { background: var(--color-nut); }

/* ── Assessment Form ── */
.question-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}
.question-card h3 { font-size: 15px; color: var(--color-primary); margin-bottom: 5px; }
.question-card .dimension-label {
    font-size: 12px; color: var(--color-muted);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.question-card .question-text { font-size: 15px; margin-bottom: 12px; }
.question-card .help-toggle {
    font-size: 13px; color: var(--color-accent);
    cursor: pointer; margin-bottom: 8px;
}
.question-card .help-content {
    font-size: 13px; color: var(--color-muted);
    background: #f9f7fc; padding: 10px; border-radius: 5px;
    margin-bottom: 10px;
}
.radio-group { display: flex; flex-direction: column; gap: 6px; }
.radio-group label {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 6px 10px; border-radius: 5px; cursor: pointer;
    font-size: 14px; font-weight: normal;
}
.radio-group label:hover { background: #f5f3f8; }
.radio-group input[type="radio"] { margin-top: 3px; }
.comment-field { margin-top: 8px; display: flex; gap: 10px; align-items: flex-start; }
.comment-field label { font-size: 13px; color: #999; white-space: nowrap; padding-top: 8px; }
.comment-field textarea { height: 50px; font-size: 13px; flex: 1; }

/* ── Steckbrief ── */
.steckbrief-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

/* ── Login ── */
.login-container {
    max-width: 400px;
    margin: 80px auto;
}
.login-container h1 {
    text-align: center;
    margin-bottom: 30px;
}

/* ── Progress ── */
.progress-bar {
    background: var(--color-border);
    border-radius: 10px;
    height: 8px;
    margin-bottom: 20px;
}
.progress-bar-fill {
    background: var(--color-accent);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s;
}

/* ── Assessment View ── */
.answer-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.answer-display .q-text { flex: 1; font-size: 14px; }
.answer-display .a-value {
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}
