/* Proposal 18.10.2026: employer overviews (vorschlag/arbeitgeber.html, vorschlag/adj.html).
   Loaded only by these two pages. Tokens only from site.css (colours, type roles, radii, gaps);
   no colour or size of its own. WordPress/ACF later: one card template, one filter block. */

.vs-lead { max-width: var(--tj-measure); margin: 0; }
/* The stack of a section is a column flex box that shrinks its children to their content; cards measure their
   width as a container (container-type), so every block of this proposal takes the full width. */
.vs-sec :is(.vs-grid, .vs-filter, .vs-klassen, .vs-leer, .vs-jahrgang, .vs-jahrnav) { width: 100%; align-self: stretch; }

/* Grids: three columns of cards, four for the winners, two for the large winner cards. */
.vs-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--tj-gap);
  grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vs-grid--sieger { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vs-grid--gross { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Two classes: the one-column list of nominees must not take the two columns of .vs-grid below 1025 px
   (inside a half-width class column the cards were 97 px narrow at 768 px, qa_layout 18.10.2026). */
.vs-grid.vs-grid--kompakt { grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (max-width: 1279px) { .vs-grid--sieger { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .vs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .vs-grid, .vs-grid--sieger, .vs-grid--gross { grid-template-columns: minmax(0, 1fr); }
}

/* Card. A card is not one link (website and portrait are two targets), so it does not lift on hover;
   the links carry the hover (Nachtrag 25 rule 1). */
.vs-card { position: relative; display: flex; flex-direction: column; min-width: 0; container-type: inline-size;
  background: var(--tj-surface-white); border: 1px solid var(--tj-line); border-radius: var(--tj-r-inner); overflow: hidden; }
.vs-card[hidden], .vs-grid[hidden] { display: none; }
.vs-card__bild { position: relative; flex: none; aspect-ratio: 3 / 2; background: var(--tj-surface-tint); }
.vs-card__bild img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.vs-card__bild--ganz img { object-fit: scale-down; object-position: 50% 50%; }
.vs-card__logoflaeche { display: grid; place-items: center; aspect-ratio: 3 / 1; padding: 16px 24px;
  border-bottom: 1px solid var(--tj-line); }
.vs-card__logoflaeche img { max-width: min(100%, 240px); max-height: 72px; width: auto; height: auto; object-fit: contain; }

/* Flags below the photo, never on it (faces): gold for the winner, gold ring for a nomination
   (ink text on gold 7.66:1, contrast.py). */
.vs-flags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 20px 24px 0; }
.vs-flags + .vs-card__body { padding-top: 16px; }
/* In the directory the flags sit with the award years, inside the text (Boris 18.10.2026). */
.vs-card__body > .vs-flags { padding: 0; margin-bottom: -8px; }
.vs-flag { padding: 6px 12px; border-radius: var(--tj-r-btn); font-size: var(--tj-label); line-height: var(--tj-label-lh);
  font-weight: 600; color: var(--tj-text-strong); background: var(--tj-surface-white); }
.vs-flag--sieger { background: var(--tj-accent); }
.vs-flag--nominiert { box-shadow: inset 0 0 0 2px var(--tj-accent); }

.vs-card__body { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 20px 24px 24px; }
.vs-card__eyebrow { margin: 0; display: flex; align-items: center; gap: 10px; font-size: var(--tj-label);
  line-height: var(--tj-label-lh); font-weight: 600; color: var(--tj-text-strong); }
.vs-card__eyebrow::before { content: ""; flex: none; width: 24px; height: 2px; background: var(--tj-accent); }
.vs-card__titel { margin: -8px 0 0; font-size: var(--tj-statement); line-height: var(--tj-statement-lh);
  letter-spacing: var(--tj-statement-ls); font-weight: 500; color: var(--tj-text-strong); }
.vs-card--teaser .vs-card__titel { font-size: var(--tj-title); line-height: var(--tj-title-lh); letter-spacing: normal; }
.vs-card__name { margin: 0; min-width: 0; font-size: var(--tj-title); line-height: var(--tj-title-lh); font-weight: 600;
  letter-spacing: normal; color: var(--tj-text-strong); hyphens: auto; overflow-wrap: break-word; }
.vs-card__marke { display: flex; align-items: center; height: 40px; margin-bottom: -4px; }
.vs-card__logo { display: block; max-width: 160px; max-height: 40px; width: auto; height: auto; object-fit: contain; }

/* Key figures: value large, label below (dt after dd visually, dt first in the markup). */
.vs-kpis { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding-block: 14px;
  border-block: 1px solid var(--tj-line); }
.vs-kpis > div { flex: none; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; }
.vs-kpis > div + div { padding-left: 16px; border-left: 1px solid var(--tj-line); }
.vs-kpis dd { margin: 0; font-size: var(--tj-statement); line-height: var(--tj-statement-lh); letter-spacing: var(--tj-statement-ls);
  font-weight: 500; color: var(--tj-text-strong); }
.vs-kpis dt { font-size: var(--tj-label); line-height: var(--tj-label-lh); color: var(--tj-text); }
@container (max-width: 420px) {
  .vs-kpis dd { font-size: var(--tj-title); line-height: var(--tj-title-lh); letter-spacing: normal; font-weight: 600; }
}
/* Narrow cards (tablet grid, phone): the three figures as rows, label left, value right. */
@container (max-width: 380px) {
  .vs-kpis { flex-direction: column; gap: 0; padding-block: 4px; }
  .vs-kpis > div { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 0; }
  .vs-kpis > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--tj-line); }
}
.vs-nw { white-space: nowrap; }

.vs-card__meta { margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: var(--tj-label);
  line-height: var(--tj-label-lh); color: var(--tj-text); }
.vs-card__ort { font-weight: 600; color: var(--tj-text-strong); }

/* Award years: gold = winner that year, gold ring = nominated, tint = awarded. */
.vs-jahre { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.vs-jahre li { padding: 3px 10px; border-radius: var(--tj-r-btn); font-size: var(--tj-label); line-height: var(--tj-label-lh);
  font-weight: 500; color: var(--tj-text-strong); background: var(--tj-surface-tint); }
.vs-jahre .is-sieger { background: var(--tj-accent); }
.vs-jahre .is-nominiert { background: transparent; box-shadow: inset 0 0 0 2px var(--tj-accent); }

.vs-card__links { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.vs-link { font-size: var(--tj-label); line-height: var(--tj-label-lh); font-weight: 600; color: var(--tj-text-strong);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--tj-accent);
  transition: text-decoration-color var(--tj-t-ui) var(--tj-ease); }
@media (hover: hover) and (pointer: fine) { a.vs-link:hover { text-decoration-color: var(--tj-text-strong); } }
.vs-link--leer { text-decoration: none; color: var(--tj-text); }
.vs-link--haupt { flex-basis: 100%; }

.vs-weiter { margin: 0; }

/* Filter, simplified 18.10.2026. A toolbar on the paper, not a card: one search, three selects whose first
   option is the label, one range for the award years. Below: count, reset (only when filtered), sort.
   Phone: search plus a "Filter" button that opens the selects and the range. */
.vs-filter { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--tj-line); }
.vs-filter__leiste { display: grid; gap: 12px; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.05fr) minmax(0, 1.05fr) minmax(210px, .95fr); }
.vs-filter__felder { display: contents; }
.vs-filter__knopf { display: none; }

