/*
 * Hybrid Chat - Widget-Styling.
 * Bewusst ohne externe Font-Requests (DSGVO-unkritisch, offline-fähig):
 * Georgia/Times als Serif-Display für den Namen, Systemschrift für Text.
 */

.hybrid-chat-widget {
	--hc-petrol: #1F4B4A;
	--hc-petrol-dark: #143332;
	--hc-gold: #D9A544;
	--hc-sage: #EAF2EE;
	--hc-bg: #FAF9F6;
	--hc-text: #232323;

	max-width: 420px;
	border-radius: 16px;
	overflow: hidden;
	background: var(--hc-bg);
	color: var(--hc-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Header mit Avatar-Bild, Name und Status */
.hybrid-chat-widget__header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: var(--hc-petrol);
	color: #fff;
}

.hybrid-chat-widget__avatar {
	flex-shrink: 0;
	border-radius: 50%;
	overflow: hidden;
	background: var(--hc-sage);
}

.hybrid-chat-widget__avatar--header {
	width: 44px;
	height: 44px;
}

.hybrid-chat-widget__avatar--sm {
	width: 28px;
	height: 28px;
	margin-top: 2px;
}

.hybrid-chat-widget__avatar img,
.hybrid-chat-widget__avatar svg {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.hybrid-chat-widget__title {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.hybrid-chat-widget__name {
	font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
	font-size: 1.05em;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.hybrid-chat-widget__status {
	font-size: 0.78em;
	opacity: 0.85;
}

.hybrid-chat-widget__status::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--hc-gold);
	margin-right: 5px;
}

/* Nachrichtenverlauf */
.hybrid-chat-widget__messages {
	max-height: 360px;
	overflow-y: auto;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hybrid-chat-widget__row {
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.hybrid-chat-widget__row--user {
	justify-content: flex-end;
}

.hybrid-chat-widget__message {
	padding: 9px 13px;
	border-radius: 14px;
	max-width: 78%;
	line-height: 1.45;
	font-size: 0.94em;
}

.hybrid-chat-widget__message--bot {
	background: var(--hc-sage);
	color: var(--hc-petrol-dark);
	border-bottom-left-radius: 4px;
}

.hybrid-chat-widget__message--user {
	background: var(--hc-petrol);
	color: #fff;
	border-bottom-right-radius: 4px;
}

/* Eingabezeile */
.hybrid-chat-widget__form {
	display: flex;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	background: #fff;
}

.hybrid-chat-widget__input {
	flex: 1;
	border: none;
	padding: 12px 14px;
	font-size: 0.94em;
	background: transparent;
	color: var(--hc-text);
}

.hybrid-chat-widget__input:focus {
	outline: 2px solid var(--hc-gold);
	outline-offset: -2px;
}

.hybrid-chat-widget__send {
	border: none;
	background: var(--hc-petrol);
	color: #fff;
	padding: 0 20px;
	cursor: pointer;
	font-size: 0.94em;
	font-weight: 600;
	transition: background 0.15s ease;
}

.hybrid-chat-widget__send:hover {
	background: var(--hc-petrol-dark);
}

.hybrid-chat-widget__send:focus-visible {
	outline: 2px solid var(--hc-gold);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.hybrid-chat-widget__send {
		transition: none;
	}
}
