/* Impressed Academy – Liste der Webinar-Aufzeichnungen */

.impressed-g2w {
	--g2w-linie: #e3e3e0;
	--g2w-text: inherit;
	--g2w-meta: #4a4a48;
	--g2w-rahmen: #d8d8d4;
	--g2w-bild: 9.5rem;

	/* An die Buttons der Website angeglichen – hier zentral überschreibbar. */
	--g2w-button-bg: #e40039;
	--g2w-button-bg-hover: #c2002f;
	--g2w-button-text: #fff;
	--g2w-button-radius: 4px;
	--g2w-button-padding: 10px 16px;
}

.impressed-g2w__liste {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--g2w-linie);
}

.impressed-g2w__item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	gap: 1.5rem;
	align-items: center;
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--g2w-linie);
	margin: 0;
}

.impressed-g2w__inhalt {
	min-width: 0;
}

.impressed-g2w__titel {
	margin: 0 0 0.25em;
	font-size: 1rem;
	line-height: 1.35;
	font-weight: 700;
}

.impressed-g2w__titel a {
	color: inherit;
	text-decoration: none;
}

.impressed-g2w__titel a:hover,
.impressed-g2w__titel a:focus-visible {
	text-decoration: underline;
}

.impressed-g2w__text {
	margin: 0;
	line-height: 1.5;
	color: var(--g2w-text);
}

.impressed-g2w__meta {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	color: var(--g2w-meta);
	font-size: 0.95rem;
	white-space: nowrap;
}

.impressed-g2w__zeile {
	font-size: 0.9em;
}

.impressed-g2w__zeile--haupt {
	font-size: 1em;
	font-weight: 600;
	color: inherit;
}

.impressed-g2w__button {
	display: inline-block;
	padding: var(--g2w-button-padding);
	border: 0;
	border-radius: var(--g2w-button-radius);
	background-color: var(--g2w-button-bg);
	color: var(--g2w-button-text);
	text-decoration: none;
	font-size: 1rem;
	line-height: 1.25;
	white-space: nowrap;
	text-align: center;
	transition: background-color 0.15s ease;
}

.impressed-g2w__button:hover,
.impressed-g2w__button:focus-visible {
	background-color: var(--g2w-button-bg-hover);
	color: var(--g2w-button-text);
	text-decoration: none;
}

.impressed-g2w__button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Vorschaubilder */

.impressed-g2w--mit-bild .impressed-g2w__item {
	grid-template-columns: var(--g2w-bild) minmax(0, 1fr) auto auto;
}

.impressed-g2w__bild a {
	display: block;
	line-height: 0;
}

.impressed-g2w__bild img,
.impressed-g2w__platzhalter {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 0.375rem;
	background-color: rgba(0, 0, 0, 0.06);
}

/* Schaltfläche „Mehr anzeigen" */

.impressed-g2w__mehr-bereich {
	display: flex;
	justify-content: center;
	padding: 1.75rem 0 0;
}

.impressed-g2w__mehr {
	display: inline-block;
	padding: var(--g2w-button-padding);
	border: 1px solid var(--g2w-button-bg);
	border-radius: var(--g2w-button-radius);
	background: transparent;
	color: var(--g2w-button-bg);
	font-size: 1rem;
	line-height: 1.25;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.impressed-g2w__mehr:hover,
.impressed-g2w__mehr:focus-visible {
	background-color: var(--g2w-button-bg);
	color: var(--g2w-button-text);
	text-decoration: none;
}

.impressed-g2w__mehr[aria-busy="true"] {
	opacity: 0.6;
	pointer-events: none;
}

.impressed-g2w__status {
	margin: 0;
	padding: 0.75rem 0 0;
	text-align: center;
	font-size: 0.9rem;
	color: var(--g2w-meta);
}

.impressed-g2w__status:empty {
	padding: 0;
}

/* Schmale Viewports: Meta und Schaltfläche unter den Text */

@media (max-width: 782px) {
	.impressed-g2w__item {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"inhalt"
			"meta"
			"aktion";
		gap: 0.6rem;
	}

	.impressed-g2w--mit-bild .impressed-g2w__item {
		grid-template-columns: 6rem minmax(0, 1fr);
		grid-template-areas:
			"bild   inhalt"
			"meta   meta"
			"aktion aktion";
		gap: 0.6rem 1rem;
	}

	.impressed-g2w__bild   { grid-area: bild; align-self: start; }
	.impressed-g2w__inhalt { grid-area: inhalt; }

	.impressed-g2w__meta {
		grid-area: meta;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 0.15rem 0.6rem;
		white-space: normal;
	}

	.impressed-g2w__aktion { grid-area: aktion; }

	/* Volle Breite: verlässliches Tippziel statt gequetschter Schaltfläche. */
	.impressed-g2w__button,
	.impressed-g2w__mehr {
		display: block;
		width: 100%;
		padding: 12px 16px;
		text-align: center;
	}

	.impressed-g2w__mehr-bereich {
		padding-top: 1.25rem;
	}
}
