/* Peter Holl: Stylesheet
   Farben: Weiß, Anthrazit, Grau, dazu die Akzentfarbe Gold (#a08908). */

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/nunito-sans-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/nunito-sans-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/nunito-sans-latin-700.woff2") format("woff2");
}

:root {
  --gold: #a08908;
  --gold-text: #85710a; /* dunklere Variante für kleine Schrift, damit sie gut lesbar bleibt */
  --ink: #2b2b2b;
  --grey: #6b6b6b;
  --line: #e7e4da;
  --paper: #ffffff;
  --header-h: 73px;
  --gutter: clamp(16px, 2vw, 32px);
  --font: "Avenir", "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  height: var(--header-h);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 1px 0 var(--line); }
.header-inner {
  height: 100%;
  display: flex; align-items: stretch;
  padding: 0 var(--gutter);
}
.logo {
  display: flex; align-items: center;
  font-weight: 700; font-size: 35px; line-height: 1;
  letter-spacing: .02em; text-transform: uppercase;
  color: var(--gold);
  margin-right: 30px;
  white-space: nowrap;
  transition: opacity .25s;
}
.logo:hover { opacity: .75; }

.site-nav { display: contents; }
.main-menu, .aux-menu { display: flex; align-items: stretch; }
.aux-menu { margin-left: auto; }
.main-menu > li, .aux-menu > li { display: flex; align-items: center; position: relative; }

.main-menu > li > a,
.main-menu > li > button {
  padding: 8px 19px;
  font-size: 17px; letter-spacing: .07em; text-transform: uppercase;
  color: #000; text-decoration: none;
  transition: color .25s;
}
.aux-menu a {
  padding: 8px 11px;
  font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  color: #000; text-decoration: none;
  transition: color .25s;
}
.aux-menu li:last-child a { padding-right: 0; }
.aux-menu .social a { display: flex; align-items: center; padding: 8px 12px 8px 8px; }
.aux-menu .social svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.aux-menu .social svg .dot { fill: currentColor; stroke: none; }

/* Rollover: Farbe des Logos und unterstrichen */
@media (hover: hover) {
  .main-menu > li > a:hover,
  .main-menu > li > button:hover,
  .aux-menu a:hover {
    color: var(--gold); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
  }
}
@media (min-width: 981px) {
  .has-sub.open > button {
    color: var(--gold); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
  }
}
/* Aktiv (Seite ist geöffnet): Farbe des Logos, keine Unterstreichung */
.main-menu > li > a[aria-current="page"],
.main-menu > li > button.is-current,
.aux-menu a[aria-current="page"] {
  color: var(--gold) !important; text-decoration: none !important;
}

/* Dropdown unter WORKS */
.sub-menu {
  position: absolute; left: 19px; top: 100%;
  min-width: 112px;
  max-height: calc(100vh - var(--header-h) - 20px);
  overflow-y: auto;
  background: var(--paper);
  border-bottom: 3px solid var(--gold);
  padding: 4px 0 6px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
}
.has-sub.open > .sub-menu {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .22s ease, transform .22s ease;
}
.sub-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 5px 14px;
  font-size: 16px; letter-spacing: .08em;
  transition: color .2s, background .2s;
}
.sub-menu a:hover { color: var(--gold-text); background: #faf8ee; }
.sub-text { min-width: 0; }
.sub-text a { white-space: nowrap; font-size: 15px; letter-spacing: .04em; padding: 7px 14px; gap: 30px; }
.sub-menu a[aria-current="page"]::after {
  content: ""; width: 10px; height: 10px; background: var(--gold); flex: none;
}

.menu-toggle { display: none; }

/* ---------- Startseite ---------- */
.hero {
  position: relative;
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  min-height: 420px;
  overflow: hidden;
  background: #cfcfcf;
}
.hero img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 55%;
  transform: scale(1.03);
  animation: settle 2.4s ease-out forwards;
}
@keyframes settle { to { transform: scale(1); } }

