/* Fotografie: nüchtern wie die übrige Seite, aber mit mehr Raum für die Bilder */

/* ---------- Übersicht: drei Serien im Goldenen Schnitt ---------- */
.series {
  display: grid;
  grid-template-columns: 1.618fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  aspect-ratio: 1.618;
}
.serie { position: relative; overflow: hidden; background: #E6E8EC; display: block; }
.serie.big { grid-row: 1 / 3; }
.serie img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.6,.2,1), filter .4s; }
.serie:hover img, .serie:focus-visible img { transform: scale(1.03); }
.serie:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.serie-label {
  position: absolute; left: 0; bottom: 0;
  background: var(--bg); padding: 14px 22px 14px 0;
  display: flex; align-items: baseline; gap: 14px;
}
.serie-label .n { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--accent); }
.serie-label strong { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.serie-label span.count { font-size: 13px; color: var(--muted); }
.serie.big .serie-label strong { font-size: 24px; }

/* ---------- Serienseite: Katalog ---------- */
.catalog { list-style: none; display: flex; flex-direction: column; gap: 112px; margin-top: 24px; }
.shot { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: 32px; align-items: end; }
.shot a { display: block; cursor: zoom-in; }
.shot img { display: block; width: 100%; height: auto; background: #E6E8EC; }
/* Hochformate und Quadrate schmaler */
.shot.p { grid-template-columns: minmax(0, 26rem) 15rem; }
.shot.q { grid-template-columns: minmax(0, 32rem) 15rem; }
/* jedes zweite Bild gespiegelt: Kästchen links, Bild rechts */
.shot.right { grid-template-columns: 15rem minmax(0, 1fr); }
.shot.right.p { grid-template-columns: 15rem minmax(0, 26rem); justify-content: end; }
.shot.right.q { grid-template-columns: 15rem minmax(0, 32rem); justify-content: end; }
.shot.right figcaption { order: -1; }
/* Textkästchen neben dem Bild: feiner schwarzer Rahmen, Platz für zwei Zeilen */
.shot figcaption .num { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--accent); margin-bottom: 10px; }
.shot .note { border: 1px solid var(--ink); padding: 12px 14px; font-size: 14px; line-height: 1.6; min-height: calc(2 * 1.6em + 24px); color: var(--ink); overflow-wrap: break-word; }
.shot .note.empty { color: var(--muted); font-style: italic; }

.serie-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: 120px; padding-top: 28px; border-top: 1px solid var(--rule); font-weight: 600; color: var(--accent); }
.serie-nav a:hover { opacity: .75; }
.serie-nav small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .08em; margin-bottom: 4px; }
.serie-nav .next { text-align: right; margin-left: auto; }

