/* ==========================================================================
   Museum Küssaberg – Stylesheet

   Typografie
   - Source Serif 4 (variabel, mit optischen Größen) für Überschriften und Text:
     große Grade bekommen automatisch die feineren Display-Formen.
   - Source Sans 3 für Navigation, Beschriftungen, Tabellenköpfe, Buttons.
     Beide Schriften stammen aus derselben Familie (Adobe „Source“) und harmonieren.
   - Typografische Skala im Verhältnis ~1,25 (große Terz), Grundschrift 18 px.
   - Zeilenlänge im Fließtext max. ca. 65–70 Zeichen, Zeilenabstand 1,6.
   - Überschriften in normaler Schreibung, nicht fett, leicht unterschnitten;
     Versalien nur für kleine Auszeichnungen, dann immer gesperrt.
   Alle Schriften lokal eingebunden – keine Verbindung zu externen Servern.
   ========================================================================== */

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/source-serif-4.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/source-serif-4-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/source-sans-3.woff2') format('woff2');
}

:root {
  /* Farben */
  --text: #1c1a17;          /* warmes Fast-Schwarz statt reinem Schwarz */
  --muted: #6b665e;
  --line: #e2dccd;
  --bg-soft: #f6f1e5;       /* Sandton */
  --accent: #6c1630;        /* Bordeaux aus dem Logo */
  --accent-dark: #4a0e20;
  --white: #fff;

  /* Schriften */
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;

  /* Skala (Verhältnis 1,25) */
  --step--1: 0.875rem;
  --step-0: 1.125rem;                                  /* 18 px Grundschrift */
  --step-1: 1.3125rem;
  --step-2: clamp(1.5rem, 1.3rem + 0.8vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.45rem + 1.3vw, 2.25rem);
  --step-4: clamp(2.25rem, 1.7rem + 2.4vw, 3.5rem);

  /* Maße */
  --wrap: 1120px;
  --measure: 40rem;         /* Lesebreite ≈ 68 Zeichen */
  --header-h: 76px;
}

/* ---------- Grundlagen ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--serif);
  font-size: var(--step-0);
  font-optical-sizing: auto;
  line-height: 1.6;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(108, 22, 48, 0.4);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: var(--accent-dark);
  text-decoration-color: currentColor;
}

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

::selection {
  background: rgba(108, 22, 48, 0.15);
}

/* Überschriften: Serife, normale Schreibung, nicht fett */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  color: var(--text);
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: var(--step-4);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

h2 {
  font-size: var(--step-3);
  font-weight: 450;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 3.5rem 0 1.25rem;
}

h3 {
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 2.25rem 0 0.75rem;
}

h4 {
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.3;
  margin: 1.75rem 0 0.5rem;
}

p {
  margin: 0 0 1.15em;
  text-wrap: pretty;
}

/* Silbentrennung im Fließtext (wichtig bei deutschen Komposita) */
main p,
main li,
main figcaption {
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 7 3 3;
}

strong, b {
  font-weight: 600;
}

sup {
  font-size: 0.7em;
  line-height: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  font-family: var(--sans);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--white);
  padding: 0.5rem 1rem;
}

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

