/* ==========================================================================
   galerie son — eigenständiges Stylesheet
   Schriften: Rubik (Überschriften) / Nunito Sans (Fließtext)
   Palette: Weiß / Schwarz / Grau — angelehnt an das bestehende Erscheinungsbild
   ========================================================================== */

:root {
  --bg: #ffffff;
  --ink: #161616;
  --muted: #8a8a8a;
  --muted-2: #b7b7b7;
  --line: #e6e6e6;
  --line-strong: #d5d5d5;

  --font-head: "Rubik", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

hr.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Kopfzeile ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 88px;
}

.logo img {
  height: 26px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2.1rem);
}

.main-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  color: var(--ink);
  position: relative;
  padding: 0.3rem 0;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transition: right 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  right: 0;
}

.main-nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  padding: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.nav-toggle span { top: 11px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }

.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: rotate(45deg); top: 0; }
.nav-open .nav-toggle span::after { transform: rotate(-45deg); top: 0; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    inset: 88px 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 1rem var(--gutter) 2rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .nav-open .main-nav {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }

  .main-nav a {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
  }
}

/* ---------- Seitentitel ---------- */

.page-title {
  /* nur vertikal setzen — der seitliche Rand kommt von .wrap */
  padding-top: clamp(1.4rem, 3vw, 2.2rem);
  padding-bottom: clamp(1.2rem, 3vw, 2rem);
}

.page-title h1 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: 0.03em;
  margin: 0;
}

