/* ── Hilfe-Bot (Terminal-Stil) — cms.hilfe.eventnet.ch ──────────────
   Eigenstaendige Zusatzdatei, ueber das Layout eingebunden.
   Farben in rgb() (Projektkonvention). Liegt im rechten dunklen
   Navigations-Panel (div.navigation).
------------------------------------------------------------------- */

/* Bot-Leiste standardmaessig aus. Erst wenn bot.js auf einem freigegebenen
   Host laeuft (body.bot-enabled), wird sie sichtbar -> auf hilfe.*/crm.*
   erscheint nichts. */
.botbar { display: none; }

/* Toggle weiter nach oben: Panel-Polster oben reduzieren (nur auf cms-Host). */
.bot-enabled div.navigation { padding-top: 26px; }

.bot-enabled .botbar {
	display: flex;
	gap: 6px;
	/* bleibt beim Scrollen oben stehen, wenn der Inhalt zu lang wird */
	position: sticky;
	top: 0;
	z-index: 5;
	margin: 0 0 18px 0;
	padding: 8px 0 10px 0;
	background-color: rgb(49, 52, 52);
	border-bottom: 1px solid rgb(70, 74, 74);
}

.botbar-tab {
	flex: 1;
	font-family: 'ubuntuMono', 'Consolas', 'Courier New', monospace;
	font-size: 15px;
	font-weight: lighter;
	cursor: pointer;
	padding: 7px 10px;
	color: rgb(240, 240, 240);
	background-color: rgb(70, 74, 74);
	border: 1px solid rgb(95, 100, 100);
	border-radius: 8px;
}
.botbar-tab:hover { background-color: rgb(88, 92, 92); }
.botbar-tab.aktiv {
	color: rgb(255, 255, 255);
	background-color: rgb(25, 147, 198);
	border-color: rgb(20, 120, 165);
	font-weight: normal;
}

/* Terminal */
.botchat { display: none; }
.botterm {
	font-family: 'ubuntuMono', 'Consolas', 'Courier New', monospace;
	font-size: 16px;
	line-height: 1.6;
	color: rgb(255, 255, 255) !important;
	background-color: rgb(24, 26, 26) !important;
	border: 1px solid rgb(70, 74, 74);
	border-radius: 10px;
	padding: 12px;
}
.botlog {
	max-height: 62vh;
	overflow-y: auto;
	overflow-x: hidden;
	word-wrap: break-word;
	overflow-wrap: break-word;
}
.botline { margin: 0 0 12px 0; white-space: pre-wrap; color: rgb(255, 255, 255) !important; }
.botterm .botuser,
.botterm .botbot { color: rgb(255, 255, 255) !important; }
.botterm strong { color: rgb(255, 255, 255) !important; }
.botbot::before { content: "\203A  "; color: rgb(60, 180, 230) !important; }
.botdenken { color: rgb(180, 190, 190) !important; font-style: italic; }
.botdenken::before { content: ""; }
.botprompt { color: rgb(120, 180, 235) !important; font-weight: bold; }
.botlink { color: rgb(90, 195, 240) !important; text-decoration: underline; }
.botlink:hover { color: rgb(150, 215, 250) !important; }

.botinzeile {
	display: flex;
	align-items: center;
	gap: 6px;
	border-top: 1px solid rgb(70, 74, 74);
	margin-top: 8px;
	padding-top: 10px;
}
.botinzeile .botprompt { flex-shrink: 0; }
.botinput {
	flex: 1;
	min-width: 0;
	font-family: inherit;
	font-size: 16px;
	color: rgb(255, 255, 255) !important;
	background-color: transparent;
	border: none;
	outline: none;
	padding: 0;
}
.botinput::placeholder { color: rgb(140, 150, 150); }

