/* Binär-Übersetzer (/binary-translator/, /de/binary-translator/), seit 21.11.2026.
   Ergänzt site.css; Farben und Abstände aus dessen Variablen. */

/* ---------------------------------------------------------------- Werkzeug */
.bt .pane textarea { min-height: 150px; }
.bt-code { letter-spacing: .03em; }
.bt-fmt { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: #F1F1F8; }
.bt-fmt button { border: 0; background: none; padding: 5px 11px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.bt-fmt button:hover { color: var(--ink); }
.bt-fmt button[aria-checked="true"] { background: #FFFFFF; color: var(--accent-ink); box-shadow: 0 1px 3px rgba(28, 27, 58, .15); }
.bt-note { margin: 0; font-size: 13.5px; color: #5C3E00; background: var(--amber-soft); border-radius: 8px; padding: 8px 12px; }
.bt-note[hidden] { display: none; }

.bt-bar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px 24px; padding: 12px 18px; border-top: 1px solid var(--line); background: #FAFAFD; }
.bt-bar select { min-width: 140px; }
.bt-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); cursor: pointer; padding-bottom: 8px; }
.bt-check[hidden] { display: none; }
.bt-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.bt-stats { margin-left: auto; padding-bottom: 8px; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.bt-bytes { padding: 14px 18px 18px; border-top: 1px solid var(--line); }
.bt-bytes[hidden] { display: none; }
.bt-bytes__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 10px; }
.bt-bytes__head b { font-size: 13.5px; color: var(--ink); }
.bt-bytes__head small { font-size: 12.5px; color: var(--muted); }
.bt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bt-chip { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 10px; background: #FFFFFF; min-width: 74px; }
.bt-chip--multi { border-color: #C9C8FF; background: var(--panel); }
.bt-chip__ch { font-family: var(--head); font-size: 20px; font-weight: 700; line-height: 1.2; color: var(--ink); }
.bt-chip small { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bt-bits { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--ink); white-space: nowrap; }
.bt-bits b { color: #E2502C; font-weight: 700; }
.bt-more { align-self: center; font-size: 13px; color: var(--muted); padding: 0 6px; }

/* Zahlen */
.bt-num { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.bt-lead { margin: 0; font-size: 15px; }
.bt-num__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; }
.bt-num__grid input { font-size: 16px !important; }
.bt-num__grid input.is-bad { border-color: var(--red) !important; background: var(--red-soft) !important; }
.bt-steps h3 { margin: 14px 0 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.bt-steps h3:first-child { margin-top: 0; }

/* Stellenwerte */
.bt-pv { display: flex; flex-wrap: wrap; align-items: stretch; gap: 4px; }
.bt-pv__col { display: flex; flex-direction: column; align-items: center; min-width: 44px; padding: 6px 6px; border-radius: 8px; background: #F6F6FB; font-variant-numeric: tabular-nums; }
.bt-pv__col small { font-size: 11px; color: var(--muted); }
.bt-pv__col span { font-size: 12.5px; color: var(--muted); }
.bt-pv__col b { font-family: var(--mono); font-size: 20px; color: #B5B4CC; }
.bt-pv__col.is-on { background: var(--accent-soft); box-shadow: inset 0 0 0 1px #C9C8FF; }
.bt-pv__col.is-on span { color: var(--accent-ink); font-weight: 600; }
.bt-pv__col.is-on b { color: var(--accent-ink); }
.bt-pv__sum { align-self: center; padding: 0 8px; font-size: 15px; color: var(--ink); }
.bt-div table { width: auto; }
.bt-div td { font-variant-numeric: tabular-nums; }
.bt-div__res { margin: 6px 0 0; font-size: 15px; color: var(--ink); }
.bt-div__res b { font-family: var(--mono); color: var(--accent-ink); }

/* ---------------------------------------------------------------- Inhalt */
.bt-big { font-family: var(--head); font-size: 20px; font-weight: 700; color: var(--ink); }
.bt-how td { vertical-align: middle; }
.block .bt-how code, .block .bt-table code, .block .bt-ascii code { background: none; padding: 0; }
.bt-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.bt-table td, .bt-ascii td { padding-top: 5px; padding-bottom: 5px; font-variant-numeric: tabular-nums; }
.bt-add { border: 1px solid var(--line-2); background: #FFFFFF; border-radius: 6px; min-width: 30px; padding: 1px 8px; font-family: var(--head); font-weight: 700; font-size: 15px; color: var(--ink); cursor: pointer; }
.bt-add:hover { border-color: var(--accent); color: var(--accent); }
.bt-words { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.bt-word { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #FFFFFF; text-align: left; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.bt-word:hover { border-color: #C9C8FF; box-shadow: 0 6px 16px -10px rgba(28, 27, 58, .35); }
.bt-word b { font-family: var(--head); font-size: 16px; color: var(--ink); }
.block .bt-word code, .bt-word code { background: none; padding: 0; font-family: var(--mono); font-size: 12.5px; color: var(--accent-ink); word-break: break-word; }
.bt-ascii-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.bt-ascii abbr { text-decoration: none; font-size: 12px; font-weight: 600; color: var(--muted); }
.bt-ascii b { font-family: var(--mono); color: var(--ink); }
.bt-nibbles { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.bt-nibbles div { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border: 1px solid var(--line-2); border-radius: 10px; }
.block .bt-nibbles code, .bt-nibbles code { background: none; padding: 0; font-family: var(--mono); font-size: 14px; color: var(--ink); }
.bt-nibbles b { font-family: var(--head); font-size: 20px; color: var(--accent-ink); }
.bt-nibbles small { font-size: 11.5px; color: var(--muted); }

@media (max-width: 760px) {
  .bt .pane textarea { min-height: 92px; }
  .bt .pane { padding: 14px; }
  .bt .pane__head { flex-wrap: wrap; }
  .bt-fmt button { padding: 5px 8px; }
  .bt-bar { padding: 12px 14px; }
  .bt-stats { margin-left: 0; width: 100%; }
  .bt-chip { min-width: 66px; }
}

/* Rechenweg kompakt */
.bt-div { width: fit-content; max-width: 100%; }
.bt-div td { padding: 4px 16px; }
.bt-div .geo-table { min-width: 0; }
