@charset "UTF-8";
/* CSS Document */
/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
/* ========================
   REST PLUS 
=========================== */
img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}
button, button:focus {
  border: 0;
  outline: 0;
}
html {
  scroll-behavior: smooth;
}
/* ========================
   Layout 
=========================== */
#logo {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh; /* Fallback */
  height: 100svh; /* sichtbarer Viewport (Toolbar ausgenommen) */
  height: 100dvh; /* dynamisch, wenn Toolbar ein-/ausblendet */
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  background: transparent; /* wichtig: kein Weiß! */
  z-index: 10;
  pointer-events: none;
}
#logo p {
  position: absolute;
  margin: 0;
}
#logo p:first-of-type {
  top: 2vw;
  left: 2vw;
}
#logo p:last-of-type {
  bottom: 2vw;
  right: 2vw;
}
#hero {
  position: relative;
  width: 100%;
  height: 100vh; /* Fallback */
  height: 100svh; /* sichtbarer Viewport (Toolbar ausgenommen) */
  height: 100dvh; /* dynamisch, wenn Toolbar ein-/ausblendet */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}
#hero img {
  opacity: 1; /* Standard: sichtbar */
  transform: none;
  transition: opacity 900ms ease, transform 1200ms cubic-bezier(.2, .7, .2, 1);
  height: 50vh;
  width: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
}
#hero.intro img {
  opacity: 0;
  transform: scale(.985);
}
#hero h2 {
  position: absolute;
  z-index: 2;
  color: black;
  text-align: center;
}
#images.gallery {
  width: 100%;
  margin: 0;
  padding: 0;
}
#images .row {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}
#images figure {
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
#images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* ROW 1 */
#images .row-1 .big-75 {
  width: 75%;
  position: relative;
  z-index: 1;
}
#images .row-1 .sm-wrap-3-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 37.5%;
  display: flex;
  justify-content: flex-end;
  gap: 0;
  z-index: 2;
}
#images .row-1 .sm-wrap-3-right .small {
  width: calc(100% / 3);
  aspect-ratio: 3 / 4;
}
#images .row-1 .underlap-50-left {
  position: absolute;
  left: 0;
  bottom: -25%;
  width: 50%;
  z-index: 3;
}
/* ROW 2 */
#images .row-2 {
  position: relative;
  height: 66.67vw;
}
#images .row-2 .big-50-right {
  width: 50%;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
}
#images .row-2 .sm-wrap-2-left-indented {
  position: absolute;
  top: 0; /* unten anliegend */
  left: 0;
  width: 37.5%; /* 3 × 12.5 % = inkl. eines unsichtbaren Slots */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  z-index: 6;
}
/* Unsichtbarer linker Platzhalter (12.5% Breite) */
#images .row-2 .sm-wrap-2-left-indented .spacer {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: transparent;
}
/* Zwei sichtbare kleine Bilder */
#images .row-2 .sm-wrap-2-left-indented .small {
  aspect-ratio: 3 / 4;
  width: 100%;
}
#galerie-text {
  position: relative;
  width: 100%;
  height: 50vh;
  margin-top: -50vh;
  z-index: 9999;
}
#galerie-text .text-inner {
  padding: 2vw;
  max-width: 75%;
}
#dates {
    /*display: none;*/
}
#contact, #footer, #dates {
  margin-top: 25vh;
  padding: 2vw;
}

#footer {
    margin: 10rem 0 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

#footer img {
  height: 175px;
  width: auto;
  display: block;
}


/* ========================
   Typo 
=========================== */
html {
  font-size: 22px;
}
h1, h2, p, a {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 600;
  color: black;
}
a {
    text-decoration: underline;
}
a:hover {
    text-decoration: none;
}
h2 {
    margin-top: 3em;
    margin-bottom: 2em;
}
div > h2:first-of-type {
  margin-top: 0;
}
div > *:last-child {
  margin-bottom: 0;
}
h1, #hero h2, .L, .sc-content p.L {
  font-size: clamp(1.5rem, 8vw, 3rem);
}
.sc-content p, p, p.L {
    margin-bottom: 1em;
}
.sc-content p.L {
    margin:  0.5em 0 0.25em
}
.XL {
  font-size: clamp(3rem, 8vw, 6rem);
}
h1, h2, p, a {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#hero h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- Motion-Safety ---- */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in-view, .hover-lift {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
/* ---- Scroll Reveal (Bilder & Text) ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms cubic-bezier(.2, .7, .2, 1), transform 700ms cubic-bezier(.2, .7, .2, 1);
  will-change: transform, opacity;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in-view {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* ---- Hero Intro ---- */
#hero img {
  opacity: 0;
  transform: scale(.985);
  transition: opacity 900ms ease, transform 1200ms cubic-bezier(.2, .7, .2, 1);
}
#hero.is-ready img {
  opacity: 1;
  transform: none;
}

/* ---- Logo Fade-Out beim Scrollen ----- */
#logo {
  transition: opacity 0.3s ease-out; /* Sanfter Übergang */
}

#logo.fade-out {
  opacity: 0.1; /* 10% Sichtbarkeit am Ende */
}

/* ---- Kalender PopUp ---- */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0.4s;
}

.popup-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.popup-content {
  width: 95%;
  max-width: 800px;
  max-height: 90vh;
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(30px);
  transition:
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  overflow: hidden;
  position: relative;
}

.popup-overlay.is-visible .popup-content {
  transform: translateY(0);
  opacity: 1;
}

.popup-close {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 32px;
  color: white;
  cursor: pointer;
  z-index: 10000;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.2s;
  background: none; /* Kein Hintergrund */
  line-height: 1;
}

.popup-close:hover {
  color: #ccc;
}

.popup-content iframe {
  width: 100%;
  height: 70vh;
  min-height: 400px;
  border: none;
  border-radius: 8px;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .popup-content {
    width: 98%;
    padding: 15px;
    border-radius: 8px;
  }

  .popup-content iframe {
    height: 65vh;
    min-height: 350px;
  }

  .popup-close {
    top: 15px;
    right: 20px;
    font-size: 28px;
    width: 40px;
    height: 40px;
  }
}

/* Body Scroll sperren */
body.popup-open {
  overflow: hidden;
  padding-right: 15px; /* Verhindert horizontales Springen */
}

/* Focus-Stile für Barrierefreiheit */
.popup-close:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.3);
}

/* ========================
   Responsive
=========================== */
@media (max-width: 1000px) {
  #images .row-1 .sm-wrap-3-right, #images .row-2 .sm-wrap-2-left-indented {
    width: 75vw;
  }
  #galerie-text .text-inner {
    max-width: 100%;
  }
  #galerie-text {
    margin-top: 0vh;
    height: auto;
  }
  html {
    font-size: 14px;
  }
  #hero img {
    height: 33.33vh;
  }
  p, a {
    font-weight: 900;
  }
    #footer {
    flex-direction: column;
    align-items: flex-start;
}
    #footer img {
      height: 125px;
      width: auto;
      display: block;
    }
}

@media (max-width: 768px) {
  .popup-content {
    width: 95%;
    padding: 10px;
  }
  .popup-content iframe {
    height: 60vh; /* Mehr Höhe auf mobilen Geräten */
    min-height: 300px;
  }
}