* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: rgb(126, 152, 112);
  background-attachment: fixed;
  min-height: 100vh;
  font-family: Verdana, Arial, sans-serif;
  overflow-x: hidden;
}

 
:root {
  
  --grid-color: rgb(91, 117, 78);
  --glass-border: rgba(255,255,255,0.28);
  --titlebox-border: rgb(81, 108, 67);
  --titlebox-bg: rgb(106, 137, 91); 
  --text-main: rgba(255, 255, 255, 0.92);
}

/* =========================
   HEADER
========================= */

#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  z-index: 1000;
  padding-bottom: 8px;
}

/* Banner nur auf Mobile/Tablet verstecken */
.banner-wrapper {
  display: none;
}

/* =========================
   SR-ONLY (visuell versteckt, für Screenreader sichtbar)
========================= */
 
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* =========================
   BURGER MENU
========================= */

#menu-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.burger {
  display: none;
  padding: 0 16px;
  cursor: pointer;
  background: #026202;
  color: #000000;
  text-align: center;
  user-select: none;
  border: 2px solid #000;
}

/* =========================
   NAV (Mobile default — versteckt)
========================= */

#nav {
  display: none;
}

/* =========================
   PAGE WRAPPER
========================= */

#page {
  width: 100%;
  max-width: 2190px;
  margin: 5px auto 0 auto;
  background: none;
  padding-top: 44px;
}

/* =========================
   GRID — Desktop 4 Spalten (1200–2189px)
========================= */

#grid {
  display: grid;
  
  padding-right: clamp(29px, 2.42vw, 53px);
  padding-bottom: clamp(29px, 2.42vw, 53px);
  padding-left: clamp(29px, 2.42vw, 53px);
  overflow: visible;
  background: rgb(91, 117, 78);  
}

#grid img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  border: 2px solid #000;
  width: 100%;
}

/* =========================
   IMPRESSUM-INHALT (Text ohne Bild, aus Detailseite übernommen)
========================= */

.impressum-wrap {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 4px;
}

.impressum-wrap a {
  color: inherit;
  text-decoration: underline;
}

.page-title {
  width: 100%;
  margin: 0 0 14px 0;
  color: var(--text-main);
  font-weight: 700;
  text-align: left;
  font-size: clamp(18px, 5vw, 24px);
  line-height: 1.3;
}

.det-label {
  width: 100%;
  margin: 0;
  margin-top: 14px;
  
  font-size: inherit;
  color: var(--text-main);
  font-weight: 700;
  font-size: clamp(15.95px, 1.34vw, 29.59px);
  
}

.det-text {
  width: 100%;
  margin: 0;
  margin-top: 1px;
  color: var(--text-main);
  line-height: 1.5;
  font-size: clamp(13.63px, 1.14vw, 25.30px);
  margin-top: 7px;
  margin-bottom: 8px;
  overflow-wrap: normal;   
  word-break: normal;          
  hyphens: auto;               
  -webkit-hyphens: auto;     
}

.det-h2,
.det-h3 {
  width: 100%;
  margin: 0;
  margin-top: 14px;   /* <-- X: gleicher Wert wie .det-label */
  margin-bottom: 1px; /* <-- Y: gleicher Wert wie margin-top auf .det-text */
  font-size: inherit;
  color: var(--text-main);
  font-weight: 700;
  line-height: inherit;
  text-align: left; 
  font-size: clamp(14.36px, 1.21vw, 26.63px);
} 

ul.det-liste li {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

ul.det-liste {
    margin-bottom: 1em; /* Passe diesen Wert an den Abstand deines .det-text an */
    padding-left: 20px; /* Sorgt dafür, dass die Punkte sauber eingerückt sind */
}

/* =========================
   BILDERGALERIE (am Textende, 1–2 Bilder)
========================= */

.det-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24.79px, 3.54vw, 49.56px);
  width: 100%;
  margin-top: 16px;
  padding-left: 5px;
  padding-right: 5px;
}

/* Einzelnes Bild: ab Tablet (>600px) zentrieren statt linksbündig */
@media (min-width: 601px) {
  .det-gallery:has(.det-gallery-item:only-child) {
    grid-template-columns: minmax(0, 48%);
    justify-content: center;
  }
}

/* Einzelnes Bild im Tablet-Bereich etwas größer als die Desktop-Breite */
@media (min-width: 601px) and (max-width: 1199px) {
  .det-gallery:has(.det-gallery-item:only-child) {
    grid-template-columns: minmax(0, 95%);
    justify-items: center;
  }

  #grid .det-gallery:has(.det-gallery-item:only-child) img {
    width: auto;
    max-width: 100%;
  }
}

/* Einzelnes Bild im Desktop-Bereich: so groß wie möglich, aber nie über die Originalgröße hinaus */
@media (min-width: 1200px) {
  .det-gallery:has(.det-gallery-item:only-child) {
    grid-template-columns: minmax(0, 1fr);
    justify-content: center;
    justify-items: center;
  }

  #grid .det-gallery:has(.det-gallery-item:only-child) img {
    width: auto;
    max-width: 100%;
  }
}

.det-gallery-item {
  margin: 0;
  /* Grid-Spalte behält ihre Breite auch bei nur einem Bild bei */
}

#grid .det-gallery img {
  max-width: 100%;
  width: 100%;
  margin: 0;
}

.det-gallery figcaption {
  margin-top: 0;
  color: var(--text-main);
  font-size: clamp(13.63px, 1.14vw, 25.30px);
  line-height: 1.5;
  text-align: center;
}

/* =========================
   RESPONSIVE < 1200px (Tablet)
========================= */

