/* Sicherheitsrechner (PLr) und MVO-Selbst-Check – ergänzt richtlinien-check.css.
   Farben: Neongrün #2AFF00 als einziger Grünton, Akzente Schwarz/Anthrazit. */

.rr-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr);
    gap: 3rem;
    align-items: start;
}

.rr-optionen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.rr-option {
    text-align: left;
    background: #ffffff;
    border: 3px solid #111111;
    padding: 1.1rem 1.2rem;
    cursor: pointer;
    font-family: inherit;
    color: #111111;
    transition: background-color 0.2s, color 0.2s;
}

.rr-option strong {
    display: block;
    font-family: 'Chivo', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: -0.3px;
    margin-bottom: 0.4rem;
}

.rr-option span {
    display: block;
    font-size: 0.98rem;
    line-height: 1.45;
    color: #444444;
}

.rr-option:hover {
    background-color: #111111;
    color: #ffffff;
}

.rr-option:hover span {
    color: #dddddd;
}

.rr-option.rc-gewaehlt {
    background-color: #2AFF00;
    color: #111111;
}

.rr-option.rc-gewaehlt span {
    color: #111111;
}

/* Risikograph */
.rr-graph {
    margin: 0;
    padding: 1.5rem 1rem 1rem;
    background-color: #f4f4f4;
    position: sticky;
    top: 7rem;
}

.rr-graph svg {
    width: 100%;
    height: auto;
    display: block;
}

.rr-graph figcaption {
    font-size: 0.85rem;
    color: #555555;
    margin-top: 0.6rem;
    text-align: center;
}

.rr-kante {
    stroke: #bbbbbb;
    stroke-width: 2;
    transition: stroke 0.25s, stroke-width 0.25s;
}

.rr-kante.rr-an {
    stroke: #111111;
    stroke-width: 4;
}

.rr-kantentext {
    font-family: 'Chivo', sans-serif;
    font-size: 11px;
    fill: #777777;
}

.rr-knoten {
    fill: #bbbbbb;
}

.rr-knoten.rr-an {
    fill: #111111;
}

.rr-blatt {
    fill: #ffffff;
    stroke: #bbbbbb;
    stroke-width: 2;
    transition: fill 0.25s, stroke 0.25s;
}

.rr-blatt.rr-moeglich {
    stroke: #111111;
}

.rr-blatt.rr-an {
    fill: #2AFF00;
    stroke: #111111;
    stroke-width: 3;
}

.rr-blatttext {
    font-family: 'Chivo', sans-serif;
    font-weight: bold;
    font-size: 13px;
    fill: #111111;
}

/* Ergebnis */
.rr-label {
    font-family: 'Chivo', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1rem !important;
    color: #555555 !important;
    margin: 0 !important;
}

.rr-wert {
    font-family: 'Chivo', sans-serif;
    font-weight: bold;
    font-size: 4rem !important;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: #111111 !important;
    margin: 0.2rem 0 0.4rem 0 !important;
}

.rr-wert .rr-pl,
.mc-ampelwert {
    background-color: #2AFF00;
    padding: 0 0.6rem;
}

.rr-pfad {
    font-weight: bold;
}

.rr-fakten li {
    margin-bottom: 0.6rem !important;
}

.rr-kopiert {
    margin-top: 1rem !important;
    font-weight: bold;
    word-break: break-all;
}

.rr-tabelle {
    border-collapse: collapse;
    margin: 1rem 0 1.5rem 0;
    min-width: 320px;
}

.rr-tabelle th,
.rr-tabelle td {
    border: 1px solid #dddddd;
    padding: 0.45rem 1.1rem;
    text-align: center;
}

.rr-tabelle th {
    background-color: #111111;
    color: #ffffff;
    font-family: 'Chivo', sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.rr-textlink {
    color: #111111;
    font-weight: bold;
    text-decoration: underline;
}

/* ---- MVO-Selbst-Check ---- */
.mc-teil {
    font-family: 'Chivo', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem !important;
    color: #111111 !important;
    background-color: #2AFF00;
    display: inline-block;
    padding: 0.15rem 0.6rem;
    margin: 0 0 0.8rem 0 !important;
}

.mc-countdown {
    display: inline-block;
    border: 3px solid #111111;
    padding: 0.8rem 1.2rem;
    margin-top: 0.5rem;
    font-family: 'Chivo', sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
}

.mc-countdown span {
    font-size: 2rem;
}

.mc-einstufung {
    background-color: #111111;
    color: #ffffff;
    padding: 1.8rem 2rem;
    margin: 1rem 0 1.5rem 0;
}

.mc-einstufung p,
.mc-einstufung li {
    color: #ffffff !important;
}

.mc-einstufung h3 {
    color: #ffffff;
    border-bottom-color: #2AFF00 !important;
    margin-top: 0 !important;
}

.mc-einstufung strong {
    color: #2AFF00;
}

.mc-themen {
    list-style: none;
    padding: 0 !important;
}

.mc-themen li {
    border: 2px solid #eaeaea;
    padding: 1rem 1rem 1rem 3.2rem !important;
    margin-bottom: 0.8rem !important;
    position: relative;
}

.mc-themen li::before {
    content: none !important;
}

.mc-themen .mc-status {
    position: absolute;
    left: 1rem;
    top: 1.1rem;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    border: 2px solid #111111;
}

.mc-themen li.mc-ok .mc-status {
    background-color: #2AFF00;
}

.mc-themen li.mc-offen .mc-status {
    background-color: #ffffff;
}

.mc-themen li.mc-todo .mc-status {
    background-color: #111111;
}

.mc-themen strong,
.mc-themen .mc-text {
    display: block;
}

.mc-themen .mc-text {
    margin-top: 0.3rem;
}

.mc-legende {
    font-size: 0.9rem !important;
    color: #555555 !important;
}

@media (max-width: 900px) {
    .rr-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .rr-graph {
        position: static;
        order: -1;
        max-width: 420px;
    }
}

@media (max-width: 768px) {
    .rr-optionen {
        grid-template-columns: 1fr;
    }

    .rr-wert {
        font-size: 13vw !important;
    }

    .mc-einstufung {
        padding: 5vw;
    }
}
