:root {
  --bg: #ecebe7;
  --paper: #f7f6f3;
  --warm-white: #f8f1e6;
  --text: #222020;
  --muted: #616161;
  --gold: #b08d2f;
  --line: #d8d3cb;
  --contact-image: url("./assets/kontakt-portrait.png");
  --about-image: url("./assets/kontakt-portrait.png");
  --exhibit-image: url("./assets/austellung.png");
  --index-hero-image: url("./assets/index-hero.png");
  --panel-padding: 4rem 3rem;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Times New Roman", Georgia, serif;
  color: var(--text);
  background: var(--bg);
}

.wrap {
  width: min(1120px, 94vw);
  margin: 0 auto;
}

.topbar {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  text-decoration: none;
  color: var(--text);
  font-family: "Brush Script MT", "Lucida Handwriting", "Apple Chancery", cursive;
  font-size: 3rem;
  line-height: 1;
}

.menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 2rem;
}

.menu a {
  text-decoration: none;
  color: #2a2928;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.menu a:hover,
.menu a.is-active {
  color: #1d1c1b;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.3rem;
}

.hero {
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 720px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  padding: 4.4rem 3rem;
  display: grid;
  align-content: center;
  justify-items: start;
}

.hero-panel {
  background: var(--warm-white);
}

/* Ensure all page hero text panels use the same warm-white background. */
.hero-copy,
.contact-intro,
.about-intro,
.exhibit-intro {
  background: var(--warm-white);
}

.hero-fade-visual {
  position: relative;
}

.hero-fade-visual::before {
  content: "";
  position: absolute;
  top: 0;
  width: 27%;
  height: 100%;
}

.hero-fade-visual.fade-left::before {
  left: 0;
  background: linear-gradient(
    270deg,
    rgba(248, 241, 230, 0) 0%,
    rgba(248, 241, 230, 0.78) 70%,
    rgba(248, 241, 230, 1) 100%
  );
}

.hero-fade-visual.fade-right::before {
  right: 0;
  background: linear-gradient(
    90deg,
    rgba(248, 241, 230, 0) 0%,
    rgba(248, 241, 230, 0.78) 72%,
    rgba(248, 241, 230, 1) 100%
  );
}

.hero-visual {
  min-height: 720px;
  background-image: var(--index-hero-image);
  background-size: cover;
  background-position: center;
}

.hero-copy {
  max-width: 520px;
}

.hero-copy h1 {
  font-size: clamp(3rem, 5vw, 4.6rem);
  margin: 0;
  line-height: 1.05;
  font-weight: 500;
}

.divider {
  width: 64px;
  height: 2px;
  background: #b6a88f;
  margin: 2.1rem 0 2rem;
}

.hero-copy p {
  font-size: clamp(1.6rem, 2.7vw, 2.5rem);
  margin: 0;
  line-height: 1.4;
  font-style: italic;
}

.signature {
  margin-top: 2.2rem !important;
  font-size: clamp(2.4rem, 4vw, 3.6rem) !important;
  font-style: italic;
}

.welcome {
  padding: 3.8rem 0 3rem;
}

.exhibitions {
  padding: 0.2rem 0 4rem;
}

.intro {
  text-align: center;
}

.welcome .intro {
  background: rgba(243, 232, 212, 0.62);
  border: 1px solid rgba(176, 141, 47, 0.2);
  border-radius: 0.7rem;
  padding: 1.4rem 1.2rem;
}

.exhibitions-link {
  margin-top: 0;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--gold);
  font-size: 0.9rem;
  margin: 0;
}

.intro h2 {
  margin: 0.8rem 0 0;
  font-size: clamp(2.1rem, 3vw, 3rem);
  font-weight: 500;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  margin-top: 3rem;
}

.art-card {
  text-align: center;
}

.art-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1.2;
  border: 1px solid #c7c0b2;
}

.ph-1 {
  background:
    linear-gradient(50deg, transparent 35%, rgba(255, 255, 255, 0.28) 36%, transparent 39%),
    linear-gradient(130deg, transparent 42%, rgba(255, 255, 255, 0.2) 43%, transparent 46%),
    linear-gradient(160deg, #f5d40f 0%, #f6465f 33%, #ad1f85 63%, #5a5cb8 100%);
}

.ph-2 {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.5) 0%, transparent 30%),
    radial-gradient(circle at 72% 65%, rgba(255, 255, 255, 0.45) 0%, transparent 28%),
    linear-gradient(140deg, #f8e8d0 0%, #cce8ef 56%, #8db8c8 100%);
}

.ph-3 {
  background:
    radial-gradient(circle, #f7e499 3%, #f6c94d 8%, transparent 18%),
    repeating-radial-gradient(
      circle,
      #f24a8f 0 4px,
      #ffce54 4px 8px,
      #4a98d3 8px 12px,
      #57297f 12px 16px
    );
}

.art-card h3 {
  margin: 1.1rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 500;
}

.art-card h3::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 0.55rem auto 0;
}

