/* =========================================================
   responsive.css
   - Nur mobile/Responsive-spezifische Regeln
   - Keine Desktop-Basisstile (liegen in style.css)
   ========================================================= */

/* ---------------------------------------------------------
   1) Responsive Hilfs-Variablen (nur hier benötigt)
   --------------------------------------------------------- */
:root {
  --w-main: calc(2 * 40px + 1 * 7px + 8px);
  --w-contact: calc(4 * 40px + 3 * 7px + 8px);
  --w-social: calc(4 * 40px + 3 * 7px + 8px);
}

/* ---------------------------------------------------------
   2) Sichtbarkeit Desktop vs. Mobile Wrapper
   --------------------------------------------------------- */
.desktop {
  display: block;
}
.mobile {
  display: none;
  width: 100%;
  height: 100vh;
}

/* ---------------------------------------------------------
   3) Mobile Menü (Dock / Bubbles)
   --------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 100;
}

.mobile-menu-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 115px;
  height: 36px;
  background-color: #00000050;
  backdrop-filter: blur(10px);
  padding: 14px;
  gap: 4px;
  border-radius: 68px;
  text-align: center;
  cursor: pointer;
}

.mobile-menu-button a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.mobile-menu-button:hover,
.mobile-menu-button:active,
.mobile-menu-button:focus {
  background-color: #ff6e39;
}
.mobile-menu-button:hover *,
.mobile-menu-button:active *,
.mobile-menu-button:focus * {
  filter: invert(1);
}

.mobile-menu-button span {
  font-family: "Akkurat Pro", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: #fff;
  text-transform: uppercase;
}

.moblie-menu-button img {
  height: 12px;
}

.mobile-menu-item {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #a3a3a363;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-content {
  display: flex;
  overflow: hidden;
  transition: width 0.3s ease;
}

/* Radios als State-Controller (z. B. Tabs) ausblenden */
.mobile-menu input[type="radio"] {
  display: none;
}

/* Hauptgruppe */
.mobile-menu-main {
  display: flex;
  gap: 7px;
  background: #0000009e;
  padding: 4px;
  border-radius: 36px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* optionale Gruppen (werden dynamisch angezeigt) */
.mobile-menu-contact,
.mobile-menu-social {
  display: none !important;
}

/* Back/Help Gruppe */
.mobile-menu-back,
.mobile-menu-help {
  display: flex;
  gap: 7px;
  background: #0000009e;
  padding: 4px;
  border-radius: 36px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.mobile-menu-back {
  visibility: visible;
}

/* ---------------------------------------------------------
   3.5) Mobile Slide Menu
   --------------------------------------------------------- */

.mobile-slide-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  background: #00000090;
  backdrop-filter: blur(10px);
  z-index: 101;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 20px 120px 20px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  will-change: transform;
}

/* Checkbox aktiv → Menü reinschieben + Overlay zeigen */
#slide-toggle:checked ~ .mobile-slide-menu {
  transform: translateX(0);
}

#slide-toggle:checked ~ .mobile::after,
#slide-toggle:checked + .mobile::after {
  /* Fallback je nach Struktur */
  opacity: 1;
  pointer-events: auto; /* Overlay fängt Klicks ab */
}

