.pdl__file-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5em;
}

.pdl__file-list--buttons {
	flex-direction: row;
	flex-wrap: wrap;
}

.pdl__file-item {
	padding: 0.25em 0;
}

.pdl__file-list--buttons .pdl__file-item {
	padding: 0;
}

.pdl__file-link {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	color: inherit;
}

.pdl__file-body {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75em;
	flex: 1;
	min-width: 0;
}

.pdl__file-list--buttons .pdl__file-link {
	padding: 0.6em 1.1em;
	border-radius: 4px;
	background: currentColor;
}

.pdl__file-list--buttons .pdl__file-link .pdl__file-title,
.pdl__file-list--buttons .pdl__file-link .pdl__file-meta {
	color: #fff;
	mix-blend-mode: difference;
}

.pdl__file-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 1;
}

.pdl__file-icon i,
.pdl__file-icon svg {
	font-size: 1rem;
	width: 1rem;
	height: 1rem;
}

.pdl__file-title {
	font-weight: 600;
}

.pdl__file-meta {
	font-size: 0.85em;
	opacity: 0.7;
	white-space: nowrap;
}

.pdl__empty {
	opacity: 0.6;
	font-style: italic;
}

.pdl__image-wrap {
	overflow: hidden;
}

.pdl__image {
	display: block;
	width: 100%;
	height: auto;
}

.pdl__login-form {
	display: flex;
	flex-direction: column;
}

.pdl__login-heading {
	margin: 0 0 1rem;
}

.pdl__logged-out-notice {
	background: #edf7ed;
	border-left: 4px solid #46b450;
	color: #1d2327;
	padding: 0.75em 1em;
	margin: 0 0 1rem;
	font-size: 0.9em;
}

.pdl__login-error {
	background: #fcf0f1;
	border-left: 4px solid #d63638;
	color: #d63638;
	padding: 0.75em 1em;
	margin: 0 0 1rem;
	font-size: 0.9em;
}

.pdl__login-error[hidden] {
	display: none;
}

.pdl__login-form form {
	display: flex;
	flex-direction: column;
	gap: 0.75em;
	max-width: 320px;
}

.pdl__login-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.25em;
}

.pdl__login-form input[type="text"],
.pdl__login-form input[type="password"],
.pdl__login-form input[type="email"] {
	width: 100%;
	padding: 0.6em 0.8em;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.pdl__login-form p.login-remember {
	font-weight: 400;
	display: flex;
	align-items: center;
	gap: 0.4em;
}

/* Der Login-Button wird seit 2.2.0 als echtes Elementor-Button-Markup
   gerendert (.elementor-button-wrapper > button.elementor-button …) und
   von Elementors zentral hinterlegtem Theme Style gestylt – hier ist
   bewusst kein eigenes Styling mehr nötig. */

.pdl__denied {
	opacity: 0.8;
	font-style: italic;
}

.pdl__loop-grid {
	display: grid;
	grid-template-columns: repeat(var(--pdl-columns, 3), 1fr);
	column-gap: var(--pdl-column-gap, 24px);
	row-gap: var(--pdl-row-gap, 24px);
	align-items: stretch;
}

/* Sorgt dafür, dass jedes Loop-Item die volle Zeilenhöhe einnimmt UND
   diese Höhe verlässlich an sein direktes Kind (den Elementor-Container
   aus dem Loop-Item-Template) weitergibt – über Flexbox statt
   Prozent-Höhen, da Letztere nur funktionieren, wenn WIRKLICH jeder
   Vorfahre in der Kette eine explizite Höhe hat. So kann im Template z. B.
   der Download-Bereich per "justify-content: flex-end" zuverlässig unten
   ausgerichtet werden, egal wie mehrzeilig der Titel ist oder wie viele
   Dateien der Eintrag hat. */
.pdl__loop-item {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.pdl__loop-item > * {
	flex: 1 1 auto;
	width: 100%;
}

.pdl__account-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	margin-bottom: 1.25em;
}

.pdl__tag-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.pdl__tag-filter-btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	border: 1px solid #ccc;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	padding: 0.5rem 1rem;
	font: inherit;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pdl__tag-filter-btn.is-active {
	background: #1d2327;
	border-color: #1d2327;
	color: #fff;
}

.pdl__tag-filter-deselect {
	display: none;
	align-items: center;
	line-height: 1;
}

.pdl__tag-filter-btn.is-active .pdl__tag-filter-deselect {
	display: inline-flex;
}

.pdl__tag-filter-deselect i,
.pdl__tag-filter-deselect svg {
	font-size: 0.75rem;
	width: 0.75rem;
	height: 0.75rem;
}

/* Auf schmalen Bildschirmen horizontal scrollbar statt umbrechend – wie
   bei der mobilen Shop-Kategorie-Navigation aus "amm - WooCommerce
   Addons". */
@media (max-width: 767px) {
	.pdl__tag-filter {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 2px;
	}

	.pdl__tag-filter::-webkit-scrollbar {
		display: none;
	}
}

.pdl__logout-link {
	text-decoration: underline;
}
