/* Datei: startseite.css */

/* Standard/Desktop-Ansicht */
body.landing {
  margin: 0;
  padding: 0;
  max-width: 100%;
  min-height: 100vh;
  background-image: url("/static/images/Kaser.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: white;
  font-family: sans-serif;
}

/* Overlay für Text auf Hintergrund */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 2rem;
  z-index: 1;
}

/* Haupttitel */
h1 {
  text-align: center;
  margin-top: 0;
  font-size: 3rem;
  color: white;
}

/* Button zum Gipfelbuch */
.gipfel-link {
  background-color: #8c6b41;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-family: 'EB Garamond', serif;
  font-size: 1.3rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s ease;
  display: inline-block;
}

.gipfel-link:hover {
  background-color: #7a5a38;
}

/* Footer */
.page-footer {
  text-align: center;
  background-color: rgba(96, 72, 48, 0.9);
  padding: 1rem 0;
  color: #fef9f5;
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  margin-top: 2rem;
  border-top: 1px solid #c4b49a;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.page-footer a {
  color: #f5e5c8;
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.2s ease;
}

.page-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* --- Mobile Optimierung --- */
@media (max-width: 768px) {
  body.landing {
    background-position: 25% center; /* Fokus leicht nach links (zeigt Gipfelkreuz) */
    background-attachment: scroll;   /* verhindert Springen beim Scrollen auf Mobilgeräten */
  }

  h1 {
    font-size: 2rem;
    padding: 0 1rem;
  }

  .gipfel-link {
    font-size: 1.2rem;
    padding: 0.6rem 1.2rem;
  }

  .overlay {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  body.landing {
    background-position: 20% center; /* noch etwas stärker nach links für kleine Handys */
  }

  h1 {
    font-size: 1.6rem;
  }

  .gipfel-link {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
}
