/*
 * Metal Diver – Sponsoren
 * Schriften, Schriftgrößen und Textfarben kommen vom Theme. Hier stehen nur Aufbau,
 * Abstände und die Akzentfarbe (einstellbar unter Sponsoren → Einstellungen).
 * Flächen und Linien sind halbtransparent und passen sich hellen wie dunklen Seiten an.
 */

.mdfs {
	--mdfs-accent: #C8102E;
	--mdfs-on-accent: #fff;
	--mdfs-tint: rgba(128, 128, 128, 0.10);
	--mdfs-line: rgba(128, 128, 128, 0.30);
	--mdfs-gap: clamp(24px, 4vw, 64px);
	box-sizing: border-box;
}

.mdfs *,
.mdfs *::before,
.mdfs *::after {
	box-sizing: inherit;
}

.mdfs img {
	display: block;
	max-width: 100%;
	height: auto;
}

.mdfs a:focus-visible,
.mdfs button:focus-visible {
	outline: 3px solid var(--mdfs-accent);
	outline-offset: 3px;
}

/* ---------- Kleinteile ---------- */

.mdfs .mdfs-eyebrow {
	margin: 0 0 0.6em;
	color: var(--mdfs-accent);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.mdfs .mdfs-rule {
	display: block;
	width: 80px;
	height: 4px;
	margin: 1.1em 0 1.3em;
	background: var(--mdfs-accent);
}

.mdfs .mdfs-lead {
	margin: 0 0 1.4em;
	font-size: 1.125em;
	line-height: 1.6;
}

.mdfs .mdfs-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 28px;
	margin: 0;
}

.mdfs a.mdfs-btn {
	display: inline-block;
	padding: 0.95em 1.9em;
	border: 2px solid var(--mdfs-accent);
	background: var(--mdfs-accent);
	color: var(--mdfs-on-accent);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.1em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.2s, color 0.2s;
}

.mdfs a.mdfs-btn:hover,
.mdfs a.mdfs-btn:focus-visible {
	background: transparent;
	color: var(--mdfs-accent);
}

.mdfs a.mdfs-more {
	padding-bottom: 3px;
	border-bottom: 2px solid var(--mdfs-accent);
	color: inherit;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.2s;
}

.mdfs a.mdfs-more:hover {
	color: var(--mdfs-accent);
}

.mdfs .mdfs-empty {
	margin: 0;
	padding: 16px 20px;
	border: 1px dashed var(--mdfs-line);
}

/* ---------- Bildflächen ---------- */

.mdfs .mdfs-visual {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.mdfs .mdfs-visual--photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mdfs .mdfs-visual--logo,
.mdfs .mdfs-visual--initials {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(20px, 4vw, 48px);
	background: var(--mdfs-tint);
}

.mdfs .mdfs-visual--white,
.mdfs .mdfs-facts__logo.mdfs-visual--white {
	background: #fff;
}

.mdfs .mdfs-visual--logo img {
	width: auto;
	max-height: 100%;
	object-fit: contain;
}

.mdfs .mdfs-visual--initials {
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 800;
	letter-spacing: 0.06em;
	opacity: 0.75;
}

/* ---------- Übersicht: große Zeilen ---------- */

.mdfs .mdfs-rows {
	display: grid;
	gap: clamp(40px, 6vw, 88px);
}

.mdfs .mdfs-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--mdfs-gap);
	align-items: center;
	margin: 0;
}

.mdfs .mdfs-row:nth-child(even) .mdfs-row__media {
	order: 2;
}

.mdfs .mdfs-row__media {
	display: block;
}

.mdfs .mdfs-row__title,
.mdfs .mdfs-hero__title {
	margin: 0;
}

.mdfs .mdfs-row__title a {
	color: inherit;
	text-decoration: none;
}

.mdfs .mdfs-groupheading {
	margin: clamp(56px, 8vw, 104px) 0 clamp(24px, 3vw, 40px);
	text-align: center;
}

.mdfs .mdfs-groupheading::after {
	content: "";
	display: block;
	width: 80px;
	height: 4px;
	margin: 0.6em auto 0;
	background: var(--mdfs-accent);
}

/* ---------- Übersicht: Karten ---------- */

.mdfs ul.mdfs-grid {
	display: grid;
	grid-template-columns: repeat(var(--mdfs-cols, 3), minmax(0, 1fr));
	gap: clamp(16px, 2.4vw, 32px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.mdfs ul.mdfs-grid > li.mdfs-card {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	border: 1px solid var(--mdfs-line);
	background: var(--mdfs-tint);
	list-style: none;
	transition: border-color 0.2s, transform 0.2s;
}

.mdfs ul.mdfs-grid > li.mdfs-card::before {
	content: none;
}

.mdfs ul.mdfs-grid > li.mdfs-card:hover {
	border-color: var(--mdfs-accent);
	transform: translateY(-3px);
}

.mdfs .mdfs-card__media {
	display: block;
}

.mdfs .mdfs-card__media .mdfs-visual {
	aspect-ratio: 16 / 10;
}

.mdfs .mdfs-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: clamp(18px, 2vw, 28px);
}

.mdfs .mdfs-card__title {
	margin: 0 0 0.5em;
}

.mdfs .mdfs-card__title a {
	color: inherit;
	text-decoration: none;
}

/* Die ganze Karte ist klickbar. */
.mdfs .mdfs-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.mdfs .mdfs-card__text {
	margin: 0 0 1.3em;
	opacity: 0.85;
}

.mdfs .mdfs-card .mdfs-more {
	margin-top: auto;
}

/* ---------- Einzelner Sponsor ---------- */

.mdfs.mdfs-single {
	max-width: 1220px;
	margin: 0 auto;
	padding: clamp(32px, 6vw, 80px) 20px;
}

.mdfs .mdfs-profile {
	margin: 0;
}

.mdfs .mdfs-back {
	margin: 0 0 clamp(20px, 3vw, 36px);
}

.mdfs .mdfs-back a {
	color: inherit;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
	opacity: 0.8;
}

.mdfs .mdfs-back a:hover {
	color: var(--mdfs-accent);
	opacity: 1;
}

.mdfs .mdfs-hero {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--mdfs-gap);
	align-items: center;
}

