body {
  margin: 0;
  height: 100vh;
  background: url('pics/Hintergrund_Wald1.WEBP') center/cover no-repeat fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Georgia", serif;
  overflow: hidden;
}

.book {
  width: 400px;                 /* Start: nur Coverbreite */
  height: 500px;
  position: relative;
  perspective: 1000px;
  background: none;             
  border-radius: 5px;
  /* overflow: hidden;             /* Versteckt eventuelle Überhänge */
  transition: width 1s ease;    
}




.page {
  width: 400px;           
  height: 500px;
  position: absolute;
  right: 0;               
  top: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 1.5s ease;
  backface-visibility: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  background: linear-gradient(135deg, #fdfbf6 0%, #f3e9d7 100%);
  border: 1px solid #d6c7b4;
  padding: 40px;
  box-sizing: border-box;
}



.cover {
  width: 400px;
  height: 500px;
  position: absolute;
  right: 0;
  top: 0;
  background: url('pics/Sticker_Buch.png') center/cover no-repeat;
  color: rgb(252, 252, 252);
  font-family: "Great Vibes", cursive;
  font-size: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.6);
  z-index: 10;
  transform: rotateY(0deg);         
  backface-visibility: hidden;      
  transform-origin: left center;    
  transition: transform 1.5s ease;  

}
.cover {
  transform: rotateY(0deg);
  backface-visibility: hidden;
  z-index: 10;
}
.cover h1 {
  color: rgb(243, 206, 121);
  font-family: "Great Vibes", cursive;
  font-size: 3rem;
  text-align: center;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.6);
}



.cover { z-index: 10; }
#seite1 { z-index: 9; }
#seite2 { z-index: 8; }
#seite3 { z-index: 7; }
#seite4 { z-index: 6; }


.flipped {
  transform: rotateY(-180deg) translateX(-400px);
  z-index: 0;
}

.book.opened {
  width: 800px;
  height: 500px;
  position: relative;
  perspective: 2000px;
  background: #f1e7de; 
  border-radius: 5px;
}

/* === Sticker + Sprechblase === */
.sticker, .speech {
  position: absolute;
  opacity: 0;
  transform: scale(0.7) rotate(-10deg) translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.sticker.show, .speech.show {
  opacity: 1;
  transform: scale(1) rotate(0deg) translateY(0);
}

.sticker {
  bottom: 20px;
  left: 30px;
  width: 180px;
}

.speech {
  top: 40px;
  right: 50px;
  width: 200px;
}

/* === Über mich + Galerie + Kontakt + Insta === */
.content {
  opacity: 0;
  transition: opacity 1s ease;
  font-size: 9pt;
}
.content.show {
  opacity: 1;
}

.gallery img {
  display: none;
  width: 80%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0.2);
}

.gallery img.active {
  display: block;
  animation: fade 1s ease;
}

@keyframes fade {
  form { opacity: 0; transform: scale(0.95);}
  to { opacity: 1; transform: scale(1);}
}


.yara {
  bottom: 20px;
  left: 40px;
  width: 120px;
  margin-left: 3cm;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input, textarea {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

button {
  padding: 10px;
  border: none;
  background: #c48a3b;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
button:hover {
  background: #a06c2b;
}

.instagram-icon-link {
  display: inline-block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.instagram-icon-link:hover {
  transform: scale(1.1);
}

.instagram-icon {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

#seite2 .content h2,
#seite3 h2,
#seite4 h2 {
  color: rgb(10, 10, 10);
  font-family: "Great Vibes", cursive;
  text-align: center;
}

/* Text auf "Über mich" und "Kontakt" zentrieren */
#seite2 .content p,
#seite4 p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Galerie horizontal zentrieren */
#seite3 .gallery {
  display: flex;          
  justify-content: center; 
  flex-wrap: wrap;        
  gap: 15px;              
}

