/* =========================================================================
   Breitenwischer Tarife – Frontend (responsive)
   - Desktop: klassische Tabellen
   - Mobil (<= 760px): jede Zeile wird zu einer Karte (data-label)
   ========================================================================= */

.bwt-tarife {
	--bwt-red: #cc0000;
	--bwt-red-dark: #a30000;
	--bwt-ink: #1d1d1f;
	--bwt-line: #d8d8d8;
	--bwt-zebra: #f7f7f7;
	--bwt-na: #b9b9b9;
	color: var(--bwt-ink);
	font-size: 15px;
	line-height: 1.45;
	box-sizing: border-box;
}
.bwt-tarife *,
.bwt-tarife *::before,
.bwt-tarife *::after { box-sizing: inherit; }

.bwt-block { margin: 0 0 34px; }

/* ---- Block-Kopf (roter Balken) ---- */
.bwt-head {
	background: var(--bwt-red);
	color: #fff;
	padding: 12px 18px;
	border-radius: 6px 6px 0 0;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 18px;
}
.bwt-head h3 {
	margin: 0;
	color: #fff;
	font-size: 1.25rem;
	font-style: italic;
	font-weight: 800;
	letter-spacing: .3px;
}
.bwt-head span { font-size: .9rem; opacity: .95; }

/* ---- Tabellen-Grundgerüst ---- */
.bwt-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--bwt-line);
	border-top: 0;
}
.bwt-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	background: #fff;
	min-width: 540px;
}
.bwt-table caption { text-align: left; }
.bwt-table thead th {
	background: #2b2b2b;
	color: #fff;
	font-weight: 700;
	text-align: center;
	padding: 10px 12px;
	border: 1px solid #3a3a3a;
	vertical-align: middle;
	font-size: .9rem;
}
.bwt-table thead th:first-child { text-align: left; }
.bwt-table tbody td {
	padding: 9px 12px;
	border: 1px solid var(--bwt-line);
	text-align: center;
	vertical-align: middle;
}
.bwt-table tbody tr:nth-child(even) td { background: var(--bwt-zebra); }
.bwt-table .bwt-label { text-align: left; }
.bwt-table .bwt-num { width: 42px; font-weight: 700; color: var(--bwt-red); }

/* Preise / Hervorhebung */
.bwt-price { font-weight: 700; white-space: nowrap; }
.bwt-hl {
	background: var(--bwt-red) !important;
	color: #fff;
}
.bwt-na { color: var(--bwt-na); }

/* Frei-Km Sublabel im Kopf der Mietwagentabelle */
.bwt-tariff thead th { line-height: 1.2; }
.bwt-free {
	display: block;
	margin-top: 4px;
	font-size: .72rem;
	font-weight: 600;
	color: #ffd9d9;
}

/* Info-Texte */
.bwt-info {
	margin: 10px 2px 0;
	font-size: .88rem;
	color: #444;
}
.bwt-info strong { color: var(--bwt-red); }

/* Footer */
.bwt-footer {
	margin-top: 18px;
	background: var(--bwt-red);
	color: #fff;
	border-radius: 6px;
	padding: 10px 18px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 18px;
	font-weight: 700;
	font-size: .92rem;
}

.bwt-original { margin-top: 18px; }
.bwt-original img { max-width: 100%; height: auto; border-radius: 6px; }

/* =========================================================================
   MOBIL: Zeilen -> Karten
   ========================================================================= */
@media ( max-width: 760px ) {
	.bwt-table-wrap { overflow-x: visible; border: 0; }
	.bwt-table { min-width: 0; border: 0; }

	.bwt-table thead { display: none; }

	.bwt-table tbody,
	.bwt-table tbody tr,
	.bwt-table tbody td { display: block; width: 100%; }

	.bwt-table tbody tr {
		border: 1px solid var(--bwt-line);
		border-radius: 6px;
		margin: 0 0 12px;
		overflow: hidden;
		background: #fff;
	}
	.bwt-table tbody tr:nth-child(even) td { background: transparent; }

	.bwt-table tbody td {
		text-align: right;
		border: 0;
		border-bottom: 1px solid #eee;
		padding: 9px 14px;
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 14px;
	}
	.bwt-table tbody td:last-child { border-bottom: 0; }

	/* Label aus data-label vor den Wert setzen */
	.bwt-table tbody td::before {
		content: attr( data-label );
		font-weight: 700;
		text-align: left;
		color: #333;
		flex: 1 1 auto;
	}
	.bwt-table tbody td:empty { display: none; }

	/* Die erste Zelle (Bezeichnung) als Kartenkopf */
	.bwt-table .bwt-label {
		background: #f0f0f0;
		font-weight: 700;
		text-align: left;
		display: block;
	}
	.bwt-table .bwt-label::before { content: none; }

	.bwt-table .bwt-num { display: none; }

	.bwt-hl { border-radius: 0; }

	.bwt-footer { flex-direction: column; }
}

@media ( max-width: 480px ) {
	.bwt-tarife { font-size: 14px; }
	.bwt-head h3 { font-size: 1.1rem; }
}
