/* ---------------------------------------------------------------------------
   KI-Readiness-Check (/ki-readiness-check)

   Eigene Klassen mit Praefix rc-, weil der Check sein Markup per JavaScript
   erzeugt: PurgeCSS sieht nur das statische HTML und wuerde Theme-Utilities,
   die ausschliesslich im Skript vorkommen, aus main.min.css entfernen. Diese
   Datei wird nicht gepurgt.

   Die Seite hat genau ein Theme (uc-dark, siehe app-head-bs.js). @media print
   dreht auf Schwarz auf Weiss -- "Als PDF speichern" ist der Druckdialog.
--------------------------------------------------------------------------- */

.rc {
    --rc-accent: #178d72;
    --rc-accent-soft: rgba(23, 141, 114, .16);
    --rc-line: rgba(255, 255, 255, .14);
    --rc-muted: rgba(255, 255, 255, .68);
    --rc-surface: rgba(255, 255, 255, .04);
    --rc-warn: #e0a43a;
    display: flex;
    flex-direction: column;
    gap: 64px;
    max-width: 760px;
    margin-inline: auto;
}

.rc [hidden] { display: none !important; }

.rc-eyebrow {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--rc-accent);
}
/* Ueberschriften weiss wie auf den uebrigen Seiten, dort setzen das die Theme-Klassen h1 bis h5. */
.rc :is(h1, h2, h3, h4, .rc-q, .rc-facts strong) { color: #fff; }
.rc-title { margin: 0 0 16px; font-size: clamp(32px, 5vw, 48px); line-height: 1.1; }
.rc-title:focus { outline: none; }
.rc-lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.5; color: var(--rc-muted); margin: 0 0 24px; }
.rc-h { font-size: 22px; margin: 40px 0 12px; }
.rc-help { color: var(--rc-muted); margin: 0 0 16px; }
.rc-note { color: var(--rc-muted); font-size: 14px; }
.rc-optional { color: var(--rc-muted); font-weight: 400; }

.rc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.rc-secondary { margin-top: 40px; }

/* ---- Start ---------------------------------------------------------------- */
.rc-facts {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}
.rc-facts li {
    border: 1px solid var(--rc-line);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--rc-surface);
}
.rc-facts span { color: var(--rc-muted); font-size: 15px; line-height: 1.4; }

/* ---- Fragen --------------------------------------------------------------- */
.rc-progress { height: 4px; border-radius: 2px; background: var(--rc-line); overflow: hidden; }
.rc-progress span { display: block; height: 100%; width: 0; background: var(--rc-accent); transition: width .25s ease; }
.rc-step { margin: 12px 0 24px; font-size: 14px; color: var(--rc-muted); }

.rc-question { border: 0; padding: 0; margin: 0; min-width: 0; }
/* float: none hebt das float: left des Themes auf legend auf; sonst rutschen die Optionen
   neben die Frage, sobald der Hilfetext darunter versteckt ist. */
.rc-q { float: none; font-size: clamp(22px, 3vw, 28px); line-height: 1.3; font-weight: 500; margin: 0 0 8px; padding: 0; }
.rc-q:focus { outline: none; }

.rc-options { display: flex; flex-direction: column; gap: 10px; }
.rc-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--rc-line);
    border-radius: 12px;
    background: var(--rc-surface);
    cursor: pointer;
    line-height: 1.45;
    transition: border-color .15s ease, background-color .15s ease;
}
.rc-option:hover { border-color: rgba(255, 255, 255, .32); }
.rc-option input { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--rc-accent); }
.rc-option:has(input:checked) { border-color: var(--rc-accent); background: var(--rc-accent-soft); }
.rc-option:has(input:focus-visible) { outline: 2px solid var(--rc-accent); outline-offset: 2px; }
.rc-option:has(input:disabled) { opacity: .45; cursor: not-allowed; }

.rc-sources { margin: 16px 0 0; font-size: 13px; color: var(--rc-muted); }
.rc-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }
.rc-nav [data-rc-next]:disabled { opacity: .5; }

