/* ==========================================
   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; /* Zentriert die gesamte Webseite auf PC-Monitoren */
  align-items: flex-start;
  min-height: 100vh;
}

.global-page-container {
  width: 100%;
  max-width: 1280px;      /* Hält das Layout auf PC exakt auf dieser Breite zusammen */
  position: relative;     /* Der feste Ankerpunkt für das Hamburger-Icon */
  background:#CEFFCE;
}

/* ==========================================
   2. HEADER 1 ( Bilder 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: Unabhängig fixiert an der Unterkante von Bild 1 */
.hamburger-box {
  position: absolute;
  top: 165px;           /* Setzt das Icon auf dem PC perfekt an die Unterkante von Bild 1*/ 
  left: 10px;           /* 10px Abstand von links */
  z-index: 2500;        /* Höher als die Bilder, damit es immer klickbar bleibt */
  width: 110px;         /* Genug Breite, damit Text + Striche nebeneinander passen */
  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;       /* Transparentes Design mit weißer Schrift */
  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;  /* Weiße Striche */
  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;        /* Standardmäßig unsichtbar – blockiert keine Klicks mehr */
}

/* Wird vom JavaScript aktiv geschaltet */
.menu-overlay.active {
  display: block; 
}

/* Der eigentliche anthrazitfarbene Menükasten links */
.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 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;
}

.menu-main > li {
  background: #B7FBB9;            
  border-bottom: 1px solid #3a3a3a;
}

.menu-main > li a,
.sub-toggle {
  text-decoration: none;
  color:#000;                
  cursor: pointer;
  font-size: 12px;
  display: block;
  width: 100%;
  padding:5px 20px 5px 20px;
  background: none;
  border: none;
  text-align: left;
}

.menu-main > li:hover {
  background:#B7FBB9;  
}

.submenu {
  display: none;
  padding-left: 5px;
  background: #D8FEDA;          
  list-style: none;
}

.submenu.open {
  display: block;
}

.submenu li {
  border-bottom: 1px solid #282828;
}

.submenu li a {
 padding:5px ;
  font-size: 12px;
  color: #000;                
  text-decoration: none;
  display: block;
}

.submenu li a:hover {
  color: #000;               
  background: #D8FEDA;
}
#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;
}
/* Menülinks als Buttons mit 1 px Abstand */
.menu-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: transparent;  /*#589B42;*/
}

.menu-main > li {
  border: 0;
  background: transparent;
}

.menu-main > li > a,
.menu-main > li > .sub-toggle {
  box-sizing: border-box;
  margin: 0;
  border: 1px solid #589B42;
  border-radius: 8px;
  background: #B7FBB9;
}

/* Untermenübuttons etwas kleiner, ebenfalls mit 1 px Abstand */
.submenu.open {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 2px 0 2px 8px;
  background: transparent;
}

.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;
}
@media (max-width: 700px) {
  .menu-overlay {
    left: 2px !important;
  }
}
/* ==========================================
   4. HEADER 2 (Orchideen-Schriftzug)#FFFFAA;
   ========================================== */
#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 (Bildbox 500x370px)
   ========================================== */
#content {
  width: 100%;
   padding: 20px;
  display: flex;
  gap: 30px;
  align-items: flex-start;
 background:#CEFFCE;}
     
.content-image-box {
  width: 600px;
  height: 450px;
  flex: 0 0 500px; /* Hält die Box auf PC starr auf 500x370px */
  overflow: hidden;
}
.content-img {
  width: 100%;margin: 40px 0px 0px 0px;
  height: 100%;
  object-fit: cover; 
  display: block;
  border: none;
}

.content-text-box {
  flex: 1;
  min-width: 0;
  font-size: clamp(13px, 1.25vw, 18px);
  line-height: 1.5;
}

.content-text-box h1 {
  font-size: clamp(20px, 2.2vw, 30px);
}

.content-text-box h2 {
  font-size: clamp(17px, 1.7vw, 24px);
}

.content-text-box h3 {
  font-size: clamp(14px, 1.4vw, 20px);
}

.back-to-top-button {
  display: inline-block;
  padding:5px;margin-left:10px;
  background-color: #009900; /* Deine Wunschfarbe */
  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; /* Dunklere Farbe beim Drüberfahren */
}
/* ==========================================
   6. FOOTER
   ========================================== */
#footer {
  position: relative;
  z-index: 1000;
  width: 100%;
  min-height: 30px;
  background: #581605;
    display: flex;
  align-items: center;
  padding: 0 20px;
  float: none;
  clear: both;
}


#footer a,
#footer a:visited {
  color: #fff;
  margin-right: 5px;
  text-decoration: none;
}

#footer a:hover {
  color: #D6D6D6;
  text-decoration: none;
}
/* ==========================================
   7. PROPORTIONALE SKALIERUNG (Mobilgeräte)
   ========================================== */
