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

/* ── Hero ─────────────────────────────────────────────── */
.dc-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;
}

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

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

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

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

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

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

.dc-hero-chain {
    margin: 0 0 10px;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dc-hero-chain li {
    font-size: 12.5px;
    font-weight: 700;
    color: #2f5878;
    line-height: 1.4;
}

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

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

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

.dc-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;
}

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

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

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

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

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

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

.dc-path--c {
    border-color: #fde68a;
    background: linear-gradient(160deg, #fffbeb 0%, #f8fbfd 100%);
}

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

.dc-path-badge--a { background: #2563eb; }
.dc-path-badge--b { background: #059669; }
.dc-path-badge--c { background: #d97706; }

.dc-path article h2 {
    margin: 0;
    font-size: 1rem;
    color: #17304a;
}

.dc-path article p {
    margin: 0;
    font-size: .84rem;
    line-height: 1.6;
    color: #607384;
}

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

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

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

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

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

.dc-reference-card h2 {
    margin: 0 0 8px;
    font-size: .95rem;
    color: #17304a;
}

.dc-reference-card p {
    margin: 0;
    font-size: .87rem;
    line-height: 1.7;
    color: #556575;
}

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

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

.dc-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;
}

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

.dc-section-desc {
    margin: 0;
    font-size: .9rem;
    color: #607384;
}

/* Section A — blue */
.dc-section--a {
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #f5f9ff 0%, #fafcff 100%);
}

.dc-section--a .dc-section-head {
    border-left: 4px solid #3b82f6;
}

.dc-section--a .dc-section-kicker {
    background: #dbeafe;
    color: #1d4ed8;
}

/* Section B — emerald */
.dc-section--b {
    border-color: #a7f3d0;
    background: linear-gradient(180deg, #f3fdf8 0%, #fafcff 100%);
}

.dc-section--b .dc-section-head {
    border-left: 4px solid #10b981;
}

.dc-section--b .dc-section-kicker {
    background: #d1fae5;
    color: #065f46;
}

/* Section C — amber */
.dc-section--c {
    border-color: #fde68a;
    background: linear-gradient(180deg, #fdfaf3 0%, #fafcff 100%);
}

.dc-section--c .dc-section-head {
    border-left: 4px solid #f59e0b;
}

.dc-section--c .dc-section-kicker {
    background: #fef3c7;
    color: #92400e;
}

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

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

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

.dc-card-head h3,
.dc-beleg-label {
    margin: 0;
    font-size: 1.05rem;
    color: #17304a;
}

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

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

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

.dc-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 ease, border-color .15s ease;
}

.dc-option-btn:not(:disabled):hover {
    background: #eef4f9;
    border-color: #b8cdd9;
}

.dc-option-btn.is-correct {
    border-color: #4caf7d;
    background: #e8f7ef;
    color: #1d5c38;
    font-weight: 700;
}

.dc-option-btn.is-wrong {
    border-color: #e5604a;
    background: #fef0ed;
    color: #8b2c1a;
}

/* ── Classify buttons ─────────────────────────────────── */
.dc-classify-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 2px;
}

.dc-classify-btn {
    flex: 1;
    padding: 13px 12px;
    border-radius: 10px;
    border: 2px solid transparent;
    font: inherit;
    font-weight: 700;
    font-size: .92rem;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.dc-classify-btn.is-vorgang {
    background: #eff6ff;
    border-color: #c5d9f5;
    color: #1a4f8a;
}

.dc-classify-btn.is-geld {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.dc-classify-btn:not(:disabled):hover {
    transform: translateY(-1px);
    filter: brightness(.96);
}

.dc-classify-btn.is-correct {
    border-color: #4caf7d;
    background: #e8f7ef;
    color: #1d5c38;
}

.dc-classify-btn.is-wrong {
    border-color: #e5604a;
    background: #fef0ed;
    color: #8b2c1a;
}

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

.dc-feedback.is-success {
    background: #e8f7ef;
    color: #1d5c38;
    border: 1px solid #b6dfc8;
}

.dc-feedback.is-error {
    background: #fef0ed;
    color: #7a2a1a;
    border: 1px solid #f0b9ae;
}

/* ── Summary ──────────────────────────────────────────── */
.dc-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;
}

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

.dc-summary-copy h2 {
    margin: 0 0 6px;
    font-size: 1.2rem;
    color: #17304a;
}

.dc-summary-copy p {
    margin: 0;
    font-size: .92rem;
    line-height: 1.7;
    color: #556575;
}

.dc-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 ease, transform .18s ease;
}

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

.dc-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 ease;
}

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

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

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

/* ── Sidebar ──────────────────────────────────────────── */
.dc-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%);
}

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

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

