:root {
    --brand: #3056d3;
    --ink: #162033;
    --line: #e2e8f5;
    --soft: #eef4ff;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--ink);
    background: #f7f9fc;
    font-family: system-ui, "Segoe UI", Arial, sans-serif;
}

[hidden] {
    display: none !important;
}

.navbar {
    box-shadow: 0 1px 0 rgba(31, 55, 92, .04);
}

.navbar-brand {
    color: var(--ink);
    font-weight: 700;
}

.brand-mark {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: var(--soft);
    border-radius: 10px;
}

.env-banner {
    color: #ecfdf5;
    background: #064e3b;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.tool-hero {
    background: linear-gradient(180deg, #edf3ff 0, #f7f9fc 100%);
    border-bottom: 1px solid #e5ecff;
}

.hero-copy {
    max-width: 720px;
    color: #48566f;
}

.hero-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}

.hero-trust-grid > div {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: .9rem 1rem;
    background: rgba(255, 255, 255, .78);
    border: 1px solid #dce6fb;
    border-radius: 12px;
}

.hero-trust-grid strong {
    color: #243f9e;
    font-size: .9rem;
}

.hero-trust-grid span {
    color: #52627a;
    font-size: .78rem;
    line-height: 1.35;
}

.shadow-soft {
    box-shadow: 0 12px 28px rgba(30, 60, 114, .08);
}

.card {
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(30, 60, 114, .05);
}

.card-body {
    padding: 1.2rem;
}

.btn {
    border-radius: 10px;
    white-space: nowrap;
}

.btn-pill,
.nav-tabs .nav-link {
    border-radius: 999px;
}

.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 8px 16px rgba(48, 86, 211, .18);
}

.form-control {
    padding: .7rem .85rem;
    border-color: #d8e1f3;
    border-radius: 10px;
}

.form-control:focus {
    border-color: #9db4ff;
    box-shadow: 0 0 0 .2rem rgba(48, 86, 211, .12);
}

.btn-ai {
    white-space: nowrap;
}

.btn-ai-filled,
.badge-ai {
    color: #fff;
    background: #6f42c1;
    border-color: #6f42c1;
}

.btn-ai-filled:hover,
.btn-ai-filled:focus {
    color: #fff;
    background: #5a32a3;
    border-color: #5a32a3;
}

.badge-soft {
    color: #3b5bcc;
    background: #eef2ff;
    border: 1px solid #dde5ff;
}

.dropzone {
    border: 1px dashed #b9c8e6;
    border-radius: 12px;
    background: #fbfdff;
}

.test-output {
    padding: 1rem;
    color: #14532d;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    animation: panel-in .16s ease;
}

.test-output-list {
    display: grid;
    gap: .45rem;
    padding-left: 0;
    list-style: none;
}

.test-output-list li {
    display: flex;
    align-items: center;
}

.result-area,
[data-result-case],
[data-scan-stage] {
    scroll-margin-top: 105px;
}

.progress {
    height: 10px;
}

.progress-bar {
    width: 0;
}

.progress-bar.progress-25 { width: 25%; }
.progress-bar.progress-55 { width: 55%; }
.progress-bar.progress-80 { width: 80%; }
.progress-bar.progress-100 { width: 100%; }

.progress-bar.progress-complete {
    width: 100%;
}

.batch-demo-shell {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.batch-file-details {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfdff;
}

.batch-file-details > summary {
    padding: 1rem 1.1rem;
    color: #2947aa;
    cursor: pointer;
    font-weight: 700;
}

.batch-file-details > div {
    padding: 0 1rem 1rem;
}

.batch-executive-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, .8fr);
    gap: 1.25rem;
    align-items: center;
    padding: 1.4rem;
    background: #fff;
    border: 1px solid #ccd8f3;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(30, 60, 114, .08);
}

.batch-summary-numbers {
    display: grid;
    gap: .55rem;
}

.batch-summary-numbers span {
    display: flex;
    align-items: baseline;
    gap: .45rem;
    padding: .6rem .75rem;
    background: #f8faff;
    border-radius: 9px;
}

.batch-summary-numbers strong {
    font-size: 1.35rem;
}

