/* GERA Chatbot Widget — basiert auf Design-Handoff GERA_ChatBot_3_0
 * Senior-freundlich: 19px Body, hoher Kontrast, sichtbarer Fokus.
 *
 * Layouts: Modal (Center-Overlay) und Bottom-Right-Panel
 * Welcome-Varianten: Warm | Editorial | Voice
 */

/* ============================================================
 * Design-Tokens (gescoped auf Widget-Root)
 * ============================================================ */
#gera-chatbot-root {
	/* Brand */
	--gera-primary: #B63360;
	--gera-primary-700: #8E2049;
	--gera-primary-100: #F7E5EC;
	--gera-primary-50: #FCF3F7;

	/* Neutrals — warm */
	--ink-900: #1F1822;
	--ink-700: #3A2F3F;
	--ink-500: #6B5E70;
	--ink-300: #B5ABBA;
	--paper:   #FBF7F4;
	--paper-2: #F3ECE6;
	--line:    rgba(31, 24, 34, 0.10);
	--success: #2EAD66;

	/* Radii */
	--radius-sm: 10px;
	--radius-md: 14px;
	--radius-lg: 22px;
	--radius-xl: 24px;

	/* Shadows */
	--shadow-soft: 0 1px 2px rgba(31,24,34,.04), 0 8px 30px rgba(31,24,34,.08);
	--shadow-lift: 0 2px 4px rgba(31,24,34,.05), 0 24px 60px rgba(31,24,34,.18);
	--shadow-cta:  0 8px 24px rgba(182,51,96,.12);

	/* Type */
	--font-serif: 'Lexend', 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
	--font-ui:    'DM Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-mono:  ui-monospace, 'SF Mono', Menlo, monospace;

	/* a11y — large for 60+ */
	--fs-body: 17px;
	--fs-lead: 18px;
	--fs-h1:   28px;
	--fs-h2:   22px;
	--fs-btn:  16px;

	--z-modal: 999999;
	--z-fab:   999998;

	font-family: var(--font-ui);
	font-size: var(--fs-body);
	line-height: 1.55;
	color: var(--ink-900);
}

#gera-chatbot-root *,
#gera-chatbot-root *::before,
#gera-chatbot-root *::after { box-sizing: border-box; }

/* Sanfter Button-Reset — neutralisiert nur Theme-Typography,
 * nicht Padding/Line-Height (das h\u00e4tte spezifischere Klassen \u00fcberschrieben). */
#gera-chatbot-root button {
	font-family: inherit;
	margin: 0;
	-webkit-appearance: none;
	appearance: none;
}

/* Icon-Buttons: Padding 0 + Flex-Centering mit !important,
 * damit Theme-CSS nicht dazwischen funkt. */
#gera-chatbot-root .gera-modal-close,
#gera-chatbot-root .gera-conv-back,
#gera-chatbot-root .gera-conv-send,
#gera-chatbot-root .gera-v1-plz-send {
	padding: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	line-height: 1 !important;
}

/* Globaler SVG-Fix: alle Icons im Widget als Block,
 * damit sie in Buttons zentriert dargestellt werden (kein Baseline-Descender). */
#gera-chatbot-root svg {
	display: block;
}

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

/* ============================================================
 * Minimized FAB — Pill-Variante (Avatar + 2 Textzeilen + Badge)
 * ============================================================ */
@keyframes gera-fab-pulse {
	0%, 100% { box-shadow: 0 4px 16px rgba(31,24,34,.12), 0 0 0 0 rgba(182,51,96,0.45); }
	60%      { box-shadow: 0 4px 16px rgba(31,24,34,.12), 0 0 0 14px rgba(182,51,96,0); }
}

.gera-fab {
	position: fixed;
	bottom: 24px; right: 24px;
	z-index: var(--z-fab);
	display: flex;
	align-items: center;
	gap: 12px;
	background: white;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 8px 18px 8px 8px;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(31,24,34,.12);
	animation: gera-fab-pulse 3s ease-in-out infinite;
	transition: transform .15s, box-shadow .15s;
	font-family: inherit;
	color: var(--ink-900);
}

