﻿/* E2ris V2 – Bereich compliance. Nur Tokens der Components Library, Klassen mit Präfix e2-. */

/* ---------- Gemeinsam (Components/Shared/Compliance) ---------- */
.e2-compliance-gedaempft {
    color: var(--oo-color-text-subtle);
    font-size: var(--oo-font-size-sm);
}

.e2-compliance-ueberfaellig {
    color: var(--oo-danger);
    font-weight: 600;
    font-size: var(--oo-font-size-sm);
}

.e2-compliance-umbruch {
    overflow-wrap: anywhere;
}

/* Nur Desktop bzw. nur Handy (Listen: DataGrid am Desktop, List am Handy) */
.e2-compliance-mobil {
    display: none;
}

@media (max-width: 768px) {
    .e2-compliance-desktop {
        display: none;
    }

    .e2-compliance-mobil {
        display: block;
    }
}

/* ---------- Hinweise ---------- */
.e2-hinweis-raster {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(18rem, 1fr);
    gap: var(--oo-space-4);
    align-items: start;
}

.e2-hinweis-raster__haupt,
.e2-hinweis-raster__seite {
    display: flex;
    flex-direction: column;
    gap: var(--oo-space-4);
    min-width: 0;
}

@media (max-width: 960px) {
    .e2-hinweis-raster {
        grid-template-columns: minmax(0, 1fr);
    }
}

.e2-hinweis-reiter {
    padding-block: var(--oo-space-3);
}

.e2-hinweis-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.e2-hinweis-nachricht {
    display: flex;
    flex-direction: column;
    gap: var(--oo-space-1);
    max-width: min(40rem, 90%);
    padding: var(--oo-space-2) var(--oo-space-3);
    border-radius: var(--oo-border-radius);
    border: var(--oo-border-width) solid var(--oo-color-border);
}

.e2-hinweis-nachricht--hinweisgeber {
    align-self: flex-start;
    background: var(--oo-surface-2);
}

.e2-hinweis-nachricht--meldestelle {
    align-self: flex-end;
    background: var(--oo-primary-lighter);
}

.e2-hinweis-kommentar {
    padding: var(--oo-space-2) var(--oo-space-3);
    border-inline-start: 3px solid var(--oo-color-border-strong);
}

.e2-hinweis-ampel {
    display: inline-flex;
    align-items: center;
    gap: var(--oo-space-1);
    white-space: nowrap;
}

.e2-hinweisgeber {
    max-width: 48rem;
    margin-inline: auto;
    padding: var(--oo-space-6) var(--oo-space-4);
}

.e2-hinweisgeber__titel {
    margin: 0;
    font-size: var(--oo-font-size-xl);
}

.e2-hinweisgeber__logo {
    max-height: 4rem;
    max-width: 12rem;
    object-fit: contain;
}

.e2-hinweisgeber__kennung {
    flex: 1 1 18rem;
}

/* ---------- Abweichungen ---------- */
.e2-abweichung-filter {
    min-width: 11rem;
}

.e2-abweichung-raster {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
    gap: var(--oo-space-4);
    align-items: start;
}

.e2-abweichung-felder {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: var(--oo-space-3);
}

.e2-abweichung-label {
    font-size: var(--oo-font-size-sm);
    color: var(--oo-color-text-subtle);
}

.e2-abweichung-aktionen {
    margin-block: var(--oo-space-3);
}

.e2-abweichungstexte {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
    gap: var(--oo-space-4);
    align-items: start;
}

/* ---------- Audits ---------- */
.e2-audit-fortschritt {
    min-width: min(100%, 16rem);
    max-width: 24rem;
}

.e2-audit-kapitel {
    flex: 1 1 12rem;
}


/* Datenschutz: Verzeichnis der Verarbeitungstätigkeiten */
.e2-ds__raster {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
    gap: var(--oo-space-3, 0.75rem);
}

.e2-ds__breit {
    grid-column: 1 / -1;
}

.e2-ds__zwei {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: var(--oo-space-3, 0.75rem);
    margin-bottom: var(--oo-space-2, 0.5rem);
}

