/* matthias-arnold-photography.com
   Ruhiger Galerieraum: Weiß, Graphit, eine Groteske für Navigation und Bildtexte,
   eine Antiqua für Reportagen. Keine externen Schriften, keine Cookies. */

:root {
  --wand: #ffffff;
  --graphit: #23252a;
  --zink: #74777e;
  --linie: #e4e5e7;
  --flaeche: #f2f2f3;

  --grotesk: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --antiqua: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --rand: clamp(20px, 3vw, 40px);
  --kopfhoehe: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--wand);
  color: var(--graphit);
  font: 400 15px/1.5 var(--grotesk);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--graphit); outline-offset: 3px; }

h1, h2 { font-weight: 500; margin: 0; }

.sprung {
  position: absolute; left: var(--rand); top: -100px;
  background: var(--graphit); color: var(--wand); padding: 8px 12px; z-index: 100;
}
.sprung:focus { top: 12px; }

.leer { color: var(--zink); padding: 40px 0; }
.klein { font: 13px/1.5 var(--grotesk); color: var(--zink); }

/* ------------------------------------------------ Kopf & Fuß */

.kopf {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  min-height: var(--kopfhoehe);
  padding: 24px var(--rand) 0;
}
.name { font-size: 16px; font-weight: 500; letter-spacing: 0.01em; }
.menue { display: flex; flex-wrap: wrap; gap: 6px 32px; }
.menue a { color: var(--zink); }
.menue a:hover, .menue a[aria-current="page"] { color: var(--graphit); }
.menue a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

main { padding: 0 var(--rand); }

.fuss {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 120px; padding: 20px var(--rand) 28px;
  border-top: 1px solid var(--linie);
  font-size: 13px; color: var(--zink);
}
.fuss nav { display: flex; gap: 24px; }

/* ------------------------------------------------ Startseite */

.ist-start .fuss { margin-top: 0; border-top: 0; }

.buehne {
  position: relative;
  height: calc(100svh - var(--kopfhoehe) - 96px);
  min-height: 320px;
  margin-top: 16px;
  cursor: e-resize;
}
.folie {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transition: opacity 1.2s ease;
}
.folie.ist-sichtbar { opacity: 1; }
.folie img { width: 100%; height: 100%; object-fit: contain; }

.buehne-leiste {
  display: grid; grid-template-columns: 64px auto 1fr auto; align-items: baseline; gap: 16px;
  padding: 18px 0 0;
  font-size: 13px;
}
.zaehler { font-variant-numeric: tabular-nums; color: var(--zink); }
.buehne-ort { color: var(--zink); }
.buehne-weiter { justify-self: end; }

/* ------------------------------------------------ Seitenköpfe */

.seitenkopf, .serienkopf { max-width: 40rem; padding: 72px 0 48px; }
.seitenkopf h1, .serienkopf h1 { font-size: 28px; line-height: 1.2; }
.seitenkopf p, .serienkopf p { color: var(--zink); margin: 12px 0 0; font-size: 16px; }

.themenwahl { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 28px; font-size: 14px; }
.themenwahl a { color: var(--zink); }
.themenwahl a[aria-current="page"] { color: var(--graphit); }

/* ------------------------------------------------ Portfolio-Übersicht */

