.pj { margin: 0; padding: 0; border: 0; min-width: 0; }
.pj__legende, .pj__knopf { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pj__knopf { opacity: 0; pointer-events: none; }

.pj__reihe { display: grid; gap: var(--a-3); }
.pj__karte { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--a-1); min-width: 0; align-content: start; -webkit-tap-highlight-color: transparent; }   
.pj__feld { position: relative; display: block; aspect-ratio: 1800 / 1125; overflow: hidden; border-radius: 4px; background: var(--flaeche); }   
.pj__feld img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 0; }
.pj__schmal { display: none; }                  

@media (max-width: 799px) {
  .pj__reihe { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--a-3) var(--a-2); }
  .pj__karte { cursor: pointer; touch-action: manipulation; }
  .pj__art { display: none; }                   
  #pj-1:checked ~ .pj__reihe .pj__karte--1, #pj-2:checked ~ .pj__reihe .pj__karte--2, #pj-3:checked ~ .pj__reihe .pj__karte--3 { grid-column: 1 / -1; order: -1; cursor: default; }
  #pj-1:checked ~ .pj__reihe .pj__karte--1 .pj__name, #pj-2:checked ~ .pj__reihe .pj__karte--2 .pj__name, #pj-3:checked ~ .pj__reihe .pj__karte--3 .pj__name { color: var(--text); }
  #pj-1:checked ~ .pj__reihe .pj__karte--1 .pj__art, #pj-2:checked ~ .pj__reihe .pj__karte--2 .pj__art, #pj-3:checked ~ .pj__reihe .pj__karte--3 .pj__art { display: inline; }
}

@media (max-width: 799px) and (prefers-reduced-motion: no-preference) {
  html:not(.ruhe) #pj-1:checked ~ .pj__reihe .pj__karte--1 .pj__feld, html:not(.ruhe) #pj-2:checked ~ .pj__reihe .pj__karte--2 .pj__feld, html:not(.ruhe) #pj-3:checked ~ .pj__reihe .pj__karte--3 .pj__feld { animation: pj-gross 380ms var(--ruhig); }
}
@keyframes pj-gross { from { opacity: 0.35; transform: scale(0.965); } }

@media (min-width: 800px) {
  
  .pj__reihe { display: flex; align-items: flex-start; container-type: inline-size; }
  .pj__karte { flex: 0.4621 1 0; cursor: pointer; touch-action: manipulation; }
  .pj__feld { aspect-ratio: auto; height: calc((100cqw - 2 * var(--a-3)) / 2.5242); }
  .pj__feld img { object-position: 50% 50%; }
  .pj__schmal { display: block; }
  .pj__breit { opacity: 0; }
  .pj__art { display: none; }                   

  #pj-1:checked ~ .pj__reihe .pj__karte--1, #pj-2:checked ~ .pj__reihe .pj__karte--2, #pj-3:checked ~ .pj__reihe .pj__karte--3 { flex-grow: 1.6; cursor: default; }
  #pj-1:checked ~ .pj__reihe .pj__karte--1 .pj__breit, #pj-2:checked ~ .pj__reihe .pj__karte--2 .pj__breit, #pj-3:checked ~ .pj__reihe .pj__karte--3 .pj__breit { opacity: 1; }
  #pj-1:checked ~ .pj__reihe .pj__karte--1 .pj__schmal, #pj-2:checked ~ .pj__reihe .pj__karte--2 .pj__schmal, #pj-3:checked ~ .pj__reihe .pj__karte--3 .pj__schmal { opacity: 0; }
  #pj-1:checked ~ .pj__reihe .pj__karte--1 .pj__name, #pj-2:checked ~ .pj__reihe .pj__karte--2 .pj__name, #pj-3:checked ~ .pj__reihe .pj__karte--3 .pj__name { color: var(--text); }
  #pj-1:checked ~ .pj__reihe .pj__karte--1 .pj__art, #pj-2:checked ~ .pj__reihe .pj__karte--2 .pj__art, #pj-3:checked ~ .pj__reihe .pj__karte--3 .pj__art { display: inline; }
}

#pj-1:focus-visible ~ .pj__reihe .pj__karte--1 .pj__feld, #pj-2:focus-visible ~ .pj__reihe .pj__karte--2 .pj__feld, #pj-3:focus-visible ~ .pj__reihe .pj__karte--3 .pj__feld { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (hover: hover) and (pointer: fine) and (min-width: 800px) {
  .pj__feld { transition: transform 260ms var(--ruhig), box-shadow 260ms var(--ruhig); }
  .pj__karte:hover .pj__feld { transform: translateY(-8px) scale(1.025); box-shadow: 0 26px 44px -22px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(213, 187, 130, 0.55); }
  #pj-1:checked ~ .pj__reihe .pj__karte--1:hover .pj__feld, #pj-2:checked ~ .pj__reihe .pj__karte--2:hover .pj__feld, #pj-3:checked ~ .pj__reihe .pj__karte--3:hover .pj__feld { transform: none; box-shadow: none; }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 800px) {
  html:not(.ruhe) .pj__karte { transition: flex-grow 620ms cubic-bezier(.3, .75, .25, 1); }
  html:not(.ruhe) .pj__feld img { transition: opacity 420ms ease; }
  html:not(.ruhe) .pj__name { transition: color 300ms ease; }
}

