:root {
  --start-background-color: #cbd3df;
  --background-color: #d2e0d4;
  --highlight-color: #ffffff;
  --accent-color: #808080;
  --text-color: #666666;
  --logo-color: #ff0000;
  --footer-text-color: #ffffff;
  --box-shadow-color: rgba(0, 0, 0, 0.1);
}

/* Asap Condensed Medium (500) */
@font-face {
  font-family: "Asap Condensed";
  src: url("../fonts/AsapCondensed-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

/* Asap Condensed Medium Italic (500) */
@font-face {
  font-family: "Asap Condensed";
  src: url("../fonts/AsapCondensed-MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
}

/* Asap Condensed SemiBold (600) */
@font-face {
  font-family: "Asap Condensed";
  src: url("../fonts/AsapCondensed-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

/* Asap Condensed SemiBold Italic (600) */
@font-face {
  font-family: "Asap Condensed";
  src: url("../fonts/AsapCondensed-SemiBoldItalic.ttf") format("truetype");
  font-weight: 600;
  font-style: italic;
}

/* Asap Thin (100) */
@font-face {
  font-family: "Asap";
  src: url("../fonts/Asap-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
}

/* Asap Medium (500) */
@font-face {
  font-family: "Asap";
  src: url("../fonts/Asap-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

/* Asap SemiBold (600) */
@font-face {
  font-family: "Asap";
  src: url("../fonts/Asap-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

body {
  margin: 0;
  font-family: "Asap Condensed", Arial, sans-serif;
  background-color: var(--background-color);
  overflow-x: hidden;
  touch-action: pan-y;
}

/* start-overlay ********************************************************************************************/

.start-overlay {
  position: fixed;
  left: 0;
  display: flex;
  z-index: 1000;
  overflow: hidden;
  width: 100vw;
  height: calc(100vh - 30px);
  background-color: var(--start-background-color);
  flex-direction: column;
  align-items: center;
  transition: all 0.5s ease;
}

.start-wrapper {
  display: flex;
  align-content: space-around;
  justify-content: flex-start;
  flex-direction: column;
  align-items: center;
  max-width: 350px;
}
.start-slide-out {
  left: -100%;
}
.start-logo {
  padding: 2vh;
}

.start-logo img {
  width: auto;
  width: 40vw;
  max-width: 150px;
}

.start-image-container {
  width: 90vw;
  max-width: 350px;
}

.start-image-container img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  background-color: var(--highlight-color);
  box-shadow: 0px 0px 20px var(--box-shadow-color);
}

.start-button {
  position: relative;

  font-family: "Asap", Arial, sans-serif;
  font-size: 1.5em;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center; /* Zentralisiert den Hauptinhalt */
  cursor: pointer;
  background-color: var(--accent-color);
  color: var(--footer-text-color);
  padding: 10px 0; /* Weniger horizontales Padding, da die Buttons absolut positioniert sind */
  border-radius: 15px;
  box-sizing: border-box;
  min-width: 220px;
  flex-wrap: nowrap;
  margin-top: 2vh;
  width: 100%;
}

.start-productname {
  position: relative;
  color: var(--highlight-color);
  font-size: min(25px, 7vw);
  font-style: italic;
  font-weight: 500;
  text-align: center;
  margin-top: 2vh;
}

.start-title {
  position: relative;
  color: var(--logo-color);
  font-size: min(20px, 5vw);
  font-style: italic;
  font-weight: 500;
  text-align: center;
  margin-top: 2vh;
}

/*********************************************************************************************************************************
/*Verlegeanleitung*/
.container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  height: 90vh;
  padding: 20px;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.header-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: row;
  width: 90vw;
  max-width: 500px;
  margin: 0 auto;
  margin-bottom: 15px;
}

.title-block {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 90vw;
}

.logo {
  position: relative;
  top: 11px;
}

.logo img {
  width: 90px;
  height: auto; /* proportional zur Breite */
}

.title {
  /* margin-bottom: 20px; */
  /* font-size: 1.1rem; */
  position: relative;
  font-weight: 600;
  color: #000;
  text-align: left;

  top: 11px;
  left: 15px;
}


.title .highlight {
  color: var(--highlight-color); 
  margin-right: 5px;
}

.image-container {
  position: relative;
  width: 100%;
  padding-bottom: 100%; 
  max-width: 500px;
  margin: 0 auto;
}

.image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  background-color: var(--highlight-color);
  box-shadow: 0px 0px 20px var(--box-shadow-color);
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* Das entspricht einem Seitenverhältnis von 16:9 (9/16 = 0.5625) */
  max-width: 500px;
  margin: 0 auto;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  background-color: var(--highlight-color);
  box-shadow: 0px 0px 20px var(--box-shadow-color);
}

.content-block {
  width: 90vw;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: center;
  align-items: center;
}

.info-text {
  margin-top: 20px;
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 600;
  color: var(--text-color);
}

.text-block {
  width: 90vw;
  padding-top: 25px;
  max-width: 500px;
}
.footer-block {
  position: fixed;
  bottom: 0px;
  width: 100%;
  padding-top: 35px;
  padding-bottom: 10px;
  background-image: var(--background-gradient);
  /* background-image: linear-gradient(to bottom, #d2e0d400, #d2e0d4, #d2e0d4); */
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center; /* Zentralisiert den Hauptinhalt */
  position: relative;
  width: 100%;
  background-color: var(--accent-color);
  color: var(--footer-text-color);
  padding: 10px 0; /* Weniger horizontales Padding, da die Buttons absolut positioniert sind */
  border-radius: 15px;
  box-sizing: border-box;
  max-width: none;
  flex-wrap: nowrap;
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: auto; /* Stelle sicher, dass die Breite sich an den Inhalt anpasst */
  max-width: 40px; /* Optionale Begrenzung für die Breite */
  flex: 0 0 auto;
  font-size: 2rem;
  color: var(--footer-text-color);
  border: none;
  background: none;
  cursor: pointer;
}

.left {
  left: 15px; /* Positioniere den linken Button am Rand */
  margin: 0;
  padding: 0;
  background-image: url("../assets/left.svg");
  background-repeat: no-repeat;
  background-position: left;
  width: 100%;
  height: 65%;
}

.right {
  right: 15px; /* Positioniere den rechten Button am Rand */
  margin: 0;
  padding: 0;
  background-image: url("../assets/right.svg");
  background-repeat: no-repeat;
  background-position: right;
  width: 100%;
  height: 65%;
}

.nav-content {
  text-align: center;
  margin: 0;
}

.footer .nav-content {
  text-align: center;
  font-size: 1.1rem;
  line-height: 0.8em;
}

.footer .nav-title {
  font-family: "Asap", Arial, sans-serif;
  font-weight: 100;
  letter-spacing: 0.02em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.footer .nav-subtitle {
  font-family: "Asap", Arial, sans-serif;
  font-weight: 500;
  /* text-transform: uppercase; */
  white-space: nowrap;
}

.largeSub {
  margin: 10px;
  font-size: 1.5em;
}

.impressum-link {
  margin-top: 5px;
}

.impressum-link a {
  color: var(--accent-color);
  text-decoration: none;
  text-align: center;
}

.content-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100vh;
  padding-bottom: 40px;
}

.loader {
  position: absolute;
  border: 8px solid #f3f3f3; /* Helles Grau */
  border-top: 8px solid #3498db; /* Blau */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  z-index: 1;
  box-shadow: 0px 0px 20px var(--box-shadow-color);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.overlay-btn {
  margin: 0;
  padding: 0;
  display: flex; /* Flexbox aktivieren */
  justify-content: center; /* Horizontal zentrieren */
  align-items: center; /* Vertikal zentrieren */
  text-align: center;
  z-index: 10;
  position: absolute;
  left: 5px;
  bottom: 6px;
  border: 0px solid #ffffff;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 1rem;
  background-color: #ffffffda;
  box-shadow: 0px 0px 10px var(--box-shadow-color);
  color: var(--accent-color);
  background-image: url("../assets/rotate.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 40px;
  cursor: pointer;
}
.overlay-btn i {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  line-height: 1;
}

.img-block {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  margin: 0 auto;
  max-width: 500px;

  /**/
  transition: transform 0.3s ease-out;
}

.hidden {
  opacity: 0;
  display: none;
}

.slide-in {
  left: 0; /* Ins Bild schieben */
  bottom: 5px;
  opacity: 1; /* Einblenden */
  z-index: 1000;
}

.slide-out {
  bottom: 5px; /* Aus dem Bild schieben */
  left: -100%;
  opacity: 0; /* Ausblenden */
  z-index: -1000;
}

.menue-button {
  position: relative;
  border: 0px solid;
  background-color: transparent;
  width: 35px;
  min-width: 35px;
  max-width: 35px;
  height: 60px;
  font-size: 40px;
  color: var(--footer-text-color);
  /* z-index: 1; */
  margin: 0;
  padding: 0;
  background-image: url("../assets/bars.svg");
  background-repeat: no-repeat;
  background-position: left;
  cursor: pointer;
}

.close-button {
  position: fixed;
  display: flex; /* Flexbox aktivieren */
  justify-content: center; /* Horizontal zentrieren */
  align-items: center; /* Vertikal zentrieren */
  text-align: center;
  top: 10px;
  right: 10px;
  border: 0px solid var(--accent-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  background-color: var(--accent-color);
  color: var(--highlight-color);
  box-shadow: 0px 0px 20px var(--box-shadow-color);
  background-image: url("../assets/x.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 30px;
  cursor: pointer;
}
.close-button img {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  line-height: 1;

  fill: red; /* Ändert die Füllfarbe */
  stroke: black; /* Umrandung hinzufügen */
  stroke-width: 2px; /* Breite der Umrandung */
}

/*Inhaltsverzeichnis*/

.overlay {
  position: absolute;
  display: flex;
  flex-wrap: wrap;
  /* gap: 20px; */
  width: 98vw;
  height: 98vh;
  left: 1vw;
  background-color: var(--highlight-color);
  border-radius: 15px;
  padding: 20px;
  box-sizing: border-box;
  flex-direction: row;
  align-content: flex-start;
  justify-content: space-evenly;
  align-items: flex-start;
  overflow-x: scroll;
  transition: all 0.5s ease;
  padding-top: 95px;
}

.toc-header {
  font-family: "Asap", Arial, sans-serif;
  font-weight: 500;
  width: 100%;
  margin-top: 20px;
  margin-bottom: 5px;
  font-size: 1.2em;
  background-color: var(--accent-color);
  color: var(--highlight-color);
  padding: 2px;
  border-radius: 1.2em;
  text-align: center;
}

.toc-list {
  font-family: "Asap", Arial, sans-serif;
  list-style: none;
  padding-left: 0;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  width: 80%;
  row-gap: 10px;
  column-gap: 25px;
  justify-content: flex-start;
}

.toc-item {
  margin-bottom: 10px;
  width: auto;
  min-width: 230px;
}

.toc-item a {
  text-decoration: none;
  color: #333;
}

.toc-item a:hover {
  text-decoration: underline;
}

.toc-item.active {
  font-weight: 900;
}

/* Landscape version */
@media (orientation: landscape) {
  .title {
    display: flex;
    text-align: center;
    width: 100%;
    align-content: center;
    justify-content: center;
  }
  .info-text {
    text-align: left;

    /*width: 50%; */
    font-size: 1.8rem;
  }

  .text-block {
    /* width: 50%; */
    padding-left: 20px;
    padding-top: 0px;
  }

  .container {
    flex-direction: column;
    max-width: 1000px;
  }

  .content-block {
    display: flex;
    flex-direction: row;
    width: 95vw;
    max-width: 1000px;
    align-items: flex-start;
  }

  .header-block {
    width: 95vw;
    max-width: 1000px;
    margin-bottom: 40px;
  }
  .title-block {
    display: flex;
    justify-content: center;
    flex-direction: column-reverse;
    align-items: center;
    align-content: center;
  }
}