.themen {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px clamp(24px, 3vw, 48px);
}
.thema { display: grid; gap: 14px; }
.thema:hover { text-decoration: none; }
.thema-bild { display: block; aspect-ratio: 3 / 2; background: var(--flaeche); overflow: hidden; }
.thema-bild img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s ease; }
.thema:hover .thema-bild img { opacity: 0.88; }
.thema-text { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.thema-titel { font-size: 20px; font-weight: 500; }
.thema:hover .thema-titel { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.thema-anzahl { font-size: 13px; color: var(--zink); font-variant-numeric: tabular-nums; }
.thema-beschreibung { color: var(--zink); max-width: 46ch; }

/* ------------------------------------------------ Themenwelt: Bildreihen */

.reihen { display: flex; flex-wrap: wrap; gap: 8px; }
.reihen::after { content: ""; flex-grow: 999; }
.kachel {
  flex-grow: calc(var(--r) * 100);
  flex-basis: calc(var(--r) * 260px);
  background: var(--flaeche);
}
.kachel img { width: 100%; height: auto; aspect-ratio: var(--r); object-fit: cover; }
.kachel:hover img { opacity: 0.88; }

/* ------------------------------------------------ Bildbetrachter */

.betrachter {
  position: fixed; inset: 0; z-index: 50;
  display: grid; grid-template-rows: auto 1fr auto;
  background: var(--wand);
}
.betrachter[hidden] { display: none; }
.betrachter-oben { display: flex; justify-content: space-between; align-items: baseline; padding: 24px var(--rand) 12px; }
.betrachter-flaeche { position: relative; min-height: 0; overflow: hidden; }
.betrachter-flaeche img {
  position: absolute; inset: 0 var(--rand); margin: auto;
  max-width: calc(100% - 2 * var(--rand)); max-height: 100%; width: auto; height: auto;
}
.betrachter-unten {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: baseline;
  padding: 16px var(--rand) 24px; font-size: 13px;
}
.betrachter-text { display: flex; flex-wrap: wrap; gap: 2px 16px; max-width: 80ch; }
.betrachter-text strong { font-weight: 500; }
.betrachter-text span { color: var(--zink); }
.betrachter button {
  font: inherit; color: var(--graphit); background: none; border: 0; padding: 4px 0; cursor: pointer;
}
.betrachter button:hover { text-decoration: underline; text-underline-offset: 4px; }
.betrachter-steuerung { display: flex; gap: 24px; }
.betrachter-zone { position: absolute; top: 0; bottom: 0; width: 50%; border: 0; background: none; padding: 0; }
.betrachter-zone.links { left: 0; cursor: w-resize; }
.betrachter-zone.rechts { right: 0; cursor: e-resize; }
body.betrachter-offen { overflow: hidden; }

/* ------------------------------------------------ Reportagen-Übersicht */

.geschichten { display: grid; gap: 120px; }
.geschichte-bild { display: block; aspect-ratio: 12 / 5; background: var(--flaeche); overflow: hidden; }
.geschichte-bild img { width: 100%; height: 100%; object-fit: cover; }
.geschichte-text {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(24px, 4vw, 64px);
  padding-top: 28px;
}
.geschichte-text h2 { grid-row: span 3; font: 400 clamp(34px, 4.4vw, 56px)/1.05 var(--antiqua); letter-spacing: -0.01em; }
.geschichte-text p { margin: 0 0 12px; max-width: 34em; font: 18px/1.6 var(--antiqua); }
.geschichte-text .reportage-ort { font: 14px/1.5 var(--grotesk); color: var(--zink); }
.geschichte-link { font-size: 14px; justify-self: start; }

/* ------------------------------------------------ Reportage */

.ist-reportage main { padding: 0; }
.reportage-titelbild { margin: 16px 0 0; height: min(82svh, 62vw); background: var(--flaeche); }
.reportage-titelbild img { width: 100%; height: 100%; object-fit: cover; }

.reportage-kopf, .strecke-text { width: min(680px, 100% - 2 * var(--rand)); margin-inline: auto; }
.reportage-kopf { padding: 64px 0 24px; }
.reportage-kopf h1 { font: 400 clamp(44px, 7vw, 88px)/1 var(--antiqua); letter-spacing: -0.015em; }
.reportage-ort { margin: 16px 0 0; color: var(--zink); font-size: 14px; }
.einleitung { font: 21px/1.6 var(--antiqua); margin: 36px 0 0; }

.strecke { display: grid; gap: 72px; padding: 56px 0 0; }
.strecke-bild { margin: 0 auto; width: min(1280px, 100% - 2 * var(--rand)); }
.strecke-bild.ist-hoch { width: min(760px, 100% - 2 * var(--rand)); }
.strecke-bild figcaption { margin-top: 12px; font-size: 13px; color: var(--zink); max-width: 70ch; }
.strecke-bild figcaption strong { color: var(--graphit); font-weight: 500; margin-right: 6px; }
.strecke-text { font: 19px/1.65 var(--antiqua); margin-block: 0; }

.reportage-weiter {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  width: min(1280px, 100% - 2 * var(--rand)); margin: 120px auto 0; font-size: 14px;
}

/* ------------------------------------------------ Über mich, Kontakt, Rechtliches */

.ueber {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px);
  padding-top: 72px; align-items: start;
}
.ueber-bild { margin: 0; background: var(--flaeche); aspect-ratio: 4 / 5; }
.ueber-bild img { width: 100%; height: 100%; object-fit: cover; }
.ueber-text { max-width: 34em; }
.ueber-text h1 { font-size: 28px; margin-bottom: 28px; }
.ueber-text p { font: 19px/1.65 var(--antiqua); margin: 0 0 1em; }
.ueber-text p.klein { font: 13px/1.5 var(--grotesk); margin-top: 32px; }

.kontakt { max-width: 40rem; padding-top: 72px; }
.kontakt h1 { font-size: 28px; margin-bottom: 20px; }
.kontakt p { font-size: 16px; margin: 0 0 12px; }
.kontakt .kontakt-mail { font: 400 clamp(22px, 3vw, 34px)/1.3 var(--antiqua); margin: 32px 0; overflow-wrap: anywhere; }
.kontakt-links { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }

.recht { max-width: 40rem; padding-top: 72px; }
.recht h1 { font-size: 28px; }
.recht h2 { font-size: 15px; margin: 32px 0 6px; }
.recht p { margin: 0; }
.recht .hinweis { color: var(--zink); margin-top: 8px; }

/* ------------------------------------------------ Sprachwahl */

.menue .sprachwahl { padding-left: 24px; border-left: 1px solid var(--linie); font-size: 13px; letter-spacing: 0.04em; }

/* ------------------------------------------------ Kamera-Info am Bild */

.bildrahmen, .reportage-titelbild, .ueber-bild { position: relative; }
.exif {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  display: grid; place-items: center;
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.82); color: var(--graphit);
  cursor: help; opacity: 0.75; transition: opacity 0.2s ease;
}
.exif:hover, .exif:focus-visible, .exif:focus { opacity: 1; }
.exif-info {
  position: absolute; right: 0; bottom: calc(100% + 8px);
  display: grid; gap: 2px; width: max-content; max-width: 280px;
  padding: 10px 12px; background: var(--graphit); color: var(--wand);
  font: 13px/1.45 var(--grotesk); text-align: left;
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  pointer-events: none;
}
.exif-info span:first-child { font-weight: 500; }
.exif:hover .exif-info, .exif:focus .exif-info, .exif:focus-visible .exif-info {
  opacity: 1; visibility: visible; transform: none;
}
.folie .exif { opacity: 0; }
.folie.ist-sichtbar .exif { opacity: 0.75; }
.folie.ist-sichtbar .exif:hover, .folie.ist-sichtbar .exif:focus { opacity: 1; }
.folie:not(.ist-sichtbar) .exif { pointer-events: none; }
.exif[hidden] { display: none; }
.betrachter .exif { z-index: 4; padding: 0; background: rgba(255, 255, 255, 0.82); }
.betrachter .exif:hover { text-decoration: none; }

