/* ==========================================
   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:#ffffff ;
}

/* ==========================================
   2. HEADER 1 ( Bilder waagerecht)
   ========================================== */
#header1 {
  width: 100%;
  height: 200px !important;
  position: relative;
}
.global-page-container > .hamburger-box {
  position: absolute;
  top: auto;
  bottom: 10px;
  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: 65px;
 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{font-size:12px;
	width: 100%;
   padding: 20px;
   background:#CEFFCE;
   justify-content: center;   
    display: grid;                 /* Grid aktivieren */
    place-items: center;      }
 
 p {font-size:10px;Text-align:center;
        border: 2px solid green;      /* Rahmenfarbe und -art */
        padding: 10px;               /* Abstand zwischen Text und Rahmen */
        border-radius: 8px;          /* Abgerundete Ecken */
        background-color: #f9f9f9;
		max-width: 400px;       /* maximale Breite */
        width: 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: 14px; 
 }

  .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: #510000;
    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: 25px;
  }
  
  .content-image-box {
    width: 100%;
      height: auto;
    aspect-ratio: 400 / 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 */
}
}

/* Handyansicht: Mini-Display kleiner als das Temperaturdiagramm */
@media (max-width: 768px) {
  .weather-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    gap: 12px;
  }

  .weather-display {
    width: 100%;
    margin: 0 auto;
  }

  .weather-display img {
    display: block;
    width: 100%;
    max-width: 216px;
    height: auto;
    margin: 0 auto;
  }

  .weather-chart-column {
    width: 100%;
    min-width: 0;
  }

  .weather-chart {
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  .weather-chart img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
  }
}



/* Vollmodus: beide Wetterbilder beginnen auf gleicher Höhe. */
@media (min-width: 769px) {
  .weather-top {
    align-items: start;
  }

  .weather-top .weather-chart img {
    margin-top: 0 !important;
  }
}



/* Handy: Jahresklima-Diagramm auf dieselbe Breite wie das Temperaturdiagramm bringen. */
@media (max-width: 768px) {
  .weather-top .weather-chart img {
    margin: 0 !important;
  }

  .weather-description {
    width: 100%;
    max-width: none;
    margin: 20px 0 0;
  }

  .weather-description .weather-year-chart {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin: 10px 0 0;
  }

  .weather-description .weather-year-chart img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
  }
  .h3{margin-left:100px;
	}
  
  
}

/* Beide Wetter-Textblöcke verwenden dieselbe responsive Schriftgröße. */
.weather-summary,
.weather-description {
  font-size: clamp(14px, 1.15vw, 16px);
}

/* 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;
}:root {
  --header2-base-height: 65px;
  --header2-fluid-height: calc(var(--header2-base-height) * var(--header-fluid-scale));
}

/* 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;
}:root {
  --header2-fluid-height: clamp(29.9px, calc(3.65625vw + 18.2px), 65px);
}

/* 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;
}

/* BKO: feste Header bleiben sichtbar, während der Seiteninhalt darunter weiterläuft. */
.global-page-container {
  padding-top: calc(var(--header1-fluid-height, 200px) + var(--header2-fluid-height, 60px)) !important;
}
#header1 {
  position: fixed !important;
  top: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(100%, 1280px) !important;
  z-index: 1000 !important;
}
#header2 {
  position: fixed !important;
  top: var(--header1-fluid-height, 200px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(100%, 1280px) !important;
  z-index: 999 !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;
}

/* Wetterseite: Scrollleiste freigeben und den Stationsnamen unter Header2 halten. */
html,
body {
  overflow-y: auto !important;
  min-height: 100% !important;
}
.global-page-container {
  min-height: 100vh !important;
  padding-top: calc(var(--header1-fluid-height, 200px) + var(--header2-fluid-height, 60px) + 12px) !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;
}

/* Den Wettertext knapp unter Header2 beginnen lassen. */
.global-page-container {
  padding-top: calc(var(--header1-fluid-height, 200px) + var(--header2-fluid-height, 60px) + 4px) !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;
}

/* Zehn Pixel grüner Abstand unter Header2 halten die obere Wetterzeile frei. */
.global-page-container {
  padding-top: calc(var(--header1-fluid-height, 200px) + var(--header2-fluid-height, 60px) + 10px) !important;
}

/* Wettertext insgesamt 30 px unter Header2 beginnen lassen. */
.global-page-container {
  padding-top: calc(var(--header1-fluid-height, 200px) + var(--header2-fluid-height, 60px) + 30px) !important;
}

/* Wetterseite: 10 px Hintergrundabstand unter Header2. */
.global-page-container {
  padding-top: calc(var(--header1-fluid-height, 200px) + var(--header2-fluid-height, 60px) + 10px) !important;
}

/* Header bleiben beim normalen Dokument-Scrollen sticky im Seitenfluss. */
html {
  height: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
body {
  display: flex !important;
  height: auto !important;
  min-height: 100vh !important;
  overflow: visible !important;
}
.global-page-container {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-top: 0 !important;
  overflow: visible !important;
}
#header1 {
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
  z-index: 1000 !important;
}
#header2 {
  position: sticky !important;
  top: var(--header1-fluid-height, 200px) !important;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
  z-index: 999 !important;
}

/* Zehn Pixel zusätzlicher grüner Innenabstand vor der ersten Wetterzeile. */
#content {
  padding-top: 30px !important;
}

/* Der Bildstreifen von Header1 bleibt sticky, ohne den Seitenfluss einzuschließen. */
#header1 {
  display: contents !important;
  position: static !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}
#header1 .image-container {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
}
#header1 .image-container img.imgbox {
  display: block !important;
}

/* Einheitliche Footer-Farbe */
#footer, footer { background: #45243C !important; }
