:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --line: #d8d8d3;
  --banner-speed: 58s;
  --font-sf-text: "SF Pro Text", "SF Pro", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --font-sf-display: "SF Pro Display", "SF Pro", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
}

body {
  font-family: var(--font-sf-text);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
.brand__title,
.loader__title {
  font-family: var(--font-sf-display);
}

.site-header .brand__title {
  position: absolute;
  left: var(--gutter);
  display: block;
  transform: none;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 800;
  letter-spacing: .1em;
  text-align: center;
}

.site-header .signature {
  width: clamp(145px, 13vw, 190px);
  height: 48px;
  border: 0;
  background-size: contain;
}

.site-header nav {
  margin-left: auto;
}

.language-switcher {
  position: relative;
  flex: none;
}

.language-toggle {
  width: 52px;
  min-width: 52px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.language-toggle:hover,
.language-toggle[aria-expanded="true"] {
  background: #f4f4f1;
}

.language-chevron {
  font-size: .65rem;
}

.flag {
  width: 25px;
  height: 16px;
  display: inline-block;
  flex: none;
  border: 1px solid rgba(0, 0, 0, .16);
  background-size: 100% 100%;
}

.flag--de {
  background: linear-gradient(to bottom, #111111 0 33.333%, #dd0000 33.333% 66.666%, #ffce00 66.666% 100%);
}

.flag--gb {
  background:
    linear-gradient(34deg, transparent 43%, #ffffff 43% 49%, #c8102e 49% 54%, transparent 54%),
    linear-gradient(-34deg, transparent 43%, #ffffff 43% 49%, #c8102e 49% 54%, transparent 54%),
    linear-gradient(to right, transparent 35%, #ffffff 35% 65%, transparent 65%),
    linear-gradient(to right, transparent 42%, #c8102e 42% 58%, transparent 58%),
    linear-gradient(to bottom, transparent 31%, #ffffff 31% 69%, transparent 69%),
    linear-gradient(to bottom, transparent 41%, #c8102e 41% 59%, transparent 59%),
    #012169;
}

.language-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + .5rem);
  right: 0;
  min-width: 160px;
  padding: .35rem;
  border: 1px solid var(--line);
  background: #ffffff;
}

.language-menu[hidden] {
  display: none;
}

.language-menu button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem .7rem;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.language-menu button:hover,
.language-menu button:focus-visible {
  background: #f4f4f1;
}

.language-menu button[aria-checked="true"] {
  font-weight: 700;
}

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

.loader__visual.has-image {
  width: min(58vw, 410px);
  aspect-ratio: 1;
  border: 0;
  background-color: transparent;
  background-position: center;
  background-size: contain;
  transform-origin: 50% 50%;
  will-change: transform;
  animation: crown-loader-spin 2.8s linear infinite;
}

@keyframes crown-loader-spin {
  to { transform: rotate(360deg); }
}

.artist-image.has-image {
  background-position: center top;
}

.artist-signature.signature {
  width: clamp(260px, 30vw, 400px);
  height: 125px;
  margin-top: 2rem;
  border: 0;
  background-position: left center;
  background-size: contain;
}

.social-links {
  justify-content: center;
  gap: clamp(1.75rem, 4vw, 3.5rem);
}

.social-links a {
  width: 60px;
  min-height: 60px;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  font-size: 1.45rem;
  font-weight: 700;
  text-transform: none;
  transition: transform 180ms ease;
}

.social-links a:hover {
  color: var(--text);
  background: #ffffff;
  transform: scale(1.14);
}

.social-links a:focus-visible {
  border-radius: 50%;
}

.social-links img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.moving-banner {
  height: clamp(160px, 26vw, 380px);
}

.moving-banner:hover .moving-banner__track {
  animation-play-state: running;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: .6rem;
  justify-items: start;
  text-align: left;
}

.section-heading h1,
.section-heading h2 {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: .95;
  letter-spacing: -.04em;
}

.section {
  padding-top: clamp(3rem, 6vw, 6rem);
  padding-bottom: clamp(3rem, 6vw, 6rem);
}

.gallery-section .section-heading {
  margin-bottom: clamp(1rem, 2vw, 2rem);
}

@media (max-width: 760px) {
  .site-header .brand__title {
    display: block;
    left: var(--gutter);
    transform: none;
    font-size: 1rem;
  }

  .site-header .signature {
    width: 130px;
    height: 44px;
  }

  .site-header .menu-toggle {
    order: 1;
    margin-left: auto;
  }

  .language-switcher {
    order: 2;
  }

  .site-header nav {
    order: 3;
    margin-left: 0;
  }
}

.site-header,
.moving-banner,
.moving-banner__empty,
.social-strip,
.section,
.current-grid,
.current-card,
.current-card__image,
.artist-image,
.contact-section,
footer,
.loader,
.loader__visual,
.empty-art,
.carousel__controls button,
.carousel__dots button {
  background-color: #ffffff;
}

.carousel__viewport {
  background: #ffffff;
}

.carousel {
  position: relative;
}

.carousel__controls {
  grid-template-columns: 1fr auto;
}

.carousel__controls #prevSlide,
.carousel__controls #nextSlide {
  position: absolute;
  top: calc(clamp(360px, 70vw, 760px) / 2);
  z-index: 8;
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 0;
  border-radius: 50%;
  background: #ffffff;
  font-size: 0;
  transform: translateY(-50%);
}

.carousel__controls #prevSlide::before,
.carousel__controls #nextSlide::before {
  content: "";
  display: block;
  width: 14px;
  height: 16px;
  border: 0;
  background: var(--text);
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
}

.carousel__controls #prevSlide::before {
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
  transform: translate(-50%, -50%) translateX(-1px);
}

.carousel__controls #nextSlide::before {
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translate(-50%, -50%) translateX(1px);
}

.carousel__controls button:hover {
  color: var(--text);
  background: #ffffff;
}

.carousel__controls #togglePlayback {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  font-size: 1.15rem;
  line-height: 1;
}

.carousel__controls #togglePlayback[aria-pressed="true"] {
  text-indent: 2px;
}

.gallery-inquiry {
  display: flex;
  justify-content: flex-start;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: .5rem;
  padding: clamp(1.25rem, 3vw, 2.5rem) var(--gutter) 0;
  border-top: 1px solid var(--line);
}

.gallery-inquiry p {
  max-width: 48rem;
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.5rem);
  line-height: 1.45;
}