.batch-demo-table-wrap {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.batch-demo-table {
    min-width: 1050px;
}

.batch-demo-row-green > * {
    --bs-table-bg: #effaf4;
    --bs-table-hover-bg: #e5f6ed;
}

.batch-demo-row-yellow > * {
    --bs-table-bg: #fff8df;
    --bs-table-hover-bg: #fff0bf;
}

.batch-demo-row-red > * {
    --bs-table-bg: #fff1ef;
    --bs-table-hover-bg: #fde2de;
}

.batch-profile-switch {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    width: 46px;
    height: 26px;
}

.batch-profile-switch input {
    width: 0;
    height: 0;
    opacity: 0;
}

.batch-profile-slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #b8c2d2;
    border-radius: 999px;
    transition: .18s ease;
}

.batch-profile-slider::before {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    content: "";
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .22);
    transition: .18s ease;
}

.batch-profile-switch input:checked + .batch-profile-slider {
    background: var(--brand);
}

.batch-profile-switch input:checked + .batch-profile-slider::before {
    transform: translateX(20px);
}

.batch-profile-switch input:focus-visible + .batch-profile-slider {
    outline: 3px solid rgba(48, 86, 211, .25);
    outline-offset: 2px;
}

.batch-profile-switch input:disabled + .batch-profile-slider {
    cursor: default;
    opacity: .72;
}

.batch-demo-status {
    display: inline-flex;
    align-items: center;
    padding: .3rem .62rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
}

.batch-demo-status-neutral {
    color: #526075;
    background: #edf1f7;
}

.batch-demo-status-green {
    color: #0e633d;
    background: #d9f1e4;
}

.batch-demo-status-yellow {
    color: #734900;
    background: #ffe9a1;
}

.batch-demo-status-red {
    color: #9f1d14;
    background: #f8d2ce;
}

.batch-demo-stepper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.batch-demo-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .25rem .65rem;
    align-items: center;
    padding: 1rem;
    text-align: left;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.batch-demo-step .small {
    grid-column: 2;
}

.batch-demo-step-green strong,
.batch-demo-result-title-green {
    color: #198754;
}

.batch-demo-step-yellow strong,
.batch-title-yellow,
.batch-demo-result-title-yellow {
    color: #8a5b08;
}

.batch-demo-step-red strong,
.batch-demo-result-title-red {
    color: #b42318;
}

.batch-demo-step-green.active {
    background: #effaf4;
    border-color: #198754;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, .11);
}

.batch-demo-step-yellow.active {
    background: #fff8df;
    border-color: #d8a22d;
    box-shadow: 0 0 0 3px rgba(216, 162, 45, .13);
}

.batch-demo-step-red.active {
    background: #fff1ef;
    border-color: #b42318;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, .1);
}

.batch-demo-panel {
    display: none;
}

.batch-demo-panel.active {
    display: block;
}

.batch-result-card {
    overflow: hidden;
}

.batch-result-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid var(--line);
}

.batch-result-head-green {
    background: #e8f7ef;
}

.batch-result-head-yellow {
    background: #fff3c4;
}

.batch-result-head-red {
    background: #fdecea;
}

.batch-demo-result-item {
    padding: 1rem;
    margin-bottom: .75rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.batch-demo-result-item:last-child {
    margin-bottom: 0;
}

.batch-demo-result-item-green {
    border-color: #b9dec9;
}

.batch-demo-result-item-yellow {
    border-color: #ead28b;
}

.batch-demo-result-item-red {
    border-color: #efbbb6;
}

.step-number {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--brand);
    border-radius: 999px;
    font-weight: 700;
}

.admin-shell {
    max-width: 1480px;
    margin: 0 auto;
}

.demo-modal-overlay {
    position: fixed;
    z-index: 1080;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(15, 23, 42, .48);
    backdrop-filter: blur(3px);
}

.demo-modal-overlay[hidden] {
    display: none;
}

body.demo-modal-open {
    overflow: hidden;
}

.demo-modal-card {
    width: min(560px, 100%);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

.demo-modal-card-wide {
    width: min(920px, 100%);
}

.workflow-modal-card {
    width: min(1120px, 100%);
}

.demo-case-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.demo-case-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.next-demo-card {
    border-style: dashed;
    background: #fbfdff;
}

.next-demo-admin {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
}

.result-contact-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: .9rem 1rem;
    color: #24366d;
    background: #eef4ff;
    border-radius: 10px;
}

