/* Overview thumbnails share a single frame. Detail photos retain their own fit. */
/* Quiet link feedback, without a floating label or additional image crop. */
.project-image, .gallery-tile {
  transition: box-shadow 220ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .project-image:hover, .gallery-tile:hover {
    box-shadow: 0 6px 18px rgb(35 43 37 / 16%);
  }
  .project-card:has(.project-image:hover) .project-caption h3 {
    color: var(--accent);
  }
}
.project-image:focus-visible, .gallery-tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .project-image, .gallery-tile { transition: none; }
}
.project-image,
.catalog-section .project-image,
.home-property-grid .project-image,
.related-grid > a > div {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.project-image > img,
body .home-property-grid .project-image > img,
.related-grid > a > div > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--card-focus, 50% 50%);
}
.discovery-card > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: var(--card-focus, 50% 50%);
}
.project-grid > .project-card:nth-child(even) { padding-top: 0; }
/* Individual framing belongs to thumbnails, never to a project's full image. */
:is(.project-image, .discovery-card, .related-grid > a)[href="projekt-mangfallstrasse.html"] { --card-focus: 50% 54%; }
:is(.project-image, .discovery-card, .related-grid > a)[href="projekt-binderstrasse.html"] { --card-focus: 50% 55%; }
:is(.project-image, .discovery-card, .related-grid > a)[href="projekt-mietenkamer-strasse.html"] { --card-focus: 50% 58%; }

/* All project cards remain visible by default; phone filters are optional. */
.catalog-date { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.catalog-date > span { color: var(--ink); }
.catalog-map-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.catalog-map-link:hover { color: var(--accent); }
.catalog-filters { scroll-margin-top: 90px; }
.catalog-filters > summary { display: none; }
.catalog-apply { display: none; }
@media(max-width:760px) {
 .catalog-section { padding-top: 12px; }
 .catalog-section .catalog-heading { margin: 0 0 12px; gap: 0; }
 .catalog-heading h2 { display: none; }
 .catalog-jumps { display: flex; flex-wrap: wrap; gap: 0 24px; }
 .catalog-jumps a { font-size: 14px; gap: 10px; padding: 8px 0; }
 .catalog-jumps a span { font-size: 16px; }
 .catalog-filters { border-block: 1px solid var(--line); }
 .catalog-filters > summary { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; list-style: none; font-size: 16px; }
 .catalog-filters > summary::-webkit-details-marker { display: none; }
 .catalog-filters > summary::after { content: '+'; margin-left: auto; font-size: 24px; }
 .catalog-filters[open] > summary::after { content: '\2212'; }
 #catalog-filter-state { font-size: 12px; color: var(--accent); }
 .catalog-filter-body { padding: 12px 0 20px; }
 .catalog-filter-body .catalog-shortcuts { margin-bottom: 16px; gap: 8px; }
 .catalog-filter-body .catalog-shortcuts button { font-size: 14px; min-height: 44px; padding: 8px 14px; }
 .catalog-filter-body .catalog-tools { display: grid; gap: 12px; margin-bottom: 12px; }
 .catalog-filter-body .catalog-year-note { font-size: 12px; line-height: 1.5; }
 .catalog-apply:not([hidden]) { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; margin-top: 16px; width: 100%; background: var(--ink); color: var(--paper); font-size: 15px; }
 .catalog-section .catalog-results { gap: 4px 16px; margin: 8px 0 16px; min-height: 32px; }
 .catalog-results .results-count { font-size: 13px; }
 .catalog-results button { font-size: 13px; padding: 6px 0; border: 0; text-decoration: underline; text-underline-offset: 3px; }
 .catalog-results button:disabled { display: none; }
}
.catalog-current-status { display: grid; gap: 5px; margin: 14px 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.catalog-current-status > span { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.catalog-section { padding-top: clamp(28px, 5vw, 64px); }
.catalog-heading h1 { font-size: clamp(32px, 4.5vw, 64px); font-weight: 400; line-height: 1.1; letter-spacing: -.035em; margin: 0; }
.catalog-introduction { max-width: 760px; margin: 0 0 28px; color: var(--muted); font-size: 17px; line-height: 1.6; }
@media (max-width: 760px) {
  #projektuebersicht.catalog-section { padding-top: 24px; }
  #projektuebersicht .catalog-heading { gap: 16px; }
  .catalog-introduction { margin-bottom: 20px; font-size: 16px; }
}
