* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  width: 100%;
  height: auto;
  padding: 2px;
}

html {
  font: 100%/1.5 "Lato", Verdana, Sans-Serif;
  color: white;
}

body {
  background-color: #232323;
}

a {
  color: inherit;
}

h1 {
  font-weight: 100;
  font-size: 120%;
  background-color: #232323;
  color: white;
  padding: 1em;
  text-align: center;
  margin-left: 1em;
  margin-right: 1em;
}

main {
  width: 80%;
  max-width: 960px;

  margin: 1.5em auto;
  top: 80px;
}

p {
  font-weight: 100;
  margin-bottom: 1.5em;
  margin-left: 1.5em;
  margin-right: 1.5em;
  text-align: center;
}

.metacontainer {
  margin-top: 80px;
  width: 100%;
}

@media screen and (max-width: 450px) {
  main {
    max-width: 450px;
    margin: 1.5em auto;
    top: 80px;
  }
}

/* Zitat
===========================================*/

/*.zitat h1 {
    font-weight: 100;
    font-size: 120%;
    background-color: #232323;
    color: white;
    margin-top: 80px;
    margin-bottom: 10px;
    padding: 0em;
    text-align: center;
    width: 100%;
}*/

/* Burger menu icon
===========================================*/

.&times {
  font-weight: 100;
  font-size: 150%;
  background-color: white;
  color: white;
  padding: 0.5em;
  text-align: right;
  float: right;
  transition: 0.3s;
}

/* Curtain Menu
===========================================*/

.overlay {
  height: 0%;
  width: 100%;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.9);
  overflow-y: hidden;
  transition: 0.5s;
  z-index: 3;
}

.overlay-content {
  position: relative;
  top: 25%;
  width: 100%;
  text-align: center;
  margin-top: 30px;
}

.overlay a {
  padding: 8px;
  text-decoration: none;
  font-size: 36px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.overlay a:hover,
.overlay a:focus {
  color: #f1f1f1;
}

.overlay .closebtn {
  position: absolute;
  top: 20px;
  right: 45px;
  font-size: 60px;
}

@media screen and (max-height: 450px) {
  .overlay {
    overflow-y: auto;
  }
  .overlay a {
    font-size: 20px;
  }
  .overlay .closebtn {
    font-size: 40px;
    top: 15px;
    right: 35px;
  }
}

/* Header
===========================================*/

.header {
  overflow: hidden;
  background-color: #232323de;
  padding: 1px;
  top: 0;
  position: fixed;
  width: 100%;
  z-index: 2;
}

/* header links */
.header a {
  float: left;
  color: white;
  text-align: center;
  padding: 12px;
  text-decoration: none;
  font-size: 18px;
  line-height: 25px;
}

/* Style the logo link */
.header a.logo {
  font-size: 25px;
  font-weight: bold;
}

/* Change the background color on mouse-over */
.header a:hover {
  background-color: #1a1a1a;
  color: white;
}

/* Style the active/current link*/
.header a.active {
  background-color: #000;
  color: white;
}

/* Float the link section to the right */
.header-right {
  float: right;
}

/* Add media queries for responsiveness - when the screen is 500px wide or less, stack the links on top of each other */
@media screen and (max-width: 450px) {
  .header a {
    float: left;
    display: table;
    text-align: left;
  }
  .header-right {
    float: right;
    text-align: right;
  }
}

/* Galerie
===========================================*/

.galerie {
  /* das entscheidende */
  display: grid;

  /* Dreispaltiges Layout, jeweils ein Drittel */
  grid-template-columns: 1fr 1fr 1fr;

  /* Abstand zwischen den Raster-Elementen */
  grid-gap: 15px;
}

/* die Bilder sollen 100% der Rasterzelle einnehmen */
.galerie img {
  width: 100%;
  height: auto;
}

/*.galerie {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-gap: 2%;
}======================================*/

.galerie figure {
  /* das Eltern-Element hier definieren! */
  position: relative;
  width: 100%;

  /* sonst sieht man den Text unterhalb des Bildes */
  overflow: hidden;
}

.galerie figcaption {
  text-align: center;
  width: 100%;
  position: absolute;

  /* nÃ¤chste Zeile schiebt figcaption nach unten, auÃŸerhalb des sichtbaren Bereiches */
  top: 400px;
  left: 0;

  /* damit deckt figcaption das gesammte Bild ab */
  bottom: 0;

  background-color: rgba(0, 0, 0, 0.7);

  /* ohne Transition gibt es einen harten Ãœbergang, 0.4s ist die Dauer des Ãœbergangs */
  transition: top 0.4s ease-in-out;
}

.galerie figure:hover figcaption {
  /* bei Hover wird figcaption Ã¼ber das Bild â€žgeschobenâ€œ */
  top: 0;
}

.galerie figcaption p {
  padding: 0 4%;
  margin-top: 25%;
}

@media screen and (max-width: 450px) {
  .galerie {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 2%;
    background-size: contain;
    width: 100%;
  }

  .galerie figure {
    /* das Eltern-Element hier definieren! */
    padding: 0.5em;
  }

  .galerie figcaption {
    text-align: center;
    width: 100%;
    position: absolute;
    font-size: 25px;

    /* nÃ¤chste Zeile schiebt figcaption nach unten, auÃŸerhalb des sichtbaren Bereiches */
    margin-top: 0px;
    left: 0;

    /* damit deckt figcaption das gesammte Bild ab */
    bottom: 0;
  }
  .galerie figcaption p {
    padding: 5%;
    margin-top: 0%;
  }
}

/* Footer
===========================================*/

.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 5%;
  background-color: #232323;
  color: #858585;
  text-align: center;
  z-index: 1;
}

