/* Tap-Hint nur Mobil → auf Desktop ausblenden */
@media (min-width: 900px) {
  .tap-hint {
    display: none !important;
  }
}



@font-face {
  font-family: "Pacifico";
  src: url("fonts/Pacifico-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}



html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: "Lato", sans-serif;
}



/* HORIZONTAL SCROLL */
.horizontal-wrapper {
  display: flex;
  flex-wrap: nowrap;
  height: 100vh;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.panel {
  flex: 0 0 auto;
  width: 100vw;
  height: 100vh;
  scroll-snap-align: start; /* jede Sektion fängt exakt an */
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  padding-left: 120px;
}

@media (min-width: 1251px){
.panel {
  padding-left: 120px;
}

}

/* GOLDBOX */
.hero-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50vw;
  aspect-ratio: 16 / 9;
  max-height: 80vh;
  margin-bottom: 5rem;
}

.gold-box {
  width: 100%;
  height: 100%;
  border: 3px solid rgba(209, 182, 98, 0.85);
  border-radius: 4px;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.411);
  overflow: hidden;
  position: relative;
  background: transparent;
}

.gold-box-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
  border-radius: 4px;
}

.intro-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.gold-box-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  z-index: 2;
  pointer-events: none;
}
.gold-box::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  background: radial-gradient(
    circle at center,
    rgba(209, 182, 98, 0.25) 0%,
    rgba(209, 182, 98, 0) 70%
  );
  pointer-events: none;
  z-index: 2;
}
.panel-1 .hero-box {
  flex-direction: column;        /* Video oben, Button unten */
  gap: 20px;                     /* Abstand */
  height: auto;                  /* NICHT zentrieren! */
  max-height: none;              /* fixe Höhe entfernen */
  margin-bottom: 0;              /* sonst wird’s verschoben */
}

.gold-box {
  width: 50vw;
  height: auto;
  aspect-ratio: 16/9;            /* Video bleibt 16/9 */
  overflow: hidden;
  position: relative;
}

.under-video {
  background: #d4af37;
  color: white;
  border: none;
  padding: 12px 28px;
  font-size: 1.1rem;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(212,175,55,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.under-video:hover {
  transform: scale(1.05);
}


.under-video {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.under-video.visible {
  opacity: 1;
  pointer-events: auto;
}


/* Panel 2: Illustration + Textbox im Glaslook */
.panel-2 {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1.7fr 1.5fr;
  gap: 3vw;
  align-items: center;
  width: 75vw;
  max-width: 1400px;
}

/* Linke Spalte – Illustration */
.image-column img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.25));
}
.image-column {
    transform: scale(1.1);
    transform-origin: center;
}


/* Rechte Spalte – Glasbox */
.glass-box {
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background-color: rgba(255, 255, 255, 0.404);
  border: 3px solid rgba(209, 182, 98, 0.85); /* Goldrand */
  border-radius: 18px;
  padding: 1rem 1rem 3rem;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.15);
  text-align: left;
}


/* Hover-Effekt: goldener Schimmer */
.glass-box:hover {
  border-color: rgba(209, 182, 98, 0.85);
  box-shadow:
    0 0 12px rgba(209, 182, 98, 0.45),
    0 0 35px rgba(209, 182, 98, 0.35),
    0 4px 25px rgba(0, 0, 0, 0.25);
  transform: scale(1.015);
}


/* Typografie */
.glass-box h2 {
  font-family: "Pacifico", cursive;
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 3rem;
  margin-left: 2rem;

}
.glass-box h2 { line-height: 1.8; }


.glass-box p {
  font-family: "Lato", sans-serif;
  font-size: 1.1rem;
  line-height: 1.3;
  opacity: 1;
  margin-left: 2rem;
}

/* Startzustand (unsichtbar und leicht versetzt) */
.glass-box h2,
.glass-box p {
  opacity: 0;
  transition: all 2.2s cubic-bezier(0.22, 0.05, 0.14, 1);
  will-change: transform, opacity;
   /* weich, kein Glow */
  font-weight: 400;
  letter-spacing: 0.2px;
}

/* Startpositionen – etwas außerhalb der Box */
.glass-box h2 {
  transform: translateX(400px); /* weiter draußen, von rechts */
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 6px rgba(37, 28, 3, 0.973);
}

.glass-box p {
  transform: translateX(-400px); /* weiter draußen, von links */
  transition-delay: 0.9s; /* deutlich später als Überschrift */
  color: rgb(207, 162, 64);
 text-shadow: 0 2px 6px rgba(224, 216, 192, 0.973);
  font-weight: 500;
}

/* Endzustand beim Sichtbarwerden */
.glass-box.visible h2,
.glass-box.visible p {
  opacity: 1;
  transform: translateX(0);
}

/* Button-Row: zwei Buttons nebeneinander, zentriert */
.btn-row {
  display: flex;
  gap: 1rem;
  justify-content: center;   /* zentriert unter Überschrift / in der Glasbox */
  align-items: center;
  margin: 1rem auto 1rem; /* Abstand oben/unten, zentriert */
  width: auto;
}

/* Beide Buttons verwenden die vorhandene .btn-gallery / .glass-btn Regeln */
/* Optional: etwas visuelle Priorisierung für 'Termin buchen' */
.btn-gallery.btn-primary {
  /* leicht intensiverer goldener Schein */
  box-shadow:
    0 10px 28px rgba(0,0,0,0.20),
    0 0 18px rgba(209,182,98,0.10);
  border: 1.6px solid rgba(209,182,98,1);
}
/* Button-Farbvariablen (leicht anpassbar) */
:root{
  --btn-text-dark: #2c2b28;        /* dunkles Tannengrün für Text (sehr guter Kontrast auf hellem Glas) */
  --btn-bg-default: rgba(255,255,255,0.14); /* leicht helleres Glas für bessere Lesbarkeit */
  --btn-bg-hover: rgba(255,255,255,0.18);
  --btn-gold: rgba(209,182,98,1);
}



/* Basis: Glas-Button */
.btn-gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0rem;
  margin: 0 auto 2.5rem;
  padding: .62rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  text-decoration: none;
  color: rgba(192, 157, 53, 0.95);
  border: 1.4px solid rgba(255,255,255,0.08);
  background: rgba(255, 255, 255, 0.267);        /* <- aufgehelltes Glas */
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  box-shadow: 0 6px 18px rgba(0,0,0,0.16);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, color 220ms ease;
}


/* Hover / Fokus: etwas heller Hintergrund + goldener Schein, Text bleibt dunkel */
.btn-gallery:hover,
.btn-gallery:focus {
  transform: translateY(-4px);
  background: rgba(209,182,98,0.40);
  box-shadow:
    0 14px 36px rgba(0,0,0,0.22),
    0 0 22px rgba(209,182,98,0.12);
  color: rgba(255, 255, 255, 0.95);
  outline: none;
   border: 1.5px solid var(--btn-gold);
}



/* Navigation – dezente Goldpfeile */
/* Navigation – dezente Goldpfeile, rechts vom Header */
.nav-arrows {
  position: fixed;
  top: 50%;
  left: var(--header-w);                  /* beginnt rechts neben dem Header */
  width: calc(100% - var(--header-w));    /* Pfeilbereich = Restbreite */
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;                   /* Pfeile blockieren keine Klicks außerhalb */
  z-index: 50;
  transform: translateY(-50%);
}

