:root {
  --primary-background: #f2f2f2;
  --secondary-background: #CECDC7;
  --tertiary-background: #CFC3B2;
  --font-colour: #444444;
}

@font-face {
  font-family: "NewYork";
  src: url(/Fonts/NewYork/newyork_personal_use-webfont.woff);
}
@font-face {
  font-family: "Cormorant";
  src: url(/Fonts/Cormorant/cormorant-italic-variablefont_wght-webfont.woff);
}

body {
  margin: 0;
  background: var(--primary-background);
  font-family: 'cormorant';
  font-size: 1em;
}

p {
  font-size: 1.5em;
}

h1 {
  font-family: 'newyork';
  font-size: 3em;
}

h2 {
  font-family: 'newyork';
  font-size: 2.5em;
}

h3 {
  font-family: 'newyork';
  font-size: 2em;
}

.section-header{
  text-align: center;
  margin-top: 5%;
  margin-bottom: 5%;
}

.logo {
  width: 10em;
  display: block;
  margin: 2em auto;
}

nav {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 100px;
  margin-bottom: 2em;
}

/*nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}*/

.hover-underline-animation {
  display: inline-block;
  position: relative;
  color: var(--font-colour);
}

.hover-underline-animation::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--font-colour);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.hover-underline-animation:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Style the navigation menu */
.topnav {
  overflow: hidden;
  background-color: #333;
  position: relative;
}

/* Hide the links inside the navigation menu (except for logo/home) */
.topnav #myLinks {
  display: none;
}

/* Style navigation menu links */
.topnav a {
  color: white;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  display: block;
}

/* Style the hamburger menu */
.topnav a.icon {
  background: black;
  display: block;
  position: absolute;
  right: 0;
  top: 0;
}

/* Add a grey background color on mouse-over */
.topnav a:hover {
  background-color: #ddd;
  color: black;
}

/* Style the active link (or home/logo) */
.active {
  background-color: #04AA6D;
  color: white;
}

.menu a {
  font-family: 'newyork';
  text-decoration: none;
  list-style: none;
  font-size: 1.5em;
  color: var(--font-colour);
  margin: 0 2em;
}

.hero {
  margin: 1em;
}

.header-image {
  max-width: 80%;
  margin: 0 auto;
  display: block;
  align-items: center;
  justify-content: center;
}

.hero-image {    
  position: relative;
  background-size: cover;
  width: 70%;
  display: block;
  -o-object-fit: cover;
  object-fit: cover;
  margin: 0 auto;
}

.hero-spruch {
  font-size: 4em;
  position: absolute;
  top: 60%;
  left: 10%;
  /*transform: translate(-50%, -50%);*/
}

/*.intro-video {
  display: flex;
  align-items: center;
  margin: 5em auto;
  position: absolute;
  overflow: hidden;
  text-align: center;
}

.intro-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 720px;
  height: 576px;
  display: inline-block;
}*/

.intro-video {
  position: relative;
  overflow: hidden;
  max-width: 1080px;
  height: 864px;
  margin: 3em auto;
}

.intro-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}



/*.welcome-container {
  display: flex;
  align-items: center;
  width: 70%;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
}*/

.welcome-text {
  display: block;
  margin: 2em auto;
  width: 45%;
  text-align: center;
  padding: 2em;
}

.welcome-text h1 {
margin-top: 0.5em;
}

.welcome-text p {
  padding: 1.5em 0;
}

.welcome-image {
  width: 40%;
  padding: 2em;
}

.countdown {
  display: flex;
  align-items: center;
  margin: 2em auto;
  background: var(--tertiary-background);
  font: white;
  width: 80%;
  text-align: center;
}

.countdown {
  font-style: white;
}

.gallery-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  align-items: center;
  margin-top: 5em;
  margin-bottom: 5em;
}

.gallery-container a {
  max-width: 20%;
  max-height: 20%;
  object-fit: cover;
}

.gallery-container a img {
max-width: 100%;
max-height: 100%;
}

.hardfacts-container {
  display: flex;
  align-items: flex-start;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  gap: 8em;
  flex-wrap: wrap;
  margin-bottom: 5em;
  margin-top: 5em;
}

.hardfacts {
  text-align: center;
}

.hardfacts h3 {
  margin-bottom: 1em;
}

.programm-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5em;
  padding: 1em;
  flex-wrap: wrap;
}

.programm {
  text-align: center;
  background: var(--tertiary-background);
  padding-top: 0.5em;
  margin-top: 0.5em;
  margin-left: 10%;
  margin-right: 10%;
}

.programm .section header {
  margin: 0;
  padding: 0;
}

.programm-image {
  width: 40%;
}

.programm-text {
  width: 35%;

  
}

.programm-text h3 {
  padding-top: 1.5em;
}

.ics-programm {
  border-width: 0.2;
  border-color: var(--font-colour);
  text-decoration: none;
  padding: 0.5em 0.7em;
  font-size: 1em;
  border-radius: 0em;
  font-weight: regular;
  display: inline-block;
  margin: 3em 0 3em 0;
  cursor: pointer;
  background: none;
  -o-border-image: fill;
  border-image: fill;
  border-style: solid;
  font-family: "NewYork";
  color: #444444;
}

.faq {
  display: flex;
  align-items: center;
  width: 80%;
  margin: 2em auto 5em auto;    
}

.faq h4 {
  font-family: 'newyork';
  font-size: 1.5em;
}

