body {
  background-image: url(img/Stoffscans/samples_even_darker.jpg);
  backdrop-filter: blur(1px);
  text-align: center;
  color: #d5ede5;
  font-family:
    Futura,
    Trebuchet MS,
    Arial,
    sans-serif;
}

img.logo {
  max-height: 50px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

img {
  max-width: 400px;
  max-height: 500px;
}

.icons {
  margin-top: 15px;
  max-width: 50px;
}

.social {
  max-width: 200px;
}

.needle {
  margin-top: 0;
  animation: scrollsew 3s ease-in-out infinite;
}

@keyframes scrollsew {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(30px);
  }
  100% {
    transform: translateY(0);
  }
}

.nav_overlay {
  position: sticky;
  top: 0;
  background-image: url(img/Stoffscans/glitter_spiral.jpg);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  z-index: 15;
}

nav {
  padding-top: 0;
  padding-bottom: 0;
  border-radius: 30px;
  overflow: hidden;
}

ul {
  font-size: 30px;
  list-style-type: none;
  display: flex;
  justify-content: space-evenly;
  margin: 0;
  padding-top: 20px;
  padding-bottom: 20px;
}


/* Fade-in Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px); /* optional: leichtes Hochfahren */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Überschrift mit Bildhintergrund */
.masked-headline {
  width: 100%;
  height: 70vh;
  background: url("img/Stoffscans/glitter_lighter.jpg") center center / cover no-repeat;
  -webkit-mask-image: url("img/welcome.png");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;

  mask-image: url("img/welcome.png");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;

  background-color: #d5ede5; /* fallback background if image fails */

  /* Animation */
  opacity: 0;
  animation: fadeIn 1.2s ease-out 0.3s forwards;
}

.masked-headline-portfolio {
  width: 100%;
  height: 70vh;
  background: url("img/Stoffscans/glitter_lighter.jpg") center center / cover no-repeat;
  -webkit-mask-image: url("img/welcome.png");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;

  mask-image: url(img/Arbeitsproben.png);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;

  background-color: #d5ede5; /* fallback background if image fails */

  /* Animation */
  opacity: 0;
  animation: fadeIn 1.2s ease-out 0.3s forwards;
}

.masked-headline-studium {
  width: 100%;
  height: 70vh;
  background: url("img/Stoffscans/glitter_lighter.jpg") center center / cover no-repeat;
  -webkit-mask-image: url("img/welcome.png");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;

  mask-image: url(img/Studium.png);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;

  background-color: #d5ede5; /* fallback background if image fails */

  /* Animation */
  opacity: 0;
  animation: fadeIn 1.2s ease-out 0.3s forwards;
}

.masked-headline-social {
  width: 100%;
  height: 70vh;
  background: url("img/Stoffscans/glitter_lighter.jpg") center center / cover no-repeat;
  -webkit-mask-image: url("img/welcome.png");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;

  mask-image: url(img/Social.png);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;

  background-color: #d5ede5; /* fallback background if image fails */

  /* Animation */
  opacity: 0;
  animation: fadeIn 1.2s ease-out 0.3s forwards;
}

a {
  font-weight: 600;
  text-decoration: none;
  color: #d9eee7;
}

a:hover {
  color: #466f61;
  text-decoration-line: underline;
}

li.active {
  text-decoration-line: underline;
}

/* Studienschwerpunkte Definitionsliste */
.definition-list {
  list-style-type: disc;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 20px; /* Abstand zwischen Einträgen */
  max-width: 800px;
  line-height: 1.6;
  text-align: left;
  margin-bottom: 50px;
}

.definition-list li {
  font-size: 20px;
  text-shadow: 2px 2px 4px #000000;
  backdrop-filter: blur(3px);
}
.definition-list strong {
  font-weight: 800;
}

p {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 80px;
  font-size: larger;
  font-weight: 600;
  max-width: 600px;
  color: #aec5bd;
  text-shadow: 2px 2px 4px #000000;
}

h2 {
  text-shadow: 2px 2px 4px #000000;
  backdrop-filter: blur(3px);
  border-radius: 20px;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* CGI section */
.cgi {
  padding: 15rem 11rem;
}

.cgi-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 80px;
}

.text-block {
  flex: 1 1 300px;
  max-width: 400px;
}

.photo-stack {
  position: relative;
  width: 400px;
  height: 400px;
  flex: 0 0 auto;
}

.photo-stack .photo {
  position: absolute;
  width: 100%;
  height: auto;
  max-width: 100%;
  transition: all 0.4s ease;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

/* stack-positions */
.photo-stack .p1 {
  transform: rotate(-6deg) translate(-108px, 10px);
  z-index: 3;
}
.photo-stack .p2 {
  transform: rotate(3deg) translate(5px, 0);
  z-index: 3;
}
.photo-stack .p3 {
  transform: rotate(-2deg) translate(0, -77px);
  z-index: 1;
}

.photo-stack .photo:hover {
  transform: scale(1.5) rotate(0deg) translate(0, 0);
  z-index: 35;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Blogeinträge ab hier */
.studium-updates {
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.studium {
  max-width: 700px;
  text-align: left;
}

.studium-updates h1 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.update-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.update-entry {
  background-image: url(img/Stoffscans/flower_lace_dark.jpg);
  border-left: 4px solid #444;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.update-entry:hover {
  transform: translateY(-4px);
}

.update-entry .date {
  font-size: 0.9rem;
  color: #d5ede5;
  display: block;
  margin-bottom: 0.5rem;
}

.entry-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

/* 3d print section und hover starts here*/
.print3d {
  padding: 3rem 2rem;
  text-align: center;
}

.image-overlay-container {
  position: relative;
  display: inline-block;
  margin: 1rem;
  max-width: 600px;
  height: auto;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.image-overlay-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.image-overlay-container .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  height: 100%;
  background: rgba(15, 15, 15, 0.7);
  color: #fff;
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  border-radius: 10px;
}

.image-overlay-container:hover img {
  transform: scale(1.05);
}

.image-overlay-container:hover .overlay {
  opacity: 1;
}

/* scroll carousel ab hier */
.scroll-carousel {
  padding: 2rem;
  overflow-x: auto;
  margin-top: 80px;
  margin-bottom: 80px;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
}

.carousel-track img {
  height: 350px; /* feste Höhe */
  width: auto; /* Breite passt sich an */
  object-fit: cover;
  border-radius: 10px;
  scroll-snap-align: start;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.carousel-track img:hover {
  transform: scale(1.05);
}

footer {
  backdrop-filter: blur(5px);
  border-top: double #d5ede5;
}

p.footer {
  margin-bottom: 0;
  padding-bottom: 0;
  font-weight: 100;
  font-size: medium;
}

