/* ==========================================
   1. STRUKTUR & GLOBALER SEITEN-WRAPPER 
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

.global-page-container {
  width: 100%;
  max-width: 1280px;
  position: relative;
  background: #ffffff;
}

/* ==========================================
   2. HEADER 1 (Bild waagerecht)
   ========================================== */
#header1 {
  width: 100%;
  height: 200px !important;
  position: relative;
}

.global-page-container > .hamburger-box {
  position: absolute;
  top: 165px;
  bottom: auto;
  left: 10px;
}

#header1 .image-container {
  display: block !important;
  width: 100%;
  height: 200px !important;
}

#header1 .image-container img.imgbox {
  display: block !important;
  width: 100% !important;
  height: 200px !important;
  max-width: none !important;
  flex: none !important;
  object-fit: cover;
  object-position: center 46%;
}

/* HAMBURGER-BOX */
.hamburger-box {
  position: absolute;
  top: 165px;
  left: 10px;
  z-index: 2500;
  width: 110px;
  height: 15px;
}

.hamburger {
  background: transparent; 
  border: none;
  cursor: pointer;
  width: 140px;
  height: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hamburger-label {
  font-size: 16px;
  color: #ffffff;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8), -1px -1px 3px rgba(0, 0, 0, 0.8);
  white-space: nowrap; 
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bar {
  width: 28px;
  height: 3px;
  background: #ffffff;
  display: block;
  border-radius: 2px;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* ==========================================
   3. OVERLAY-MENÜ
   ========================================== */
.menu-overlay {
  position: fixed;
  top: 0;
  left: auto;
  font-size: 14px;
  width: 130px;
  height: auto;
  background: #B7FBB9; 
  z-index: 3000;
  display: none;
}

.menu-overlay.active {
  display: block; 
}

.menu-content {
  width: 130px;
  height: auto;
  background: #B7FBB9;          
  border-right: 2px solid #444444;
  box-shadow: 4px 0 15px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 20px;
  background: #B7FBB9;           
  border-bottom: 2px solid #589B42;
}

.menu-title {
  font-size: 16px;
  font-weight: bold;
  color: #000;               
}

.menu-close {
  font-size: 16px;
  cursor: pointer;
  color: #000;                
  font-weight: bold;
}

.menu-main {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: transparent;
}

.menu-main > li {
  border: 0;
  background: transparent;
}

.menu-main > li > a,
.menu-main > li > .sub-toggle {
  text-decoration: none;
  color: #000;                
  cursor: pointer;
  font-size: 12px;
  display: block;
  width: 100%;
  padding: 5px 20px;
  text-align: left;
  box-sizing: border-box;
  margin: 0;
  border: 1px solid #589B42;
  border-radius: 8px;
  background: #B7FBB9;
}

.submenu {
  display: none;
  padding-left: 5px;
  background: #D8FEDA;          
  list-style: none;
}

.submenu.open {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 2px 0 2px 8px;
  background: transparent;
}

#overlayMenu .menu-main > li > ul.submenu.open {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  visibility: visible !important;
}

.submenu li {
  border: 0;
  background: transparent;
}

.submenu li a {
  box-sizing: border-box;
  padding: 4px 12px;
  border: 1px solid #589B42;
  border-radius: 6px;
  background: #D8FEDA;
  font-size: 11px;
  color: #000;
  text-decoration: none;
  display: block;
}

.submenu li a:hover {
  color: #000;               
  background: #D8FEDA;
}

@media (max-width: 700px) {
  .menu-overlay {
    left: 2px !important;
  }
}

/* ==========================================
   4. HEADER 2 (Orchideen-Schriftzug)
   ========================================== */
#header2 {
  width: 100%;
  height: 60px;
  background: #45243C;
  display: flex;
  justify-content:center;
  align-items: center;
}

#header2 h1 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #FFF8E8;
  font-size: 46px;
  font-weight: 600;
  letter-spacing: 1px;
  font-style: italic;
}

/* ==========================================
   5. CONTENT 
   ========================================== */
#content {
  width: 100%;
  max-width: 1280px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 20px;
  background: #CEFFCE;
}

.content-text-box {
  width: 100%;
  max-width: none;
  font-size: 14px;
  line-height: 1.5;
}

.content-text-box h5 {
  color: #000000;
  text-align: center;
  font-size: 12px;
}

h4 {
  color: #000;
  text-align: justify;
  font-size: 14px;
}

.back-to-top-button {
  display: inline-block;
  padding: 5px;
  margin-left: 10px;
  background-color: #009900;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-family: sans-serif;
  font-weight: bold;
  font-size: 12px; 
}

.back-to-top-button:hover {
  color: #D6D6D6;
}

/* ==========================================
   6. FOOTER
   ========================================== */
#footer {
  position: relative;
  z-index: 1000;
  width: calc(100% + 40px) !important;
  margin-left: -20px !important;
  margin-right: -20px !important;
  min-height: 30px;
  background: #45243C !important;
  display: flex;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
}