.gera-fab:hover,
.gera-fab:focus-visible {
	transform: translateY(-2px);
	animation: none;
	box-shadow: 0 8px 24px rgba(31,24,34,.18);
}

.gera-fab:focus-visible {
	outline: 3px solid var(--gera-primary);
	outline-offset: 3px;
}

.gera-fab-avatar {
	width: 40px; height: 40px;
	border-radius: 50%;
	border: 2px solid white;
	flex-shrink: 0;
	object-fit: cover;
	box-shadow: 0 0 0 1px var(--line);
}

.gera-fab-text {
	display: flex; flex-direction: column;
	text-align: left;
	line-height: 1.2;
}

.gera-fab-label {
	font-size: 15px;
	font-weight: 600;
	color: var(--ink-900);
}

.gera-fab-sub {
	font-size: 14px;
	font-weight: 500;
	color: var(--ink-500);
	margin-top: 2px;
}

.gera-fab-badge {
	background: var(--gera-primary);
	color: white;
	font-size: 14px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 10px;
	margin-left: 4px;
}

/* Mobile: Pill kompakter */
@media (max-width: 480px) {
	.gera-fab {
		bottom: 16px; right: 16px;
		padding: 6px 14px 6px 6px;
		gap: 8px;
	}
	.gera-fab-label { font-size: 14px; }
	.gera-fab-sub   { font-size: 14px; }
	.gera-fab-avatar { width: 36px; height: 36px; }
}

/* ============================================================
 * Layout 1: Modal mit Overlay (panelLayout = 'modal')
 * ============================================================ */
@keyframes gera-fade-in   { from { opacity: 0; } to { opacity: 1; } }
@keyframes gera-modal-rise {
	from { opacity: 0; transform: translateY(20px) scale(.98); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

.gera-overlay {
	position: fixed; inset: 0;
	z-index: var(--z-modal);
	background: rgba(31, 24, 34, 0.55);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	display: flex; align-items: center; justify-content: center;
	padding: 24px;
	animation: gera-fade-in .35s ease-out;
}

.gera-overlay[hidden] { display: none; }

.gera-modal {
	background: var(--paper);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lift);
	width: 100%; max-width: 800px;
	height: min(96vh, 960px);
	overflow: hidden;
	position: relative;
	animation: gera-modal-rise .45s cubic-bezier(.2,.7,.2,1);
	display: flex; flex-direction: column;
}

@media (max-width: 640px) {
	.gera-overlay { padding: 0; }
	.gera-modal {
		max-width: 100%; height: 100vh;
		border-radius: 0;
	}
}

/* Modal-Close Button */
.gera-modal-close {
	position: absolute;
	top: 16px; right: 16px;
	width: 44px; height: 44px;
	border-radius: 50%;
	background: rgba(255,255,255,.85);
	border: 1px solid var(--line);
	cursor: pointer;
	display: grid; place-items: center;
	z-index: 5;
	transition: background .15s;
}

.gera-modal-close:hover { background: white; }
.gera-modal-close:focus-visible {
	outline: 3px solid var(--gera-primary);
	outline-offset: 2px;
}
.gera-modal-close svg { width: 20px; height: 20px; stroke: var(--ink-900); fill: none; stroke-width: 2; }

/* ============================================================
 * Layout 2: Bottom-Right-Panel (panelLayout = 'bottom-right')
 * ============================================================ */
.gera-panel-wrapper {
	position: fixed;
	bottom: 100px;
	right: 24px;
	width: 380px;
	max-width: calc(100vw - 32px);
	height: 600px;
	max-height: calc(100vh - 130px);
	z-index: var(--z-modal);
	display: flex;
}

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

.gera-panel-wrapper > .gera-modal {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lift);
}