.gallery-shell {
  margin-top: 2.2rem;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.gallery-header h3 {
  margin: 0;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
}

.gallery-controls {
  display: flex;
  gap: 0.6rem;
}

.gallery-btn {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--paper);
  color: var(--gold);
  font-size: 1rem;
  cursor: pointer;
}

.gallery-btn:hover {
  background: rgba(161, 137, 75, 0.1);
}

.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 31%);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.4rem;
}

.gallery-track::-webkit-scrollbar {
  height: 8px;
}

.gallery-track::-webkit-scrollbar-thumb {
  background: rgba(161, 137, 75, 0.6);
  border-radius: 999px;
}

.gallery-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid #c7c0b2;
  border-radius: 0.45rem;
  scroll-snap-align: start;
  background: #e9e5df;
  cursor: zoom-in;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 13, 10, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  padding: 2rem;
}

.gallery-lightbox.is-open {
  display: flex;
}

.lightbox-image {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

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

.exhibitions .cta {
  margin-top: 1.2rem;
}

.cta p {
  margin: 0;
  font-size: 2rem;
}

.btn-outline {
  margin-top: 1.8rem;
  display: inline-block;
  padding: 0.88rem 2.35rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: rgba(248, 241, 230, 0.75);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.86rem;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-outline:hover {
  background: rgba(176, 141, 47, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.contact-hero {
  display: grid;
  grid-template-columns: 58% 42%;
  min-height: 620px;
  border-bottom: 1px solid var(--line);
}

.contact-visual {
  min-height: 620px;
  background-image: var(--contact-image);
  background-size: cover;
  background-position: center 24%;
}

.contact-intro {
  padding: 4rem 3rem;
  display: grid;
  align-content: center;
  justify-items: start;
}

.contact-intro h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 4.6rem);
  font-weight: 500;
}

.contact-intro p {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.5rem);
  line-height: 1.45;
  font-style: italic;
}

.contact-details {
  padding: 3rem 0 4rem;
  background: var(--bg);
}

.contact-stack {
  width: min(460px, 90vw);
  margin: 0 auto;
}

.contact-item {
  text-align: center;
  margin-bottom: 2.1rem;
}

.contact-icon {
  display: block;
  color: var(--gold);
  font-size: 2.2rem;
  margin-bottom: 0.35rem;
}

.contact-icon-svg {
  width: 2rem;
  height: 2rem;
  display: block;
  margin: 0 auto;
}

.contact-icon-svg rect,
.contact-icon-svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.contact-item h2 {
  margin: 0;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.95rem;
  font-weight: 500;
}

.contact-item h2::after {
  content: "";
  display: block;
  width: 38px;
  height: 1px;
  margin: 0.8rem auto;
  background: var(--gold);
}

.contact-item p {
  margin: 0.4rem 0;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.25;
}

.contact-item a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.contact-item a:hover {
  border-bottom-color: var(--gold);
}

.about-hero {
  display: grid;
  grid-template-columns: 58% 42%;
  min-height: 620px;
  border-bottom: 1px solid var(--line);
}

.about-intro {
  background: var(--warm-white);
  padding: 4.4rem 3rem;
  display: grid;
  align-content: center;
  justify-items: start;
  order: 2;
}

.about-intro h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 4.6rem);
  font-weight: 500;
}

.about-intro p {
  margin: 0;
  font-size: clamp(1.6rem, 2.7vw, 2.5rem);
  line-height: 1.4;
  font-style: italic;
}

.about-kicker {
  margin-top: 1.5rem !important;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-size: 0.85rem !important;
  font-style: normal !important;
}

.about-visual {
  min-height: 620px;
  background-image: var(--about-image);
  background-size: cover;
  background-position: center 24%;
  order: 1;
}

.about-content {
  padding: 3.2rem 0 3.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 33% 67%;
  gap: 2.2rem;
}

.about-side h2 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 4.8rem);
  font-weight: 500;
  line-height: 1;
}

.about-side p {
  margin: 0.4rem 0 0;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
}

.about-side .divider {
  margin-top: 1.8rem;
}

.about-text p {
  margin: 0 0 1.5rem;
  font-size: clamp(1.55rem, 2.3vw, 2.2rem);
  line-height: 1.5;
}

.about-signature {
  font-size: clamp(2.5rem, 3.8vw, 3.7rem) !important;
  font-style: italic;
  margin-top: 1.2rem !important;
}

.about-footer-note {
  border-top: 1px solid var(--line);
  padding: 1.6rem 1rem 1.8rem;
  text-align: center;
}

.about-footer-note p {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #353331;
  font-size: 0.95rem;
}

.about-footer-note span {
  display: inline-block;
  margin-top: 0.55rem;
  color: var(--gold);
}

.exhibit-hero {
  display: grid;
  grid-template-columns: 45% 55%;
  min-height: 520px;
  border-bottom: 1px solid var(--line);
}

