/* =========================================
   1. GRUNDGERÜST & HINTERGRUND
   ========================================= */
body {
  background-color: #bd877e; 
  margin: 0;
  color: #9c564b; 
  font-family: sans-serif;
}

/* =========================================
   2. HEADER & LOGO
   ========================================= */
.header-section {
  height: 33vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
  margin-bottom: 50px;
}

.logo-wrapper {
  position: relative;
  text-align: center;
}

.main-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 70px;
  margin: 0;
  text-transform: uppercase;
  text-shadow: 1px 1px 0px rgba(255,255,255,0.3);
}

.friendship-tag {
  font-family: 'Satisfy', cursive;
  font-size: 38px; 
  color: #9c564b;
  position: absolute;
  top: 50px;       
  right: -100px;   
  transform: rotate(-25deg);
  white-space: nowrap;
}

/* =========================================
   3. NAVIGATION (SIDEBAR)
   ========================================= */
.sidebar {
  width: 200px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: fixed;
  left: 20px;     
  top: 33vh;      
  z-index: 100;
}

.nav-link {
  text-decoration: none;
  color: #9c564b;
  font-weight: bold;
  font-size: 20px;
  cursor: pointer;
}

/* =========================================
   4. HAUPTBEREICH ALLGEMEIN
   ========================================= */
.main-content {
  margin-left: 220px; 
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#home-content, #about-content, #books-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* =========================================
   5. STARTSEITE (POLAROIDS & TEXT)
   ========================================= */
.polaroid-gallery {
  display: flex !important;           /* Zwingt die Bilder nebeneinander */
  flex-direction: row !important;     /* In einer Reihe */
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 60px;
  width: 100%;
}

.polaroid {
  background: white;
  padding: 15px 15px 30px 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  width: 180px;                       /* Etwas schmaler, damit sie gut nebeneinander passen */
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
}

.polaroid img { 
  width: 100%; 
  height: auto; 
  display: block;
}

.polaroid p { 
  font-family: 'Satisfy', cursive; 
  margin-top: 10px; 
  font-size: 20px;
  color: #9c564b;
}

/* Drehung UND Überlappung (Negative Margins) */
.p1 { transform: rotate(-8deg); margin-right: -30px; z-index: 1; }
.p2 { transform: rotate(2deg);  margin-right: -30px; z-index: 2; }
.p3 { transform: rotate(-4deg); margin-right: -30px; z-index: 3; }
.p4 { transform: rotate(6deg);  z-index: 4; }

/* HOVER-EFFEKT: Springt nach vorne, richtet sich gerad aus */
.polaroid:hover {
  transform: scale(1.15) rotate(0deg) translateY(-15px) !important;
  z-index: 20 !important;             /* Legt das gehoverte Bild ÜBER alle anderen */
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.intro-text {
  max-width: 600px;
  margin: 0 auto;
}

.intro-text p {
  background: rgba(255, 255, 255, 0.4); 
  padding: 30px; 
  border-radius: 20px;
  line-height: 1.8;
}

.motto {
  font-family: 'Satisfy', cursive;
  font-size: 42px;
  text-align: center;
}

/* =========================================
   6. ÜBER UNS (COCO & NINA)
   ========================================= */
.about-row, .about-row-nina {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 30px !important; 
  margin-bottom: 20px !important; 
  width: 100%;
  max-width: 1000px;
}

.about-info-text {
  flex: 1;
  max-width: 350px;
  background: rgba(255, 255, 255, 0.4);
  padding: 25px;
  border-radius: 20px;
}

.about-info-text h3 {
  font-family: 'Satisfy', cursive;
  font-size: 28px;
  margin: 0 0 0px 0;
}

.about-row .about-info-text { text-align: right !important; }
.about-row .about-info-text h3 { text-align: right !important; }

.about-row-nina .about-info-text { text-align: left !important; }
.about-row-nina .about-info-text h3 { text-align: left !important; }

.polaroid-stack, .polaroid-stack-nina {
  position: relative;
  width: 320px; 
  height: 350px;
  flex-shrink: 0;
}

.polaroid.small {
  width: 180px;
  position: absolute;
  background: white;
  padding: 10px 10px 25px 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.p-coco-1 { top: 0; left: 0; transform: rotate(-10deg); z-index: 1; }
.p-coco-2 { top: 70px; left: 110px; transform: rotate(20deg); z-index: 2; }

.p-nina-1 { top: 0; right: 110px; left: auto !important; transform: rotate(-10deg); z-index: 1; }
.p-nina-2 { top: 80px; right: 0; left: auto !important; transform: rotate(20deg); z-index: 2; }

/* =========================================
  /* BÜCHER */
.books-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1000px; width: 100%; margin-top: 40px; }
.book-item { position: relative; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,0.3); cursor: pointer; transition: transform 0.3s ease; background-color: #fff; }
.book-item:hover { transform: translateY(-10px); }
.book-item img { width: 100%; height: auto; display: block; }

.book-overlay { 
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
  background: rgba(156, 86, 75, 0.95); color: white; 
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; 
  padding: 15px; box-sizing: border-box; opacity: 0; visibility: hidden; 
  transition: all 0.3s ease; z-index: 5; 
}
.book-item:hover .book-overlay { opacity: 1 !important; visibility: visible !important; }

.overlay-content { width: 100%; height: 100%; display: flex; flex-direction: column; }
.overlay-content h3 { font-family: 'Satisfy', cursive; font-size: 18px; margin: 5px 0 10px 0; text-align: center; }
.summary { font-family: 'Montserrat', sans-serif; font-size: 12px; line-height: 1.4; text-align: center; overflow-y: auto; margin-bottom: 10px; flex-grow: 1; }
.click-hint { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; font-weight: bold; text-align: center; margin-top: auto; border-top: 1px solid rgba(255,255,255,0.3); padding-top: 10px; }

/* 8. KONTAKT SEITE */
.contact-container {
  max-width: 500px;                 /* HIER GEÄNDERT: War 600px, jetzt schmaler */
  width: 85%;                       /* Nimmt etwas weniger Gesamtbreite ein */
  background: rgba(255, 255, 255, 0.4);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  box-sizing: border-box;
  margin-left: 40px;                /* SCHIEBT DEN KASTEN NACH RECHTS: Erzeugt links den Spalt */
}

.contact-intro {
  margin-bottom: 30px;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(156, 86, 75, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  font-family: 'Montserrat', sans-serif;
  color: #9c564b;
  box-sizing: border-box;
}

.send-button {
  background-color: #9c564b;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.send-button:hover {
  background-color: #bd877e;
}

.contact-info {
  margin-top: 30px;
  font-size: 0.9em;
  border-top: 1px solid rgba(156, 86, 75, 0.2);
  padding-top: 20px;
}

/* =========================================
   SHOP-BUTTONS (FÜR DIE BÜCHER-OVERLAYS)
   ========================================= */
.shop-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 8px 0;
}

.shop-btn {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Amazon-Button */
.shop-btn.amazon {
  background-color: #ffffff;
  color: #9c564b;
}

.shop-btn.amazon:hover {
  background-color: #f7edea;
  transform: translateY(-2px);
}

/* Thalia-Button */
.shop-btn.thalia {
  background-color: #ffffff;
  color: #9c564b;
}

.shop-btn.thalia:hover {
  background-color: #f7edea;
  transform: translateY(-2px);
}