@media (max-width: 768px) {
	.gera-panel-wrapper {
		bottom: 0; right: 0; left: 0; top: 0;
		width: 100%; max-width: none;
		height: 100vh; max-height: 100vh;
	}
	.gera-panel-wrapper > .gera-modal { border-radius: 0; }
}

/* ============================================================
 * Welcome-Variante WARM
 * ============================================================ */
@keyframes gera-halo-pulse {
	0%, 100% { transform: scale(1); opacity: .6; }
	50%      { transform: scale(1.08); opacity: 1; }
}
@keyframes gera-avatar-pulse {
	0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(182,51,96,.4); }
	50%      { transform: scale(1.04); box-shadow: 0 0 0 12px rgba(182,51,96,0); }
}

.gera-v1 {
	flex: 1;
	overflow-y: auto;
	padding: 32px 36px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background:
		radial-gradient(circle at 50% 20%, var(--gera-primary-50), transparent 60%),
		var(--paper);
}

.gera-v1-avatar-wrap {
	position: relative;
	margin-bottom: 16px;
	width: 108px; height: 108px;
	display: grid;
	place-items: center;
}

.gera-v1-halo {
	position: absolute;
	inset: -16px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(182,51,96,.18), transparent 70%);
	animation: gera-halo-pulse 3s ease-in-out infinite;
	pointer-events: none;
}

.gera-v1-avatar {
	width: 108px; height: 108px;
	border-radius: 50%;
	border: 4px solid white;
	box-shadow: 0 0 0 1px var(--gera-primary), var(--shadow-soft);
	object-fit: cover;
	animation: gera-avatar-pulse 3s ease-in-out infinite;
	position: relative;
}

.gera-v1-status-dot {
	position: absolute;
	bottom: 6px; right: 6px;
	width: 22px; height: 22px;
	background: var(--success);
	border: 3px solid white;
	border-radius: 50%;
	z-index: 2;
}

.gera-v1-eyebrow {
	font-family: var(--font-mono);
	font-size: 14px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gera-primary);
	font-weight: 700;
	margin-bottom: 14px;
}

.gera-v1-title {
	font-family: var(--font-serif);
	font-size: var(--fs-h1);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.02em;
	max-width: 22ch;
	margin: 0 0 14px;
	color: var(--ink-900);
	text-wrap: balance;
}

.gera-v1-title em {
	font-style: italic;
	color: var(--gera-primary);
}

.gera-v1-lead {
	font-size: 15px;
	line-height: 1.5;
	color: var(--ink-700);
	max-width: 46ch;
	margin: 0 0 24px;
}

/* FAQ-Karten im Welcome (statt CTA-Grid) */
.gera-v1-faq-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	max-width: 460px;
	margin-bottom: 22px;
	text-align: left;
}

.gera-v1-faq-card {
	display: flex;
	align-items: center;
	gap: 16px;
	background: white;
	border: 1.5px solid var(--line);
	border-radius: var(--radius-md);
	padding: 16px 18px;
	cursor: pointer;
	font-family: inherit;
	font-size: 17px;
	color: var(--ink-900);
	text-align: left;
	transition: transform .15s, border-color .15s, box-shadow .15s;
	width: 100%;
}

.gera-v1-faq-card:hover,
.gera-v1-faq-card:focus-visible {
	border-color: var(--gera-primary);
	transform: translateY(-2px);
	outline: none;
	box-shadow: var(--shadow-cta);
}

.gera-v1-faq-icon {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: var(--gera-primary-50);
	color: var(--gera-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 0;
}

.gera-v1-faq-icon svg {
	display: block;
	width: 24px;
	height: 24px;
}

.gera-v1-faq-text {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.gera-v1-faq-title {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ink-900);
}

.gera-v1-faq-sub {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--ink-500);
}

.gera-v1-faq-arrow {
	color: var(--gera-primary);
	font-weight: 700;
	font-size: 22px;
	flex-shrink: 0;
}

/* Anleitungstext unter den Handlungsfeldern */
.gera-v1-instructions {
	width: 100%;
	max-width: 460px;
	margin: 2px 0 8px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	text-align: left;
}