/* Style the buttons that are used to open and close the accordion panel
.accordion {
  cursor: pointer;
  padding: 18px;
  text-align: center;
  border-style: none;
  border-bottom: var(--font-colour);
  outline-style: none;
  transition: 0.4s;
  margin: auto;
  width: 100%;
}

// Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) //
.active, .accordion:hover {
  background-color: var(--secondary-background);
}

/* Style the accordion panel. Note: hidden by default //
.panel {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

.accordion:after {
  content: '\02795'; /* Unicode character for "plus" sign (+) //
  font-size: 13px;
  float: right;
  margin-left: 5px;
}

.active:after {
  content: "\2796"; /* Unicode character for "minus" sign (-) //
} */

.transition, p, ul li i:before, ul li i:after {
  transition: all 0.3s;
}

#faq .no-select, #faq h3 {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

#faq p i:before {
  padding: 0em;
}

#faq p i:after {
  padding: 1em;
}

#faq ul {
  list-style: none;
  perspective: 900;
  padding: 0;
  margin: 0;
}
#faq ul li {
  position: relative;
  overflow: hidden;
  padding-right: 0;
  margin: 0;
  padding-bottom: 1em;
  padding-top: 1em;
  -webkit-tap-highlight-color: transparent;
  /*border-bottom: 0.1em solid var(--font-colour);*/
  border-top: 0.1em solid var(--font-colour);
  text-align: center;
}

#faq ul li + li {
  margin-top: 0em;
}
#faq ul li:last-of-type {
  padding-bottom: 1em;
  border-bottom: 0.1em solid var(--font-colour);
}
#faq ul li i {
  position: absolute;
  transform: translate(-6px, 0);
  margin-top: 10px;
  right: 15px;
}
#faq ul li i:before, ul li i:after {
  content: "";
  position: absolute;
  background-color: var(--font-colour);
  width: 3px;
  height: 9px;
}
#faq ul li i:before {
  transform: translate(-2px, 0) rotate(45deg);
}
#faq ul li i:after {
  transform: translate(2px, 0) rotate(-45deg);
}
#faq ul li input[type=checkbox] {
  position: absolute;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  touch-action: manipulation;
}
#faq ul li input[type=checkbox]:checked ~ h2 {
  color: #000;
}
#faq ul li input[type=checkbox]:checked ~ p {
  margin-top: 0em;
  max-height: 0;
  transition: .1s;
  opacity: 0;
  /*transform: translate(0, 50%);*/
}
#faq ul li input[type=checkbox]:checked ~ i:before {
  transform: translate(2px, 0) rotate(45deg);
}
#faq ul li input[type=checkbox]:checked ~ i:after {
  transform: translate(-2px, 0) rotate(-45deg);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@media only screen and (max-width: 600px) {
  body {
      font-size: 14px;
      flex-direction: column;
  }

  .logo {
      width: 8em;
  }

  .header-image {
    max-width: 100%;
    margin: 0 auto;
      display: block;
      align-items: center;
      justify-content: center;
  }

  .menu a {
      font-size: 1em;
  }

  .hero-spruch {
      font-size: 2.5em;
  }

  .welcome-text {
    width: 80%;
  }

  .gallery-container img {
      max-width: 40%;
      max-height: 40%;
  }

  .hardfacts-container {
      gap: 2em;
  }

  .hardfacts-datum {
    width: 90%;
  }

  .hardfacts-trauung {
    width: 90%;
  }

  .hardfacts-essen {
    width: 90%;
  }

  .programm-container {
      gap: 0em;
      margin-left: auto;
      margin-right: auto;
      text-align: center;
      width: 90%;
  }

  .programm-image {
    width: 100%;
  }

  .programm-text {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
  }

  .programm-text h3 {
    padding-top: 0.8em;
}

  .ics-programm {
      font-size: 0.8em;
  }

  .faq h4 {
      font-size: 1em;
  }

  .intro-video {
      height: 300px; /* Adjust as needed */
  }

  .intro-video iframe {
      width: 100%;
      height: 100%;
  }

  #faq ul li i {
    position: absolute;
    transform: translate(-6px, 0);
    margin-top: 5px;
    right: 15px;
  }

  #faq ul li {
    padding-right: 30px;
  }

.links, .rechts {
    width: 100%;
    height: 50%;
}

.foto-zone a {
    font-size: 2em;
}
}

.foto-zone {
  display: flex;
  font-family: "NewYork";
  color: yellow;
  height: 100vh;
  padding-left: 10%;
  padding-right: 10%;
  padding-top: 5%;
  padding-bottom: 5%;

.links, .rechts {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: black;
  box-shadow: inset 100px 800px rgba(0, 0, 0, 0.1);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transition-duration: 0.5s; /* Erhöhte Animationsgeschwindigkeit */
}

.links {
  width: 100%;
  height: 100%;
  background-image: url(/Foto-Seite/Fotoseite-2.jpg);
}

.rechts {
    width: 100%;
    height: 100%;
    background-image: url(/Foto-Seite/Fotoseite-3.jpg);
}

.links:hover,.rechts:hover {
    box-shadow: inset 1000px 4000px rgba(0, 0, 0, 0.3);
}



.hover-underline-animation {
    display: inline-block;
    position: relative;
    color: yellow;
}
  
.hover-underline-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 4px;
    bottom: 0;
    left: 0;
    background-color: yellow;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}
  
.hover-underline-animation:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}


}

.foto-zone a {
font-weight: bold;
font-size: 3.5em;
text-decoration: none;
color: yellow;
}

@media only screen and (max-width: 600px) {
  .foto-zone {
      display: flex;
      flex-direction: column;
      
  }

  .links,
  .rechts {
      width: 100dvw; /* Zurücksetzen der Breite auf 100% */
      height: 100dvh; /* Zurücksetzen der Höhe auf automatisch */
  }

  .foto-zone a {
    font-size: 2em;
  }
}