/* DWI Erfahrungsbericht
   Alles unterhalb von .dwi-eb gekapselt, damit nichts ins Theme streut.
   Farben und Maße lassen sich über die Variablen unten anpassen. */

/* Nicht auf das Theme verlassen: Boxmodell im Plugin-Scope festlegen. */
.dwi-eb,
.dwi-eb *,
.dwi-eb *::before,
.dwi-eb *::after {
	box-sizing: border-box;
}

.dwi-eb {
	--dwi-eb-dark: #212c32;
	--dwi-eb-mint: #6ddfb6;
	--dwi-eb-text: #1f2a2f;
	--dwi-eb-muted: #5a6b72;
	--dwi-eb-light: #f3f7f6;
	--dwi-eb-line: #dce4e2;
	--dwi-eb-max: 780px;

	margin-inline: auto;
	color: var(--dwi-eb-text);
	font-family: inherit;
	font-size: 1.05rem;
	line-height: 1.7;
	text-align: left;
	hyphens: auto;
}

.dwi-eb > p {
	margin: 0 0 1em;
}

/* ---------- Kopf ---------- */

.dwi-eb__head {
	margin-bottom: 2rem;
	padding-bottom: 1.4rem;
	border-bottom: 2px solid var(--dwi-eb-mint);
}