.text {
  max-width: calc(var(--measure) + 3rem);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.muted {
  color: var(--muted);
}

.center {
  text-align: center;
}

/* Kleine Auszeichnung in Versalien – immer gesperrt */
.label,
.kicker,
.date {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* ---------- Kopfzeile & Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.brand img {
  height: 50px;
  width: auto;
}

.brand:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  align-items: center;
  gap: 0.6rem;
}

.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-toggle .bars {
  position: relative;
}

.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after  { top: 7px; }

.nav-open .nav-toggle .bars { background: transparent; }
.nav-open .nav-toggle .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle .bars::after  { transform: translateY(-7px) rotate(-45deg); }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav > ul {
  display: flex;
  gap: 2.25rem;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.5rem 0;
}

.main-nav > ul > li > a {
  border-bottom: 1.5px solid transparent;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > a[aria-current='page'] {
  border-bottom-color: var(--accent);
}

/* kleiner Pfeil bei Menüpunkten mit Untermenü */
.main-nav .has-sub > a::after {
  content: '';
  display: inline-block;
  width: 0.35em;
  height: 0.35em;
  margin-left: 0.55em;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg) translateY(-0.25em);
}

/* Untermenü (Desktop: aufklappen bei Hover/Fokus) */
.main-nav .sub {
  position: absolute;
  top: 100%;
  left: -1.25rem;
  min-width: 15rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(28, 26, 23, 0.08);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.main-nav .has-sub:hover .sub,
.main-nav .has-sub:focus-within .sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .sub a {
  font-family: var(--serif);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.0625rem;
  font-weight: 400;
  padding: 0.5rem 1.25rem;
}

.main-nav .sub a:hover,
.main-nav .sub a[aria-current='page'] {
  color: var(--accent);
  background: var(--bg-soft);
}

/* ---------- Hero (Startseite) ---------- */

.hero {
  position: relative;
  min-height: min(78vh, 680px);
  display: grid;
  place-items: center;
  background: var(--bg-soft) url('../img/museum/museum-aussen.jpg') center / cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
}

.hero-logo {
  position: relative;
  width: min(62vw, 360px);
}

.hero h1 {
  /* nur für Screenreader – optisch übernimmt das Logo */
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---------- Seitenkopf der Unterseiten ---------- */

.page-head {
  padding: 4.5rem 0 1.5rem;
  text-align: center;
}

.page-head .kicker {
  color: var(--accent);
  margin: 0 0 1rem;
}

/* feine Linie unter dem Seitentitel */
.page-head h1::after {
  content: '';
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--accent);
  margin: 1.75rem auto 0;
}

/* ---------- Inhaltsbereiche ---------- */

.section {
  padding: 4rem 0;
}

.section > .wrap > h2:first-child,
.section > .text > h2:first-child {
  margin-top: 0;
}

.section.soft {
  background: var(--bg-soft);
}

h2.center {
  margin-top: 0;
  margin-bottom: 2rem;
}

.lead {
  font-size: var(--step-1);
  line-height: 1.5;
}

.figure {
  margin: 2.25rem 0;
}

.figure figcaption,
.source {
  font-family: var(--sans);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.figure figcaption {
  margin-top: 0.6rem;
}

.source {
  font-style: normal;
}

/* Bildstreifen */
.band {
  height: clamp(140px, 22vw, 260px);
  background: var(--bg-soft) url('../img/museum/museum-aussen.jpg') center 65% / cover no-repeat;
}

/* ---------- Karten (Freunde) ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card {
  border: 1px solid var(--line);
  padding: 2.25rem 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--bg-soft);
  margin-bottom: 1.5rem;
}

.card.logo img {
  aspect-ratio: auto;
  object-fit: contain;
  max-height: 120px;
  background: none;
}

.card h3 {
  font-size: var(--step-1);
  margin: 0 0 1.25rem;
}

.card .btn {
  margin-top: auto;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 1.4rem;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--accent-dark);
  color: var(--white);
}

/* ---------- Aktuelle Ausstellung (Startseite) ---------- */

.current-wrap {
  max-width: 44rem;
  margin: 0 auto;
}

.current {
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 1rem;
  text-align: center;
  margin-bottom: 1.75rem;
}

.current img {
  width: 100%;
  margin-bottom: 1.75rem;
}

.current .date {
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.current h3 {
  font-size: var(--step-3);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

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

.current .muted {
  font-family: var(--sans);
  font-size: 0.9375rem;
}

.next {
  text-align: center;
  margin-bottom: 1.25rem;
}

.next strong {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-right: 0.35em;
}

/* ---------- Öffnungszeiten ---------- */

.hours {
  text-align: center;
  font-size: var(--step-1);
  line-height: 1.5;
}

.hours p {
  margin: 0 0 0.3rem;
}

.hours .free {
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Vorstand ---------- */

.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.75rem 1.5rem;
  padding: 0;
  margin: 0 0 1.5rem;
  list-style: none;
}

.people li {
  border-top: 1px solid var(--accent);
  padding-top: 0.75rem;
}

.people .name {
  display: block;
  font-size: var(--step-0);
  font-weight: 500;
}

.people .role,
.people .since {
  display: block;
  font-family: var(--sans);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

/* Aufzählung im Fließtext */
ul.list {
  margin: 0 0 1.15em;
  padding-left: 1.25em;
}

ul.list li {
  margin: 0.2em 0;
}

ul.list li::marker {
  color: var(--accent);
}

/* ---------- Hinweisbox ---------- */

.note {
  border-left: 2px solid var(--accent);
  background: var(--bg-soft);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

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

/* ---------- Jahresübersicht ---------- */

.year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  justify-content: center;
  padding: 0;
  margin: 0 0 1rem;
  list-style: none;
}

.year-nav a {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 1.5px solid transparent;
}

.year-nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.year-note {
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--accent);
  margin: -0.25rem 0 1rem;
}

.archive h2 {
  font-size: var(--step-3);
  margin: 3.5rem 0 1rem;
}

.table {
  width: 100%;
  table-layout: fixed;          /* gleiche Spaltenbreiten in allen Jahren */
  border-collapse: collapse;
  font-size: 1.0625rem;
  line-height: 1.45;
  margin-bottom: 1rem;
}

.table th {
  text-align: left;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--text);
  padding: 0.6rem 1.25rem 0.6rem 0;
}

.table th:first-child { width: 13.5rem; }
.table th:nth-child(2) { width: 45%; }

.table td {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 1.25rem 0.85rem 0;
  vertical-align: top;
}

.table td:first-child {
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  padding-top: 1rem;
}

.table td:nth-child(3) {
  color: var(--muted);
}

.table tr.laufend td {
  background: var(--bg-soft);
}

.table tr.laufend td:first-child {
  box-shadow: inset 2px 0 0 var(--accent);
  padding-left: 0.75rem;
}

.table tr.geplant td,
.table tr.vorschau td {
  color: var(--muted);
}

.badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--white);
  background: var(--accent);
  padding: 0.3em 0.55em 0.25em;
  margin-left: 0.5rem;
  vertical-align: 0.2em;
  white-space: nowrap;
}

.badge.soon {
  color: var(--accent);
  background: none;
  box-shadow: inset 0 0 0 1px var(--accent);
}

/* ---------- Plakate: Vorschau & Vergrößerung ----------
   Ohne JavaScript: HTML-Popover (popovertarget). Klick auf das Vorschaubild
   öffnet das Plakat groß; Klick auf Plakat, Hintergrund, × oder Esc schließt. */

.posters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 2rem 1.75rem;
  align-items: start;
  margin: 1.5rem 0 2.5rem;
}

.poster {
  margin: 0;
}

.poster button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.poster img {
  width: 100%;
  aspect-ratio: 1 / 1.414;              /* DIN-A-Format */
  object-fit: cover;
  background: var(--white);
  outline: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(28, 26, 23, 0.06), 0 6px 16px rgba(28, 26, 23, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster button:hover img,
.poster button:focus-visible img {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(28, 26, 23, 0.08), 0 14px 30px rgba(28, 26, 23, 0.14);
}

.poster figcaption {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.7rem;
  text-align: center;
}

/* Großansicht */
.lightbox {
  border: 0;
  padding: 0;
  margin: auto;
  background: transparent;
  overflow: visible;
  max-width: none;
  max-height: none;
}

.lightbox-img {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-out;
}

.lightbox-img img {
  display: block;
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 90vh;
  max-height: 90dvh;
  background: var(--white);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: -0.9rem;
  right: -0.9rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--text);
  font: 400 1.5rem/1 var(--sans);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.lightbox-close:hover {
  color: var(--accent);
}

.lightbox::backdrop {
  background: rgba(28, 26, 23, 0.82);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* sanftes Ein- und Ausblenden (moderne Browser) */
.lightbox,
.lightbox::backdrop {
  opacity: 0;
  transition: opacity 0.25s ease, overlay 0.25s allow-discrete, display 0.25s allow-discrete;
}

.lightbox:popover-open,
.lightbox:popover-open::backdrop {
  opacity: 1;
}

@starting-style {
  .lightbox:popover-open,
  .lightbox:popover-open::backdrop {
    opacity: 0;
  }
}

/* Fotos der früheren Ausstellungen: Querformat statt Plakatformat */
.poster.photo img {
  aspect-ratio: 4 / 3;
}

.poster.photo figcaption {
  font-family: var(--serif);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  line-height: 1.35;
  text-wrap: balance;
}

/* Ausstellungsblatt: Bilder (seitlich blättern) + Text */
.sheet .sheet-inner {
  width: min(92vw, 60rem);
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  background: var(--white);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  overscroll-behavior: contain;
}

.gallery {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  background: #f1ede4;
  padding: 0.75rem;
  scrollbar-width: thin;
}

.gallery {
  align-items: center;
}

.gallery img {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  max-height: min(58vh, 34rem);
  max-height: min(58dvh, 34rem);
  max-width: calc(100% - 3rem);   /* nächstes Bild schaut hervor */
  scroll-snap-align: center;
}

.gallery.single {
  justify-content: center;
}

.gallery.single img {
  max-width: 100%;
}

.sheet-text p {
  margin-bottom: 0.8em;
}

.poster figcaption {
  hyphens: manual;
  -webkit-hyphens: manual;
}

.sheet-text {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.75rem 1.75rem 2rem;
}

.sheet-text h3 {
  font-size: var(--step-3);
  font-weight: 400;
  margin: 0 0 1rem;
}

.sheet-text p {
  hyphens: auto;
  -webkit-hyphens: auto;
}

.sheet-hint {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.names {
  columns: 2;
  column-gap: 2rem;
  padding: 0;
  margin: 0 0 1.15em;
  list-style: none;
}

.names li {
  break-inside: avoid;
}

.sheet .lightbox-close {
  top: -0.9rem;
  right: -0.9rem;
}

@media (max-width: 640px) {
  .gallery img {
    max-height: 50vh;
    max-width: calc(100% - 2rem);
  }

  .sheet-text {
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .sheet .lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
  }
}

/* Aktuelle Ausstellung mit Plakat (Startseite) */
.current ~ .current {
  border-top: 0;
  margin-top: -1.75rem;   /* nur eine Trennlinie zwischen mehreren Ausstellungen */
}

.current.has-poster {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 2.25rem;
  align-items: center;
  text-align: left;
  padding: 2.5rem 0;
}

.current p,
.next {
  hyphens: manual;
  -webkit-hyphens: manual;
}

.current.has-poster h3 {
  font-size: var(--step-3);
}

@media (max-width: 640px) {
  .posters {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1.25rem;
  }

  .current.has-poster {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .current.has-poster .current-poster {
    width: 11rem;
    margin: 0 auto;
  }

  .lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
  }
}

/* ---------- Fußbereich ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem 4rem;
  padding: 3.5rem 0 2.5rem;
  font-size: 1.0625rem;
  line-height: 1.55;
}

.footer-cols h2 {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

.footer-cols dl {
  margin: 0;
}

.footer-cols dt {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}

.footer-cols dd {
  margin: 0 0 0.9rem;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-bottom strong {
  font-weight: 600;
  color: var(--text);
}

.footer-bottom a {
  color: var(--muted);
  text-decoration: none;
}

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

.footer-bottom .top {
  margin-left: auto;
}

/* ==========================================================================
   Mobil (bis 900 px): Menü-Schaltfläche, Navigation als Ausklappliste
   ========================================================================== */

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .brand { font-size: 1.125rem; }
  .brand img { height: 40px; }

  .nav-toggle { display: inline-flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    display: none;
  }

  .nav-open .main-nav { display: block; }

  /* ohne JavaScript: Menü immer anzeigen */
  .no-js .main-nav { display: block; position: static; }
  .no-js .nav-toggle { display: none; }
  .no-js .site-header .wrap { flex-wrap: wrap; }

  .main-nav > ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
  }

  .main-nav > ul > li {
    border-bottom: 1px solid var(--line);
  }

  .main-nav > ul > li > a {
    padding: 1rem 0;
    border-bottom: 0;
  }

  .main-nav .has-sub > a::after { display: none; }

  .main-nav .sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0 0 0.75rem;
    min-width: 0;
  }

  .main-nav .sub a {
    padding: 0.45rem 0 0.45rem 1rem;
  }

  .section { padding: 3rem 0; }
  .page-head { padding: 3rem 0 0.5rem; }
}

/* Schmale Bildschirme: etwas kleinere Grundschrift, Tabelle als Liste */
@media (max-width: 640px) {
  :root { --step-0: 1.0625rem; }

  .table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
    width: 100%;
  }

  .table tr {
    border-bottom: 1px solid var(--line);
    padding: 0.9rem 0;
  }

  .table td {
    border: 0;
    padding: 0.1rem 0;
  }

  .table td:first-child {
    padding-top: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
  }

  .table tr.laufend {
    background: var(--bg-soft);
    box-shadow: inset 2px 0 0 var(--accent);
    padding-left: 0.75rem;
  }

  .table tr.laufend td,
  .table tr.laufend td:first-child {
    background: none;
    box-shadow: none;
    padding-left: 0;
  }

  .footer-bottom .top { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-header, .band, .hero::before, .nav-toggle, .footer-bottom .top { display: none; }
  body { font-size: 11pt; }
  a { color: inherit; text-decoration: none; }
}
