:root {
  --bg: #0d0d0d;
  --panel: #161616;
  --text: #f2f2f2;
  --muted: rgba(242, 242, 242, 0.68);
  --accent: #c9a227;
  --header-h: 3.25rem;
  --footer-h: 2.75rem;
  --chrome: rgba(10, 10, 10, 0.62);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

img { -webkit-user-drag: none; user-select: none; }

html.no-snap { scroll-snap-type: none; }

/* ---------- Header / Footer ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 clamp(1rem, 4vw, 3rem);
  background: var(--chrome);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}

/* Wortmarke ist schwarz auf transparentem Grund -> fuer den dunklen
   Header invertieren, damit sie weiss erscheint. */
.brand-logo {
  display: block;
  height: 22px;
  width: auto;
  filter: invert(1);
}

.site-footer {
  position: fixed;
  inset: auto 0 0 0;
  height: var(--footer-h);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 0 clamp(1rem, 4vw, 3rem);
  background: var(--chrome);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: var(--muted);
}

.site-footer nav { display: flex; gap: clamp(1rem, 3vw, 2rem); }

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ---------- Rechtliche Seiten ---------- */
.legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: calc(var(--header-h) + 3rem) clamp(1.25rem, 5vw, 2rem)
    calc(var(--footer-h) + 4rem);
}

.legal h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
}

.legal h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
}

.legal p {
  margin: 0 0 1rem;
  line-height: 1.7;
  color: rgba(242, 242, 242, 0.86);
}

.legal h3 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1rem;
  font-weight: 600;
}

.legal ul,
.legal ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
  line-height: 1.7;
  color: rgba(242, 242, 242, 0.86);
}

.legal li { margin-bottom: 0.4rem; }

.legal li > ul { margin: 0.4rem 0 0; }

.legal a { color: var(--accent); }

.legal .notice {
  padding: 1rem 1.2rem;
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 8px;
  background: rgba(201, 162, 39, 0.08);
  font-size: 0.92rem;
}

/* ---------- Werke untereinander (vertikales Scrollen) ---------- */
.gallery { display: block; }

.artwork {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  overflow: hidden;
}

.artwork-swiper { width: 100%; height: 100%; }

/* ---------- Horizontale Ansichten ---------- */
.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-image { background: #0a0a0a; }

.slide-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.info-overlay {
  position: absolute;
  left: clamp(1rem, 4vw, 3rem);
  bottom: calc(var(--footer-h) + 4.5rem);
  max-width: min(32rem, calc(100vw - 6rem));
  padding: 1.1rem 1.4rem;
  border-radius: 10px;
  background: rgba(10, 10, 10, 0.66);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.info-overlay h2,
.text-panel h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
}

.meta {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.catalogue {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.price {
  margin: 0.5rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}

/* ---------- Beschreibungs-Slide ---------- */
.slide-text {
  background: var(--bg);
  padding: clamp(1.5rem, 6vw, 5rem) clamp(1.5rem, 6vw, 5rem)
    calc(var(--footer-h) + 2.5rem);
}

.text-panel { max-width: 46rem; }

.prose {
  margin-top: 1.4rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.75;
  color: rgba(242, 242, 242, 0.86);
}

.prose p { margin: 0 0 1rem; }

.cta { margin-top: 2rem; }

.cta a {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.cta a:hover,
.cta a:focus-visible {
  background: var(--accent);
  color: #0d0d0d;
}

.cta.sold {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border: 1px solid rgba(242, 242, 242, 0.28);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Bedienelemente ---------- */
.artwork {
  --swiper-navigation-size: 3rem;
}

.artwork .swiper-button-prev,
.artwork .swiper-button-next {
  color: #fff;
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.artwork .swiper-button-prev { left: clamp(1rem, 4vw, 3rem); }
.artwork .swiper-button-next { right: clamp(1rem, 4vw, 3rem); }

.artwork .swiper-button-prev::after,
.artwork .swiper-button-next::after { font-size: 1rem; font-weight: 700; }

.artwork .swiper-pagination {
  bottom: calc(var(--footer-h) + 2.5rem);
  left: 50%;
  transform: translateX(-50%);
  width: auto;
}

.artwork .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.45);
  opacity: 1;
}

.artwork .swiper-pagination-bullet-active { background: var(--accent); }

.artwork .swiper-scrollbar {
  bottom: calc(var(--footer-h) + 1rem);
  left: clamp(1rem, 4vw, 3rem);
  right: clamp(1rem, 4vw, 3rem);
  width: auto;
  height: 4px;
  background: rgba(255, 255, 255, 0.16);
}

.artwork .swiper-scrollbar-drag { background: var(--accent); }

.artwork-swiper { --swiper-theme-color: #fff; }

/* ---------- Seitennavigation (Werke) ---------- */
.work-nav {
  position: fixed;
  right: clamp(0.5rem, 1.5vw, 1.25rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
}

.work-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-nav a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.78rem;
}

.work-nav .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}

.work-nav .label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 0.25s ease, opacity 0.25s ease;
}

.work-nav a:hover .label,
.work-nav a:focus-visible .label {
  max-width: 14rem;
  opacity: 1;
}

.work-nav a.is-active .dot {
  background: var(--accent);
  transform: scale(1.35);
}

.work-nav a.is-active { color: var(--text); }

/* ---------- Anpassungen ---------- */
@media (max-width: 640px) {
  .info-overlay {
    left: 1rem;
    right: 1rem;
    max-width: none;
    bottom: calc(var(--footer-h) + 3.5rem);
  }

  .site-footer { font-size: 0.7rem; }
  .site-footer nav { gap: 0.75rem; }

  .artwork { --swiper-navigation-size: 2.5rem; }

  .artwork .swiper-button-prev { left: 0.75rem; }
  .artwork .swiper-button-next { right: 0.75rem; }

  .work-nav .label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
}