@media (max-width: 1199px) {

  #header {
    width: 100%;
  }

  
  #page {
    width: 100%;
    margin: 0;
    padding-top: 52px;
  }

   .page-title { 
    font-size: 19px;
    margin-top: 14px; 
    text-align: left;
    padding-bottom: 0; 
    margin-bottom: 0;
 }
   
    #footer a:hover {
    background: none;
    color: #dfdfdf;
  }
 
  #grid {
    padding-top: 0;
    padding-right: 15px;
    padding-bottom: 15px;
    padding-left: 15px;
    }

  .impressum-wrap {
    max-width: 100%;
    padding: 0 4px;
  }

  
  .det-text {
    font-size: 16px;
  }

   .det-label,
   .det-h2,
  .det-h3 {
    font-size: 17px;
  }

 
   .det-gallery figcaption {
  margin-top: 1px;
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

  .burger {
    display: block;
    height: 52px;
    display: flex;
    color: rgba(255, 255, 255, 0.90);
    align-items: center;
    justify-content: center;
    font-size: 30px;
    background: rgb(62, 81, 54);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  }

  #nav a:hover {
    background: none !important;
  }


  #nav {
    display: none;
    flex-direction: column;
    background: rgb(126, 152, 112);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    position: relative;
    z-index: 999;
  }

  #nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(126, 152, 112);
    color: #000000;
    font-size: 16px;
    border: none;
    border-bottom: 2px solid rgba(58, 79, 50, 0.8);
    max-width: 100%;
    text-decoration: none;
  }
   

  #nav a:first-child {
    border-top: none;
  }

  #nav a:last-child {
    border-bottom: 2px solid rgba(58, 79, 50, 0.8);
  }

 
  #menu-toggle:checked + .burger + #nav {
    display: flex;
  }
}

/* =========================
   MOBILE < 600px
========================= */

@media (max-width: 600px) {

  #header {
    width: 100%;
  }

  #page {
    margin: 0;
    padding-top: 48px;
    width: 100%;
  }

   .det-gallery {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  

 #footer a:hover {
    background: none;
    color: #dfdfdf;
  }
  
  #grid {
    grid-template-columns: repeat(2, 1fr);
    padding-top: 0;
    padding-right: 10px;
    padding-bottom: 15px;
    padding-left: 10px;
    
}  

  .burger {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 29px;
    color: var(--text-main);
  }
 

  .det-text {
    font-size: 16px;
  }

   .det-label,
   .det-h2,
  .det-h3 {
    font-size: 18px;
  }

}

/* =========================
   DESKTOP ab 1200px
========================= */

@media (min-width: 1200px) {

     
   #grid {
   padding-top: 13px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25),
              inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  margin-top: 0; 
  }

  .banner-wrapper {
    display: block;
    position: relative;
    width: 100%;
    max-width: 2190px;
    margin: 0 auto;
  }

  .banner-wrapper img {
    width: 100%;
    height: clamp(107.77px, 10.563vw, 199.53px);
    object-fit: cover;
    object-position: center;
    display: block;
    border-top: 2px solid #000;
    border-left: 2px solid #000;
    border-right: 2px solid #000;
    border-bottom: none;
  }
 
    .impressum-wrap {
    max-width: 1800px;
    padding-top: 6px;
  }
  
   #page {
  padding-top: clamp(124.08px, 12.047vw, 223.73px);
}

   #footer {
  width: 100%;
  max-width: 2190px;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25),
              inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}
    #footer a:hover {
  background: rgb(104, 128, 93); 
  }

  
  #header {
    padding-bottom: 0;
    padding-top: 0;
    }

  .page-title {
    font-size: clamp(16.03px, 1.599vw, 29.38px);
    padding-bottom: 0;
  }
 
  #nav {
  display: flex;
  justify-content: center;
  height: clamp(23.85px, 1.99vw, 43.73px);
  margin-bottom: 2px;
  background: rgb(61, 78, 53);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25),
  inset 0 -1px 0 rgba(255, 255, 255, 0.06);           
}

  #nav a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(12.82px, 1.08vw, 23.80px);
  color: var(--text-main);
  border-right: 2px solid rgb(81, 106, 70);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
  padding-bottom: 0;
  
}
 
  #nav a:last-child {
    border-right: none;
  }

  #nav a:hover {
  background: rgb(104, 128, 93);
  color: #fff;
}
  .nav-inner {
  display: flex;
  width: 100%;
  max-width: none;
}
}
@media (min-width: 1200px) and (max-width: 2189px) {
  #grid {
   
    padding-left: clamp(33.6px, 3.36vw, 67.2px);
    padding-right: clamp(33.6px, 3.36vw, 67.2px);
    padding-bottom: 24px; 
  }

  
}

/* Grid — 8 Spalten ab 2190px Viewport */
@media (min-width: 2190px) {
  #grid {
    
     padding-left: 28px;
    padding-right: 28px;  
}

  .impressum-wrap {
    max-width: 1900px;
  }

  .det-label,
  .det-text,
  .det-h2,
  .det-h3 {
    font-size: clamp(18px, 1.2vw, 30px);
    line-height: 1.5;
  }
  
  

  #nav {
    max-width: 2190px;
    margin-left: auto;
    margin-right: auto;
  }

    #footer {
    width: 92%;
    max-width: 2190px;
    left: auto;
    transform: none;
    margin: 0 auto;
  }   

}

/* =========================
   FOOTER
========================= */

#footer {
  display: flex;
  height: clamp(30px, 2.5vw, 55px);
  background: rgb(61, 78, 53);
  font-size: clamp(15px, 1.25vw, 27px);
  
  }

#footer a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #dfdfdf;
}

#footer a:first-child {
  border-right: 2px solid var(--grid-color);
}



