/* ==========================================================================
   Was bleibt – Hartmann × Mantel · Ausstellungskatalog
   Layout nach dem Ausstellungskonzept: Papierton, Schwarz, ein Grünakzent,
   kondensierte Versalien für Titel, Serife für Fließtext.
   Keine externen Ressourcen: alles liegt im Ordner.
   ========================================================================== */

/* Schriften liegen im Ordner "fonts/" (selbst gehostet, nichts wird von fremden Servern geladen).
   Barlow Condensed und Newsreader stehen unter der SIL Open Font License (Lizenztexte liegen dabei). */
@font-face { font-family: "Barlow Condensed"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/BarlowCondensed-Regular.woff") format("woff"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/BarlowCondensed-SemiBold.woff") format("woff"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/BarlowCondensed-Bold.woff") format("woff"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("fonts/BarlowCondensed-ExtraBold.woff") format("woff"); }
@font-face { font-family: "Newsreader"; font-weight: 200 800; font-style: normal; font-display: swap;
  src: url("fonts/Newsreader-Variable.woff") format("woff"); }
@font-face { font-family: "Newsreader"; font-weight: 200 800; font-style: italic; font-display: swap;
  src: url("fonts/Newsreader-Italic-Variable.woff") format("woff"); }

/* Kondensierte Ersatzschrift aus Schriften, die auf dem Gerät schon vorhanden sind
   (Mac: Helvetica Neue Condensed / Arial Narrow, Windows: Arial Narrow, Linux: Roboto/Liberation).
   Es wird nichts nachgeladen. Ist keine davon installiert, greift Arial. */
@font-face {
  font-family: "Kondensiert"; font-weight: 100 600; font-style: normal;
  src: local("ArialNarrow"), local("Arial Narrow"), local("RobotoCondensed-Regular"),
       local("Roboto Condensed"), local("LiberationSansNarrow"), local("Liberation Sans Narrow");
}
@font-face {
  font-family: "Kondensiert"; font-weight: 700 900; font-style: normal;
  src: local("HelveticaNeue-CondensedBold"), local("Helvetica Neue Condensed Bold"),
       local("ArialNarrow-Bold"), local("Arial Narrow Bold"), local("RobotoCondensed-Bold"),
       local("Roboto Condensed Bold"), local("LiberationSansNarrow-Bold"), local("Liberation Sans Narrow Bold");
}

:root {
  --paper: #f3f2ee;
  --ink: #161614;
  --muted: #595954;
  --hairline: rgba(22, 22, 20, 0.18);
  --night: #141413;
  --night-text: #f3f2ee;
  --night-muted: #a9a8a1;
  --accent: #8cc63f;
  --focus: var(--ink);

  --f-head: "Barlow Condensed", "Kondensiert", Arial, sans-serif;
  --f-text: "Newsreader", "Source Serif 4", "Iowan Old Style", "Palatino Linotype",
            Georgia, serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --wrap: min(76rem, 100% - 2 * var(--gutter));
  --nav-h: 3.25rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--f-text);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--f-head); font-weight: 800; text-transform: uppercase; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { width: var(--wrap); margin-inline: auto; }

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem;
  font: 600 1rem var(--f-head); letter-spacing: 0.06em; text-transform: uppercase;
}
.skip:focus { top: 0.75rem; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  height: var(--nav-h);
  background: rgba(243, 242, 238, 0.96);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner {
  width: var(--wrap); height: 100%; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav__brand {
  flex: none;
  font: 800 1.35rem/1 var(--f-head); letter-spacing: 0.01em; text-transform: uppercase;
  text-decoration: none;
}
.nav__list {
  display: flex; gap: 1.5rem; margin: 0; padding: 0; list-style: none;
  overflow-x: auto; scrollbar-width: none;
}
.nav__list::-webkit-scrollbar { display: none; }
.nav__list a {
  display: block; padding: 0.5rem 0;
  font: 600 0.95rem/1 var(--f-head); letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; color: var(--muted);
}
.nav__list a:hover { color: var(--ink); }

/* Burger-Button: nur auf schmalen Bildschirmen sichtbar (siehe Media Query unten) */
.nav__toggle {
  display: none; flex: none; width: 2.75rem; height: 2.75rem; margin-right: -0.6rem; padding: 0;
  align-items: center; justify-content: center;
  border: 0; background: none; color: var(--ink); cursor: pointer;
}
.nav__bars, .nav__bars::before, .nav__bars::after {
  display: block; width: 1.5rem; height: 2px; background: currentColor;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.nav__bars { position: relative; }
.nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
.nav__bars::before { top: -7px; }
.nav__bars::after { top: 7px; }
.nav.is-open .nav__bars { background-color: transparent; }
.nav.is-open .nav__bars::before { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__bars::after { transform: translateY(-7px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) {
  .nav__bars, .nav__bars::before, .nav__bars::after { transition: none; }
}

/* ---------- Eyebrow (grüner Strich + Rubrik) ---------- */
.eyebrow {
  margin: 0 0 1.25rem;
  font: 600 0.9rem/1 var(--f-head); letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Hero ---------- */
.hero { padding-top: 6px; }
.hero__pics {
  width: var(--wrap); margin-inline: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.hero__pic { position: relative; margin: 0; overflow: hidden; background: var(--night); }
.hero__pic img {
  width: 100%; aspect-ratio: 4 / 5; max-height: calc(100svh - var(--nav-h) - 9rem);
  min-height: 15rem; object-fit: cover;
}
.hero__pic::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.hero__label {
  position: absolute; left: clamp(0.75rem, 2vw, 1.75rem); bottom: clamp(0.75rem, 2vw, 1.5rem);
  z-index: 1; color: #fff;
  font: 600 clamp(0.75rem, 1.4vw, 1rem)/1 var(--f-head); letter-spacing: 0.22em; text-transform: uppercase;
}
.hero__text { width: var(--wrap); margin-inline: auto; padding-block: clamp(2rem, 5vw, 4rem) clamp(2.5rem, 6vw, 5rem); }
.hero__title { font-size: clamp(4.5rem, 17vw, 11rem); line-height: 0.86; letter-spacing: -0.005em; }
.hero__question {
  margin: 1rem 0 0; max-width: 38rem;
  font: italic 400 clamp(1.25rem, 2.6vw, 1.75rem)/1.35 var(--f-text); color: var(--ink);
}
.hero__facts {
  margin-top: clamp(2rem, 5vw, 4rem);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.25rem 3rem;
  align-items: end;
}
.hero__names {
  margin: 0; font: 700 1.35rem/1.1 var(--f-head); letter-spacing: 0.06em; text-transform: uppercase;
}
.hero__styles {
  margin: 0.4rem 0 0; font: 400 0.95rem/1.4 var(--f-head); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); max-width: 30rem;
}
.hero__when {
  margin: 0; text-align: right;
  font: 700 1.35rem/1.15 var(--f-head); letter-spacing: 0.06em; text-transform: uppercase;
}
.hero__when span { display: block; margin-top: 0.15rem; font-weight: 400; font-size: 0.95rem; line-height: 1.35; letter-spacing: 0.1em; color: var(--muted); }
.hero__shop {
  display: inline-block; margin-top: 0.7rem;
  font: 700 1rem/1.1 var(--f-head); letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em;
}

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section + .section { border-top: 1px solid var(--hairline); }
.section__title { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 0.92; letter-spacing: -0.005em; max-width: 16ch; }
.section__title--wide { max-width: 22ch; }
.section__lead { max-width: 44rem; margin-top: 1.5rem; font-size: clamp(1.15rem, 2vw, 1.3rem); line-height: 1.55; }

/* ---------- Konzept ---------- */
.concept__cols {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem);
}
.concept__col p { max-width: 32rem; }
.concept__pic { margin: 0 0 1.5rem; }
.concept__pic img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.cap {
  margin-top: 0.6rem; font: 600 0.9rem/1.3 var(--f-head); letter-spacing: 0.1em; text-transform: uppercase;
}
.cap b { font-weight: 800; }
.cap span { color: var(--muted); font-weight: 400; }
.concept__closing {
  max-width: 40rem; margin: clamp(2rem, 4vw, 3rem) 0 0;
  font: italic 400 clamp(1.2rem, 2.2vw, 1.5rem)/1.45 var(--f-text);
}
.facts {
  margin: clamp(3rem, 6vw, 5rem) 0 0; padding: 1.25rem 0 0; list-style: none;
  border-top: 2px solid var(--ink);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem;
}
.facts h3 { font-size: 1.5rem; line-height: 1; font-weight: 700; letter-spacing: 0.01em; }
.facts p { margin: 0.35rem 0 0; font-size: 1rem; line-height: 1.45; }

/* ---------- Werke ---------- */
.works {
  list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 3.5vw, 3rem) clamp(1rem, 2.5vw, 2rem);
}
.work { margin: 0; }
.work a { display: block; aspect-ratio: 4 / 5; cursor: zoom-in; background: var(--night); }
.work img { width: 100%; height: 100%; object-fit: contain; background: var(--paper); }
.work__title {
  margin: 0.7rem 0 0; font: 700 1.15rem/1.15 var(--f-head); letter-spacing: 0.04em; text-transform: uppercase;
}
.work__meta { margin: 0.1rem 0 0; font-size: 0.95rem; line-height: 1.4; color: var(--muted); }
.works__note { margin: 2rem 0 0; font-size: 0.95rem; color: var(--muted); }
.works__note a { color: var(--ink); }

/* ---------- Fotografen ---------- */
.person + .person { margin-top: clamp(4rem, 8vw, 6.5rem); padding-top: clamp(4rem, 8vw, 6.5rem); border-top: 1px solid var(--hairline); }
.person__name { font-size: clamp(2.8rem, 8vw, 5.5rem); line-height: 0.92; }
.person__head {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  display: grid; grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
}
.person__photo { margin: 0; }
.person__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.person__quote { margin: 0; }
.person__quote p {
  max-width: 22ch; margin: 0 0 1rem;
  font: italic 400 clamp(1.7rem, 3.4vw, 2.5rem)/1.2 var(--f-text);
}
.person__quote footer {
  font: 600 0.9rem/1 var(--f-head); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.person__text {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3.5rem);
}
.person__text p { max-width: 34rem; }
.person__meta {
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 0; padding-top: 1.25rem; border-top: 2px solid var(--ink);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem);
}
.person__meta h3 { font-size: 1.3rem; line-height: 1; font-weight: 700; letter-spacing: 0.04em; }
.person__meta p { margin: 0.4rem 0 0; font-size: 1rem; line-height: 1.5; }

/* ---------- Vernissage (dunkles Band) ---------- */
.info {
  --focus: var(--night-text);
  background: var(--night); color: var(--night-text);
  padding-block: clamp(4rem, 9vw, 7rem);
}
.info .eyebrow { color: var(--night-muted); }
.info__date { font-size: clamp(3rem, 10vw, 7.5rem); line-height: 0.9; letter-spacing: -0.005em; }
.info__date span { color: var(--night-muted); }
.info__cols {
  margin-top: clamp(2.5rem, 6vw, 4.5rem); padding-top: 1.5rem; border-top: 1px solid rgba(243, 242, 238, 0.5);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem clamp(1.5rem, 4vw, 3.5rem);
}
.info__cols h3 { font-size: 1.7rem; line-height: 1; font-weight: 700; letter-spacing: 0.01em; }
.info__cols p { margin: 0.5rem 0 0; font-size: 1.15rem; line-height: 1.5; }
.info__cols a { color: inherit; }

/* ---------- Fuß ---------- */
.foot { padding-block: clamp(3rem, 6vw, 4.5rem); font-size: 0.95rem; line-height: 1.55; color: var(--muted); }
.foot h2 { font-size: 1.1rem; font-weight: 700; letter-spacing: 0.1em; color: var(--ink); margin-bottom: 0.5rem; }
.foot__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 4vw, 3.5rem); }
.foot p { margin: 0 0 0.75em; max-width: 30rem; }
.foot p.foot__copy { max-width: none; margin: 2.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--hairline); }

