html{
    scroll-behavior: smooth;
}

body {
margin: 0;
font-family: "Alexandria", sans-serif;
font-optical-sizing: auto;
color:#06012F;
background-image: url("Bilder/Hintergrund.svg");
background-repeat: repeat-y repeat-x;

}

.main{
    font-size:2.7em;
    color:#523eed;
    font-family: "Caveat", cursive;
    font-optical-sizing: auto;
    font-weight: bolder;
    font-style: normal;
}

.intro{
    font-size: 2em;
    font-weight: 350;
    line-height: 2.25rem;
    color:#797788;
}

header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 2rem;
background: rgba(250, 253, 255, 0.4);
box-shadow: 0px 2px 14px #dfe3ffa9;
backdrop-filter: blur(5px);
position:sticky;
top:0px;
z-index:100;
overflow: hidden;
}

.logo{
    margin-left: 5%;

}
nav{  
    margin-right: 5%;
}

nav ul {
display: flex;
list-style: none;
gap: 1.5rem;

}


header nav ul li a{
    text-decoration: none;
    color:#06012F;
    display:block;
    font-weight: 350;
    font-size: 1.1rem;
}

header nav ul li a:hover{
    text-decoration: none;
    color:#523eed;
    font-weight: bold;
    font-size: 1.1rem;
    display:block;
}


.hero {
display: flex;
flex-wrap: wrap;
align-items: center;
padding-top: 6rem;
padding-left: 1rem;
padding-right: 2rem;
padding-bottom: 6rem;
margin-left: 20%;
margin-right: 15%;
}

.hero-text {
flex: 1;
}

.webcard-link{
    text-decoration: none;
}

.cards {
     display: inline-grid;
     grid-template-columns: auto auto;
     gap: 1.5em;
     justify-content: center;
     margin-left: 20%;
     
}



/* Responsive layout - makes a one column layout instead of a two-column layout */
@media (max-width: 800px) {
  .cards {
     display: inline-grid;
     grid-template-columns: auto;
     gap: 1.5em;
     justify-content: center;
     
  }
}
/* Container der Webcard */
.webcard {
  background-color: #fff;
  border-radius: 10px; /* Abgerundete Ecken */
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sanfter Schatten */
  width: 100%;
  max-width: 400px; /* Maximale Breite */
  margin: 20px;
 /* padding: 20px;*/
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Hinzugefügt: Übergänge für Hover-Effekt */
}

/* Hover-Effekt auf der Webcard */
.webcard:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Intensiverer Schatten */
  transform: scale(1.01) translateY(-10px);
}

/* Bild oben in der Webcard */
.webcard-image {
  width: 100%;
  height: 60%; /* Feste Höhe für das Bild */
  object-fit: cover; /* Bild skaliert, ohne die Proportionen zu verlieren */
  
}

/* Tags als Pillen */
.tags {
  display: flex;
  justify-content: left;
  gap: 10px;
  margin-top: 10px;
  margin-left: 5%;
  margin-right: 10%;

}

.tag {
  background-color: #fff;
  color: #8c88a8;
  padding: 6px 20px;
  border-radius: 50px;
  border: solid 1px #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15); /* Schlagschatten */
  font-size: 0.75rem;
  transition: background-color 0.3s ease;
}


/* Titel der Webcard */
.webcard-title {
  font-size: 2rem;
  font-weight: bold;
  margin: 5% 10% 2% 10%;
  color: #06012F;
}

/* Kurze Beschreibung */
.webcard-description{
  font-size: 1rem;
  color: #797788;
  line-height: 1.5;
  margin-left: 10%;
  margin-right:10%;
}

.info-block {
display: flex;
flex-wrap: wrap;
padding: 1rem;
gap: 2rem;
margin-left: 20%;
margin-top: 8rem;
}

.info-text, .info-image {
flex: 1 1 300px;
}

.info-image{
  width: 30%;
  height: auto;
}

#me{
    margin-top:35%;
    width:53%;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

h2{
font-family: "Alexandria", sans-serif;
font-optical-sizing: auto;
color:#5a5866;
font-size: 2rem;
font-weight:350;
}

.unterubschrift2{
    color:#797788;
    font-weight: 350;
    font-size: 1.6rem;
   
}

p{
font-family: "Alexandria", sans-serif;
font-optical-sizing: auto;
color:#5a5866;
font-size: 1rem;
font-weight:350;
line-height: 1.9rem;
}

.kontakt {
padding: 8rem;
text-align: center;
display: flex;
flex-direction: column;
gap: 1rem;
max-width: 400px;
margin: 0 auto;
}

.button{
    padding-bottom: 5rem;
    padding-top: 5rem;
 justify-content: center; /* horizontal zentrieren */
  align-items: center;  
display: flex;


}

.submit{
    
    background: #523eed;
    font-size: 1.25rem;
    font-weight: 400;
    color:#fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 10px 40px 10px 40px;
    text-decoration: none;
}

.submit:hover{
    background: #36289b;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(250, 253, 255, 0.076);
  backdrop-filter: blur(2px);
  bottom:0px;
  z-index:100;
  Overflow: hidden;
  color:#5a5866;
  font-size: 1rem;
  font-weight: 400;
}

