/* grc-banking.de — Landingpage der GRC-Lösung (statisch). Schriften lokal (keine Drittanbieter, DSGVO). */

@font-face {
    font-family: "Literata";
    src: url("fonts/literata-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Literata";
    src: url("fonts/literata-latin-wght-italic.woff2") format("woff2");
    font-weight: 200 900;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Plex Condensed";
    src: url("fonts/ibm-plex-sans-condensed-latin-400-normal.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Plex Condensed";
    src: url("fonts/ibm-plex-sans-condensed-latin-500-normal.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: "Plex Condensed";
    src: url("fonts/ibm-plex-sans-condensed-latin-600-normal.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}

:root {
    --paper: #f2f4f1;
    --paper-deep: #e4e9e3;
    --sheet: #fbfcfa;
    --ink: #17212b;
    --ink-soft: #4b5762;
    --rule: #c3ccc5;
    --rule-strong: #8e9a92;
    --audit: #2c6a4e;
    --audit-deep: #1d4a36;
    --audit-wash: #dbe8df;
    --due: #9a6b1f;
    --error: #a3322a;

    --serif: "Literata", "Iowan Old Style", Georgia, serif;
    --cond: "Plex Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;

    --step--1: 0.875rem;
    --step-0: 1.0625rem;
    --step-1: 1.25rem;
    --step-2: 1.625rem;
    --step-3: 2.25rem;
    --step-4: clamp(2.375rem, 1.6rem + 3.4vw, 3.75rem);

    --measure: 38rem;
    --gutter: clamp(1rem, 4vw, 3rem);
    --page: 72rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--serif);
    font-size: var(--step-0);
    line-height: 1.6;
    font-optical-sizing: auto;
}

a {
    color: var(--audit-deep);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--ink);
}

:focus-visible {
    outline: 3px solid var(--audit);
    outline-offset: 2px;
}

.skip {
    position: absolute;
    left: -9999px;
}

.skip:focus {
    left: var(--gutter);
    top: 0.5rem;
    z-index: 10;
    background: var(--sheet);
    padding: 0.5rem 0.75rem;
}

.wrap {
    max-width: var(--page);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ── Kopf ─────────────────────────────────────────────── */

.masthead {
    border-bottom: 1px solid var(--rule);
}

.masthead .wrap {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 4.25rem;
}

.wordmark {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--step-1);
    letter-spacing: -0.01em;
}

.wordmark svg {
    flex: none;
}

.masthead nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-family: var(--cond);
    font-size: var(--step--1);
}

.masthead nav a:not(.button) {
    color: var(--ink-soft);
    text-decoration: none;
}

.masthead nav a:not(.button):hover {
    color: var(--ink);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0 1.25rem;
    border: 1px solid var(--audit-deep);
    border-radius: 2px;
    background: var(--audit);
    color: #fff;
    font-family: var(--cond);
    font-size: var(--step-0);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    background: var(--audit-deep);
    color: #fff;
}

.button[disabled] {
    opacity: 0.6;
    cursor: progress;
}

.button.quiet {
    background: transparent;
    color: var(--audit-deep);
}

.button.quiet:hover {
    background: var(--audit-wash);
}

.masthead .button {
    min-height: 2.25rem;
    font-size: var(--step--1);
}

.wordmark {
    white-space: nowrap;
}

@media (max-width: 760px) {
    .masthead nav .nav-section {
        display: none;
    }
}

@media (max-width: 420px) {
    .masthead .wrap {
        gap: 0.75rem;
    }
    .masthead nav {
        gap: 0.75rem;
    }
    .wordmark {
        font-size: var(--step-0);
    }
}

/* ── Einstieg ─────────────────────────────────────────── */

.opening {
    padding: clamp(3rem, 8vw, 6rem) 0 2.5rem;
}

.opening h1 {
    margin: 0;
    max-width: 20ch;
    font-size: var(--step-4);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.022em;
}

.opening .lede {
    max-width: var(--measure);
    margin: 1.5rem 0 2rem;
    font-size: var(--step-1);
    line-height: 1.55;
    color: var(--ink-soft);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ── Prüfbogen: Vorgabe × Modul ───────────────────────── */

.sheet {
    margin-top: clamp(2.5rem, 6vw, 4rem);
    background: var(--sheet);
    border: 1px solid var(--rule-strong);
    font-family: var(--cond);
}

.sheet-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--rule-strong);
}

.sheet-head h2 {
    margin: 0;
    font-size: var(--step-0);
    font-weight: 600;
}

.sheet-head p {
    margin: 0;
    color: var(--ink-soft);
    font-size: var(--step--1);
}

.matrix {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--step--1);
}

