/* Stellenvergleich (/stellen/vergleich/). Baut auf site.css und stellen.css auf. */

.vgl-wrap { padding-block: 32px 64px; }
.vgl-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.vgl-eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.vgl-h1 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 8px; }
.vgl-intro { margin: 0; max-width: 62ch; color: var(--muted); font-size: 15px; }
.vgl-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.vgl-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; padding: 9px 14px; border: 1px solid var(--line-field); border-radius: 999px; background: var(--white); }
.vgl-switch input { accent-color: var(--ink); width: 16px; height: 16px; }
.vgl-count { color: var(--soft); font-weight: 400; }
.vgl-btn { font: inherit; font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--on-dark); cursor: pointer; }
.vgl-btn:hover { background: var(--lime); color: var(--ink); }
.vgl-note { background: var(--white); border: 1px solid var(--line-card); border-radius: 12px; padding: 12px 16px; font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.vgl-note.is-warn { border-color: var(--rust); color: var(--rust); }
.vgl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Highlight-Kacheln */
.vgl-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; list-style: none; margin: 0 0 24px; padding: 0; }
.vgl-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 16px; background: var(--white); border: 1px solid var(--line-card); min-width: 0; }
.vgl-tile-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.vgl-tile-value { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
.vgl-tile-sub { font-size: 13px; color: var(--muted); }
.vgl-tile.tile-netto { background: var(--lime); border-color: var(--lime); }
.vgl-tile.tile-netto .vgl-tile-label, .vgl-tile.tile-netto .vgl-tile-sub { color: var(--ink); }
.vgl-tile.tile-verbeamtung .vgl-tile-value { font-size: 28px; }

/* Tabelle */
.vgl-scroll { overflow-x: auto; border-radius: 16px; -webkit-overflow-scrolling: touch; }
.vgl-scroll:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.vgl-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; table-layout: fixed; background: var(--white); border: 1px solid var(--line-card); border-radius: 16px; font-size: 15px; }
.vgl-table.cols-1 { min-width: 520px; }
.vgl-table.cols-3, .vgl-table.cols-4 { min-width: 980px; }
.vgl-table > thead > tr > th:first-child, .vgl-table tbody th[scope="row"] { width: 170px; }
.vgl-table th, .vgl-table td { padding: 12px 16px; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line-soft); overflow-wrap: anywhere; }
.vgl-table tbody th[scope="row"], .vgl-corner { position: sticky; left: 0; z-index: 2; background: var(--white); font-weight: 600; color: var(--muted); font-size: 14px; border-right: 1px solid var(--line-soft); }
.vgl-hint { display: block; font-weight: 400; font-size: 12px; color: var(--soft); }

/* Kopf-Karten */
.vgl-table thead th { border-bottom: 1px solid var(--line); padding: 16px; background: var(--white); }
.vgl-card { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 200px; padding-right: 22px; font-weight: 400; }
.vgl-remove { position: absolute; top: -4px; right: -4px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; line-height: 1; color: var(--muted); background: var(--bg); text-decoration: none; }
.vgl-remove:hover { background: var(--ink); color: var(--on-dark); text-decoration: none; }
.vgl-title { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.25; margin: 4px 0 0; letter-spacing: -.01em; }
.vgl-title a { color: var(--ink); }
.vgl-employer, .vgl-loc { margin: 0; font-size: 14px; color: var(--muted); }
.vgl-employer a { font-weight: 600; color: var(--ink); }
.vgl-card-actions { margin-top: auto; padding-top: 8px; }
.vgl-add-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 200px; border: 2px dashed var(--line-field); border-radius: 12px; padding: 16px; font-weight: 400; font-size: 14px; color: var(--muted); }
.vgl-add-card p { margin: 0; font-weight: 600; color: var(--ink); }
.vgl-add-cell { background: transparent; }

/* Netto-Zeile (dunkel, wie das Gehaltspanel) */
.vgl-netto-group th, .vgl-netto-group td { background: var(--ink); color: var(--on-dark); border-bottom: 0; padding-block: 18px; }
.vgl-netto-group th[scope="row"] { color: var(--lime); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; border-right-color: rgba(233, 239, 228, .15); }
.vgl-netto-cell { position: relative; }
.vgl-net { display: block; font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.05; letter-spacing: -.02em; }
.vgl-net-label { display: block; margin-top: 4px; font-size: 12px; color: var(--on-dark-soft); }
.vgl-netto-group .vgl-none { color: var(--on-dark-soft); }
.vgl-netto-group .is-best { background: var(--lime); color: var(--ink); }
.vgl-netto-group .is-best .vgl-net-label { color: var(--ink); }
.vgl-netto-cell.is-personal .vgl-net-label::after { content: ' · Ihre Steuerdaten'; }

