* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::selection {
  background-color: rgb(0, 255, 34);
}

html {
  background-color: #ffffff;
  overflow-x: hidden;
}

#navigation,
#navigation_schwarz {
  height: 10vh;
  padding: 2% 5%;
}

#navigation {
  background-color: white;
}

#navigation_schwarz {
  background-color: rgb(0, 0, 0);
}

#navigation ul,
#navigation_schwarz ul {
  display: flex;
  justify-content: space-between;
  list-style-type: none;
  font-family: "Hedvig Letters Sans", sans-serif;
}

#navigation ul li a {
  text-decoration: none;
  color: rgb(0, 0, 0);
}

#navigation_schwarz ul li a {
  text-decoration: none;
  color: rgb(255, 255, 255);
}

#auswahl {
  display: flex;
  justify-content: flex-end;
  width: 40%;
  gap: 10%;
}

#sound {
  width: 3.4em;
  cursor: pointer;
}

main {
  height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

#videoBox {
  margin-top: 8%;
  width: 100vw;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2%;
}

#videoBox video {
  width: 100%;
}

#homepageTitel {
  text-align: center;
  font-size: 8vw;
  font-family: "Hedvig Letters Serif", serif;
  letter-spacing: 0.3em;
}

#einleitung {
  background-color: black;
  padding: 10% 5%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5%;
}

#einleitung hr {
  border: none;
  height: 1px;
  background-color: #ffffff;
  grid-column-start: 1;
  grid-column-end: 5;
}

#einleitung h1 {
  color: #ffffff;
  font-family: "Hedvig Letters Serif", serif;
  font-size: 2em;
  grid-column-start: 1;
  grid-column-end: 3;
}

#einleitung h3 {
  color: #ffffff;
  font-family: "Hedvig Letters Sans", sans-serif;
  font-size: 1em;
  grid-column-start: 3;
  grid-column-end: 5;
  padding-bottom: 5%;
}

#callToAction {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 10% 5%;
  gap: 5%;
}

#callToAction img {
  grid-column-start: 3;
  grid-column-end: 5;
  width: 100%;
  align-self: center;
}

#callToAction div {
  padding: 5%;
  grid-column-start: 1;
  grid-column-end: 3;
}

#callToActionText {
  font-family: "Hedvig Letters Sans", sans-serif;
  font-size: 1em;
}

#callToActionButton {
  background-color: black;
  margin-top: 5%;
  padding: 2% 7%;
  border-radius: 25px;
  font-family: "Hedvig Letters Serif", serif;
  font-size: 1em;
  text-decoration: none;
  color: white;
  cursor: pointer;
}

footer {
  background-color: black;
  padding: 1% 5%;
}

footer p {
  text-align: end;
  font-family: "Hedvig Letters Sans", sans-serif;
  font-size: 1em;
}

footer a {
  text-decoration: none;
  color: #ffffff;
  display: inline;
}

/* INTRO ANIMATION */
#intro {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#introBilder {
  position: relative;
  width: 50%;
  height: 50%;
}

#introBilder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
}

#schwarzesRechteck {
  position: absolute;
  width: 50%;
  height: 50%;
  background: #000;
  border-radius: 4px;
  opacity: 0;
  transform: scale(1);
  transform-origin: center center;
  transition: none;
}

/* GALERIE */

#galerieBody {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#titelGalerie {
  color: white;
  background-color: black;
  text-align: center;
  padding: 3%;
  font-family: "Hedvig Letters Serif", serif;
  font-size: 4vw;
  letter-spacing: 0.3em;
}

#galerie {
  background-color: black;
  flex-grow: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#iPodWrapper {
  position: relative;
  width: 60%;
  max-height: 90%;
}

#iPodMitButtons {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 0;
}

#iPodMitButtons p {
  color: white;
  font-family: "Hedvig Letters Sans", sans-serif;
  text-align: center;
  padding: 0 20%;
  font-size: 1em;
  flex-shrink: 1;
  min-height: 0;
}

#iPod {
  width: 100%;
}

#iPodTitel {
  color: rgb(0, 0, 0);
  z-index: 4;
  position: absolute;
  top: 28%;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  text-align: center;
  font-family: "Hedvig Letters Sans", sans-serif;
  font-size: clamp(0.5rem, 1vw, 0.9rem);
}

