/* ==========================================================================
   Ränge (SrHERO-Stufen + Vergleich) im Stil des Wikis: kantig, harte Kanten unten, Lilita One/Nunito.
   Erscheint im Wiki (Baustein {% raenge %}); /raenge/ leitet dorthin. Tabelle oder Karte entscheidet die
   verfügbare Breite (Container-Abfrage), nicht die Fenstergröße – im Wiki ist die Spalte schmaler als das Fenster.
   ========================================================================== */

.bb-r-vergleich {
	--bb-r-head: "Lilita One", var(--bb-font-head, sans-serif);
	--bb-r-panel: #151b40;
	--bb-r-panel-2: #0f1433;
	--bb-r-line: #232a5a;
	--bb-r-muted: #8f97b8;
	--bb-r-accent: #2ac1f6;
	--bb-r-gold: #f5ba00;
	container-type: inline-size;
	font-family: "Nunito", var(--bb-font-body, sans-serif);
	color: #fff;
}

.bb-r-h2 {
	margin: 36px 0 16px;
	font-family: var(--bb-r-head);
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: 0.01em;
}

/* SrHERO */
.bb-r-sr {
	padding: 24px;
	border: 2px solid var(--bb-r-gold);
	border-radius: 6px;
	background: linear-gradient(160deg, rgba(245, 186, 0, 0.14), rgba(245, 186, 0, 0) 55%), var(--bb-r-panel);
	box-shadow: 0 5px 0 #a86f00;
}

.bb-r-sr__kopf {
	max-width: 760px;
}

.bb-r-sr__badge {
	display: inline-block;
	margin-bottom: 10px;
	padding: 5px 8px;
	border-radius: 4px;
	background: var(--bb-r-gold);
	color: #0c0f23;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	box-shadow: 0 3px 0 #a86f00;
}

.bb-r-sr h2 {
	margin: 0;
	color: #ffd257;
	font-family: var(--bb-r-head);
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 400;
	line-height: 1.05;
}

.bb-r-sr__sub {
	margin: 6px 0 12px;
	font-size: 17px;
	font-weight: 800;
}

.bb-r-sr p {
	color: #dfe3f1;
	font-weight: 600;
	line-height: 1.6;
}

.bb-r-sr strong {
	color: #ffd257;
	font-weight: 900;
}

