/* ============================================================
   Talent-Pool — Profile als Karteikarten auf dunklem Grund,
   Suche und Filter groß, die Anfrage als Bon am Pass.
   ============================================================ */

/* ---------- Suche + Filter ---------- */
.tp-bar {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.9rem 1rem; align-items: center;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.tp-search__box {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.9rem;
  min-height: 68px; padding: 0 0.75rem 0 1.5rem;
  background: var(--green-800); border: 1px solid var(--line-inv); border-radius: 999px;
  cursor: text;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background-color var(--dur-fast);
}
.tp-search__box svg { width: 24px; height: 24px; color: var(--brass); }
.tp-search__box input {
  width: 100%; min-width: 0; height: 66px; padding: 0;
  font: inherit; font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem); color: var(--porcelain);
  background: none; border: 0; outline: none; appearance: none; -webkit-appearance: none;
  text-overflow: ellipsis;
}
.tp-search__box input::placeholder { color: var(--mist); opacity: 1; }
.tp-search__box input::-webkit-search-cancel-button { display: none; }
.tp-search__box:focus-within { border-color: var(--brass); background: var(--green-700); box-shadow: 0 0 0 3px rgb(201 164 106 / .3); }
.tp-search__clear {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.5rem; line-height: 1; color: var(--porcelain); background: rgb(240 242 236 / .1);
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
@media (hover: hover) {
  .tp-search__box:hover { border-color: rgb(240 242 236 / .4); }
  .tp-search__clear:hover { background: var(--brass); color: var(--ink); }
}
.tp-search__count { grid-column: 1 / -1; min-height: 1.5em; font-family: var(--font-label); font-size: 0.8rem; letter-spacing: 0.05em; color: var(--brass); padding-left: 1.5rem; }

.tp-filter { display: flex; gap: 0.3rem; padding: 0.4rem; border: 1px solid var(--line-inv); border-radius: 999px; min-height: 68px; }
.tp-filter__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0 1.35em; border-radius: 999px;
  font-weight: 600; font-size: 1rem; color: var(--porcelain); white-space: nowrap;
  transition: background-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
.tp-filter__btn span {
  font-family: var(--font-label); font-weight: 500; font-size: 0.72rem; line-height: 1;
  min-width: 1.9em; padding: 0.4em 0.45em; border-radius: 999px; text-align: center;
  background: rgb(240 242 236 / .12); color: var(--mist);
}
.tp-filter__btn.is-active { background: var(--porcelain); color: var(--ink); }
.tp-filter__btn.is-active span { background: var(--ink); color: var(--brass); }
.tp-filter__btn:active { transform: scale(0.96); }
@media (hover: hover) { .tp-filter__btn:not(.is-active):hover { background: rgb(240 242 236 / .1); } }

/* ---------- Gruppen ---------- */
.tp-group + .tp-group { margin-top: clamp(3rem, 6vw, 5rem); }
.tp-group__head {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 1.1rem; align-items: center;
  padding-bottom: 1.1rem; margin-bottom: clamp(1.25rem, 2.5vw, 2rem); border-bottom: 1px solid var(--line-inv);
}
.tp-group__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--green-700); color: var(--brass); }
.tp-group__icon svg { width: 60%; height: 60%; }
.tp-group__title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.4rem, 1.8rem + 2.2vw, 3.6rem); line-height: 0.9; letter-spacing: 0.002em; display: flex; align-items: flex-start; gap: 0.35rem; }
.tp-group__count { font-family: var(--font-label); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.04em; color: var(--brass); margin-top: 0.15em; }
.tp-group__sub { justify-self: end; text-align: right; font-family: var(--font-label); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mist); }

.tp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 1.6vw, 1.5rem); align-items: stretch; }
@media (max-width: 1080px) { .tp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .tp-cards { grid-template-columns: 1fr; } }

/* ---------- Setcard XL ---------- */
.tp-card-hidden { display: none !important; }
.setcard--xl { padding: 0; gap: 0; overflow: hidden; }
.setcard--xl > * { padding-inline: clamp(1.15rem, 1.8vw, 1.5rem); }
.tp-card__top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 0.8rem; background: var(--porcelain); border-bottom: 1px dashed rgb(14 21 18 / .3);
}
.tp-id { font-family: var(--font-label); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.04em; white-space: nowrap; }
.tp-id__label { font-weight: 400; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-right: 0.35em; }
.tp-cat { font-family: var(--font-label); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-text); display: inline-flex; align-items: center; gap: 0.55em; }
.tp-cat::before { content: ""; width: 0.6em; height: 0.6em; background: currentColor; }
.tp-cat--service { color: var(--green-500); }