/* Diashow
===========================================
.diashow img {
  border-radius: 50%;
  margin-top: 1.5em auto;
  max-width: 50%;
}

.diashow {
  margin-top: 80px;
  position: absolute;
  z-index: 1;
}

.diashow figure {
  text-align: center;
  width: 100%;
  position: absolute;
}

.diashow figcaption {
  z-index: 4;
  float: bottom;
  padding: 0 4%;
}

.diashow:last-of-type {
  position: relative;
}

.diashow figure {
  animation-name: wechseln;
  animation-duration: 15s;
  animation-iteration-count: infinite;
}

@keyframes wechseln {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  40% {
    opacity: 1;
  }
  60% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.diashow figure:nth-of-type(2) {
  animation-delay: 5s;
  opacity: 0;
}

.diashow figure:nth-of-type(3) {
  animation-delay: 10s;
  opacity: 0;
}

.diashow figure:nth-of-type(4) {
  animation-delay: 15s;
  opacity: 0;
}

.diashow figure:nth-of-type(5) {
  animation-delay: 20s;
  opacity: 0;
}

.diashow figure:nth-of-type(6) {
  animation-delay: 25s;
  opacity: 0;
}

.diashow figure:nth-of-type(7) {
  animation-delay: 30s;
  opacity: 0;
}

.diashow figure:nth-of-type(8) {
  animation-delay: 35s;
  opacity: 0;
}

@media screen and (max-width: 450px) {
  .diashow {
    background-size: contain;
  }
} */
/* Projekte
===========================================*/

.project h1 {
  font-weight: 100;
  font-size: 120%;
  background-color: #232323;
  color: white;
  padding: 1em;
  text-align: left;
}

.project p {
  font-weight: 100;
  margin-bottom: 1em;
  padding: 1em;
  text-align: left;
}

.projectgallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 2%;
}

/* Slideshow 
===========================================*/
.mySlides1,
.mySlides2,
.mySlides3,
.mySlides4 {
  display: none;
}
img {
  vertical-align: middle;
}

/* Slideshow container */
.slideshow-container {
  max-width: 500px;
  position: relative;
  margin: auto;
}

.swiper-container {
  width: 100%;
  position: relative;
  margin: 0 auto;
}

.swiper-container .prev,
.swiper-container .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  z-index: 10;
}

.swiper-container .prev:hover,
.swiper-container .next:hover {
  background-color: #f1f1f1;
  color: black;
}

/* Position the "next button" to the right */
.swiper-container .next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a grey background color */
.prev:hover,
.next:hover {
  background-color: #f1f1f1;
  color: black;
}


/* appearing figure capture by image link */

.figcaptionlink {
    background-color: #222;
    color: #fff;
    font: italic smaller sans-serif;
    padding: 3px;
    text-align: center;
}

  

/* styles.css */

.image-container {
    position: relative; /* Create a positioning context */
    width: 100%; /* Make the width responsive */
    max-width: 600px; /* Set a maximum width */
    aspect-ratio: 3 / 3; /* Maintain a 3:3 aspect ratio */
    overflow: hidden; /* Hide overflow for a clean look */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Add a shadow */
}

.image-container img {
    width: 100%; /* Make images fit the container */
    height: 100%; /* Make images fit the container */
    position: absolute; /* Position them absolutely within the container */
    top: 0;
    left: 0;
    transition: opacity 0.3s ease; /* Smooth transition for hover effect */
}

.image-hover {
    opacity: 0; /* Hide the hover image by default */
}

.image-container:hover .image-hover {
    opacity: 1; /* Show the hover image on hover */
}

.image-container:hover .image-default {
    opacity: 0; /* Hide the default image on hover */
}