.vs-suche { position: relative; display: block; min-width: 0; }
.vs-suche .ic { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--tj-text); pointer-events: none; }
.vs-suche input, .vs-wahl select, .vs-filter__knopf {
  width: 100%; min-width: 0; height: 48px; padding: 0 18px; border: 1px solid var(--tj-line-field); border-radius: var(--tj-r-btn);
  background: var(--tj-surface-white); color: var(--tj-text-strong); font: inherit; font-size: 16px; line-height: 22px;
  transition: border-color var(--tj-t-ui) var(--tj-ease), box-shadow var(--tj-t-ui) var(--tj-ease), background-color var(--tj-t-ui) var(--tj-ease); }
.vs-suche input { padding-left: 46px; }
.vs-suche input::placeholder { color: var(--tj-text); opacity: 1; }
.vs-suche input::-webkit-search-cancel-button { cursor: pointer; }
.vs-wahl { display: block; min-width: 0; }
.vs-wahl select { padding-right: 44px; appearance: none; cursor: pointer; text-overflow: ellipsis; white-space: nowrap;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%231E1E1E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; }
/* A chosen value reads at a glance: ink ring, weight 600. */
.vs-wahl select.is-aktiv, .vs-suche input.is-aktiv { border-color: var(--tj-c-ink); box-shadow: inset 0 0 0 1px var(--tj-c-ink); font-weight: 600; }
.vs-suche input:focus-visible, .vs-wahl select:focus-visible, .vs-filter__knopf:focus-visible {
  outline: none; border-color: var(--tj-c-ink); box-shadow: 0 0 0 2px var(--tj-c-ink); }