/* ---------- Lightbox ---------- */
.lightbox {
  --focus: var(--night-text);
  width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(20, 20, 19, 0.97); color: var(--night-text);
}
.lightbox::backdrop { background: rgba(20, 20, 19, 0.97); }
.lightbox[open] {
  display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center;
  padding: clamp(0.75rem, 2vw, 1.5rem);
}
.lightbox__fig { margin: 0; display: contents; }
.lightbox__img { min-height: 0; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; align-self: center; touch-action: pan-y; }
.lightbox__cap {
  padding-top: 0.9rem; text-align: center;
  font: 600 0.95rem/1.3 var(--f-head); letter-spacing: 0.12em; text-transform: uppercase;
}
.lightbox__cap span { color: var(--night-muted); font-weight: 400; }
.lightbox__btn {
  position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0;
  border: 0; border-radius: 50%; background: rgba(243, 242, 238, 0.12); color: var(--night-text); cursor: pointer;
}
.lightbox__btn:hover { background: rgba(243, 242, 238, 0.25); }
.lightbox__btn svg { width: 1.4rem; height: 1.4rem; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close { top: 0.9rem; right: 0.9rem; }
.lightbox__prev { left: 0.9rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 0.9rem; top: 50%; transform: translateY(-50%); }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: lb-in 0.18s ease-out; }
  @keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- Responsive ---------- */
@media (max-width: 56rem) {
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .person__head { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  body { font-size: 1.0625rem; }
  .nav__brand { font-size: 1.15rem; }
  .js .nav__toggle { display: flex; }
  .js .nav__list {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; overflow: visible;
    padding: 0.25rem var(--gutter) 1rem;
    background: var(--paper); border-bottom: 1px solid var(--hairline);
    box-shadow: 0 12px 24px rgba(22, 22, 20, 0.12);
  }
  .js .nav.is-open .nav__list { display: flex; }
  .js .nav__list li + li { border-top: 1px solid var(--hairline); }
  .js .nav__list a { padding: 1rem 0; font-size: 1.35rem; letter-spacing: 0.08em; color: var(--ink); }
  .hero__when { text-align: left; }
  .concept__cols, .person__text, .person__meta, .info__cols, .foot__cols { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .person__head { grid-template-columns: 1fr; }
  .person__photo { max-width: 18rem; }
  .lightbox__btn { width: 2.6rem; height: 2.6rem; }
  .lightbox__prev { left: 0.4rem; }
  .lightbox__next { right: 0.4rem; }
}