.bb-r-sr__stufen {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.bb-r-sr__stufen li {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 14px;
	border: 2px solid rgba(245, 186, 0, 0.35);
	border-radius: 4px;
	background: var(--bb-r-panel-2);
}

.bb-r-sr__nr {
	color: var(--bb-r-gold);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bb-r-sr__stufen strong {
	color: #fff;
	font-family: var(--bb-r-head);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.15;
}

.bb-r-sr__stufen span:last-child {
	color: var(--bb-r-muted);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
}

/* Zellinhalte */
.bb-r-ja {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 4px;
	background: #33d17a;
	color: #062614;
	box-shadow: 0 2px 0 #1a7a44;
}

.bb-r-ja svg {
	width: 14px;
	height: 14px;
}

.bb-r-nein {
	color: rgba(255, 255, 255, 0.25);
	font-size: 18px;
}

.bb-r-text {
	font-weight: 800;
}

.bb-r-text--lang {
	display: block;
	color: #dfe3f1;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	hyphens: auto;
	overflow-wrap: anywhere;
}

.bb-r-stufe {
	display: block;
	margin-top: 3px;
	color: var(--bb-r-gold);
	font-size: 11px;
	font-weight: 800;
	white-space: nowrap;
}

.bb-r-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-width: 84px;
	padding: 7px 10px;
	border-radius: 4px;
	font-family: var(--bb-r-head);
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0.01em;
	box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 3px 0 rgba(0, 0, 0, 0.35);
}

.bb-r-pill em {
	padding: 1px 5px;
	border-radius: 3px;
	background: rgba(0, 0, 0, 0.25);
	color: #fff;
	font: 900 9px "Nunito", sans-serif;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.bb-r-preis {
	display: block;
	margin-top: 6px;
	color: var(--bb-r-muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
}

/* Tabelle (genug Platz) */
.bb-r-tabelle {
	border: 2px solid var(--bb-r-line);
	border-radius: 6px;
	background: var(--bb-r-panel);
	box-shadow: 0 5px 0 #070a1c;
	overflow: clip;
}

.bb-r-tabelle table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	color: #fff;
	font-size: 14px;
}

.bb-r-tabelle th,
.bb-r-tabelle td {
	padding: 11px 8px;
	border: 0;
	background: none;
	text-align: center;
	vertical-align: middle;
	line-height: 1.35;
}

.bb-r-tabelle thead th {
	position: sticky;
	top: 0;
	z-index: 2;
	padding: 16px 6px 14px;
	background: var(--bb-r-panel);
	box-shadow: inset 0 -2px 0 var(--bb-r-line);
	vertical-align: top;
}

.bb-r-tabelle__ecke {
	width: 25%;
}

.bb-r-tabelle tbody th {
	padding-left: 18px;
	color: #dfe3f1;
	font-weight: 700;
	text-align: left;
}

.bb-r-tabelle tbody tr:not(.bb-r-tabelle__gruppe):hover {
	background: rgba(255, 255, 255, 0.04);
}

.bb-r-tabelle tbody tr + tr {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bb-r-tabelle__gruppe th {
	padding: 22px 18px 8px !important;
	color: var(--bb-r-accent) !important;
	font-size: 12px;
	font-weight: 900 !important;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.bb-r-tabelle td.bb-r--srhero {
	background: rgba(245, 186, 0, 0.07);
}

/* Rang-Auswahl + Karte (wenig Platz) */
.bb-r-mobil {
	display: none;
}

.bb-r-mobil__auswahl {
	display: flex;
	gap: 8px;
	margin: 0 0 14px;
	padding: 4px 0 8px;
	overflow-x: auto;
	scrollbar-width: none;
}

.bb-r-mobil__auswahl::-webkit-scrollbar {
	display: none;
}

.bb-r-mobil__auswahl button {
	flex: none;
	min-height: 40px;
	padding: 0 14px;
	border: 2px solid var(--bb-r-line);
	border-radius: 4px;
	background: var(--bb-r-panel);
	color: #fff;
	font: 900 14px "Nunito", sans-serif;
	cursor: pointer;
	box-shadow: 0 3px 0 #070a1c;
}

.bb-r-mobil__auswahl button[aria-selected="true"] {
	border-color: transparent;
	background: var(--bb-r-farbe);
	color: var(--bb-r-text);
	box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 3px 0 rgba(0, 0, 0, 0.4);
}

.bb-r-karte {
	overflow: hidden;
	border: 2px solid var(--bb-r-line);
	border-radius: 6px;
	background: var(--bb-r-panel);
	box-shadow: 0 5px 0 #070a1c;
}

.bb-r-karte[hidden] {
	display: none;
}

.bb-r-karte__kopf {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.bb-r-karte__kopf h3 {
	margin: 0;
	font-family: var(--bb-r-head);
	font-size: 24px;
	font-weight: 400;
}

.bb-r-karte__kopf span {
	font-size: 13px;
	font-weight: 800;
	text-align: right;
}

.bb-r-karte__gruppe {
	margin: 0;
	padding: 16px 18px 6px;
	color: var(--bb-r-accent);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.bb-r-karte__liste {
	margin: 0;
	padding: 0 18px;
	list-style: none;
}

.bb-r-karte__liste li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 0;
	padding: 10px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	font-size: 14px;
}

.bb-r-karte__liste li:first-child {
	border-top: 0;
}

.bb-r-karte__label {
	color: #dfe3f1;
	font-weight: 700;
	line-height: 1.35;
}

.bb-r-karte__wert {
	display: flex;
	flex: none;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 4px 8px;
	max-width: 48%;
	text-align: right;
}

.bb-r-karte__wert .bb-r-stufe {
	flex-basis: 100%;
	margin-top: 0;
	text-align: right;
}

.bb-r-karte__nicht {
	margin: 10px 18px 18px;
	padding: 12px 14px;
	border: 2px solid var(--bb-r-line);
	border-radius: 4px;
	background: var(--bb-r-panel-2);
	color: var(--bb-r-muted);
	font-size: 13px;
	font-weight: 700;
}

.bb-r-karte__nicht summary {
	cursor: pointer;
	font-weight: 900;
}

.bb-r-karte__nicht ul {
	margin: 10px 0 0;
	padding-left: 18px;
	line-height: 1.6;
}

/* Breite der Spalte, in der der Vergleich steht */
@container (max-width: 980px) {
	.bb-r-sr__stufen {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@container (max-width: 880px) {
	.bb-r-tabelle {
		display: none;
	}

	.bb-r-mobil {
		display: block;
	}
}

@container (max-width: 520px) {
	.bb-r-sr {
		padding: 18px 14px;
	}

	.bb-r-sr__stufen {
		grid-template-columns: minmax(0, 1fr);
	}
}
