@font-face {
  font-family: "darkerGrotesque";
  src: url("../source/fonts/DarkerGrotesque-Medium.ttf");
}

:root {
  --dark-color: #000000;
  /* Standard-Wert */
  --lighter-color: #9b9b9b;


}


body {
  margin: 0;
  padding: 0;
  font-family: "darkerGrotesque";
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.start-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Full viewport height */
  padding: 0% 20% 0% 20%;
  color: white;
}

.start-content h1 {
  font-size: 5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.start-content h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: normal;
  padding-bottom: 1rem;
}


body.start {
  background: linear-gradient(0deg,
      var(--lighter-color) 1%, var(--lighter-color) 0%, var(--lighter-color) 0%, var(--dark-color) 50%);
  color: white;

}

a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: bold;
}

a:hover {
  text-decoration: none;
  color: var(--lighter-color);
}

main {
  flex: 1;
  /* Allow the main content to grow and push the footer down */
  display: flex;
  flex-direction: column;
  color: var(--dark-color)
}

h1 a {
  text-decoration: none;
  color: var(--dark-color);
}

h1 a:hover {

  color: var(--lighter-color);
}

.content {
  padding: 0 30% 0 30%;
  color: var(--dark-color);
  font-size: 22px;

}

.content h1 {
  font-size: 3rem;
  text-align: center;
}

h1 {
  padding: 0 0 0 0;
}

h3 {
  font-weight: normal;
  font-size: 22px;
  padding: 0 0 0rem 0;
}

.grid-container-top {
  display: grid;
  grid-template-columns: 175px auto 175px;
  position: relative;
}

.grid-container-top>div {
  display: flex;
  justify-content: center;
  align-items: center;
}

.background {
  height: 88px;
  background-color: var(--dark-color);
  border-bottom: 10px solid var(--lighter-color);
  /* unsichtbar starten */
}

.start-background {
  height: 88px;
  background-color: var(--dark-color);
  border-bottom: 10px solid transparent;
  /* unsichtbar starten */
  transition: border-color 3s ease;
  opacity: 0;

}

.start-background.visible {
  border-bottom-color: var(--lighter-color);
  opacity: 1;
}



/* Shapes and colorsss */

.block {
  width: 100%;
  height: 88px;
  background-color: var(--dark-color);
  border-bottom: 10px solid var(--lighter-color);

}

.block-right {
  --p: 50%;
  height: 175px;
  ;
  aspect-ratio: 1;
  clip-path: polygon(100% 0, 0 0, 0 calc(100% - var(--p)), 100% 100%);
  background: var(--dark-color);

}

.block-wrapper-right {
  position: relative;
}

.block-wrapper-right::before {
  content: "";
  position: absolute;
  --p: 50%;
  height: 175px;
  aspect-ratio: 1;
  clip-path: polygon(100% 0, 0 0, 0 calc(100% - var(--p)), 100% 100%);
  background-color: var(--lighter-color);

  z-index: -1;
  transform: translateY(10px);
}


.fade-in-wrapper {
  opacity: 0;

  transition: opacity 3s ease;
}

.fade-in-wrapper.visible {
  opacity: 1;

}



.block-left {
  --p: 50%;
  height: 175px;
  aspect-ratio: 1;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--p)), 0 100%);
  background: var(--dark-color);

}

.block-wrapper-left {
  position: relative;
  /* Make the wrapper a positioned container */
}

.block-wrapper-left::before {
  content: "";
  /* Create a pseudo-element */
  position: absolute;
  --p: 50%;
  height: 175px;
  aspect-ratio: 1;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--p)), 0 100%);
  background: var(--lighter-color);

  z-index: -1;
  transform: translateY(10px)
}

.block-right-bottom {
  --p: 50%;
  height: 175px;
  aspect-ratio: 1;
  clip-path: polygon(0 var(--p), 100% 0, 100% 100%, 0 100%);
  background: var(--dark-color);


}

.block-wrapper-right-bottom {
  position: relative;
  /* Make the wrapper a positioned container */
}

.block-wrapper-right-bottom::before {
  content: "";
  /* Create a pseudo-element */
  position: absolute;
  --p: 50%;
  height: 175px;
  aspect-ratio: 1;
  clip-path: polygon(0 var(--p), 100% 0, 100% 100%, 0 100%);
  background: var(--lighter-color);
  z-index: -1;
  transform: translateY(-10px)
}

.block-left-bottom {
  --p: 50%;
  height: 175px;
  aspect-ratio: 1;
  clip-path: polygon(0 0, 100% var(--p), 100% 100%, 0 100%);
  background: var(--dark-color);
  transition: background-color 0.5s ease;
}

.block-wrapper-left-bottom {
  position: relative;
  /* Make the wrapper a positioned container */
}