/* Abschnitte */
.vgl-sec-title th { background: var(--bg); font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--ink); padding: 18px 16px 10px; position: sticky; left: 0; border-bottom: 1px solid var(--line); }
.vgl-section .vgl-row:last-child th, .vgl-section .vgl-row:last-child td { border-bottom: 0; }
.vgl-none { color: var(--soft); font-size: 14px; }
.vgl-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 2px; }
.vgl-deadline.state-soon { color: var(--rust); font-weight: 600; }
.vgl-deadline.state-expired { color: var(--rust); }
.vgl-left { color: var(--soft); font-size: 13px; }
td.is-best { background: var(--lime); font-weight: 600; }
td.is-best .vgl-left { color: var(--ink); }
.vgl-best-mark::before { content: '✓'; display: inline-block; margin-left: 8px; font-weight: 700; font-size: 13px; }
.vgl-netto-group .vgl-best-mark::before { position: absolute; top: 14px; right: 14px; margin: 0; }

/* Nur Unterschiede */
.vgl-table.only-diff tr.vgl-row[data-diff="0"]:not(.vgl-netto) { display: none; }

/* Leerer Zustand */
.vgl-empty { background: var(--white); border: 1px solid var(--line-card); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.vgl-empty-title { font-family: var(--display); font-weight: 700; font-size: 24px; margin: 0; }
.vgl-empty p { margin: 0; color: var(--muted); max-width: 60ch; }
.vgl-empty-actions, .vgl-empty-merkliste { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.vgl-empty-link { display: inline-flex; width: auto; }
.vgl-empty[hidden], .vgl-empty-merkliste[hidden] { display: none; }

.vgl-source { margin: 16px 0 0; font-size: 13px; color: var(--soft); max-width: 80ch; }
.vgl-print-meta { display: none; }

@media (max-width: 700px) {
  .vgl-wrap { padding-block: 20px 56px; }
  .vgl-table > thead > tr > th:first-child, .vgl-table tbody th[scope="row"] { width: 112px; }
  .vgl-table th, .vgl-table td { padding: 10px 12px; }
  .vgl-table, .vgl-table.cols-1, .vgl-table.cols-3, .vgl-table.cols-4 { table-layout: auto; min-width: 0; }
  .vgl-table.cols-1 .vgl-job, .vgl-table .vgl-job { min-width: 230px; }
  .vgl-table .vgl-add { min-width: 200px; }
  .vgl-net { font-size: 24px; }
  .vgl-table tbody th[scope="row"] { font-size: 13px; }
  .vgl-tile-value { font-size: 16px; }
}

/* Druck: nur Tabelle, quer */
@page { size: A4 landscape; margin: 12mm; }
@media print {
  .site-nav, .footer-links, .site-footer, .skip, .search-dialog, .vergleich-leiste, .vgl-tools, .vgl-remove, .vgl-card-actions, .vgl-add, .vgl-add-cell, .vgl-eyebrow, .vgl-note, .vgl-empty-actions { display: none !important; }
  body { background: #fff; }
  .wrap { max-width: none; padding-inline: 0; }
  .vgl-wrap { padding: 0; }
  .vgl-print-meta { display: block; font-size: 11px; color: #333; margin: 0 0 8px; }
  .vgl-h1 { font-size: 20px; margin: 0 0 4px; }
  .vgl-intro { font-size: 10px; }
  .vgl-scroll { overflow: visible; }
  .vgl-table, .vgl-table.cols-3, .vgl-table.cols-4 { min-width: 0; width: 100%; font-size: 10px; border-radius: 0; }
  .vgl-table th, .vgl-table td { padding: 5px 7px; position: static !important; }
  .vgl-card { min-height: 0; padding-right: 0; }
  .vgl-title { font-size: 12px; }
  .vgl-net { font-size: 16px; }
  .vgl-tiles { grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
  .vgl-tile { padding: 6px 8px; }
  .vgl-tile-value { font-size: 11px; }
  .vgl-tile-sub, .vgl-tile-label { font-size: 8px; }
  .vgl-table tr { break-inside: avoid; }
  .vgl-table, .vgl-netto-group th, .vgl-netto-group td, td.is-best, .vgl-tile.tile-netto, .vgl-sec-title th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .vgl-source { font-size: 8px; }
}