.result-contact-inline > div {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.result-contact-inline span {
    font-size: .8rem;
}

.demo-case-button {
    min-height: 86px;
    white-space: normal;
}

.workflow-modal-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .65rem;
}

.workflow-modal-steps > div {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: .6rem;
    min-width: 0;
    text-align: center;
    padding: .85rem .7rem;
    background: #f8faff;
    border: 1px solid #e0e7f5;
    border-radius: 12px;
}

.workflow-modal-steps strong {
    font-size: .84rem;
    line-height: 1.25;
}

.workflow-modal-steps p {
    margin: 0;
    color: #5b6679;
    font-size: .75rem;
    line-height: 1.38;
}

.workflow-modal-steps .workflow-human-step {
    background: #fff9e8;
    border-color: #f2ce65;
}

.contact-cta {
    color: #fff;
    background: linear-gradient(135deg, #1d3a9b, #3056d3 62%, #5679e6);
}

.contact-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.contact-cta-inner > div {
    max-width: 800px;
}

.contact-kicker {
    display: block;
    margin-bottom: .6rem;
    color: #dfe7ff;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .09em;
}

.contact-modal-card {
    position: relative;
    width: min(1120px, 100%);
    padding: 2rem;
    color: #fff;
    background: #101a33;
    border-color: rgba(255, 255, 255, .12);
}

.contact-modal-close {
    position: absolute;
    z-index: 2;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
}

.contact-modal-close:hover,
.contact-modal-close:focus-visible {
    background: rgba(255, 255, 255, .1);
}

.contact-modal-heading {
    margin: 0 3.25rem 1.5rem 0;
}

.contact-modal-heading p {
    color: #c7d1e6;
    font-size: 1.08rem;
}

.contact-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr);
    gap: 2rem;
    align-items: stretch;
}

.contact-form-card {
    padding: 1.5rem;
    color: var(--ink);
    background: #fff;
    border-radius: 16px;
}

.contact-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.contact-choice-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-choice-row label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    font-weight: 650;
}

.contact-choice-row input {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--brand);
}

.contact-direct {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 1rem 0;
}

.contact-brand {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.contact-brand-line {
    display: block;
    width: 100%;
    height: 7px;
    margin-top: .65rem;
    background: linear-gradient(90deg, #17becf, #3f74e8 55%, #b226c8);
    border-radius: 99px;
}

.contact-direct-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .85rem;
    color: #92c0ff;
    font-size: 1.08rem;
    overflow-wrap: anywhere;
}

.contact-direct-link:hover,
.contact-direct-link:focus-visible {
    color: #fff;
}

.contact-direct p {
    color: #c7d1e6;
    line-height: 1.6;
}

.contact-form-status {
    padding: .7rem .8rem;
    color: #245a39;
    background: #eaf8ef;
    border-radius: 8px;
}

.contact-form-status-error {
    color: #842029;
    background: #f8d7da;
}

.contact-success {
    padding: 2rem 1rem;
    text-align: center;
}

.contact-success-icon {
    display: inline-grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: #fff;
    background: #198754;
    border-radius: 999px;
    font-size: 1.8rem;
    font-weight: 800;
}

.contact-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.demo-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    flex-wrap: wrap;
}

.nav-tabs {
    gap: .35rem;
    flex-wrap: wrap;
    border-bottom: 1px solid #dfe7f6;
}

.nav-tabs .nav-link {
    margin-bottom: .4rem;
    color: #52627a;
    background: #fff;
    border: 1px solid #dfe7f6;
}

.nav-tabs .nav-link.active {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

.table {
    margin-bottom: 0;
    table-layout: auto;
}

.table thead th {
    color: #4e5d75;
    border-bottom-color: #dfe7f6;
    font-size: .82rem;
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
    word-break: break-word;
}

.demo-table-wrap {
    overflow-x: auto;
}

.demo-table-wrap .table {
    min-width: 1080px;
}

.account-table {
    min-width: 720px;
}

.account-table th,
.account-table td {
    white-space: nowrap;
    word-break: normal;
}

.recognition-table {
    min-width: 940px;
}

.action-group {
    flex-wrap: wrap;
}

.detail-row > td {
    border-top: 0;
}

.collapse-panel,
.ai-report-card {
    animation: panel-in .16s ease;
}

@keyframes panel-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
}