.matrix th,
.matrix td {
    border-bottom: 1px solid var(--rule);
    padding: 0;
}

.matrix thead th {
    height: 8.5rem;
    vertical-align: bottom;
    font-weight: 500;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--rule-strong);
}

.matrix thead th span {
    display: inline-block;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    padding: 0.6rem 0;
    white-space: nowrap;
}

.matrix thead th.col-norm {
    text-align: left;
    vertical-align: bottom;
    padding: 0 1.25rem 0.6rem;
}

.matrix tbody th {
    text-align: left;
    font-weight: 400;
}

.matrix .row-button {
    display: grid;
    grid-template-columns: 12.5rem 1fr;
    gap: 1rem;
    width: 100%;
    padding: 0.55rem 1.25rem;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.matrix .row-button .norm {
    color: var(--ink-soft);
}

.matrix td {
    width: 3.1rem;
    text-align: center;
    border-left: 1px solid var(--rule);
}

.mark {
    display: inline-block;
    width: 0.8rem;
    height: 0.8rem;
    background: var(--audit);
}

.matrix tbody tr:hover,
.matrix tbody tr.is-open {
    background: var(--audit-wash);
}

.matrix tbody tr.is-open .row-button {
    font-weight: 600;
}

.matrix tr.detail td {
    border-left: 0;
    text-align: left;
    width: auto;
    background: var(--audit-wash);
}

.detail-body {
    padding: 0.25rem 1.25rem 1rem calc(1.25rem + 13.5rem);
    max-width: 52rem;
    font-family: var(--serif);
    font-size: var(--step-0);
    line-height: 1.55;
}

.detail-body strong {
    font-family: var(--cond);
    font-weight: 600;
}

.sheet-foot {
    margin: 0;
    padding: 0.75rem 1.25rem;
    color: var(--ink-soft);
    font-size: var(--step--1);
}

/* schmale Bildschirme: Liste statt Raster */
@media (max-width: 899px) {
    .matrix thead {
        display: none;
    }
    .matrix td {
        display: none;
    }
    .matrix .row-button {
        grid-template-columns: 1fr;
        gap: 0.1rem;
    }
    .matrix tr.detail td {
        display: table-cell;
    }
    .detail-body {
        padding: 0.25rem 1.25rem 1rem;
    }
    .detail-body .modules-inline {
        display: block;
    }
}

.modules-inline {
    display: none;
    margin-top: 0.4rem;
    font-family: var(--cond);
    color: var(--audit-deep);
}

@media (prefers-reduced-motion: no-preference) {
    .matrix tr.detail .detail-body {
        animation: open 180ms ease-out;
    }
    @keyframes open {
        from {
            opacity: 0;
            transform: translateY(-4px);
        }
    }
}

/* ── Abschnitte ───────────────────────────────────────── */

.section {
    padding: clamp(3.5rem, 8vw, 6rem) 0 0;
}

.section > .wrap > h2,
.section h2.title {
    margin: 0 0 1rem;
    max-width: 24ch;
    font-size: var(--step-3);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.015em;
}

.section .intro {
    max-width: var(--measure);
    margin: 0 0 2.5rem;
    color: var(--ink-soft);
}

/* Modulverzeichnis: Gruppen wie ein Inhaltsverzeichnis */
.index {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr));
    gap: 2.5rem 2.25rem;
}

.index h3 {
    margin: 0 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--ink);
    font-family: var(--cond);
    font-size: var(--step-0);
    font-weight: 600;
}

.index dl {
    margin: 0;
}

.index dt {
    font-weight: 600;
    margin-top: 0.9rem;
}

