/* === Grundlayout & Hintergrund === */
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  line-height: 1.7;
  color: #1e293b;
  background: transparent;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  --site-bg: url('header.jpg'); /* Standardbild */
}

/* === Hintergrundbild unter allen Inhalten === */
body::before {
  content: "";
  position: fixed;
  inset: 0;                     /* top/right/bottom/left = 0 */
  z-index: -1;
  pointer-events: none;
  background-image: var(--site-bg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;       /* volle Höhe, nur links/rechts abgeschnitten */
  background-color: #808080;    /* grauer Rand, falls Bild kleiner */
  background-attachment: fixed; /* fixiert am Viewport */
}

/* Seiten-spezifische Hintergrundbilder */
body.geisswand { --site-bg: url('assets/Geisswand/Geisswand.jpg'); }
body.Warscheneck { --site-bg: url('assets/Warscheneck/Bild1.jpg'); }
body.Sonnstein { --site-bg: url('assets/Sonnstein/Bild1.jpg'); }
body.katzenstein { --site-bg: url('assets/Katzenstein/Katzenstein.jpg'); }
body.Mahdlgupf { --site-bg: url('assets/Mahdlgupf/Bild4.jpg'); }
body.Bischofsmuetze { --site-bg: url('assets/Bischofsmütze/22.jpg'); }

/* Kleine Bildschirme: Bild komplett sichtbar, nicht abschneiden 
@media (max-width: 768px) {
  body::before {
    background-size: contain;    /* alles sichtbar 
    background-position: center top; /* optional: oben ausrichten 
    background-color: #808080;   /* graue Streifen links/rechts 
  }
}

/* === Header transparent === */
header {
  color: white;
  padding: 100px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
  background: transparent;
}

header h1 {
  margin: 0 0 15px;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  font-style: italic;
}

/* === Info Box === */
.info-box {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin: 20px auto;
  max-width: 700px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  position: relative;
  z-index: 1;
}

.info-box h3 {
  margin-top: 0;
  color: #0284c7;
  border-bottom: 2px solid #0ea5e9;
  padding-bottom: 6px;
}

/* === Navigation === */
nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

nav a {
  color: #1e293b;
  background-color: #fff;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

nav a:hover {
  background: #0ea5e9;
  color: white;
  transform: translateY(-2px);
}

/* === Buttons für Touren === */
.tour-liste {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 420px;
  margin: 40px auto;
}

.btn {
  display: block;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: white;
  text-decoration: none;
  padding: 14px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.btn:hover {
  background: linear-gradient(135deg, #1e293b, #334155);
  transform: scale(1.03);
}

/* === Download Buttons === */
.download-container {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.download-btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #007BFF, #0056b3);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.download-btn:hover {
  background: linear-gradient(135deg, #0056b3, #1e293b);
  transform: translateY(-2px);
}

/* === Galerie === */
#gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 30px auto;
  gap: 16px;
}

#gallery img {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

#gallery img:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

/* === Überschriften === */
h2 {
  font-size: 2rem;
  color: #0ea5e9;
  margin: 20px 0 16px;
  text-align: center;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

h3 {
  font-size: 1.4rem;
  color: #0284c7;
  margin: 16px 0 12px;
  font-weight: 600;
  border-bottom: 2px solid #0ea5e9;
  padding-bottom: 4px;
}

h4 {
  font-size: 1.2rem;
  color: #0b1220;
  margin: 14px 0 10px;
  font-weight: 600;
  text-align: left;
  line-height: 1.3;
}

/* === für Bild bei Über mich === */
.tour-image {
  margin: 20px 0;
  text-align: center;
}

.tour-image img {
  max-width: 100%;
  max-height: 600px;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: block;
  margin: 20px auto;
}

/* === Fußzeile immer unten === */
footer {
  margin-top: auto;
  padding: 20px;
  background: #1e293b;
  text-align: center;
  font-size: 0.9rem;
  color: #e2e8f0;
}

/* === Responsive Anpassungen === */
@media (max-width: 768px) {
  header {
    padding: 60px 20px;
  }
  header h1 {
    font-size: 2rem;
  }

  .info-box {
    padding: 15px;
    margin: 15px 10px;
  }

  .tour-liste {
    max-width: 100%;
    margin: 20px 10px;
  }

  .btn, .download-btn {
    font-size: 14px;
    padding: 10px;
  }

  nav {
    flex-direction: column;
    gap: 10px;
  }

  #gallery img {
    width: 80vw;
    height: auto;
  }
}