.gallery-inquiry a {
  font-weight: 650;
  text-underline-offset: .25em;
}

.carousel__controls #prevSlide {
  left: 21%;
}

.carousel__controls #nextSlide {
  right: 21%;
}

.carousel__viewport .slide {
  inset: 11% auto;
  left: 50%;
  width: 42%;
  height: 78%;
  margin: 0;
  opacity: 0;
  transform: translateX(-50%) scale(.82);
  transition: opacity var(--speed), transform var(--speed), left var(--speed);
  pointer-events: none;
}

.carousel__viewport .slide.is-active {
  left: 50%;
  z-index: 3;
  opacity: 1;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
  cursor: zoom-in;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 3rem);
  background: #ffffff;
}

.lightbox__figure {
  width: 100%;
  height: 100%;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 1rem;
  place-items: center;
}

.lightbox__figure img {
  width: 100%;
  height: 100%;
  max-width: 94vw;
  max-height: 88vh;
  object-fit: contain;
}

.lightbox__figure figcaption {
  font-size: .8rem;
  color: var(--muted);
}

.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  transform: translateY(-50%);
  cursor: pointer;
}

.lightbox__nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 16px;
  background: var(--text);
}

.lightbox__nav--prev {
  left: clamp(.75rem, 3vw, 3rem);
}

.lightbox__nav--next {
  right: clamp(.75rem, 3vw, 3rem);
}

.lightbox__nav--prev::before {
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
  transform: translate(-50%, -50%) translateX(-1px);
}

.lightbox__nav--next::before {
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translate(-50%, -50%) translateX(1px);
}

@media (max-width: 760px) {
  .lightbox__nav {
    width: 44px;
    height: 44px;
  }

  .lightbox__nav--prev {
    left: .5rem;
  }

  .lightbox__nav--next {
    right: .5rem;
  }
}