.pj__reihe { position: relative; }
.pj__gross {
  --pj-warte: 380ms;
  position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 1800 / 1125;
  margin: 0; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--text);
  -webkit-appearance: none; appearance: none; cursor: zoom-in; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.pj__gross[hidden] { display: none; }
.pj__zeichen { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(5, 6, 6, 0.78); box-shadow: inset 0 0 0 1px rgba(243, 243, 238, 0.22); transition: box-shadow 260ms var(--ruhig); }
.pj__zeichen svg, .pjg__zu svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) { .pj__gross:hover .pj__zeichen { box-shadow: inset 0 0 0 1px rgba(213, 187, 130, 0.75); } }

#pj-1:checked ~ .pj__reihe .pj__gross { animation: pj-lupe-1 var(--pj-warte) step-end; }
#pj-2:checked ~ .pj__reihe .pj__gross { animation: pj-lupe-2 var(--pj-warte) step-end; }
#pj-3:checked ~ .pj__reihe .pj__gross { animation: pj-lupe-3 var(--pj-warte) step-end; }
@keyframes pj-lupe-1 { from { visibility: hidden; } }
@keyframes pj-lupe-2 { from { visibility: hidden; } }
@keyframes pj-lupe-3 { from { visibility: hidden; } }
@media (min-width: 800px) {
  
  .pj__gross { --pj-warte: 620ms; --pj-h: calc((100cqw - 2 * var(--a-3)) / 2.5242); width: calc(var(--pj-h) * 1.6); height: var(--pj-h); aspect-ratio: auto; }
  .pj__zeichen { right: 12px; bottom: 12px; width: 36px; height: 36px; }
  #pj-2:checked ~ .pj__reihe .pj__gross { left: calc(var(--pj-h) * 0.4621 + var(--a-3)); }
  #pj-3:checked ~ .pj__reihe .pj__gross { left: calc(var(--pj-h) * 0.9242 + 2 * var(--a-3)); }
}

html.pj-gross-offen { overflow: hidden; }       
.pjg { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: var(--grund); color: var(--text); }
.pjg[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); }   
.pjg::backdrop { background: var(--grund); }
.pjg__kopf { display: flex; align-items: center; justify-content: space-between; gap: var(--a-2); padding: var(--a-1) var(--rand); }
.pjg__titel { color: var(--text); }
.pjg__zu { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text); box-shadow: inset 0 0 0 1px var(--linie); -webkit-appearance: none; appearance: none; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: box-shadow 260ms var(--ruhig); }
.pjg__zu:focus-visible { border-radius: 50%; }
@media (hover: hover) and (pointer: fine) { .pjg__zu:hover { box-shadow: inset 0 0 0 1px rgba(213, 187, 130, 0.75); } }

.pjg__buehne { display: flex; align-items: center; overflow: hidden; padding-bottom: calc(var(--a-2) + 2px + var(--a-3)); cursor: zoom-out; }
.pjg__bild {
  flex: none; margin: auto; width: auto; max-width: none; aspect-ratio: 1800 / 1125; border-radius: 4px; background: var(--flaeche); cursor: default;
  height: min(1125px, 100vh - 136px, (100vw - 2 * var(--rand)) / 1.6);
}
@supports (height: 100dvh) {
  .pjg { height: 100dvh; }
  .pjg__bild { height: min(1125px, 100dvh - 136px, (100vw - 2 * var(--rand)) / 1.6); }
}

@media (prefers-reduced-motion: no-preference) {
  html:not(.ruhe) .pjg[open] .pjg__bild { animation: pj-gross 380ms var(--ruhig); }
}

.pj__karte .pj__feld { flex: 0 0 100%; }
.pj__web { display: none; align-items: center; gap: 6px; margin-left: auto; color: var(--text-2); text-decoration: none; white-space: nowrap; border-radius: 2px; transition: color 260ms var(--ruhig); }
.pj__web svg { display: block; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pj__web:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .pj__web:hover { color: var(--gold); } }
#pj-1:checked ~ .pj__reihe .pj__karte--1, #pj-2:checked ~ .pj__reihe .pj__karte--2, #pj-3:checked ~ .pj__reihe .pj__karte--3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--a-1) var(--a-2); }
#pj-1:checked ~ .pj__reihe .pj__karte--1 .pj__web, #pj-2:checked ~ .pj__reihe .pj__karte--2 .pj__web, #pj-3:checked ~ .pj__reihe .pj__karte--3 .pj__web { display: inline-flex; }

#projekte-titel { max-width: none; white-space: nowrap; font-size: min(clamp(2rem, 4.2vw, 3.5rem), (100vw - 2 * var(--rand)) / 15); }