/* ---------- Vorankündigung auf der Startseite ---------- */
.news {
  position: absolute; z-index: 2; left: 41.5%; top: 40px;
  width: min(372px, calc(100% - 32px));
  padding: 15px 20px 17px;
  background: #fff; color: #000;
  opacity: 0; animation: news-in .9s ease .5s forwards;
}
@keyframes news-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.news-head { margin: 0 0 16px; font-size: 13px; font-weight: 400; letter-spacing: .08em; line-height: 17px; text-transform: uppercase; }
.news-list { display: flex; flex-direction: column; gap: 13px; }
.news-title { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; line-height: 17px; text-transform: uppercase; color: var(--gold); }
.news-item p { margin: 0; font-size: 13px; line-height: 17px; letter-spacing: .03em; }

/* ---------- Galerie ---------- */
.page { padding: 0 var(--gutter) 60px; }
.year-title {
  margin: 12px 0 22px 7px;
  font-size: 21px; font-weight: 700; letter-spacing: .1em;
  color: var(--gold-text);
}
.gallery { display: block; column-count: 4; column-gap: 28px; }
.gallery.masonry-on { display: flex; gap: 28px; column-count: initial; align-items: flex-start; }
.gallery .col { flex: 1 1 0; min-width: 0; }
.gallery .col > ul { display: flex; flex-direction: column; gap: 30px; }
.gallery > li { break-inside: avoid; margin-bottom: 30px; }
.gallery.masonry-on > li { margin-bottom: 0; }
.work a { display: block; }
.work .thumb {
  background: #f4f2ea;
  overflow: hidden;
}
.work img {
  width: 100%; height: auto;
  transition: transform .6s ease, opacity .4s;
}
.work a:hover img { transform: scale(1.025); }
.work .cap {
  display: block; margin-top: 8px;
  font-size: 14px; letter-spacing: .05em; line-height: 1.35;
  color: var(--ink);
  transition: color .25s;
}
.work a:hover .cap { color: var(--gold-text); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; flex-direction: column; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.lb-bar {
  width: 100%; height: var(--header-h); flex: none;
  display: flex; align-items: center; gap: 22px;
  padding: 0 max(var(--gutter), calc((100vw - 1500px) / 2));
}
.lb-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  color: var(--ink); transition: color .2s, transform .2s;
}
.lb-btn:hover { color: var(--gold-text); }
.lb-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; }
.lb-prev:hover { transform: translateX(-3px); }
.lb-next:hover { transform: translateX(3px); }
.lb-close { margin-right: 8px; }
.lb-stage {
  flex: 1 1 auto; min-height: 0; width: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 var(--gutter) 10px;
}
.lb-figure {
  margin: 0; max-width: 100%;
  display: flex; flex-direction: column; align-items: flex-start;
  max-height: 100%;
}
.lb-figure img {
  max-width: min(100%, 1500px);
  max-height: calc(100vh - var(--header-h) - 70px);
  max-height: calc(100svh - var(--header-h) - 70px);
  width: auto; height: auto; object-fit: contain;
  box-shadow: 0 6px 30px rgba(0, 0, 0, .12);
  transition: opacity .3s;
}
.lb-figure img.loading { opacity: 0; }
.lb-caption {
  margin-top: 12px; font-size: 14px; letter-spacing: .04em; line-height: 1.4;
}
body.lb-open { overflow: hidden; }

