/* Modul „Vorlagen Startseite“ (vorlagen.bni.de) – nur Klassen .vs-…
   Markup: project/lib/BniVorlagenStart.php */

/* bni20.css: main ul li::before (roter Punkt) – hier nicht gewünscht */
.vs-grid > li::before,
.vs-results > li::before {
	content: none;
	display: none;
}

/* ---------- Kopfbereich ---------- */
.vs-hero {
	background: #f2f2f2;
	border-bottom: 3px solid #cf2030;
	padding: 1.25rem 0 1rem;
}
.vs-hero-inner {
	max-width: 820px;
}
.vs-title {
	font-size: 1.75rem;
	margin: 0 0 0.5rem;
}
.vs-intro {
	font-size: 1rem;
	line-height: 1.45;
	color: #000;
	margin: 0 0 0.9rem;
}

/* ---------- Suche ---------- */
.vs-search-label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.vs-search-field {
	position: relative;
}
.vs-search-field i {
	position: absolute;
	left: 0.85rem;
	top: 50%;
	transform: translateY(-50%);
	color: #64666a;
	pointer-events: none;
}
.vs-search-input {
	width: 100%;
	font-size: 1rem;
	padding: 0.55rem 0.9rem 0.55rem 2.4rem;
	border: 1px solid #c8c8c8;
	border-radius: 6px;
	background: #fff;
	color: #000;
}
.vs-search-input:focus {
	outline: none;
	border-color: #cf2030;
	box-shadow: 0 0 0 3px rgba(207, 32, 48, .2);
}
.vs-search-status {
	font-size: 0.8rem;
	color: #64666a;
	margin: 0.3rem 0 0;
}

.vs-results {
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0;
	background: #fff;
	border: 1px solid #c8c8c8;
	border-radius: 6px;
	max-height: 55vh;
	overflow-y: auto;
}
.vs-result {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.4rem 0.75rem;
}
.vs-result + .vs-result {
	border-top: 1px solid #f2f2f2;
}
.vs-result-ext {
	flex: 0 0 2.8rem;
	text-align: center;
	font-size: 0.65rem;
	font-weight: 700;
	color: #fff;
	background: #64666a;
	border-radius: 4px;
	padding: 0.2rem 0;
}
.vs-result-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.vs-result-title {
	font-weight: 700;
	color: #000;
	text-decoration: none;
	overflow-wrap: anywhere;
}
.vs-result-title:hover,
.vs-result-title:focus {
	color: #cf2030;
	text-decoration: underline;
}
.vs-result-meta {
	font-size: 0.75rem;
	color: #64666a;
}
.vs-result-meta a {
	color: #cf2030;
}

/* ---------- Bereiche ---------- */
.vs-section {
	padding: 1.25rem 0 0;
}
.vs-h2 {
	font-size: 1.35rem;
	margin: 0 0 0.75rem;
}
.vs-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr));
	gap: 0.6rem;
}
.vs-card {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
	min-width: 0;
	padding: 0.7rem 0.8rem;
	background: #fff;
	border: 1px solid #c8c8c8;
	border-radius: 6px;
	transition: border-color .15s, box-shadow .15s;
}
.vs-card:hover,
.vs-card:focus-within {
	border-color: #cf2030;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}
.vs-card-icon {
	flex: 0 0 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #cf2030;
	color: #fff;
	font-size: 0.95rem;
}
.vs-card-body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}
.vs-card-title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
	color: #000;
	text-decoration: none;
	/* nur trennen, wenn ein Wort gar nicht in die Zeile passt */
	overflow-wrap: break-word;
	hyphens: manual;
}
/* ganze Kachel klickbar */
.vs-card-title::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 6px;
}
.vs-card:hover .vs-card-title,
.vs-card-title:focus {
	color: #cf2030;
}
.vs-card-title:focus-visible {
	outline: none;
}
.vs-card:has(.vs-card-title:focus-visible) {
	outline: 2px solid #cf2030;
	outline-offset: 2px;
}
.vs-card-desc {
	font-size: 0.8rem;
	line-height: 1.35;
	color: #64666a;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.vs-card-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin-top: 0.15rem;
}
.vs-chip {
	position: relative;
	z-index: 1;
	font-size: 0.72rem;
	line-height: 1.2;
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	background: #f2f2f2;
	color: #64666a;
	text-decoration: none;
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.vs-chip:hover,
.vs-chip:focus {
	background: #cf2030;
	color: #fff;
	text-decoration: none;
}
.vs-chip--more {
	background: transparent;
	color: #cf2030;
	padding-left: 0.25rem;
	padding-right: 0.25rem;
}
.vs-chip--more:hover,
.vs-chip--more:focus {
	background: transparent;
	color: #cf2030;
	text-decoration: underline;
}
.vs-card-meta {
	font-size: 0.72rem;
	color: #64666a;
}
/* „Neu hinzugefügt“ (BniDownloads, Listenansicht) enger an die Bereiche */
.vs-section--neu .bni-dl {
	margin: 0.5rem 0 1rem;
}
.vs-section--neu .bni-dl-headline {
	font-size: 1.35rem;
	margin-bottom: 0.75rem;
}

@media (max-width: 575.98px) {
	.vs-hero {
		padding: 1rem 0 0.85rem;
	}
	.vs-title {
		font-size: 1.45rem;
	}
	.vs-intro {
		font-size: 0.95rem;
	}
}