.exhibit-intro {
  padding: 4rem 3.2rem;
  display: grid;
  align-content: center;
  justify-items: start;
}

.exhibit-intro h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 4.6rem);
  font-weight: 500;
}

.exhibit-intro p {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  color: var(--gold);
}

.exhibit-visual {
  min-height: 520px;
  background-image: var(--exhibit-image);
  background-size: cover;
  background-position: center;
}

.exhibit-section {
  background: #f2ede3;
  padding: 3.4rem 0 3.8rem;
}

.exhibit-list {
  display: grid;
  gap: 2.8rem;
}

.exhibit-block {
  border-radius: 1.1rem;
  padding: 2.1rem 2.6rem 2rem;
  background: radial-gradient(circle at top left, #fdfbf7 0%, #f5efe4 55%, #efe6d8 100%);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(189, 170, 131, 0.8);
  position: relative;
  overflow: hidden;
}

.exhibit-block-header {
  display: grid;
  gap: 0.1rem;
  margin-bottom: 1.9rem;
}

.exhibit-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-size: 0.86rem;
  margin: 0;
}

.exhibit-block-header h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exhibit-block-body {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr;
  column-gap: 3.4rem;
}

.exhibit-description {
  display: grid;
  align-content: center;
  transform: translateY(-0.55rem);
}

.exhibit-location-title {
  margin: 0 0 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--gold);
}

.exhibit-location {
  margin: 0;
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.exhibit-location-icon {
  color: var(--gold);
  width: 1.05rem;
  height: 1.05rem;
  display: inline-flex;
}

.exhibit-location-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.exhibit-location-icon path,
.exhibit-location-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.exhibit-title {
  margin: 0 0 0.8rem;
  font-size: 1.7rem;
  color: var(--gold);
}

.exhibit-date {
  margin: 0;
  font-size: 1.3rem;
}

.exhibit-divider {
  height: 30px;
  display: grid;
  place-items: center;
}

.exhibit-divider::before {
  content: "";
  width: 46%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(169, 141, 80, 0),
    rgba(169, 141, 80, 0.7),
    rgba(169, 141, 80, 0)
  );
}

.exhibit-quote {
  padding: 2.8rem 0 3.4rem;
  background: #e1dbcf;
  border-top: 1px solid var(--line);
}

.exhibit-quote-text {
  margin: 0;
  text-align: center;
  font-style: italic;
  font-size: 1.5rem;
}

.quote-mark {
  color: #6b5320;
  font-weight: 700;
}

.site-footer {
  background: #ddd5c6;
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer-inner p {
  margin: 0;
  font-size: 0.95rem;
  color: #37332c;
}

.footer-link {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.78rem;
  color: #37332c;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.2rem;
}

.footer-link:hover,
.footer-link.is-active {
  color: #1d1c1b;
  border-bottom-color: var(--gold);
}

.legal-page {
  padding: 3rem 0 3.5rem;
}

.legal-content {
  width: min(820px, 92vw);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(176, 141, 47, 0.25);
  border-radius: 0.8rem;
  padding: 2rem 1.8rem;
}

.legal-content h1 {
  margin: 0 0 1.4rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.legal-content h2 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.15rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legal-content p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .menu {
    gap: 0.85rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .logo {
    font-size: 2.2rem;
  }

  .hero,
  .hero-visual {
    min-height: 560px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: initial;
  }

  .hero-fade-visual::before {
    width: 100%;
    height: 42%;
    left: 0;
    right: auto;
    top: auto;
    bottom: 0;
    background: linear-gradient(
      180deg,
      rgba(248, 241, 230, 0) 0%,
      rgba(248, 241, 230, 0.85) 68%,
      rgba(248, 241, 230, 1) 100%
    );
  }

  .hero-copy {
    order: 2;
    padding: 2.2rem 1.3rem 2.8rem;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .gallery-track {
    grid-auto-columns: minmax(230px, 78%);
  }

  .contact-hero {
    grid-template-columns: 1fr;
    min-height: initial;
  }

  .contact-visual {
    min-height: 360px;
    background-position: center;
  }

  .contact-intro {
    padding: 2.2rem 1.3rem 2.8rem;
  }

  .contact-intro p,
  .contact-item p {
    font-size: 1.9rem;
  }

  .about-hero {
    grid-template-columns: 1fr;
    min-height: initial;
  }

  .about-visual {
    min-height: 380px;
    background-position: center;
  }

  .about-intro {
    padding: 2.2rem 1.3rem 2.8rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .exhibit-hero {
    grid-template-columns: 1fr;
    min-height: initial;
  }

  .exhibit-visual {
    min-height: 320px;
  }

  .exhibit-intro {
    padding: 2.2rem 1.3rem 2.8rem;
  }

  .exhibit-block {
    padding: 1.7rem 1.5rem 1.7rem;
  }

  .exhibit-block-body {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 1.2rem;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
