
/* Referenziert: dein aktuelles galerie HTML/CSS/JS */

/* Section */
#galerie{
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px);
  font-family: "Lato", sans-serif;
}

#galerie > a {
  color: white;
}

#galerie h2{
 
  margin: 30px 0 30px 0;
  line-height: 1.05;
  font-family: "Pacifico", cursive;
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: 0.2px;
  color: rgb(255, 255, 255);
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.99), 0 0 10px rgba(209, 182, 98, 0.99), 0 0 15px rgba(209, 182, 98, 0.88), 0 0 20px rgba(209, 182, 98, 0.77) !important;

}

#galerie p{
  margin-bottom: 20px;
  font-family: "Lato", sans-serif;
  text-shadow: 
   0 0 10px rgba(100, 73, 0, 0.3), 
   0 0 5px rgba(54, 40, 0, 0.2), 
   0 0 5px rgba(54, 40, 0, 0.1) !important;

  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.6;
  max-width: 90vw;
  color: rgb(255, 255, 255);
}

/* Widget Container (Glas) */
.galerie-widget{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 24px;
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  padding: clamp(10px, 1.2vw, 14px);
  margin: 0 0 16px 0;
  overflow: hidden; /* für runde Ecken beim iframe */
}

/* Iframe */
.snapwidget-widget{
  display: block;
  width: 100%;
  border: 0;
  border-radius: 18px;
}

/* Button */
.insta-button{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: rgba(209, 182, 98, 0.85);
    color: rgb(255, 255, 255);
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1;
    cursor: pointer;
    font-weight: 500;
    transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;}

.insta-button:hover{
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-1px);
}

.insta-button:focus-visible{
  outline: 2px solid rgba(255,255,255,0.55);
  outline-offset: 3px;
}

/* Desktop: Abstand zum linken vertikalen Header (falls nötig, wie bei L’ANZA) */
@media (min-width: 1251px){
  #galerie{
    width: calc(100vw - 250px);
    max-width: calc(100vw - 400px);
    margin-left: 250px;
    margin-right: 0;
  }
}

/* Referenziert: dein aktuelles galerie HTML/CSS/JS */

/* Überschrift + Button nebeneinander (ohne HTML umzubauen) */
#galerie{
  position: relative;
}


@media (min-width: 1251px){
#galerie h2{
  padding-right: 220px; /* Platz für den Button rechts (Wert bei Bedarf) */
}}

#galerie .insta-button{
  position: absolute;
  top: 70px;  /* entspricht Section-Padding oben */
  right: clamp(18px, 3vw, 34px);/* entspricht Section-Padding rechts */
  margin: 0;
}

/* Referenziert: dein aktuelles galerie HTML/CSS/JS */

/* SnapWidget-iframe: Höhe responsiv (überschreibt die inline height:600px) */
.snapwidget-widget{
  height: clamp(420px, 70vh, 640px) !important;
}

/* Optional: auf sehr kleinen Screens etwas niedriger */
@media (max-width: 480px){
  .snapwidget-widget{
    height: clamp(360px, 65vh, 520px) !important;
  }
}

/* Referenziert: dein aktuelles galerie HTML/CSS/JS */

/* Widget-Breite responsiv: nicht immer 100%, sondern mit Max-Width + zentriert */
.galerie-widget{
  width: min(100%, 980px);
  margin-left: auto;
  margin-right: auto;
}

/* Desktop mit linkem Header-Offset: Widget darf die verfügbare Breite nutzen */
@media (min-width: 1251px){
  .galerie-widget{
    width: min(100%, 980px);
  }
}


/* Referenziert: dein aktuelles galerie HTML/CSS/JS */

/* Mobile: Abstand nach oben wegen mobilem Header */
@media (max-width: 1250px){
  #galerie{
    padding-top: calc(clamp(18px, 3vw, 34px) + 120px); /* 80px = Headerhöhe (bei Bedarf anpassen) */
  }
}


/* Referenziert: dein aktuelles galerie HTML/CSS/JS */