.e2-ds__haken {
    display: flex;
    flex-direction: column;
    gap: var(--oo-space-1, 0.25rem);
}

.e2-ds__gruppe {
    margin-top: var(--oo-space-2, 0.5rem);
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--oo-text-muted, #667085);
}

.e2-ds__eintraege {
    display: flex;
    flex-direction: column;
}

.e2-ds__eintrag {
    display: flex;
    align-items: center;
    gap: var(--oo-space-1, 0.25rem);
    min-height: 2rem;
}

.e2-ds__aktionen {
    margin-left: auto;
    opacity: 0;
    transition: opacity 0.15s;
}

.e2-ds__eintrag:hover .e2-ds__aktionen,
.e2-ds__eintrag:focus-within .e2-ds__aktionen {
    opacity: 1;
}

@media (hover: none) {
    .e2-ds__aktionen {
        opacity: 1;
    }
}

.e2-ds__neu {
    display: flex;
    gap: var(--oo-space-2, 0.5rem);
    align-items: flex-end;
    flex-wrap: wrap;
    margin-top: var(--oo-space-2, 0.5rem);
}

.e2-ds__uebermittlung {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 4.5rem 4.5rem;
    gap: var(--oo-space-1, 0.25rem) var(--oo-space-2, 0.5rem);
    align-items: center;
}

.e2-ds__uebermittlung small {
    text-align: center;
    color: var(--oo-text-muted, #667085);
}

.e2-ds__kennzahlen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: var(--oo-space-2, 0.5rem);
}

.e2-ds__zahl {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
}

.e2-ds__zahl--warnung {
    color: var(--oo-warning, #dc6803);
}

.e2-ds__verzeichnis {
    break-inside: avoid;
    padding: var(--oo-space-3, 0.75rem) 0;
    border-bottom: 1px solid var(--oo-border-color, #d0d5dd);
}

.e2-ds__verzeichnis h3 {
    margin: 0 0 var(--oo-space-2, 0.5rem);
}

.e2-ds__verzeichnis dl {
    display: grid;
    grid-template-columns: minmax(10rem, 16rem) minmax(0, 1fr);
    gap: var(--oo-space-1, 0.25rem) var(--oo-space-3, 0.75rem);
    margin: 0;
}

.e2-ds__verzeichnis dt {
    font-weight: 600;
}

.e2-ds__verzeichnis dd {
    margin: 0;
}

@media (max-width: 700px) {
    .e2-ds__verzeichnis dl {
        grid-template-columns: 1fr;
    }
}

/* Konformitätsprüfung */
.e2-kf__kopf {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: var(--oo-space-3, 0.75rem);
    margin-bottom: var(--oo-space-3, 0.75rem);
}

.e2-kf__anforderungen {
    display: flex;
    flex-direction: column;
}

.e2-kf__anforderung {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: var(--oo-space-2, 0.5rem);
    align-items: start;
    padding: var(--oo-space-2, 0.5rem) 0;
    border-bottom: 1px solid var(--oo-border-subtle, #eaecf0);
}

.e2-kf__anforderung--erfuellt strong {
    color: var(--oo-success, #079455);
}

.e2-kf__inhalt {
    display: flex;
    flex-direction: column;
    gap: var(--oo-space-1, 0.25rem);
}

.e2-kf__text {
    font-size: 0.9rem;
}

.e2-kf__infos {
    display: grid;
    grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr);
    gap: var(--oo-space-1, 0.25rem) var(--oo-space-3, 0.75rem);
    margin: var(--oo-space-1, 0.25rem) 0;
}

.e2-kf__infos dd {
    margin: 0;
}

.e2-kf__info {
    display: grid;
    grid-template-columns: 12rem minmax(0, 1fr) auto;
    gap: var(--oo-space-2, 0.5rem);
    align-items: end;
}

.e2-kf__dateien {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: var(--oo-space-3, 0.75rem);
}

@media (max-width: 700px) {
    .e2-kf__anforderung {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .e2-kf__anforderung .e2-zeilenaktionen {
        grid-column: 2;
    }

    .e2-kf__info,
    .e2-kf__infos {
        grid-template-columns: 1fr;
    }
}