.dwi-eb__kicker {
	margin: 0 0 .5rem;
	color: var(--dwi-eb-muted);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.dwi-eb__title {
	margin: 0 0 .7rem;
	color: var(--dwi-eb-dark);
	font-size: clamp(1.8rem, 4.5vw, 2.6rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.01em;
}

.dwi-eb__lead {
	margin: 0;
	color: var(--dwi-eb-muted);
	font-size: 1.15rem;
	line-height: 1.55;
}

.dwi-eb__h {
	margin: 2.4rem 0 .8rem;
	color: var(--dwi-eb-dark);
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.3;
}

/* ---------- Bilder ---------- */

.dwi-eb__figure {
	margin: 2rem 0;
	text-align: center;
}

.dwi-eb__figure img,
.dwi-eb__img {
	display: block;
	width: 100%;
	max-width: 420px;
	height: auto;
	margin: 0 auto;
	border-radius: 10px;
}

.dwi-eb__figure figcaption {
	margin-top: .7rem;
	color: var(--dwi-eb-muted);
	font-size: .85rem;
	font-style: italic;
}

/* Hohe Uhren-Screenshots: oben anschneiden, unten ausblenden */

.dwi-eb__shots {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.4rem;
	margin: 2rem 0;
}

.dwi-eb__shotbox {
	margin: 0;
}

.dwi-eb__shotclip {
	position: relative;
	max-height: 420px;
	overflow: hidden;
	border: 1px solid var(--dwi-eb-line);
	border-radius: 10px;
	background: #fff;
}

.dwi-eb__shotclip::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 110px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
	pointer-events: none;
}

.dwi-eb__shotclip img,
.dwi-eb__shot {
	display: block;
	width: 100%;
	height: auto;
}

.dwi-eb__shotbox figcaption {
	margin-top: .6rem;
	color: var(--dwi-eb-muted);
	font-size: .85rem;
}

.dwi-eb__shotbox figcaption a {
	color: var(--dwi-eb-dark);
	font-weight: 600;
	text-decoration: underline;
}

/* ---------- Zitat ---------- */

.dwi-eb__quote {
	margin: 1.6rem 0;
	padding: .2rem 0 .2rem 1.3rem;
	border-left: 4px solid var(--dwi-eb-mint);
	background: none;
	quotes: none;
}

.dwi-eb__quote p {
	margin: 0 0 .5rem;
	color: var(--dwi-eb-dark);
	font-size: 1.2rem;
	font-style: italic;
	line-height: 1.5;
}

.dwi-eb__quote cite {
	color: var(--dwi-eb-muted);
	font-size: .78rem;
	font-style: normal;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}

/* ---------- Tabelle ---------- */

.dwi-eb__table-wrap {
	margin: 1.8rem 0;
	overflow-x: auto;
}

.dwi-eb__table {
	width: 100%;
	border-collapse: collapse;
	font-size: .95rem;
}

.dwi-eb__table thead th {
	padding: .8rem 1rem;
	background: var(--dwi-eb-dark);
	color: #fff;
	font-weight: 700;
	text-align: left;
	white-space: nowrap;
}

.dwi-eb__table thead th.dwi-eb__num {
	text-align: right;
}

.dwi-eb__table tbody th {
	font-weight: 400;
	text-align: left;
}

.dwi-eb__table th,
.dwi-eb__table td {
	padding: .7rem 1rem;
	border: 0;
	border-bottom: 1px solid var(--dwi-eb-line);
}

.dwi-eb__table tbody tr:nth-child(even) th,
.dwi-eb__table tbody tr:nth-child(even) td {
	background: var(--dwi-eb-light);
}

.dwi-eb__num {
	text-align: right;
	white-space: nowrap;
}

.dwi-eb__num--strong {
	font-weight: 700;
	color: var(--dwi-eb-dark);
}

/* ---------- Splits ---------- */

.dwi-eb__splits {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	margin: 1.4rem 0 1.6rem;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.dwi-eb__splits li {
	flex: 1 1 90px;
	padding: .7rem .4rem;
	border: 1px solid var(--dwi-eb-line);
	border-top: 3px solid var(--dwi-eb-mint);
	border-radius: 8px;
	background: #fff;
	text-align: center;
	list-style: none;
}

.dwi-eb__splitkm {
	display: block;
	color: var(--dwi-eb-muted);
	font-size: .72rem;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.dwi-eb__splittime {
	display: block;
	margin-top: .15rem;
	color: var(--dwi-eb-dark);
	font-size: 1.3rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

/* ---------- Fachliche Eckwerte ---------- */

.dwi-eb__facts {
	margin: 1.6rem 0;
	padding: 0;
}

.dwi-eb__fact {
	padding: .9rem 0;
	border-bottom: 1px solid var(--dwi-eb-line);
}

.dwi-eb__fact:first-child {
	border-top: 1px solid var(--dwi-eb-line);
}

.dwi-eb__facts dt {
	margin: 0 0 .2rem;
	color: var(--dwi-eb-dark);
	font-weight: 700;
}

.dwi-eb__facts dd {
	margin: 0;
	color: var(--dwi-eb-text);
}

/* ---------- Merksätze ---------- */

.dwi-eb__punch {
	margin: 1.2rem 0;
	color: var(--dwi-eb-dark);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.4;
}

.dwi-eb__punch--end {
	margin: 1.6rem 0 2rem;
}

/* ---------- Abschlussbox ---------- */

.dwi-eb__cta {
	margin: 2.4rem 0 0;
	padding: 1.5rem 1.6rem;
	border-left: 5px solid var(--dwi-eb-mint);
	border-radius: 0 10px 10px 0;
	background: var(--dwi-eb-light);
}

.dwi-eb__cta p {
	margin: 0 0 .7rem;
	font-size: .98rem;
}

.dwi-eb__cta-title {
	color: var(--dwi-eb-dark);
	font-size: 1.15rem !important;
	font-weight: 700;
}

.dwi-eb__cta-dates {
	font-weight: 600;
}

.dwi-eb__button {
	display: inline-block;
	margin-top: .4rem;
	padding: .75rem 1.5rem;
	border-radius: 999px;
	background: var(--dwi-eb-dark);
	color: #fff !important;
	font-size: .95rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none !important;
	transition: background .2s ease, transform .2s ease;
}

.dwi-eb__button:hover,
.dwi-eb__button:focus {
	background: #000;
	color: #fff !important;
	transform: translateY(-1px);
}

/* ---------- Mobil: Tabelle wird zur Kartenliste ---------- */

@media (max-width: 640px) {
	.dwi-eb {
		font-size: 1rem;
	}

	.dwi-eb__table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.dwi-eb__table,
	.dwi-eb__table tbody,
	.dwi-eb__table tr,
	.dwi-eb__table th,
	.dwi-eb__table td {
		display: block;
		width: 100%;
	}

	.dwi-eb__table tr {
		margin-bottom: .9rem;
		border: 1px solid var(--dwi-eb-line);
		border-radius: 8px;
		overflow: hidden;
	}

	.dwi-eb__table tbody th {
		background: var(--dwi-eb-dark) !important;
		color: #fff;
		font-weight: 700;
	}

	.dwi-eb__table td {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: 1rem;
		text-align: right;
	}

	.dwi-eb__table td::before {
		content: attr(data-label);
		color: var(--dwi-eb-muted);
		font-size: .82rem;
		font-weight: 600;
		text-align: left;
	}

	.dwi-eb__table tbody tr:nth-child(even) td {
		background: transparent;
	}

	.dwi-eb__table tbody tr td:last-child {
		border-bottom: 0;
		background: var(--dwi-eb-light);
	}

	.dwi-eb__shotclip {
		max-height: 320px;
	}

	.dwi-eb__splits li {
		flex: 1 1 30%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dwi-eb__button {
		transition: none;
	}
}
