/*
 * KI-Checks — Darstellung.
 *
 * Bewusst zurückhaltend und ohne Farbwerte des Themes: das Plugin läuft auf
 * minoka.de im Kadence-Theme und soll dessen Schrift und Farben erben, statt ein
 * zweites Design danebenzustellen. Nur was Struktur braucht, ist gesetzt.
 *
 * Die drei Ergebnisstufen sind über einen linken Balken unterschieden, nicht über
 * Flächenfarbe: eine rote Fläche liest sich als Fehler, und "Pflicht" ist kein
 * Fehler, sondern ein Befund.
 */

.mkc-check {
	margin: 2rem 0;
	max-width: 44rem;
}

.mkc-schrittzahl {
	font-size: 0.85rem;
	opacity: 0.7;
	margin: 0 0 0.25rem;
}

.mkc-frage {
	margin: 0 0 0.5rem;
	line-height: 1.3;
}

.mkc-hilfe {
	margin: 0 0 1.25rem;
	opacity: 0.85;
	line-height: 1.55;
}

.mkc-optionen {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.mkc-option {
	display: block;
	width: 100%;
	text-align: left;
	padding: 0.9rem 1.1rem;
	border: 1px solid currentColor;
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: 1.4;
	cursor: pointer;
}

.mkc-option:hover,
.mkc-option:focus-visible {
	/* Kein Farbwechsel, sondern Gewicht: funktioniert in hellen wie dunklen Themes. */
	box-shadow: inset 0 0 0 1px currentColor;
}

.mkc-fuss {
	margin-top: 1.5rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
}

.mkc-zurueck,
.mkc-neustart,
.mkc-kopieren {
	padding: 0.45rem 0.9rem;
	border: 1px solid currentColor;
	border-radius: 4px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.9rem;
	cursor: pointer;
}

/* Tastatur-Fokus an allem, was man bedienen kann. Umriss statt Farbe, aus demselben
 * Grund wie oben: das Plugin erbt die Farben des Themes. */
.mkc-option:focus-visible,
.mkc-zurueck:focus-visible,
.mkc-neustart:focus-visible,
.mkc-kopieren:focus-visible,
.mkc-kopierfeld:focus-visible,
.mkc-cta:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Überschriften bekommen den Fokus nur per Skript, damit ein Screenreader dort
 * weiterliest. Ein Rahmen um die Überschrift wäre für Sehende nur Rauschen. */
.mkc-frage[tabindex="-1"]:focus,
.mkc-ergebnis-titel[tabindex="-1"]:focus,
.mkc-kein-ergebnis[tabindex="-1"]:focus {
	outline: none;
}

.mkc-status {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.mkc-lokal {
	margin: 0;
	font-size: 0.82rem;
	opacity: 0.7;
}

/* --- Ergebnis --- */

.mkc-ergebnis {
	border-left: 4px solid currentColor;
	padding: 0.25rem 0 0.25rem 1.25rem;
}

.mkc-ergebnis + .mkc-ergebnis {
	margin-top: 2rem;
}

.mkc-zeit {
	margin: 1.6rem 0 0;
	line-height: 1.55;
}

.mkc-ergebnis-label {
	margin: 0;
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.7;
}

.mkc-ergebnis-titel {
	margin: 0.2rem 0 1rem;
	line-height: 1.3;
}

.mkc-unter {
	margin: 1.4rem 0 0.4rem;
	font-size: 0.95rem;
	text-transform: none;
}

.mkc-grund,
.mkc-schritte li {
	line-height: 1.6;
}

.mkc-schritte {
	margin: 0.4rem 0 0;
	padding-left: 1.2rem;
}

.mkc-schritte li {
	margin-bottom: 0.4rem;
}

.mkc-hinweis {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	padding: 0.7rem 0.9rem;
	margin-bottom: 0.6rem;
	border: 1px dashed currentColor;
	border-radius: 4px;
}

.mkc-hinweis-text {
	margin: 0;
	flex: 1 1 20rem;
	line-height: 1.5;
}

.mkc-kopierfeld {
	width: 100%;
	min-height: 3rem;
	font: inherit;
	font-size: 0.9rem;
}

.mkc-cta {
	display: inline-block;
	margin-top: 1.4rem;
	font-weight: 600;
}

.mkc-meta {
	margin-top: 1.4rem;
	font-size: 0.82rem;
	opacity: 0.7;
	line-height: 1.5;
}

.mkc-kein-ergebnis,
.mkc-fehler {
	padding: 0.9rem 1.1rem;
	border: 1px solid currentColor;
	border-radius: 4px;
}

@media (max-width: 640px) {
	.mkc-option {
		padding: 0.8rem 0.9rem;
	}
	.mkc-ergebnis {
		padding-left: 1rem;
	}
}