.gera-v1-instructions-title {
	font-size: 17px;
	font-weight: 600;
	color: var(--ink-900);
	margin: 0 0 6px;
}

.gera-v1-instructions-body {
	font-size: 15px;
	line-height: 1.6;
	color: var(--ink-700);
	margin: 0;
}

.gera-v1-or {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	max-width: 420px;
	margin: 4px 0 18px;
	font-family: var(--font-mono);
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--ink-500);
}

.gera-v1-or::before,
.gera-v1-or::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--line);
}

.gera-v1-plz-form { width: 100%; max-width: 420px; }

.gera-v1-plz-label {
	display: block;
	font-family: var(--font-mono);
	font-size: 14px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ink-500);
	font-weight: 700;
	margin-bottom: 6px;
	text-align: left;
}

.gera-v1-plz-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	background: white;
	border: 2px solid var(--line);
	border-radius: var(--radius-md);
	padding: 4px 4px 4px 14px;
	transition: border-color .15s, box-shadow .15s;
}

.gera-v1-plz-bar:focus-within {
	border-color: var(--gera-primary);
	box-shadow: 0 0 0 4px var(--gera-primary-50);
}

.gera-v1-plz-input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	font-family: inherit;
	font-size: 17px;
	color: var(--ink-900);
	padding: 11px 0;
	min-width: 0;
}

.gera-v1-plz-send {
	width: 42px; height: 42px;
	border: none;
	border-radius: 12px;
	background: var(--gera-primary);
	color: white;
	cursor: pointer;
	display: grid; place-items: center;
	flex-shrink: 0;
	transition: background .15s;
}

.gera-v1-plz-send svg {
	width: 18px;
	height: 18px;
}

.gera-v1-plz-send:hover:not(:disabled),
.gera-v1-plz-send:focus-visible {
	background: var(--gera-primary-700);
}

.gera-v1-plz-send:disabled {
	background: var(--ink-300);
	cursor: not-allowed;
}

.gera-v1-plz-hint {
	font-size: 14px;
	font-style: italic;
	color: var(--ink-500);
	margin: 10px 0 18px;
	text-align: center;
}

.gera-v1-plz-skip {
	background: transparent;
	border: none;
	color: var(--ink-500);
	font-size: 14px;
	text-decoration: underline;
	cursor: pointer;
	padding: 8px;
	font-family: inherit;
}

.gera-v1-plz-skip:hover,
.gera-v1-plz-skip:focus-visible {
	color: var(--gera-primary);
}

/* ============================================================
 * Conversation-Screen
 * ============================================================ */
.gera-conv {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	background: var(--paper);
}

.gera-conv-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--line);
	background: white;
	flex-shrink: 0;
}

.gera-conv-back {
	background: transparent;
	border: none;
	color: var(--ink-900);
	cursor: pointer;
	padding: 6px 8px;
	border-radius: 6px;
	display: grid; place-items: center;
}
.gera-conv-back:hover, .gera-conv-back:focus-visible {
	background: var(--paper-2);
	outline: 2px solid var(--gera-primary);
	outline-offset: 2px;
}
.gera-conv-back svg { width: 22px; height: 22px; stroke: var(--ink-900); fill: none; stroke-width: 2; }

.gera-conv-avatar {
	width: 36px; height: 36px;
	border-radius: 50%;
	border: 1.5px solid white;
	box-shadow: 0 0 0 1px var(--line);
	object-fit: cover;
	flex-shrink: 0;
}

