/* BSOL Onboarding Portal - Stylesheet
   Farben: #2d718f (Brand), #51d0d6 (Teal), #0b174c (Navy), #dee0e0 (Grau)
   Font: Raleway (Google Fonts)
*/

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&display=swap');

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

:root {
    --brand:   #2d718f;
    --teal:    #51d0d6;
    --navy:    #0b174c;
    --gray:    #dee0e0;
    --bg:      #f0f4f7;
    --white:   #ffffff;
    --text:    #1a2332;
    --muted:   #6b7c93;
    --danger:  #c0392b;
    --success: #27ae60;
    --radius:  10px;
    --shadow:  0 4px 20px rgba(0,0,0,.10);
}

body {
    font-family: 'Raleway', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* ── Header ── */
.header {
    background: linear-gradient(135deg, var(--brand) 0%, var(--navy) 100%);
    padding: 20px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.header-logo {
    flex-shrink: 0;
}
.header-logo svg { display: block; }
.header-title { color: var(--white); }
.header-title .subtitle {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 600;
}
.header-title h1 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 2px;
}
.header-title .kunde-badge {
    display: inline-block;
    background: rgba(255,255,255,.15);
    color: rgba(255,255,255,.85);
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 20px;
    margin-top: 4px;
}
.header-logout {
    margin-left: auto;
}
.header-logout a {
    color: rgba(255,255,255,.7);
    font-size: 13px;
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 6px;
    transition: all .2s;
}
.header-logout a:hover { background: rgba(255,255,255,.15); color: white; }

/* ── Login Page ── */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--brand) 60%, var(--teal) 100%);
    padding: 24px;
}
.login-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
    text-align: center;
}
.login-logo { margin-bottom: 24px; }
.login-logo img { display: inline-block; }
.login-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}
.login-sub {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 28px;
}
.login-card .form-group { text-align: left; margin-bottom: 16px; }
.login-card .btn-primary { width: 100%; margin-top: 8px; }
.login-footer {
    margin-top: 24px;
    color: var(--muted);
    font-size: 12px;
}

/* ── Formular-Container ── */
.form-container {
    max-width: 860px;
    margin: 32px auto;
    padding: 0 20px 60px;
}

/* ── Sections ── */
.section {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    overflow: hidden;
}
.section-header {
    background: linear-gradient(90deg, var(--brand), var(--navy));
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-header h2 {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.section-header .icon {
    color: var(--teal);
    font-size: 16px;
}
.section-body { padding: 24px; }

/* ── Form Elements ── */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.form-row.full { grid-template-columns: 1fr; }
.form-row.third { grid-template-columns: 1fr 1fr 1fr; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}
.form-group label .required { color: var(--danger); margin-left: 2px; }
.form-group .hint {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--gray);
    border-radius: 7px;
    font-family: 'Raleway', Arial, sans-serif;
    font-size: 14px;
    color: var(--text);
    background: #fafbfc;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(81,208,214,.15);
    background: var(--white);
}
textarea { resize: vertical; min-height: 80px; }
select { cursor: pointer; }

/* Conditional hidden row */
.conditional-row { display: none; }
.conditional-row.visible { display: grid; }

/* ── Checkbox-Grid ── */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1.5px solid var(--gray);
    border-radius: 7px;
    cursor: pointer;
    transition: all .2s;
    background: #fafbfc;
}
.checkbox-item:hover { border-color: var(--teal); background: var(--white); }
.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
    cursor: pointer;
    flex-shrink: 0;
}
.checkbox-item.checked {
    border-color: var(--brand);
    background: rgba(45,113,143,.06);
}
.checkbox-item span { font-size: 13px; font-weight: 500; }

/* ── Buttons ── */
.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--navy));
    color: var(--white);
    border: none;
    padding: 13px 32px;
    border-radius: 8px;
    font-family: 'Raleway', Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .5px;
    transition: opacity .2s, transform .1s;
}
.btn-primary:hover { opacity: .92; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

/* ── Alert / Error ── */
.alert {
    padding: 12px 16px;
    border-radius: 7px;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 500;
}
.alert-error   { background: #fdecea; color: var(--danger);  border: 1px solid #f5c6c2; }
.alert-success { background: #eafaf1; color: var(--success); border: 1px solid #a9dfbf; }
.alert-timeout { background: #fff8e1; color: #856404;        border: 1px solid #ffc107; }

/* ── Submit Bar ── */
.submit-bar {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.submit-bar .info {
    font-size: 13px;
    color: var(--muted);
}
.submit-bar .info strong { color: var(--text); }

/* ── Success Page ── */
.success-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    padding: 24px;
}
.success-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 48px 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
}
.success-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--teal), var(--brand));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: white;
}
.success-card h2 { color: var(--navy); font-size: 24px; margin-bottom: 12px; }
.success-card p  { color: var(--muted); font-size: 15px; line-height: 1.6; }
.success-card .btn-primary { margin-top: 28px; }

/* ── Responsive ── */
@media (max-width: 640px) {
    .form-row, .form-row.third { grid-template-columns: 1fr; }
    .form-container { padding: 0 12px 40px; }
    .section-body { padding: 16px; }
    .submit-bar { flex-direction: column; text-align: center; }
    .login-card { padding: 28px 20px; }
    .header { padding: 14px 16px; }
}