.setcard--xl .setcard__head { padding-top: 1.35rem; align-items: flex-start; min-height: 0; }
.setcard--xl .setcard__role { font-size: clamp(1.75rem, 1.5rem + 0.6vw, 2.1rem); text-wrap: balance; }
.setcard--xl .setcard__field { font-size: 0.92rem; margin-top: 0.35rem; }
.setcard__avatar--service { background: var(--green-500); color: var(--porcelain); }

.tp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.25rem; padding-inline: 0 !important; border-block: 1px dashed rgb(14 21 18 / .3); }
.tp-stat { display: grid; align-content: start; gap: 0.3rem; padding: 0.85rem 0.6rem 0.9rem clamp(1.15rem, 1.8vw, 1.5rem); min-width: 0; }
.tp-stat + .tp-stat { border-left: 1px dashed rgb(14 21 18 / .3); padding-left: 0.85rem; }
.tp-stat b { font-family: var(--font-label); font-weight: 500; font-size: 1.12rem; line-height: 1.1; letter-spacing: -0.01em; color: var(--green-500); overflow-wrap: anywhere; }
.tp-stat span { font-family: var(--font-label); font-size: 0.66rem; line-height: 1.35; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); hyphens: auto; overflow-wrap: anywhere; }

.tp-text { margin-top: 1.15rem; font-size: 0.96rem; line-height: 1.55; color: var(--ink-soft); }
.setcard--xl .setcard__skills { margin-top: 1.1rem; padding-bottom: 1.35rem; align-content: flex-start; }
.tp-actions {
  margin-top: auto; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0.6rem;
  padding-block: 1rem; border-top: 1px solid var(--line); background: #fff;
}
.tp-actions .btn { min-height: 46px; padding-inline: 0.9em; }
.setcard--xl { flex: 1; }
.setcard--xl .setcard__skills { flex: 1; }
@media (hover: hover) { .setcard--xl:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); } }

/* ---------- Leerzustand + Hinweis ---------- */
.tp-empty { border: 1px dashed var(--line-inv); border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 3rem); max-width: 720px; }
.tp-empty__title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: var(--step-2); line-height: 1; }
.tp-empty p + p { margin-top: 0.9rem; color: var(--mist); }
.tp-empty .btn { margin-top: 1.5rem; }
.tp-empty a:not(.btn), .tp-note a { color: var(--brass); text-decoration: underline; text-underline-offset: 0.2em; }
.tp-note { margin-top: clamp(2rem, 4vw, 3rem); font-family: var(--font-label); font-size: 0.8rem; letter-spacing: 0.02em; color: var(--mist); }