.arrow {
  pointer-events: auto; /* aktiviert Klick auf Pfeil selbst */
  background: rgba(209, 182, 98, 0.15);
  color: rgba(209, 182, 98, 0.85);
  border: none;
  font-size: 2.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 50%;
  cursor: pointer;
  transition:
    opacity 0.5s ease,
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.arrow:hover {
  background: rgba(209, 182, 98, 0.3);
  color: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

.arrow.left {
  margin-left: 0;
}

.arrow.right {
  margin-right: 1rem;
}




.ghost-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 1.8rem;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.5px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: transparent;
  text-shadow: 0 2px 6px rgba(87, 66, 8, 0.75);
  margin-left: 2rem;
  margin-right: auto;
}

.ghost-btn:hover {
  background: rgba(209, 182, 98, 0.85);
  color: #d4b321;
  box-shadow: 0 0 10px rgba(209, 182, 98, 0.6);
  transform: translateY(-2px);
}


/* === Blatt === */
.floating-leaf {
  position: fixed;
  bottom: -80px;
  left: -120px;
  width: 55px;           /* vorher 90px */
  height: auto;
  opacity: 0;
  z-index: 30;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.floating-leaf:hover {
  transform: scale(1.15) rotate(6deg);
}


/* === Ritual Pop-up === */
.ritual-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  z-index: 100;
  justify-content: center;
  align-items: center;
}

.popup-content {
  position: relative;
  background-image: url("/bilder/marmor.webp");
  background-size: cover;
  background-position: center;
  width: 70vw;
  max-width: 600px;
  height: 50vh;
  border-radius: 18px;
  box-shadow: 0 0 35px rgba(0,0,0,0.45);
  padding: 3rem;
  color: #fff;
  border: 4px solid rgba(209,182,98,0.75);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  animation: fadeIn 0.6s ease;

  /* neue Weichheit + Transparenz */
  background-blend-mode: lighten;
  background-color: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  color: #ffffff;
  text-shadow:
    0 0 10px rgba(209, 182, 98, 0.35),
    0 0 20px rgba(209, 182, 98, 0.25);
}

.popup-content h2 {
      font-size: 3rem;         /* war ca. 2.0 */
  margin-bottom: 1.2rem;
  letter-spacing: 0.6px;
  text-shadow:
    0 0 14px rgba(209, 182, 98, 0.55),
    0 0 28px rgba(209, 181, 98, 0.534);
}

.popup-content p {
  font-size: 1.25rem;        /* etwas größer für Lesbarkeit */
  line-height: 1.6;
  max-width: 640px;
  text-shadow:
    0 0 10px rgba(209, 181, 98, 0.61),
    0 0 20px rgba(209, 181, 98, 0.623);
}

.close-popup {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size:4rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: color 0.2s ease;
}
.close-popup:hover {
  color: #817010;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.whatsapp-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.9rem 2rem;
  border: 2px solid rgba(209, 182, 98, 0.85);
  border-radius: 30px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  background: rgba(209, 182, 98, 0.25);
  backdrop-filter: blur(3px);
}

.whatsapp-btn:hover {
  background: rgba(209, 182, 98, 0.9);
  box-shadow: 0 0 15px rgba(209, 182, 98, 0.6);
  transform: translateY(-2px);
}
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.whatsapp-btn .wa-icon {
  color: rgba(209, 182, 98, 0.9);
  transition: color 0.3s ease;
}

.whatsapp-btn:hover .wa-icon {
  color: #fff;
}



/* === PANEL 3 === */

.gallery-heading {
  text-align: center;
  width: 100%;
  position: relative;
}

.gallery-heading h2 {
  font-family: "Pacifico", serif;
  font-size: 3.2rem;
  color: rgba(255, 255, 255, 0.92);
  opacity: 1;
  transform: translateY(20px);
  transition: all 1s ease;
  margin-bottom: 4rem; 
  text-align: center;
  text-shadow:
    0 0 4px rgba(163, 131, 35, 0.61),
    0 0 8px rgba(129, 104, 30, 0.4),
    1px 1px 3px rgba(124, 105, 20, 0.644);
}

.fade-in-heading {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease, transform 1.2s ease;
  will-change: opacity, transform;
}

.fade-in-heading.visible {
  opacity: 1;
  transform: translateY(0);
}
 
 

.panel-3 {
  display: flex;
  justify-content: center;
  align-items: center;

  min-height: 100vh;
  background: transparent;
  overflow: hidden;
}
/* Wrapper für Überschrift + Galerie — sorgt für echte Zentrierung */
.gallery-content {
  display: flex;
  flex-direction: column;
  align-items: center;   /* zentriert Kinder horizontal */
  width: 100%;
}

/* === GRID === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(1, auto);
  gap: 4rem 5rem;
  width: 67vw;
  max-width: 1400px;
  position: relative;
  z-index: 1;
  margin-bottom: 4rem;
}

/* === BOXEN === */
.gallery-box {
  position: relative;
  width: 100%;
  padding-top: 150%; /* 2:3 Seitenverhältnis – KEIN aspect-ratio, sondern echtes Verhältnis */
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid rgba(209,182,98,0.6);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(12px) saturate(140%);
  cursor: pointer;
  transition: transform .4s ease, box-shadow .4s ease;
  margin-bottom: 5rem
}

.gallery-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.gallery-box .image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.6s ease;
}

.gallery-box .image.back { opacity: 0; }
.gallery-box:hover .image.back { opacity: 1; }

/* === Positionierungen === */

.gallery-box:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
  transform: rotate(-3deg);
  z-index: 3;
}
.gallery-box:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  transform: rotate(1.5deg);
  z-index: 4;
}
.gallery-box:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
  transform: rotate(-1deg);
  z-index: 3;
}






/* === Navigation-Pfeile Fix === */
.panel-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 12000;   /* höher als Header (9999) */
  pointer-events: auto;
}

.panel-nav.left {
  left: 20px;      /* Abstand links */
}

.panel-nav.right {
  right: 20px;     /* Abstand rechts */
}

.panel-nav button {
  background: rgba(209,182,98,0.9);
  border: none;
  color: #09221b;
  padding: 0.8rem 1rem;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
  transition: transform .25s ease, box-shadow .25s ease;
}

.panel-nav button:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}


