/* ==========================================
   1. STRUKTUR & GLOBALER SEITEN-WRAPPER 
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}
body.chronik-page #eppert {
  grid-template-columns: minmax(0, 1fr);}

  {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:#ffffff;
}

/* ==========================================
   2. HEADER 1 (6 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;
}
 
 
/* ==========================================
   4. HEADER 2 (Orchideen-Schriftzug)#FFFFAA;
   ========================================== */
#header2 {
  width: 100%;
  height: 60px;
   background:#356B42;
  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;
}
.headline-with-logos {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 50px;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 20px;
  text-align: center;
}

.headline-with-logos img:first-child {
  justify-self: start;
}

.headline-with-logos img:last-child {
  justify-self: end;
}

.headline-with-logos img,
.content-image-box img,
.content-text-box img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}
/* ==========================================
   5. CONTENT
   ========================================== */

#content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  width: 100%;
  max-width: 1280px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 10px;
  background: #CEFFCE;
}

/* Auf der Chronik-Seite eine Spalte mit mittigem Textblock */
body.chronik-page #content {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

body.chronik-page #content > .content-text-box {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.content-image-box img,
.content-text-box img {
  display: block;
}

.content-text-box {
  min-width: 0;
  font-size: clamp(12px, 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(24px, 2vw, 28px);
}

.back-to-top-button {
  display: inline-block;
  margin-left: 10px;
  padding: 5px;
  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: 100%;
  min-height: 30px;
  background: #581605;
    display: flex;
  align-items: center;
  padding: 0 20px;
}


#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: calc(16.666vw - 32px); 
    left: 10px;
    width: 95px; 
  }
  .hamburger-label {
    font-size: 13px;
  }
  .bar {
    width: 22px;
    height: 3px;
  }
  .bars {
    gap: 3px;
  }

  #header2 h1 {
    font-size: 24px;
  }
  
 .content-image-box img {
    display: block;
    width: 50px;
    height: 50px;
    object-fit: contain;
}

}

@media (max-width: 768px) {
  #header2 {
    height: 35%;
    padding: 0px 0px;
  }
  #header2 h1 {
    font-size: 20px;
    white-space: normal;
  }
  #content {
    flex-direction: column;
    gap: 20px;
  }
  .content-image-box {
    width: 55%;
    flex: 0 0 55%;
  }
  .content-image-box img {
    display: block;flex: 0 0 55%;
    width: 55%;
    height: 55%;
    object-fit: contain;
}

.content-text-box {
  flex: 1;
  min-width: 0;
  font-size: 13;
  line-height: 1.5;
}
   .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 */
}
}



/* Header 2: zwei Logos am Rand, Schriftzug mittig in einer Zeile */
#header2.headline-with-logos {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 50px;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 60px;
  padding: 0 20px;
  box-sizing: border-box;
}

#header2.headline-with-logos h1 {
  min-width: 0;
  margin: 0;
  font-size: clamp(12px, 3.6vw, 46px);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

#header2.headline-with-logos img {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
}

#header2.headline-with-logos img:first-child {
  justify-self: start;
}

#header2.headline-with-logos img:last-child {
  justify-self: end;
}

/* Der manuelle Zeilenumbruch im Titel gilt nur bei schmaleren Fenstern. */
#header2.headline-with-logos h1 br {
  display: block;
}

@media (max-width: 899px) {
  #header2.headline-with-logos h1 {
    font-size: clamp(12px, 3.2vw, 27px);
    line-height: 1.05;
  }
}

@media (min-width: 900px) {
  #header2.headline-with-logos h1 br {
    display: none;
  }

  #header2.headline-with-logos h1 {
    font-size: clamp(24px, 3.6vw, 46px);
    line-height: 1;
  }
}


/* Logos wachsen auf größeren Bildschirmen; auf Handygröße bleiben sie 50 px. */
#header2.headline-with-logos {
  --header-logo-size: clamp(50px, 6vw, 72px);
  grid-template-columns: var(--header-logo-size) minmax(0, 1fr) var(--header-logo-size);
  height: max(60px, calc(var(--header-logo-size) + 10px));
  min-height: max(60px, calc(var(--header-logo-size) + 10px));
}

#header2.headline-with-logos img {
  width: var(--header-logo-size);
  height: var(--header-logo-size);
}

/* 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;
}

/* Kleiner Abstand zwischen Header2 und dem EPP-Seiteninhalt. */
#content {
  margin-top: 6px !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;
}

/* Inhalt bleibt bündig unter Header2; der Abstand liegt auf grünem Hintergrund. */
#content {
  margin-top: 0 !important;
  padding-top: 16px !important;
}

/* Header2-Schrift skaliert fließend über alle Fenstergrößen. */
#header2 h1,
#header2 > span {
  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; }


/* Maximale Seitenbreite: 1280px */
html, body { width: 100%; }
.global-page-container { width: min(100%, 1280px); max-width: 1280px; margin-inline: auto; }
