/* ==========================================================================
   TEAM „N” – ONLINE-BEWERBUNG (/Karriere/Bewerbung)
   Mehrstufiges Bewerbungsformular mit Uploads – mobile-first
   ========================================================================== */

/* ---------- Hero ---------- */
.bw-hero {
    background: radial-gradient(circle at 85% 10%, rgba(56, 189, 248, 0.28), transparent 45%), var(--gradient-hero);
    color: #fff;
    padding: 2.5rem 0 4.75rem;
}

.bw-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1rem;
}

.bw-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.bw-breadcrumb a:hover { color: #fff; }
.bw-breadcrumb .bi-chevron-right { font-size: 0.7rem; opacity: 0.6; }

.bw-hero-title {
    color: #fff;
    font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.bw-hero-lead {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
    max-width: 720px;
    margin-bottom: 1.25rem;
}

.bw-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bw-hero-chips span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ---------- Layout ---------- */
.bw-main {
    background: #f1f5f9;
    padding-bottom: 4rem;
}

.bw-main > .container > .row {
    margin-top: -3.25rem;
}

.bw-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(6, 56, 93, 0.10);
    padding: 1.75rem 2rem 1.5rem;
    position: relative;
}

/* ---------- Stepper ---------- */
.bw-stepper {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.25rem;
    padding: 0;
    margin: 0 0 0.85rem;
    counter-reset: none;
}

.bw-stepper li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: default;
    position: relative;
}

.bw-stepper li.done,
.bw-stepper li.reachable { cursor: pointer; }