.index dd {
    margin: 0.15rem 0 0;
    color: var(--ink-soft);
    font-size: var(--step--1);
    line-height: 1.55;
}

/* Ablauf der Demo — echte Reihenfolge */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    border-top: 1px solid var(--rule-strong);
}

.steps li {
    padding: 1.25rem 1.5rem 1.5rem 0;
    counter-increment: step;
}

.steps li::before {
    content: counter(step);
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--cond);
    font-size: var(--step-3);
    font-weight: 500;
    line-height: 1;
    color: var(--audit);
}

.steps strong {
    display: block;
    font-size: var(--step-1);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.steps p {
    margin: 0;
    color: var(--ink-soft);
    max-width: 30ch;
}

/* ── Formular ─────────────────────────────────────────── */

.request {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

@media (max-width: 899px) {
    .request {
        grid-template-columns: 1fr;
    }
}

.request aside p {
    max-width: 34ch;
    color: var(--ink-soft);
}

.request aside ul {
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
    font-family: var(--cond);
    font-size: var(--step--1);
}

.request aside li {
    padding: 0.55rem 0;
    border-top: 1px solid var(--rule);
}

form.demo {
    background: var(--sheet);
    border: 1px solid var(--rule-strong);
    padding: clamp(1.25rem, 3vw, 2rem);
    font-family: var(--cond);
}

.fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem 1.25rem;
}

.fields .full {
    grid-column: 1 / -1;
}

@media (max-width: 560px) {
    .fields {
        grid-template-columns: 1fr;
    }
}

.field label,
fieldset legend {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.field .hint {
    display: block;
    margin-top: 0.25rem;
    color: var(--ink-soft);
    font-size: var(--step--1);
}

.field .error {
    display: block;
    margin-top: 0.25rem;
    color: var(--error);
    font-size: var(--step--1);
}

.field .error:empty {
    display: none;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"] {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--rule-strong);
    border-radius: 2px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: var(--step-0);
}

input[aria-invalid="true"] {
    border-color: var(--error);
}

fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 560px) {
    .choice {
        grid-template-columns: 1fr;
    }
}

.choice label {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.15rem 0.6rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--rule-strong);
    border-radius: 2px;
    background: #fff;
    cursor: pointer;
}

.choice label:has(input:checked) {
    border-color: var(--audit);
    box-shadow: inset 0 0 0 1px var(--audit);
    background: var(--audit-wash);
}

.choice input {
    grid-row: span 2;
    margin: 0.3rem 0 0;
    accent-color: var(--audit);
}

.choice small {
    color: var(--ink-soft);
    font-size: var(--step--1);
}

.consent {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: var(--step--1);
    line-height: 1.5;
}

.consent input {
    margin-top: 0.25rem;
    accent-color: var(--audit);
}

.trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.form-status {
    margin: 1.25rem 0 0;
    padding: 0.9rem 1rem;
    border-left: 3px solid var(--audit);
    background: var(--audit-wash);
    font-family: var(--serif);
}

.form-status.is-error {
    border-left-color: var(--error);
    background: #f6e3e1;
}

.form-status:empty {
    display: none;
}

/* ── Fuß ──────────────────────────────────────────────── */

.colophon {
    margin-top: clamp(4rem, 9vw, 7rem);
    border-top: 1px solid var(--rule-strong);
    padding: 1.5rem 0 2.5rem;
    font-family: var(--cond);
    font-size: var(--step--1);
    color: var(--ink-soft);
}

.colophon .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.75rem;
}

.colophon a {
    color: var(--ink-soft);
}

.colophon .note {
    margin-left: auto;
}

/* ── Textseiten (Impressum, Datenschutz, Bestätigung) ─── */

.page {
    max-width: calc(var(--measure) + 2 * var(--gutter));
    padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

.page h1 {
    margin: 0 0 1.25rem;
    font-size: var(--step-3);
    font-weight: 500;
    line-height: 1.15;
}

.page h2 {
    margin: 2rem 0 0.5rem;
    font-size: var(--step-1);
}

.placeholder {
    background: #f3e7c9;
    padding: 0 0.2em;
}

.state[hidden] {
    display: none;
}