.gera-conv-meta {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.gera-conv-name {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gera-conv-status {
	display: flex; align-items: center; gap: 6px;
	font-size: 14px;
	color: var(--ink-500);
	margin-top: 2px;
}

.gera-conv-status::before {
	content: '';
	width: 7px; height: 7px;
	background: var(--success);
	border-radius: 50%;
}

/* HR in Bot-Bubble (Markdown-Trenner) */
.gera-msg-bubble hr {
	border: none;
	border-top: 1px solid var(--line);
	margin: 14px 0;
}

.gera-conv-stream {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.gera-msg-row {
	display: flex;
	gap: 10px;
	max-width: 100%;
}

.gera-msg-row--user { justify-content: flex-end; }

.gera-msg-row-avatar {
	width: 32px; height: 32px;
	border-radius: 50%;
	border: 1.5px solid white;
	box-shadow: 0 0 0 1px var(--line);
	object-fit: cover;
	flex-shrink: 0;
}

.gera-msg-bubble {
	max-width: 85%;
	padding: 12px 16px;
	border-radius: 18px;
	font-size: 16px;
	line-height: 1.5;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}

.gera-msg-bubble--bot {
	background: white;
	border: 1px solid var(--line);
	color: var(--ink-900);
	border-top-left-radius: 6px;
}

.gera-msg-bubble--user {
	background: var(--gera-primary);
	color: white;
	border-top-right-radius: 6px;
}

.gera-msg-bubble a {
	color: var(--gera-primary);
	font-weight: 600;
}
.gera-msg-bubble--user a { color: white; text-decoration: underline; }

.gera-msg-time {
	font-size: 14px;
	font-weight: 600;
	color: var(--ink-500);
	margin-top: 4px;
}

.gera-cta {
	display: block;
	width: fit-content;
	margin-top: 16px;
	padding: 10px 16px;
	background: var(--gera-primary);
	color: white !important;
	text-decoration: none;
	border-radius: var(--radius-md);
	font-weight: 600;
}

.gera-cta:hover, .gera-cta:focus-visible {
	background: var(--gera-primary-700);
	outline: none;
}

/* Text-Segmente innerhalb einer Bot-Antwort */
.gera-msg-text + .gera-offer,
.gera-offer + .gera-msg-text,
.gera-offer + .gera-offer { margin-top: 12px; }

/* Angebots-Karte (aus [[gera-card]]-Block) */
.gera-offer {
	background: white;
	border: 1px solid var(--line);
	border-left: 4px solid var(--gera-primary);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	padding: 12px 14px;
	margin: 10px 0;
}

.gera-offer-name {
	font-size: 17px;
	font-weight: 600;
	color: var(--ink-900);
	margin-bottom: 4px;
	line-height: 1.3;
}

.gera-offer-desc {
	font-size: 15px;
	line-height: 1.5;
	color: var(--ink-500);
	margin: 0 0 10px;
}

.gera-offer-contact {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.gera-offer-line {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 15px;
	line-height: 1.4;
	color: var(--ink-700);
}

.gera-offer-ic {
	flex-shrink: 0;
	color: var(--gera-primary);
	line-height: 0;
	margin-top: 1px;
}

.gera-offer-ic svg { width: 18px; height: 18px; }

.gera-offer-line a {
	color: var(--gera-primary);
	font-weight: 600;
	word-break: break-word;
}

/* Übersicht (Liste der empfohlenen Angebote) */
.gera-sources {
	margin: 12px 0 0;
	padding: 10px 14px;
	background: var(--gera-primary-50);
	border-radius: var(--radius-sm);
}

.gera-sources-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--gera-primary-700);
	margin-bottom: 6px;
}

.gera-sources-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-size: 15px;
}

.gera-sources-list li { margin: 0; }

.gera-sources-list a {
	color: var(--gera-primary);
	font-weight: 600;
}

/* Typing indicator */
@keyframes gera-typing-bounce {
	0%, 60%, 100% { transform: translateY(0); opacity: .5; }
	30%           { transform: translateY(-6px); opacity: 1; }
}

.gera-typing {
	display: flex; gap: 4px; padding: 4px 0;
}

.gera-typing span {
	width: 8px; height: 8px;
	background: var(--ink-500);
	border-radius: 50%;
	animation: gera-typing-bounce 1.4s infinite;
}
.gera-typing span:nth-child(2) { animation-delay: .15s; }
.gera-typing span:nth-child(3) { animation-delay: .3s; }

/* Stichwörter-Akkordeon (am Ende des Streams) */
.gera-stich {
	flex-shrink: 0;
	border-top: 1px solid var(--line);
	background: var(--paper);
}

.gera-stich-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px 6px;
}