.block-wrapper-left-bottom::before {
  content: "";
  /* Create a pseudo-element */
  position: absolute;
  --p: 50%;
  height: 175px;
  aspect-ratio: 1;
  clip-path: polygon(0 0, 100% var(--p), 100% 100%, 0 100%);
  background: var(--lighter-color);
  z-index: -1;
  transform: translateY(-10px)
}

.middle {
  display: flex;
  justify-content: center;
}

.triangle {
  --b: 35px;
  /* control the border thickness */

  width: 100px;
  aspect-ratio: 1/cos(30deg);
  clip-path: polygon(50% 100%, 100% 0, 0 0, 50% 100%, 50% calc(100% - var(--b)), calc(var(--b)*cos(30deg)) calc(var(--b)/2), calc(100% - var(--b)*cos(30deg)) calc(var(--b)/2), 50% calc(100% - var(--b)));
  background: linear-gradient(0deg, var(--lighter-color), var(--dark-color));
  margin: 1rem 0 1rem 0;
  transition: background-color 0.5s ease;
}

.rhombus {
  height: 10px;
  /* adjust to control the size  */
  aspect-ratio: 1;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: var(--lighter-color);
}

/* Grid Arangement */

.grid-container-top a {
  color: rgb(28, 107, 117);
  text-align: center;
  text-decoration: none;
  font-size: 1.5rem;
}

.grid-container-bottom {
  margin-top: auto;
  /* Push the grid-container-bottom to the bottom */
  display: grid;
  grid-template-columns: 175px auto 175px;
  position: relative;
  width: 100%;
  /* Ensure it spans the full width */
}

.grid-container-bottom a {
  color: rgb(255, 255, 255);
  font-weight: normal;
  font-size: 1rem;
}

.grid-container-bottom>div {
  display: flex;
  justify-content: center;
}

.background-bottom {
  display: flex;
  height: 88px;
  background-color: var(--dark-color);
  border-top: 10px solid var(--lighter-color);
  margin-top: 4.83rem;

  flex-wrap: wrap;
}

.start-background-bottom {
  display: flex;
  height: 88px;
  background-color: var(--dark-color);
  margin-top: 87px;

  flex-wrap: wrap;
}

.background-bottom a {
  color: #ffffff;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem 0 1rem;
}

.start-background-bottom a {
  color: #ffffff;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem 0 1rem;
}




/* Base styles for the navigation menu */
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 10px 20px;
  position: relative;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  transition: color 0.3s ease;
  padding: 2rem 1rem 2rem 1rem;
  display: inline-block;

}

nav a.active {
  background-color: var(--lighter-color);
  /* Farbe für aktiven Link */

}

.nav-links img {
  padding-top: 0.4rem;
}

.nav-links a:hover {
  color: var(--lighter-color);
}

nav a.active:hover {
  color: #ffffff;
  /* Weißer Text beim Hover auf der aktiven Seite */
}

/* Burger menu button */
.burger-menu {
  display: none;
  font-size: 24px;
  cursor: pointer;

}

/* Hide the checkbox */
.menu-toggle {
  display: none;
}



/* Theme colors */
#theme-selector-rautes {

  display: flex;

  /* oder kleiner, z.B. 0.5rem für engeren Abstand */
  justify-content: center;
  align-items: center;
  margin: 2rem 25% 2rem 25%;



}



.theme-diamond {
  --b: 35px;
  /* control the border thickness */
  width: 100px;
  aspect-ratio: 1/cos(30deg);
  clip-path: polygon(50% 100%, 100% 0, 0 0, 50% 100%, 50% calc(100% - var(--b)), calc(var(--b)*cos(30deg)) calc(var(--b)/2), calc(100% - var(--b)*cos(30deg)) calc(var(--b)/2), 50% calc(100% - var(--b)));

  cursor: pointer;


}




/* Farbverläufe */
.theme-diamond[data-theme="blue"] {
  --base-transform: translateY(0px);
  transform: var(--base-transform);
  background: #413DCE;
}

.theme-diamond[data-theme="red"] {
  --base-transform: rotate(180deg) translateY(0px);
  transform: var(--base-transform);
  background: #B30E55;
}

.theme-diamond[data-theme="white"] {
  --base-transform: translateY(0px);
  transform: var(--base-transform);
  background: #9a9a9a;
}

.theme-diamond[data-theme="purple"] {
  --base-transform: translateY(0px);
  transform: var(--base-transform);
  background: #7D16CF;

}

.theme-diamond[data-theme="cyan"] {
  --base-transform: rotate(180deg) translateY(0px);
  transform: var(--base-transform);
  background: #0ac099;
}

.theme-diamond:hover {
  transform: var(--base-transform) scale(1.1);

}

.hidden {
  display: none;
}


#theme-selector-rautes.hidden {
  display: none;
}