/* ---------- Text- und Platzhalterseiten ---------- */
.page-narrow { max-width: 820px; margin: 0 auto; padding: 40px var(--gutter) 40px; min-height: 52vh; }
.page-title {
  margin: 0 0 8px; font-size: clamp(28px, 4vw, 40px); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
}
.rule { width: 64px; height: 3px; background: var(--gold); border: 0; margin: 18px 0 30px; }
.page-narrow h2 { font-size: 20px; margin: 36px 0 8px; letter-spacing: .03em; }
.page-narrow p { margin: 0 0 14px; max-width: 64ch; }
.page-narrow a:not(.btn) { color: var(--gold-text); border-bottom: 1px solid currentColor; }
.notice {
  border-left: 3px solid var(--gold); background: #faf8ee;
  padding: 12px 16px; margin: 0 0 28px; font-size: 15px;
}
mark.fill { background: #f3ecc4; color: var(--ink); padding: 0 4px; }


/* ---------- Exhibitions ---------- */
.ex-page { display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); align-items: start; padding-bottom: 50px; }
.ex-text-col { padding: 6px var(--gutter) 0; max-width: 720px; }
.ex-section { margin-bottom: 44px; }
.ex-h {
  margin: 0 0 16px; font-size: 15px; font-weight: 600; letter-spacing: .1em;
  color: var(--gold-text); text-transform: uppercase;
}
.ex-list { display: flex; flex-direction: column; gap: 14px; }
.ex-list .ex-same { margin-top: -2px; }
.ex-row { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 0 10px; }
.ex-year { font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--gold-text); padding-top: 1px; }
.ex-text { margin: 0; font-size: 15px; line-height: 1.4; }
.ex-text strong { display: block; font-weight: 600; letter-spacing: .02em; }
.ex-text span { display: block; font-weight: 400; }
.ex-plain { display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.4; }
.ex-photo { position: sticky; top: var(--header-h); align-self: start; }
.ex-photo img {
  width: 100%; height: auto; aspect-ratio: 1049 / 1128;
  max-height: calc(100vh - var(--header-h)); max-height: calc(100svh - var(--header-h));
  object-fit: cover; object-position: 50% 70%;
}
.ex-photo .ex-img-balls { object-position: 66% 50%; }
@media (max-width: 980px) {
  .ex-page { display: block; }
  .ex-photo { position: static; order: -1; }
  .ex-photo img { aspect-ratio: 4 / 3; max-height: none; object-position: 50% 78%; }
  .ex-photo .ex-img-balls { object-position: 62% 50%; }
  .ex-page { display: flex; flex-direction: column; }
  .ex-text-col { padding-top: 24px; max-width: none; }
  .ex-row { grid-template-columns: 46px minmax(0, 1fr); }
  .vita-row { grid-template-columns: 112px minmax(0, 1fr); gap: 0 10px; }
  .vita-img { object-position: 50% 40%; }
  .credits { margin-top: 40px; padding-top: 30px; }
  .links-list { gap: 32px; }
}

/* ---------- Jahre blättern ---------- */
.year-bar { display: flex; align-items: center; gap: 22px; margin: 12px 0 22px 7px; }
.year-bar .year-title { margin: 0; }
.year-nav { display: flex; align-items: center; gap: 14px; }
.yn { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); transition: color .2s, transform .2s; }
.yn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; }
a.yn:hover { color: var(--gold); }
a.yn[rel="prev"]:hover { transform: translateX(-3px); }
a.yn[rel="next"]:hover { transform: translateX(3px); }

/* ---------- Imprint ---------- */
.imprint-col { padding-top: 76px; padding-bottom: 40px; }
.credits { display: flex; flex-direction: column; gap: 23px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); max-width: 560px; }
.credit { margin: 0; font-size: 16px; line-height: 23px; }
.legal { max-width: 560px; }
.legal h3 { margin: 23px 0 0; font-size: 16px; line-height: 23px; font-weight: 600; letter-spacing: 0; }
.legal p { margin: 0; font-size: 16px; line-height: 23px; }
.legal a { color: var(--gold-text); border-bottom: 1px solid currentColor; }
.legal h3:first-child { margin-top: 0; }
.imprint-img { object-position: 50% 50%; }