/* ---- Ergebnis ------------------------------------------------------------- */
.rc-mindest { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.rc-mindest li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: start;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--rc-surface);
    border: 1px solid var(--rc-line);
}
.rc-mindest .rc-sources { margin-top: 6px; }
.rc-mindest .rc-badge { font-weight: 600; font-size: 13px; letter-spacing: .02em; display: block; margin-top: 2px; }
.rc-mark { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; margin-top: 1px; }
.rc-erfuellt .rc-mark { background: var(--rc-accent); color: #fff; }
.rc-offen .rc-mark { background: var(--rc-warn); color: #1a1a1a; }
.rc-vorab .rc-mark { border: 2px solid var(--rc-muted); }
.rc-offen .rc-badge { color: var(--rc-warn); }
.rc-erfuellt .rc-badge { color: var(--rc-accent); }
.rc-vorab .rc-badge { color: var(--rc-muted); }

.rc-bars { display: flex; flex-direction: column; gap: 14px; }
.rc-bar-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: 15px; }
.rc-bar-head span:last-child { color: var(--rc-muted); white-space: nowrap; }
.rc-bar { height: 10px; border-radius: 5px; background: var(--rc-line); overflow: hidden; }
.rc-bar span { display: block; height: 100%; background: var(--rc-accent); border-radius: 5px; }
.rc-bar.rc-na span { width: 0 !important; }

.rc-recs { padding: 0; margin: 0; list-style: none; counter-reset: rc; display: flex; flex-direction: column; gap: 16px; }
.rc-recs li {
    counter-increment: rc;
    position: relative;
    padding: 18px 18px 18px 64px;
    border-radius: 12px;
    border: 1px solid var(--rc-line);
    background: var(--rc-surface);
}
.rc-recs li::before {
    content: counter(rc);
    position: absolute;
    left: 18px;
    top: 16px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--rc-accent);
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rc-recs h4 { font-size: 18px; margin: 0 0 6px; }
.rc-recs p { margin: 0; color: var(--rc-muted); line-height: 1.55; }
.rc-recs .rc-sources { margin-top: 10px; }

.rc-cta {
    margin-top: 48px;
    padding: clamp(20px, 4vw, 32px);
    border-radius: 16px;
    border: 1px solid var(--rc-accent);
    background: var(--rc-accent-soft);
}
.rc-cta .rc-h { margin-top: 0; }

.rc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; margin: 20px 0 16px; }
.rc-lead-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.rc-lead-form input:not([type="checkbox"]) {
    font: inherit;
    font-weight: 400;
    font-size: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--rc-line);
    background: rgba(0, 0, 0, .25);
    color: inherit;
}
.rc-lead-form input:focus-visible { outline: 2px solid var(--rc-accent); outline-offset: 1px; }
.rc-lead-form label.rc-consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; line-height: 1.5; color: var(--rc-muted); }
.rc-consent input { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--rc-accent); }
.rc-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.rc-error { color: var(--rc-warn); margin: 12px 0 0; }

/* ---- Methodik ------------------------------------------------------------- */
.rc-method { border-top: 1px solid var(--rc-line); padding-top: 32px; }
.rc-method .rc-h { margin-top: 0; }
.rc-method p { color: var(--rc-muted); }
.rc-sourcelist { padding-left: 18px; color: var(--rc-muted); font-size: 15px; line-height: 1.5; display: flex; flex-direction: column; gap: 6px; }
.rc-sourcelist a, .rc-sources a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 575px) {
    .rc { gap: 48px; }
    .rc-recs li { padding-left: 56px; }
    .rc-recs li::before { left: 14px; }
    .rc-nav .btn, .rc-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
    .rc-progress span, .rc-option { transition: none; }
}

/* ---- Druck / PDF ---------------------------------------------------------- */
@media print {
    @page { margin: 18mm 16mm; }
    .uc-header, .uc-footer, .breadcrumbs, #uc-contact-modal, .to-top, #wrapper, body > aside { display: none !important; }
    html, body, main { background: #fff !important; color: #111 !important; }
    main.section { padding: 0 !important; }
    .rc { max-width: none; gap: 24px; color: #111; }
    .rc h1, .rc h2, .rc h3, .rc h4 { color: #111 !important; }
    .rc {
        --rc-line: #ccc; --rc-muted: #444; --rc-surface: transparent;
        --rc-accent-soft: transparent; --rc-warn: #9a5b00;
    }
    .rc-cta, .rc-secondary, .rc-start, .rc-quiz { display: none !important; }
    .rc-mindest li, .rc-recs li { break-inside: avoid; }
    .rc-bar, .rc-bar span, .rc-mark, .rc-recs li::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .rc-print-head { display: block !important; margin-bottom: 8px; font-size: 13px; color: #444; }
}
.rc-print-head { display: none; }