#current-theme {
  margin: 0rem auto;
  cursor: pointer;
  width: 100px;
  aspect-ratio: 1 / cos(30deg);
  clip-path: polygon(50% 100%, 100% 0, 0 0,
      50% 100%, 50% calc(100% - 35px),
      calc(35px * cos(30deg)) calc(35px / 2),
      calc(100% - 35px * cos(30deg)) calc(35px / 2),
      50% calc(100% - 35px));
  /* WICHTIG: keine Rotation beim Haupt-Dreieck */
  transform: none !important;
  background: var(--lighter-color);

  /* default fallback */
}





/* Project.html css */

.project-img {
  width: 48.8%;
  max-height: 300px;
  height: auto;
  object-fit: contain;
  border-top: var(--lighter-color) 10px solid;
}

/* Füge einen linken Rand für das erste Bild hinzu */
.project-img:first-of-type {
  border-left: var(--lighter-color) 10px solid;
  border-image: linear-gradient(to top, var(--dark-color), var(--lighter-color)) 1;
}

/* Füge einen rechten Rand für das letzte Bild hinzu */
.project-img:last-of-type {
  border-right: var(--lighter-color) 10px solid;
  border-image: linear-gradient(to top, var(--dark-color), var(--lighter-color)) 1;
}

.project-description {
  width: 97.6%;
  background-color: var(--dark-color);
  color: #ffffff;
  border: var(--dark-color) 10px solid;
}

.project-description p {
  padding: 1rem 2rem 1rem 2rem;
  margin: 0;
}

.project-description ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0 2rem 0 2rem;
  gap: 10px;
  /* Abstand zwischen den Items */
  align-items: center;

}

.project-description li {
  position: relative;
}

.project-description a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;

}

.project-description a:hover {
  color: var(--lighter-color);

}


.project-description ul li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: var(--lighter-color);
  /* Farbe des Rhombus */
  transform: rotate(45deg);
  margin-left: 10px;
  /* Abstand zum Text */
}

.skills ul li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: var(--lighter-color);
  /* Farbe des Rhombus */
  transform: rotate(45deg);
  margin-left: 10px;
  /* Abstand zum Text */
}

.skills ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0 2rem 0 2rem;
  gap: 10px;
  /* Abstand zwischen den Items */
  align-items: center;
  margin: 0 0 2rem 0;


}

.skills li {
  position: relative;
}

.skillh2 {

  margin: 0 0 3rem 0;

}

h2 {
  font-size: 2rem;
  margin: 0;
  padding: 0 0 0rem 0;
  text-align: center;

}

.space {
  height: 10px;
  width: 100%;
  background: var(--lighter-color);
  margin-bottom: 2rem;
}

p {
  margin: 0 0 1rem 0;
}

.project-card h2 {
  padding: 0rem 2rem 0 2rem;
  margin: 0;
}

.project-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--dark-color);
  font-size: 20px;
  padding: 0 0 2rem 0;

}

.project-background {
  display: flex;
  justify-content: center;

  width: 100%;
  height: auto;
  object-fit: cover;
  margin: 2rem 0 2rem 0;


}

.button {
  display: flex;
  justify-content: center;
}

.button a {
  color: var(--dark-color);
  text-decoration: none;
  border: none;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
}

.button a:hover {
  color: var(--lighter-color);
}

/* Carousel styles */

.carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;

}

.carousel-track-container {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in;
  padding: 0;
  margin: 0;
}

.carousel-slide {
  list-style: none;
  min-width: 100%;
  transition: opacity 0.5s ease-in-out;
}

.carousel-slide img {
  width: 100%;
  display: block;
  max-height: 500px;
  object-fit: contain;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--dark-color, 0.2);

  border: none;
  color: white;
  padding: 1rem;
  cursor: pointer;
  z-index: 1;
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

/* about styles */


.skill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 0 3rem 0;
}

.skill-name {
  width: 300px;
  font-weight: bold;
  margin-left: 2rem
}

.skill-level {
  display: flex;
  gap: 0.4rem;
}

.skill-diamond {
  --b: 12px;
  /* kleiner als bei der Theme-Auswahl */
  width: 40px;
  aspect-ratio: 1/cos(30deg);
  clip-path: polygon(50% 100%, 100% 0, 0 0, 50% 100%,
      50% calc(100% - var(--b)),
      calc(var(--b) * cos(30deg)) calc(var(--b)/2),
      calc(100% - var(--b) * cos(30deg)) calc(var(--b)/2),
      50% calc(100% - var(--b)));
  background: var(--lighter-color);
  /* leerer Zustand */
  opacity: 0.2;
  cursor: default;
}

.skill-diamond.filled {

  background: linear-gradient(180deg, var(--dark-color), var(--lighter-color));
  /* Beispielverlauf */
  opacity: 1;


}