/* ---------- Links ---------- */
.links-col { padding-top: 76px; }
.links-list { display: flex; flex-direction: column; gap: 45px; }
.link-label { margin: 0; font-size: 16px; line-height: 23px; font-weight: 700; }
.link-url { margin: 0; max-width: 560px; font-size: 16px; line-height: 23px; overflow-wrap: anywhere; }
.link-url a { color: var(--gold-text); border-bottom: 1px solid transparent; transition: border-color .25s, color .25s; }
.link-url a:hover { border-bottom-color: currentColor; }
.links-img { object-position: 50% 50%; }

/* ---------- Contact ---------- */
.contact-col { padding-top: 76px; }
address, .contact-list, .contact-list * { font-style: normal; }
.contact-list ul { display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 23px; }
.contact-list a { color: var(--ink); border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; }
.contact-list a:hover { color: var(--gold-text); border-bottom-color: var(--gold); }
.contact-img { object-position: 50% 50%; }

/* ---------- Vita ---------- */
.vita-col { padding-top: 76px; }
.vita-intro { margin: 0 0 24px; font-size: 16px; line-height: 23px; }
.vita-list { display: flex; flex-direction: column; gap: 9px; }
.vita-row { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 0 10px; font-size: 15px; line-height: 1.45; }
.vita-year { font-weight: 700; letter-spacing: .08em; color: var(--gold-text); }
.vita-more { margin: 34px 0 0; font-size: 18px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.vita-more a { color: var(--gold-text); display: inline-block; transition: transform .25s ease; }
.vita-more a:hover { transform: translateX(4px); }
.vita-img { object-position: 50% 45%; }

/* ---------- Words ---------- */
.words-col { padding: 0; max-width: none; }
.words-by {
  margin: 0; padding: 8px var(--gutter) 6px; font-size: 18px; color: var(--gold-text);
  border-bottom: 1px solid var(--ink);
}
.words-title { margin: 26px var(--gutter) 18px; }
.words-sub { display: block; margin: 0; }
.words-text { padding: 0 var(--gutter) 10px; max-width: 790px; }
.words-text p { margin: 0 0 1.1em; font-size: 16px; line-height: 1.6; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 6 3 3; }
.words-quote { margin: 0 0 1.6em; padding: 0 0 0 14px; border-left: 3px solid var(--gold); }
.words-quote p { margin: 0 0 .3em !important; font-size: 16px; line-height: 1.5; }
.words-quote footer { font-size: 14px; color: var(--grey); }
.words-text p { text-align: justify; }
.words-text .words-quote p, .words-text .footnotes p, .words-text .dateline { text-align: left; }
.words-fig { margin: 1.8em 0 2em; }
.words-fig img { display: block; width: 100%; height: auto; }
.words-text .lead { font-weight: 700; }
.words-text sup { font-size: .7em; line-height: 0; }
.words-text sup a { color: var(--gold-text); padding: 0 1px; }
.footnotes { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--line); }
.footnotes p { font-size: 14px !important; line-height: 1.5 !important; color: var(--grey); margin-bottom: .6em !important; }
.footnotes a { color: var(--gold-text); margin-left: 4px; }
.words-text .dateline { margin-top: 1.6em; color: var(--grey); font-size: 15px; }

