/*
 * Werkzeug-Seiten (BAH/PCS pro Dienstgrad, GI-Bill-Rechner) im dunklen
 * Plattformstil. Gleiche Schrift und Farben wie va-guide-v1.css (#1095).
 * Regeln aus src/design/tokens.ts: Schrift 40/28/20/16/14/13, Sekundaertext
 * #A1A1AA, Raster 8/16/24/32/48, Radien 20 (Karte) / 12 (innen) / 999.
 * Die !important-Regeln am <body> schlagen die Inline-Stile der Huelle
 * (shell() in og-tags.ts), die fuer Crawler-Seiten weiter hell ist.
 */
@font-face { font-family: BNGuide; src: url("/fonts/bn-guide/archivo-latin.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: BNGuideNarrow; src: url("/fonts/bn-guide/archivo-narrow-latin.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }

html { background: #0a0a0c; color-scheme: dark; }
.bn-wz-page {
  --wz-bg: #0a0a0c;
  --wz-card: #141416;
  --wz-card-2: #1b1b1e;
  --wz-border: #303034;
  --wz-text: #f5f5f7;
  --wz-text-2: #d4d4d8;
  --wz-muted: #a1a1aa;
  --wz-orange: #ff5c00;
  background: var(--wz-bg) !important;
  color: var(--wz-text) !important;
  font-family: BNGuide, system-ui, sans-serif !important;
  font-size: 16px;
  line-height: 1.6;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.bn-wz-page * { box-sizing: border-box; }
.bn-wz-page a { color: var(--wz-orange); text-underline-offset: 4px; overflow-wrap: anywhere; }
.bn-wz-page a:focus-visible, .bn-wz-page input:focus-visible, .bn-wz-page select:focus-visible, .bn-wz-page button:focus-visible, .bn-wz-tabelle-rahmen:focus-visible {
  outline: 2px solid var(--wz-orange); outline-offset: 3px;
}

/* Kopf — wie .bn-va-header */
.bn-wz-skip { position: absolute; left: -9999px; }
.bn-wz-skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--wz-card); padding: 8px 16px; border-radius: 12px; }
.bn-wz-header { border-bottom: 1px solid var(--wz-border); background: var(--wz-bg); }
.bn-wz-header > div { max-width: 1168px; margin: auto; min-height: 72px; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bn-wz-page .bn-wz-brand { display: flex; align-items: center; min-height: 44px; gap: 10px; text-decoration: none; color: var(--wz-text); font-size: 20px; font-weight: 700; white-space: nowrap; }
.bn-wz-brand em { font-style: normal; color: var(--wz-orange); }
.bn-wz-header nav { display: flex; align-items: center; gap: 8px; overflow-x: auto; margin-left: auto; }
.bn-wz-header nav a, .bn-wz-header a.bn-wz-join { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; color: var(--wz-muted); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
/*
 * "Join free" steht NEBEN der Werkzeugleiste, nicht in ihr (26.10.2026):
 * mit dem vierten Eintrag (Discounts) war die Leiste auf dem Telefon 443
 * Punkt breit und schob den Knopf aus dem Bild. Auf dem Telefon steht er
 * jetzt rechts in der Markenzeile, die Leiste darunter hat Platz fuer vier.
 */
@media (max-width: 599px) {
  .bn-wz-header > div { flex-wrap: wrap; padding: 8px 16px; gap: 4px 16px; }
  .bn-wz-header nav { order: 3; flex: 1 0 100%; margin: 0 -16px; padding: 0 12px 4px; scrollbar-width: none; }
  .bn-wz-header nav::-webkit-scrollbar { display: none; }
}
.bn-wz-header nav a[aria-current="page"] { color: var(--wz-text); background: var(--wz-card-2); }
.bn-wz-header a.bn-wz-join { color: #fff; background: var(--wz-orange); font-weight: 700; }
/* Markennamen in Tabellen nicht mitten im Wort brechen ("Samsun|g"). */
.bn-wz-tabelle a.bn-wz-ganz { white-space: nowrap; }
/* Vier Spalten auf 412 Punkt: ein Wort pro Zeile. Die Details stehen auf der Markenseite. */
@media (max-width: 599px) {
  .bn-wz-schmal-zwei th:nth-child(n+3), .bn-wz-schmal-zwei td:nth-child(n+3) { display: none; }
}

/* Spalte */
.bn-wz-page > main { display: block; max-width: 960px; margin: 0 auto; padding: 24px 20px 48px; }
.bn-wz-krumen { font-size: 13px; color: var(--wz-muted); margin: 0 0 16px; }
.bn-wz-krumen a { color: var(--wz-muted); }
.bn-wz-page main h1 { font-family: BNGuideNarrow, BNGuide, system-ui, sans-serif; font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 8px; color: var(--wz-text); }
@media (min-width: 768px) { .bn-wz-page main h1 { font-size: 40px; } }
.bn-wz-page main h2 { font-size: 20px; line-height: 1.3; font-weight: 700; margin: 32px 0 8px; color: var(--wz-text); }
.bn-wz-page main p, .bn-wz-page main li { color: var(--wz-text-2); }
.bn-wz-page main strong { color: var(--wz-text); }
.bn-wz-lead { font-size: 16px; color: var(--wz-muted) !important; margin: 0 0 24px; }
.bn-wz-quelle { font-size: 13px; color: var(--wz-muted) !important; margin-top: 32px; }

/* Kacheln */
.bn-wz-kacheln { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; }
.bn-wz-kachel { flex: 1 1 180px; background: var(--wz-card); border: 1px solid var(--wz-border); border-radius: 20px; padding: 16px 20px; }
.bn-wz-kachel-titel { font-size: 13px; color: var(--wz-muted); }
.bn-wz-kachel-wert { font-size: 28px; line-height: 1.2; white-space: nowrap; font-weight: 800; color: var(--wz-text); font-variant-numeric: tabular-nums; }
.bn-wz-kachel-zusatz { font-size: 13px; color: var(--wz-muted); }

/* Tabellen */
.bn-wz-tabelle-rahmen { overflow-x: auto; border: 1px solid var(--wz-border); border-radius: 20px; background: var(--wz-card); margin: 8px 0 16px; }
.bn-wz-tabelle { border-collapse: collapse; width: 100%; font-size: 14px; }
.bn-wz-tabelle th, .bn-wz-tabelle td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--wz-border); color: var(--wz-text-2); }
.bn-wz-tabelle tbody tr:last-child th, .bn-wz-tabelle tbody tr:last-child td { border-bottom: 0; }
.bn-wz-tabelle thead th { font-size: 13px; font-weight: 600; color: var(--wz-muted); background: var(--wz-card-2); }
.bn-wz-tabelle tbody th { font-weight: 600; color: var(--wz-text); }
.bn-wz-tabelle .bn-wz-zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 599px) {
  .bn-wz-tabelle th, .bn-wz-tabelle td { padding: 10px 12px; }
  .bn-wz-tabelle tbody th { min-width: 9.5em; }
  .bn-wz-tabelle thead th.bn-wz-zahl { white-space: normal; }
}
.bn-wz-tabelle tr.bn-wz-eigene th, .bn-wz-tabelle tr.bn-wz-eigene td { font-weight: 800; color: var(--wz-text); box-shadow: inset 3px 0 0 var(--wz-orange); }
.bn-wz-tabelle tr.bn-wz-eigene td { box-shadow: none; }
.bn-wz-tabelle a { font-weight: 600; text-decoration: none; }
.bn-wz-tabelle a:hover { text-decoration: underline; }

/* Handlung — 19 px fett: weiss auf Ember traegt so "grosse Schrift" (3:1) */
.bn-wz-handlung { margin: 32px 0; }
.bn-wz-handlung span { display: block; margin-top: 8px; font-size: 13px; color: var(--wz-muted); }
.bn-wz-page a.bn-wz-knopf, .bn-wz-page button.bn-wz-knopf { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 24px; border: 0; border-radius: 12px; background: var(--wz-orange); color: #fff; font: inherit; font-size: 19px; font-weight: 700; text-decoration: none; cursor: pointer; }

/* GI-Bill-Rechner */
.bn-wz-ergebnis { background: var(--wz-card); border: 2px solid var(--wz-orange); border-radius: 20px; padding: 20px 24px; margin: 0 0 24px; }
.bn-wz-ergebnis.bn-wz-warnung { border-color: #eab308; }
.bn-wz-ergebnis-titel { font-size: 14px; color: var(--wz-muted); }
.bn-wz-ergebnis-wert { font-size: 40px; line-height: 1.1; font-weight: 800; color: var(--wz-text); font-variant-numeric: tabular-nums; }
.bn-wz-ergebnis-satz { font-size: 20px; font-weight: 800; color: var(--wz-text); }
.bn-wz-ergebnis p { margin: 8px 0 0; }
.bn-wz-form { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); background: var(--wz-card); border: 1px solid var(--wz-border); border-radius: 20px; padding: 20px; margin: 0 0 24px; }
.bn-wz-form > div:not(.bn-wz-zeile) { display: flex; flex-direction: column; justify-content: flex-end; }
.bn-wz-form label { display: block; font-size: 14px; font-weight: 600; color: var(--wz-text); margin: 0 0 8px; }
.bn-wz-form input:not([type="checkbox"]), .bn-wz-form select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--wz-border); border-radius: 12px; background: var(--wz-bg); color: var(--wz-text); font: inherit; font-size: 16px; }
.bn-wz-form .bn-wz-zeile { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.bn-wz-form .bn-wz-haken { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; font-weight: 500; }
.bn-wz-form .bn-wz-haken input { width: 22px; height: 22px; accent-color: var(--wz-orange); }

/* Fuss der Huelle (siteFooterNav in og-tags.ts) */
.bn-wz-page > footer, .bn-wz-page > nav { max-width: 960px; margin: 0 auto !important; padding: 24px 20px 48px !important; border-top: 1px solid var(--wz-border) !important; color: var(--wz-muted) !important; }
.bn-wz-page > footer *, .bn-wz-page > nav * { color: var(--wz-muted) !important; }
.bn-wz-page > footer a, .bn-wz-page > nav a { color: var(--wz-orange) !important; }