@media (max-width: 1280px) {
  #header1 {
    height: auto;
  }
  #header1 .image-container .imgbox {
    height: auto;
    aspect-ratio: 1 / 1; /* Bilder werden auf Handys/Tablets quadratisch */
  }
  
  /* Hält das weiße Icon mobil bündig an der Unterkante von Bild 1 */
  .hamburger-box {
    top: 165px;
    bottom: auto;
    left: 10px;
    width: 95px; 
  }
  .hamburger-label {
    font-size: 13px;
  }
  .bar {
    width: 22px;
    height: 3px;
  }
  .bars {
    gap: 3px;
  }

  #header2 h1 {
    font-size: 25px;
  }
  
  .content-image-box {
    width: 100%;
    flex: 0 0 55%;
    height: auto;
    aspect-ratio: 500 / 370;
  }
}

@media (max-width: 768px) {
  #header2 {
    height: auto;font-size: 12px;
    padding: 15px 10px;
  }
  #header2 h1 {
    font-size: 16px;
    white-space: normal;
  }
  #content {
    flex-direction: column;
    gap: 20px;
  }
  .content-image-box {
    width: 100%;
    flex: 0 0 100%;
  }
  
   .back-to-top-button {
  display: inline-block;
  padding:5px;Margin:10px;
  background-color: #009900; /* Deine Wunschfarbe */
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; /* Dunklere Farbe beim Drüberfahren */
}
}


/* Einheitliche Header-1-Höhe auf allen Ansichten: 200 px */
#header1,
#header1 .image-container,
#header1 .image-container img.imgbox {
  height: 200px !important;
  min-height: 200px !important;
}
#header1 .image-container img.imgbox {
  max-height: 200px !important;
}

/* Header 1: stufenlos von 92 px bei 320 px bis 200 px bei 1280 px. */
:root {
  --header1-fluid-height: clamp(92px, calc(11.25vw + 56px), 200px);
}
#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;
}
.hamburger-box,
.global-page-container > .hamburger-box {
  top: calc(var(--header1-fluid-height) - 35px) !important;
  bottom: auto !important;
}
@media (min-width: 701px) and (max-width: 1280px) {
  .content-image-box img,
  .content-text-box img,
  .content-img,
  .weather-display img,
  .weather-chart img,
  .weather-year-chart img {
    min-width: 320px !important;
  }
}

/* Header 2 folgt derselben stufenlosen Skalierung wie Header 1. */
:root {
  --header-fluid-scale: clamp(0.46, calc(5.625vw + 0.28), 1);
  --header2-base-height: 60px;
  --header2-fluid-height: calc(var(--header2-base-height) * var(--header-fluid-scale));
}
#header2 {
  height: var(--header2-fluid-height) !important;
  min-height: var(--header2-fluid-height) !important;
  padding-block: 0 !important;
  box-sizing: border-box;
}
#header2 h1 {
  font-size: clamp(14px, calc(46px * var(--header-fluid-scale)), 46px) !important;
  line-height: 1.05;
}
#header2.headline-with-logos {
  grid-template-columns: minmax(23px, calc(50px * var(--header-fluid-scale))) minmax(0, 1fr) minmax(23px, calc(50px * var(--header-fluid-scale))) !important;
  gap: calc(10px * var(--header-fluid-scale)) !important;
  padding-inline: calc(20px * var(--header-fluid-scale)) !important;
}
#header2.headline-with-logos img {
  width: calc(50px * var(--header-fluid-scale)) !important;
  height: calc(50px * var(--header-fluid-scale)) !important;
}

/* Feste, breit unterstützte calc()-Formeln für Header 2 und Logos. */
:root {
  --header2-fluid-height: clamp(27.6px, calc(3.375vw + 16.8px), 60px);
  --header2-logo-size: clamp(23px, calc(2.8125vw + 14px), 50px);
  --header2-gap: calc(0.5625vw + 2.8px);
  --header2-pad: calc(1.125vw + 5.6px);
}
#header2 h1 {
  font-size: clamp(14px, calc(2.5875vw + 12.88px), 46px) !important;
}
#header2.headline-with-logos,
#header2 .headline-with-logos {
  grid-template-columns: minmax(23px, var(--header2-logo-size)) minmax(0, 1fr) minmax(23px, var(--header2-logo-size)) !important;
  gap: var(--header2-gap) !important;
  padding-inline: var(--header2-pad) !important;
}
#header2.headline-with-logos img,
#header2 .headline-with-logos img {
  width: var(--header2-logo-size) !important;
  height: var(--header2-logo-size) !important;
}

/* Header-2-Schrift schrumpft auf Tablet- und Handybreiten stärker. */
#header2 h1,
#header2 > span {
  font-size: clamp(14px, calc(3.333vw + 3.333px), 46px) !important;
  line-height: 1.05 !important;
}
/* Grüner Menühintergrund weg*/
.menu-overlay,
.menu-content {
  background: transparent !important;
}

/* Header 1 und 2 bleiben beim Scrollen sichtbar; Header 2 sitzt direkt darunter. */
#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;
}

/* Hamburger-Icon bleibt beim Scrollen am unteren Rand von Header 1 stehen. */
.hamburger-box,
.global-page-container > .hamburger-box {
  position: fixed !important;
  top: calc(var(--header1-fluid-height, 200px) - 35px) !important;
  bottom: auto !important;
  z-index: 2500 !important;
}

