/*
 * Die Datenseite eines Buchmachers, Aufbau v3.
 *
 * Trennregel wie überall in diesem Theme: Rahmen = Datenraster,
 * Linie = Abschnittswechsel, Oberlinie = Befund an einem Wert. Der Masthead ist
 * die eine Ausnahme — dort trennt die Farbe, nicht die Linie.
 *
 * Die Seite ist breiter als der Rest des Auftritts (1120 statt 1000), aber das
 * gilt nur hier: --wrap im :root zu ändern verbreiterte Ledger und Methodik mit.
 */

/*
 * Keine eigene Breite mehr: Die Seite ist eine Datenseite und bekommt sie über
 * body.gosu-data aus interim.css. Vorher stand hier 1180 als dritte Zahl
 * neben zwei anderen.
 */
.bm-body { max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding: 0 var(--gutter); }

/* ---------- Masthead ---------- */

.bm-mast { background: var(--ink); color: var(--paper); }
.bm-mast__in { max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding: 0 var(--gutter); }
.bm-mast__top { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; padding: 46px 0 34px; }
.bm-mast__name { font-family: var(--display); font-weight: 400; font-size: clamp(48px, 7vw, 92px); line-height: .95; text-transform: uppercase; color: var(--paper); margin: 0; letter-spacing: .01em; }
.bm-kicker--dark { color: #B5AC9C; margin: 0 0 6px; white-space: nowrap; }
.bm-mast__status { font-family: var(--ui); font-size: 13.5px; font-weight: 600; color: #C9C0B2; margin-top: 13px; display: flex; gap: 22px; flex-wrap: wrap; }
.bm-mast__status b { color: #F0B7B0; font-weight: 600; }
/*
 * Button und Fußnote als EINE Einheit, mittig aufeinander — nicht beide
 * rechtsbündig. Rechtsbündig stößt die harte linke Kante des Buttons gegen den
 * ausgefransten linken Rand des dreizeiligen Hinweises; das liest sich wie ein
 * Fehler. Die Gruppe als Ganzes bleibt rechts, weil sie dem Namen links
 * gegenübersteht.
 */
.bm-mast__cta { text-align: center; max-width: 264px; margin-left: auto; }
.bm-mast__note { font-family: var(--ui); font-size: 11.5px; color: #A79E8D; margin: 11px auto 0; max-width: 30ch; line-height: 1.55; }
.bm-mast__why { border-top: 1px solid #322C24; padding: 22px 0 30px; }
.bm-mast__why p { margin: 0; max-width: 62ch; color: #E4DCCE; }

.bm-btn { transition: background .16s, border-color .16s, color .16s; display: inline-flex; align-items: center; gap: 8px; font-family: var(--ui); font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; padding: 16px 26px; border: 1.5px solid var(--red); background: var(--red); color: #fff; }
.bm-btn--red:hover, .bm-btn--red:focus-visible { background: #A82A20; border-color: #A82A20; }
.bm-btn--off { background: transparent; border-style: dashed; border-color: #6B6254; color: #A79E8D; cursor: default; }

.bm-figs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #322C24; }
/*
 * Abstand auf BEIDEN Seiten der Trennlinie. Mit padding-left: 0 klebte der Wert
 * jeder Zelle ab der zweiten an dem Strich zu seiner Linken — „None", „Anjouan"
 * und die 6 standen direkt an der Linie, nur die erste Kachel hatte Luft.
 * Aussen bleibt bündig, damit die Reihe am Container ausgerichtet ist.
 */
.bm-fig { padding: 26px 30px 30px; border-right: 1px solid #322C24; }
.bm-fig:first-child { padding-left: 0; }
.bm-fig:last-child { border-right: 0; padding-right: 0; }
.bm-fig__v { font-family: var(--display); font-size: 38px; line-height: 1; color: var(--paper); }
.bm-fig__v--green { color: #7FBE9B; }
.bm-fig__v--red { color: #F0B7B0; }
.bm-fig__v--none { color: #A79E8D; }
.bm-fig__l { font-family: var(--ui); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #B5AC9C; margin-top: 8px; }
.bm-fig__s { font-family: var(--mono); font-size: 11.5px; color: #A79E8D; margin-top: 5px; }

.bm-mast__verdict { border-top: 1px solid #322C24; padding: 30px 0 44px; display: grid; grid-template-columns: 1fr 210px; gap: 44px; align-items: start; }
.bm-mast__verdict p { margin: 0; font-size: 22px; line-height: 1.5; color: #E4DCCE; max-width: 58ch; }
.bm-mast__verdict em { font-style: normal; color: var(--paper); box-shadow: inset 0 -.5em 0 rgba(196,54,43,.35); }
.bm-sig { font-family: var(--mono); font-size: 11.5px; color: #A79E8D; line-height: 1.7; text-align: right; padding-top: 6px; }
.bm-sig b { display: block; color: #C9C0B2; font-weight: 500; font-family: var(--ui); font-size: 12.5px; margin-bottom: 4px; }

/* ---------- Abschnitte ---------- */

.bm-sec { padding: 44px 0; }
.bm-sec__head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; border-bottom: 1.5px solid var(--ink); padding-bottom: 9px; margin-bottom: 24px; }
.bm-sec__head--tight { border-bottom: 0; padding-bottom: 4px; margin-bottom: 0; }
.bm-sec__head h2 { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: .95; text-transform: uppercase; margin: 0; }
.bm-sec__head--tight h2 { font-size: 22px; }
.bm-sec__kick { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.bm-kicker { font-family: var(--ui); font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.bm-empty { margin: 0; color: var(--muted); max-width: 62ch; }
.bm-source { font-family: var(--mono); font-size: 11.5px; color: #8A8073; margin: 16px 0 0; line-height: 1.6; }
.bm-source a { border-bottom: 1px solid var(--rule-strong); }
.bm-mono { font-family: var(--mono); }
.bm-none { color: var(--muted); }

/* ---------- Bewertung ---------- */

.bm-total { margin: 0 0 20px; }
.bm-total strong { font-family: var(--display); font-size: 52px; line-height: .85; font-weight: 400; }
.bm-total span { font-family: var(--mono); font-size: 15px; color: var(--muted); margin-left: 10px; }

.bm-sc { width: 100%; border-collapse: collapse; }
.bm-sc th { font-family: var(--ui); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 0 14px 8px 0; border-bottom: 1px solid var(--rule); }
.bm-sc th:last-child, .bm-sc td:last-child { text-align: right; padding-right: 0; }
.bm-sc td { padding: 15px 14px 15px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.bm-sc tr:last-child td { border-bottom: 0; }
.bm-sc__nm { font-family: var(--ui); font-weight: 600; font-size: 16px; white-space: nowrap; width: 150px; }
.bm-sc__nm em { display: block; font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 4px; letter-spacing: .06em; }
.bm-sc__bar { display: block; height: 10px; background: #E1D8C8; position: relative; min-width: 200px; }
.bm-sc__bar i { position: absolute; inset: 0 auto 0 0; background: var(--ink); }
.bm-sc__bar--prov { background: transparent; border: 1px dashed var(--rule-strong); }
.bm-sc__bar--prov i { background: #8A8073; }
.bm-sc__src { font-size: 14.5px; color: var(--muted); line-height: 1.45; padding-top: 2px; }
.bm-sc__src small { display: block; font-family: var(--mono); font-size: 11.5px; margin-top: 4px; color: #8A8073; }
.bm-sc__val { font-family: var(--mono); font-size: 22px; font-weight: 700; width: 64px; }
.bm-sc__val--prov { color: var(--muted); font-weight: 500; }
.bm-sc__val--zero { color: var(--red); }
.bm-sc__foot { display: flex; justify-content: space-between; gap: 22px; margin-top: 18px; font-size: 14.5px; color: var(--muted); flex-wrap: wrap; }
.bm-sc__foot a { border-bottom: 1.5px solid var(--red); color: var(--ink); }
.bm-sc__missing { font-family: var(--mono); font-size: 13px; color: var(--red); }

/* ---------- Messungen ---------- */

.bm-slips { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.bm-slip { border: 1.5px solid var(--ink); background: var(--card); padding: 18px 20px; font-family: var(--mono); font-size: 13px; }
.bm-slip__h { display: flex; justify-content: space-between; font-family: var(--ui); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-bottom: 1px dashed var(--rule-strong); padding-bottom: 9px; margin-bottom: 11px; }
.bm-slip__r { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; }
.bm-slip__r span:first-child { color: var(--muted); }
.bm-slip__big { font-family: var(--display); font-size: 40px; line-height: 1; margin: 12px 0 4px; }
.bm-slip__big--green { color: var(--green); }
.bm-slip__big--red { color: var(--red); }
.bm-slip__big--none { color: var(--muted); }
.bm-slip__cap { font-family: var(--ui); font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.bm-slip__tx { margin-top: 12px; padding-top: 10px; border-top: 1px dotted var(--rule); }
.bm-slip__tx a { border-bottom: 1px solid var(--rule-strong); word-break: break-all; line-height: 1.5; }

.bm-rows--log { font-family: var(--ui); font-size: 12.5px; }
.bm-log__h, .bm-log__r { display: grid; grid-template-columns: 130px 1fr 90px 1fr 110px; gap: 14px; padding: 10px 14px; align-items: baseline; }
.bm-log__h { font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--rule); }
.bm-log__r + .bm-log__r { border-top: 1px solid var(--rule); }

/* ---------- Streifen ---------- */

/*
 * Beschriftungen und Werte sind Geschwister in EINEM Raster, nicht
 * ineinander verschachtelt: Nur so liegen alle Werte auf einer Linie, auch
 * wenn eine Beschriftung zweizeilig umbricht.
 *
 * Waagerecht füllt das Raster spaltenweise — erste Zeile alle Beschriftungen,
 * zweite alle Werte. Senkrecht (schmales Fenster) kippt es auf zwei Spalten
 * und füllt zeilenweise, wodurch aus jedem Paar eine Zeile wird. Dieselbe
 * Quelltextfolge trägt beides.
 *
 * Keine senkrechten Trennstriche: Bei unterschiedlich hohen Zellen laufen sie
 * verschieden weit und erzeugen ein unruhiges Gitter.
 */
.bm-strip {
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: auto auto;
	grid-auto-columns: minmax(0, 1fr);
	column-gap: 34px;
	row-gap: 7px;
	border-top: 1px solid var(--rule);
	padding: 15px 0 4px;
}
.bm-strip__l { font-family: var(--ui); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); align-self: end; }
.bm-strip__v { font-family: var(--mono); font-size: 15px; line-height: 1.4; word-break: break-word; align-self: start; }
.bm-strip__v--warn { color: var(--red); font-weight: 700; }
.bm-strip__v--ok { color: var(--green); }
.bm-strip__v--zero { color: var(--red); }

.bm-after { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 16px; align-items: flex-start; }
.bm-after p { margin: 0; font-size: 15px; color: var(--muted); max-width: 56ch; }
.bm-note-red { font-family: var(--ui); font-size: 12.5px; font-weight: 700; color: var(--red); }
.bm-note-green { font-family: var(--ui); font-size: 12.5px; color: var(--green); }
.bm-prose { max-width: 68ch; }

.bm-contra { margin-top: 20px; border-left: 3px solid var(--ink); padding: 3px 0 3px 16px; max-width: 72ch; }
.bm-contra b { font-family: var(--ui); font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; display: block; margin-bottom: 7px; }
.bm-contra p { margin: 0 0 9px; font-size: 15.5px; line-height: 1.5; }
.bm-contra p:last-child { margin-bottom: 0; }
.bm-contra__ref { font-family: var(--mono); font-size: 11.5px; color: #8A8073; }

/* ---------- Chronik ---------- */

.bm-chron { border-top: 1px solid var(--rule); }
.bm-chron__row { display: grid; grid-template-columns: 150px 1fr 240px; gap: 26px; padding: 16px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.bm-chron__d { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.bm-chron__t { font-family: var(--ui); font-weight: 600; font-size: 16px; line-height: 1.35; }
.bm-chron__m { font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-align: right; line-height: 1.6; }
.bm-chron__sev { color: var(--red); font-weight: 700; }
.bm-chron__m a { border-bottom: 1px solid var(--rule-strong); }

.bm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bm-chip { font-family: var(--mono); font-size: 12px; padding: 4px 9px; border: 1px solid var(--rule-strong); color: var(--muted); }
.bm-sec--end { padding-bottom: 64px; }

.bm-page details { margin-top: 16px; }
.bm-page summary { cursor: pointer; list-style: none; font-family: var(--ui); font-size: 12.5px; font-weight: 700; border-bottom: 1.5px solid var(--red); display: inline-block; padding-bottom: 1px; }
.bm-page summary::-webkit-details-marker { display: none; }
.bm-page details p { font-size: 14.5px; color: var(--muted); margin: 12px 0 0; line-height: 1.55; }

@media (max-width: 900px) {
	.bm-mast__verdict { grid-template-columns: 1fr; gap: 20px; }
	.bm-sig { text-align: left; }
	.bm-chron__row { grid-template-columns: 130px 1fr; }
	.bm-chron__m { grid-column: 2; text-align: left; }
}
@media (max-width: 860px) {
	.bm-mast__top { grid-template-columns: 1fr; gap: 24px; align-items: start; }
	.bm-mast__cta { text-align: left; max-width: none; margin-left: 0; }
	.bm-mast__note { margin-left: 0; margin-right: 0; }
	.bm-figs { grid-template-columns: 1fr 1fr; }
	.bm-fig { border-bottom: 1px solid #322C24; }
	.bm-fig:nth-child(2n) { border-right: 0; }
	.bm-sc__bar, .bm-sc__src { display: none; }
	.bm-sc__nm { width: auto; }
	.bm-mast__verdict p { font-size: 19px; }
	.bm-log__h, .bm-log__r { grid-template-columns: 1fr 1fr; }

	/* Aus zwei Zeilen x N Spalten werden N Zeilen x zwei Spalten. */
	.bm-strip { grid-auto-flow: row; grid-template-columns: 1fr auto; grid-template-rows: none; column-gap: 18px; row-gap: 0; }
	.bm-strip__l { align-self: baseline; padding: 7px 0; border-bottom: 1px dotted var(--rule); }
	.bm-strip__v { align-self: baseline; text-align: right; padding: 7px 0; border-bottom: 1px dotted var(--rule); }
}

/* ---------- Übersicht ---------- */

.bm-index__lead { margin: 0 0 26px; color: var(--muted); font-size: 16px; }

.bm-idx { border-top: 1.5px solid var(--ink); }
.bm-idx__h,
.bm-idx__r { display: grid; grid-template-columns: 1.25fr .9fr .9fr .55fr .8fr 1.2fr; gap: 18px; align-items: baseline; }
.bm-idx__h { font-family: var(--ui); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); padding: 10px 0 9px; border-bottom: 1px solid var(--rule); }
.bm-idx__r { padding: 17px 0; border-bottom: 1px solid var(--rule); font-family: var(--ui); font-size: 14px; }
.bm-idx__r:hover { background: var(--card); }
.bm-idx__r small { display: block; font-family: var(--mono); font-size: 11px; color: #8A8073; margin-top: 5px; line-height: 1.45; }
.bm-idx__name { font-family: var(--ui); font-weight: 700; font-size: 17px; }
.bm-idx__big { font-size: 16px; font-weight: 700; }
.bm-idx__score { font-size: 21px; font-weight: 700; }
.bm-idx__notyet { font-family: var(--mono); font-size: 15px; color: var(--muted); }
.bm-idx__thin { color: var(--muted); }
.bm-idx__warn { color: var(--red); font-weight: 700; }
.bm-idx__warn small { color: var(--red); }

@media (max-width: 820px) {
	.bm-idx__h { display: none; }
	.bm-idx__r { grid-template-columns: 1fr 1fr; gap: 6px 18px; }
	.bm-idx__name { grid-column: 1 / -1; }
}
