#top .qsg-legal {
  max-width: 48rem;
  margin: 0 auto 2rem;
  color: #2f3930;
  line-height: 1.75;
}

#top .qsg-legal h1 {
  color: #496534;
  font-size: clamp(1.9rem, 4vw, 2.65rem);
  line-height: 1.18;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-transform: none;
}

#top .qsg-home-heading {
  overflow-wrap: anywhere;
  hyphens: auto;
}

#top .qsg-legal h2,
#top .qsg-legal h3 {
  font-size: 1.2em;
  margin-top: 1.45em;
  text-transform: none;
}

#top .qsg-legal address { font-style: normal; }
#top .qsg-legal a { color: #3e622c; text-decoration: underline; overflow-wrap: anywhere; }
#top .qsg-legal-lead { font-size: 1.15em; color: #52654a; }
#top .qsg-legal-note { padding: 0.8em 1.15em; margin-top: 1.25em; background: #eff4e9; border-left: 3px solid #749a56; }
#top .qsg-legal-note h3 { margin-top: 0; }

#top .qsg-display {
  position: fixed;
  bottom: 14px;
  right: 16px;
  z-index: 1000;
  max-width: calc(100vw - 32px);
  color: #24311e;
  background: white;
  border: 1px solid #789369;
  border-radius: 6px;
  box-shadow: 0 2px 10px #0002;
}

#top .qsg-display summary { padding: 0.55em 0.85em; cursor: pointer; color: #345028; font-weight: 700; }
#top .qsg-display-panel { padding: 0 0.85em 0.65em; }
#top .qsg-display-panel label { display: flex; align-items: center; gap: 0.45em; margin: 0.4em 0; font-size: 1em; font-weight: 400; }
#top .qsg-display-panel input { margin: 0; }
#top .qsg-display summary:focus-visible,
#top .qsg-display-panel input:focus-visible { outline: 2px solid #456333; outline-offset: 2px; }

#top.qsg-large-text article p,
#top.qsg-large-text article li,
#top.qsg-large-text article address,
#top.qsg-large-text .avia_textblock p,
#top.qsg-large-text .avia_textblock li { font-size: 1.2em; }

#top.qsg-high-contrast .main_color,
#top.qsg-high-contrast .main_color :is(h1, h2, h3, p, li, address, strong, span) { color: #111; }
#top.qsg-high-contrast .main_color a { text-decoration: underline; }

#top.qsg-reduced-motion *,
#top.qsg-reduced-motion *::before,
#top.qsg-reduced-motion *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }

#top .qsg-service-card strong { color: #486638; }
#top .qsg-service-navigation a { color: #486638; }
#top .qsg-service-navigation summary {
  padding: 0.65em 0.9em;
  color: #345028;
  background: #f3f6ef;
  border: 1px solid #789369;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
}

#top .qsg-service-navigation summary:focus-visible,
#top .qsg-service-card:focus-visible {
  outline: 2px solid #456333;
  outline-offset: 3px;
}

@media (min-width: 768px) {
  #top .qsg-service-navigation.qsg-desktop-navigation > summary { display: none; }
}

@media (max-width: 767px) {
  #top .qsg-service-navigation .widget_nav_menu { padding: 0.35em 0 0; }
  #top .qsg-service-navigation a { padding-top: 0.65em; padding-bottom: 0.65em; }
  #top .qsg-service { margin-top: 12px; }
  #top:has([aria-label="Vorschaumodus"]) .qsg-display { bottom: 64px; }
}
