
/* Globale Styles – gelten für alle Seiten */

:root {
  --nav-h: 56px;
}

/* Allgemeines Layout (Default-Seiten) */
body.default {
  font-family: sans-serif;
  max-width: 800px;
  margin: auto;
  padding: 20px;
  background-color: #fdfdfd;
  color: #333;
}

/* Landing-Page */
body.landing {
  margin: 0;
  padding: 0;
  max-width: 100%;
  height: 100vh;
  background-image: url("/static/images/Kaser.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: white;
}

/* Overlay auf Landing */
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; 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;
}

/* Header */
h1 { text-align: center; margin-top: 0; }

/* Link zur Buch-Ansicht auf Landing */
.gipfel-link {
  font-size: 1.5rem;
  background-color: #ffffffcc;
  color: black;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  margin-top: 1rem;
  transition: transform 0.2s;
}
.gipfel-link:hover { transform: scale(1.05); background-color: #fff; }

/* Formulare (global) */
form p { margin-bottom: 15px; }
input[type="text"], input[type="email"], textarea, input[type="file"] {
  width: 100%; padding: 8px; box-sizing: border-box;
}
textarea[name="comment"] { height: 120px; resize: vertical; }
input[type="submit"] {
  background-color: #007bff; color: white; padding: 10px 20px;
  border: none; cursor: pointer; border-radius: 5px;
}
input[type="submit"]:disabled { background-color: #aaa; cursor: not-allowed; }
small { font-size: 0.85em; color: #555; }

/* (Globaler) Footer – wird bei speziellen Layouts ggf. nicht genutzt */
footer {
  display: none;
  text-align: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  position: fixed;
  bottom: 0; width: 100%;
}

/* Navigation (Navbar aus base.html) */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 10000;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: flex-start;
  padding: 0 .75rem;
  background: rgba(106, 66, 31, 0.9);
  backdrop-filter: blur(4px);
}
.nav-toggle {
  display: none; background: transparent; border: none;
  color: #deb887; font-size: 1.5rem; cursor: pointer; margin-right: 1rem;
}
.nav-links { display: flex; gap: 1rem; flex: 1; justify-content: center; }
.nav-links a, .nav-links a:visited {
  color: #deb887; text-decoration: none; font-weight: normal;
  padding: .5rem 1rem; border-radius: 6px;
}
.nav-links a:hover { text-decoration: underline; }

/* Abstand für den Seiteninhalt wegen fester Navbar */
main { padding-top: calc(var(--nav-h) + 8px); }

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: rgba(106, 66, 31, 0.95); padding: 0.5rem 0;
  }
  .nav-links a { display: block; width: 100%; padding: 0.8rem; text-align: center; }
  .nav-links.open { display: flex; }
}