/* ------------------------------------------------ Mobil */

@media (max-width: 760px) {
  :root { --kopfhoehe: 96px; }
  .kopf { flex-direction: column; gap: 10px; padding-top: 20px; }
  .menue { gap: 6px 22px; }
  .menue .sprachwahl { padding-left: 0; border-left: 0; }
  .buehne { height: auto; min-height: 0; aspect-ratio: 4 / 3; margin-top: 40px; }
  .buehne-leiste { grid-template-columns: 48px 1fr; }
  .buehne-ort { grid-column: 2; }
  .buehne-weiter { grid-column: 2; justify-self: start; }
  .themen { grid-template-columns: 1fr; gap: 56px; }
  .kachel { flex-basis: calc(var(--r) * 150px); }
  .geschichten { gap: 80px; }
  .geschichte-bild { aspect-ratio: 3 / 2; }
  .geschichte-text { grid-template-columns: 1fr; }
  .geschichte-text h2 { grid-row: auto; margin-bottom: 4px; }
  .reportage-kopf { padding-top: 40px; }
  .strecke { gap: 48px; }
  .ueber { grid-template-columns: 1fr; padding-top: 40px; }
  .ueber-bild { max-width: 420px; }
  .betrachter-unten { grid-template-columns: 48px 1fr; }
  .betrachter-steuerung { grid-column: 1 / -1; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .folie, .exif, .exif-info { transition: none; }
  .thema-bild img { transition: none; }
}