.dc-sidebar-head h2 {
    margin: 0 0 4px;
    font-size: .95rem;
    color: #17304a;
}

.dc-sidebar-head p {
    margin: 0;
    font-size: .8rem;
    line-height: 1.55;
    color: #7d96a8;
}

/* ── Account bank (matches business-cases design) ─────── */
.dc-account-bank {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.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;
    cursor: grab;
    transition: background .12s ease, border-color .12s ease, transform .12s ease;
}

.business-cases-account-btn:hover {
    transform: translateX(2px);
    filter: brightness(.97);
}

.business-cases-account-btn.is-selected {
    border-color: #58b57a;
    background: #e5f8ed;
    color: #24553a;
}

/* ── Beleg cards ──────────────────────────────────────── */
.dc-beleg-tag {
    display: inline-block;
    margin-bottom: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dc-beleg-card h3 {
    margin: 4px 0 0;
    font-size: .98rem;
    color: #17304a;
}

/* ── Drop zone ────────────────────────────────────────── */
.dc-drop-zone {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px dashed #b8cdd9;
    background: #f4f9fd;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
    margin-bottom: 2px;
}

.dc-drop-zone:hover,
.dc-drop-zone.is-over {
    border-color: #2563eb;
    background: #eff6ff;
}

.dc-drop-zone.is-correct {
    border: 2px solid #4caf7d;
    background: #e8f7ef;
    cursor: default;
}

.dc-drop-zone.is-wrong {
    border: 2px solid #e5604a;
    background: #fef0ed;
}

.dc-drop-placeholder {
    font-size: .88rem;
    color: #9baab6;
}

.dc-drop-tip {
    margin: 8px 0 0;
    font-size: .82rem;
    color: #9baab6;
    line-height: 1.5;
}

/* ── Drop chip ────────────────────────────────────────── */
.dc-drop-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 700;
    cursor: grab;
}

.dc-drop-chip.class-0 { background: #f1f5f9; color: #2c3e50; border: 1px solid #cbd5e1; }
.dc-drop-chip.class-1 { background: #fffbeb; color: #5b4a00; border: 1px solid #fde68a; }
.dc-drop-chip.class-2 { background: #eff6ff; color: #1a4a7a; border: 1px solid #bfdbfe; }
.dc-drop-chip.class-3 { background: #fff7f5; color: #7a2000; border: 1px solid #fecaca; }
.dc-drop-chip.class-4 { background: #f0fdf7; color: #065f46; border: 1px solid #a7f3d0; }
.dc-drop-chip.class-5 { background: #fdf6f0; color: #7c3100; border: 1px solid #fed7aa; }
.dc-drop-chip.class-6 { background: #f0fdfa; color: #134e4a; border: 1px solid #99f6e4; }
.dc-drop-chip.class-7 { background: #fdf6ec; color: #7a3d00; border: 1px solid #fcd5a0; }
.dc-drop-chip.class-8 { background: #eef2ff; color: #3730a3; border: 1px solid #c7d2fe; }
.dc-drop-chip.class-9 { background: #faf5ff; color: #4c1d95; border: 1px solid #e9d5ff; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 980px) {
    .dc-layout {
        grid-template-columns: 1fr;
    }

    .dc-sidebar {
        position: static !important;
        max-height: none;
    }

    .dc-account-bank {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .dc-hero {
        flex-direction: column;
    }

    .dc-hero-panel {
        width: 100%;
    }

    .dc-path,
    .dc-reference-grid {
        grid-template-columns: 1fr;
    }

    .dc-summary-card {
        flex-direction: column;
    }

    .dc-section {
        padding: 20px 16px;
    }
}

@media (min-width: 721px) and (max-width: 900px) {
    .dc-path,
    .dc-reference-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dc-hero-panel {
        width: 200px;
    }
}