.bw-step-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    color: #64748b;
    font-weight: 800;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.bw-stepper li.active { color: #06385d; }

.bw-stepper li.active .bw-step-dot {
    background: #0284c7;
    border-color: #0284c7;
    color: #fff;
    box-shadow: 0 0 0 5px rgba(2, 132, 199, 0.15);
}

.bw-stepper li.done { color: #0f766e; }

.bw-stepper li.done .bw-step-dot {
    background: #ecfdf5;
    border-color: #10b981;
    color: transparent;
    position: relative;
}

.bw-stepper li.done .bw-step-dot::after {
    content: "\F633"; /* bi-check-lg */
    font-family: "bootstrap-icons";
    color: #059669;
    position: absolute;
    font-size: 1rem;
}

.bw-progress {
    height: 4px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.bw-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #0284c7);
    border-radius: inherit;
    transition: width 0.35s ease;
}

/* ---------- Steps ---------- */
.bw-step {
    display: none;
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.bw-step.active {
    display: block;
    animation: bwFade 0.3s ease;
}

@keyframes bwFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.bw-step-title {
    float: none;
    width: 100%;
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem);
    font-weight: 800;
    color: #06385d;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.bw-step-title .bi { color: #0284c7; }

.bw-step-sub {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.bw-field { margin-bottom: 1.5rem; }

.bw-label {
    display: block;
    font-weight: 700;
    font-size: 0.92rem;
    color: #1e293b;
    margin-bottom: 0.45rem;
}

.bw-label em { color: #dc2626; font-style: normal; }
.bw-label small { color: #64748b; font-weight: 500; }

.bw-card .form-control,
.bw-card .form-select {
    border-radius: 12px;
    border-color: #cbd5e1;
    min-height: 48px;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.bw-card textarea.form-control { min-height: 110px; }

.bw-card .form-control:focus,
.bw-card .form-select:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

.bw-card .is-invalid,
.bw-card .is-invalid:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12) !important;
}

.bw-error {
    color: #dc2626;
    font-size: 0.83rem;
    font-weight: 600;
    margin-top: 0.35rem;
    display: flex;
    gap: 0.35rem;
    align-items: flex-start;
}

.bw-group-invalid > .bw-label { color: #dc2626; }

.bw-sep {
    margin: 1.75rem 0 1.5rem;
    border-color: #e2e8f0;
    opacity: 1;
}

.bw-note {
    font-size: 0.84rem;
    color: #64748b;
    display: flex;
    gap: 0.4rem;
    align-items: flex-start;
}

.bw-note .bi { color: #0284c7; margin-top: 0.1rem; }

/* Option cards (Stelle) */
.bw-option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.bw-option {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.85rem 1rem 0.85rem 2.6rem;
    cursor: pointer;
    position: relative;
    background: #fff;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    min-height: 64px;
}

.bw-option::before {
    content: "";
    position: absolute;
    left: 0.95rem;
    top: 1.05rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #94a3b8;
    background: #fff;
    transition: all 0.2s ease;
}

.bw-option:hover { border-color: #7dd3fc; }

.bw-option-title {
    font-weight: 700;
    color: #06385d;
    line-height: 1.3;
}

.bw-option-sub {
    font-size: 0.8rem;
    color: #64748b;
}

.btn-check:checked + .bw-option {
    border-color: #0284c7;
    background: #f0f9ff;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.12);
}

.btn-check:checked + .bw-option::before {
    border-color: #0284c7;
    background: #0284c7;
    box-shadow: inset 0 0 0 3px #fff;
}

.btn-check:focus-visible + .bw-option,
.btn-check:focus-visible + .bw-chip,
.btn-check:focus-visible + label {
    outline: 3px solid rgba(2, 132, 199, 0.45);
    outline-offset: 2px;
}

/* Chips (multi select) */
.bw-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bw-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1.5px solid #cbd5e1;
    background: #fff;
    color: #334155;
    border-radius: 999px;
    padding: 0.5rem 0.95rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    min-height: 40px;
    transition: all 0.18s ease;
}

.bw-chip .bi {
    display: none;
    font-size: 1rem;
}

.bw-chip:hover { border-color: #38bdf8; color: #0369a1; }

.btn-check:checked + .bw-chip {
    background: #0284c7;
    border-color: #0284c7;
    color: #fff;
}

.btn-check:checked + .bw-chip .bi { display: inline-block; }

/* Segmented control (single select) */
.bw-segment {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    background: #f1f5f9;
    border-radius: 14px;
    padding: 4px;
    gap: 4px;
}

.bw-segment > label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-align: center;
    padding: 0.6rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #475569;
    cursor: pointer;
    min-height: 44px;
    line-height: 1.25;
    transition: all 0.18s ease;
}

.bw-segment > label:hover { color: #0284c7; }

.bw-segment > .btn-check:checked + label {
    background: #fff;
    color: #0284c7;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.bw-segment-wrap {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
}

/* Conditional block */
.bw-conditional {
    background: #f8fafc;
    border: 1px dashed #93c5fd;
    border-radius: 14px;
    padding: 1rem 0.75rem 0.25rem;
    margin: 1rem 0 0.5rem;
}

/* ---------- Uploads ---------- */
.bw-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.bw-upload {
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 0.95rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
}

.bw-upload.has-files { border-color: #34d399; }
.bw-upload.dragover { border-color: #0284c7; box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15); }

.bw-upload-head {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
}

.bw-upload-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #e0f2fe;
    color: #0284c7;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.bw-upload.has-files .bw-upload-icon { background: #d1fae5; color: #059669; }

.bw-upload-title {
    font-weight: 700;
    color: #06385d;
    line-height: 1.3;
    font-size: 0.95rem;
}

.bw-upload-hint {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.35;
    margin-top: 0.15rem;
}

.bw-tag {
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #fef3c7;
    color: #92400e;
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    vertical-align: middle;
    margin-left: 0.2rem;
}

.bw-drop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 2px dashed #bae6fd;
    border-radius: 12px;
    background: #f8fbff;
    color: #0369a1;
    padding: 0.7rem;
    font-size: 0.88rem;
    cursor: pointer;
    min-height: 48px;
    text-align: center;
    transition: all 0.2s ease;
}

.bw-drop:hover { background: #f0f9ff; border-color: #38bdf8; }
.bw-drop .bi { font-size: 1.3rem; }

.bw-drop input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.bw-drop:focus-within { outline: 3px solid rgba(2, 132, 199, 0.4); outline-offset: 2px; }

.bw-files {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.bw-files:empty { display: none; }

.bw-files li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.4rem 0.4rem 0.4rem 0.65rem;
    font-size: 0.82rem;
    min-width: 0;
}

.bw-files .bi-file-earmark-pdf { color: #dc2626; }
.bw-files .bi-file-earmark-image { color: #0284c7; }
.bw-files .bi-file-earmark-word { color: #1d4ed8; }

.bw-file-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    color: #1e293b;
}

.bw-file-size { color: #64748b; white-space: nowrap; }

.bw-file-remove {
    border: 0;
    background: transparent;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.bw-file-remove:hover { background: #fee2e2; color: #dc2626; }

.bw-upload-meter {
    margin-top: 1.25rem;
    padding: 0.9rem 1rem;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.bw-meter {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.bw-meter span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #34d399, #10b981);
    border-radius: inherit;
    transition: width 0.3s ease;
}

.bw-meter.warn span { background: linear-gradient(90deg, #fbbf24, #f59e0b); }

/* ---------- Summary, consent, captcha ---------- */
.bw-summary {
    margin: 1.5rem 0;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
}

.bw-summary-section {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.bw-summary-section:last-child { border-bottom: 0; }

.bw-summary-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0284c7;
    margin-bottom: 0.35rem;
}

.bw-summary-head button {
    border: 0;
    background: none;
    color: #0369a1;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: 0;
    padding: 0.25rem 0.4rem;
    border-radius: 6px;
}

.bw-summary-head button:hover { background: #e0f2fe; }

.bw-summary dl {
    display: grid;
    grid-template-columns: minmax(110px, 34%) 1fr;
    gap: 0.25rem 0.75rem;
    margin: 0;
    font-size: 0.88rem;
}

.bw-summary dt { color: #64748b; font-weight: 500; }
.bw-summary dd { margin: 0; font-weight: 600; color: #1e293b; overflow-wrap: anywhere; }

.bw-consent {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    font-size: 0.88rem;
    color: #334155;
}

.bw-consent .form-check-input {
    width: 1.25em;
    height: 1.25em;
    margin-top: 0.15em;
}

.bw-consent .form-check { padding-left: 2em; }
.bw-consent .form-check-input { margin-left: -2em; }

.bw-captcha { margin-top: 1.25rem; }


/* ---------- Navigation ---------- */
.bw-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
}

.bw-nav-step {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    margin-right: auto;
    margin-left: 0.25rem;
}

.bw-btn[hidden] + .bw-nav-step { margin-left: 0; }

.bw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.98rem;
    border: 2px solid transparent;
    text-decoration: none;
    min-height: 48px;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.bw-btn:disabled { opacity: 0.65; cursor: not-allowed; }

.bw-btn-primary {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #fff;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.3);
}

.bw-btn-primary:hover { color: #fff; transform: translateY(-1px); }

.bw-btn-send {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.bw-btn-send:hover { color: #fff; transform: translateY(-1px); }

.bw-btn-ghost {
    background: #fff;
    border-color: #cbd5e1;
    color: #334155;
}

.bw-btn-ghost:hover { border-color: #0284c7; color: #0284c7; }

.bw-upload-progress { margin-top: 1rem; }
.bw-upload-progress .bw-meter span { background: linear-gradient(90deg, #38bdf8, #0284c7); }

/* ---------- Alerts ---------- */
.bw-alert {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    font-size: 0.92rem;
}

.bw-alert[hidden] { display: none; }

/* Honeypot */
.bw-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Success ---------- */
.bw-success {
    text-align: center;
    padding: 1.5rem 0.5rem 0.5rem;
    animation: bwFade 0.4s ease;
}

.bw-success:focus { outline: none; }

.bw-success-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #34d399, #059669);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 2.6rem;
    box-shadow: 0 0 0 10px #d1fae5;
}

.bw-success h2 { color: #06385d; font-weight: 800; }

.bw-ref {
    display: inline-block;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-size: 0.92rem;
    color: #334155;
}

.bw-next-steps {
    list-style: none;
    padding: 0;
    margin: 1.75rem auto 0;
    max-width: 520px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bw-next-steps li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.85rem 1rem;
}

.bw-next-steps .bi {
    font-size: 1.3rem;
    color: #0284c7;
}

.bw-next-steps strong { display: block; color: #06385d; }
.bw-next-steps span { font-size: 0.88rem; color: #64748b; }

/* ---------- Sidebar ---------- */
.bw-aside {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bw-aside-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 6px 20px rgba(6, 56, 93, 0.05);
}

.bw-aside-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #06385d;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.65rem;
}

.bw-aside-card h3 .bi { color: #0284c7; }

.bw-aside-contact {
    background: linear-gradient(145deg, #06385d, #0b649b);
    border: 0;
    color: rgba(255, 255, 255, 0.85);
}

.bw-aside-contact h3,
.bw-aside-contact h3 .bi { color: #fff; }

.bw-aside-contact p { font-size: 0.9rem; }

.bw-aside-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    margin-top: 0.5rem;
    min-height: 46px;
}

.bw-aside-link:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }

.bw-benefits,
.bw-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 0.92rem;
    color: #334155;
}

.bw-benefits li { display: flex; gap: 0.6rem; align-items: center; }
.bw-benefits .bi { color: #0284c7; font-size: 1.1rem; width: 1.3rem; text-align: center; }

.bw-checklist li { padding-left: 1.6rem; position: relative; }

.bw-checklist li::before {
    content: "\F26E"; /* bi-check-circle */
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    color: #10b981;
}

.bw-aside-privacy {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.bw-aside-privacy > .bi { font-size: 1.6rem; color: #059669; }
.bw-aside-privacy strong { display: block; color: #065f46; }
.bw-aside-privacy span { font-size: 0.85rem; color: #047857; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991.98px) {
    .bw-aside { position: static; }

    .bw-aside {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bw-aside-privacy { grid-column: 1 / -1; }
}

@media (max-width: 767.98px) {
    .bw-hero { padding: 1.75rem 0 4rem; }
    .bw-card { padding: 1.25rem 1.1rem 1.1rem; border-radius: 18px; }
    .bw-option-grid { grid-template-columns: 1fr; }
    .bw-upload-grid { grid-template-columns: 1fr; }
    .bw-segment-wrap { grid-template-columns: repeat(2, 1fr); }
    .bw-stepper .bw-step-label { font-size: 0.75rem; }
    .bw-aside { grid-template-columns: 1fr; }
    .bw-summary dl { grid-template-columns: 1fr; gap: 0 0; }
    .bw-summary dt { margin-top: 0.4rem; font-size: 0.8rem; }
}

@media (max-width: 575.98px) {
    .bw-main > .container > .row { margin-top: -3rem; }
    .bw-hero-chips span { font-size: 0.78rem; padding: 0.35rem 0.7rem; }

    .bw-stepper li:not(.active) .bw-step-label { display: none; }
    .bw-stepper li.active .bw-step-label { white-space: nowrap; }
    .bw-step-dot { width: 30px; height: 30px; font-size: 0.82rem; }

    .bw-segment { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
    .bw-segment-sm { grid-auto-flow: column; grid-template-columns: none; }

    /* Sticky action bar at the bottom of the screen */
    .bw-nav {
        position: sticky;
        bottom: 0;
        z-index: 20;
        background: rgba(255, 255, 255, 0.97);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        margin: 1.25rem -1.1rem -1.1rem;
        padding: 0.75rem 1.1rem calc(0.75rem + env(safe-area-inset-bottom));
        border-radius: 0 0 18px 18px;
        box-shadow: 0 -6px 16px rgba(15, 23, 42, 0.06);
    }

    .bw-nav-step { display: none; }
    .bw-nav .bw-btn { flex: 1; padding: 0.7rem 1rem; }
    .bw-nav #bwPrev { flex: 0 0 auto; }
}

@media (max-width: 359.98px) {
    .bw-segment { grid-template-columns: 1fr; }
    .bw-nav #bwPrev span { display: none; }
}

/* Floating KI button must not cover the sticky action bar on this page */
@media (max-width: 575.98px) {
    body:has(.bw-nav) .floating-chat-trigger,
    body:has(.bw-nav) .btn-scroll-top {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bw-step.active,
    .bw-success { animation: none; }
}

.bw-alert.bw-alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

/* Phones: compact back button so "Bewerbung absenden" stays on one line */
@media (max-width: 575.98px) {
    .bw-chip { border-radius: 12px; text-align: left; line-height: 1.3; }

    .bw-nav #bwPrev {
        width: 48px;
        padding: 0;
        flex: 0 0 48px;
    }

    .bw-nav #bwPrev span { display: none; }
    .bw-nav .bw-btn { white-space: nowrap; font-size: 0.95rem; }
}

/* Upload grid: buttons aligned per row, last odd card spans the full width */
.bw-upload .bw-drop { margin-top: auto; }

@media (min-width: 768px) {
    .bw-upload:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
