/* KI-Detektor - Frontend-Styles
   Reduziertes Editor-Layout (Variante C). Scharfe Kanten, schwarzer Button.
   Farbe nur als Signal am Punkt und im Ergebnis. */

.kidet-wrap {
	max-width: 1040px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #17161c;
}

.kidet-tool {
	border-top: 2px solid #17161c;
	padding-top: 18px;
}

.kidet-kopf {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 14px;
	flex-wrap: wrap;
}

.kidet-headline {
	font-size: 22px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0;
	color: #17161c;
}

.kidet-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: #8a897f;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.kidet-dot {
	width: 6px;
	height: 6px;
	background: #2b4fd8;
	flex: none;
}

.kidet-input {
	width: 100%;
	min-height: 140px;
	border: 1px solid #17161c;
	border-radius: 0;
	padding: 16px;
	font-size: 15px;
	line-height: 1.7;
	color: #17161c;
	background: #ffffff;
	resize: vertical;
	box-sizing: border-box;
	font-family: inherit;
}

.kidet-input:focus {
	outline: none;
	box-shadow: inset 0 0 0 1px #17161c;
}

.kidet-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 14px;
}

.kidet-count {
	font-size: 12px;
	color: #8a897f;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.kidet-btn {
	padding: 10px 26px;
	font-size: 14px;
	font-weight: 500;
	background: #17161c;
	color: #ffffff;
	border: 1px solid #17161c;
	border-radius: 0;
	cursor: pointer;
	font-family: inherit;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.kidet-btn:hover {
	opacity: 0.85;
}

.kidet-error {
	margin: 0.75rem 0 0;
	font-size: 13px;
	color: #a32d2d;
}

/* Ergebnis */
.kidet-result {
	margin-top: 1.5rem;
	border-top: 1px solid #e2e2df;
	padding-top: 1.5rem;
}

.kidet-score-row {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 1rem;
}

.kidet-score {
	font-size: 40px;
	font-weight: 500;
	line-height: 1;
	color: #1a1a1a;
}

.kidet-score-pct {
	font-size: 20px;
	color: #8a897f;
	margin-left: 2px;
}

.kidet-score-label {
	font-size: 14px;
	color: #57564f;
}

.kidet-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	font-size: 12px;
	color: #57564f;
	margin-bottom: 1rem;
}

.kidet-swatch {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 2px;
	vertical-align: -1px;
	margin-right: 2px;
}

.kidet-swatch-high { background: #f0997b; }
.kidet-swatch-mid  { background: #ef9f27; }
.kidet-swatch-low  { background: #e2e2df; }

.kidet-analysis {
	font-size: 15px;
	line-height: 1.9;
	color: #1a1a1a;
}

.kidet-sent-high {
	background: #faece7;
	color: #712b13;
	padding: 1px 3px;
	border-radius: 3px;
}

.kidet-sent-mid {
	background: #faeeda;
	color: #633806;
	padding: 1px 3px;
	border-radius: 3px;
}

.kidet-sent-low {
	color: #1a1a1a;
}

/* Mobil: Spalten untereinander */
@media (max-width: 600px) {
	.kidet-grid {
		grid-template-columns: 1fr;
	}
	.kidet-panel-left {
		border-right: none;
		border-bottom: 1px solid #e2e2df;
	}
	.kidet-headline {
		font-size: 24px;
	}
}

/* ==== Effekte (dezent, professionell) ==== */

/* Button reagiert auf Hover, kantig ohne Anheben */
.kidet-btn {
	transition: opacity 0.15s ease, background 0.15s ease;
}
.kidet-btn:hover:not(:disabled) {
	opacity: 0.82;
}

/* Ladespinner im Button */
.kidet-spinner {
	width: 13px;
	height: 13px;
	border: 2px solid rgba(255,255,255,0.4);
	border-top-color: #fff;
	border-radius: 50%;
	display: inline-block;
	margin-right: 8px;
	vertical-align: -2px;
	animation: kidet-spin 0.7s linear infinite;
}
@keyframes kidet-spin { to { transform: rotate(360deg); } }

/* Fortschrittsbalken unter dem Score, scharfe Kanten */
.kidet-balken-spur {
	height: 8px;
	background: #f0eff1;
	border-radius: 0;
	overflow: hidden;
	margin: 4px 0 16px;
}
.kidet-balken {
	height: 100%;
	width: 0%;
	background: #1d9e75;
	border-radius: 0;
	transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Ergebnis blendet sanft ein */
.kidet-result {
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.4s ease, transform 0.4s ease;
}
.kidet-result.kidet-show {
	opacity: 1;
	transform: translateY(0);
}

/* Eingabefeld bekommt einen weichen Fokus-Ring */
.kidet-input {
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.kidet-input:focus {
	box-shadow: 0 0 0 3px rgba(43,79,216,0.14);
}

/* Wer Animationen reduziert haben moechte, bekommt keine */
@media (prefers-reduced-motion: reduce) {
	.kidet-btn, .kidet-balken, .kidet-result, .kidet-input,
	.kidet-spinner { transition: none; animation: none; }
	.kidet-result { opacity: 1; transform: none; }
}