.ai-report-title {
    color: #6f42c1;
    font-weight: 700;
    text-decoration: underline;
}

.ai-report-card {
    border-color: #6f42c1 !important;
}

.kbd,
.code-cell {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.code-cell {
    white-space: pre-wrap;
}

code {
    color: #c7254e;
}

.badge-exception {
    color: #fff;
    background: #fd7e14;
    border: 1px solid #e66f0d;
}

.exception-summary {
    background: #fffaf3;
    border: 1px solid #ffd39b;
}

.exception-summary[open] {
    box-shadow: 0 8px 20px rgba(180, 95, 6, .08);
}

.exception-summary summary {
    cursor: pointer;
    list-style: none;
}

.exception-summary summary::-webkit-details-marker {
    display: none;
}

.exception-summary summary::after {
    margin-left: auto;
    color: #9a4d00;
    content: "Details anzeigen";
    font-size: .82rem;
    font-weight: 600;
}

.exception-summary[open] summary::after {
    content: "Details ausblenden";
}

.metric-tile {
    height: 100%;
    padding: 1rem;
    background: #f8fbff;
    border: 1px solid #e3ebfb;
    border-radius: 12px;
}

.metric-value {
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 700;
}

.metric-label {
    color: #66758d;
    font-size: .82rem;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.status-dot {
    display: inline-block;
    width: .85rem;
    height: .85rem;
    border-radius: 999px;
}

.status-ok {
    background: #198754;
}

.macro-removing {
    opacity: 0;
    transform: translateX(10px);
    transition: .16s ease;
}

.toast {
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 14px 32px rgba(22, 32, 51, .16);
}

.toast.show {
    display: block;
    animation: toast-in .16s ease;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
}

@media (max-width: 767.98px) {
    .navbar > .container,
    .navbar > .container-fluid {
        align-items: flex-start;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .demo-nav {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    main.container-fluid {
        padding-right: 1rem !important;
        padding-left: 1rem !important;
    }

    .table {
        font-size: .9rem;
    }

    .card-body {
        padding: 1rem;
    }

    .tool-hero .container {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .tool-hero .display-5 {
        font-size: 2rem;
        line-height: 1.1;
    }

    .tool-hero .lead {
        font-size: 1rem;
        line-height: 1.5;
    }

    .hero-trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .env-banner {
        padding-right: .75rem;
        padding-left: .75rem;
        font-size: .68rem;
    }

    .exception-summary summary {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .exception-summary summary::after {
        margin-left: 0;
    }

    .batch-demo-stepper {
        grid-template-columns: 1fr;
    }

    .batch-executive-summary {
        grid-template-columns: 1fr;
    }

    .batch-result-head {
        align-items: stretch;
        flex-direction: column;
    }

    .batch-result-head .btn {
        align-self: flex-start;
        max-width: 100%;
    }

    .demo-case-grid {
        grid-template-columns: 1fr;
    }

    .workflow-modal-steps {
        grid-template-columns: 1fr;
    }

    .workflow-modal-steps > div {
        align-items: flex-start;
        text-align: left;
    }

    .contact-cta-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-cta-inner .btn {
        width: 100%;
    }

    .contact-modal-card {
        padding: 1.25rem;
    }

    .contact-modal-grid,
    .contact-form-row {
        grid-template-columns: 1fr;
    }

    .contact-modal-grid {
        gap: 1.25rem;
    }

    .contact-direct {
        padding: .5rem .25rem 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

.audit-export-card {
    border-color: #bcd0f5;
    background: linear-gradient(180deg, #f6f9ff 0%, #fff 70%);
}

.audit-export-option {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.audit-tip-card {
    width: min(520px, 100%);
}

.audit-tip-kicker {
    display: inline-block;
    padding: .2rem .7rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: #8a5a00;
    background: #fff4d6;
    border: 1px solid #f0d58a;
    border-radius: 999px;
}

/* Agile-Cloud-Fassung (makro.agile-cloud.net): weißes Logo im Kontaktblock, Linie in Agile-Cloud-Farben */
.contact-brand-logo { display: block; width: 150px; height: auto; }
.contact-brand-line { background: linear-gradient(90deg, #ffc928, #1474d4 60%, #0e5fb7); }
