/* Lokal eingebundene Schriften (SIL Open Font License) — kein Google-Fonts-Request */

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Oswald";
  src: url("assets/fonts/oswald.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-alt: #f7f5f2;
  --ink: #1c1b1a;
  --ink-soft: #6e6862;
  --bordeaux: #671617;
  --bordeaux-dark: #4c0f10;
  --line: #e8e4de;
  --ok: #2e6b3f;
  --head: "Montserrat", "Helvetica Neue", sans-serif;
  --cond: "Oswald", "Arial Narrow", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

::selection { background: var(--bordeaux); color: #fff; }

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

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.05rem clamp(1.25rem, 5vw, 4rem);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.header-tools { display: flex; align-items: center; gap: 1.6rem; }

.site-nav { display: flex; gap: 1.8rem; align-items: center; }

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-family: var(--cond);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--bordeaux); }
.site-nav a.active { color: var(--bordeaux); border-bottom: 2px solid var(--bordeaux); padding-bottom: 2px; }

.site-nav a.nav-cta {
  color: #fff;
  background: var(--bordeaux);
  padding: 0.55rem 1.2rem;
  border-bottom: none;
  transition: background 0.2s;
}

.site-nav a.nav-cta:hover, .site-nav a.nav-cta.active { background: var(--bordeaux-dark); color: #fff; border-bottom: none; }

/* Werke-Dropdown (Desktop) */

.nav-item { position: relative; }

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 0.9rem;
  display: none;
  min-width: 15rem;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown { display: block; }

.dropdown .subnav-link {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-top: none;
  padding: 0.75rem 1.2rem;
  text-align: center;
  white-space: nowrap;
}

.dropdown .subnav-link:first-child { border-top: 2px solid var(--bordeaux); }
.dropdown .subnav-link:hover { background: var(--bg-alt); }
.dropdown .subnav-link.active { color: var(--bordeaux); border-bottom: 1px solid var(--line); }

/* Sprachumschalter (Referenz: EN | DE mit Trennstrich) */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--cond);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}

.lang-switch a { text-decoration: none; color: var(--bordeaux); padding: 0.1rem 0; }
.lang-switch a.on { color: var(--ink); pointer-events: none; }
.lang-switch a:hover { color: var(--bordeaux-dark); }
.lang-switch span { width: 1px; height: 1.05rem; background: var(--ink-soft); opacity: 0.5; }

/* Sanfte Überblendung beim Sprachwechsel */
body { transition: opacity 0.35s ease; }
body.lang-fade-out { opacity: 0; }
body.lang-fade-in { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  body { transition: none; }
  body.lang-fade-out, body.lang-fade-in { opacity: 1; }
}

/* Hamburger: drei Striche */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
}

/* ---------- Hero: Metamorphosis füllt die rechte Hälfte komplett ---------- */

.hero-full {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(88vh, 920px);
  border-bottom: 1px solid var(--line);
}

.hero-full .hero-text {
  display: flex;
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 4vw, 4rem);
}

.hero-text-inner { max-width: 34rem; }

.hero-full .hero-media {
  position: relative;
  min-height: 100%;
}

.hero-full .hero-media picture,
.hero-full .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* bewusster Beschnitt nur hier im Hero */
  box-shadow: none;
}

.hero-full .hero-media-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink-soft);
  text-align: right;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--cond);
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bordeaux);
  margin-bottom: 1.4rem;
}

.hero-kicker::before {
  content: "";
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--bordeaux);
}