/* Hauptbreakpoint: alles unter 900px = vertikal, lesbar, weich */
@media (max-width: 1250px) {
  /* Body darf endlich normal vertikal scrollen */
  html,
  body {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  /* Horizontal-Wrapper wird zum normalen, vertikal scrollenden Container */
  .horizontal-wrapper {
    display: block;
    height: auto;
    overflow-x: hidden;
    overflow-y: visible;
    scroll-snap-type: none;
    margin-top: 80px; /* Platz unter dem Header */
  }

  .panel {
    width: 100%;
    height: auto;
    min-height: 100vh;
    scroll-snap-align: none;
    padding: 4rem 1.5rem 5rem;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
  }

  /* ===== Panel 1 – Goldbox mit Video ===== */
  .panel-1 {
    padding-top: 2rem;
  }

  .hero-box {
    width: 90vw;
    max-width: 640px;
    aspect-ratio: 16 / 9;
    margin: 0 auto 3rem;
  }

  /* ===== Panel 2 – Illustration & Glasbox ===== */
  .panel-2 {
    padding-top: 2rem;
  }

  .content-wrapper {
    width: 90vw;
    max-width: 700px;
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .image-column {
    order: 1;
    text-align: center;
  }

  .image-column img {
    max-width: 420px;
    margin: 0 auto;
    transform: scale(1); /* etwas kleiner als Desktop */
  }

  .glass-column {
    order: 2;
    width: 100%;
  }

  .glass-box {
    padding: 2rem 1.6rem 2.4rem;
    text-align: center;
  }

  .glass-box h2 {
    font-size: 1.8rem;
    margin-left: 0;
  }

  .glass-box p {
    font-size: 1.05rem;
    margin-left: 0;
  }

  .btn-row {
    flex-direction: column;
    margin: 2.2rem auto 0.5rem;
    width: 100%;
  }

  .btn-gallery {
    width: 100%;
    justify-content: center;
  }

/* === Mini-Marlena Einbindung in Panel 2 === */
/* ============================
   MINI-MARLENA IM SALON (Panel 2)
   ============================ */

/* Eltern-Container MUSS relativen Kontext haben */
.image-column {
    position: relative !important;
    z-index: 0 !important;
    overflow: visible !important;
}

/* Salonbild – Ebene 1 */
.image-column img {
    position: relative !important;
    z-index: 1 !important;
    display: block;
}


/* Mini-Marlena – immer darüber */
#marlena {
    position: absolute !important;
    z-index: 99999 !important;      /* bleibt über dem Bild */
    pointer-events: none;           /* blockiert keine Klicks */

    width: 64px;
    height: 64px;

    background-image: url("bilder/pixel_marlena_full_atlas_64_transparent.webp");
    background-position: 0 0;
    image-rendering: pixelated;

    /* Startposition vor dem Tresen (prozentual, responsiv) */
    left: 52%;
    top: 63%;

    /* Figur vergrößern */
    transform-origin: 50% 100%;
    transform: scale(1.5);
}

.image-wrapper {
    transform: scale(1.1);
}

.image-wrapper img {
    transform: none !important;
}


/* Sicherstellen, dass kein Container Stacking-Contexts erzeugt */
.panel-2,
.panel-2 * {
    transform: none !important;
    isolation: auto !important;
    overflow: visible !important;
}
}

#marlena {
  position: absolute;
  width: 64px;
  height: 64px;

  background-image: url("bilder/pixel_marlena_full_atlas_64_transparent.webp");
  background-position: 0 0;
  image-rendering: pixelated;

  /* Figur vergrößern */
  transform-origin: 50% 100%;
  transform: scale(1.0);

  /* Position → später Feintuning */
  left: 52%;
  top: 63%;

  z-index: 9999;
  pointer-events: none;
}


.panel-2 {
  position: relative;
}

.image-column {
  position: relative;
  z-index: 10; /* ÜBER der Glasbox */
}

.glass-column {
  position: relative;
  z-index: 1; /* UNTER der image-column */
}

.glass-box {
  position: relative;
  z-index: 1; /* UNTER Marlena und Bild  */
}

.marlena-hint {
  margin-top: 1rem;
  text-align: center;

  background: rgba(0, 0, 0, 0.5);
  color: white;

  padding: 8px 14px;
  border-radius: 10px;

  font-size: 0.95rem;
  letter-spacing: 0.2px;

  backdrop-filter: blur(4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);

  width: fit-content;
  margin-left: auto;
  margin-right: auto;

  animation: hintFade 2s ease-in-out;
}

