/**
 * Vertragshilfe – Dokumentensuche (Styling)
 * Verhalten wie Rechtsfux, Optik im Vertragshilfe-Look.
 * Marke: Orange #EF7700 (Akzent), Violett #582488 (Text/Links).
 */

.vh-command-hero {
	--vh-accent: #ef7700;
	--vh-accent-dark: #d96a00;
	--vh-violet: #582488;
	--vh-ink: #2a2a2e;
	--vh-ink-soft: #6b6b73;
	--vh-line: #e4e0ea;
	--vh-surface: #ffffff;
	--vh-surface-2: #f7f5fb;
	background: linear-gradient(180deg, #faf8fd 0%, #f5f1fb 100%);
	border: 1px solid var(--vh-line);
	border-radius: 16px;
	padding: clamp(1.4rem, 1rem + 2vw, 2.4rem) clamp(1.2rem, .9rem + 2vw, 2.2rem);
	margin: 1.25rem 0 2.25rem;
}
.vh-command-hero__inner {
	width: 100%;
}
.vh-command-hero__eyebrow {
	margin: 0 0 .5rem;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--vh-accent);
}
.vh-command-hero__title {
	margin: 0 0 .5rem;
	color: var(--vh-violet);
	font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2rem);
	line-height: 1.15;
}
.vh-command-hero__intro {
	margin: 0 0 1.25rem;
	max-width: 60ch;
	color: var(--vh-ink-soft);
	font-size: clamp(.98rem, .95rem + .3vw, 1.1rem);
	line-height: 1.5;
}

/* --- Suchfeld --- */
.vh-command {
	position: relative;
	display: flex;
	align-items: center;
	gap: .5rem;
	background: var(--vh-surface);
	border: 2px solid var(--vh-line);
	border-radius: 14px;
	padding: .35rem .5rem .35rem .85rem;
	box-shadow: 0 12px 34px rgba(88, 36, 132, .08);
	transition: border-color .18s ease, box-shadow .18s ease;
}
.vh-command:focus-within {
	border-color: var(--vh-accent);
	box-shadow: 0 0 0 4px rgba(239, 119, 0, .15), 0 12px 34px rgba(88, 36, 132, .10);
}
.vh-command__ico {
	flex: none;
	display: inline-flex;
	color: var(--vh-accent);
}
.vh-command__ico svg { width: 22px; height: 22px; display: block; }
.vh-command input {
	flex: 1 1 auto;
	width: 100%;
	border: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
	font-size: clamp(1rem, .95rem + .4vw, 1.18rem);
	color: var(--vh-ink);
	padding: .7rem .3rem;
	margin: 0;
}
.vh-command input::placeholder { color: var(--vh-ink-soft); opacity: 1; }

/* --- Ergebnis-Dropdown --- */
.vh-command__results {
	position: absolute;
	top: calc(100% + .5rem);
	left: 0;
	right: 0;
	z-index: 40;
	background: var(--vh-surface);
	border: 1px solid var(--vh-line);
	border-radius: 12px;
	box-shadow: 0 18px 44px rgba(20, 20, 40, .16);
	padding: .4rem;
	max-height: 60vh;
	overflow: auto;
}
.vh-command-hero .vh-command__results a {
	display: flex;
	align-items: center;
	gap: .6rem;
	padding: .7rem .8rem;
	border-radius: 8px;
	color: var(--vh-ink) !important;
	text-decoration: none !important;
	line-height: 1.3;
}
.vh-command-hero .vh-command__results a:hover,
.vh-command-hero .vh-command__results a:hover .vh-res-label,
.vh-command-hero .vh-command__results a.is-active,
.vh-command-hero .vh-command__results a.is-active .vh-res-label {
	background: var(--vh-surface-2);
	color: var(--vh-accent-dark) !important;
}
.vh-command__results .vh-res-label { font-weight: 600; color: var(--vh-ink); }
.vh-command__results .vh-res-label mark {
	background: var(--vh-accent);
	color: #ffffff;
	border-radius: 3px;
	padding: 0 .12em;
}
.vh-command__results .vh-res-cat {
	margin-left: auto;
	padding-left: .8rem;
	font-size: .78rem;
	color: var(--vh-ink-soft) !important;
	flex: none;
	white-space: nowrap;
	font-weight: 500;
}
.vh-command__none {
	padding: .9rem .8rem;
	color: var(--vh-ink-soft);
	font-size: .92rem;
}

/* --- „Beliebt"-Chips --- */
.vh-command__hint {
	margin-top: 1rem;
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	align-items: center;
	color: var(--vh-ink-soft);
	font-size: .9rem;
}
.vh-chip {
	display: inline-flex;
	align-items: center;
	padding: .4rem .8rem;
	border-radius: 30px;
	border: 1px solid var(--vh-line);
	background: var(--vh-surface);
	color: var(--vh-violet);
	font-size: .86rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.vh-chip:hover {
	border-color: var(--vh-accent);
	color: var(--vh-accent-dark);
	background: rgba(239, 119, 0, .06);
}

/* --- Responsive --- */
@media (max-width: 600px) {
	.vh-command { border-radius: 12px; padding-left: .7rem; }
	.vh-command__ico svg { width: 20px; height: 20px; }
	.vh-command__results .vh-res-cat { display: none; }
}
