:root {
    --na-primary: #123d78;
    --na-primary-dark: #0b2d5c;
    --na-primary-light: #2164c4;
    --na-blue: #1557b8;
    --na-blue-soft: #eaf1ff;
    --na-bg: #f5f7fa;
    --na-card: #ffffff;
    --na-border: #e2e7ee;
    --na-text: #13233d;
    --na-muted: #5d6d85;
    --na-success: #198754;
    --na-warning: #d58b16;
    --na-danger: #c93445;
    --na-shadow: 0 8px 25px rgba(20, 43, 75, 0.08);
    --na-shadow-hover: 0 14px 32px rgba(20, 43, 75, 0.13);
    --na-radius: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(
            180deg,
            #ffffff 0,
            #f7f9fc 120px,
            #f4f7fa 100%
        );
    color: var(--na-text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================
   TOPBAR
   ========================= */

.topbar {
    height: 86px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #e1e6ed;
}

.topbar-inner {
    width: min(1100px, calc(100% - 48px));
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-mark,
.footer-mark {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-mark svg,
.footer-mark svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--na-primary);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand {
    font-size: 21px;
    line-height: 1.05;
    font-weight: 700;
    color: var(--na-primary);
    letter-spacing: -0.3px;
}

.subtitle {
    margin-top: 4px;
    color: var(--na-muted);
    font-size: 13px;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #53647b;
    font-size: 13px;
    font-weight: 600;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #20a35a;
    box-shadow: 0 0 0 4px rgba(32, 163, 90, 0.12);
}


/* =========================
   MAIN
   ========================= */

.container {
    width: min(1100px, calc(100% - 48px));
    margin: 0 auto;
    padding: 60px 0 70px;
}


/* =========================
   HERO
   ========================= */

.hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 34px;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow,
.section-kicker {
    color: var(--na-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 13px 0 0;
    color: #12233e;
    font-size: clamp(40px, 5vw, 58px);
    line-height: 1.06;
    font-weight: 750;
    letter-spacing: -1.8px;
}

.hero-line {
    width: 64px;
    height: 5px;
    margin-top: 20px;
    border-radius: 99px;
    background: var(--na-blue);
}

.hero p {
    max-width: 650px;
    margin: 19px 0 0;
    color: var(--na-muted);
    font-size: 17px;
    line-height: 1.65;
}


/* =========================
   BUTTONS
   ========================= */

.button {
    min-height: 46px;
    padding: 0 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 700;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: #ffffff;
    background: linear-gradient(
        135deg,
        #1558bd,
        #0e438f
    );
    box-shadow: 0 8px 18px rgba(21, 88, 189, 0.22);
}

.button-primary:hover {
    box-shadow: 0 12px 24px rgba(21, 88, 189, 0.28);
}

.button-secondary {
    color: var(--na-primary);
    background: #ffffff;
    border-color: #dbe3ed;
}

.button-large {
    min-height: 52px;
    padding: 0 23px;
    white-space: nowrap;
}

.button-arrow {
    font-size: 23px;
    line-height: 1;
    margin-top: -2px;
}


/* =========================
   STATS
   ========================= */

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 56px;
}

.stat-card {
    min-height: 158px;
    padding: 25px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    background: var(--na-card);
    border: 1px solid #e3e8ef;
    border-radius: var(--na-radius);
    box-shadow: var(--na-shadow);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--na-shadow-hover);
}

.stat-icon {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eaf1ff;
}

.stat-icon svg {
    width: 39px;
    height: 39px;
    fill: none;
    stroke: var(--na-blue);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stat-content {
    min-width: 0;
}

.stat-number {
    color: var(--na-primary);
    font-size: 34px;
    line-height: 1;
    font-weight: 750;
    letter-spacing: -1px;
}

.stat-label {
    margin-top: 8px;
    color: var(--na-text);
    font-size: 17px;
    font-weight: 700;
}

.stat-description {
    margin-top: 5px;
    color: var(--na-muted);
    font-size: 13px;
}

.card-arrow {
    width: 42px;
    height: 42px;
    margin-left: auto;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--na-blue-soft);
    color: var(--na-primary);
    font-size: 31px;
    line-height: 1;
}

.stat-card-review {
    border-color: #cbdafa;
}

.review-link {
    margin-left: auto;
    min-height: 40px;
    padding: 0 14px 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 9px;
    background: var(--na-blue-soft);
    color: var(--na-primary);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.review-link span {
    font-size: 22px;
}


/* =========================
   SECTIONS
   ========================= */

.workflow-section,
.upload-section,
.recent-section {
    margin-top: 52px;
}

.section-heading {
    margin-bottom: 23px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.section-heading h2 {
    margin: 7px 0 0;
    color: var(--na-text);
    font-size: 30px;
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: -0.6px;
}

.section-heading p {
    max-width: 680px;
    margin: 9px 0 0;
    color: var(--na-muted);
    font-size: 15px;
    line-height: 1.55;
}


/* =========================
   WORKFLOW
   ========================= */

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.workflow-card {
    min-height: 150px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 19px;
    background: #ffffff;
    border: 1px solid #e1e7ef;
    border-radius: var(--na-radius);
    box-shadow: var(--na-shadow);
}

.workflow-card-active {
    border-color: #b9cff4;
    box-shadow:
        0 9px 27px rgba(21, 88, 189, 0.11);
}

.workflow-number {
    width: 57px;
    height: 57px;
    flex: 0 0 57px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #edf3ff;
    color: var(--na-blue);
    font-size: 20px;
    font-weight: 750;
}

.workflow-card-active .workflow-number {
    background: var(--na-blue);
    color: #ffffff;
}

.workflow-content h3 {
    margin: 2px 0 7px;
    color: var(--na-text);
    font-size: 17px;
    font-weight: 750;
}

.workflow-content p {
    margin: 0;
    color: var(--na-muted);
    font-size: 13px;
    line-height: 1.55;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    color: var(--na-blue);
    font-size: 13px;
    font-weight: 700;
}

.text-link span {
    font-size: 18px;
}


/* =========================
   UPLOAD
   ========================= */

.upload-section {
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e1e7ef;
    border-radius: var(--na-radius);
    box-shadow: var(--na-shadow);
}

.upload-section .section-heading {
    margin-bottom: 25px;
}

.next-number {
    min-width: 190px;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    border-radius: 10px;
    background: #f1f5fb;
    color: var(--na-muted);
    font-size: 12px;
}

.next-number strong {
    color: var(--na-primary);
    font-size: 18px;
}

.upload-form {
    display: flex;
    align-items: stretch;
    gap: 14px;
}

.file-label {
    min-height: 112px;
    flex: 1;
    padding: 18px 22px;
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    column-gap: 17px;
    align-content: center;
    border: 1.5px dashed #b9c7da;
    border-radius: 12px;
    background: #f9fbfe;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background 0.18s ease;
}

.file-label:hover {
    border-color: var(--na-blue);
    background: #f4f8ff;
}

.file-label input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.upload-icon {
    width: 56px;
    height: 56px;
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eaf1ff;
}

.upload-icon svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: var(--na-blue);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.file-title {
    align-self: end;
    color: var(--na-text);
    font-size: 15px;
    font-weight: 700;
}

.file-description {
    margin-top: 4px;
    color: var(--na-muted);
    font-size: 12px;
}


/* =========================
   DOCUMENT LIST
   ========================= */

.document-list {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e1e7ef;
    border-radius: var(--na-radius);
    box-shadow: var(--na-shadow);
}

.document-row {
    min-height: 82px;
    padding: 14px 20px;
    display: grid;
    grid-template-columns: 60px 1fr auto 85px;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid #edf0f4;
    transition: background 0.15s ease;
}

.document-row:last-child {
    border-bottom: 0;
}

.document-row:hover {
    background: #f7faff;
}

.document-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #edf3ff;
    color: var(--na-blue);
    font-size: 15px;
    font-weight: 750;
}

.document-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.document-main strong {
    overflow: hidden;
    color: var(--na-text);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-main span {
    color: var(--na-muted);
    font-size: 12px;
}

.document-status {
    display: flex;
    justify-content: center;
}

.badge {
    padding: 6px 10px;
    border-radius: 99px;
    background: #edf0f4;
    color: #59677a;
    font-size: 11px;
    font-weight: 700;
}

.badge.success {
    background: #e8f7ef;
    color: var(--na-success);
}

.badge.warning {
    background: #fff4df;
    color: var(--na-warning);
}

.badge.danger {
    background: #fdebed;
    color: var(--na-danger);
}

.document-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    color: var(--na-blue);
    font-size: 12px;
    font-weight: 700;
}

.document-action span {
    font-size: 20px;
}

.empty-state {
    padding: 40px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e1e7ef;
    border-radius: var(--na-radius);
    color: var(--na-muted);
}


/* =========================
   FOOTER
   ========================= */

.footer {
    min-height: 180px;
    padding: 35px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-top: 1px solid #e0e5ec;
    background: #ffffff;
    color: #738199;
    text-align: center;
    font-size: 12px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--na-primary);
    font-size: 16px;
}

.footer-mark {
    width: 28px;
    height: 28px;
}

.footer-version {
    margin-top: 5px;
    color: #9aa5b5;
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {

    .hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .stats {
        grid-template-columns: 1fr;
    }

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

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .upload-form {
        flex-direction: column;
    }

    .upload-form .button {
        align-self: flex-start;
    }
}


@media (max-width: 650px) {

    .topbar {
        height: 74px;
    }

    .topbar-inner,
    .container {
        width: min(100% - 30px, 1100px);
    }

    .system-status {
        display: none;
    }

    .container {
        padding-top: 40px;
    }

    .hero h1 {
        font-size: 39px;
    }

    .stat-card {
        min-height: 140px;
        padding: 20px;
    }

    .stat-icon {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }

    .stat-icon svg {
        width: 31px;
        height: 31px;
    }

    .card-arrow {
        display: none;
    }

    .review-link {
        display: none;
    }

    .upload-section {
        padding: 20px;
    }

    .next-number {
        width: 100%;
    }

    .file-label {
        grid-template-columns: 48px 1fr;
        column-gap: 12px;
    }

    .upload-icon {
        width: 48px;
        height: 48px;
    }

    .document-row {
        grid-template-columns: 48px 1fr auto;
        gap: 12px;
    }

    .document-status {
        display: none;
    }

    .document-action {
        width: 30px;
        overflow: hidden;
        font-size: 0;
    }

    .document-action span {
        font-size: 24px;
    }

    .footer {
        min-height: 160px;
    }
}


@media (max-width: 450px) {

    .brand {
        font-size: 18px;
    }

    .subtitle {
        font-size: 11px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 15px;
    }

    .button-large {
        width: 100%;
    }

    .workflow-card {
        padding: 18px;
    }

    .workflow-number {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        font-size: 16px;
    }
}


/* =========================================================
   NormAudit Seiten-Navigation
   ========================================================= */


/* =========================================================
   NormAudit Seiten-Navigation – einheitlich auf allen 3 Seiten
   ========================================================= */
.page-navigation {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    gap: 20px !important;
    margin: 0 0 28px !important;
}
.page-nav-back {
    justify-self: start !important;
    margin: 0 !important;
}
.page-nav-next {
    justify-self: end !important;
    margin: 0 !important;
}
.page-navigation-label {
    justify-self: center !important;
    text-align: center !important;
}
.page-nav-disabled {
    visibility: hidden !important;
    pointer-events: none !important;
}
@media (max-width: 700px) {
    .page-navigation {
        grid-template-columns: 1fr auto 1fr !important;
        gap: 10px !important;
    }
    .page-nav-button {
        min-width: 0 !important;
    }
}

.page-navigation{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;align-items:center!important;width:100%!important;gap:20px!important;margin:0 0 28px!important}.page-nav-back{justify-self:start!important;margin:0!important}.page-nav-next{justify-self:end!important;margin:0!important}.page-navigation-label{justify-self:center!important;text-align:center!important}.page-nav-disabled{visibility:hidden!important;pointer-events:none!important}

.page-nav-disabled{visibility:visible!important;pointer-events:none!important;opacity:.45!important;cursor:default!important}
.page-navigation {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    gap: 20px !important;
    margin: 0 0 28px !important;
}
.page-nav-back {
    justify-self: start !important;
    margin: 0 !important;
}
.page-nav-next {
    justify-self: end !important;
    margin: 0 !important;
}
.page-navigation-label {
    justify-self: center !important;
    text-align: center !important;
}
.page-nav-button {
    visibility: visible !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}
.page-nav-disabled {
    visibility: visible !important;
    pointer-events: auto !important;
}