.carousel__viewport .slide.is-prev,
.carousel__viewport .slide.is-next {
  z-index: 2;
  top: 12%;
  bottom: auto;
  width: 18%;
  height: 76%;
  opacity: .72;
  transform: scale(.78);
  pointer-events: auto;
  cursor: pointer;
}

.carousel__viewport .slide.is-prev {
  left: 2%;
  transform-origin: left center;
}

.carousel__viewport .slide.is-next {
  right: 2%;
  left: auto;
  transform-origin: right center;
}

@media (max-width: 760px) {
  .carousel__controls #prevSlide,
  .carousel__controls #nextSlide {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .carousel__controls #prevSlide {
    left: 13%;
  }

  .carousel__controls #nextSlide {
    right: 13%;
  }

  .carousel__viewport .slide {
    inset: 10% auto;
    left: 50%;
    width: 58%;
    height: 80%;
  }

  .carousel__viewport .slide.is-prev,
  .carousel__viewport .slide.is-next {
    top: 17%;
    width: 8%;
    height: 66%;
    opacity: .6;
    transform: scale(.72);
  }

  .carousel__viewport .slide.is-next {
    right: 0;
    left: auto;
  }

  .carousel__viewport .slide.is-prev {
    left: 0;
  }
}

footer {
  position: relative;
  isolation: isolate;
  background-color: transparent;
}

footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  background-color: #f8eee2;
  pointer-events: none;
}

#aktuelles,
#kontakt {
  position: relative;
  isolation: isolate;
  background-color: #ffffff;
}

#aktuelles {
  --flow-position: 128%;
}

#aktuelles::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
}

#aktuelles::before {
  background: linear-gradient(
    to bottom,
    rgba(7, 26, 47, 0) calc(var(--flow-position) - 64%),
    #071a2f calc(var(--flow-position) - 48%),
    #071a2f calc(var(--flow-position) + 48%),
    rgba(7, 26, 47, 0) calc(var(--flow-position) + 64%)
  );
}

#kontakt {
  padding-bottom: 0;
}

#kontakt .section-heading {
  margin-bottom: 0;
  border-bottom: 0;
}

#kontakt .section-heading::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: calc(-1 * clamp(3rem, 6vw, 6rem));
  right: auto;
  bottom: -1px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
  background: #ffffff;
}

#kontakt .contact-grid {
  padding-top: clamp(2rem, 5vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 6rem);
  color: #ffffff;
  mix-blend-mode: normal;
}

#kontakt .contact-grid::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  background:
    linear-gradient(
      to bottom,
      #ffffff 0%,
      #eeeeee 22%,
      #aab7c5 48%,
      #334b66 76%,
      #071a2f 100%
    ) top / 100% clamp(2rem, 5vw, 5rem) no-repeat,
    #071a2f;
  pointer-events: none;
}

#kontakt .contact-grid * {
  color: #ffffff;
}

#kontakt .contact-grid a:focus-visible {
  outline-color: #ffffff;
}

#aktuelles > *,
#kontakt > * {
  position: relative;
  z-index: 1;
}

#aktuelles .current-grid,
#aktuelles .current-card,
#aktuelles .current-card__image {
  background-color: transparent;
}

#aktuelles .current-card__image.is-poster {
  aspect-ratio: 1587 / 2245;
  width: min(400px, 100%);
  justify-self: center;
  background-position: center;
  background-size: contain;
}

#aktuelles .current-card__body {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  color: #071a2f;
  background: rgba(255, 255, 255, .94);
  mix-blend-mode: normal;
}

#aktuelles .current-card__body .eyebrow,
#aktuelles .current-card__body .meta {
  color: #334b66;
}

#aktuelles .current-card__body a {
  color: inherit;
}

#aktuelles .current-grid:has(> .current-card:only-child) {
  grid-template-columns: minmax(0, 1fr);
  width: min(720px, 100%);
  margin-right: auto;
}

#aktuelles .section-heading {
  color: #ffffff;
  mix-blend-mode: difference;
}

#kontakt .section-heading {
  color: #050505;
  mix-blend-mode: normal;
}

@media (prefers-reduced-motion: reduce) {
  .loader__visual.has-image {
    animation: none;
  }

  #aktuelles {
    --flow-position: 112% !important;
  }
}
