.image-container {
  max-width: 1000px; /* Skaliert das gesamte Rechteck proportional */
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  background-color: white;
  line-height: 0; /* Entfernt whitespace Lücken */
  overflow: hidden; /* Verhindert Scrollbars während der Animation */
}

/* Berechnung der Breiten basierend auf 856px und 1508px (Summe: 2364px) */
.col-left {
  width: 36.21%; /* 856 / 2364 * 100 */
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 1;
}

.col-right {
  width: 63.79%; /* 1508 / 2364 * 100 */
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 1;
}

/* Animation: Verschiebung basierend auf dem Breitenverhältnis der Bilder */
/* Links muss um 176.16% seiner eigenen Breite nach rechts (entspricht der Breite von Rechts) */
.is-swapped .col-left {
  transform: translateX(176.16%);
}
/* Rechts muss um 56.76% seiner eigenen Breite nach links (entspricht der Breite von Links) */
.is-swapped .col-right {
  transform: translateX(-56.76%);
}

/* Zweites Vanishing Puzzle: Berechnung basierend auf 781px und 219px (Summe: 1000px) */
.col-left2 {
  width: 78.1%; /* 781 / 1000 * 100 */
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 1;
}

.col-right2 {
  width: 21.9%; /* 219 / 1000 * 100 */
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 1;
}

.is-swapped .col-left2 {
  transform: translateX(28.04%);
}
.is-swapped .col-right2 {
  transform: translateX(-356.62%);
}

img {
  width: 100%;
  height: auto;
  display: block;
  border: none;
}

.layout-description {
  max-width: 800px;
  margin: 20px auto;
  text-align: center;
}

.btn-swap {
  margin-top: 20px;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

/* ------------- AMBI ROATION ----------------*/

.image-wrapper {
  background-color: #e9ecef;
  border-radius: 12px;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

/* Sanfte Animation für die Rotation */
.rotatable-image {
  max-width: 100%;
  max-height: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-radius: 8px;
}

.card {
  border: none;
  border-radius: 1rem;
}

/* ------------- PEEK GALLERY (Irresistibly Cute Characters / Unseen) ----------------*/
/* 3 Bilder sichtbar am Desktop, 1 Bild am Mobil, das jeweils naechste Bild wird
   angeschnitten angedeutet damit klar ist, dass die Galerie weitergeht. */

.gallery-peek-wrap {
  position: relative;
}

/* Vor-/Zurueck-Pfeile: nur am Desktop noetig, liegen auf dem angeschnittenen Bild
   (mobil reicht die Peek-Andeutung + Wischgeste). Erscheinen nur, wenn in die
   jeweilige Richtung tatsaechlich noch etwas zu sehen ist. */
.gallery-peek__prev,
.gallery-peek__next {
  display: none;
}

@media (min-width: 768px) {
  .gallery-peek__prev,
  .gallery-peek__next {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(18, 18, 18, 0.55);
    color: #fff;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease, opacity 0.2s ease;
  }

  .gallery-peek__prev {
    left: 1rem;
  }

  .gallery-peek__next {
    right: 1rem;
  }

  .gallery-peek__prev:hover,
  .gallery-peek__next:hover {
    background: rgba(18, 18, 18, 0.85);
  }

  .gallery-peek__prev.is-hidden,
  .gallery-peek__next.is-hidden {
    opacity: 0;
    pointer-events: none;
  }
}

.gallery-peek {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}

.gallery-peek::-webkit-scrollbar {
  display: none;
}

.gallery-peek .gallery-peek__item {
  flex: 0 0 auto;
  width: 82%;
  margin-right: 1rem;
  scroll-snap-align: start;
}

.gallery-peek .gallery-peek__item:last-child {
  margin-right: 0;
}

.gallery-peek .gallery-peek__item figure {
  height: 100%;
}

.gallery-peek .gallery-peek__item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .gallery-peek .gallery-peek__item {
    width: 30%;
    margin-right: 1.5%;
  }

  .gallery-peek .gallery-peek__item img {
    height: 320px;
  }

  /* Happy Guys / Unseen: nur 2 Bilder statt 3, damit sie nicht zu klein werden */
  .gallery-peek-wrap--pair .gallery-peek .gallery-peek__item {
    width: 45%;
    margin-right: 2%;
  }

  .gallery-peek-wrap--compact .gallery-peek .gallery-peek__item img {
    height: 260px;
  }
}

/* ------------- HAMBURGER MENU / OVERLAY ----------------*/

body.menu-open {
  overflow: hidden;
}

.menu-toggle {
  position: fixed;
  top: 2rem;
  right: clamp(1.5rem, 4vw, 3rem);
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1100;
  transition: background 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--v-vmlight);
  outline-offset: 4px;
}

.menu-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--v-vmlight);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle__bar + .menu-toggle__bar {
  margin-top: 6px;
}

body.menu-open .menu-toggle {
  background: rgba(255, 255, 255, 0.2);
}

body.menu-open .menu-toggle__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.menu-open .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 18, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
  padding: 3rem 1.5rem;
}

body.menu-open .menu-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-overlay__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.menu-overlay__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.menu-overlay__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.1rem;
  line-height: 1.2;
}

.menu-overlay__item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menu-overlay__link {
  font-family: "Outfit", sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--v-vmlight);
  text-decoration: none;
  transition: color 0.25s ease;
  line-height: 1.2;
}

.menu-overlay__link:hover,
.menu-overlay__link:focus {
  color: var(--v-vmcolor);
}

.menu-overlay__link.text-vmcolor {
  color: var(--v-vmcolor) !important;
}

@media (max-width: 992px) {
  .menu-toggle {
    top: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
  }

  .menu-overlay__link {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .menu-overlay {
    padding: 2.5rem 1rem;
  }

  .menu-overlay__link {
    font-size: 1.8rem;
  }
}
