﻿/* ==============================
   Grundlayout
============================== */

* {
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #e6e6e6;
  margin: 0;
  line-height: 1.6;
  overflow-y: scroll;   /* verhindert Layout-Sprung */
}

#wrapper {
  max-width: 1300px;
  margin: 0 auto;
  background: #FFFFFF;
  padding: 0;
  /* ==============================
     0px → kein Schatten nach links/rechts
     10px → Schatten nach unten
     25px → weiche Unschärfe
     rgba(0,0,0,0.25) → transparenter schwarzer Schatten
     Das erzeugt zwei Schattenebenen und wirkt deutlich räumlicher.
  ============================== */
  box-shadow: 0 5px 10px rgba(0,0,0,0.15), 0 15px 40px rgba(0,0,0,0.25);
}

/* ==============================
   Header und Navigation
============================== */

header {
  background: linear-gradient(to bottom, #011f01 0%, #024c02 50%, #011f01 100%);
  color: white;
  padding: 0;
  margin: 0;
  position: relative;
}

header h1 {
  margin: 0;
  text-align: right;
  padding: 20px 30px 0 0;
}

nav {
  width: 100%;
  border-top: 1px solid white;
  border-bottom: 1px solid white;
  background: linear-gradient(to bottom, #4f7a35, #2f4a1f);
  margin: 0;
  padding: 3px 0;
  position: relative;
  z-index: 1000;
}

nav ul {
  display: flex;
  gap: 20px;
  padding: 0 0 0 80px; /* linker Abstand */
  margin: 0;
  list-style: none;
  align-items: center;
}

nav li {
  display: inline;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: normal;
  padding: 5px 20px;
  display: block;
  border-radius: 4px;
  transition: background 0.2s;
}

nav a:hover,
nav a.active {
  background: rgba(255, 255, 255, 0.15);
}

/* ==============================
   Einheitliche Header-Fix für alle Seiten
============================== */

body.ausstattung header,
body.bilder header,
body.index header,
body.ausflugsziele header {
  min-height: 135px;  /* Feste Höhe für den Header */
}

body.ausstattung nav,
body.bilder nav,
body.index nav,
body.ausflugsziele nav {
  position: relative;
  top: 40px;  /* Gleicher Abstand für Navigation */
}

body.ausstattung header h1,
body.bilder header h1,
body.index header h1,
body.ausflugsziele header h1 {
  position: relative;
  top: 40px;  /* Gleicher Abstand für h1 */
  margin: 0;
  padding: 0 30px 0 0;  /* Konsistente Abstände */
}



/* ==============================
   Slider
============================== */

#slider {
  margin: 0;
}

#slider {
  position: relative;
  height: 350px;
  overflow: hidden;
  margin: 0;
}

#slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 350px;
  object-fit: cover;

  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

#slider .active {
  opacity: 1;
  z-index: 2;
}

#slider1 {
  margin: 0;
}

#slider1 img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
  margin: 0; /* direkt unter Navigation */
}


/* ==============================
   Content + Sidebar
============================== */

#content-wrapper{
  display:flex;
}

#main-content{
  width:70%;
  padding:20px;
}

#sidebar{
  width:30%;
  background:#f4f4f4;
  padding:10px;
  border-left:1px solid #ccc;
}

/* Überschriften im Content */
#main-content h1,
#main-content h2,
#main-content h3,{
  margin-top:0px;
}

#main-content h4 {
  margin-top:0px;
}

#main-content h2 {
  margin-top: 0px;
  margin-bottom: 10px;
  font-size: 20px;
}

#main-content h5 {
  margin-top: 0px;
  margin-bottom: -10px;
  font-size: 15px;
}

#main-content h6 {
  margin-top: 0px;
  margin-bottom: -25px;
  font-size: 18px;
  color: #3c5a2a;
}

/* ==============================
   Sidebar nur Liste ohne Attraktionen
============================== */

.info-list {
  list-style: none;
  padding-left: 0;
}

.info-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
}

.info-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #3c5a2a;
  font-weight: bold;
}