/* ---------- Newsletter ---------- */
.nlx {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: center;
  padding: clamp(1.5rem, 4vw, 3.5rem); background: var(--green-800); border: 1px solid var(--line-inv); border-radius: var(--radius);
}
.nlx__text h2 { margin-top: 1rem; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); }
.nlx__text .muted { margin-top: 1.1rem; max-width: 50ch; }
.nlx__form { gap: 0.6rem; }
.nlx__label { font-weight: 600; font-size: 0.95rem; }
.nlx__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.6rem; }
.nlx__row input { border-radius: 999px !important; padding-inline: 1.35rem !important; border-color: transparent !important; }
.nlx__row .btn { min-height: 54px; }
.nlx__msg { font-size: 0.94rem; padding: 0.7rem 1rem; border-radius: var(--radius-sm); }
.nlx__msg--ok { background: rgb(127 184 148 / .16); color: #BFE3CC; border: 1px solid rgb(127 184 148 / .4); }
.nlx__msg--err { background: rgb(214 110 90 / .16); color: #F3C3B8; border: 1px solid rgb(214 110 90 / .45); }
.nlx__privacy { font-family: var(--font-label); font-size: 0.72rem; line-height: 1.6; color: var(--mist); margin-top: 0.3rem; }
@media (max-width: 900px) { .nlx { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .nlx__row { grid-template-columns: 1fr; } }

/* ---------- Zweispalter: Überschrift links, Inhalt rechts ---------- */
.tp-two { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2rem clamp(2rem, 6vw, 6rem); align-items: start; }
.tp-two__head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 2rem); }
.tp-two .faq { margin-inline: 0; max-width: none; width: 100%; }
@media (max-width: 900px) {
  .tp-two { grid-template-columns: 1fr; }
  .tp-two__head { position: static; }
}

/* ---------- Provision: drei Raten auf einer Zeitleiste ---------- */
.prov-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prov-card { position: relative; padding: 2.25rem clamp(1.25rem, 3vw, 2.5rem) 0 0; border-top: 1px solid var(--ink); }
.prov-card::before { content: ""; position: absolute; left: 0; top: -7px; width: 13px; height: 13px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 5px var(--paper); }
.prov-card__num { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(4.5rem, 3rem + 6vw, 8rem); line-height: 0.82; color: var(--green-500); font-variant-numeric: tabular-nums; }
.prov-card h3 { margin-top: 1.25rem; font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.45rem); }
.prov-card p { margin-top: 0.7rem; color: var(--ink-soft); max-width: 40ch; }
.prov-foot { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: center; }
.prov-note { font-family: var(--font-label); font-size: 0.78rem; line-height: 1.7; letter-spacing: 0.01em; color: var(--ink-soft); }
.prov-free { background: var(--green-900); color: var(--porcelain); border-radius: var(--radius); padding: clamp(1.35rem, 2.6vw, 2rem); }
.prov-free__label { font-family: var(--font-label); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); margin-bottom: 0.6rem; }
.prov-free ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
.prov-free li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; align-items: baseline; padding-block: 0.7rem; border-bottom: 1px solid var(--line-inv); }
.prov-free li::before { content: "✓"; font-family: var(--font-label); color: var(--brass); }
@media (min-width: 621px) { .prov-free li:nth-last-child(-n+2) { border-bottom: 0; padding-bottom: 0; } }
@media (max-width: 900px) {
  .prov-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .prov-card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1.25rem; align-items: start; padding-top: 1.5rem; padding-right: 0; }
  .prov-card__num { grid-row: span 2; font-size: 4.2rem; min-width: 2.2ch; }
  .prov-card h3 { margin-top: 0; }
  .prov-foot { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .prov-free ul { grid-template-columns: 1fr; }
  .prov-free li:last-child { border-bottom: 0; padding-bottom: 0; }
}

/* ============================================================
   Anfrage-Modal: links der Pass mit dem Bon, rechts die Felder
   ============================================================ */
.tpq { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: clamp(0.5rem, 2vw, 1.5rem); }
.tpq__backdrop { position: absolute; inset: 0; background: rgb(11 26 19 / .78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.tpq__panel {
  position: relative; width: min(1060px, 100%); max-height: calc(100svh - 2 * clamp(0.5rem, 2vw, 1.5rem));
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--porcelain); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.tpq:not([hidden]) .tpq__panel { animation: tpq-in 420ms var(--ease-out) backwards; }
.tpq:not([hidden]) .tpq__backdrop { animation: tpq-fade 260ms linear backwards; }
@keyframes tpq-in { from { opacity: 0; transform: translateY(22px) scale(0.985); } }
@keyframes tpq-fade { from { opacity: 0; } }
/* Schließen bleibt beim Scrollen im Panel oben stehen */
.tpq__bar { position: sticky; top: 0; height: 0; z-index: 5; }
.tpq__close {
  position: absolute; top: 0.9rem; right: 0.9rem; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); color: var(--ink); border: 1px solid var(--line);
  transition: background-color var(--dur-fast), color var(--dur-fast), transform var(--dur-base) var(--ease-out);
}
.tpq__close svg { width: 15px; height: 15px; }
@media (hover: hover) { .tpq__close:hover { background: var(--ink); color: var(--porcelain); transform: rotate(90deg); } }

.tpq__form-wrap { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); min-height: 100%; }

