/* ==========================================
   1. STRUKTUR & GLOBALER SEITEN-WRAPPER 
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body.chronik-page #dog {
  grid-template-columns: minmax(0, 1fr);}
body {
  margin: 0;
  padding: 0;
}
body.chronik-page #content {
  grid-template-columns: minmax(0, 1fr);
}

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;      /* 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:#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;
}


/* ==========================================
   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;
}

/* Sorgt dafür, dass eine einzelne Karte NIE riesig wird – egal wann das Layout auf 1 Spalte springt */
#content.bluete-grid {
  justify-items: center;
}

#content.bluete-grid .bluete-karte {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto !important;
  margin: 0;
}

#content.bluete-grid .bluete-karte img {
  width: 100% !important;
  height: 300px !important;
  max-height: 300px !important;
  object-fit: contain; /* Verhindert Verzerrungen in Edge, ohne width: auto zu brauchen */
  display: block;
}
#content.bluete-grid .bluete-karte figcaption {
  margin-top: 8px;
  text-align: center;
}

.content-text-box img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.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;float:right;
}


#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: 60px;
    min-height: 60px;
    padding: 0 10px;
  }
  #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 mit Logos an beiden Seiten */
#header2.headline-with-logos {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 50px;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 60px;
  min-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; }

/* 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);
}

/* Chronik-Titel leicht nach links verschieben, damit er nicht unter das rechte Logo ragt. */
#header2.headline-with-logos .chronik-headline {
  transform: translateX(-8px);
}



/* 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;
}


/* 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 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,
#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;
}

/* doghalle: der einzelne Veranstaltungsblock sitzt eingerückt und vertikal mittig. 
body.doghalle-page #content {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-content: center !important;
  align-items: stretch !important;
  min-height: calc(100vh - var(--header1-fluid-height, 200px) - var(--header2-fluid-height, 60px) - 30px);
}
body.doghalle-page #content > .content-text-box {
  width: calc(100% - 120px);
  max-width: none;
  margin: 0 0 0 120px;
}*/

/* Einheitliche Footer-Farbe */
#footer, footer { background: #45243C !important; }

/* Orchideen-Blüten: Bild und Beschriftung bilden eine gemeinsame Karte. */
#content.bluete-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: start;
  gap: 32px 24px;
  padding: 24px;
}
#content.bluete-grid .bluete-karte {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0;
  text-align: center;
}
#content.bluete-grid .bluete-karte img {
  display: block;
  width: 100%;
  height: clamp(180px, 22vw, 280px);
  min-width: 0 !important;
  max-width: 100%;
  object-fit: contain;
}
#content.bluete-grid .bluete-karte figcaption {
  width: 100%;
  font-size: clamp(13px, 1.25vw, 16px);
  font-weight: 700;
  line-height: 1.4;
}
#content.bluete-grid .back-to-top-button {
  grid-column: 1 / -1;
  justify-self: start;
  margin: 8px 0 0;
}
@media (max-width: 1000px) {
  #content.bluete-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  #content.bluete-grid .bluete-karte img {
    height: clamp(180px, 30vw, 280px);
  }
}
@media (max-width: 768px) {
  #content.bluete-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px;
    padding: 18px 14px;
  }
  #content.bluete-grid .bluete-karte img {
    width: 100%;
    height: min(72vw, 320px);
  }
}

/* Wenn der Platz knapp wird (z. B. Tablet / schmales Fenster): 2 Bilder pro Zeile */
@media (max-width: 600px) {
  /* 1. Der hellgrüne Bereich bleibt über die volle Breite */
  #content.bluete-grid {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 16px;
    gap: 24px;
    justify-items: center; /* Zentriert die einzelnen Karten im grünen Bereich */
  }

  /* 2. Nur die einzelne Bildkarte wird in der Breite begrenzt */
  #content.bluete-grid .bluete-karte {
    width: 100%;
    max-width: 200px; /* Steuert die Bildgröße (bei 280px Breite ca. 9-10 cm hoch) */
    margin: 0;
  }

  #content.bluete-grid .bluete-karte img {
    width: 100% !important;max-height:180px !important;
    height: auto !important;
    display: block;
  }
}