.gera-stich-title {
	font-size: 17px;
	font-weight: 600;
	color: var(--ink-900);
}

.gera-stich-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 8px;
	background: transparent;
	border: none;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	color: var(--gera-primary);
	cursor: pointer;
	flex-shrink: 0;
	white-space: nowrap;
}

.gera-stich-toggle:hover, .gera-stich-toggle:focus-visible {
	text-decoration: underline;
	outline: none;
}

.gera-stich-chevron {
	transition: transform .2s;
	font-size: 18px;
	color: var(--gera-primary);
}

.gera-stich.is-open .gera-stich-chevron { transform: rotate(180deg); }

.gera-stich-body.is-hidden { display: none; }

.gera-stich-help {
	padding: 0 18px 10px;
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--ink-700);
}

.gera-stich-track {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 0 18px 14px;
}

.gera-stich-chip {
	flex-shrink: 0;
	background: white;
	border: 1.5px solid var(--gera-primary);
	color: var(--gera-primary);
	border-radius: 999px;
	padding: 9px 16px;
	font-size: 15px;
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
	white-space: nowrap;
	transition: background .12s, color .12s;
}

.gera-stich-chip:hover {
	background: var(--gera-primary-50);
}

.gera-stich-chip:focus-visible {
	background: var(--gera-primary);
	color: white;
	outline: 2px solid var(--gera-primary);
	outline-offset: 2px;
}

/* Conversation Input */
.gera-conv-input {
	flex-shrink: 0;
	padding: 14px 18px;
	border-top: 1px solid var(--line);
	background: white;
}

.gera-conv-form {
	display: flex; gap: 8px;
	align-items: flex-end;
}

.gera-conv-textarea {
	flex: 1;
	border: 1.5px solid var(--line);
	border-radius: var(--radius-md);
	padding: 11px 14px;
	font-family: inherit;
	font-size: 16px;
	color: var(--ink-900);
	background: var(--paper);
	resize: none;
	max-height: 120px;
	min-height: 44px;
}

.gera-conv-textarea:focus {
	outline: 3px solid var(--gera-primary-50);
	outline-offset: 0;
	border-color: var(--gera-primary);
}

.gera-conv-send {
	width: 44px; height: 44px;
	border: none;
	border-radius: var(--radius-md);
	background: var(--gera-primary);
	color: white;
	cursor: pointer;
	display: grid; place-items: center;
	flex-shrink: 0;
}

.gera-conv-send:hover:not(:disabled),
.gera-conv-send:focus-visible {
	background: var(--gera-primary-700);
	outline: 3px solid var(--gera-primary);
	outline-offset: 2px;
}

.gera-conv-send:disabled {
	background: var(--ink-300);
	cursor: not-allowed;
}

.gera-conv-disclaimer {
	font-size: 14px;
	color: var(--ink-500);
	margin-top: 8px;
	line-height: 1.4;
}

/* "powered by" Footer-Credits — am Modal-Boden */
.gera-credits {
	flex-shrink: 0;
	padding: 10px 18px 14px;
	background: var(--paper);
	font-size: 14px;
	color: var(--ink-500);
	text-align: center;
	border-top: 1px solid var(--line);
}

.gera-credits a {
	color: var(--ink-500);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.gera-credits a:hover,
.gera-credits a:focus-visible {
	color: var(--gera-primary);
	outline: none;
}

/* ============================================================
 * Reduced Motion
 * ============================================================ */
@media (prefers-reduced-motion: reduce) {
	.gera-fab,
	.gera-v1-halo,
	.gera-v1-avatar,
	.gera-typing span {
		animation: none !important;
	}
	.gera-overlay,
	.gera-modal { animation: none !important; }
}