@media (max-width: 768px) {
header, .hero, .info-block {
flex-direction: column;
text-align: center;
}

nav ul {
flex-direction: column;
}

.hero-image {
text-align: center;
}
}

/*##############################################
    Projekt-Seiten
###############################################*/

.nav-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  margin: 0 1rem;
}


.nav-wrapper:hover .nav-label {
  opacity: 1;
}

.project-container {
  max-width: 900px;
  margin: auto;
  padding: 2rem;
}

.uberschrift{
    margin-top: 4rem;
    font-size: 3em;
    font-weight: 700;
    line-height: 2.5rem;
    color:#523eed;
}

.unteruberschrift{
    font-size: 1.4em;
    font-weight: 350;
    line-height: 2.25rem;
    color:#797788;
    margin-bottom:4rem;
}

.project-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);

}

.project-description {
  margin-top: 4rem;
}

.info{
  display: grid;
  grid-template-columns: auto auto;
  margin-top:8rem;
  margin-bottom: 8rem;
  padding: 2rem 1rem 2rem 3rem;
  background: #523eed3a;
  backdrop-filter: blur(1px);   
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

h3{
    font-size: 1.4em;
    font-weight: 500;
    line-height: 1.5rem;
    color:#5a5866;

}

.headline{
    color:#06012F;
}

.projekthintergrund{
    margin-top:8rem;
   
}
.roles{
    margin-right:4rem;
}
.roles ul {
  margin: 0;
  padding-left: 1.2rem;
}

.process{
    margin: 0;
  padding-left: 1.2rem;
}

.process-section {
  margin-top: 4rem;
}

.img-div{
    display:grid;
    grid-template-columns: auto auto auto;
    max-width: 100%;
    gap:2rem;
    
}

.scribbles{
    display:grid;
    grid-template-columns: auto auto auto;
    grid-template-rows: auto auto auto;
    max-width:100%;
    gap:2rem;
}

.scribbles img{
    max-width:100%;
}

.screen{
    max-width:15rem;
   text-align: center;
}

.img-div img{
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}


.erkenntnisse{
    font-family: "Alexandria", sans-serif;
font-optical-sizing: auto;
color:#5a5866;
font-size: 1rem;
font-weight:350;
line-height: 1.9rem;
}

.research{
    display: grid;
    grid-template-columns: auto auto;
    gap:4rem;
   
}

.designproblem{
    background: #523eed3a;
    border-radius: 12px;
    padding:2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);

}

.designproblem h3{
    color:#06012F;
}



    .gallery {
     display:grid;
    grid-template-columns: auto auto auto;
    gap:15px;
    }

    .thumbnail {
      flex: 1;
      cursor: pointer;
      border-radius: 0px;
      transition: transform 0.2s ease;
      max-width: 100%;
      object-fit: cover;
    }

    .thumbnail:hover {
      transform: scale(1.02);
    }

    .overlay {
      position: fixed;
      top: 0;
      left: 0;
      height: 100dvh;
      width: 100vw;
      background-color: rgba(0, 0, 0, 0.8);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 1000;
    }

    .overlay img {
      max-width: 90%;
      max-height: 90%;
      border-radius: 8px;
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    }

    @media (max-width: 768px) {
      .gallery {
        flex-direction: column;
        align-items: center;
      }

      .thumbnail {
        width: 100%;
      }
    }


    .nav-button {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.75rem 1.5rem;
      
      border: none;
      border-radius: 8px;
      text-decoration: none;
      color: #06012F;
      font-weight: 400;
      font-size: 1.25rem;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
      transition: all 0.2s ease;
      min-width: 200px;
    }

    .nav-button:hover {
      background-color: #36289b;
      transform: translateY(-2px);
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
      color:#fff;
      border: none;
      font-weight: 400;
    }

    .arrow {
      font-size: 1.2rem;
      flex-shrink: 0;
    }

    .prev {
      flex-direction: row;
      text-align: left;
      font-weight: 300;
      background-color: #d3cfeb;
      gap: 1rem;
    }
     .prev .arrow {
      transform: rotate(180deg);
    }

    .next {
      flex-direction: row;
      text-align: right;
      background-color: #afa5ef;
      font-weight: 300;
       gap: 1rem;
    }

    .nav-text {
      flex: 1;
    }

    .button{
    display:flex;
    max-width:100%;
    gap:10rem;
    }

    /* Seitenmenü */
    .side-menu {
      position: fixed;
      top: 50%;
      left: 20px;
      transform: translateY(-50%);
      background: rgba(250, 253, 255, 0.4);
      box-shadow: 0px 2px 14px #dfe3ffa9;
      backdrop-filter: blur(3px);
      border-radius: 12px;
      padding: 1rem;
      display: flex;
      flex-direction: column;
      gap: 1rem;
      z-index: 1000;
    }

    .nav-link {
      text-decoration: none;
      color: #5a5866;
      padding: 0.5rem 1rem;
      border-radius: 20px;
    }

    .nav-link:hover {
      color:#f1a414;
    }

    .nav-link.active {
      color:#523eed;
      font-weight: 600;
    }
   