* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #6bb587;
  color: #ffffff;
}


header {
  position: relative;
  width: 100%;
  max-height: 57px;
  height: auto;
  padding: 8px 12px;
  background: #B3C9AE;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  z-index: 1100;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

#site-logo {
  max-height: 40px;
  height: auto;
  width: auto;
  border-radius: 6px;
  object-fit: cover;
  flex: 0 0 auto;
}


#site-title {
  transform: translateY(-2px);
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
  min-width: 0;
}

#site-title .title-text {
  display: block;
  color: #ffffff;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
  margin: 0;
  padding: 0;
}

#site-title .subtitle {
  display: block;
  margin: 0px 0 0 0;     
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: visible;
  max-width: 24ch;       
  line-height: 1.5;
  padding: 0;
}

/* menu toggle */
.menu-toggle {
  background: none;
  border: 0;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  padding: 6px;
  z-index: 1210;
}

/* nav / sidebar */
nav {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: #185c32;
  box-shadow: -2px 0 14px rgba(0, 0, 0, 0.28);
  transition: right .28s ease;
  padding-top: 72px;
  z-index: 880;
  overflow-y: auto;
}

nav.active {
  right: 0;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

nav li a {
  display: block;
  padding: 12px 18px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

nav li a:focus,
nav li a:hover {
  color: #ffd700;
}

.cookie-sensitive {
  display: none;
}


main {
  padding: 30px 20px;
  min-height: calc(100vh - 140px);
  box-sizing: border-box;
}


#site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 8px 12px;
  background: #235c18;
  z-index: 900;
  box-sizing: border-box;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 12px;
  line-height: 1.2;
  overflow: hidden;
  max-height: 6mm;
}

#site-footer .footer-title {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  margin-right: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#site-footer .footer-note {
  display: inline-block;
  font-size: 11px;
  opacity: .95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


#cookie-banner {
  position: fixed;
  bottom: 0;                              
  left: 0;
  right: 0;
  background: #333;
  color: #fff;
  padding: 10px;
  z-index: 9999;                          
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  /* Safe area für iPhone Notch / Gestenleiste einbeziehen */
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}


#cookie-banner .banner-text {
  max-width: 70%;
  text-align: left;
}

#cookie-banner button {
  padding: 8px 14px;
  border: 0;
  cursor: pointer;
  border-radius: 4px;
}

#cookie-banner .accept {
  background: #2e8b57;
  color: #fff;
}

#cookie-banner .reject {
  background: #777;
  color: #fff;
}

/* responsive */
@media screen and (max-width: 900px) {
  #site-logo {
    max-height: 48px;
  }

  #site-title {
    font-size: 18px;
  }

  #site-title .title-text {
    font-size: 18px;
    white-space: nowrap;
  }

  #site-title .subtitle {
    font-size: 11px;
    max-width: 20ch;
  }

  nav {
    right: -160px;
    width: 160px;
  }

  #site-footer {
    font-size: 12px;
  }
}

@media screen and (max-width: 600px) {
  header {
    padding: 8px 10px;
  }

  #site-logo {
    max-height: 40px;
  }

  #site-title {
    font-size: 16px;
    max-width: 11rem;
  }

  /* auf sehr kleinen Bildschirmen erlaubt der Subtitle Zeilenumbruch */
  #site-title .subtitle {
    position: static;
    display: block;
    white-space: normal;
    max-width: 100%;
    font-size: 11px;
    margin-top: 2px;
  }

  nav {
    width: 100%;
    right: -100%;
  }

  nav.active {
    right: 0;
  }

  #cookie-banner .banner-text {
    max-width: 100%;
  }
}

/* focus */
a:focus,
button:focus {
  outline: 3px solid rgba(255, 255, 255, 0.15);
  outline-offset: 2px;
}

/* Aktiven Menüpunkt deutlich hervorheben */
nav a.active,
nav li a.active {
  color: #ffd700;           /* gelb */
  font-weight: 700;
}
