/*
 * Wizard-spezifische Styles.
 * Geladen von wizard_base.html (über {% block extra_head %} oder {% block extra_styles %}).
 * Setzt voraus: --entity-color (wird im Template als --red oder anderer Wert überschrieben).
 */

/* ── Layout ──────────────────────────────────────────────────────────────── */
.navbar { display: none !important; }

body {
    background: #f1f5f9;
    padding-top: 0 !important;
}

/* ── Wizard Page Header ───────────────────────────────────────────────────── */
.page-header {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    margin-bottom: 1.25rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0 1.25rem 0 0;
}
.page-header-icon {
    width: 68px;
    min-width: 68px;
    height: 68px;
    background: var(--entity-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    color: #fff;
    border-radius: 14px 0 0 14px;
    flex-shrink: 0;
}
.page-header-title { font-size: 1.2rem; font-weight: 700; color: #1e293b; flex: 1; }
.page-header-sub   { font-size: 0.82rem; color: #64748b; margin-top: 1px; }

/* ── Progress Bar ────────────────────────────────────────────────────────── */
.wiz-progress { display: flex; gap: 4px; margin-bottom: 1.25rem; }
.wiz-step {
    flex: 1;
    height: 5px;
    background: #e2e8f0;
    border-radius: 99px;
    transition: background .3s;
}
.wiz-step.active { background: var(--entity-color); }
.wiz-step.done   { background: color-mix(in srgb, var(--entity-color) 40%, transparent); }

/* ── Wizard Container & Screen Transitions ───────────────────────────────── */
#wizardContainer { position: relative; overflow: hidden; min-height: 50vh; }
.wizard-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .35s ease;
    pointer-events: none;
    opacity: 0;
}
.wizard-screen.active   { position: relative; transform: translateX(0);    opacity: 1; pointer-events: auto; }
.wizard-screen.left-out { transform: translateX(-100%); opacity: 0; }
.wizard-screen.right-in { transform: translateX(100%);  opacity: 0; }

/* ── Cards (Wizard-Override) ─────────────────────────────────────────────── */
.card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 1px 6px rgba(0,0,0,.07);
    margin-bottom: 1.5rem;
    background: #fff;
}
.card-body { padding: 1.25rem 1.5rem; }

/* ── Section Header Sub (Wizard-Override mit angepassten Proportionen) ───── */
.section-header-sub {
    background: #f8fafc;
    color: #1e293b;
    padding: 0;
    padding-left: 3.5rem;
    border-radius: 14px 14px 0 0 !important;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    min-height: 50px;
    display: flex;
    align-items: center;
}
.section-header-sub::before {
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background: var(--entity-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    border-radius: 15px 0 0 0;
}
.section-header-sub h5 {
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1rem;
    font-weight: 600;
}

/* ── Role Cards ──────────────────────────────────────────────────────────── */
.role-card {
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, background .2s;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.role-card:hover,
.role-card:active {
    border-color: var(--entity-color);
    box-shadow: 0 2px 10px color-mix(in srgb, var(--entity-color) 12%, transparent);
    background: color-mix(in srgb, var(--entity-color) 4%, transparent);
}
.role-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: color-mix(in srgb, var(--entity-color) 10%, transparent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--entity-color);
}
.role-card-title { font-weight: 600; color: #1e293b; font-size: 1rem; }
.role-card-sub   { font-size: 0.82rem; color: #64748b; margin-top: 2px; }

/* ── Formular ────────────────────────────────────────────────────────────── */
.form-check-input:checked { background-color: var(--entity-color); border-color: var(--entity-color); }
.bi { color: var(--entity-color) !important; }
.page-header-icon .bi { color: #fff !important; }
.btn .bi { color: inherit !important; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-weiter {
    background-color: var(--entity-color) !important;
    border-color: var(--entity-color) !important;
    color: #fff !important;
    font-size: 1.05rem;
    padding: .75rem 2rem;
    border-radius: 10px;
}
.btn-weiter:hover { filter: brightness(1.1); }
.btn-zurueck {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    border-radius: 10px;
    padding: .65rem 1.25rem;
}
.btn-primary {
    background-color: color-mix(in srgb, var(--entity-color) 15%, transparent) !important;
    border-color: var(--entity-color) !important;
    color: var(--entity-color) !important;
}
.btn-success { background-color: var(--entity-color) !important; border-color: var(--entity-color) !important; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 575px) {
    .card-body { padding: 1rem; }
    .btn-weiter { width: 100%; }
    .btn-nav-row { flex-direction: column-reverse; gap: .5rem; }
    .btn-zurueck { width: 100%; text-align: center; }
}