#footer a,
#footer a:visited {
  color: #fff;
  margin-right: 5px;
  text-decoration: none;
}

#footer a:hover {
  color: #D6D6D6;
  text-decoration: none;
}

/* ==========================================
   7. HEADER-SKALIERUNG & STICKY-VERHALTEN
   ========================================== */
:root {
  --header1-fluid-height: clamp(92px, calc(11.25vw + 56px), 200px);
  --header2-fluid-height: clamp(27.6px, calc(3.375vw + 16.8px), 60px);
}

#header1,
#header1 .image-container,
#header1 .image-container img.imgbox {
  height: var(--header1-fluid-height) !important;
  min-height: var(--header1-fluid-height) !important;
}

#header1 .image-container img.imgbox {
  max-height: var(--header1-fluid-height) !important;
}

#header1 {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
}

#header2 {
  position: sticky !important;
  top: var(--header1-fluid-height, 200px) !important;
  z-index: 999 !important;
  background: #45243C !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: var(--header2-fluid-height) !important;
  padding: 4px 10px !important;
  box-sizing: border-box !important;
  align-items: center;
}

#header2 h1,
#header2 > span {
  font-family: 'Playfair Display', Georgia, serif !important;
  color: #FFF8E8 !important;
  font-size: clamp(14px, calc(1.667vw + 8.667px), 46px) !important;
  font-weight: 600 !important;
  font-style: italic !important;
  letter-spacing: 1px !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
}

.hamburger-box,
.global-page-container > .hamburger-box {
  position: fixed !important;
  top: calc(var(--header1-fluid-height, 200px) - 35px) !important;
  left: max(10px, calc((100vw - 1280px) / 2 + 10px)) !important;
  bottom: auto !important;
  z-index: 2500 !important;
}

@media (max-width: 1280px) {
  .hamburger-label {
    font-size: 13px;
  }
  .bar {
    width: 22px;
    height: 3px;
  }
  .bars {
    gap: 3px;
  }
}

.menu-overlay,
.menu-content {
  background: transparent !important;
}

#menu-frame {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  width: 150px;
  height: 200px;
  border: 0;
  background: transparent;
  z-index: 5000;
}


/* ==========================================================================
   8. BEREINIGTES STARTSEITEN-LAYOUT (Bild + h5-Bezeichnung + Text)
   ========================================================================== */
:root {
  --index-image-size: clamp(260px, calc(36.145vw + 144.3px), 607px);
}

/* Desktop (ab 851px): 2 Spalten nebeneinander */
#content {
  display: grid !important;
  grid-template-columns: minmax(0, var(--index-image-size)) minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 30px !important;
}

#content > .content-image-box {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  overflow: visible !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}

#content > .content-image-box .content-img {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  aspect-ratio: 500 / 370;
  margin: 0 !important;
  object-fit: cover !important;
}

/* Bezeichnung exakt im h5-Stil (fett, zentriert) */
.startbild-text {
  display: block !important;
  width: 100% !important;
  margin-top: 8px !important;
  margin-bottom: 0 !important;
  text-align: center !important;
  font-size: 13px !important;
  font-weight: bold !important;
  color: #000000 !important;
}

#content > .content-text-box {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

#content > .content-text-box h2 {
  font-size: 22px;
  line-height: 1.2;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}

/* Desktop: Bildoberkante bündig mit der 1. Textzeile */
@media (min-width: 851px) {
  #content > .content-image-box {
    margin-top: calc(22px * 1.2 + 12px) !important;
  }
}

/* Handy & schmale Fenster (bis 850px): Text steht GARANTIERT unter dem Bild */
@media (max-width: 850px) {
  #content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 24px !important;
  }

  #content > .content-image-box {
    width: min(100%, 360px) !important;
    margin: 0 auto !important;
  }

  #content > .content-text-box {
    width: 100% !important;
  }
}
@media (max-width: 850px) {
  #content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 24px !important;
    padding: 15px 10px !important;
  }

  #content > .content-image-box {
    width: min(100%, 360px) !important;
    margin: 0 auto !important;
  }

  #content > .content-text-box {
    width: 100% !important;
    padding: 0 5px !important;
    box-sizing: border-box !important;
  }

  /* Passt den Footer an das neue 10px-Padding an, damit nichts mehr übersteht */
  #footer {
    width: calc(100% + 20px) !important;
    margin-left: -10px !important;
    margin-right: -10px !important;
  }
}
/* Verhindert zuverlässig jede horizontale Scrollleiste */
html,
body,
.global-page-container {
  max-width: 100%;
  overflow-x: hidden !important;
}

@media (max-width: 850px) {
  /* Erlaubt der Header-Überschrift auf sehr schmalen Handys bei Bedarf einen Umbruch */
  #header2 h1,
  #header2 > span {
    white-space: normal !important;
    text-align: center !important;
  }

  /* Stellt sicher, dass der Footer nie breiter als die Box wird */
  #footer {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
}