@media (hover: hover) and (pointer: fine) {
  .vs-suche input:hover, .vs-wahl select:hover, .vs-filter__knopf:hover { border-color: var(--tj-c-ink); }
}

/* Award years as a two-handle range. The filled part is gold; the handles carry the contrast (ink ring on white). */
.vs-zeitraum { min-width: 0; display: grid; gap: 6px; padding: 0 4px; }
.vs-zeitraum__kopf { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  font-size: var(--tj-label); line-height: var(--tj-label-lh); color: var(--tj-text); }
.vs-zeitraum__wert { font-weight: 600; color: var(--tj-text-strong); font-variant-numeric: tabular-nums; }
.vs-zeitraum__regler { position: relative; height: 24px; --von: 11px; --bis: calc(100% - 11px); }
.vs-zeitraum__regler::before, .vs-zeitraum__regler::after { content: ""; position: absolute; top: 50%; height: 4px;
  transform: translateY(-50%); border-radius: 2px; pointer-events: none; }
.vs-zeitraum__regler::before { left: 11px; right: 11px; background: var(--tj-line-field); opacity: .35; }
.vs-zeitraum__regler::after { left: var(--von); width: calc(var(--bis) - var(--von)); background: var(--tj-accent); }
.vs-zeitraum__regler input { position: absolute; inset: 0; width: 100%; height: 24px; margin: 0; padding: 0;
  background: none; -webkit-appearance: none; appearance: none; pointer-events: none; z-index: 1; }
.vs-zeitraum__regler input.is-oben { z-index: 2; }
.vs-zeitraum__regler input::-webkit-slider-runnable-track { height: 24px; background: none; border: 0; }
.vs-zeitraum__regler input::-moz-range-track { height: 24px; background: none; border: 0; }
.vs-zeitraum__regler input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto;
  width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--tj-c-ink); background: var(--tj-surface-white);
  box-shadow: 0 1px 3px rgba(30, 30, 30, .25); cursor: grab; transition: transform var(--tj-t-ui) var(--tj-ease), box-shadow var(--tj-t-ui) var(--tj-ease); }
.vs-zeitraum__regler input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--tj-c-ink); background: var(--tj-surface-white); box-shadow: 0 1px 3px rgba(30, 30, 30, .25); cursor: grab; }
.vs-zeitraum__regler input:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.12); }
.vs-zeitraum__regler input:focus-visible { outline: none; }
.vs-zeitraum__regler input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--tj-surface-white), 0 0 0 5px var(--tj-c-ink); }
.vs-zeitraum__regler input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--tj-surface-white), 0 0 0 5px var(--tj-c-ink); }

.vs-filter__n { min-width: 24px; padding: 1px 8px; border-radius: var(--tj-r-btn); background: var(--tj-accent);
  font-size: var(--tj-label); line-height: var(--tj-label-lh); font-weight: 600; text-align: center; }
.vs-filter__n[hidden] { display: none; }

.vs-filter__fuss { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; }
.vs-zahl { margin: 0; font-size: var(--tj-body); line-height: var(--tj-body-lh); color: var(--tj-text); }
.vs-zahl strong { font-weight: 600; color: var(--tj-text-strong); font-variant-numeric: tabular-nums; }
.vs-reset { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: var(--tj-label);
  line-height: var(--tj-label-lh); font-weight: 600; color: var(--tj-text-strong);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--tj-accent); }