/* ---------- Großansicht ---------- */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(15, 18, 23, .96); display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lb button { position: absolute; background: none; border: 0; color: #fff; font: 600 15px 'Manrope', system-ui, sans-serif; cursor: pointer; padding: 16px; opacity: .8; }
.lb button:hover, .lb button:focus-visible { opacity: 1; }
.lb .close { top: 12px; right: 16px; font-size: 28px; line-height: 1; }
.lb .prev { left: 8px; top: 50%; transform: translateY(-50%); font-size: 32px; }
.lb .next { right: 8px; top: 50%; transform: translateY(-50%); font-size: 32px; }
.lb .counter { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: 12px; letter-spacing: .14em; }

@media (max-width: 860px) {
  .series { grid-template-columns: 1fr; grid-template-rows: none; aspect-ratio: auto; }
  .serie, .serie.big { grid-row: auto; aspect-ratio: 4 / 3; }
  .catalog { gap: 64px; }
  .shot, .shot.p, .shot.q, .shot.right, .shot.right.p, .shot.right.q { grid-template-columns: 1fr; gap: 14px; }
  .shot.p a, .shot.q a { width: 82%; }
  .shot.right figcaption { order: 0; }
  .serie-nav { margin-top: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .serie img { transition: none; }
}

/* ---------- Eigene Seitenleiste der Fotoseiten: nur ein Zurück-Knopf ---------- */
.side.photo { gap: 0; }
.back-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1.5px solid var(--accent); color: var(--accent); font-weight: 600; font-size: 15px; transition: background .2s, color .2s; align-self: flex-start; }
.back-btn:hover, .back-btn:focus-visible { background: var(--accent); color: #fff; }
.side.photo .legal { margin-top: auto; }

/* Umschalter zwischen den beiden Bereichen der Webseite (wie auf arbeit.html) */
.switch { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rule); font-size: 13px; font-weight: 600; }
.switch a { padding: 9px 0; text-align: center; color: var(--muted); transition: background .2s, color .2s; }
.switch a + a { border-left: 1px solid var(--rule); }
.switch a.on { background: var(--accent); color: #fff; }
.switch a:not(.on):hover, .switch a:not(.on):focus-visible { color: var(--accent); background: var(--accent-soft); }
.side.photo .switch + .legal { margin-top: 20px; }
@media (max-width: 860px) { .switch { display: none; } }

/* Urheberrechtshinweis */
.copyright { margin-top: 96px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: 13px; line-height: 1.7; color: var(--muted); max-width: 70ch; }
.copyright strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) {
  .side.photo { justify-content: space-between; }
  .back-btn { padding: 8px 14px; font-size: 14px; }
  .copyright { margin-top: 64px; }
}

/* =====================================================================
   Schwarz-Weiß-Schema für den ganzen Fotobereich (passend zur Startseite)
   ===================================================================== */
:root {
  --bg: #0B0B0B;
  --ink: #F2F2F2;
  --muted: #9C9C9C;
  --accent: #FFFFFF;
  --accent-soft: #1C1C1C;
  --rule: #262626;
}
p, li { color: var(--ink); }
.serie, .shot img { background: #1A1A1A; }
.back-btn:hover, .back-btn:focus-visible { color: var(--bg); }
.switch a.on { color: var(--bg); }
.switch a:not(.on):hover, .switch a:not(.on):focus-visible { color: var(--ink); }

/* =====================================================================
   Aufbau nach Vorlage (philipphumm.art): Kopfzeile mit Name und Menü,
   großes Eröffnungsbild mit Rand, Karten, zentrierter Fußbereich
   ===================================================================== */
body.foto { display: block; }
body.foto main { padding: 0 clamp(16px, 2.6vw, 40px); }
body.foto .wrap { margin: 0 auto; }
body.foto .wrap.wide { max-width: 1000px; }
body.foto .wrap.full { max-width: 1440px; }

/* ---------- Kopfzeile ---------- */
.site-head {
  max-width: 1440px; margin: 0 auto;
  padding: 36px clamp(16px, 2.6vw, 40px) 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap;
}
.brand-photo { display: flex; flex-direction: column; gap: 6px; }
.brand-photo strong { font-size: clamp(22px, 2.2vw, 30px); font-weight: 300; letter-spacing: .16em; text-transform: uppercase; line-height: 1; }
.brand-photo span { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.photo-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 13.5px; }
.photo-nav a { color: var(--ink); padding: 4px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.photo-nav a:hover, .photo-nav a:focus-visible { border-color: currentColor; }
.photo-nav a[aria-current="page"] { color: var(--muted); }
.photo-nav .to-home { color: var(--muted); padding-left: 28px; border-left: 1px solid var(--rule); }

/* ---------- Großes Eröffnungsbild (jeder Bereich beginnt damit) ---------- */
.hero-photo {
  position: relative; overflow: hidden; background: #000;
  max-width: 1440px; margin: 0 auto;
  aspect-ratio: 2.2 / 1; max-height: 78vh; min-height: 320px;
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  object-position: var(--focus, center);
  animation: hero-in 1.8s cubic-bezier(.2,.6,.2,1) both;
}
@keyframes hero-in { from { transform: scale(1.05); opacity: .4; } to { transform: none; opacity: 1; } }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,0) 60%); pointer-events: none; }
.hero-text { position: absolute; z-index: 1; left: clamp(20px, 2.8vw, 44px); bottom: clamp(28px, 6%, 64px); max-width: min(46%, 34rem); color: #fff; }
.hero-text .label { color: rgba(255,255,255,.75); margin-bottom: 14px; }
.hero-text h1 { margin: 0; font-size: clamp(40px, 5.4vw, 88px); font-weight: 300; letter-spacing: -.035em; line-height: 1; color: #fff; }
.hero-text h1.quote { font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -.01em; line-height: 1.22; }
.hero-text p.byline { margin-top: 18px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.scroll-cue { position: absolute; z-index: 1; right: clamp(20px, 2.8vw, 44px); bottom: clamp(28px, 6%, 64px); color: rgba(255,255,255,.7); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.scroll-cue:hover { color: #fff; }
.hero-photo + .wrap { padding-top: 56px; }
.hero-photo + .wrap.wide { padding-top: 96px; }

/* ---------- Karten: Bild, Titel, Unterzeile ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.card-img { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #1A1A1A; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.6,.2,1); }
.card:hover .card-img img, .card:focus-visible .card-img img { transform: scale(1.04); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.card-title { margin-top: 22px; font-size: 19px; font-weight: 400; letter-spacing: .01em; }
.card-sub { margin-top: 8px; font-size: 12.5px; color: var(--muted); }

/* ---------- Fußbereich: Trennlinie, zentriert ---------- */
body.foto .copyright { margin: 120px auto 0; padding-top: 48px; text-align: center; max-width: none; }
body.foto .copyright span { display: block; max-width: 62ch; margin: 0 auto; }
body.foto footer { display: flex; justify-content: center; gap: 28px; border-top: 0; padding: 20px 0 56px; }
body.foto footer a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .site-head { padding: 22px 16px 24px; flex-direction: column; align-items: flex-start; }
  .photo-nav { gap: 6px 18px; font-size: 13px; }
  .photo-nav .to-home { padding-left: 0; border-left: 0; }
  body.foto main { padding: 0 16px; }
  .hero-photo { aspect-ratio: 4 / 5; max-height: 72svh; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.65)); }
  .hero-text { left: 18px; right: 18px; bottom: 24px; max-width: none; }
  .scroll-cue { display: none; }
  .hero-photo + .wrap, .hero-photo + .wrap.wide { padding-top: 48px; }
  .cards { grid-template-columns: 1fr; gap: 40px; }
  body.foto .copyright { margin-top: 72px; }
}
@media (prefers-reduced-motion: reduce) { .hero-photo img { animation: none; } .card-img img { transition: none; } }

/* ---------- Alle drei Serienseiten (Klasse „sw“ am body): Bildangaben fett, im Kästchen senkrecht mittig,
   bündig zur Bildseite (Kästchen rechts vom Bild: linksbündig, links vom Bild: rechtsbündig) ---------- */
.sw .shot .note { display: flex; align-items: center; font-weight: 700; }
.sw .shot.right figcaption { text-align: right; }
.sw .shot.right .note { justify-content: flex-end; }
@media (min-width: 861px) { .sw .hero-text { max-width: none; } .sw .hero-text h1 { white-space: nowrap; } }
@media (max-width: 860px) { .sw .shot.right figcaption { text-align: left; } .sw .shot.right .note { justify-content: flex-start; } }

/* Bildangaben immer in einer Zeile: Spalte des Kästchens wächst mit dem Text (mindestens 15rem) */
.sw .shot { grid-template-columns: minmax(0, 1fr) minmax(15rem, max-content); }
.sw .shot.p { grid-template-columns: minmax(0, 26rem) minmax(15rem, max-content); }
.sw .shot.q { grid-template-columns: minmax(0, 32rem) minmax(15rem, max-content); }
.sw .shot.right { grid-template-columns: minmax(15rem, max-content) minmax(0, 1fr); }
.sw .shot.right.p { grid-template-columns: minmax(15rem, max-content) minmax(0, 26rem); }
.sw .shot.right.q { grid-template-columns: minmax(15rem, max-content) minmax(0, 32rem); }
.sw .shot .note { white-space: nowrap; }
@media (max-width: 860px) {
  .sw .shot, .sw .shot.p, .sw .shot.q, .sw .shot.right, .sw .shot.right.p, .sw .shot.right.q { grid-template-columns: 1fr; }
  .sw .shot .note { font-size: 13px; }
}

/* ---------- Kleines ©-Zeichen in jedem Bild (Katalog, Eröffnungsbild, Übersichtskarten, Großansicht) ---------- */
.shot a, .card-img { position: relative; }
.shot a::after, .card-img::after, .hero-photo::before, .lb::after {
  content: "© Markus Dicks";
  position: absolute; z-index: 2; pointer-events: none;
  font: 500 10.5px/1 'Manrope', system-ui, sans-serif; letter-spacing: .06em;
  color: rgba(255,255,255,.78); text-shadow: 0 0 4px rgba(0,0,0,.55);
}
.shot a::after, .card-img::after { right: 10px; bottom: 9px; }
.hero-photo::before { right: clamp(14px, 1.6vw, 24px); top: clamp(14px, 1.6vw, 22px); }
.lb::after { right: 24px; bottom: 18px; font-size: 11.5px; }
