/* FOTOGRAFIE – abgestimmt auf die anderen Portfolio-Unterseiten. */
.photo-page-hero {
  min-height:430px;
  background-image:url('../images/portfolio/fotografie/hero_fotografie.webp');
  background-size:cover;
  background-position:center 49%;
}
.photo-page-hero-inner {min-height:430px;padding:52px 42px 66px;align-items:center;}
.photo-page-text {width:auto;max-width:none;}
.photo-page-text h1 {margin:0;font-size:clamp(3.3rem,7.1vw,6.3rem);font-weight:800;letter-spacing:-.035em;line-height:.99;}
.photo-page-ai {left:4%;bottom:24px;}
.photo-description {width:100%;background:#040b10;color:#eef4f9;}
.photo-description-inner {width:min(100%,1136px);margin:0 auto;padding:30px 24px 4px;}
.photo-description .photo-page-subtitle {margin:0 0 10px;color:#8dcced;font-size:19px;line-height:1.35;font-weight:700;}
.photo-description-inner > p:not(.photo-page-subtitle) {max-width:540px;margin:0;font-size:15px;line-height:1.75;color:#c4cfda;}
.photo-showcase {width:min(100%,1136px);margin:0 auto;padding:34px 24px 90px;color:#f4f7fb;}
.photo-showcase-intro {display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:10px 25px;padding-bottom:16px;margin-bottom:35px;border-bottom:1px solid rgba(125,184,215,.22);}
.photo-showcase-intro > span {font-size:12px;font-weight:700;letter-spacing:.15em;text-transform:uppercase;color:#8dcced;}
.photo-showcase-intro p {font-size:13px;line-height:1.5;color:#aebbc8;margin:0;}
.photo-project {margin:0 0 48px;}
.photo-showcase details.photo-project > summary.photo-project-heading {display:flex;align-items:center;gap:16px;padding-bottom:13px;margin:0 0 15px;border-bottom:1px solid rgba(125,184,215,.2);cursor:pointer;list-style:none;user-select:none;}
.photo-showcase summary.photo-project-heading::-webkit-details-marker {display:none;}
.photo-showcase summary.photo-project-heading::marker {content:"";}
.photo-project-heading > div {min-width:0;}
.photo-project-heading h2 {font-size:clamp(20px,2.4vw,27px);font-weight:700;line-height:1.15;margin:0 0 5px;}
.photo-project-heading p {font-size:12px;line-height:1.5;color:#aeb8c2;margin:0;}
.photo-project-count {margin-left:auto;white-space:nowrap;color:#98aaba;font-size:11px;}
.photo-project-action {display:inline-flex;align-items:center;gap:9px;white-space:nowrap;font-size:12px;color:#8dcced;margin-left:4px;}
.photo-project-action::after {content:"";width:8px;height:8px;display:block;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(225deg) translate(-2px,-2px);transition:transform .2s ease;}
.photo-project:not([open]) .photo-project-action {font-size:0;}
.photo-project:not([open]) .photo-project-action::before {content:"Aufklappen";font-size:12px;}
.photo-project:not([open]) .photo-project-action::after {transform:rotate(45deg) translate(-2px,-2px);}
.photo-project-heading:hover .photo-project-action {color:#c7efff;}
.photo-project-heading:focus-visible {outline:2px solid #8dcced;outline-offset:5px;border-radius:3px;}

/* Fotografien als übersichtliche, gleichmäßige Kacheln. */
.photo-project-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:stretch;}
.photo-work {min-width:0;margin:0;padding:11px 8px;display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:10px;overflow:hidden;background:linear-gradient(155deg,rgba(15,26,37,.88),rgba(7,11,17,.97));border:1px solid rgba(122,170,205,.23);border-radius:11px;transition:border-color .2s ease,transform .2s ease;}
.photo-work:hover {border-color:rgba(124,195,232,.58);transform:translateY(-2px);}
.photo-work-media {height:215px;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.photo-work-media img {display:block;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain;border:0;border-radius:2px;margin:0 auto;}
.photo-work figcaption {align-self:stretch;text-align:center;font-size:10px;line-height:1.45;color:#9eafbc;}

/* Unabhängige Vorher-Nachher-Regler. */
.photo-compare-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.photo-work--compare {padding:14px;}
.photo-compare {position:relative;isolation:isolate;width:100%;aspect-ratio:3/2;overflow:hidden;border-radius:5px;background:#05080d;--compare-position:50%;}
.photo-compare .photo-compare-before,
.photo-compare .photo-compare-after {position:absolute;inset:0;display:block;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover;margin:0;border:0;border-radius:0;}
.photo-compare-after-wrap {position:absolute;inset:0;clip-path:inset(0 calc(100% - var(--compare-position)) 0 0);pointer-events:none;}
.photo-compare-line {position:absolute;top:0;bottom:0;left:var(--compare-position);z-index:3;transform:translateX(-50%);border-left:2px solid #fff;pointer-events:none;filter:drop-shadow(0 1px 3px #0009);}
.photo-compare-handle {position:absolute;top:50%;left:0;transform:translate(-50%,-50%);display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#fff;color:#11202d;box-shadow:0 2px 15px #0008;font-size:23px;line-height:1;}
.photo-compare-label {position:absolute;top:12px;z-index:2;padding:4px 8px;border-radius:4px;background:#000a;color:#fff;font-size:11px;pointer-events:none;}
.photo-compare-label--before {left:12px;}
.photo-compare-label--after {right:12px;}
.photo-compare-range {position:absolute;inset:0;z-index:5;width:100%;height:100%;padding:0;margin:0;opacity:0;cursor:ew-resize;touch-action:pan-y;}
.photo-compare-range:focus-visible {opacity:.08;outline:3px solid #8dcced;outline-offset:-3px;}
@media(max-width:900px) {
  .photo-project-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  .photo-work-media {height:210px;}
}
@media(max-width:680px) {
  .photo-page-hero,.photo-page-hero-inner {min-height:350px;}
  .photo-page-hero-inner {padding:42px 22px 60px;}
  .photo-page-text h1 {font-size:clamp(2.8rem,9.2vw,4.8rem);}
  .photo-page-ai {left:22px;bottom:19px;}
  .photo-description-inner {padding:25px 18px 4px;}
  .photo-showcase {padding:29px 16px 65px;}
  .photo-project {margin-bottom:35px;}
  .photo-project-grid {gap:10px;}
  .photo-work {padding:9px;gap:8px;}
  .photo-work-media {height:190px;}
}
@media(max-width:560px) {
  .photo-project-heading {flex-wrap:wrap;}
  .photo-project-action {margin-left:auto;}
  .photo-compare-grid {grid-template-columns:1fr;}
}
@media(max-width:470px) {
  .photo-project-grid {grid-template-columns:1fr;}
  .photo-work-media {height:235px;}
  .photo-project-count {font-size:10px;}
}
@media(max-width:380px) {.photo-page-text h1 {font-size:2.65rem;}}
@media(prefers-reduced-motion:reduce) {.photo-work,.photo-project-action::after {transition:none;}.photo-work:hover {transform:none;}}

/* Wirelane: per Schaltfläche wählbare Bildvarianten, kein automatischer Wechsel. */
.photo-showcase .photo-work--wirelane {
  padding: 14px;
  justify-content: flex-start;
  gap: 11px;
}
.photo-showcase .photo-wirelane-viewer {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #05080d;
  border-radius: 5px;
}
.photo-showcase .photo-wirelane-image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
}
.photo-showcase .photo-wirelane-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.photo-showcase .photo-wirelane-choice {
  min-width: 0;
  padding: 9px 5px;
  border: 1px solid rgba(125,184,215,.32);
  border-radius: 6px;
  background: rgba(14,25,36,.75);
  color: #c3d4e2;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.photo-showcase .photo-wirelane-choice:hover,
.photo-showcase .photo-wirelane-choice:focus-visible,
.photo-showcase .photo-wirelane-choice.is-active {
  border-color: #8dcced;
  background: rgba(125,184,215,.16);
  color: white;
}
.photo-showcase .photo-wirelane-choice:focus-visible {
  outline: 2px solid #8dcced;
  outline-offset: 2px;
}
