/*
 * Downloads widget — replaces the old Downloads page (plain PDF link + embedded
 * ISSUU.com viewer for the Infofolder, plus a separate Anfragen/Antworten PDF-pair
 * list) with one card grid. Same card/pill-button language as the Partner &
 * Unterstützer widget (ac-partners.css) for visual consistency across the plugin.
 */

.ac-dl {
	font-family: 'Amiko', sans-serif;
}

.ac-dl-intro {
	margin-bottom: 35px;
}

.ac-dl-heading {
	margin: 0 0 10px;
}

.ac-dl-intro-text {
	font-size: 1.05rem;
	color: #555;
	margin: 0;
	max-width: 700px;
}

.ac-dl-grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 25px;
}

.ac-dl-card {
	display: flex;
	flex-direction: column;
	background-color: #fff;
	border: 1px solid #eee;
	border-radius: 10px;
	box-shadow: 0 4px 15px rgba( 0, 0, 0, 0.04 );
	overflow: hidden;
	transition: transform 0.3s, box-shadow 0.3s;
}

.ac-dl-card:hover {
	transform: translateY( -4px );
	box-shadow: 0 10px 25px rgba( 0, 0, 0, 0.08 );
}

.ac-dl-cover {
	width: 100%;
	aspect-ratio: 4 / 3;
	background-color: #f7f9fc;
	overflow: hidden;
}

.ac-dl-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ac-dl-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 22px;
}

.ac-dl-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 1.1rem;
	font-weight: 700;
	color: #111;
	margin: 0;
}

.ac-dl-description {
	font-size: 0.95rem;
	color: #555;
	line-height: 1.5;
	margin: 0;
}

.ac-dl-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 6px;
	width: 100%;
}

.ac-dl-btn,
.ac-dl-btn:link,
.ac-dl-btn:visited {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 50px;
	border: none;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 0.85rem;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.25s, color 0.25s, transform 0.25s;
}

.ac-dl-btn-primary,
.ac-dl-btn-primary:link,
.ac-dl-btn-primary:visited {
	background-color: var( --ac-accent, #2e6741 ) !important;
	color: #fff !important;
	border: 2px solid var( --ac-accent, #2e6741 ) !important;
}

.ac-dl-btn-primary:hover,
.ac-dl-btn-primary:focus {
	background-color: var( --ac-accent, #2e6741 ) !important;
	color: #fff !important;
	transform: translateY( -2px );
}

.ac-dl-btn-secondary,
.ac-dl-btn-secondary:link,
.ac-dl-btn-secondary:visited {
	background-color: transparent !important;
	color: var( --ac-accent, #2e6741 ) !important;
	border: 2px solid var( --ac-accent, #2e6741 ) !important;
}

.ac-dl-btn-secondary:hover,
.ac-dl-btn-secondary:focus {
	background-color: var( --ac-accent, #2e6741 ) !important;
	color: #fff !important;
}

/*
 * .ac-dl-btn-icon wraps the Elementor ICONS control output (Icons_Manager can render
 * either a font-icon <i> sized via font-size, or an inline <svg> which does NOT
 * follow font-size on its own) — sizing the wrapper's font-size (Style control
 * "Button-Icon-Größe") drives both render modes consistently, same fix as everywhere
 * else in this plugin (see ac-start-hero.css/ac-pressespiegel.css).
 */
.ac-dl-btn-icon {
	display: inline-flex;
	line-height: 1;
	flex-shrink: 0;
	color: inherit;
}

.ac-dl-btn-icon svg {
	width: 1em !important;
	height: 1em !important;
	fill: currentColor !important;
}

@media ( max-width: 560px ) {
	.ac-dl-heading {
		font-size: 1.35rem;
	}

	.ac-dl-btn {
		flex: 1 1 auto;
		justify-content: center;
	}
}
