/* Zertifikatsprüfung: ergänzt /assets/styles.css der Website, nutzt deren Variablen */

/* Oberer Bereich wie der Startbereich der Startseite */
.check .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); grid-template-areas: "intro card" "facts card"; align-items: start; row-gap: 32px; }
.check .intro { grid-area: intro; }
.check .check-card { grid-area: card; }
.check .facts { grid-area: facts; }
.check h1 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.5rem); }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.facts li { position: relative; padding-left: 22px; color: var(--text); font-size: 1.0625rem; line-height: 1.5; }
.facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 999px; background: #3E8C7F; }
.facts strong { color: var(--ink); font-weight: 600; }

/* Formular in der Karte */
.check-card .form { gap: 20px; }
.check-card .btn { width: 100%; }
#nr { font-family: var(--display); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
#nr::placeholder { font-weight: 600; letter-spacing: .02em; color: #9AAAA6; text-transform: none; }
.hint { margin: 0; font-size: .9375rem; color: var(--muted); line-height: 1.45; }
.hint.err { color: #7A2618; font-weight: 600; }
.field input[aria-invalid="true"] { border-color: #B5523B; background: #fff; }
.btn[disabled] { opacity: .75; cursor: progress; }

/* Ergebnis */
#ergebnis:empty { display: none; }
.msg { border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.msg h2 { font-size: 1.25rem; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.msg p { color: var(--text); font-size: 1rem; line-height: 1.5; }
.msg-ok { background: var(--mint); }
.msg-ok h2 { color: var(--petrol); }
.msg-warn { background: #FBF1E2; }
.msg-warn h2 { color: #6B4410; }
.badge-i { flex: none; width: 26px; height: 26px; border-radius: 999px; display: inline-grid; place-items: center; font-size: .9rem; font-weight: 800; color: #fff; background: var(--petrol); }
.msg-warn .badge-i { background: var(--amber); color: #2A1D05; }
.msg dl { margin: 8px 0 4px; display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.msg dt { color: var(--muted); font-size: .9375rem; }
.msg dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.msg .small { font-size: .9375rem; }
@media (max-width: 440px) { .msg dl { grid-template-columns: 1fr; gap: 0; } .msg dd { margin-bottom: 8px; } }

/* Abschlussband wie der Kontaktbereich */
.outro { display: flex; flex-direction: column; gap: 28px; }
.dark .lead { color: #C9DAD4; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--mint); color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.outro-note { color: #A3B6B1; }
.outro-note a { color: #DCEAE5; }

@media (max-width: 900px) { .check .wrap { grid-template-columns: 1fr; grid-template-areas: "intro" "card" "facts"; } }