.mdfs .mdfs-hero--single,
.mdfs .mdfs-body--single {
	grid-template-columns: minmax(0, 1fr);
}

.mdfs .mdfs-body {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
	gap: var(--mdfs-gap);
	align-items: start;
	margin-top: clamp(40px, 6vw, 80px);
	padding-top: clamp(40px, 6vw, 80px);
	border-top: 1px solid var(--mdfs-line);
}

.mdfs .mdfs-body.mdfs-body--single {
	grid-template-columns: minmax(0, 1fr);
}

.mdfs .mdfs-content > *:first-child {
	margin-top: 0;
}

.mdfs .mdfs-content > *:last-child {
	margin-bottom: 0;
}

.mdfs .mdfs-facts {
	padding: clamp(20px, 2.4vw, 32px);
	border-top: 4px solid var(--mdfs-accent);
	background: var(--mdfs-tint);
}

.mdfs .mdfs-facts__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 130px;
	margin: 0 0 24px;
	padding: 20px;
	background: var(--mdfs-tint);
}

.mdfs .mdfs-facts__logo img {
	width: auto;
	max-height: 110px;
	object-fit: contain;
}

.mdfs .mdfs-facts__title {
	margin: 0 0 0.4em;
	font-size: 1.125rem;
}

.mdfs .mdfs-facts__list {
	margin: 0;
}

.mdfs .mdfs-facts__list > div {
	padding: 0.75em 0;
	border-bottom: 1px solid var(--mdfs-line);
}

.mdfs .mdfs-facts__list > div:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.mdfs .mdfs-facts__list dt {
	margin: 0 0 0.15em;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	opacity: 0.65;
}

.mdfs .mdfs-facts__list dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.mdfs .mdfs-facts__social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em 1.4em;
	margin: 1.2em 0 0;
	font-weight: 700;
}

.mdfs .mdfs-videoblock {
	margin-top: clamp(40px, 6vw, 80px);
}

.mdfs .mdfs-videoblock__title {
	margin: 0 0 0.9em;
}

.mdfs .mdfs-video {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #000;
}

.mdfs .mdfs-video iframe,
.mdfs .mdfs-video video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.mdfs .mdfs-video__play {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #111;
	color: #fff;
	font: inherit;
	cursor: pointer;
}

.mdfs .mdfs-video__poster {
	position: absolute;
	inset: 0;
}

.mdfs .mdfs-video__poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.5;
}

.mdfs .mdfs-video__icon {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 92px;
	height: 92px;
	margin: -46px 0 0 -46px;
	border-radius: 50%;
	background: var(--mdfs-accent);
	transition: transform 0.2s;
}

.mdfs .mdfs-video__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-35%, -50%);
	border-style: solid;
	border-width: 16px 0 16px 26px;
	border-color: transparent transparent transparent #fff;
}

.mdfs .mdfs-video__play:hover .mdfs-video__icon {
	transform: scale(1.08);
}

.mdfs .mdfs-video__note {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 12px 16px;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	font-size: 0.8125rem;
	line-height: 1.4;
	text-align: center;
}

/* ---------- Aufruf ---------- */

.mdfs .mdfs-cta {
	margin-top: clamp(48px, 7vw, 96px);
	padding: clamp(36px, 6vw, 72px) clamp(20px, 4vw, 48px);
	background: var(--mdfs-tint);
	text-align: center;
}

.mdfs .mdfs-cta__title {
	margin: 0 0 0.5em;
}

.mdfs .mdfs-cta__text {
	max-width: 42em;
	margin: 0 auto 1.6em;
}

.mdfs .mdfs-cta .mdfs-actions {
	justify-content: center;
}

/* ---------- Kleinere Bildschirme ---------- */

@media (max-width: 1024px) {
	.mdfs ul.mdfs-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	.mdfs .mdfs-row,
	.mdfs .mdfs-hero,
	.mdfs .mdfs-body {
		grid-template-columns: minmax(0, 1fr);
	}

	.mdfs .mdfs-row:nth-child(even) .mdfs-row__media {
		order: 0;
	}

	/* Bild vor dem Text, wie auf der Übersicht. */
	.mdfs .mdfs-hero__media {
		order: -1;
	}
}

@media (max-width: 560px) {
	.mdfs ul.mdfs-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.mdfs .mdfs-video__icon {
		width: 64px;
		height: 64px;
		margin: -42px 0 0 -32px;
	}

	.mdfs .mdfs-video__icon::after {
		border-width: 11px 0 11px 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mdfs *,
	.mdfs *::before,
	.mdfs *::after {
		transition: none !important;
	}
}
