* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: #0f0f14;
  color: #f6f7f5;
  line-height: 1.6;
}

header {
  padding: 80px 10%;
  text-align: center;
  background: radial-gradient(circle at top, #3a0e49, #0f0f14);
}

header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

header p {
  color: #b5b5c3;
  max-width: 600px;
  margin: 0 auto;
}

section {
  padding: 60px 10%;
}

h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
}

.about {
  max-width: 700px;
}


footer {
  padding: 40px 10%;
  text-align: center;
  color: #8a8aa3;
  border-top: 1px solid #1f1f2e;
}

a {
  color: #7c7cff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 2.2rem;
  }
}


#lang-to-de {
  position: absolute;
  top: 30px;
  right: 10%;
  background: #1a1a26;
  color: #f5f5f7;
  border: 1px solid #2a2a3d;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

#lang-to-en {
  position: absolute;
  top: 30px;
  right: 10%;
  background: #1a1a26;
  color: #f5f5f7;
  border: 1px solid #2a2a3d;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

#lang-to-de:hover {
  background: #2a2a3d;  
}

#lang-to-en:hover {
  background: #2a2a3d;  
}

.socials {
  margin-top: 20px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.socials a svg {
  width: 36px; 
  height: 36px;
  transition: transform 0.2s ease, filter 0.2s ease;
  filter: brightness(0.8);
}

.socials a svg:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}


.project-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;   /* was 90vh */
  margin: 40px 0;     /* tighter spacing */
}



/* Button / Bild Container */
.projectphoto {
  position: relative; /* nötig für das Text-Overlay */
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;

  opacity: 0;
  transform: translateY(100px) scale(1.5);
  filter: blur(5px);
  transition: transform 0.8s ease-out, opacity 0.8s ease-out, filter 0.8s ease-out;
}

/* Aktiv-Klasse für Fly-Up */
.projectphoto.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Bild */
.projectphoto img {
  width: 80%;
  max-width: 1000px;
  border-radius: 12px;
  transition: transform 0.3s ease, filter 0.3s ease, outline 0.3s ease, opacity 0.3s ease;
}

/* Hover Text Overlay */
.project-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* zentriert über dem Bild */
  color: white;
  font-size: 3rem;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  opacity: 0; /* unsichtbar standardmäßig */
  transition: opacity 0.3s ease;
  pointer-events: none; /* Text blockiert keine Klicks auf Button */
}

.projectphoto img:hover + .project-text {
  opacity: 1; /* erscheint nur beim Hover */
}

/* Optional Hover Bild Effekt */
.projectphoto img:hover {
  transform: scale(1.1);
  opacity: 0.9;
  outline: 10px solid white;
  filter: blur(2px);
}


.projectheading {
  font-size: 3rem;
  transform: translateY(100px) scale(1.5);
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
  cursor: pointer;
}

.projectheading.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}