/* Der Pass */
.tpq__pass { position: relative; background: var(--green-900); padding: 22px clamp(1.25rem, 2.6vw, 2.25rem) clamp(2rem, 4vw, 3rem); overflow: hidden; border-radius: var(--radius) 0 0 var(--radius); }
.tpq__rail {
  position: absolute; top: 0; left: 0; right: 0; height: 22px; z-index: 2;
  background: linear-gradient(180deg, #E4E7E1 0%, #AEB5AD 38%, #6D756E 52%, #9BA39B 70%, #C9CEC8 100%);
  box-shadow: 0 6px 14px rgb(0 0 0 / .45), 0 1px 0 rgb(255 255 255 / .5) inset;
}
.tpq__pass .bon-wrap { transform: rotate(-0.8deg); transform-origin: 50% 0; }
.tpq:not([hidden]) .tpq__pass .bon-wrap { animation: tpq-print 900ms steps(16, end) 150ms backwards; }
@keyframes tpq-print { from { transform: translateY(-102%); } 85% { transform: translateY(0); } to { transform: rotate(-0.8deg); } }
.tpq__bon { padding-top: 1.5rem; }
.tpq__bon-sub { font-weight: 400; letter-spacing: 0.06em; color: var(--ink-soft); font-size: 0.72rem; }

/* Gewählte Profile: Positionen auf dem Bon */
.tpq__picked { display: grid; gap: 0.7rem; min-height: 2.6rem; }
.tpq__picked:empty::before { content: attr(data-empty); color: var(--ink-soft); font-size: 0.78rem; align-self: center; }
.tpq-chip { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 0.6rem; align-items: baseline; animation: tpq-chip 320ms var(--ease-out) backwards; }
.tpq-chip::before { content: "1 ×"; color: var(--ink-soft); }
.tpq-chip__id { font-weight: 500; font-size: 0.95rem; white-space: nowrap; }
.tpq-chip__role { display: block; font-family: var(--font-body); font-weight: 650; font-size: 0.92rem; line-height: 1.25; }
.tpq-chip__field { display: block; font-family: var(--font-body); font-size: 0.78rem; line-height: 1.3; color: var(--ink-soft); margin-top: 0.1rem; }
@keyframes tpq-chip { from { opacity: 0; transform: translateX(-8px); } }

.tpq__more-label { line-height: 1.5; margin-bottom: 0.35rem; }
.tpq__list { display: grid; }
.tpq-mini { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.7rem; align-items: center; min-height: 40px; padding-block: 0.3rem; cursor: pointer; border-bottom: 1px dotted rgb(14 21 18 / .25); }
.tpq-mini:last-child { border-bottom: 0; }
.tpq-mini input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tpq-mini__check { width: 20px; height: 20px; border: 1.5px solid rgb(14 21 18 / .55); border-radius: 4px; display: grid; place-items: center; color: transparent; background: #fff; transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.tpq-mini__check svg { width: 13px; height: 13px; }
.tpq-mini input:checked + .tpq-mini__check { background: var(--ink); border-color: var(--ink); color: var(--brass); }
.tpq-mini input:focus-visible + .tpq-mini__check { outline: 2px solid var(--brass-deep); outline-offset: 2px; }
.tpq-mini__body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.7rem; align-items: baseline; min-width: 0; }
.tpq-mini__id { font-size: 0.8rem; color: var(--ink-soft); white-space: nowrap; }
.tpq-mini__role { font-family: var(--font-body); font-size: 0.86rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpq-mini__field { display: none; }
.tpq-mini input:checked ~ .tpq-mini__body .tpq-mini__id { color: var(--ink); font-weight: 500; }
.tpq-mini input:checked ~ .tpq-mini__body .tpq-mini__role { font-weight: 650; }
@media (hover: hover) { .tpq-mini:hover .tpq-mini__check { border-color: var(--ink); } }
.tpq__bon .bon__barcode { height: 26px; }

/* Felder */
.tpq__side { padding: clamp(1.5rem, 4vw, 3rem); padding-top: clamp(2rem, 4vw, 3rem); min-width: 0; }
.tpq__side .eyebrow { padding-right: 3rem; }
.tpq__title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); line-height: 0.92; letter-spacing: 0.002em; margin-top: 0.9rem; }
.tpq__title span { color: var(--brass-text); white-space: nowrap; }
.tpq__form { margin-top: 1.75rem; gap: 1.1rem; }
.tpq__form textarea { min-height: 7rem; }
.tpq__submit { width: 100%; margin-top: 0.3rem; min-height: 54px; }
.tpq__privacy { text-align: center; }