/* ==============================
   Sidebar Attraktionen
============================== */

.attraction{
  margin-bottom:5px;
  padding-bottom:5px;
  border-bottom:3px solid #ddd;
}

.attraction a{
  font-weight:bold;
  text-decoration:none;
  color:#3c5a2a;
}

.attraction p{
  margin:5px 0;
  font-size:12px;
}



/* ==============================
   Footer-Karussell
============================== */

#footer-gallery-container{
  padding:5px;
  background:#f9f9f9;
  margin-top:0px;
  text-align:center;
}

.carousel-wrapper{
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  width:100%;
}

.carousel{
  overflow:hidden;
  flex:1;
}

.carousel-inner{
  display:flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.carousel-inner img{
  width:25%; /* 4 Bilder nebeneinander */
  flex-shrink:0;
  height:150px;
  object-fit:cover;
  border:1px solid #ccc;
  cursor:pointer;
}

/* Buttons */
.carousel-btn{
  background:#3c5a2a;
  color:white;
  border:none;
  padding:10px 15px;
  cursor:pointer;
  font-size:20px;
  margin:0 5px;
}

.carousel-btn:hover{
  background:#6b8e23;
}

/* Footer */
footer{
  background:#333;
  color:white;
  text-align:center;
  padding:5px;
  font-size:12px;
}

footer a{
  color:#ddd;
  text-decoration:none;
  margin:0 15px;
}

footer a:hover{
  text-decoration:underline;
}

/* ==============================
   Cookie Banner
============================== */

#cookie-banner{
  position:fixed;
  bottom:20px;
  right:20px;
  width:250px;
  background:#f4f7f1;
  border:1px solid #cdd5c6;
  border-radius:8px;
  box-shadow:0 4px 12px rgba(0,0,0,0.15);
  padding:15px;
  font-size:13px;
  line-height:1.4;
  z-index:1000;
}

#cookie-banner p{
  margin:0 0 10px 0;
  color:#333;
}

#cookie-banner a{
  color:#3c5a2a;
  text-decoration:none;
  font-weight:bold;
}

#cookie-banner a:hover{
  text-decoration:underline;
}

#cookie-banner button{
  background:#3c5a2a;
  color:white;
  border:none;
  padding:6px 14px;
  border-radius:4px;
  cursor:pointer;
  font-size:13px;
}

#cookie-banner button:hover{
  background:#6b8e23;
}

/* ==============================
   Ausstattung
============================== */

.equipment-item{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:35px;
  margin-left:15px;
  margin-right:15px;
}

.equipment-img{
  flex:1;
}

.equipment-img img{
  width:220px;
  height:150px;
  object-fit:cover;
  border-radius:6px;
  border:1px solid #ccc;
  cursor:pointer;
  transition:transform 0.3s;
}

.equipment-img img:hover{
  transform:scale(1.05);
}

.equipment-text{
  flex:2;
}

.equipment-text h4{
  margin-top:0;
  margin-left:15px;
  color:#3c5a2a;
}

.equipment-text p{
  margin-left:15px;
  font-size:13px;
}



/* ==============================
   Lightbox modern
============================== */

#lightbox{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.6);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

#lightbox.show{
  display:flex;
}

/* Rahmen */

#lightbox-box{
  background:#111;
  border-radius:8px;
  max-width:1300px;
  width:90%;
  box-shadow:0 10px 40px rgba(0,0,0,0.7);
  overflow:hidden;
  color:white;
}

/* Header */

#lightbox-header{
  text-align:right;
  padding:10px 15px;
  background:linear-gradient(to bottom, #000000 0%, #000000 40%, #656565 100%);
}

#lightbox-close{
  font-size:28px;
  cursor:pointer;
}

/* Bildbereich */

#lightbox-image-area{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#000;
}

#lightbox-img{
  max-width:100%;
  max-height:100%;
  opacity:1;
  transition:opacity 0.35s ease;
}

/* Pfeile */

#lightbox #prev,
#lightbox #next{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  font-size:32px;
  background:rgba(46,127,2,0.8);
  color:white;
  border:none;
  padding:10px 14px;
  cursor:pointer;
}

