@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #3b3b3b;
  --text: #dcdcdc;
  --text-dim: #a3a3a3;
  --text-bright: #f0f0f0;
  --link: #dcdcdc;
  --border: rgba(255,255,255,0.16);
  --border-soft: rgba(255,255,255,0.08);
  --max-width: 1080px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  background-color: var(--bg);
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.05) 0px, rgba(0,0,0,0.05) 1px, transparent 1px, transparent 3px);
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 1px dotted var(--text-bright); outline-offset: 3px; }

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

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

/* ---------- Top navigation (all pages except hero placement on home) ---------- */
.site-nav {
  padding: 28px 0 18px;
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text-bright);
}
.site-logo:hover { border-color: var(--text-bright); text-decoration: none; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  position: relative;
  margin-left: auto;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1px;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--text);
  font-size: 0.98rem;
}
.main-nav a[aria-current="page"] { text-decoration: underline; }

.nav-divider {
  border: none;
  border-top: 1px solid var(--border-soft);
  margin: 0 0 36px;
}
.site-nav.with-divider { margin-bottom: 0; }

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    background-image: inherit;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
    z-index: 200;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 70px 28px 40px;
  }
  .main-nav li { border-bottom: 1px solid var(--border-soft); }
  .main-nav a { display: block; padding: 16px 4px; font-size: 1.1rem; }
  .main-nav .close-nav {
    position: absolute; top: 22px; right: 24px;
    background: none; border: none; color: var(--text);
    font-size: 1.8rem; cursor: pointer;
  }
}

/* ---------- Home hero ---------- */
.hero {
  padding: 34px 0 14px;
  text-align: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(2.2rem, 5.5vw, 3.2rem);
  color: var(--text-bright);
  letter-spacing: 0.01em;
  margin: 0 0 22px;
}
.hero-figure {
  max-width: min(92vw, 760px);
  margin: 0 auto;
}
.hero-figure img { width: 100%; height: auto; }

.hero-nav {
  padding: 20px 0 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 0;
  padding: 0;
}
.hero-nav a { color: var(--text); font-size: 0.98rem; }
.hero-nav a[aria-current="page"] { text-decoration: underline; }
.hero-nav .site-logo:hover { text-decoration: none; }

@media (max-width: 780px) {
  .hero-nav ul { gap: 12px 18px; }
}

/* ---------- Page content ---------- */
main { min-height: 50vh; padding-bottom: 70px; padding-top: 6px; }

.prose { max-width: 740px; }
.prose p { margin: 0 0 1.1em; color: var(--text); }
.prose h2, .prose h3 {
  font-family: var(--font-display);
  color: var(--text-bright);
  font-weight: 600;
  font-size: 1.6rem;
  margin: 1.6em 0 0.6em;
}
.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--border);
  font-style: italic;
  color: var(--text-dim);
}

/* ---------- Contact ---------- */
.contact-card {
  border: 1px solid var(--border-soft);
  padding: 24px 28px;
  max-width: 380px;
  margin-top: 8px;
}
.contact-card h2 {
  font-family: var(--font-display);
  color: var(--text-bright);
  margin-top: 0;
  font-weight: 600;
  font-size: 1.6rem;
}
.contact-card p { margin: 0.3em 0; }

/* ---------- Exhibitions list ---------- */
.exhib-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 720px) {
  .exhib-columns { grid-template-columns: 1fr 1fr; }
}
.exhib-columns h2 {
  font-family: var(--font-display);
  color: var(--text-bright);
  font-size: 1.4rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 10px;
}
.exhib-columns ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.exhib-columns li {
  padding: 7px 0;
  border-bottom: 1px solid var(--border-soft);
}

/* ---------- Gallery overview (Malerei / Fotografie) ---------- */
.gallery-overview {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.gallery-overview .thumb {
  width: 150px;
  flex: 0 0 auto;
  border: 1px solid var(--border-soft);
}
.gallery-list {
  list-style: disc;
  padding-left: 20px;
  margin: 4px 0;
  color: var(--text);
}
.gallery-list li { padding: 3px 0; }
.gallery-list a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
}
.gallery-list a:hover { color: var(--text-bright); text-decoration-color: var(--text-bright); }

/* ---------- Single gallery detail ---------- */
.gallery-detail-title {
  text-align: center;
  margin: 6px 0 30px;
  font-size: 1.05rem;
  color: var(--text-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.gallery-detail-title a { color: var(--text-dim); font-size: 1.3rem; }
.gallery-detail-title a:hover { color: var(--text-bright); text-decoration: none; }

.back-link { display: inline-block; margin-bottom: 18px; color: var(--text-dim); font-size: 0.88rem; }

.thumb-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.thumb-strip button.thumb-item {
  position: relative;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  height: 110px;
}
.thumb-strip img { height: 110px; width: auto; }

.sold-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #c0322e;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4);
}

.gallery-empty {
  margin-top: 10px;
  padding: 26px;
  border: 1px dashed var(--border);
  color: var(--text-dim);
  font-size: 0.92rem;
  text-align: center;
}
.gallery-empty code {
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 3px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  display: none;
  z-index: 1000;
}
.lightbox.open { display: block; }
.lightbox-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 84px;
}
.lightbox-image-wrap {
  position: relative;
  width: min(90vw, 1300px);
  height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  box-shadow: 0 14px 60px rgba(0,0,0,0.75);
}
.lightbox-sold-dot {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 16px;
  height: 16px;
}
.lightbox-caption {
  text-align: center;
  margin-top: 14px;
  color: var(--text);
}
.lightbox-title {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.lightbox-size {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.lightbox-counter {
  display: block;
  margin-top: 3px;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1002;
}
.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.06);
  border: none;
  border-radius: 3px;
  color: var(--text);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 12px 16px;
  z-index: 1001;
}
.lightbox-arrow:hover { color: var(--text-bright); background: rgba(255,255,255,0.12); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
@media (max-width: 640px) {
  .lightbox-body { padding: 44px 46px; }
  .lightbox-arrow { font-size: 1.3rem; padding: 8px 10px; }
  .lightbox-close { top: 10px; right: 14px; font-size: 1.7rem; }
  .lightbox-image-wrap { width: 88vw; height: 66vh; }
}

/* ---------- Links page ---------- */
.link-list {
  list-style: none;
  padding: 0;
  max-width: 480px;
}
.link-list li {
  border-bottom: 1px solid var(--border-soft);
  padding: 13px 0;
  font-size: 1rem;
}
.link-list a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
}
.link-list a:hover { color: var(--text-bright); text-decoration-color: var(--text-bright); }

/* Links in Fließtext klar als klickbar erkennbar */
.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--text-bright); }

/* ---------- Aktuelles Platzhalter ---------- */
.aktuelles-figure {
  margin-top: 28px;
  max-width: 560px;
  border: 1px solid var(--border-soft);
}
.aktuelles-figure img { width: 100%; height: auto; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 26px 0;
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
}
.site-footer a { color: var(--text-dim); text-decoration: underline; }
.site-footer nav { margin-top: 6px; }

.hero-footer {
  text-align: center;
  padding: 4px 0 26px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.hero-footer a { text-decoration: underline; color: var(--text-dim); }
