.vernissage-section {
  position: relative;
  isolation: isolate;
  padding: 76px 0 94px;
  overflow: hidden;
  background: #121211;
  color: #fff;
}

/* Wiederkehrender Architekturschnitt zwischen den Hauptkapiteln. */
.wk-section-cut {
  --cut-color: #111111;
  position: relative;
  z-index: 6;
  isolation: isolate;
  width: 100%;
  height: 82px;
  margin-top: -1px;
  margin-bottom: -68px;
  pointer-events: none;
  background: var(--cut-color);
  clip-path: polygon(0 0, 100% 0, 100% 58%, 57% 88%, 53.5% 76%, 0 100%);
  filter: drop-shadow(0 2px 0 var(--wk-gold, #c49a2c));
}

.wk-section-cut--concrete {
  --cut-color: #afb4b8;
  background:
    linear-gradient(135deg, #bbbfc3 0 25%, transparent 25% 100%) 0 0 / 36px 36px repeat,
    var(--cut-color);
}

.wk-section-cut--dark { --cut-color: #121211; }
.wk-section-cut--paper { --cut-color: #ffffff; }

/* Der aus dem alten Referenzbereich gelöste Ablauf erhält eine eigene Bühne. */
.steps-wrap.wk-steps-section {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(92px, 8vw, 126px) max(28px, calc((100vw - 1380px) / 2));
  border-top: 0;
  background: #121211;
  color: #ffffff;
}
.steps-wrap.wk-steps-section h3,
.steps-wrap.wk-steps-section h4 { color: #ffffff; }
.steps-wrap.wk-steps-section p,
.steps-wrap.wk-steps-section .eyebrow { color: rgba(255,255,255,.72); }
.steps-wrap.wk-steps-section .eyebrow span { background: #c49a2c; }
.steps-wrap.wk-steps-section article > span { color: #e2c66f; }
.steps-wrap.wk-steps-section > div,
.steps-wrap.wk-steps-section > article { border-color: rgba(255,255,255,.2); }

.vernissage-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8,8,7,.96) 0%, rgba(8,8,7,.78) 28%, rgba(8,8,7,.64) 100%),
    linear-gradient(0deg, rgba(8,8,7,.9), transparent 58%),
    url("/images/hero-fabrikhalle-v1.webp") center / cover no-repeat;
  filter: saturate(.72) contrast(1.04);
}

.vernissage-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 73% 35%, color-mix(in srgb, var(--gallery-accent, #d6ae55) 30%, transparent), transparent 25%);
  transition: background .8s ease;
}

.vernissage-shell { width: min(1760px, calc(100% - 32px)); margin: 0 auto; }
.vernissage-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 500px); gap: 54px; align-items: end; margin-bottom: 44px; padding: 0 6px; }
.vernissage-intro .eyebrow { color: rgba(255,255,255,.7); }
.vernissage-intro .eyebrow span { background: #d6ae55; }
.vernissage-intro h2 { max-width: 780px; margin: 12px 0 0; font-size: clamp(48px, 4.2vw, 68px); line-height: .96; letter-spacing: -.055em; }
.vernissage-intro h2 em { color: #d6ae55; font-style: normal; }
.vernissage-intro > p { max-width: 520px; margin: 0 0 5px; color: rgba(255,255,255,.74); font-size: 18px; line-height: 1.65; }

.vernissage-stage { position: relative; min-height: 0; padding: 0; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.vernissage-stage::before { display: none; }
.vernissage-kicker { display: none; }

.vernissage-gallery { display: grid; grid-template-columns: 138px minmax(0, 1fr) 330px; grid-template-rows: 1fr; gap: 24px; align-items: center; min-height: 0; }
.vernissage-list { position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: center; gap: 0; }
.vernissage-list button { display: grid; grid-template-columns: 23px 1fr; gap: 7px; align-items: center; min-height: 54px; padding: 8px 4px; border: 0; border-bottom: 1px solid rgba(255,255,255,.11); background: transparent; color: rgba(255,255,255,.45); text-align: left; cursor: pointer; transition: color .25s ease, padding-left .25s ease, background .25s ease; }
.vernissage-list button:hover,
.vernissage-list button[aria-selected="true"] { padding-left: 8px; background: transparent; color: #fff; }
.vernissage-list button[aria-selected="true"] { box-shadow: inset 2px 0 0 var(--gallery-accent, #d6ae55); }
.vernissage-list small { color: var(--gallery-accent, #d6ae55); font-size: 10px; font-weight: 900; }
.vernissage-list b { font-size: 11px; line-height: 1.2; }

.vernissage-artwork { position: relative; z-index: 2; display: grid; place-items: center; min-width: 0; min-height: 0; perspective: 1400px; }
.vernissage-light { position: absolute; top: 0; left: 50%; width: 72%; height: 64%; background: linear-gradient(180deg, color-mix(in srgb, var(--gallery-accent, #d6ae55) 42%, transparent), transparent 72%); filter: blur(28px); opacity: .45; transform: translateX(-50%); transition: background .6s ease; }
.vernissage-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; padding: 10px; border: 1px solid rgba(255,255,255,.48); background: #f4f1e9; box-shadow: 0 30px 70px rgba(0,0,0,.48), 10px 10px 0 color-mix(in srgb, var(--gallery-accent, #d6ae55) 68%, #111); transform: none; transition: transform .55s cubic-bezier(.2,.7,.2,1), box-shadow .55s ease; }
.vernissage-frame:hover { transform: rotateY(0) rotateX(0) translateY(-5px); }
.vernissage-frame::before { display: none; }
.vernissage-screen { position: relative; width: 100%; height: 100%; overflow: hidden; background: #fff; }
.vernissage-screen img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; opacity: 1; transform: scale(1); transition: opacity .32s ease, transform 1.15s cubic-bezier(.2,.7,.2,1); }
.vernissage-screen img.is-changing { opacity: 0; transform: scale(1.035); }
.vernissage-screen::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(0,0,0,.24); pointer-events: none; }
.vernissage-views { position: absolute; left: 18px; bottom: 18px; z-index: 3; display: flex; gap: 6px; padding: 6px; background: rgba(10,10,9,.8); backdrop-filter: blur(9px); }
.vernissage-views[hidden] { display: none; }
.vernissage-views button { width: 36px; height: 34px; border: 1px solid rgba(255,255,255,.32); background: transparent; color: rgba(255,255,255,.72); font-size: 10px; font-weight: 900; cursor: pointer; }
.vernissage-views button:hover,
.vernissage-views button[aria-pressed="true"] { border-color: var(--gallery-accent, #d6ae55); background: var(--gallery-accent, #d6ae55); color: #111; }
.vernissage-count { position: absolute; right: 19px; bottom: 18px; display: flex; gap: 6px; align-items: baseline; padding: 8px 11px; background: rgba(10,10,9,.78); color: #fff; backdrop-filter: blur(8px); }
.vernissage-count b { color: var(--gallery-accent, #d6ae55); font-size: 20px; }
.vernissage-count span { font-size: 10px; }

.vernissage-plaque { position: relative; z-index: 3; display: block; align-self: center; padding: 30px 28px 28px; border-top: 0; border-left: 3px solid var(--gallery-accent, #d6ae55); background: rgba(15,15,14,.76); box-shadow: none; backdrop-filter: blur(12px); }
.vernissage-plaque > small { color: var(--gallery-accent, #d6ae55); font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.vernissage-plaque > small { display: block; }
.vernissage-plaque h3 { margin: 12px 0 18px; font-size: clamp(32px, 2.5vw, 44px); line-height: .95; letter-spacing: -.045em; }
.vernissage-plaque p { margin: 0; color: rgba(255,255,255,.72); font-size: 17px; line-height: 1.58; }
.vernissage-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 24px 0; }
.vernissage-tags span { padding: 7px 9px; border: 1px solid rgba(255,255,255,.24); color: rgba(255,255,255,.78); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.vernissage-link { display: inline-flex; gap: 18px; align-items: center; padding-bottom: 5px; border-bottom: 1px solid var(--gallery-accent, #d6ae55); color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; }
.vernissage-controls { display: flex; justify-content: flex-start; gap: 8px; margin-top: 28px; }
.vernissage-controls button { width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; font-size: 20px; cursor: pointer; transition: background .2s ease, color .2s ease; }
.vernissage-controls button:hover { background: #fff; color: #111; }

.vernissage-spectrum { display: none; }
.vernissage-spectrum span:nth-child(n+2):nth-child(-n+4) { text-align: center; }
.vernissage-spectrum span:last-child { text-align: right; }
.vernissage-spectrum i { position: absolute; left: var(--spectrum-position, 50%); top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--gallery-accent, #d6ae55); box-shadow: 0 0 22px var(--gallery-accent, #d6ae55); transform: translateX(-50%); transition: left .55s ease, background .55s ease; }

@media (max-width: 1100px) {
  .vernissage-gallery { grid-template-columns: 135px minmax(0, 1fr); grid-template-rows: auto auto; }
  .vernissage-plaque { grid-column: 2; display: grid; grid-template-columns: 1fr 1.5fr; gap: 12px 28px; align-items: start; border-left: 0; border-top: 3px solid var(--gallery-accent, #d6ae55); }
  .vernissage-plaque > small { grid-column: 1; grid-row: 1; }
  .vernissage-plaque h3 { grid-column: 1; }
  .vernissage-plaque p { grid-column: 2; grid-row: 1 / span 2; padding-top: 2px; }
  .vernissage-tags, .vernissage-controls { grid-column: 1; }
  .vernissage-link { grid-column: 2; align-self: end; justify-self: start; }
}

@media (min-width: 761px) and (max-width: 900px) {
  #check .fitness-panel { grid-template-columns: 1fr; }
  #check .fitness-overview { border-right: 0; border-bottom: 2px solid #111111; }
}

@media (max-width: 760px) {
  .wk-section-cut {
    height: 46px;
    margin-bottom: -35px;
    clip-path: polygon(0 0, 100% 0, 100% 76%, 60% 100%, 55% 90%, 0 98%);
    filter: drop-shadow(0 1.5px 0 var(--wk-gold, #c49a2c));
  }

  .vernissage-section { padding: 66px 0 76px; }
  .steps-wrap.wk-steps-section { padding: 76px 18px 78px; }
  .vernissage-section::before { background-position: 64% center; }
  .vernissage-shell { width: calc(100% - 26px); }
  .vernissage-intro { display: block; margin-bottom: 34px; padding-inline: 4px; }
  .vernissage-intro h2 { font-size: clamp(40px, 11vw, 52px); }
  .vernissage-intro > p { margin-top: 24px; font-size: 17px; }
  .vernissage-stage { min-height: 0; padding: 0; }
  .vernissage-stage::before { inset: 8px; }
  .vernissage-kicker { left: 15px; }
  .vernissage-gallery { display: flex; flex-direction: column; gap: 26px; min-height: 0; }
  .vernissage-list { order: 2; flex-direction: row; justify-content: flex-start; gap: 7px; width: 100%; max-width: 100%; overflow-x: auto; padding: 0 0 10px; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .vernissage-list::-webkit-scrollbar { display: none; }
  .vernissage-list button { flex: 0 0 auto; grid-template-columns: 22px auto; min-height: 48px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.2); scroll-snap-align: start; }
  .vernissage-list button:hover, .vernissage-list button[aria-selected="true"] { padding-left: 10px; box-shadow: inset 0 -3px 0 var(--gallery-accent, #d6ae55); }
  .vernissage-list b { font-size: 11px; }
  .vernissage-artwork { order: 1; width: 100%; min-height: 0; }
  .vernissage-frame { width: calc(100% - 10px); aspect-ratio: 16 / 9; padding: 7px; box-shadow: 8px 9px 0 color-mix(in srgb, var(--gallery-accent, #d6ae55) 75%, #111); transform: none; }
  .vernissage-frame:hover { transform: translateY(-3px); }
  .vernissage-frame::before { display: none; }
  .vernissage-views { left: 9px; bottom: 9px; }
  .vernissage-views button { width: 32px; height: 31px; }
  .vernissage-count { right: 9px; bottom: 9px; }
  .vernissage-plaque { order: 3; display: block; padding: 24px 20px; border-left: 0; border-top: 3px solid var(--gallery-accent, #d6ae55); }
  .vernissage-plaque h3 { font-size: 35px; }
  .vernissage-plaque p { font-size: 16px; }
  .vernissage-tags { margin: 20px 0; }
  .vernissage-link { font-size: 12px; }
  .vernissage-controls { margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .vernissage-frame, .vernissage-screen img, .vernissage-spectrum i { transition: none; }
}