.button-container {
  position: absolute;
  width: 50%;
  left: 25%;
  bottom: 22%;
  z-index: 3;
  pointer-events: none;
  aspect-ratio: 3 / 4;
}

.vorher,
.nachher {
  cursor: pointer;
  position: absolute;
  top: 78%;
  width: 15%;
  aspect-ratio: 1 / 1;
  color: #d2d2d2;
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  font-weight: lighter;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
  z-index: 4;
}

.vorher {
  left: 20%;
}

.nachher {
  right: 20%;
}

.vorher:hover,
.nachher:hover {
  color: #000;
  transform: scale(1.2);
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

#albumAnzeige {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
}

.slideshow-container {
  width: 85%;
  max-height: 90%;
}

.slideShowBild {
  display: none;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.slideShowBild img {
  width: 100%;
  height: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.popUp {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.popUpNavigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  z-index: 20;
  transition: background 0.3s;
  border-radius: 0.3rem;
}

.popUpNavigation:hover {
  background: rgb(255, 255, 255);
  color: black;
}

.popUpNavigation--prev {
  left: 1rem;
}

.popUpNavigation--next {
  right: 1rem;
}

.popUp-content {
  position: relative;
  margin: 2% auto;
  width: 90%;
  max-width: 1200px;
  height: 90vh;
  background: #1a1a1a;
  border-radius: 1rem;
  overflow: hidden;
}

.close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: #fff;
  font-size: 3rem;
  font-weight: lighter;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s;
}

.close:hover {
  color: #aaa;
  transform: rotate(90deg);
}

.popUp-body {
  display: flex;
  height: 100%;
  padding: 3rem;
  gap: 3rem;
}

.popUp-poster {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popUp-poster img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5);
}

#popUpTitel {
  font-family: "Hedvig Letters Serif", serif;
}

#popUpText {
  font-family: "Hedvig Letters Sans", sans-serif;
}

.popUp-beschreibung {
  flex: 1;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

.popUp-beschreibung h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #ffffff;
  font-family: "Hedvig Letters Serif", serif;
}

.popUp-beschreibung p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #ddd;
}

/* Quellen */

#quellenBody {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#quelleSection {
  width: 100%;
  padding: 5%;
  flex: 1;
}

#bildQuellenAuflistung {
  margin-top: 5%;
}

#quellenTitel {
  color: #000;
  text-align: center;
  padding: 3%;
  font-family: "Hedvig Letters Serif", serif;
  font-size: 4vw;
  letter-spacing: 0.3em;
}

#quelleSection p {
  margin-bottom: 1%;
  font-size: 1em;
}

#quelleSection p,
#quelleSection h3 {
  font-family: "Hedvig Letters Sans", sans-serif;
}

#quelleSection h3 {
  font-size: 1.2em;
}

#quelleSection ul {
  text-decoration: none;
  list-style: none;
  column-count: 3;
}

#quelleSection ul a {
  text-decoration: none;
  font-family: "Hedvig Letters Sans", sans-serif;
  color: black;
}

#quelleSection ul a:hover {
  background-color: black;
  color: white;
}

#quelleSection li {
  padding: 0.2em;
}

#quellenFooter {
  overflow: hidden;
}

/* MEDIA QUERIES */

@media (max-width: 1200px) {
  #popUpText {
    font-size: 0.95em;
  }

  #popUpTitel {
    font-size: 2em;
  }
}

@media (max-width: 1000px) {
  #popUpTitel {
    font-size: 1.9em;
  }

  footer {
    padding: 2% 5%;
  }

  #quelleSection h3 {
    font-size: 1em;
  }
}

@media (max-width: 900px) {
  #videoBox {
    grid-template-columns: repeat(2, 1fr);
    width: 54%;
    margin: 0 auto;
    margin-top: 10%;
  }

  #titelGalerie {
    font-size: 5vw;
    padding: 5%;
  }

  #popUpTitel {
    font-size: 1.6em;
  }

  #popUpText {
    font-size: 0.8em;
  }

  #quellenTitel {
    font-size: 2.6em;
  }
}