/* Danke */
.tpq__thanks { display: grid; justify-items: center; text-align: center; gap: 1.1rem; padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem); }
.tpq__check { width: 84px; height: 84px; color: var(--green-500); }
.tpq__check circle { stroke-dasharray: 202; stroke-dashoffset: 202; animation: tpq-draw 700ms var(--ease-out) forwards; }
.tpq__check path { stroke-dasharray: 48; stroke-dashoffset: 48; animation: tpq-draw 450ms var(--ease-out) 550ms forwards; }
@keyframes tpq-draw { to { stroke-dashoffset: 0; } }
.tpq__thanks h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); line-height: 0.95; letter-spacing: 0.002em; }
.tpq__thanks p { color: var(--ink-soft); max-width: 44ch; overflow-wrap: anywhere; }
.tpq__thanks .btn { margin-top: 0.75rem; }

@media (max-width: 860px) {
  .tpq__form-wrap { grid-template-columns: 1fr; }
  .tpq__pass { border-radius: var(--radius) var(--radius) 0 0; padding-bottom: 2rem; }
  .tpq__pass .bon-wrap { transform: none; max-width: 30rem; margin-inline: auto; }
  @keyframes tpq-print { from { transform: translateY(-102%); } to { transform: none; } }
  .tpq__list { max-height: 11.6rem; overflow-y: auto; overscroll-behavior: contain; padding-right: 0.35rem; border-block: 1px dotted rgb(14 21 18 / .25); }
  .tpq__close { background: var(--green-900); color: var(--porcelain); border-color: var(--line-inv); top: 1.9rem; }
  .tpq__bon .bon__head { padding-inline: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tpq__check circle, .tpq__check path { stroke-dashoffset: 0; }
}

/* ============================================================
   Profil-Modal (Kandidatenpräsentation als Bildseiten oder PDF)
   ============================================================ */
.pdf-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: clamp(0.5rem, 2vw, 1.5rem); }
.pdf-modal__backdrop { position: absolute; inset: 0; background: rgb(11 26 19 / .78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.pdf-modal__panel {
  position: relative; display: flex; flex-direction: column; width: min(980px, 100%); height: calc(100svh - 2 * clamp(0.5rem, 2vw, 1.5rem));
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
  animation: tpq-in 420ms var(--ease-out) backwards;
}
.pdf-modal__head { display: flex; align-items: center; gap: 1rem; padding: 0.7rem 0.7rem 0.7rem 1.25rem; border-bottom: 1px dashed rgb(14 21 18 / .3); }
.pdf-modal__title { font-family: var(--font-label); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-modal__open { margin-left: auto; flex: none; font-weight: 600; font-size: 0.9rem; color: var(--brass-text); text-decoration: underline; text-underline-offset: 0.25em; white-space: nowrap; padding: 0.7em 0.3em; }
.pdf-modal__close { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: background-color var(--dur-fast), color var(--dur-fast); }
.pdf-modal__close svg { width: 15px; height: 15px; }
@media (hover: hover) { .pdf-modal__close:hover { background: var(--ink); color: var(--porcelain); } }
.pdf-modal__frame { flex: 1; width: 100%; border: 0; }
.pdf-modal__pages { flex: 1; overflow-y: auto; overscroll-behavior: contain; background: #DDE1DA; padding: clamp(0.75rem, 2vw, 1.5rem); display: flex; flex-direction: column; gap: clamp(0.75rem, 2vw, 1.5rem); align-items: center; }
.pdf-modal__pages img { width: 100%; max-width: 860px; height: auto; background: #fff; box-shadow: var(--shadow-md); }

/* ---------- Schmal ---------- */
@media (max-width: 860px) {
  .tp-bar { grid-template-columns: 1fr; }
  .tp-filter { justify-self: stretch; }
  .tp-filter__btn { flex: 1; padding-inline: 0.5em; }
  .tp-search__count { grid-row: 3; }
}
@media (max-width: 560px) {
  .tp-search__box { min-height: 60px; padding-left: 1.1rem; gap: 0.7rem; }
  .tp-search__box input { height: 58px; }
  .tp-filter { min-height: 60px; }
  .tp-group__head { grid-template-columns: auto minmax(0, 1fr); }
  .tp-group__sub { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .tp-group__icon { width: 44px; height: 44px; }
}

/* Karten einer Reihe teilen sich die Zeilen: Eckdaten, Text und Aktionen stehen auf einer Höhe */
@supports (grid-template-rows: subgrid) {
  .tp-cards { row-gap: 0; }
  .tp-cards > .setcard--xl { display: grid; grid-template-rows: subgrid; grid-row: span 6; margin-bottom: clamp(1rem, 1.6vw, 1.5rem); }
  .tp-cards > .setcard--xl[hidden] { display: none; }
}