/* Header2-Farben wie in style0.css. */
#header2 {
  background: #6FCE6C !important;
}
#header2 h1,
#header2 > span {
  color: #550000 !important;
}

/* Header2 vereinheitlicht nach der maßgeblichen style0.css. */
:root {
  --header2-fluid-height: clamp(27.6px, calc(3.375vw + 16.8px), 60px);
}
#header2 {
  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(3.333vw + 3.333px), 46px) !important;
  font-weight: 600 !important;
  font-style: italic !important;
  letter-spacing: 1px !important;
  line-height: 1.05 !important;
}

/* Header2-Schrift skaliert fließend über alle Fenstergrößen. */
#header2 h1 {
  font-size: clamp(14px, calc(1.667vw + 8.667px), 46px) !important;
  white-space: nowrap !important;
}

/* Das Hamburger-Icon sitzt auch bei breiten Fenstern mittig auf Header2. */
.hamburger-box,
.global-page-container > .hamburger-box {
  position: fixed !important;
  top: calc(var(--header1-fluid-height, 200px) + clamp(6.3px, calc(1.71875vw + 0.8px), 22.5px)) !important;
  bottom: auto !important;
  z-index: 2500 !important;
}

/* Hamburger-Icon links unten an Header1 verankern. */
.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;
}

/* Einheitliche Footer-Farbe */
#footer, footer { background: #45243C !important; }

/* Das Menü-Iframe liegt über der Seite und darf Header 1 nicht nach unten schieben. */
#menu-frame {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  width: 150px;
  height: 200px;
  border: 0;
  background: transparent;
  z-index: 5000;
}

/* WOW-Bildbetrachter bleibt auf Handymaß, auch bei kleinerem Fenster und Vollbild. */
#wowslider-container1 {
  width: 350px !important;
  min-width: 350px !important;
  max-width: 350px !important;
  height: 263px !important;
  min-height: 263px !important;
  max-height: 263px !important;
  box-sizing: content-box !important;
  margin: 0 auto !important;
}
#wowslider-container1 .ws_images {
  width: 100% !important;
  height: 100% !important;
  max-width: 350px !important;
  max-height: 263px !important;
}
.ws_fs_wrapper:fullscreen,
.ws_fs_wrapper:-webkit-full-screen,
.ws_fs_wrapper:-moz-full-screen {
  display: flex !important;
  width: 100vw !important;
  height: 100vh !important;
  align-items: center !important;
  justify-content: center !important;
  background: #000 !important;
}





/* WOW Slider 8.8 uses .ws_fs_wrapper as its native fullscreen element. */
.ws_fs_wrapper:fullscreen,
.ws_fs_wrapper:-webkit-full-screen,
.ws_fs_wrapper:-moz-full-screen {
  display: flex !important;
  width: 100vw !important;
  height: 100vh !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  background: #000 !important;
}
.ws_fs_wrapper #wowslider-container1 {
  width: min(800px, calc(100vw - 24px), calc(133.333vh - 32px)) !important;
  min-width: 0 !important;
  max-width: min(800px, calc(100vw - 24px), calc(133.333vh - 32px)) !important;
  height: min(600px, calc(75vw - 18px), calc(100vh - 24px)) !important;
  min-height: 0 !important;
  max-height: min(600px, calc(75vw - 18px), calc(100vh - 24px)) !important;
  margin: auto !important;
  box-sizing: border-box !important;
}
.ws_fs_wrapper #wowslider-container1 .ws_images {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
}
.ws_fs_wrapper #wowslider-container1 {
  width:95vw !important; height:95vh !important; min-width:0 !important;
  max-width:95vw !important; min-height:0 !important; max-height:95vh !important;
  margin:auto !important; overflow:hidden !important;
}
.ws_fs_wrapper #wowslider-container1 .ws_images,
.ws_fs_wrapper #wowslider-container1 .ws_images .ws_list,
.ws_fs_wrapper #wowslider-container1 .ws_images .ws_list ul,
.ws_fs_wrapper #wowslider-container1 .ws_images .ws_list li {
  width:100% !important; height:100% !important; max-width:none !important; max-height:none !important;
}
.ws_fs_wrapper #wowslider-container1 .ws_images .ws_list li img {
  width:100% !important; height:100% !important; max-width:none !important; max-height:none !important;
  object-fit:contain !important; transform:scale(3) !important; transform-origin:center center;
}
@media (max-width:767px) {
  .ws_fs_wrapper #wowslider-container1 { width:95vw !important; height:95vh !important; max-width:95vw !important; max-height:95vh !important; }
  .ws_fs_wrapper #wowslider-container1 .ws_images .ws_list li img { transform:scale(1) !important; }
}
@supports (height:100dvh) {
  .ws_fs_wrapper #wowslider-container1 { height:95dvh !important; max-height:95dvh !important; }
  @media (max-width:767px) { .ws_fs_wrapper #wowslider-container1 { height:95dvh !important; max-height:95dvh !important; } }
}