/* ---------- Sanftes Einblenden ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1180px) {
  .logo { font-size: 30px; margin-right: 16px; }
  .main-menu > li > a, .main-menu > li > button { padding-left: 13px; padding-right: 13px; font-size: 16px; }
  .sub-menu { left: 13px; }
  .aux-menu a { padding: 8px 8px; font-size: 14px; }
}

/* ---------- Handy: eigener Entwurf ---------- */
@media (max-width: 980px) {
  :root { --header-h: 62px; }
  .logo { font-size: 26px; margin: 0; }
  .header-inner { justify-content: space-between; align-items: center; }
  .menu-toggle {
    display: flex; align-items: center; gap: 10px;
    height: 44px; padding: 0 2px 0 12px;
    font-size: 15px; letter-spacing: .12em; text-transform: uppercase;
  }
  .menu-toggle .bars { width: 22px; height: 10px; position: relative; }
  .menu-toggle .bars::before, .menu-toggle .bars::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink);
    transition: transform .3s, top .3s;
  }
  .menu-toggle .bars::before { top: 0; }
  .menu-toggle .bars::after { top: 8px; }
  .site-header.open .menu-toggle .bars::before { top: 4px; transform: rotate(45deg); }
  .site-header.open .menu-toggle .bars::after { top: 4px; transform: rotate(-45deg); }

  .site-nav {
    display: block;
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    background: var(--paper); overflow-y: auto;
    padding: 8px var(--gutter) 40px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility 0s linear .25s;
  }
  .site-header.open .site-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s; }
  .main-menu { flex-direction: column; }
  .main-menu > li { display: block; border-bottom: 1px solid var(--line); }
  .main-menu > li > a, .main-menu > li > button {
    display: flex; width: 100%; justify-content: space-between; align-items: center;
    padding: 17px 2px; font-size: 20px; min-height: 56px;
  }
  .main-menu > li > button::after {
    content: ""; display: block; position: static; width: 12px; height: 12px; background: none; transform: none;
    border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
    transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s;
  }
  .has-sub.open > button::after { transform: rotate(-135deg) translate(-2px, -2px); }
  .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    max-height: 0; overflow: hidden; padding: 0; border-bottom: 0; min-width: 0;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
    transition: max-height .4s ease, padding .3s;
  }
  .has-sub.open > .sub-menu { max-height: 520px; padding: 4px 0 18px; }
  .sub-menu a {
    justify-content: center; min-height: 44px; font-size: 16px; padding: 8px 4px;
    border: 1px solid var(--line);
  }
  .sub-menu a[aria-current="page"] { border-color: var(--gold); background: #faf8ee; }
  .sub-text { grid-template-columns: 1fr; gap: 6px; }
  .sub-text a { justify-content: space-between; padding: 10px 14px; font-size: 16px; white-space: normal; }
  .words-by { font-size: 17px; }
  .words-title { margin-top: 22px; }
  .sub-menu a[aria-current="page"]::after { display: none; }
  .aux-menu { margin: 26px 0 0; flex-wrap: wrap; gap: 4px 0; }
  .aux-menu li:last-child a { padding-right: 8px; }
  .aux-menu a { padding: 12px 22px 12px 2px; font-size: 14px; }
  .aux-menu .social a { padding: 12px 22px 12px 2px; }
  .aux-menu .social svg { width: 24px; height: 24px; }

  .hero { min-height: 360px; }
  .news { left: auto; right: 12px; top: 12px; width: min(286px, calc(100% - 24px)); padding: 12px 14px 14px; }
  .news-head { margin-bottom: 11px; font-size: 12px; line-height: 16px; }
  .news-list { gap: 10px; }
  .news-title, .news-item p { font-size: 12px; line-height: 16px; letter-spacing: .04em; }
  .hero img { object-position: 36% 50%; }

  .gallery { column-gap: 20px; }
  .gallery.masonry-on { gap: 20px; }
  .year-title { margin-left: 2px; }

  .lb-bar { gap: 6px; }
  .lb-close { margin-right: auto; order: 3; }
  .lb-prev { order: 1; }
  .lb-next { order: 2; margin-right: 4px; }
  .lb-figure img { max-height: calc(100svh - var(--header-h) - 96px); }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero img { animation: none; transform: none; }
  .news { animation: none; opacity: 1; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* Textanfang auf allen Seiten mit Foto: gleiche Höhe (Handy: kleiner Abstand unter dem Bild) */
@media (max-width: 980px) {
  .links-col, .vita-col, .contact-col, .imprint-col { padding-top: 26px; }
}