.hero-tagline {
  font-family: var(--head);
  font-weight: 300;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  line-height: 1.25;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-credential {
  font-family: var(--cond);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 2.2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-media-caption {
  font-family: var(--cond);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.95rem 2.2rem;
  background: var(--bordeaux);
  color: #fff;
  text-decoration: none;
  font-family: var(--cond);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  border: 1px solid var(--bordeaux);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.btn:hover { background: var(--bordeaux-dark); border-color: var(--bordeaux-dark); }

.btn-ghost { background: transparent; color: var(--bordeaux); }
.btn-ghost:hover { background: var(--bordeaux); color: #fff; }

.btn-small { padding: 0.5rem 1.3rem; font-size: 0.78rem; }

/* ---------- Sections ---------- */

.section {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem);
  max-width: 1240px;
  margin: 0 auto;
}

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

/* Schmaler Zwischenblock (z. B. Auftragsarbeiten-Hinweis auf der Startseite) */
.section.slim { padding-top: clamp(2.2rem, 5vw, 3.5rem); padding-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section.slim .section-label { margin-bottom: 0.8rem; }

/* Hinweis-Karte (z. B. Auftragsarbeiten auf der Startseite):
   Karte mit Bordeaux-Kante, viel Luft zwischen Text und Button */
.mini-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.8rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--bordeaux);
  background: var(--bg-alt);
  padding: 2.6rem 2.4rem 2.8rem;
}

.mini-cta p { margin: 0; max-width: 40rem; color: #3c3936; }

.section-label {
  font-family: var(--cond);
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bordeaux);
  margin-bottom: 1rem;
}

.section-label .crumb { color: inherit; text-decoration: none; }
.section-label .crumb:hover { text-decoration: underline; text-underline-offset: 4px; }

.section-title {
  font-family: var(--head);
  font-weight: 300;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.section-title strong { font-weight: 600; }

.section-sub { color: var(--ink-soft); max-width: 42rem; margin-bottom: 2rem; font-size: 0.97rem; }

.section-more { margin-top: 2.4rem; }

/* ---------- Dezente Scroll-Animationen (per JS aktiviert) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Kachel-Teaser (Werke-Übersicht): nie beschnitten ---------- */

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

.teaser {
  display: block;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.teaser:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  .teaser, .teaser:hover { transform: none; transition: none; }
}

/* „Galeriewand“: Werke schweben rahmenlos im Weißraum, einheitliche Höhe,
   nie beschnitten — der weiche Schatten ersetzt den früheren Kasten. */
.teaser-frame {
  height: clamp(240px, 34vw, 380px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.teaser-frame picture {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.teaser-frame img {
  max-width: 100%;
  max-height: clamp(240px, 34vw, 380px);
  width: auto;
  height: auto;
  object-fit: contain;   /* niemals beschneiden */
  box-shadow: 0 16px 44px rgba(28, 27, 26, 0.16);
  transition: opacity 0.25s;
}

.teasers.three { grid-template-columns: repeat(3, 1fr); }
.teasers.three .teaser-frame,
.teasers.three .teaser-frame img { max-height: clamp(200px, 24vw, 300px); }
.teasers.three .teaser-frame { height: clamp(200px, 24vw, 300px); }

.teasers .teaser-body { text-align: center; }

.teaser:hover .teaser-frame img { opacity: 0.9; }

.teaser-body { padding: 1.2rem 0 0; }

.teaser-body h3 {
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.teaser-link {
  font-family: var(--cond);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bordeaux);
  text-decoration: none;
}

.teaser:hover .teaser-link, .teaser-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Werke-Viewer mit Pfeilnavigation ---------- */

.viewer {
  position: relative;
  margin-top: 2.5rem;
  padding: 0 clamp(2.6rem, 6vw, 4.5rem);
}

/* Slide-Mechanik: Slides liegen nebeneinander, der Track gleitet.
   touch-action: pan-y -> horizontale Wischgesten gehen ans Skript,
   vertikales Scrollen der Seite bleibt unangetastet. */
.viewer-frame { overflow: hidden; touch-action: pan-y; }

.viewer-track {
  display: flex;
  align-items: flex-start;
  touch-action: pan-y;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.viewer-track.dragging { transition: none; }

.viewer-slide { flex: 0 0 100%; min-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .viewer-track { transition: none; }
}

.viewer-cta { text-align: center; margin-top: 2.5rem; }

.viewer-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
}

.viewer-stage img {
  max-height: 66vh;
  width: auto;
  max-width: 100%;
  box-shadow: 0 18px 50px rgba(28, 27, 26, 0.14);
  cursor: zoom-in;
  /* iOS: nativen Bild-Drag & Callout unterbinden, sonst frisst er die Wischgeste */
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.viewer-caption {
  text-align: center;
  padding-top: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.viewer-caption .artwork-title {
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.artwork-meta {
  font-family: var(--cond);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.viewer-flags {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.7rem;
}

.badge {
  font-family: var(--cond);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.25rem 0.8rem;
  border: 1px solid currentColor;
}

.badge.available { color: var(--ok); }
.badge.sold { color: var(--bordeaux); }

.viewer-arrow {
  position: absolute;
  top: 33vh;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 0.6rem 0.3rem;
  transition: color 0.2s, opacity 0.2s;
  z-index: 2;
}

.viewer-arrow:hover { color: var(--bordeaux); }
.viewer-arrow.prev { left: 0; }
.viewer-arrow.next { right: 0; }

.viewer-dots {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  padding-top: 1.8rem;
}

.viewer-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--ink-soft);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.viewer-dots button.on { background: var(--ink); border-color: var(--ink); }

/* ---------- Über / Porträt ---------- */

.about {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.about-portrait img { width: 100%; box-shadow: 0 20px 60px rgba(28, 27, 26, 0.14); }

.about-text p { margin-bottom: 1.25rem; max-width: 40rem; color: #3c3936; font-size: 0.97rem; }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.6rem 0 0;
  list-style: none;
  padding: 0;
}

.facts li {
  border: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 0.35rem 0.9rem;
  font-family: var(--cond);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Listen (Ausstellungen / Ablauf) ---------- */

.exhibitions { list-style: none; margin-top: 2rem; max-width: 46rem; padding: 0; }

.exhibitions li {
  display: flex;
  gap: 2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.ex-year {
  font-family: var(--cond);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--bordeaux);
  min-width: 4rem;
}

.ex-title {
  display: block;
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ex-place { display: block; font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.3rem; }
.ex-place a { color: var(--bordeaux); text-decoration: none; border-bottom: 1px solid currentColor; }
.ex-place a:hover { color: var(--bordeaux-dark); }

/* ---------- Ausstellung: Ankündigung + Details nebeneinander ---------- */

.figure-plain { margin: 2.5rem 0 0; }
.figure-plain img { width: 100%; }

.figure-plain figcaption {
  padding-top: 1rem;
  font-family: var(--cond);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.exhibit-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.exhibit-grid .figure-plain { margin: 0; }
.exhibit-grid .exhibitions { margin-top: 0; }
.exhibit-grid .gallery-card { margin-top: 2rem; }

/* ---------- Galerie-Logo-Karte ---------- */

.gallery-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 2rem;
  max-width: 46rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.gallery-card img { width: 110px; height: 110px; object-fit: cover; }

.gallery-card-title {
  font-family: var(--head);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.gallery-card p { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 0.6rem; }

.gallery-card a.text-link {
  font-family: var(--cond);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bordeaux);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* ---------- Kundenstimmen ---------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2.5rem;
}

.quote {
  border: 1px solid var(--line);
  border-left: 3px solid var(--bordeaux);
  background: #fff;
  padding: 1.6rem 1.8rem;
  margin: 0;
}

.quote blockquote { font-size: 0.95rem; color: #3c3936; font-style: italic; }

.quote figcaption {
  padding-top: 0.9rem;
  font-family: var(--cond);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- CTA-Band ---------- */

.cta { background: var(--bordeaux); color: #fff; }

.cta-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 5vw, 4rem);
  text-align: center;
}

.cta .section-label { color: rgba(255, 255, 255, 0.75); }

.cta h2 {
  font-family: var(--head);
  font-weight: 300;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.cta h2 strong { font-weight: 600; }
.cta p { color: rgba(255, 255, 255, 0.82); max-width: 36rem; margin: 0 auto 2rem; font-size: 0.95rem; }

/* Ohne Textzeile folgt der Button direkt auf die Überschrift — mehr Luft */
.cta-inner h2 + .btn { margin-top: 1.6rem; }
.cta .btn { background: #fff; color: var(--bordeaux); border-color: #fff; }
.cta .btn:hover { background: var(--bg-alt); }

/* ---------- Kontakt: zentriert, ohne Bild ---------- */

.contact-narrow {
  max-width: 640px;
  margin: 0 auto;
}

.section:has(.contact-narrow) .section-label,
.section:has(.contact-narrow) .section-title,
.section:has(.contact-narrow) .section-sub {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.werk-note {
  font-family: var(--cond);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bordeaux);
  border: 1px solid var(--line);
  border-left: 3px solid var(--bordeaux);
  background: var(--bg-alt);
  padding: 0.8rem 1.2rem;
  margin-bottom: 1.4rem;
}

.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; }

.contact-list li {
  display: flex;
  gap: 1.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.contact-list .label {
  font-family: var(--cond);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  min-width: 6.5rem;
}

.contact-list a { color: var(--bordeaux); text-decoration: none; word-break: break-all; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }

.form-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 1rem; }
.form-note a { color: var(--bordeaux); }

/* ---------- Footer ---------- */

.site-footer {
  padding: 2.2rem clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-family: var(--cond);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--bordeaux); }

/* ---------- Rechtliches ---------- */

.legal { max-width: 46rem; }

.legal h2 {
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 2.2rem 0 0.6rem;
}

.legal p { color: #3c3936; font-size: 0.92rem; margin-bottom: 0.8rem; }
.legal a { color: var(--bordeaux); }

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 18, 17, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}

.lightbox[hidden] { display: none; }

.lightbox-content {
  max-width: 94vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 94vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lb-slider { position: relative; width: 100%; max-width: 94vw; }

.lb-frame { overflow: hidden; touch-action: pan-y; }

.lb-track {
  display: flex;
  align-items: center;
  touch-action: pan-y;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.lb-track.dragging { transition: none; }

.lb-slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-slide img {
  max-width: 100%; max-height: 84vh; width: auto; height: auto; object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.6rem 0.2rem;
  opacity: 0.85;
}

.lb-arrow:hover { opacity: 1; color: #d9a5ae; }
.lb-arrow.prev { left: -0.4rem; }
.lb-arrow.next { right: -0.4rem; }

.lb-dots { display: flex; justify-content: center; gap: 0.7rem; padding-top: 1.1rem; }

.lb-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.lb-dots button.on { background: #fff; border-color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .lb-track { transition: none; }
}

.lightbox-close {
  position: absolute;
  top: 0.7rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.lightbox-close:hover { color: #d9a5ae; }

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
  /* Hero gestapelt: Bild oben groß und bildfüllend, Text darunter */
  .hero-full { grid-template-columns: 1fr; min-height: 0; }
  .hero-full .hero-media { order: -1; min-height: 58vh; }
  .hero-full .hero-text { padding: 2.2rem 1.25rem 3rem; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .teasers, .teasers.three { grid-template-columns: 1fr; }
  .teaser-frame, .teaser-frame img,
  .teasers.three .teaser-frame, .teasers.three .teaser-frame img { max-height: 46vh; }
  .teaser-frame, .teasers.three .teaser-frame { height: auto; min-height: 200px; }
  .about { grid-template-columns: 1fr; }
  .about-portrait { max-width: 320px; }
  .exhibit-grid { grid-template-columns: 1fr; }
  .exhibit-grid .figure-plain { max-width: 420px; }

  .viewer { padding: 0 2.3rem; }
  .viewer-stage { min-height: 0; }
  .viewer-stage img { max-height: 60vh; }
  .viewer-arrow { top: 30vw; }

  /* Schattenwurf mobil deaktivieren (Rendering-Bug auf einigen Geräten) */
  main img, main picture img { box-shadow: none !important; }

  .nav-toggle { display: flex; }

  /* Überschriften: ganze Wörter umbrechen, keine unschöne Silbentrennung
     („Ausgewählte / Arbeiten" statt „Ar-beiten") */
  .section-title, .cta h2 {
    hyphens: manual;
    overflow-wrap: break-word;
  }

  /* Header kompakt, damit Logo, Sprachumschalter und Burger nebeneinander passen */
  .site-header { gap: 0.8rem; }
  .logo { font-size: 0.78rem; letter-spacing: 0.16em; }
  .header-tools { gap: 0.9rem; }
  .lang-switch { font-size: 0.75rem; gap: 0.45rem; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav.open { max-height: 560px; }

  .site-nav a {
    display: block;
    padding: 0.95rem 1rem;
    border-top: 1px solid var(--line);
    text-align: center;          /* Menüpunkte exakt zentriert */
  }

  /* Aktiver Punkt: Desktop-Unterstreichung (padding-bottom: 2px) neutralisieren,
     sonst rutscht der Text im Kasten nach unten */
  .site-nav a.active {
    border-bottom: none;
    padding: 0.95rem 1rem;
  }

  .site-nav a.nav-cta { background: var(--bordeaux); }

  /* Dropdown mobil: Unterpunkte immer sichtbar, eingerückt zentriert */
  .nav-item { width: 100%; }
  .nav-item > a { display: block; text-align: center; padding: 0.95rem 1rem; border-top: 1px solid var(--line); }

  .dropdown {
    position: static;
    transform: none;
    display: block;
    padding: 0;
    min-width: 0;
  }

  .dropdown .subnav-link {
    border: none;
    border-top: 1px dashed var(--line);
    background: var(--bg-alt);
    font-size: 0.78rem;
    padding: 0.75rem 1rem;
  }

  .dropdown .subnav-link:first-child { border-top: 1px dashed var(--line); }

  .dropdown .subnav-link.active {
    border-bottom: none;
    padding: 0.75rem 1rem;
  }
}