.vs-reset[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { .vs-reset:hover { text-decoration-color: var(--tj-text-strong); } }
.vs-sort { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: var(--tj-label);
  line-height: var(--tj-label-lh); color: var(--tj-text); }
.vs-sort select { min-width: 0; height: 40px; padding: 0 36px 0 14px; border: 1px solid var(--tj-line-field); border-radius: var(--tj-r-btn);
  background: var(--tj-surface-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%231E1E1E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none; cursor: pointer; font: inherit; font-size: var(--tj-label); font-weight: 600; color: var(--tj-text-strong); }
.vs-sort select:focus-visible { outline: none; border-color: var(--tj-c-ink); box-shadow: 0 0 0 2px var(--tj-c-ink); }

.vs-opt-link { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px;
  border: 2px solid var(--tj-c-gold-line); border-radius: var(--tj-r-btn); font-size: var(--tj-label); line-height: var(--tj-label-lh);
  font-weight: 500; color: var(--tj-text-strong); text-decoration: none;
  transition: background-color var(--tj-t-ui) var(--tj-ease); }
@media (hover: hover) and (pointer: fine) { a.vs-opt-link:hover { background: var(--tj-surface-tint); } }

@media (max-width: 1399px) {
  .vs-filter__leiste { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vs-zeitraum { grid-column: span 2; }
}
@media (max-width: 1024px) {
  .vs-filter__leiste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vs-suche { grid-column: 1 / -1; }
  .vs-zeitraum { grid-column: auto; }
}
/* Phone: search and a "Filter" button side by side; the button opens the selects and the range below. */
@media (max-width: 767px) {
  .vs-filter__leiste { grid-template-columns: minmax(0, 1fr) auto; }
  .vs-suche { grid-column: auto; }
  .vs-filter__knopf { display: inline-flex; align-items: center; gap: 8px; width: auto; padding: 0 16px; cursor: pointer; font-weight: 600; }
  .vs-filter__felder { display: none; grid-column: 1 / -1; gap: 12px; padding-top: 4px; }
  .vs-filter__felder.is-offen { display: grid; }
  .vs-filter__knopf[aria-expanded="true"] { border-color: var(--tj-c-ink); box-shadow: inset 0 0 0 1px var(--tj-c-ink); }
  .vs-zeitraum { padding: 4px 4px 0; }
  .vs-sort { margin-left: 0; width: 100%; }
  .vs-sort span { flex: none; }
  .vs-sort select { flex: 1; }
}

.vs-leer { padding: 48px 24px; text-align: center; border: 1px dashed var(--tj-line-field); border-radius: var(--tj-r-inner); }
.vs-leer[hidden], .vs-mehr-zeile[hidden] { display: none; }
.vs-leer p { margin: 0 0 12px; }
.vs-mehr-zeile { margin: 0; display: flex; justify-content: center; }

/* Winners page: nominees by size class, earlier years. */
.vs-klassen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--tj-gap); }
.vs-klasse__h { margin: 0 0 16px; display: flex; flex-direction: column; gap: 2px; font-size: var(--tj-title);
  line-height: var(--tj-title-lh); font-weight: 600; letter-spacing: normal; color: var(--tj-text-strong); }
.vs-klasse__h span { font-size: var(--tj-label); line-height: var(--tj-label-lh); font-weight: 400; color: var(--tj-text); }
.vs-jahrnav { display: flex; flex-wrap: wrap; gap: 8px; }
.vs-jahrgang { display: grid; gap: 16px; padding-top: 48px; scroll-margin-top: 120px; }
.vs-jahrgang + .vs-jahrgang { border-top: 1px solid var(--tj-line); margin-top: 24px; }
.vs-jahrgang__h { margin: 0; font-size: var(--tj-statement); line-height: var(--tj-statement-lh); letter-spacing: var(--tj-statement-ls);
  font-weight: 500; color: var(--tj-text-strong); }
.vs-jahrgang__k { margin: 8px 0 0; font-size: var(--tj-label); line-height: var(--tj-label-lh); font-weight: 600; color: var(--tj-text-strong); }

@media (max-width: 1280px) {
  .vs-klassen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .vs-klassen { grid-template-columns: minmax(0, 1fr); }
  .vs-card__body { padding: 18px 20px 22px; }
  .vs-flags { padding: 18px 20px 0; }
  .vs-card__titel { font-size: var(--tj-title); line-height: var(--tj-title-lh); letter-spacing: normal; }
}
