/* GridStack – Desktop */
.grid-stack {
  width: clamp(1100px, 70vw, 1300px);
  height: calc(100dvh - 60px);
  
}
.grid-stack-item {
  transition: all 0.5s ease !important;
}
/* Basis */
.grid-stack-item .hover-enabled {
  position: relative; /* für ::after */
  overflow: hidden; /* falls runde Ecken o.ä. */
  transition: background-color 0.3s ease; /* falls du später doch bg wechselst */
}

/* Overlay-Layer */
.grid-stack-item .hover-enabled::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0); /* keine Abdunklung im Normalzustand */
  transition: background 0.25s ease;
  pointer-events: none; /* Klicks gehen weiter an den Tile-Content */
  border-radius: inherit; /* Ecken übernehmen */
}

/* Hover: +10% Schwarz */
.grid-stack-item .hover-enabled:hover::after {
  background: rgba(0, 0, 0, 0.1);
}

/* (Optional) Cursor-Feedback */
.grid-stack-item .hover-enabled:hover {
  cursor: pointer;
}

.grid-stack-item-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: start;
  border-radius: var(--radius);
  padding: var(--space-3);
  font-size: 16px;
  box-sizing: border-box;
  color: #000;
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
  position: relative;
  overflow: hidden !important;
  will-change: transform, opacity;
}

/* Grid Stack Secondary */

.grid-secondary {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  backdrop-filter: blur(0px);
  opacity: 1;
  pointer-events: none;
  overflow: scroll;
  scrollbar-width: none;
  -webkit-scrollbar: none;
}

.grid-secondary.active {
  pointer-events: auto;
  backdrop-filter: blur(10px);
  transition: backdrop-filter 0.8s ease;
}

#gridPrimary{
transition: filter 0.3s ease;
  filter: saturate(1);}

.desktop:has(.grid-secondary.active) #gridPrimary {
  filter: saturate(0);
}

.grid-stack-secondary {
  position: fixed;
  top: 100%;
  transform: translateX(-50%);
  width: clamp(1100px, 70vw, 1300px);
  height: fit-content;
  max-height: calc(100dvh - 60px);
  z-index: 1001;
  overflow-y: visible;
  scrollbar-width: none;
  -webkit-scrollbar: none;

  /* Basiswert bei großen Screens */
  left: clamp(50%, calc(710px - 4.5vw), 63%);
}

.grid-secondary.active .grid-stack-secondary {
  top: 30px;
  transition: top 0.5s cubic-bezier(0.79, 0.33, 0.614, 1.15);
}

/* Bereiche innerhalb der Tiles */
.section-top,
.section-mid,
.section-bottom {
  width: 100%;
}
.section-top p {
  margin-bottom: 10px;
  font-family: "Akkurat Pro", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 100%;
  letter-spacing: 0.03em;
  color: var(--c-ink);
  text-transform: uppercase;
}
.section-mid {
  max-height: 100%;
  margin: var(--space-3) 0;
  display: flex;
  flex-direction: column;
}
.section-bottom {
  margin-top: auto;
  padding-bottom: 0 !important;
  display: grid;
}
.section-bottom svg {
  justify-self: flex-end;
}
.section-bottom p {
  margin: 0;
  font-family: "Akkurat Pro", sans-serif;
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.05em;
  line-height: 110%;
  color: var(--c-ink-weak);
}

/* Carousel-Hintergrund (Gallery) */
#galleryCarouselWrapper {
  z-index: -2;
  pointer-events: none;
  filter: saturate(0) brightness(0.4);
  transition: filter 0.6s ease, opacity 1s ease;
  will-change: filter, opacity;
}
body.gallery-active #galleryCarouselWrapper {
  pointer-events: auto;
  filter: none;
}
#galleryCarousel .carousel-indicators,
#galleryCarousel .carousel-control-prev,
#galleryCarousel .carousel-control-next {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.carousel-control-next,
.carousel-control-prev {
  width: 5%;
}
body.gallery-active #galleryCarousel .carousel-indicators,
body.gallery-active #galleryCarousel .carousel-control-prev,
body.gallery-active #galleryCarousel .carousel-control-next,
body.gallery-active .mobile-header,
body.gallery-active .mobile-slide-menu {
  opacity: 1;
  pointer-events: auto;
}

.carousel-control-prev-icon {
  background-image: url("/assets/icons/gallery-left.svg"); /* dein eigenes Icon */
  width: 32px;
  height: 32px;
  background-size: contain;
  background-repeat: no-repeat;
}

.carousel-control-next-icon {
  background-image: url("/assets/icons/gallery-right.svg"); /* dein eigenes Icon */
  width: 32px;
  height: 32px;
  background-size: contain;
  background-repeat: no-repeat;
}

.carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--c-white);
  opacity: 0.5;
  border: none;
  transition: width 0.3s ease, opacity 0.3s ease, border-radius 0.3s ease;
}
.carousel-indicators .active {
  width: 40px;
  height: 8px;
  border-radius: 50px;
  background-color: var(--c-white);
  opacity: 1;
}

/* register Table */

.register-table {
  background-color: transparent !important;
  margin: 30px 0;
}

.register-table tr,
.checkout-table tr {
  height: 60px !important;
  border-top: 1px solid var(--c-ink-weak);
}