/* Wenn die Checkbox aktiv ist → Seite nicht scrollen */
html:has(#slide-toggle:checked),
body:has(#slide-toggle:checked) {
  overflow: hidden;
  overscroll-behavior: contain; /* verhindert Scroll-Chaining auf Mobile */
}
.slide-menu-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.slide-menu-head div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slide-menu-head div img:last-of-type {
  height: 32px;
  cursor: pointer;
  opacity: 0.4;
}

.slide-menu-head .foster {
  height: 45px;
  width: 144px;
}
.slide-menu-head div img:first-of-type {
  height: 45px;
}

.mobile-slide-menu hr {
  border-top: 1px solid #ffffff40;
  margin: 30px 0;
}

.mobile-slide-menu hr:first-of-type {
  margin-top: 0;
}

.slide-menu-label {
  font-family: "Akkurat Pro", sans-serif;
  font-weight: 400;
  font-size: 11px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #ffffff60;
  text-transform: uppercase;
}

.slide-menu-contact {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.menu-contact-item {
  display: flex;
  gap: 10px;
  align-items: center;
}

.slide-menu-content a {
  font-family: "Akkurat Pro", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
}

.slide-menu-content img {
  height: 22px;
  width: 22px;
}

.mobile-accessibility {
  display: flex;
  gap: 10px;
  align-items: center;
}

.slide-menu-link {
  font-family: "Akkurat Pro", sans-serif;
  font-weight: 400;
  font-size: 11px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #ffffff60;
  text-decoration: none;
  margin: 20px 0;
  text-transform: uppercase;
  cursor: pointer;
}

.mobile-burger,
.mobile-cross {
  cursor: pointer;
}

/* ---------------------------------------------------------
   4) Mobile Header & Hero
   --------------------------------------------------------- */
.mobile-header {
  display: flex;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  padding: 20px;
  justify-content: space-between;
  align-items: center;
  z-index: 0;
  overflow: visible;
}

/* Weicher Blur-Fade in den Content */
.mobile-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  pointer-events: none;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
  z-index: -1;
}

.mobile-header-logo {
  opacity: 0;
  max-width: 40%;
}

.mobile-hero {
  height: 50vh;
}

.mobile-hero-head {
  position: fixed;
  top: 30vh;
  left: 20px;
  width: 80vw;
}

.mobile-hero-logo img {
  width: 45px;
}

.mobile-hero-head h1 {
  font-family: "Baskerville", sans-serif;
  font-weight: 400;
  font-size: 44px;
  line-height: 94%;
  letter-spacing: 2%;
  color: #fff;
}
.mobile-hero-head h6 {
  font-family: "Akkurat Pro", sans-serif;
  font-weight: 400;
  font-size: 13.5px;
  line-height: 120%;
  letter-spacing: -1%;
  color: #fff;
  opacity: 0.6;
}

/* ---------------------------------------------------------
   5) Mobile Grid (scroll + snap)
   --------------------------------------------------------- */
.grid-stack-mobile {
  width: 100%;
  height: 100vh !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -webkit-scrollbar: none;
  margin-top: 60px !important; /* Platz für Header */
}

/* Scrollbar für iOS/Chrome ausblenden */
.grid-stack-mobile::-webkit-scrollbar {
  display: none;
}

/* Jede Kachel auf Snap-Anfang ausrichten */
.grid-stack-mobile .grid-stack-item {
  scroll-snap-align: start;
}

/* ---------------------------------------------------------
   5.5) Secondary Grid
   --------------------------------------------------------- */

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

/* Sichtbar = von unten ins Bild gefahren */
.grid-secondary-mobile.active {
  pointer-events: auto;
  backdrop-filter: blur(10px);
  transition: backdrop-filter 0.8s ease;
}

.grid-stack-mobile-secondary {
  width: 100% !important;
  height: calc(100dvh - 60px) !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -webkit-scrollbar: none;
  margin-top: 60px !important; /* Platz für Header */
  transform: translateY(100%);
}

.grid-secondary-mobile.active .grid-stack-mobile-secondary {
  transform: translateY(0%);
  transition: transform 0.5s ease;
}

/* ---------------------------------------------------------
   6) Mobile Breakpoint (<= 768px)
   --------------------------------------------------------- */
@media (max-width: 768px) {
  /* Body füllt gesamte Breite, ohne Desktop-Paddings */
  body.bg-loaded::before {
    opacity: 1;
  }
  body {
    width: 100%;
    padding: 0;
    overflow-y: scroll;
    height: 100vh;
  }

  /* Desktop-Container aus, Mobile-Container an */
  .desktop {
    display: none;
  }
  .mobile {
    display: block;
    padding: 0 20px;
  }

  /* Boden-Blur, um UI-Overlays lesbarer zu machen */
  .mobile::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 200px;
    pointer-events: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    mask-image: linear-gradient(to top, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, black 0%, transparent 100%);
  }

  /* Kompaktere Subheading-Höhe auf Phones */
  .eventSubHeading {
    height: 50px !important;
  }

  astral-accessibility {
    display: none !important;
  }

  .carousel-control-next,
  .carousel-control-prev {
    width: 15%;
  }

  .carousel-indicators {
    margin-bottom: 100px;
  }

  .registerDate {
    width: 4.5rem;
  }

  .registerLocation {
    display: none;
  }

  #registerForm {
    max-width: 100%;
  }
}

.grid-stack-mobile,
.grid-stack-mobile-secondary {
  max-width: 500px;
  margin: auto;
}

body {
  overflow-x: auto;
}
