/* NE Datenschutz Scanner - App-Styles (Backend + Frontend) */

#nedsc-app {
	max-width: 1080px;
	font-size: 14px;
	line-height: 1.5;
	color: #1f2430;
}

.nedsc-kopf {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin: 12px 0;
}

.nedsc-kopf h2 {
	margin: 0;
	font-size: 20px;
}

.nedsc-meta {
	margin: 2px 0 0;
	color: #646c78;
	font-size: 13px;
}

.nedsc-karte {
	background: #fff;
	border: 1px solid #dfe2e8;
	border-radius: 10px;
	padding: 18px 20px;
	margin: 0 0 16px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.nedsc-karte h3 {
	margin: 0 0 12px;
	font-size: 16px;
	color: #1e293b;
}

/* Buttons */
.nedsc-btn {
	display: inline-block;
	padding: 7px 14px;
	border: 1px solid #c7ccd4;
	border-radius: 7px;
	background: #f6f7f9;
	color: #1f2430;
	font-size: 13px;
	cursor: pointer;
	text-decoration: none;
	line-height: 1.4;
}

.nedsc-btn:hover {
	background: #eceef2;
	color: #1f2430;
}

.nedsc-btn-primaer {
	background: #1e293b;
	border-color: #1e293b;
	color: #fff;
}

.nedsc-btn-primaer:hover {
	background: #33415c;
	color: #fff;
}

.nedsc-btn-klein {
	padding: 4px 9px;
	font-size: 12px;
}

.nedsc-btn-rot {
	color: #b32d2e;
	border-color: #e2b4b4;
}

.nedsc-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

/* Formular "Neuer Scan" */
.nedsc-neu label {
	display: block;
	margin: 14px 0 4px;
	font-weight: 600;
}

.nedsc-neu input[type="url"],
.nedsc-neu input[type="text"] {
	width: 100%;
	max-width: 560px;
	padding: 8px 10px;
	border: 1px solid #c7ccd4;
	border-radius: 7px;
	font-size: 14px;
}

/* Fortschritt */
.nedsc-balken {
	display: block;
	width: 100%;
	height: 16px;
	background: #e5e7eb;
	border-radius: 999px;
	overflow: hidden;
	margin: 14px 0 8px;
}

.nedsc-balken-fuellung {
	display: block;
	height: 100%;
	background: #1e293b;
	border-radius: 999px;
	transition: width 0.4s ease;
}

.nedsc-balken-klein {
	height: 10px;
	margin: 0;
	flex: 1;
}

.nedsc-schritt {
	color: #646c78;
}

/* Score */
.nedsc-score-karte {
	display: flex;
	align-items: center;
	gap: 20px;
	color: #fff;
	border: 0;
}

.nedsc-score-zahl {
	font-size: 44px;
	font-weight: 700;
	line-height: 1;
}

.nedsc-score-label {
	opacity: 0.85;
	font-size: 13px;
}

.nedsc-score-wertung {
	font-size: 18px;
	font-weight: 700;
}

/* Ampelfarben */
.nedsc-ampel-gruen { background: #1a7f37; }
.nedsc-ampel-gelb { background: #b58900; }
.nedsc-ampel-orange { background: #d9730d; }
.nedsc-ampel-rot { background: #b32d2e; }

.nedsc-hg-gruen { background: #1a7f37; }
.nedsc-hg-gelb { background: #b58900; }
.nedsc-hg-orange { background: #d9730d; }
.nedsc-hg-rot { background: #b32d2e; }

.nedsc-score-pille {
	display: inline-block;
	min-width: 34px;
	text-align: center;
	padding: 3px 8px;
	border-radius: 999px;
	color: #fff;
	font-weight: 700;
	font-size: 12px;
}

/* Kategorie-Zeilen */
.nedsc-kat-zeile {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 7px 0;
}

.nedsc-kat-label {
	flex: 0 0 220px;
}

.nedsc-kat-score {
	flex: 0 0 40px;
	text-align: right;
	font-weight: 700;
}

/* Befund-Gruppen */
.nedsc-gruppe {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	margin: 0 0 10px;
	background: #fafbfc;
}

.nedsc-gruppe summary {
	cursor: pointer;
	padding: 10px 14px;
	font-weight: 600;
	list-style-position: inside;
}

.nedsc-anzahl {
	display: inline-block;
	background: #e5e7eb;
	border-radius: 999px;
	padding: 1px 9px;
	font-size: 12px;
	margin-left: 6px;
}

.nedsc-befund {
	border-top: 1px solid #e5e7eb;
	padding: 12px 14px;
	background: #fff;
}

.nedsc-befund p {
	margin: 6px 0 0;
}

.nedsc-befund-kopf {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.nedsc-empfehlung {
	color: #7a5c1e;
}

/* Schweregrad-Badges */
.nedsc-badge {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 999px;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.nedsc-grad-kritisch { background: #b32d2e; }
.nedsc-grad-hoch { background: #d9730d; }
.nedsc-grad-mittel { background: #b58900; }
.nedsc-grad-niedrig { background: #646c78; }
.nedsc-grad-info { background: #3b82b4; }
.nedsc-grad-ok { background: #1a7f37; }

/* Tabellen */
.nedsc-scroll {
	overflow-x: auto;
}

.nedsc-tabelle {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.nedsc-tabelle th,
.nedsc-tabelle td {
	text-align: left;
	padding: 8px 10px;
	border-bottom: 1px solid #e5e7eb;
	vertical-align: top;
}

.nedsc-tabelle thead th {
	background: #1e293b;
	color: #fff;
	font-weight: 600;
	white-space: nowrap;
}

.nedsc-tabelle tbody tr:nth-child(even) {
	background: #f6f7f9;
}

.nedsc-zeile-warn td {
	color: #b32d2e;
}

.nedsc-aktionen {
	white-space: nowrap;
}

/* Status */
.nedsc-status {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: #e5e7eb;
	color: #1f2430;
}

.nedsc-status-fertig {
	background: #d8efdf;
	color: #14532d;
}

.nedsc-status-fehler {
	background: #f6dada;
	color: #7f1d1d;
}

/* Checklisten */
.nedsc-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 5px 0;
	border-bottom: 1px dashed #eceef2;
}

.nedsc-check span {
	flex: 0 0 74px;
	font-weight: 700;
	font-size: 12px;
}

.nedsc-check-ok span { color: #1a7f37; }
.nedsc-check-fehlt span { color: #b32d2e; }
.nedsc-check-na { color: #9aa1ab; }
.nedsc-check-na span { color: #9aa1ab; }

/* Texte / Zustaende */
.nedsc-ok { color: #1a7f37; font-weight: 600; }
.nedsc-schlecht { color: #b32d2e; font-weight: 700; }

.nedsc-fehler {
	color: #7f1d1d;
	background: #f6dada;
	border: 1px solid #eab6b6;
	border-radius: 7px;
	padding: 9px 12px;
	margin: 10px 0;
}

.nedsc-hinweis {
	background: #f6f7f9;
	border: 1px solid #dfe2e8;
	border-radius: 8px;
	padding: 12px 14px;
}

/* Frontend-Feinschliff */
.nedsc-frontend .nedsc-karte {
	box-sizing: border-box;
}

@media (max-width: 700px) {
	.nedsc-kat-label {
		flex-basis: 130px;
		font-size: 12px;
	}

	.nedsc-score-zahl {
		font-size: 34px;
	}
}

/* --- v1.1.0: Konfidenz, Scan-Vergleich, Banner-Abgleich --- */

.nedsc-konfidenz {
	display: inline-block;
	margin-left: 8px;
	padding: 1px 7px;
	border: 1px solid #c9ccd4;
	border-radius: 9px;
	background: #f4f5f7;
	color: #5c6270;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .02em;
	vertical-align: middle;
}

.nedsc-unbekannt {
	color: #8b8f9a;
}

.nedsc-diff-datum {
	margin: 0 0 12px;
	color: #6b7280;
	font-size: 13px;
}

.nedsc-diff-kopf {
	margin: 10px 0 4px;
	font-size: 14px;
}

.nedsc-diff-liste {
	margin: 0 0 6px;
	padding-left: 20px;
	list-style: none;
}

.nedsc-diff-liste li {
	position: relative;
	padding: 3px 0;
	font-size: 14px;
	line-height: 1.45;
}

.nedsc-diff-liste li::before {
	position: absolute;
	left: -18px;
	font-weight: 700;
}

.nedsc-diff-gut li::before {
	content: "+";
	color: #1a7f37;
}

.nedsc-diff-schlecht li::before {
	content: "\2013";
	color: #b32d2e;
}

/* --- v1.2.0: Browser-Pruefung (Stufe 2) --- */

.nedsc-br-liste {
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 6px 20px;
}

.nedsc-br-liste li {
	padding: 6px 0;
	border-bottom: 1px solid #edeef1;
	font-size: 14px;
}

.nedsc-br-bildtitel {
	margin: 16px 0 8px;
}

.nedsc-br-bild {
	display: block;
	max-width: 100%;
	height: auto;
	border: 1px solid #d6d9e0;
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(20, 24, 34, .09);
}

.nedsc-hinweis {
	padding: 12px 14px;
	border-left: 3px solid #c9ccd4;
	background: #f7f8fa;
	color: #4b5160;
	font-size: 14px;
	line-height: 1.5;
}

/* --- v1.3.0: nicht geprüfte Kategorien --- */

.nedsc-kat-ungeprueft {
	flex: 1;
	color: #8b8f9a;
	font-size: 13px;
	font-style: italic;
}

/* --- v1.4.0: Prüfverlauf --- */

.nedsc-delta-neutral {
	color: #8b8f9a;
	font-size: 13px;
}

/* --- v1.10.0: Betroffenenrechte --- */

.nedsc-rechte {
	margin: 18px 0 6px;
}

.nedsc-rechte h4 {
	margin: 0 0 8px;
	font-size: 15px;
}

.nedsc-rechte-liste {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 4px 20px;
}

.nedsc-rechte-liste li {
	padding: 5px 0;
	border-bottom: 1px solid #edeef1;
	font-size: 14px;
}

/* --- v2.1.0: Fundstellen --- */

.nedsc-fundstellen {
	margin: 6px 0 10px;
	font-size: 13px;
}

.nedsc-fundstellen summary {
	cursor: pointer;
	color: #5c6270;
	font-weight: 600;
}

.nedsc-fundstellen ul {
	margin: 8px 0 0;
	padding: 10px 12px;
	list-style: none;
	background: #f7f8fa;
	border-left: 3px solid #c9ccd4;
	border-radius: 0 4px 4px 0;
}

.nedsc-fundstellen li {
	padding: 3px 0;
	color: #4b5160;
	word-break: break-all;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12px;
	line-height: 1.5;
}

/* --- v2.2.0: unbestimmter Drittlandbezug --- */

.nedsc-zupruefen {
	color: #8a6d1f;
	font-weight: 600;
}

/* --- v2.5.0: Einordnung und Lösungsschritte im Befund --- */

.nedsc-wissen {
	margin: 10px 0 0;
	padding: 10px 14px;
	border-left: 3px solid #d6d9e0;
	background: #fbfbfc;
	border-radius: 0 4px 4px 0;
}

.nedsc-wissen h5 {
	margin: 0 0 5px;
	font-size: 13px;
	font-weight: 700;
	color: #1f3a5f;
	letter-spacing: .01em;
}

.nedsc-wissen p {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: #3c414d;
}

.nedsc-wissen ol {
	margin: 0;
	padding-left: 20px;
	font-size: 14px;
	line-height: 1.55;
	color: #3c414d;
}

.nedsc-wissen ol li {
	padding: 2px 0;
}

.nedsc-wissen-wp {
	border-left-color: #c79a2e;
	background: #fdfaf3;
}

.nedsc-wissen-wp h5 {
	color: #8a6d1f;
}

/* --- v2.12.0: Übersicht nach Domains gruppiert --- */

.nedsc-domains {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nedsc-domain {
	background: #fff;
	border: 1px solid #e2e4ea;
	border-radius: 10px;
	overflow: hidden;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.nedsc-domain:hover {
	border-color: #c9ccd4;
	box-shadow: 0 2px 10px rgba(20, 24, 34, .06);
}

.nedsc-domain.nedsc-offen {
	border-color: #1f3a5f;
}

.nedsc-domain-kopf {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	cursor: pointer;
	user-select: none;
}

.nedsc-domain-kopf:focus-visible {
	outline: 2px solid #1f3a5f;
	outline-offset: -2px;
}

.nedsc-domain-pfeil {
	flex: 0 0 10px;
	width: 10px;
	height: 10px;
	border-right: 2px solid #8b8f9a;
	border-bottom: 2px solid #8b8f9a;
	transform: rotate(-45deg);
	transition: transform .18s ease;
}

.nedsc-offen .nedsc-domain-pfeil {
	transform: rotate(45deg);
}

.nedsc-domain-titel {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.nedsc-domain-titel strong {
	font-size: 15px;
	word-break: break-all;
}

.nedsc-domain-kunde {
	color: #6b7280;
	font-size: 13px;
}

.nedsc-domain-zahlen {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: 0 0 auto;
	font-size: 13px;
	color: #5c6270;
}

.nedsc-domain-datum {
	white-space: nowrap;
}

.nedsc-domain-anzahl {
	padding: 2px 8px;
	border-radius: 10px;
	background: #f1f2f5;
	font-weight: 600;
	white-space: nowrap;
}

.nedsc-delta {
	font-weight: 700;
	white-space: nowrap;
}

.nedsc-domain-aktionen {
	flex: 0 0 auto;
}

.nedsc-domain-inhalt {
	display: none;
	border-top: 1px solid #eceef2;
	padding: 4px 18px 14px;
}

.nedsc-offen .nedsc-domain-inhalt {
	display: block;
}

.nedsc-ampel-unbekannt {
	background: #eceef2;
	color: #6b7280;
}

@media (max-width: 860px) {
	.nedsc-domain-kopf {
		flex-wrap: wrap;
	}

	.nedsc-domain-zahlen {
		width: 100%;
		padding-left: 24px;
	}
}

/* --- v2.14.0: Filterleiste und Fundstelle bei erfüllten Punkten --- */

.nedsc-filter {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	flex-wrap: wrap;
}

.nedsc-suchfeld {
	padding: 7px 11px;
	border: 1px solid #d6d9e0;
	border-radius: 7px;
	background: #fff;
	font-size: 14px;
	min-width: 220px;
}

.nedsc-suchfeld:focus {
	outline: none;
	border-color: #1f3a5f;
	box-shadow: 0 0 0 3px rgba(31, 58, 95, .1);
}

.nedsc-filter-treffer {
	color: #6b7280;
	font-size: 13px;
}

.nedsc-check-snippet {
	display: block;
	margin-top: 3px;
	padding-left: 2px;
	color: #7b8090;
	font-size: 12px;
	font-style: italic;
	line-height: 1.45;
}

/* --- v2.16.0: dritter Zustand "manuell zu prüfen" --- */

.nedsc-check-unklar {
	border-left: 3px solid #c79a2e;
	background: #fdfaf3;
}

.nedsc-check-unklar span:first-child {
	color: #8a6d1f;
	font-weight: 700;
}

/* --- v2.20.0: Einrichtung des Browser-Agenten --- */

.nedsc-einrichtung {
	margin: 0 0 18px;
	padding: 12px 16px;
	background: #fbfbfc;
	border: 1px solid #e2e4ea;
	border-radius: 8px;
}

.nedsc-einrichtung summary {
	cursor: pointer;
	padding: 2px 0;
}

.nedsc-einrichtung ol {
	margin: 10px 0 0 4px;
	padding-left: 20px;
}

.nedsc-einrichtung li {
	padding: 6px 0;
	line-height: 1.6;
}

.nedsc-einrichtung code {
	display: inline-block;
	margin: 3px 0;
	padding: 3px 7px;
	background: #eef0f4;
	border-radius: 4px;
	font-size: 12.5px;
	word-break: break-all;
}

/* --- v2.23.0: Selbsttest --- */

.nedsc-selbsttest-titel {
	margin-top: 26px;
}

.nedsc-selbsttest td,
.nedsc-selbsttest th {
	vertical-align: top;
	padding: 9px 12px;
}

.nedsc-st-status {
	width: 92px;
	font-weight: 700;
	white-space: nowrap;
}

.nedsc-st-ok { color: #1a7f37; }
.nedsc-st-warnung { color: #8a6d1f; }
.nedsc-st-fehler { color: #b32d2e; }
.nedsc-st-offen { color: #5c6270; }