.page-title .kicker {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

/* ---------- Typografie ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h2 { font-size: 1.05rem; letter-spacing: 0.12em; color: var(--muted); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.2em; }

.lede {
  max-width: 68ch;
}

section + section { margin-top: clamp(3rem, 7vw, 5.5rem); }

.section-head {
  margin-bottom: 1.8rem;
}

/* ---------- Startseite: Hero ---------- */

.hero {
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.hero .kicker {
  display: block;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  letter-spacing: 0.05em;
  padding: clamp(1.4rem, 3vw, 2.2rem) 0 clamp(1.6rem, 3.5vw, 2.4rem);
}

.hero-image {
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 0.9s ease-out 0.15s forwards;
}

.hero-image img { width: 100%; height: auto; cursor: zoom-in; }

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

.hero-caption {
  text-align: center;
  max-width: 40rem;
  margin: clamp(1.8rem, 4vw, 2.6rem) auto 0;
}

.hero-caption .artists {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 500;
  margin-bottom: 0.2em;
}

.hero-caption .exhibition {
  font-style: italic;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 0.9em;
}

.hero-caption .event-note {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- Ausstellung / Exhibit-Block ---------- */

.exhibit {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.exhibit figure { margin: 0; }

.exhibit img { width: 100%; height: auto; cursor: zoom-in; }

.exhibit figcaption {
  margin-top: 1rem;
}

.exhibit .artists {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 500;
}

.exhibit .title {
  font-style: italic;
  color: var(--muted);
}

.note {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Grids: Künstler / Team / Projekte ---------- */

.grid {
  display: grid;
  gap: clamp(1.6rem, 3vw, 2.4rem);
}

.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .grid.cols-4, .grid.cols-3 { grid-template-columns: 1fr; }
}

.card figure {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f4f4f4;
}

.card.portrait figure { aspect-ratio: 3 / 4; }

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.5s ease;
}

.card:hover img { transform: scale(1.045); }

.card figcaption {
  margin-top: 0.8rem;
  font-size: 0.92rem;
}

.card .name {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.card .role {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

.card.no-image figure {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-2);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

/* ---------- Artist name list (Sekundärmarkt) ---------- */

.name-list {
  columns: 3 220px;
  column-gap: clamp(1.5rem, 3vw, 3rem);
  max-width: 900px;
}

.name-list li {
  list-style: none;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  break-inside: avoid;
}

.name-list { margin: 0; padding: 0; }

/* ---------- Fließtext-Seite (Unsere Geschichte) ---------- */

.article {
  max-width: 70ch;
}

.article h3 {
  margin-top: 2em;
}

.article em { font-style: italic; color: var(--ink); }

blockquote {
  margin: 2em 0;
  padding-left: 1.4rem;
  border-left: 2px solid var(--line-strong);
  color: var(--muted);
  font-style: italic;
}

/* ---------- Kontakt ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-block { margin-bottom: 1.8rem; }

.contact-block h4 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.5em;
}

.contact-block p { margin: 0; }

.contact-media img { width: 100%; height: auto; margin-bottom: 1.2rem; cursor: zoom-in; }

.contact-media iframe {
  width: 100%;
  height: 320px;
  border: 1px solid var(--line);
  filter: grayscale(0.15);
}

/* ---------- Projekte ---------- */

.project-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
}

@media (max-width: 700px) {
  .project-list { grid-template-columns: 1fr; }
}

.project-card figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f4f4;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.5s ease;
}

.project-card:hover img { transform: scale(1.04); }

.project-card figcaption {
  margin-top: 0.9rem;
  font-family: var(--font-head);
  font-weight: 500;
}

.project-card.no-image figure {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-2);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

/* ---------- Fußzeile ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: clamp(4rem, 8vw, 7rem);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(2rem, 4vw, 2.6rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 620px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}

.footer-grid h4 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.6em;
}

.footer-grid p, .footer-grid a { font-size: 0.9rem; }

.footer-grid a:hover { color: var(--muted); }

.footer-bottom {
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted-2);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox img {
  max-width: 100%;
  max-height: 92vh;
  width: auto;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Utility ---------- */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .hero-image { animation: none; opacity: 1; transform: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Unterabschnitte ---------- */

.sub-head {
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin: 0 0 1.4rem;
}

.sub-head.spaced { margin-top: 3.5rem; margin-bottom: 0.8rem; }

.footer-bottom a:hover { color: var(--ink); }

/* ---------- Ausstellungsarchiv (vergangen) ---------- */

.archive-feature {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.archive-feature figure { margin: 0; }
.archive-feature img { width: 100%; height: auto; cursor: zoom-in; }

.archive-feature figcaption,
.archive-item figcaption {
  margin-top: 0.8rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.4;
}

.archive-feature figcaption em,
.archive-item figcaption em {
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
}

.archive-grid {
  columns: 3 260px;
  column-gap: clamp(1.4rem, 3vw, 2.4rem);
}

.archive-item {
  break-inside: avoid;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  display: inline-block;
  width: 100%;
}

.archive-item img {
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.archive-item figcaption { font-size: 0.92rem; }

.sub-head a { border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.sub-head a:hover { border-color: var(--ink); }
.note a { border-bottom: 1px solid var(--line-strong); }
.note a:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Aufklappbare Texte (Projekte / Team) ---------- */

.disclosure {
  margin-top: 0.6rem;
  border-top: 1px solid var(--line);
}

.disclosure summary {
  list-style: none;
  cursor: pointer;
  padding: 0.7rem 1.6rem 0.7rem 0;
  position: relative;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.2s ease;
}

.disclosure summary::-webkit-details-marker { display: none; }

.disclosure summary:hover { color: var(--ink); }

.disclosure summary::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s ease;
}

.disclosure[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.disclosure[open] summary { color: var(--ink); }

.disclosure .disclosure-body {
  padding-bottom: 1.2rem;
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 62ch;
}

.disclosure .disclosure-body p:last-child { margin-bottom: 0; }

.disclosure summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- Vita-Liste (Team, volle Breite) ---------- */

.vita-list {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  max-width: 860px;
}

.vita-list .disclosure {
  margin-top: 0;
  border-top: 1px solid var(--line);
}

.vita-list .disclosure:last-child { border-bottom: 1px solid var(--line); }

.vita-list summary {
  padding: 1.1rem 1.8rem 1.1rem 0;
  font-family: var(--font-head);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.vita-list .disclosure-body {
  padding-bottom: 1.8rem;
  max-width: 68ch;
}

/* ---------- Sprachumschalter ---------- */

.lang-switch {
  position: relative;
  margin-left: 0.4rem;
}

.lang-switch summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 0.3rem 0.95rem 0.3rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  position: relative;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.lang-switch summary::-webkit-details-marker { display: none; }

.lang-switch summary:hover,
.lang-switch[open] summary {
  color: var(--ink);
  border-color: var(--ink);
}

.lang-switch summary::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-75%) rotate(45deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 118px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
  padding: 0.3rem 0;
  z-index: 60;
}

.lang-menu a,
.lang-menu .lang-current {
  display: block;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.lang-menu .lang-current {
  color: var(--muted-2);
  cursor: default;
}

.lang-menu a:hover { background: #f5f5f5; }

.lang-menu a::after { display: none; }

.footer-links a { border-bottom: 1px solid var(--line-strong); }
.footer-links a:hover { color: var(--ink); border-color: var(--ink); }

@media (max-width: 760px) {
  .lang-switch {
    margin: 1rem 0 0;
    width: 100%;
  }

  .lang-switch summary {
    display: inline-block;
    padding: 0.5rem 1.4rem 0.5rem 0.8rem;
  }

  .lang-menu {
    position: static;
    box-shadow: none;
    margin-top: 0.5rem;
  }
}

/* ---------- Kunst: Kopfzeile Aktuell / Vergangen ---------- */

.exh-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: -0.6rem;      /* näher an AUSSTELLUNGEN */
  margin-bottom: 1.35rem;   /* Bild rückt ~20 px nach oben */
}

.exh-bar .tab {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

/* aktueller Reiter: schwarz */
.exh-bar .tab.is-active {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

/* anderer Reiter: grau, wird beim Überfahren schwarz */
.exh-bar a.tab {
  color: var(--muted);
  border-bottom: 1px solid transparent;
}

.exh-bar a.tab:hover {
  color: var(--ink);
  border-bottom-color: var(--line-strong);
}

@media (max-width: 520px) {
  .exh-bar { gap: 1.2rem; justify-content: flex-start; }
}

/* ---------- Team: Namen als Schalter, Vita darunter ---------- */

.team-name {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0.8rem 0 0;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  cursor: pointer;
  position: relative;
}

.team-name .role {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

.team-name::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  background: var(--ink);
  margin-top: 0.5rem;
  transition: width 0.25s ease;
}

.team-name:hover::after { width: 2.2rem; }
.team-name[aria-expanded="true"]::after { width: 100%; }

.card.portrait figure { cursor: default; }
.card.portrait img { cursor: default; }
.card.portrait:hover img { transform: none; }

.team-bio {
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  max-width: 70ch;
}

.team-bio[hidden] { display: none; }

.team-bio h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.team-bio p { font-size: 0.95rem; line-height: 1.65; }
.team-bio p:last-child { margin-bottom: 0; }

/* ---------- Kontakt: statische Karte ---------- */

.map-card {
  display: block;
  border: 1px solid var(--line);
  padding: 1.4rem 1.5rem;
  transition: border-color 0.2s ease;
}

.map-card:hover { border-color: var(--ink); }

.map-card .map-pin {
  display: block;
  width: 22px;
  height: 22px;
  margin-bottom: 0.7rem;
  color: var(--muted);
}

.map-card .map-address {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.map-card .map-hint {
  font-size: 0.84rem;
  color: var(--muted);
}

.map-card:hover .map-hint { color: var(--ink); }

/* Jahreszahlen im Archiv: normal, nicht halbfett */
.archive-item figcaption .year,
.archive-feature figcaption .year {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted);
}