/* Mobile: nichts darf durch Padding/Width über den rechten Rand hinausragen */
@media (max-width: 1250px){
  #galerie,
  .galerie-widget,
  .snapwidget-widget{
    box-sizing: border-box;
    max-width: 100%;
  }

  .galerie-widget{
    width: 100%;
  }

  .snapwidget-widget{
    width: 100% !important; /* überschreibt ggf. SnapWidget/Inline */
    display: block;
  }
}

@media (max-width: 1250px){
#galerie h2{
    padding-right: 20px; /* Platz für den Button rechts (Wert bei Bedarf) */
}

#galerie .insta-button{
  position: absolute;
  top: 172px;  /* entspricht Section-Padding oben */
  right: clamp(18px, 3vw, 34px);/* entspricht Section-Padding rechts */
  margin: 0;
  scale: 0.85;
}

}

/* Referenziert: dein aktuelles galerie HTML/CSS/JS */

/* SnapWidget: keine fixe Höhe → über Aspect-Ratio skalieren (damit unten kein leerer Glasbereich bleibt) */
.snapwidget-widget{
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3;          /* wenn noch zu hoch: z.B. 16/9 | wenn zu niedrig: z.B. 1/1 */
  max-height: 520px;            /* optional, verhindert riesige Höhen */
}


/* Referenziert: dein aktuelles galerie HTML/CSS/JS */

/* Wenn das Widget höher ist als der Glas-Container: vertikal scrollen */
.galerie-widget{
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Iframe soll nicht abgeschnitten werden */
.snapwidget-widget{
  display: block;
}


/* Referenziert: dein aktuelles galerie HTML/CSS/JS */

/* Desktop: unten mehr Platz, damit nichts abgeschnitten wird (z.B. bei fixed/footer/Chrome UI) */
@media (min-width: 1251px){
  main#main{
    padding-bottom: clamp(80px, 8vh, 120px);
  }
}

/* Referenziert: dein aktuelles galerie HTML/CSS/JS */

@media (max-width: 440px){
  /* Button nicht mehr absolut neben der Überschrift */
  #galerie .insta-button{
    position: static;
    display: inline-flex;
    margin-top: 10px;
  }

  /* Kein rechter Platzhalter nötig */
  #galerie h2{
    padding-right: 0;
  }
}

#galerie > p > a {
  color: rgba(209, 182, 98, 1) !important;
  text-shadow: 
   0 0 10px rgba(100, 73, 0, 0.5), 
   0 0 5px rgba(54, 40, 0, 0.4), 
   0 0 5px rgba(54, 40, 0, 0.3) !important;

}

/* Referenziert: dein aktuelles galerie HTML/CSS/JS */

/* Link-Farben im Galerie-Text (normal + visited) */
#galerie p a,
#galerie p a:visited{
  color: rgba(255, 255, 255, 0.95);            /* Ruby’s Tannengrün */
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Optional: Hover */
#galerie p a:hover{
  opacity: 0.85;
}


/* Referenziert: dein aktuelles galerie HTML/CSS/JS */
/* Regeln: keine Experimente • nur exakt auf Anweisung • keine ungefragten Fixes/Änderungen */

/* gleiche Optik wie dein extMapsGate – nur für Insta-Gate */
#extInstaGate {
  margin: 0 auto;
  display: flex;
  padding: clamp(14px, 2.2vw, 22px);
  border-radius: 18px;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: rgba(10, 10, 12, 0.40);
  -webkit-backdrop-filter: blur(5px) saturate(110%);
  backdrop-filter: blur(5px) saturate(110%);
  border: 1px solid rgba(209, 182, 98, 0.85);
  box-sizing: border-box;
  text-align: center;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

#extInstaGate p {
  margin: 0 0 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 1);
}

#extInstaGate button {
  appearance: none;
  border: 1px solid rgba(209, 182, 98, 0.85);
  background: rgba(209, 182, 98, 0.9);
  color: rgba(255, 255, 255, 1);
  padding: 10px 14px;
  border-radius: 12px;
  font: inherit;
  cursor: pointer;
}

#extInstaGate label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 1);
}

#extInstaGate input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: rgba(209, 182, 98, 0.85);
}

#extInstaGate a {
  color: rgba(209, 182, 98, 0.95) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
