/* ── Page wrapper ─────────────────────────────────────── */
.bbs-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px 100px;
}

/* ── Hero ─────────────────────────────────────────────── */
.bbs-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    padding: 44px 0 40px;
    border-bottom: 1px solid #e2eaf0;
    margin-bottom: 40px;
}

.bbs-hero-copy { flex: 1; min-width: 0; }

.bbs-kicker {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #607384;
}

.bbs-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    letter-spacing: -.03em;
    color: #13283b;
}

.bbs-lead {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #556575;
    max-width: 54ch;
}

/* Hero right panel */
.bbs-hero-panel {
    flex-shrink: 0;
    width: 300px;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #dbe8f0;
    background: linear-gradient(160deg, #f4f9fd 0%, #ffffff 100%);
}

.bbs-hero-panel-label {
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #7d96a8;
}

.bbs-hero-flow {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.bbs-hero-flow-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
}

.bbs-hero-flow-row.eingang { background: #fff7ed; color: #c2410c; }
.bbs-hero-flow-row.ausgang { background: #f0fdf4; color: #15803d; }
.bbs-hero-flow-row.auszug { background: #eff6ff; color: #1d4ed8; }
.bbs-hero-flow-row.kassabon { background: #fffbeb; color: #92400e; }
.bbs-hero-flow-row.gutschrift { background: #faf5ff; color: #6d28d9; }

.bbs-hero-flow-arrow {
    font-size: 11px;
    color: #9baab6;
    flex-shrink: 0;
}

.bbs-hero-panel-note {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    color: #9baab6;
    text-align: center;
}

/* ── Stage ────────────────────────────────────────────── */
.bbs-stage { display: flex; flex-direction: column; gap: 0; }

/* ── Topline ──────────────────────────────────────────── */
.bbs-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
}

.bbs-status-chip {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: #eef4f9;
    border: 1px solid #d4e2ec;
    font-size: 13px;
    font-weight: 700;
    color: #2f5878;
}

.bbs-back-link {
    font-size: 13px;
    font-weight: 700;
    color: #607384;
    text-decoration: none;
}

.bbs-back-link:hover { color: #17304a; }

/* ── Path indicator ───────────────────────────────────── */
.bbs-path {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 36px;
}

.bbs-path article {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid #dbe4eb;
    background: #f8fbfd;
}

.bbs-path--a {
    border-color: #bfdbfe;
    background: linear-gradient(160deg, #eff6ff 0%, #f8fbfd 100%);
}

.bbs-path--b {
    border-color: #a7f3d0;
    background: linear-gradient(160deg, #f0fdf7 0%, #f8fbfd 100%);
}

.bbs-path-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 4px;
}

.bbs-path-badge--a { background: #2563eb; }
.bbs-path-badge--b { background: #059669; }

.bbs-path article h2 { margin: 0; font-size: 1rem; color: #17304a; }
.bbs-path article p { margin: 0; font-size: .84rem; line-height: 1.6; color: #607384; }

/* ── Reference grid ───────────────────────────────────── */
.bbs-reference-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 48px;
}

.bbs-reference-card {
    padding: 22px;
    border-radius: 14px;
    border: 1px solid #dbe4eb;
}

.bbs-reference-card:nth-child(1) {
    background: linear-gradient(160deg, #dbeafe 0%, #ffffff 60%);
    border-color: #bfdbfe;
    border-top: 3px solid #3b82f6;
}

.bbs-reference-card:nth-child(2) {
    background: linear-gradient(160deg, #d1fae5 0%, #ffffff 60%);
    border-color: #a7f3d0;
    border-top: 3px solid #10b981;
}

.bbs-reference-card:nth-child(3) {
    background: linear-gradient(160deg, #fef3c7 0%, #ffffff 60%);
    border-color: #fde68a;
    border-top: 3px solid #f59e0b;
}

.bbs-reference-card h2 { margin: 0 0 8px; font-size: .95rem; color: #17304a; }
.bbs-reference-card p { margin: 0; font-size: .87rem; line-height: 1.7; color: #556575; }

/* ── Sections ─────────────────────────────────────────── */
.bbs-section {
    margin-bottom: 60px;
    padding: 28px 24px;
    border-radius: 18px;
    border: 1px solid #e6eef4;
    background: #fafcfe;
}

.bbs-section-head {
    margin-bottom: 20px;
    padding-left: 14px;
}

.bbs-section-kicker {
    display: inline-block;
    margin: 0 0 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: #e8eff6;
    color: #4d7a9a;
}

.bbs-section-head h2 { margin: 0 0 5px; font-size: 1.4rem; color: #17304a; }
.bbs-section-desc { margin: 0; font-size: .9rem; color: #607384; }

.bbs-section--a {
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #f5f9ff 0%, #fafcff 100%);
}
.bbs-section--a .bbs-section-head { border-left: 4px solid #3b82f6; }
.bbs-section--a .bbs-section-kicker { background: #dbeafe; color: #1d4ed8; }

.bbs-section--b {
    border-color: #a7f3d0;
    background: linear-gradient(180deg, #f3fdf8 0%, #fafcff 100%);
}
.bbs-section--b .bbs-section-head { border-left: 4px solid #10b981; }
.bbs-section--b .bbs-section-kicker { background: #d1fae5; color: #065f46; }

/* ── Cards ────────────────────────────────────────────── */
.bbs-card-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bbs-card {
    padding: 24px;
    border: 1px solid #dbe4eb;
    border-radius: 16px;
    background: #fff;
}

.bbs-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.bbs-card-head h3 { margin: 0; font-size: 1.05rem; color: #17304a; }

.bbs-card-number {
    font-size: 12px;
    font-weight: 700;
    color: #9baab6;
    white-space: nowrap;
    flex-shrink: 0;
}

.bbs-card-text {
    margin: 0 0 18px;
    font-size: .92rem;
    line-height: 1.72;
    color: #556575;
}

/* ── MC options ───────────────────────────────────────── */
.bbs-options { display: flex; flex-direction: column; gap: 8px; }

.bbs-option-btn {
    padding: 13px 16px;
    border-radius: 10px;
    border: 1px solid #d4e0ea;
    background: #f8fbfd;
    color: #214661;
    font: inherit;
    font-size: .92rem;
    text-align: left;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.bbs-option-btn:not(:disabled):hover { background: #eef4f9; border-color: #b8cdd9; }
.bbs-option-btn.is-correct { border-color: #4caf7d; background: #e8f7ef; color: #1d5c38; font-weight: 700; }
.bbs-option-btn.is-wrong { border-color: #e5604a; background: #fef0ed; color: #8b2c1a; }

/* ── Feedback ─────────────────────────────────────────── */
.bbs-feedback {
    margin: 14px 0 0;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: .9rem;
    line-height: 1.65;
}

.bbs-feedback.is-success { background: #e8f7ef; color: #1d5c38; border: 1px solid #b6dfc8; }
.bbs-feedback.is-error { background: #fef0ed; color: #7a2a1a; border: 1px solid #f0b9ae; }

/* ── Booking card ─────────────────────────────────────── */
.bbs-booking-card {
    padding: 24px;
    border: 1px solid #dbe4eb;
    border-radius: 16px;
    background: #fff;
}

.bbs-booking-card.is-solved {
    border-color: #a7f3d0;
    background: linear-gradient(180deg, #f3fdf8 0%, #fff 60%);
}

.bbs-booking-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

/* ── Beleg badge ──────────────────────────────────────── */
.bbs-beleg-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.bbs-beleg-badge.eingang { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.bbs-beleg-badge.ausgang { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.bbs-beleg-badge.auszug { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.bbs-beleg-badge.kassabon { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.bbs-beleg-badge.gutschrift { background: #faf5ff; color: #6d28d9; border: 1px solid #e9d5ff; }

.bbs-booking-title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: #17304a;
}

/* ── Booking board (2 columns: Soll | Haben) ──────────── */
.bbs-booking-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.bbs-slot-wrap { display: grid; gap: 6px; }

.bbs-slot-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #586a7b;
    padding-left: 2px;
}

/* ── Drop zone ────────────────────────────────────────── */
.bbs-dropzone {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 2px dashed #b8cdd9;
    background: #f4f9fd;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.bbs-dropzone:not(.is-locked):hover,
.bbs-dropzone.is-over {
    border-color: #059669;
    background: #f0fdf7;
}

.bbs-dropzone.is-filled {
    border-style: solid;
    border-color: #a9c7b5;
    padding: 8px;
}

.bbs-dropzone.is-locked { cursor: default; }

.bbs-drop-placeholder { font-size: .87rem; color: #9baab6; }

/* ── Drop item (account chip inside zone) ─────────────── */
.bbs-drop-item {
    display: block;
    width: 100%;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 700;
    cursor: grab;
}

.bbs-drop-item.class-0 { background: #f1f5f9; color: #2c3e50; border: 1px solid #cbd5e1; }
.bbs-drop-item.class-1 { background: #f0f9ff; color: #0c4a6e; border: 1px solid #bae6fd; }
.bbs-drop-item.class-2 { background: #f0fdf7; color: #065f46; border: 1px solid #a7f3d0; }
.bbs-drop-item.class-3 { background: #fff7f5; color: #7a2000; border: 1px solid #fecaca; }
.bbs-drop-item.class-4 { background: #fdf4ff; color: #6b21a8; border: 1px solid #e9d5ff; }
.bbs-drop-item.class-5 { background: #fdf6f0; color: #7c3100; border: 1px solid #fed7aa; }
.bbs-drop-item.class-6 { background: #f0fdfa; color: #134e4a; border: 1px solid #99f6e4; }
.bbs-drop-item.class-7 { background: #fdf6ec; color: #7a3d00; border: 1px solid #fed7aa; }
.bbs-drop-item.class-8 { background: #eef2ff; color: #3730a3; border: 1px solid #c7d2fe; }
.bbs-drop-item.class-9 { background: #faf5ff; color: #4c1d95; border: 1px solid #e9d5ff; }

/* ── Betrag row ───────────────────────────────────────── */
.bbs-betrag-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.bbs-betrag-label {
    font-size: .88rem;
    font-weight: 700;
    color: #405060;
    white-space: nowrap;
}

.bbs-betrag-input {
    width: 130px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #cad7e3;
    font: inherit;
    font-size: .97rem;
    color: #17304a;
    background: #f8fbfd;
}

.bbs-betrag-input:focus { outline: none; border-color: #2f7fd1; background: #fff; }
.bbs-betrag-input:disabled { background: #f0f5f9; color: #607384; }

.bbs-check-btn {
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    background: #193147;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .15s;
}

.bbs-check-btn:not(:disabled):hover { background: #254863; transform: translateY(-1px); }
.bbs-check-btn:disabled { opacity: .45; cursor: default; }

/* ── Card feedback (hint / error / success) ───────────── */
.bbs-case-feedback {
    margin: 0;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: .9rem;
    line-height: 1.65;
}

.bbs-case-feedback.is-idle { background: #f4f9fd; color: #556575; border: 1px solid #d4e0ea; }
.bbs-case-feedback.is-success { background: #e8f7ef; color: #1d5c38; border: 1px solid #b6dfc8; font-weight: 600; }
.bbs-case-feedback.is-error { background: #fef0ed; color: #7a2a1a; border: 1px solid #f0b9ae; }

/* ── Summary ──────────────────────────────────────────── */
.bbs-summary-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 28px;
    border: 1px solid #dbe4eb;
    border-radius: 18px;
    background: #fff;
    margin-top: 8px;
}

.bbs-summary-kicker {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #7d96a8;
}

.bbs-summary-copy h2 { margin: 0 0 6px; font-size: 1.2rem; color: #17304a; }
.bbs-summary-copy p { margin: 0; font-size: .92rem; line-height: 1.7; color: #556575; }

.bbs-cta-link {
    display: inline-flex;
    align-items: center;
    margin-top: 18px;
    padding: 12px 20px;
    border-radius: 12px;
    background: #193147;
    color: #fff;
    font-weight: 800;
    font-size: .92rem;
    text-decoration: none;
    transition: background .18s, transform .18s;
}

.bbs-cta-link:hover { background: #254863; transform: translateY(-1px); }

.bbs-reset-btn {
    flex-shrink: 0;
    padding: 11px 18px;
    border-radius: 12px;
    border: 1px solid #d4e0ea;
    background: #f8fbfd;
    color: #214661;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}

.bbs-reset-btn:hover { background: #eef4f9; }

/* ── Two-column layout (Part B) ───────────────────────── */
.bbs-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 310px);
    gap: 22px;
    align-items: start;
}

.bbs-main { min-width: 0; }

/* ── Sidebar ──────────────────────────────────────────── */
.bbs-sidebar {
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    box-sizing: border-box;
    padding: 18px;
    border: 1px solid #d9e8e2;
    border-radius: 20px;
    background: linear-gradient(180deg, #f4fbf7 0%, #ffffff 100%);
}

.bbs-sidebar-head { margin-bottom: 16px; }

.bbs-sidebar-kicker {
    margin: 0 0 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #9baab6;
}

.bbs-sidebar-head h2 { margin: 0 0 4px; font-size: .95rem; color: #17304a; }
.bbs-sidebar-head p { margin: 0; font-size: .8rem; line-height: 1.55; color: #7d96a8; }

/* ── Account bank ─────────────────────────────────────── */
.bbs-account-bank { display: grid; gap: 8px; margin-top: 16px; }

/* ── Kontenplan tree classes (shared design) ──────────── */
.business-cases-account-class { display: grid; gap: 6px; }

.business-cases-class-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 850;
    line-height: 1.28;
    text-align: left;
    cursor: pointer;
}

.business-cases-class-header span,
.business-cases-class-header strong { min-width: 0; }

.business-cases-class-header::after { content: "+"; grid-column: 3; justify-self: end; font-size: 1rem; }
.business-cases-class-header.is-open::after { content: "-"; }

.business-cases-class-header.class-0 { background: #6b7280; }
.business-cases-class-header.class-1 { background: #0ea5e9; }
.business-cases-class-header.class-2 { background: #16a34a; }
.business-cases-class-header.class-3 { background: #f97316; }
.business-cases-class-header.class-4 { background: #a855f7; }
.business-cases-class-header.class-5 { background: #475569; }
.business-cases-class-header.class-6 { background: #0f766e; }
.business-cases-class-header.class-7 { background: #dc2626; }
.business-cases-class-header.class-8 { background: #44403c; }
.business-cases-class-header.class-9 { background: #7c3aed; }

.business-cases-subaccounts { display: none; gap: 6px; padding: 0 0 4px 10px; }
.business-cases-subaccounts.is-open { display: grid; }

.business-cases-account-btn {
    display: grid;
    align-content: center;
    min-height: 42px;
    padding: 8px 10px;
    background: #ffffff;
    border: 1px solid #d9e8e2;
    border-radius: 10px;
    text-align: left;
    font: inherit;
    font-size: 0.9rem;
    color: #17304a;
    cursor: grab;
    transition: background .12s, border-color .12s, transform .12s;
}

.business-cases-account-btn:hover { transform: translateX(2px); filter: brightness(.97); }
.business-cases-account-btn.is-selected { border-color: #58b57a; background: #e5f8ed; color: #24553a; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 980px) {
    .bbs-layout { grid-template-columns: 1fr; }
    .bbs-sidebar { position: static !important; max-height: none; }
    .bbs-account-bank { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .bbs-hero { flex-direction: column; }
    .bbs-hero-panel { width: 100%; }
    .bbs-path { grid-template-columns: 1fr; }
    .bbs-reference-grid { grid-template-columns: 1fr; }
    .bbs-booking-board { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .bbs-betrag-row { flex-wrap: wrap; }
    .bbs-betrag-input { width: 100%; }
}
