/* RundumFellFit Chat, Frontend
   Farbe zentral hier aendern. */
.ffc-wurzel {
	--ffc-farbe: #9c1c7f;
	--ffc-farbe-hell: #f6eaf2;
	--ffc-text: #2b2b2b;
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99999;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
}

.ffc-knopf {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: none;
	background: var(--ffc-farbe);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: auto;
}

.ffc-knopf:hover,
.ffc-knopf:focus-visible {
	filter: brightness(1.1);
	outline: 3px solid rgba(156, 28, 127, 0.4);
	outline-offset: 2px;
}

.ffc-knopf-icon {
	font-size: 26px;
	line-height: 1;
}

.ffc-panel {
	width: 360px;
	max-width: calc(100vw - 32px);
	height: 520px;
	max-height: calc(100vh - 120px);
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	margin-bottom: 12px;
}

.ffc-panel[hidden] {
	display: none;
}

.ffc-kopf {
	background: var(--ffc-farbe);
	color: #fff;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.ffc-kopf-titel {
	font-weight: 700;
	font-size: 16px;
}

.ffc-zu {
	background: none;
	border: none;
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
	min-width: 44px;
	min-height: 44px;
}

.ffc-liste {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #fafafa;
}

.ffc-blase {
	max-width: 85%;
	padding: 10px 13px;
	border-radius: 12px;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	color: var(--ffc-text);
}

.ffc-assistant {
	background: var(--ffc-farbe-hell);
	align-self: flex-start;
	border-bottom-left-radius: 4px;
}

.ffc-user {
	background: var(--ffc-farbe);
	color: #fff;
	align-self: flex-end;
	border-bottom-right-radius: 4px;
}

.ffc-system {
	background: #fff4e5;
	align-self: center;
	font-size: 14px;
	text-align: center;
	max-width: 100%;
}

.ffc-tippt {
	display: flex;
	gap: 5px;
	align-items: center;
}

.ffc-punkt {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ffc-farbe);
	opacity: 0.4;
	animation: ffc-blink 1.2s infinite;
}

.ffc-punkt:nth-child(2) {
	animation-delay: 0.2s;
}

.ffc-punkt:nth-child(3) {
	animation-delay: 0.4s;
}

@keyframes ffc-blink {
	0%, 100% { opacity: 0.3; }
	50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.ffc-punkt {
		animation: none;
	}
}

.ffc-form {
	display: flex;
	gap: 8px;
	padding: 12px;
	border-top: 1px solid #e6e6e6;
	background: #fff;
}

.ffc-eingabe {
	flex: 1;
	min-width: 0;
	padding: 11px 12px;
	border: 1px solid #ccc;
	border-radius: 8px;
	font-size: 16px; /* verhindert Zoom auf iOS */
	color: var(--ffc-text);
	background: #fff;
}

.ffc-eingabe:focus-visible {
	outline: 2px solid var(--ffc-farbe);
	outline-offset: 1px;
}

.ffc-senden {
	background: var(--ffc-farbe);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 0 16px;
	min-height: 44px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
}

.ffc-senden:disabled {
	opacity: 0.6;
	cursor: default;
}

.ffc-hinweis {
	margin: 0;
	padding: 8px 12px 12px;
	font-size: 12px;
	color: #666;
	background: #fff;
	text-align: center;
}

@media (max-width: 480px) {
	.ffc-wurzel {
		right: 12px;
		bottom: 12px;
		left: 12px;
	}

	.ffc-panel {
		width: auto;
		height: min(70vh, 520px);
	}
}
