/* ==========================================================================
   EPOS Downloads – Kartendarstellung im Download-Bereich (Plugin 1.3.0)

   Eine Karte je Download: Titel, Kurzbeschreibung, „Download-Information“
   als Aufzählung, optionale Links, ausklappbare Beschreibung, Download-Knopf.
   Bewusst eigene Klassennamen (Präfix eposdl-), damit nichts aus dem Theme
   oder aus WPDM überschrieben wird und umgekehrt.
   ========================================================================== */

.eposdl-karten {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
	gap: 2.5rem 2rem;
	margin: 1.5rem 0 3rem;
	align-items: start;
}

.eposdl-karte {
	display: flex;
	flex-direction: column;
	gap: .75rem;
	padding: 0;
	background: none;
	border: 0;
	max-width: 34rem;
}

/* Überschrift der Karte – kleiner als die Kategorieüberschrift (h3),
   damit die Reihenfolge Rubrik › Kategorie › Paket sichtbar bleibt. */
.eposdl-karte-titel {
	font-size: 20px !important;
	line-height: 1.3;
	font-weight: 700 !important;
	margin: 0 !important;
	padding: 0;
	hyphens: auto;
	overflow-wrap: anywhere;
}

.eposdl-karte-kurz {
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
}

.eposdl-karte-infotitel {
	margin: .25rem 0 0;
	font-size: 15px;
	font-weight: 700;
}

.eposdl-karte-punkte {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
	line-height: 1.55;
}

.eposdl-karte-punkte li {
	margin: 0 0 .15rem;
	padding-left: 1em;
	text-indent: -1em;
}

.eposdl-karte-punkte li::before {
	content: "\2022";
	margin-right: .5em;
}

.eposdl-karte-links {
	margin: .25rem 0 0;
	font-size: 15px;
}

.eposdl-karte-links a {
	text-decoration: underline;
}

.eposdl-trenner {
	margin: 0 .35em;
	opacity: .6;
}

/* Ausklappbare Beschreibung – ohne JavaScript, natives <details>. */
.eposdl-karte-mehr {
	font-size: 15px;
	border-top: 1px solid rgba(0, 0, 0, .1);
	padding-top: .6rem;
}

.eposdl-karte-mehr > summary {
	cursor: pointer;
	list-style: none;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: .4em;
}

.eposdl-karte-mehr > summary::-webkit-details-marker {
	display: none;
}

.eposdl-karte-mehr > summary::before {
	content: "\25B8";
	display: inline-block;
	transition: transform .15s ease;
}

.eposdl-karte-mehr[open] > summary::before {
	transform: rotate(90deg);
}

.eposdl-karte-mehr-inhalt {
	margin-top: .6rem;
	line-height: 1.6;
}

.eposdl-karte-mehr-inhalt p,
.eposdl-karte-mehr-inhalt ul,
.eposdl-karte-mehr-inhalt ol {
	margin: 0 0 .7rem;
}

.eposdl-karte-mehr-inhalt li {
	margin-bottom: .25rem;
}

.eposdl-karte-aktion {
	margin: .6rem 0 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem;
}

/* Download-Knopf: heller Umriss-Knopf wie im Vorbild. */
.eposdl-karte .eposdl-btn,
.eposdl-karte .eposdl-btn:visited {
	display: inline-block;
	padding: .7em 2.2em;
	border: 2px solid currentColor;
	border-radius: 2em;
	background: none;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}

.eposdl-karte .eposdl-btn:hover,
.eposdl-karte .eposdl-btn:focus {
	background: currentColor;
	text-decoration: none;
}

.eposdl-karte .eposdl-btn:hover span,
.eposdl-karte .eposdl-btn:focus span {
	color: #fff;
}

/* Farbumkehr beim Überfahren ohne zusätzliche Auszeichnung im HTML */
.eposdl-karte .eposdl-btn:hover,
.eposdl-karte .eposdl-btn:focus {
	color: #fff;
	background: #1f2933;
	border-color: #1f2933;
}

.eposdl-karte .eposdl-btn-leise {
	font-weight: 500;
	opacity: .85;
}

.eposdl-gesperrt {
	font-size: 14px;
	line-height: 1.4;
	opacity: .8;
}

@media (max-width: 640px) {
	.eposdl-karten {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.eposdl-karte-titel {
		font-size: 19px !important;
	}
}
