/*
 * YOOtheme bettet Komponenten-Ausgaben in main.uk-section > .uk-container ein. Die custom.css der Seite
 * setzt dessen Abstände auf 0, und UIkit nimmt verschachtelten Containern ihr Padding. Damit die eigenen
 * Sections wie die Builder-Sections sitzen: äußeren Container nicht begrenzen, eigenen Containern die
 * Abstände von .uk-container zurückgeben.
 */
.tm-main > .uk-container:has(> .com-fnetdownloadcenter) {
	max-width: none;
}

.com-fnetdownloadcenter > .uk-section > .uk-container {
	padding-left: 15px;
	padding-right: 15px;
}

@media (min-width: 640px) {
	.com-fnetdownloadcenter > .uk-section > .uk-container {
		padding-left: 30px;
		padding-right: 30px;
	}
}

@media (min-width: 960px) {
	.com-fnetdownloadcenter > .uk-section > .uk-container {
		padding-left: 40px;
		padding-right: 40px;
	}
}

/* Kacheln: CSS-Grid statt uk-grid, damit ausgefilterte Kacheln keine Lücken oder falschen Zeilenabstände hinterlassen. */
.fnet-dc-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}

.fnet-dc-tile {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.fnet-dc-tile .uk-card-body {
	flex: 1 1 auto;
}

.fnet-dc-title {
	hyphens: auto;
	word-break: break-word;
}

.fnet-dc-type {
	letter-spacing: 0.04em;
}

.fnet-dc-files {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
}

.fnet-dc-file {
	display: inline-flex;
	align-items: center;
}

/* Filter */
.fnet-dc-legend {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	font-size: 1rem;
}

.fnet-dc-option {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 3px 0 3px calc(var(--fnet-dc-level, 0) * 18px);
	cursor: pointer;
	line-height: 1.4;
}

.fnet-dc-option .uk-checkbox {
	flex: none;
	margin-top: 3px;
}

.fnet-dc-option-label {
	flex: 1 1 auto;
	hyphens: auto;
	word-break: break-word;
}

.fnet-dc-count {
	flex: none;
	font-size: 0.875em;
	color: #6a6c72;
}

.fnet-dc-option-empty {
	opacity: 0.45;
}

.fnet-dc-reset {
	margin-top: 5px;
}

@media (max-width: 959px) {
	.fnet-dc-filters {
		margin-top: 20px;
	}
}

/* Vorschaubild der Kachel (Broschüren, Datenblätter, Corporate Design). */
.fnet-dc-preview {
	height: var(--fnet-dc-preview-height, 180px);
	background: var(--fnet-dc-preview-bg, #f5f5f5);
	overflow: hidden;
}

/* Kacheln ohne Bild halten denselben Platz frei, damit die Titel nebeneinander auf einer Höhe stehen. */
.fnet-dc-preview-blank {
	background: none;
}

.fnet-dc-preview img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}