@keyframes hintFade {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===== Panel 2 – Titel über der Glasbox ===== */
@media (min-width: 1251px) {
  .panel-2 .panel-title {
    position: relative;
    display: block;
    width: 100%;
    text-align: center;
    font-family: "Pacifico", cursive;
    font-size: 2.6rem;
    font-weight: 400;
    color: #d1b662;
    text-shadow: 0 0 10px rgba(0,0,0,0.3);
    margin: 0 auto 2.5rem;
    z-index: 10;
    transform: translateY(-10px); /* optional: leicht nach oben rücken */
  }
}

@media (min-width: 1251px) {
  .panel-2 .panel-title {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-family: "Pacifico", cursive;
    font-size: 2.6rem;
    font-weight: 400;
    color: #ffffff; /* Schrift in Weiß */
    text-shadow:
      0 0 10px rgba(209,182,98,0.8),
      0 0 20px rgba(209,182,98,0.6),
      0 0 30px rgba(209,182,98,0.4);
    z-index: 10;
    margin: 0;
    padding-top: 4rem;
    width: 100%;
  }

  .panel-2 {
    position: relative;
  }
}



/* ----------------------------------
   HEADER – START groß, später klein
---------------------------------- */

/* Normale (große) Header-Breite – Panel 1 */
:root {
  --header-w: 250px;      /* groß */
  --header-w-shrunk: 150px;  /* klein */
  --header-transition: 280ms;
}

/* Basiszustand: groß */
.ruby-header {
  width: var(--header-w);
  transition: width var(--header-transition) ease,
              opacity var(--header-transition) ease;
}

/* Geschrumpft (Panel 2 und weiter) */
.ruby-header.shrunk {
  width: var(--header-w-shrunk);
}

/* Logo-Verhalten */
.ruby-header .rh-logo img {
  width: 190px;
  transition: width var(--header-transition) ease,
              transform var(--header-transition) ease;
}

/* Logo kleiner im Schrumpf-Modus */
.ruby-header.shrunk .rh-logo img {
  width: 80px;
  transform: translateY(1px) scale(0.98);
}
/* Mobile-CTA-Button komplett abschalten, falls vorhanden */
.mobile-cta-btn {
  display: none !important;
}


/* ===== DESKTOP FOOTER: Footer vollbreit, Inhalt zwischen Headerkante und rechtem Rand zentriert ===== */
@media (min-width: 1251px) {

  /* Footer als 2-Spalten-Grid: links „Platzhalter“ = Headerbreite, rechts der Inhaltsbereich */
  .site-footer {
    position: fixed !important;
    left: 0; right: 0; bottom: 0;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: var(--header-w, 250px) 1fr !important;
    z-index: 9998 !important;
    /* bestehende Optik bleibt: Hintergrund, Schatten, Höhe etc. kommen aus deinen vorhandenen Regeln */
  }

  /* Wenn der Header schrumpft, reduziert sich nur die linke Grid-Spalte */
  .ruby-header.shrunk ~ .site-footer {
    grid-template-columns: var(--header-w-shrunk, 150px) 1fr !important;
  }

  /* Footer-Inhalt in die rechte Spalte und dort sauber zentrieren */
  .site-footer .footer-inner {
    grid-column: 2;
    box-sizing: border-box !important;
    width: 100%;
    max-width: 1600px;                 /* ← ggf. anpassen: Inhalt schmaler/breiter */
    margin: 0 auto;                    /* zentriert innerhalb des rechten Bereichs */
    padding: 10px 24px !important;     /* vertikales/horizontales Padding */
  }

  /* Nichts im Footer abschneiden */
  .site-footer,
  .site-footer .footer-inner,
  .site-footer .footer-row {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
  }

  /* Damit die Panels nicht vom fixen Footer überdeckt werden */
  .horizontal-wrapper {
    padding-bottom: 60px !important; /* ggf. 60–100px feintunen, entspricht Footerhöhe + Luft */
    box-sizing: border-box !important;
  }
}

/* DESKTOP: Footer kompakter (gleiche Breite, Inhalt bleibt im rechten Bereich) */
@media (min-width: 1251px) {
  .site-footer        { 
    padding: 3px 15px !important; }     /* außen schlanker */

  .site-footer .footer-inner { 
    gap: 5rem !important; 
    padding: 3px 12px !important; }
    
  .footer-row--top    { 
    gap: 15rem !important;
  width: 5000px }

  .footer-row--bottom { 
    padding-top: 4px !important; 
    padding-bottom: 1px !important; }

  .fi-icon            { 
    width: 22px !important; 
    height: 22px !important; }


  /* Content nicht vom fixen Footer überdecken: Puffer kleiner setzen */
  .horizontal-wrapper { padding-bottom: 64px !important; }  /* ggf. 56–72px feintunen */
}

/* ===== DESKTOP: Footer-Icons größer ===== */
@media (min-width: 1251px) {
  :root{
    --footerIcon: 28px;   /* allgemeine Icons (Adresse, Öffnungszeiten, Mail, Telefon) */
    --socialIcon: 28px;   /* Instagram/WhatsApp unten rechts */
  }

  /* Kontakt-Icons links/rechts in den Items */
  .fi-icon{
    width: var(--footerIcon) !important;
    height: var(--footerIcon) !important;
    flex: 0 0 var(--footerIcon) !important;
  }

  /* Social-Icons im Footer (farbige SVGs) */
  .footer-item--socials svg{
    width: var(--socialIcon) !important;
    height: var(--socialIcon) !important;
    display: block !important;
  }

  /* Falls es eng wird: sauber umbrechen statt Höhe aufzublasen */
  .footer-row--top{
    flex-wrap: wrap !important;
    gap: 12px !important; /* leicht mehr Luft für größere Icons */
  }
}
/* ===== DESKTOP: Footer-Topreihe zwingend einzeilig + Socials mit rein ===== */
@media (min-width: 1251px) {
  /* etwas weniger Innenabstand = mehr Platz für die Reihe */
  .site-footer .footer-inner {
    padding-right: 12px !important;
  }

  /* Einzeilig anordnen, keine erzwungene 32%-Breite mehr */
  .footer-row--top {
    display: flex !important;
    flex-wrap: nowrap !important;     /* alles in eine Zeile */
    column-gap: 10px !important;      /* enger zusammenrücken */
    row-gap: 0 !important;
    align-items: center !important;
  }

  /* Items dürfen schrumpfen; 32%-Limit raus */
  .footer-item {
    max-width: none !important;
    min-width: 0 !important;
    flex: 0 1 auto !important;        /* darf schmaler werden */
    gap: 0.6rem !important;           /* etwas enger zwischen Icon/Text */
  }

  /* Social-Block in die gleiche Zeile, ans rechte Ende */
  .footer-item--socials {
    min-width: auto !important;
    justify-content: flex-end !important;
    margin-left: auto !important;     /* schiebt die Socials nach ganz rechts */
  }

  /* Kleines Typo-Tuning für Platz */
  .fi-label { font-size: 0.75rem !important; }
  .fi-value { font-size: 0.9rem !important; }
}

/* DESKTOP: maximale Breite des Footer-Inhalts steuern */
@media (min-width: 1251px) {
  :root { --footerMaxW: 1500px; } /* ← HIER Wert ändern (z.B. 960px, 1200px …) */

  .site-footer .footer-inner {
    /* hält sich an deine Headerkante links und den Außenrand rechts */
    max-width: min(var(--footerMaxW), calc(100vw - var(--header-w, 250px) - 24px)) !important;
    margin: 0 auto !important; /* im rechten Bereich zentriert */
  }
}

@media (min-width: 1251px) {
  :root{
    --socialIcon: 28px; /* hier größer/kleiner drehen: 24–32px sind üblich */
  }

  .footer-item--socials {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-left: auto !important; /* schiebt Socials nach rechts */
    min-width: auto !important;
  }
  .footer-item--socials svg {
    width: var(--socialIcon) !important;
    height: var(--socialIcon) !important;
    display: block;
  }
}

/* ===== DESKTOP: Footer wieder zweireihig (Top: Kontakt+Socials, Bottom: Rechtliches) ===== */
@media (min-width: 1251px) {
  /* Footer nicht als Grid erzwingen */
  .site-footer { display: block !important; }

  /* Zwei Reihen untereinander */
  .site-footer .footer-inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important; /* Abstand zwischen Top/Bottom */
  }

  /* TOP-ROW: bleibt oben, darf innerhalb der Reihe umbrechen */
  .footer-row--top {
    display: flex !important;
    flex-wrap: nowrap !important;      /* wenn eng, bricht innerhalb der Top-Reihe um */
    align-items: center !important;
    column-gap: 120px !important;
    row-gap: 3px !important;
    width: 100% !important;
  }

  /* Items in der Top-Reihe dürfen schrumpfen */
  .footer-row--top .footer-item {
    flex: 0 1 auto !important;
    min-width: 200px;                /* bei Bedarf 200–260px feintunen */
    max-width: none !important;
  }

  /* Socials bleiben in der Top-Reihe, ans rechte Ende der aktuellen Zeile */
  .footer-item--socials {
    margin-left: auto !important;
    justify-content: flex-end !important;
  }

  /* BOTTOM-ROW: immer neue Zeile darunter */
  .footer-row--bottom {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 4px !important;
    margin-top: 3px !important;
  }
}
/* ===== DESKTOP: Footer-Inhalt rechts von der Headerkante ausrichten ===== */
@media (min-width: 1251px) {
  :root { --footerMaxW: 1800px; } /* bei Bedarf anpassen */

  /* Standard: Header normal breit */
  .site-footer .footer-inner {
    /* Inhalt darf nie unter dem Header liegen */
    padding-left: calc(var(--header-w, 100px) + 1px) !important; /* +8px Luft */
    padding-right: 5px !important;

    /* Zentriert im rechten Bereich, nicht breiter als der Platz rechts vom Header */
    max-width: min(var(--footerMaxW),
                   calc(100vw - var(--header-w, 100px) - 1px)) !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  /* Wenn der Header geschrumpft ist → Werte automatisch kleiner */
  .ruby-header.shrunk ~ .site-footer .footer-inner {
    padding-left: calc(var(--header-w-shrunk, 150px) + 8px) !important;
    max-width: min(var(--footerMaxW),
                   calc(100vw - var(--header-w-shrunk, 150px) - 24px)) !important;
  }
}

@media (min-width: 1251px) {
  /* schlanke Pills */
  :root{
    --payPadY: 1px;     /* Höhe ↓  (bei Bedarf 1–3px) */
    --payPadX: 8px;     /* Breite   */
    --payGap: 6px;      /* Abstand  */
  }

  .footer-row--bottom{
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    align-items: center !important;
    gap: 1px 10px !important;
  }
  .footer-row--bottom .footer-links{ justify-self: start; }
  .footer-row--bottom .footer-copy { justify-self: end; }

  .footer-payments.pay-badges{
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: var(--payGap);
    line-height: 1;
    white-space: nowrap;
  }

  /* Basis-Badge (wie mobil, aber flacher) */
  .footer-payments .badge{
    display: inline-block;
    padding: var(--payPadY) var(--payPadX);
    border-radius: 999px;
    font-size: .78rem;           /* kleiner → weniger Höhe */
    font-weight: 700;
    color: #123;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(4px) saturate(110%);
    -webkit-backdrop-filter: blur(4px) saturate(110%);
    border: 1.2px solid rgba(209,182,98,0.7);
    box-shadow: none;           /* kein Extra-Schatten → flacher Look */
  }

  /* Dezentere Variante für Apple/Google Pay */
  .footer-payments .badge--quiet{
    font-weight: 600;
    background: rgba(255,255,255,0.12);
    border-color: rgba(209,182,98,0.45);
    opacity: .8;
  }
}

.panel-1-slogan {
  position: relative;
  z-index: 20;
  text-align: center;
  font-size: 3rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  margin-top: -5rem;  /* fein anpassen, wenn nötig */
   text-shadow:
    0 0 10px rgba(209,182,98,0.8),
    0 0 20px rgba(209,182,98,0.6),
    0 0 30px rgba(209,182,98,0.4);
}

.panel-1 {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.panel-1-slogan {
  width: 100%;
  text-align: center;
  order: -1;              /* steht immer über der hero-box */
  margin-bottom: 2rem;
}
/* Sanfter Fade-in für den Slogan */
.panel-1-slogan {
  opacity: 0;
  animation: sloganFade 1.2s ease-out forwards;
}

@keyframes sloganFade {
  from {
    opacity: 0;
    text-shadow:
      0 0 0 rgba(209,182,98,0.0),
      0 0 0 rgba(209,182,98,0.0);
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    text-shadow:
      0 0 10px rgba(209,182,98,0.8),
      0 0 20px rgba(209,182,98,0.6),
      0 0 30px rgba(209,182,98,0.4);
    transform: translateY(0);
  }
}

/* MOBILE: "Weiter"-Button unter dem Video ausblenden */
@media (max-width: 1250px) {
  .continue-btn,
  .continue-button,
  .hero-continue,
  .scroll-next {
    display: none !important;
  }
}
/* MOBILE: Navigationspfeile ausblenden (keine horizontale Navigation nötig) */
@media (max-width: 1250px) {
  .nav-arrows,
  .nav-arrows button,
  .arrow,
  .arrow.left,
  .arrow.right {
    display: none !important;
  }
}

/* MOBILE: Panels dichter aneinander rücken */
@media (max-width: 1250px) {
  .panel {
    padding-top: 2rem !important;
    padding-bottom: 2.5rem !important;
  }

  /* speziell Panel-2: weniger Abstand nach oben */
  .panel-2 {
    margin-top: -1rem !important;
    padding-top: 1rem !important;
  }

  /* optional: Panel-3 leicht anschmiegen */
  .panel-3 {
    margin-top: -0.5rem !important;
  }
}

@media (min-width: 1251px) {
  .panel-3 {

    padding-top: -3rem !important;       /* schöner Abstand zum oberen Rand */
  }

  .gallery-heading {
    margin-bottom: -3rem !important;     /* Abstand nach unten zur Galerie */
  }
}

/* bis hier alles gut */ 

/* === DESKTOP: Footer garantiert zweireihig + Innen-Layouts fixen === */
@media (min-width:1251px){

  /* Footer nicht als Grid/Flex-Zeile missbrauchen */
  .site-footer{ display:block !important; }

  /* Zwei Reihen untereinander */
  .site-footer .footer-inner{
    display:flex !important;
    flex-direction:column !important;
    gap:6px !important;
    width:150% !important;
  }

  /* Reihen sind echte Blöcke (falls irgendwo display:contents steht) */
  .site-footer .footer-row{
    display:block !important;
    width:100% !important;
  }

  /* ----- Reihe 1 (fr-top): eine Linie, Socials ganz rechts ----- */
  .site-footer .fr-top{
    display:flex !important;
    align-items:center !important;
    flex-wrap:wrap !important;
    column-gap:100px !important;
    row-gap:1px !important;
    width:100% !important;
  }
  .site-footer .fr-top .footer-item{
    flex:0 1 auto !important;
    min-width:0 !important;
    max-width:none !important;
    gap:0.8rem !important;
  }
  .site-footer .fr-top .footer-item--socials{
    margin-left:auto !important;
    display:flex !important;
    align-items:center !important;
    gap:20px !important;
    flex:0 0 auto !important;
  }

  /* ----- Reihe 2 (fr-bottom): 3-Spalten-Grid ----- */
  .site-footer .fr-bottom{
    display:grid !important;
    grid-template-columns:1fr auto 1fr !important; /* Links | Zahlungen | Copy */
    align-items:center !important;
    gap:10px !important;
    width:100% !important;
  }
  .site-footer .fr-bottom .footer-links{ justify-self:start !important; }
  .site-footer .fr-bottom .footer-payments{
    justify-self:center !important;
    display:inline-flex !important;
    flex-wrap:nowrap !important;
    gap:16px !important;
    white-space:wrap !important;
  }
  .site-footer .fr-bottom .footer-copy{
    justify-self:end !important;
    white-space:nowrap !important;
    text-align:right !important;
  }

  /* Lange Texte in Reihe 1 nicht umbrechen lassen */
  .site-footer .fi-value{
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    max-width:50vw; /* optional, Platzhüter */
  }
}


@media (min-width:1251px){
  footer.site-footer .footer-inner{
    max-width: 1800px !important;     /* ← DEIN Wert */
    width: calc(100vw - 200px) !important; /* 100vw minus Headerkante; feintunen */
    padding-left: 160px !important;
    padding-right: 0 !important;
  }
}
/* bis hier alles gut - INDEX HTML ENDE */ 


/* === AMBILIGHT: folgt der gold-box, leuchtet NUR außenrum === */
.hero-box { position: relative; }  /* ungefährlich, ändert dein Layout nicht */

.ambi-glow {
  position: absolute;
  pointer-events: none;
  z-index: 0;                 /* HINTER gold-box */
  filter: blur(60px) brightness(1.4) saturate(1.3);
  opacity: 0.9;
  border-radius: 14px;        /* leicht größer als gold-box-Radius */
  will-change: transform, width, height, background;
}
.gold-box { position: relative; z-index: 1; }  /* Video + Rahmen bleiben drüber */
.intro-video { position: relative; z-index: 2; }/* sicher über dem Glow */


/* Panel 1 – Controlbar */
.panel-1 .gold-box{ position: relative; }
.panel-1 .p1-controls{
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  display: grid; align-items: center;
  grid-template-columns: auto auto 1fr auto auto auto;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(0,0,0,.38);
  border: 1px solid rgba(209,182,98,.55);
  border-radius: 10px;
  backdrop-filter: blur(5px) saturate(110%);
  -webkit-backdrop-filter: blur(5px) saturate(110%);
  z-index: 3;
}

/* Buttons & Anzeigen */
.panel-1 .p1-btn{
  appearance:none; border:1px solid rgba(209,182,98,.55);
  background: rgba(209,182,98,.10); color:#fff;
  border-radius: 8px; padding: 6px 10px; cursor:pointer;
  font: 600 12px/1 system-ui, "Lato", sans-serif;
}
.panel-1 .p1-btn:focus{ outline:2px solid rgba(209,182,98,.6); outline-offset:2px; }

.panel-1 .p1-time{
  color:#fff; font: 500 12px/1 system-ui, "Lato", sans-serif;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  min-width: 40px; text-align: center;
}

/* Slider */
.panel-1 .p1-seek{ width: 100%; accent-color: #D1B662; }
.panel-1 .p1-vol{ width: 90px; accent-color: #D1B662; }

@media (max-width: 480px){
  .panel-1 .p1-vol{ width: 70px; }
  .panel-1 .p1-time{ display:none; } /* kompakter auf Mini-Phones */
}

/* Panel 1 – helle, randlose Vollbreit-Leiste im Video */
.panel-1 .gold-box{ position:relative; }

.panel-1 .p1-controls{
  position:absolute;
  left:0; right:0; bottom:0;           /* volle Breite, bündig am unteren Rand */
  display:grid; align-items:center;
  grid-template-columns: auto auto 1fr auto auto auto;
  gap:10px;
  padding:10px 12px 12px;
  background: rgba(255,255,255,.18);   /* helles Glas */
  backdrop-filter: blur(5px) saturate(110%) !important;
  -webkit-backdrop-filter: blur(5px) saturate(110%) !important;
  border:none !important;
  border-radius:0 !important;
  box-shadow:none !important;
  z-index:3;
}

/* Buttons: nur weiße Symbole, keine Rahmen/Hintergründe */
.panel-1 .p1-btn{
  appearance:none;
  border:none !important;
  background:transparent !important;
  color:#fff !important;
  padding:6px 8px;
  cursor:pointer;
  font:700 14px/1 system-ui, "Lato", sans-serif; /* für Symbolgröße */
  text-shadow:0 1px 2px rgba(0,0,0,.35); /* Weiß auf hellem Glas lesbar machen */
}
.panel-1 .p1-btn:hover{ opacity:.9; }
.panel-1 .p1-btn:focus{ outline: none; }

/* Zeiten & Labels: weiß, dezent */
.panel-1 .p1-time{
  color:#fff !important;
  font:600 12px/1 system-ui, "Lato", sans-serif;
  text-shadow:0 1px 2px rgba(0,0,0,.35);
  min-width:40px; text-align:center;
}

/* Seek- & Volume-Slider weiß stylen */
.panel-1 .p1-seek,
.panel-1 .p1-vol{
  -webkit-appearance:none;
  appearance:none;
  width:100%;
  background:transparent;
  height:18px;
}
.panel-1 .p1-seek::-webkit-slider-runnable-track,
.panel-1 .p1-vol::-webkit-slider-runnable-track{
  height:3px;
  background:rgba(255,255,255,.75);
  border-radius:999px;
}
.panel-1 .p1-seek::-moz-range-track,
.panel-1 .p1-vol::-moz-range-track{
  height:3px;
  background:rgba(255,255,255,.75);
  border-radius:999px;
}
.panel-1 .p1-seek::-webkit-slider-thumb,
.panel-1 .p1-vol::-webkit-slider-thumb{
  -webkit-appearance:none; appearance:none;
  width:14px; height:14px; border-radius:50%;
  background:#fff; border:none;
  margin-top:-5.5px; /* Thumb zentrieren */
  box-shadow:0 1px 2px rgba(0,0,0,.25);
}
.panel-1 .p1-seek::-moz-range-thumb,
.panel-1 .p1-vol::-moz-range-thumb{
  width:14px; height:14px; border-radius:50%;
  background:#fff; border:none;
  box-shadow:0 1px 2px rgba(0,0,0,.25);
}

/* Kompakter auf Minis */
@media (max-width:480px){
  .panel-1 .p1-time{ display:none; }   /* Platz sparen */
  .panel-1 .p1-vol{ width:70px; }
}
/* Panel 1 – iPhone-artige, einzeilige, schmale Controlbar */
.panel-1 .p1-controls{
  position:absolute; left:0; right:0; bottom:0;
  display:flex !important; align-items:center; gap:10px;
  padding:6px 10px !important;             /* schmaler */
  background:rgba(255,255,255,.18);
  backdrop-filter:blur(5px) saturate(110%) !important;
  -webkit-backdrop-filter:blur(5px) saturate(110%) !important;
  border:none !important; border-radius:0 !important; box-shadow:none !important;
  white-space:nowrap;                       /* einzeilig erzwingen */
}

/* Buttons: größere weiße Symbole, randlos */
.panel-1 .p1-btn{
  border:none !important; background:transparent !important;
  color:#fff !important; font:700 18px/1 system-ui,"Lato",sans-serif !important; /* Symbolgröße ↑ */
  padding:2px 6px !important; cursor:pointer; text-shadow:0 1px 2px rgba(0,0,0,.35);
}

/* Zeiten kompakt */
.panel-1 .p1-time{
  color:#fff !important; font:600 12px/1 system-ui,"Lato",sans-serif !important;
  text-shadow:0 1px 2px rgba(0,0,0,.35);
}

/* Seek in die Breite ziehen, Volume kompakt */
.panel-1 .p1-seek{ flex:1 1 auto; min-width:120px; }
.panel-1 .p1-vol { width:84px; }

/* iOS-schlanker Slider */
.panel-1 .p1-seek,
.panel-1 .p1-vol{
  -webkit-appearance:none; appearance:none; height:16px; background:transparent;
}
.panel-1 .p1-seek::-webkit-slider-runnable-track,
.panel-1 .p1-vol::-webkit-slider-runnable-track{
  height:2px; background:rgba(255,255,255,.85); border-radius:999px;
}
.panel-1 .p1-seek::-moz-range-track,
.panel-1 .p1-vol::-moz-range-track{
  height:2px; background:rgba(255,255,255,.85); border-radius:999px;
}
.panel-1 .p1-seek::-webkit-slider-thumb,
.panel-1 .p1-vol::-webkit-slider-thumb{
  -webkit-appearance:none; appearance:none;
  width:12px; height:12px; border-radius:50%; background:#fff; border:none;
  margin-top:-5px; box-shadow:0 1px 2px rgba(0,0,0,.25);
}
.panel-1 .p1-seek::-moz-range-thumb,
.panel-1 .p1-vol::-moz-range-thumb{
  width:12px; height:12px; border-radius:50%; background:#fff; border:none;
  box-shadow:0 1px 2px rgba(0,0,0,.25);
}

/* Mini-Phones: Dauer ausblenden, damit alles einzeilig bleibt */
@media (max-width:420px){
  .panel-1 .p1-duration{ display:none !important; }
  .panel-1 .p1-vol{ width:70px; }
}
/* Fix: Controlbar soll nie rechts abgeschnitten werden */
.panel-1 .p1-controls{
  box-sizing: border-box !important;
  left: 0; right: 0; width: 100% !important;
}

/* ≤380px: kompakter, einzeilig, nichts schneidet ab */
@media (max-width:380px){
  .panel-1 .p1-controls{
    gap: 6px !important;
    padding: 5px 6px !important;
  }
  /* größere Symbole bleiben, aber minimal kompakter */
  .panel-1 .p1-btn{
    font-size: 16px !important;
    padding: 2px 4px !important;
  }
  /* Platzfresser aus: Zeiten fliegen raus */
  .panel-1 .p1-current,
  .panel-1 .p1-duration{
    display: none !important;
  }
  /* Seek darf maximal schrumpfen, füllt den Rest */
  .panel-1 .p1-seek{
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }
  /* Volume schmal halten */
  .panel-1 .p1-vol{
    width: 56px !important;
  }
}

/* Ultra-klein ≤340px: noch etwas strenger */
@media (max-width:340px){
  .panel-1 .p1-btn{ font-size: 15px !important; }
  .panel-1 .p1-vol{ display: none !important; } /* nur Seek + Buttons */
  .panel-1 .p1-controls{ gap: 5px !important; }
}

/* Autohide: weiches Aus-/Einblenden der Controlbar */
.panel-1 .p1-controls{
  transition: opacity .25s ease, transform .25s ease;
}
.panel-1 .p1-controls.is-hidden{
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none; /* Klicks gehen dann nicht auf die Leiste */
}


/* === Blatt === */
.floating-leaf {
  position: fixed;
  bottom: -80px;
  left: -120px;
  width: 55px;           /* vorher 90px */
  height: auto;
  opacity: 0;
  z-index: 30;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.floating-leaf:hover {
  transform: scale(1.15) rotate(6deg);
}


/* === Ritual Pop-up === */
.ritual-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  z-index: 100;
  justify-content: center;
  align-items: center;
}

.popup-content {
  position: relative;
  background-image: url("../bilder/marmor.webp");
  background-size: cover;
  background-position: center;
  width: 70vw;
  max-width: 600px;
  height: 50vh;
  border-radius: 18px;
  box-shadow: 0 0 35px rgba(0,0,0,0.45);
  padding: 3rem;
  color: #fff;
  border: 4px solid rgba(209,182,98,0.75);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  animation: fadeIn 0.6s ease;

  /* neue Weichheit + Transparenz */
  background-blend-mode: lighten;
  background-color: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  color: #ffffff;
  text-shadow:
    0 0 10px rgba(209, 182, 98, 0.35),
    0 0 20px rgba(209, 182, 98, 0.25);
}

.popup-content h2 {
      font-size: 3rem;         /* war ca. 2.0 */
  margin-bottom: 1.2rem;
  letter-spacing: 0.6px;
  text-shadow:
    0 0 14px rgba(209, 182, 98, 0.55),
    0 0 28px rgba(209, 181, 98, 0.534);
}

.popup-content p {
  font-size: 1.25rem;        /* etwas größer für Lesbarkeit */
  line-height: 1.6;
  max-width: 640px;
  text-shadow:
    0 0 10px rgba(209, 181, 98, 0.61),
    0 0 20px rgba(209, 181, 98, 0.623);
}

.close-popup {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size:4rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: color 0.2s ease;
}
.close-popup:hover {
  color: #817010;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.whatsapp-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.9rem 2rem;
  border: 2px solid rgba(209, 182, 98, 0.85);
  border-radius: 30px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  background: rgba(209, 182, 98, 0.25);
  backdrop-filter: blur(3px);
}

.whatsapp-btn:hover {
  background: rgba(209, 182, 98, 0.9);
  box-shadow: 0 0 15px rgba(209, 182, 98, 0.6);
  transform: translateY(-2px);
}
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.whatsapp-btn .wa-icon {
  color: rgba(209, 182, 98, 0.9);
  transition: color 0.3s ease;
}

.whatsapp-btn:hover .wa-icon {
  color: #fff;
}



@media (max-width:1250px){

  /* 1) Globaler FS-Zustand: Alle möglichen „Bremsen“ entfernen */
  html.fs-video-open, html:has(:fullscreen){
    overflow: hidden !important;
  }
  html.fs-video-open body,
  html.fs-video-open .panel-1,
  html.fs-video-open .hero-box,
  html.fs-video-open .gold-box,
  :fullscreen body,
  :fullscreen .panel-1,
  :fullscreen .hero-box,
  :fullscreen .gold-box,
  :-webkit-full-screen body,
  :-webkit-full-screen .panel-1,
  :-webkit-full-screen .hero-box,
  :-webkit-full-screen .gold-box{
    transform: none !important;
    translate: 0 0 !important;
    scale: 1 !important;
    rotate: 0deg !important;
    filter: none !important;
    perspective: none !important;
    contain: none !important;
    max-width: none !important;
    max-height: none !important;
    overflow: visible !important;
  }

  /* 2) Container im Fullscreen: füllt Viewport randlos */
  .panel-1 .gold-box:fullscreen,
  :-webkit-full-screen .panel-1 .gold-box,
  html.fs-video-open .panel-1 .gold-box{
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: #000 !important;
    z-index: 2147483646 !important;
  }

  /* 3) Video im FS: komplett sichtbar (contain), kein Zuschnitt, keine Limits */
  .panel-1 .gold-box:fullscreen .intro-video,
  :-webkit-full-screen .panel-1 .gold-box .intro-video,
  html.fs-video-open .panel-1 .intro-video{
    position: absolute !important;
    left: 0 !important; top: 0 !important; right: 0 !important; bottom: 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    object-fit: contain !important;   /* => GANZES Video sichtbar */
    background: #000 !important;
    display: block !important;
    transform: none !important;
  }

  /* 4) Controls oben drüber, einzeilig, randlos */
  .panel-1 .gold-box:fullscreen .p1-controls,
  :-webkit-full-screen .panel-1 .gold-box .p1-controls,
  html.fs-video-open .panel-1 .p1-controls{
    position: fixed !important;
    left: max(8px, env(safe-area-inset-left)) !important;
    right: max(8px, env(safe-area-inset-right)) !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    z-index: 2147483647 !important;
    border: none !important;
    border-radius: 10px !important;
    background: rgba(0,0,0,.35) !important;
    backdrop-filter: blur(5px) saturate(110%) !important;
    -webkit-backdrop-filter: blur(5px) saturate(110%) !important;
    mix-blend-mode: normal !important;
  }

  /* 5) Ambilight im FS aus (optional, verhindert jede Wechselwirkung) */
  .panel-1 .gold-box:fullscreen ~ [data-ambilight],
  :-webkit-full-screen .panel-1 .gold-box ~ [data-ambilight],
  html.fs-video-open [data-ambilight]{
    display: none !important;
  }
}


/* Hauptbreakpoint: alles unter 900px = vertikal, lesbar, weich */
@media (max-width: 1250px) {
  /* Body darf endlich normal vertikal scrollen */
  html,
  body {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  /* Horizontal-Wrapper wird zum normalen, vertikal scrollenden Container */
  .horizontal-wrapper {
    display: block;
    height: auto;
    overflow-x: hidden;
    overflow-y: visible;
    scroll-snap-type: none;
    margin-top: 80px; /* Platz unter dem Header */
  }

  .panel {
    width: 100%;
    height: auto;
    min-height: 100vh;
    scroll-snap-align: none;
    padding: 4rem 1.5rem 5rem;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
  }

  /* ===== Panel 1 – Goldbox mit Video ===== */
  .panel-1 {
    padding-top: 2rem;
  }

  .hero-box {
    width: 90vw;
    max-width: 640px;
    aspect-ratio: 16 / 9;
    margin: 0 auto 3rem;
  }

  /* ===== Panel 2 – Illustration & Glasbox ===== */
  .panel-2 {
    padding-top: 2rem;
  }

  .content-wrapper {
    width: 90vw;
    max-width: 700px;
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .image-column {
    order: 1;
    text-align: center;
  }

  .image-column img {
    max-width: 420px;
    margin: 0 auto;
    transform: scale(1); /* etwas kleiner als Desktop */
  }

  .glass-column {
    order: 2;
    width: 100%;
  }

  .glass-box {
    padding: 2rem 1.6rem 2.4rem;
    text-align: center;
  }

  .glass-box h2 {
    font-size: 1.8rem;
    margin-left: 0;
  }

  .glass-box p {
    font-size: 1.05rem;
    margin-left: 0;
  }

  .btn-row {
    flex-direction: column;
    margin: 2.2rem auto 0.5rem;
    width: 100%;
  }

  .btn-gallery {
    width: 100%;
    justify-content: center;
  }

/* === Mini-Marlena Einbindung in Panel 2 === */
/* ============================
   MINI-MARLENA IM SALON (Panel 2)
   ============================ */

/* Eltern-Container MUSS relativen Kontext haben */
.image-column {
    position: relative !important;
    z-index: 0 !important;
    overflow: visible !important;
}

/* Salonbild – Ebene 1 */
.image-column img {
    position: relative !important;
    z-index: 1 !important;
    display: block;
}


/* Mini-Marlena – immer darüber */
#marlena {
    position: absolute !important;
    z-index: 99999 !important;      /* bleibt über dem Bild */
    pointer-events: none;           /* blockiert keine Klicks */

    width: 64px;
    height: 64px;

    background-image: url("bilder/pixel_marlena_full_atlas_64_transparent.webp");
    background-position: 0 0;
    image-rendering: pixelated;

    /* Startposition vor dem Tresen (prozentual, responsiv) */
    left: 52%;
    top: 63%;

    /* Figur vergrößern */
    transform-origin: 50% 100%;
    transform: scale(1.5);
}

.image-wrapper {
    transform: scale(1.1);
}

.image-wrapper img {
    transform: none !important;
}


/* Sicherstellen, dass kein Container Stacking-Contexts erzeugt */
.panel-2,
.panel-2 * {
    transform: none !important;
    isolation: auto !important;
    overflow: visible !important;
}
}

#marlena {
  position: absolute;
  width: 64px;
  height: 64px;

  background-image: url("../bilder/pixel_marlena_full_atlas_64_transparent.webp");
  background-position: 0 0;
  image-rendering: pixelated;

  /* Figur vergrößern */
  transform-origin: 50% 100%;
  transform: scale(1.0);

  /* Position → später Feintuning */
  left: 52%;
  top: 63%;

  z-index: 9999;
  pointer-events: none;
}


.panel-2 {
  position: relative;
}

.image-column {
  position: relative;
  z-index: 10; /* ÜBER der Glasbox */
}

.glass-column {
  position: relative;
  z-index: 1; /* UNTER der image-column */
}

.glass-box {
  position: relative;
  z-index: 1; /* UNTER Marlena und Bild  */
}

.marlena-hint {
  margin-top: 1rem;
  text-align: center;

  background: rgba(0, 0, 0, 0.5);
  color: white;

  padding: 8px 14px;
  border-radius: 10px;

  font-size: 0.95rem;
  letter-spacing: 0.2px;

  backdrop-filter: blur(4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);

  width: fit-content;
  margin-left: auto;
  margin-right: auto;

  animation: hintFade 2s ease-in-out;
}

@keyframes hintFade {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}


/* ===== Panel 2 – Titel über der Glasbox ===== */
@media (min-width: 1251px) {
  .panel-2 .panel-title {
    position: relative;
    display: block;
    width: 100%;
    text-align: center;
    font-family: "Pacifico", cursive;
    font-size: 2.6rem;
    font-weight: 400;
    color: #d1b662;
    text-shadow: 0 0 10px rgba(0,0,0,0.3);
    margin: 0 auto 2.5rem;
    z-index: 10;
    transform: translateY(-10px); /* optional: leicht nach oben rücken */
  }
}

@media (min-width: 1251px) {
  .panel-2 .panel-title {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-family: "Pacifico", cursive;
    font-size: 2.6rem;
    font-weight: 400;
    color: #ffffff; /* Schrift in Weiß */
    text-shadow:
      0 0 10px rgba(209,182,98,0.8),
      0 0 20px rgba(209,182,98,0.6),
      0 0 30px rgba(209,182,98,0.4);
    z-index: 100000;
    margin: 0;
    padding-top: 4rem;
    width: 100%;
  }

  .panel-2 {
    position: relative;
  }
}


.panel-1-slogan {
  position: relative;
  z-index: 20;
  text-align: center;
  font-size: 3rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  margin-top: -5rem;  /* fein anpassen, wenn nötig */
   text-shadow:
    0 0 10px rgba(209,182,98,0.8),
    0 0 20px rgba(209,182,98,0.6),
    0 0 30px rgba(209,182,98,0.4);
}

.panel-1 {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.panel-1-slogan {
  width: 100%;
  text-align: center;
  order: -1;              /* steht immer über der hero-box */
  margin-bottom: 2rem;
}
/* Sanfter Fade-in für den Slogan */
.panel-1-slogan {
  opacity: 0;
  animation: sloganFade 1.2s ease-out forwards;
}

@keyframes sloganFade {
  from {
    opacity: 0;
    text-shadow:
      0 0 0 rgba(209,182,98,0.0),
      0 0 0 rgba(209,182,98,0.0);
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    text-shadow:
      0 0 10px rgba(209,182,98,0.8),
      0 0 20px rgba(209,182,98,0.6),
      0 0 30px rgba(209,182,98,0.4);
    transform: translateY(0);
  }
}

/* MOBILE: "Weiter"-Button unter dem Video ausblenden */
@media (max-width: 1250px) {
  .continue-btn,
  .continue-button,
  .hero-continue,
  .scroll-next {
    display: none !important;
  }
}
/* MOBILE: Navigationspfeile ausblenden (keine horizontale Navigation nötig) */
@media (max-width: 1250px) {
  .nav-arrows,
  .nav-arrows button,
  .arrow,
  .arrow.left,
  .arrow.right {
    display: none !important;
  }
}

/* MOBILE: Panels dichter aneinander rücken */
@media (max-width: 1250px) {
  .panel {
    padding-top: 2rem !important;
    padding-bottom: 2.5rem !important;
  }

  /* speziell Panel-2: weniger Abstand nach oben */
  .panel-2 {
    margin-top: -1rem !important;
    padding-top: 1rem !important;
  }

  /* optional: Panel-3 leicht anschmiegen */
  .panel-3 {
    margin-top: -0.5rem !important;
  }
}

@media (min-width: 1251px) {
  .panel-3 {

    padding-top: -3rem !important;       /* schöner Abstand zum oberen Rand */
  }

  .gallery-heading {
    margin-bottom: -3rem !important;     /* Abstand nach unten zur Galerie */
  }
}


@media (min-width: 1251px) {
.panel-2 .glass-box {
  height: auto;
  max-height: 400px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.panel-2 .glass-box > * {
  flex-shrink: 0;
}



}


@media (min-width: 1251px) and (max-height:800px) {
.panel-2 .glass-box {
  transform: translateY(-30px);
  height: auto;
  max-height: 350px;
}
.panel-2 .panel-title {
    padding-top: 2rem !important;
  }
}

@media (min-width: 1251px) and (max-height:660px) {
.panel-2 .panel-title {
    padding-top: 0.5rem !important;
  }
}


.intro-video::-webkit-media-controls {
  display: none !important;
}


/* Weißes Speaker-Icon als Default, Muted bekommt einen Slash */
:root{
  --p1-icon-sound: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'>\
  <path d='M3 9v6h4l5 4V5L7 9H3z'/>\
  <path d='M14.5 8.5a4.5 4.5 0 0 1 0 7' stroke='white' stroke-width='2' fill='none' stroke-linecap='round'/>\
</svg>");
  --p1-icon-muted: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'>\
  <path d='M3 9v6h4l5 4V5L7 9H3z'/>\
  <path d='M16 8 L22 14 M22 8 L16 14' stroke='white' stroke-width='2' stroke-linecap='round' fill='none'/>\
</svg>");
}

/* Button: fixe Fläche, nur Icon (kein Text) */
.panel-1 .p1-btn.p1-mute{
  width: 32px; height: 32px;
  padding: 0 !important;
  position: relative;
  color: transparent !important;   /* falls da noch Text wäre */
}

/* Icon rendern */
.panel-1 .p1-btn.p1-mute::before{
  content: "";
  position: absolute; inset: 0;
  background: center / 22px 22px no-repeat var(--p1-icon-sound);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}

/* Muted-Zustand → anderes SVG */
.panel-1 .p1-btn.p1-mute.muted::before{
  background-image: var(--p1-icon-muted);
}

/* optional: auf Mini-Phones etwas kleiner */
@media (max-width:380px){
  .panel-1 .p1-btn.p1-mute::before{ background-size: 20px 20px; }
}


.panel-1,
.panel-2,
.panel-3 {
  min-height: 100vh;
  height: auto;
}


/* === Navigation-Pfeile Fix === */
.panel-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 12000;   /* höher als Header (9999) */
  pointer-events: auto;
}

.panel-nav.left {
  left: 20px;      /* Abstand links */
}

.panel-nav.right {
  right: 20px;     /* Abstand rechts */
}

.panel-nav button {
  background: rgba(209,182,98,0.9);
  border: none;
  color: #09221b;
  padding: 0.8rem 1rem;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
  transition: transform .25s ease, box-shadow .25s ease;
}

.panel-nav button:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}


/* HORIZONTAL SCROLL */
.horizontal-wrapper {
  display: flex;
  flex-wrap: nowrap;
  height: 100vh;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.panel {
  flex: 0 0 auto;
  width: 100vw;
  height: 100vh;
  scroll-snap-align: start; /* jede Sektion fängt exakt an */
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  padding-left: 120px;
}

@media (min-width: 1251px){
.panel {
  padding-left: 120px;
}

}



.panel-3 {
  display: flex;
  justify-content: center;
  align-items: center;

  min-height: 100vh;
  background: transparent;
  overflow: hidden;
}


@media (min-width: 380px) and (max-width: 600px) {
    .panel {
        margin-top: 60px !important;
    }}

@media (min-width: 601px) and (max-width: 1250px) {
    .panel {
        margin-top: 80px !important;
    }}