.about-img {
  max-width: 320px;
  height: auto;
  flex-shrink: 0;
  border-bottom: var(--lighter-color) 10px solid;
  margin: 1rem 0 3rem 0;
}

.about-img img {
  width: 80%;
}

.about-img-container {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 2rem;
}

h2 {
  margin: 1rem 0 1rem 0;
}

.about-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  /* sorgt für den Umbruch bei kleinen Screens */
  gap: 2rem;
  /* Abstand zwischen Bild und Text */
  padding: 0 30% 0 30%;
  color: var(--dark-color);
  font-size: 22px;
  margin-bottom: 2rem;
}

.about-text {
  flex: 1;
  color: var(--dark-color);
  font-size: 1.2rem;
}

/* collection styles */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

#lightbox {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  transition: opacity 0.3s ease;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

#lightbox.hidden {
  display: none;
}

.close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  font-weight: bold;
  z-index: 10000;
}


.disclaimer {
  font-size: 1.5rem;
  color: white;
  text-align: center;
  padding: 1rem;
  background-color: var(--dark-color);
  border: var(--lighter-color) 10px solid;
  margin: 0;
}

.filters {
  padding-top: 1rem 0 1rem 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filters button {
  padding: 0.5rem 1rem;
  border: none;
  background-color: var(--dark-color);
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  color: white;
  font-family: "darkerGrotesque";
}

.filters button:hover {
  background-color: var(--lighter-color);
  color: white;
}

.filters button.active {
  background-color: var(--lighter-color);
  color: white;
}


/* Responsive styles for smaller screens */

@media (max-width:1700px) {
  .content {
    padding: 0 10% 0 10%;
    font-size: 20px;
  }

  .about-content {
    padding: 0 10% 0 10%;
    font-size: 20px;
  }

  .start-content {
    padding: 0 10% 0 10%;

  }

  .about-img-container {
    flex-wrap: wrap;
  }

  .about-img {

    margin: 1rem 0 0rem 0;
  }

  .skillh2 {
    margin-top: 3rem;

  }
}


@media (max-width: 1050px) {
  .burger-menu {
    display: block;
    font-size: 24px;
    cursor: pointer;
    position: relative;
    margin-bottom: 10px;
    text-align: center;
    color: #ffffff;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    background-color: var(--dark-color);
    position: absolute;
    top: 135px;
    /* Adjusted to move the menu further down */
    left: 50%;
    transform: translate(-50%, -30%);
    /* Adjusted for proper centering */
    padding: 0px 40px 10px 40px;
    z-index: 1000;
    border-bottom: var(--lighter-color) 10px solid;


  }

  .nav-links a {
    padding: 0rem 1rem 1rem 1rem;

  }


  nav a.active {
    background-color: var(--dark-color);
    border-left: solid 5px var(--lighter-color);
    border-right: solid 5px var(--lighter-color);

  }

  /* Show the menu when the checkbox is checked */
  .menu-toggle:checked~.nav-links {
    display: flex;

  }

  .content {
    padding: 0 5% 0 5%;

  }

  .start-content {
    padding: 0 5% 0 5%;

  }

  .about-content {
    padding: 0 5% 0 5%;

  }

  .content h1 {
    padding-top: 2rem;
  }

  .project-img:nth-of-type(2) {
    display: none;
  }

  .project-img:first-of-type {
    border-right: var(--lighter-color) 10px solid;
    /* Füge den rechten Rahmen hinzu */
    border-image: linear-gradient(to top, var(--dark-color), var(--lighter-color)) 1;
  }

  .project-img {
    width: 100%;


  }

  .project-description {
    width: 100%;

  }

  .skill-name {
    width: 200px;
  }

  .theme-diamond {
    --b: 25px;
    /* control the border thickness */
    width: 70px;
    aspect-ratio: 1/cos(30deg);
    clip-path: polygon(50% 100%, 100% 0, 0 0, 50% 100%, 50% calc(100% - var(--b)), calc(var(--b)*cos(30deg)) calc(var(--b)/2), calc(100% - var(--b)*cos(30deg)) calc(var(--b)/2), 50% calc(100% - var(--b)));

    cursor: pointer;


  }

  .start-content h1 {
    font-size: 3rem;
  }

  .start-content h2 {
    font-size: 1.5rem;
  }

  .start-background-bottom a {

    font-size: 10px;


  }

  .background-bottom a {
    font-size: 10px;

  }

  .gallery {

    padding-bottom: 2rem;
  }


}

@media (max-width:590px) {
    .start-background-bottom a {
    width: 100%;
    font-size: 10px;
    padding: 0;
    margin: 0;

  }

  .background-bottom a {
    font-size: 10px;
    padding: 0;
    margin: 0;
  }
}