@media (max-width: 800px) {
  #videoBox {
    gap: 2%;
    width: 65%;
  }

  #einleitung h1 {
    font-size: 1.8em;
  }

  #einleitung h3,
  #callToActionText,
  footer p,
  #iPodMitButtons p,
  #quelleSection p,
  #quelleSection ul a {
    font-size: 0.8em;
  }

  #callToActionButton {
    font-size: 0.8em;
  }

  #titelGalerie {
    font-size: 6vw;
    padding: 7%;
  }

  #popUpTitel {
    font-size: 1.5em;
    margin-bottom: 3%;
  }

  .popUp-body {
    gap: 0rem;
  }

  #quellenTitel {
    font-size: 2.4em;
  }
}

@media (max-width: 700px) {
  #videoBox {
    width: 75%;
  }

  .vorher,
  .nachher {
    font-size: clamp(0.8rem, 1.3vw, 1.2rem);
  }

  #popUpTitel {
    font-size: 1.3em;
  }

  #quelleSection h3 {
    font-size: 0.9em;
  }
}

@media (max-width: 650px) {
  #galerie {
    flex-direction: column;
    justify-content: center;
  }

  #iPodMitButtons {
    width: 100%;
    flex: 1;
    min-height: 0;
  }

  .button-container {
    bottom: 18%;
  }

  #iPodWrapper {
    width: 40%;
    max-height: 100%;
  }

  #iPodMitButtons p {
    font-size: 0.65em;
    padding: 2% 10%;
  }

  #quelleSection p,
  #quelleSection ul a {
    font-size: 0.65em;
  }

  #albumAnzeige {
    flex: 1;
    min-height: 0;
    width: 100%;
  }

  .slideshow-container {
    width: 60%;
    max-height: 100%;
  }

  .slideShowBild img {
    max-height: 35vh;
  }

  .popUp-body {
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.5rem;
  }

  .popUp-content {
    margin: 6% auto;
  }

  .popUp-poster {
    width: 50%;
    margin: 0 auto;
  }

  #popUpTitel {
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 1%;
  }

  #popUpText {
    font-size: 0.75em;
  }

  .popUp-beschreibung h2 {
    margin-bottom: 0.4rem;
  }

  .popUp-beschreibung {
    padding: 0rem;
  }

  .popUp-beschreibung p {
    font-size: 0.8rem;
  }
}

@media (max-width: 630px) {
  .button-container {
    bottom: 21%;
  }
}

@media (max-width: 600px) {
  #videoBox {
    width: 85%;
  }

  #einleitung h1 {
    font-size: 1.6em;
  }

  #einleitung h3,
  #callToActionText,
  footer p,
  #iPodMitButtons p,
  #quelleSection p,
  #quelleSection ul a {
    font-size: 0.7em;
  }

  #callToActionButton {
    font-size: 0.7em;
  }

  #quellenTitel {
    font-size: 2.2em;
  }

  #quelleSection ul {
    column-count: 2;
  }
}

@media (max-width: 530px) {
  #iPodTitel {
    top: 15%;
    font-size: 0.42em;
  }

  .button-container {
    bottom: 24%;
  }
}

@media (max-width: 500px) {
  #videoBox {
    width: 90%;
  }

  #einleitung h1 {
    font-size: 1.2em;
  }

  #callToAction {
    display: flex;
    flex-direction: column-reverse;
  }

  #callToAction img {
    padding: 0;
  }

  #callToAction div {
    padding: 0%;
    text-align: left;
  }

  #titelGalerie {
    padding: 10%;
  }

  .popUp-poster {
    width: 60%;
  }

  #popUpTitel {
    font-size: 1.4em;
  }

  #popUpText {
    font-size: 0.7em;
  }

  #quelleSection h3 {
    font-size: 0.9em;
  }

  #quellenTitel {
    font-size: 2em;
  }
}

@media (max-width: 400px) {
  #videoBox {
    width: 34%;
    margin-bottom: 10%;
    grid-template-columns: repeat(1, 1fr);
  }

  #einleitung h1 {
    font-size: 1em;
  }

  #callToActionButton {
    padding: 5% 8%;
  }

  #titelGalerie {
    padding-top: 12% 0 0 0;
  }

  .popUp-poster {
    width: 70%;
  }

  #popUpTitel {
    font-size: 1.2em;
  }

  #popUpText {
    font-size: 0.65em;
  }

  #quelleSection h3 {
    font-size: 0.8em;
  }

  #quellenTitel {
    font-size: 1.6em;
  }

  #quelleSection ul {
    column-count: 1;
  }
}