#lightbox #prev{ left:10px; }
#lightbox #next{ right:10px; }

#lightbox #prev:hover,
#lightbox #next:hover{
  background:rgba(91,139,68,0.5);
}

/* Textbereich */

#lightbox-footer{
  padding:12px 15px;
  background:linear-gradient(to bottom, #5a5a5a 0%, #000000 50%, #000000 100%);
  text-align:center;
}

#lightbox-caption{
  margin:0;
  font-size:15px;
}

/* ==============================
   Galerie
============================== */

.gallery{
  display:flex;
  flex-wrap:wrap;
  gap:15px;
}

.gallery a{
  width:calc(33.333% - 10px);
}

.gallery img{
  width:100%;
  height:160px;
  object-fit:cover;
  border-radius:6px;
  border:1px solid #ccc;
  cursor:pointer;
  transition:transform 0.3s;
}

.gallery img:hover{
  transform:scale(1.05);
}

/* ==============================
   Kontaktseite
============================== */

body.kontakt #content-wrapper {
  display: block;        /* Flexbox deaktivieren, damit main-content volle Breite hat */
}

body.kontakt #main-content {
  width: 100%;           /* volle Breite */
  margin: 0;
  padding: 20px;
}

body.kontakt #sidebar {
  display: none;         /* Sidebar ausblenden */
}

body.kontakt #footer-gallery-container {
  display: none;         /* Footer-Karussell ausblenden */
}

body.kontakt header {
  min-height: 135px;      /* feste Höhe für Header */
}

body.kontakt nav {
  position: relative;
  top: 40px;  
}

body.kontakt header h1 {
  position: relative;
  top: 40px;  
  margin: 0;
  padding: 0 30px 0 0;  
}

/* ==============================
   Ausflugsziele Seite
============================== */

#attractions-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 20px;
}

.attraction-large {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 20px;
}

.attraction-large img {
  width: 350px;
  height: 170px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.attraction-large-text {
  flex: 1;
}

.attraction-large-text h3 {
  margin-top: 0;
  color: #3c5a2a;
}

.attraction-large-text a {
  text-decoration: none;
  color: #3c5a2a;
}

.attraction-large-text a:hover {
  text-decoration: underline;
}

.attraction-large-img-right {
  flex-shrink: 0;
  width: 260px;
  height: 170px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ccc;
}

body.ausflugsziele #sidebar {
  display: none;
}

body.ausflugsziele #main-content {
  width: 100%; 
}

body.ausflugsziele header {
  min-height: 135px;  
}

body.ausflugsziele nav {
  position: relative;  
  top: 40px;  
}

body.ausflugsziele header h1 {
  position: relative;
  top: 40px;  
  margin: 0;
  padding: 0 30px 0 0;  
}

/* ==============================
   Responsive Design
============================== */

@media (max-width: 900px) {
  #content-wrapper {
    flex-direction: column;
  }

  #sidebar {
    border-left: none;
    border-top: 1px solid #ccc;
  }

  .carousel-inner img {
    width: 50%;
  }
}

@media (max-width: 700px) {
  #calendar-multiple {
    flex-direction:column;
    padding-left: 40px;
  }

  #booking-form {
    flex-direction:column;
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    gap: 1px;
    padding-left: 10px;
  }

  #slider .slide {
    height: 280px;
  }
    
  .carousel-inner img {
    width: 100%;
  }

  .gallery a {
    width:calc(100% - 10px);
  }

  .gallery img {
    height:150px;
    width: 250px;
}


  .equipment-item {
    flex-direction: column;
    align-items: stretch;   /* WICHTIG */
    margin-left: 10px;
    margin-right: 10px;
  }

  .equipment-img {
    width: 100%;
  }

  .equipment-img img {
    width: 100%;
    height: auto;
    max-width: 100%;   /* verhindert Überlaufen */
    display: block;
  }

  .equipment-text {
    width: 100%;
    padding: 0;
  }

  .equipment-text h4,
  .equipment-text p {
    margin-left: 0;
  }
}
