* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  background: white;
  color: black;
}

/* ── SLIDES ─────────────────────────────────────── */
.slide {
  width: 100%;
}

/* IMAGE SLIDES */
.slide.image {
  position: relative;
  overflow: hidden;
}

.slide.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* square exception (desktop only) */
.slide.image.square {
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide.image.square img {
  height: 100vh;
  width: auto;
  object-fit: contain;
}

/* ── TEXT SLIDES ─────────────────────────────────── */
.slide.text {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 60px 32px;
}

.text-inner {
  max-width: 420px;
  text-align: center;
}

.text-inner-right {
  max-width: 420px;
  text-align: right;
}

.opening {
  font-size: 22px;
  text-align: left;
  line-height: 1.05;
}

.sub {
  margin-top: 24px;
  font-size: 13px;
}

.space {
  height: 24px;
}

/* ── IMPRINT ─────────────────────────────────────── */
.slide.imprint {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 60px 32px;
}

.imprint-inner {
  max-width: 520px;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

/* ── CONTACT TRIGGER ─────────────────────────────── */
#contact-trigger {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 1000;
  font-weight: bold;
  font-size: 14px;
  color: white;
  cursor: pointer;
  user-select: none;
  mix-blend-mode: difference;
}

/* ── DESKTOP ─────────────────────────────────────── */
@media (min-width: 768px) {
  body {
    overflow: hidden;
  }

  #slides {
    position: fixed;
    width: 100%;
    height: 100%;
    transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .slide {
    height: 100vh;
  }

  /* desktop: absolute centering for text */
  .slide.text {
    display: block;
  }

  .text-inner,
  .text-inner-right {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

/* ── MOBILE ──────────────────────────────────────── */
@media (max-width: 767px) {
  body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #slides {
    position: relative;
  }

  /* Every slide fills the screen */
  .slide {
    height: 100svh; /* svh = safe viewport height, handles browser chrome */
    min-height: 100svh;
  }

  /* Fallback for browsers without svh support */
  @supports not (height: 100svh) {
    .slide {
      height: 100vh;
      min-height: 100vh;
    }
  }

  /* Images: full bleed, cover */
  .slide.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Square exception drops on mobile – treat like normal cover */
  .slide.image.square {
    display: block;
  }

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

  /* Text slides: flex centering (already set above, just ensure padding) */
  .slide.text {
    padding: 48px 28px;
  }

  .text-inner-right {
    text-align: right;
  }

  /* Imprint can scroll freely on mobile if content is long */
  .slide.imprint {
    height: auto;
    min-height: 100svh;
    padding: 80px 28px 60px;
  }
}
