/* Portfolio-Seite – baut auf style.css auf */
.pf-head { padding: calc(var(--nav-h) + clamp(40px, 7vw, 88px)) 0 clamp(16px, 3vw, 28px); }
.pf-head h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 600; }

.pf-tools { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; margin-top: clamp(28px, 4vw, 44px); }
.pf-tools[hidden] { display: none; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-chip { font: inherit; font-size: .92rem; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-1); color: var(--text-2); cursor: pointer; transition: color .2s, background-color .2s, border-color .2s; }
.pf-chip:hover { color: var(--text); border-color: var(--text-3); }
.pf-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.pf-chip:focus-visible, .pf-search input:focus-visible, .pf-card a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.pf-search { position: relative; flex: 0 1 280px; min-width: 200px; }
.pf-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pf-search input { width: 100%; min-height: 44px; padding: 0 14px; font: inherit; font-size: .95rem; color: var(--text); background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-s); }
.pf-search input::placeholder { color: var(--text-3); }
.pf-search input:focus { border-color: var(--accent); }

.pf-count { margin-top: 20px; color: var(--text-3); font-size: .9rem; font-family: var(--mono); min-height: 1.4em; }

.pf-list { padding: 8px 0 clamp(56px, 8vw, 96px); }
.pf-grid, .pf-nojs { list-style: none; margin: 0; padding: 0; }
.pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.pf-nojs li { padding: 6px 0; }
.pf-card[hidden] { display: none; }
.pf-card { display: flex; flex-direction: column; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; transition: border-color .25s, transform .3s var(--ease-out); }
.pf-card:hover, .pf-card:focus-within { border-color: var(--petrol); transform: translateY(-3px); }
.pf-card.is-in { animation: pf-in .18s ease-out both; }
@keyframes pf-in { from { opacity: 0; } to { opacity: 1; } }
.pf-fav { display: inline-block; margin-left: 8px; padding: 1px 8px; font-size: .72rem; letter-spacing: .04em; border: 1px solid var(--line); border-radius: 999px; color: var(--text-2); vertical-align: middle; }

.pf-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .6s var(--ease-out); }
.pf-card:hover .pf-thumb img { transform: scale(1.03); }
.pf-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 22px; flex: 1; }
.pf-cat { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.pf-body h2 { font-size: 1.3rem; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.pf-branche { color: var(--text-2); font-size: .95rem; margin-top: -4px; }
.pf-kurz { color: var(--text-2); font-size: .95rem; line-height: 1.5; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 4px 0 0; }
.pf-tags li { font-size: .78rem; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.pf-link { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text); font-weight: 600; text-decoration: none; font-size: .95rem; }
.pf-link svg { width: 18px; height: 18px; color: var(--accent); transition: transform .25s var(--ease-out); }
.pf-link:hover svg { transform: translateX(4px); }
.pf-link::after { content: ""; position: absolute; inset: 0; }
.pf-card { position: relative; }

.pf-empty { text-align: center; max-width: 520px; margin: 24px auto; padding: 40px 24px; border: 1px dashed var(--line); border-radius: var(--r-m); }
.pf-empty[hidden] { display: none; }
.pf-empty h2 { font-size: 1.4rem; font-weight: 600; }
.pf-empty p { color: var(--text-2); margin: 12px 0 24px; }
.pf-empty .btn + .btn { margin-left: 8px; }

.pf-cta { padding: 0 0 clamp(72px, 10vw, 128px); }
.pf-cta-box { background: linear-gradient(135deg, var(--petrol-deep), var(--surface-1)); border: 1px solid var(--petrol); border-radius: var(--r-m); padding: clamp(28px, 5vw, 56px); }
.pf-cta-box h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.pf-cta-box p { color: var(--text-2); max-width: 52ch; margin-top: 14px; }
.pf-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

@media (max-width: 1000px) { .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .pf-grid { grid-template-columns: minmax(0, 1fr); }
  .pf-search { flex-basis: 100%; }
  .pf-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-bottom: 4px; scrollbar-width: none; width: calc(100% + 2 * var(--gutter)); }
  .pf-chips::-webkit-scrollbar { display: none; }
  .pf-chip { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-card.is-in { animation: none; }
  .pf-card, .pf-thumb img, .pf-link svg { transition: none; }
  .pf-card:hover, .pf-card:focus-within { transform: none; }
  .pf-card:hover .pf-thumb img { transform: none; }
}
