/* pay-gap-report: tool styles (tokens from shared/css/base.css) + print report */
:root { --c-f: var(--accent); --c-m: color-mix(in srgb, var(--positive) 80%, var(--text)); }
h1 { overflow-wrap: break-word; }
h1:lang(de) { hyphens: auto; -webkit-hyphens: auto; }
h3 { margin: 26px 0 8px; }
small.muted { display: block; margin-top: 4px; font-size: .82rem; line-height: 1.4; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.privacy-note { background: var(--positive-soft); border-radius: var(--radius-sm); padding: 10px 14px; margin: 12px 0 24px; font-size: .95rem; max-width: 62ch; }
.privacy-inline { margin: 8px 0 0; }
.field-err { color: var(--err); font-weight: 600; font-size: .9rem; margin: 6px 0 0; }
.field-err:empty { display: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 14px 0 4px; }
.note { background: var(--surface-2); border-left: 3px solid var(--accent); padding: 8px 12px; border-radius: 6px; margin: 10px 0; }
.note:empty { display: none; }
.warn-box { background: var(--warn-bg); border-left: 3px solid var(--warn); padding: 8px 12px; border-radius: 6px; margin: 10px 0; }
.ok-box { background: var(--positive-soft); border-left: 3px solid var(--positive); padding: 8px 12px; border-radius: 6px; margin: 10px 0; }
.warn { color: var(--warn); }

/* import */
.drop { border: 2px dashed color-mix(in srgb, var(--accent) 45%, var(--border)); border-radius: var(--radius); padding: 22px 16px; text-align: center; background: var(--surface-2); transition: background .15s, border-color .15s; }
.drop p { margin: 4px 0; }
.drop.over { background: var(--accent-soft); border-color: var(--accent); }
.drop-main { font-weight: 650; }
textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; }
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 16px; }
.map-grid label { margin-top: 12px; }
.gm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 14px; }
.gm-row label { margin-top: 10px; font-weight: 500; overflow-wrap: anywhere; }

/* settings */
.oblig { margin: 18px 0 6px; background: var(--accent-soft); border-radius: var(--radius-sm); padding: 4px 14px; }
.oblig:empty { display: none; }
.oblig p { margin: 8px 0; }

/* results */
.headline { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: flex-end; margin: 4px 0 8px; }
.headline > div { display: flex; flex-direction: column; }
.result .big-2 { color: var(--text); font-size: clamp(1.6rem, 4.5vw, 2rem); }
.res-sentence { font-size: 1.05rem; font-weight: 600; margin: 8px 0 12px; }
.tbl-wrap { max-width: 100%; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ind-table { table-layout: fixed; font-size: .93rem; }
.ind-table thead th:first-child { width: 44%; }
.ind-table th[scope="row"] { font-weight: 500; }
.ltr { color: var(--muted); font-weight: 600; }
.gapcell { font-weight: 700; }
.legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0 10px; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; }
.sw-m { margin-left: 12px; }
.sw-f, .qf { background: var(--c-f); }
.sw-m, .qm { background: var(--c-m); }
.qrow { margin: 0 0 14px; }
.qlabel { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.qbar { display: flex; height: 22px; border-radius: 6px; overflow: hidden; background: var(--border); margin: 4px 0 2px; }
.qbar span { display: block; height: 100%; }
.qnums { display: flex; justify-content: space-between; gap: 10px; }
.cat-table { table-layout: fixed; font-size: .9rem; }
.cat-table thead th:first-child { width: 24%; }
.cat-table thead th:nth-child(2) { width: 14%; }
.cat-table thead th:last-child { width: 22%; }
.cat-table th, .cat-table td { vertical-align: top; overflow-wrap: anywhere; }
.cat-table th.c-name { font-weight: 600; }
.cat-table .strong { font-weight: 700; }
.cat-table tr.is-small td.num { color: var(--muted); }
.badges { display: inline-flex; flex-wrap: wrap; gap: 4px 6px; }
.badge { display: inline-block; font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); margin: 1px 0; white-space: nowrap; }
.badge-flag { background: var(--warn-bg); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, var(--border)); }
.badge-ok { background: var(--positive-soft); color: var(--positive); border-color: color-mix(in srgb, var(--positive) 40%, var(--border)); }
.badge-small { background: var(--accent-soft); color: var(--accent-strong); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }

/* export + premium */
.premium { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.premium-tag { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin: 0 0 4px; }
.ticks { padding-left: 20px; }
.ticks li { margin: 4px 0; }
.disclaimer-box { margin-top: 28px; }
.faq { margin-top: 36px; }
.report { display: none; }

@media (max-width: 640px) {
  .ind-table thead, .cat-table thead { display: none; }
  .ind-table, .ind-table tbody, .ind-table tr, .ind-table th, .ind-table td,
  .cat-table, .cat-table tbody, .cat-table tr, .cat-table th, .cat-table td { display: block; width: 100%; }
  .ind-table tr, .cat-table tr { border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; margin: 0 0 10px; }
  .ind-table th, .ind-table td, .cat-table th, .cat-table td { border: 0; padding: 2px 0; }
  .ind-table td, .cat-table td { display: flex; justify-content: space-between; gap: 12px; }
  .ind-table td[data-label]::before, .cat-table td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .82rem; font-weight: 500; white-space: normal; }
  .cat-table th.c-name { font-size: 1rem; }
  .badges { justify-content: flex-end; }
  .headline { gap: 8px 28px; }
}

@media print {
  .no-print, header.site, footer.site, .consent-bar, .stepper, .fd-overlay { display: none !important; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  body.printing main > *:not(#report) { display: none !important; }
  body.printing .report { display: block !important; }
  .report h1 { font-size: 18pt; margin: 0 0 6pt; }
  .report h2 { font-size: 12.5pt; margin: 14pt 0 6pt; }
  .report h3 { font-size: 11pt; margin: 10pt 0 4pt; }
  .report table { width: 100%; border-collapse: collapse; margin: 4pt 0 8pt; font-size: 9.5pt; }
  .report th, .report td { border: 1px solid #999; padding: 3pt 5pt; text-align: left; color: #000; background: #fff; }
  .report thead th { text-transform: none; letter-spacing: 0; font-size: 9pt; color: #000; background: #eee; }
  .report .small { font-size: 9pt; color: #333; }
  .report .pb { break-before: page; page-break-before: always; }
  .wb-cat { break-inside: avoid; border: 1px solid #999; padding: 6pt 8pt; margin: 6pt 0; }
  .wb-field { border-bottom: 1px solid #bbb; min-height: 40pt; margin: 4pt 0; font-size: 9pt; }
  .wb-short { min-height: 20pt; }
}
