/* Header und Footer – vollständig ersetzen.
   Bestehendes mmenu-CSS behalten. */

:root {
  --rg-green: #7e9942;
  --rg-green-dark: #526b29;
  --rg-lime: #a5b427;
  --rg-ink: #30333b;
  --rg-muted: #67706a;
  --rg-line: #e7ebe3;
  --rg-surface: #f4f6ee;
  --rg-footer: #282e2b;
}

.rg-site {
  color: var(--rg-ink);
}

/* Gleiche Inhaltsbreite wie Bootstrap */
.rg-site .rg-container {
  box-sizing: border-box;
  width: 100%;
  margin-inline: auto;
  padding-inline: calc(var(--bs-gutter-x, 1.5rem) * .5);
}

/* Header */
.rg-site .site-header {
  position: sticky;
  z-index: 30;
  background: #fff;
  box-shadow: 0 3px 20px rgb(35 48 28 / .06);
}

.rg-site .site-header::after {
  display: none;
}

.rg-topbar {
  background: var(--rg-surface);
  border-bottom: 1px solid var(--rg-line);
  color: var(--rg-green-dark);
}

.rg-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 40px;
  font-size: 13px;
}

.rg-topbar-inner p {
  margin: 0;
  font-style: italic;
}

.rg-topbar-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.rg-topbar-contact a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.rg-topbar-contact a:hover {
  text-decoration: underline;
}

.rg-site .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 122px;
  padding-block: 14px;
}

.rg-site .site-logo {
  flex: 0 0 auto;
  min-width: 0;
}

.rg-site .site-logo :is(
  .frame,
  .frame-group-container,
  .frame-group-inner,
  .frame-container,
  .frame-inner,
  .textmedia,
  .ce-textpic,
  .ce-gallery,
  .ce-outer,
  .ce-inner,
  .ce-row,
  .ce-column,
  .gallery-row,
  .gallery-item,
  figure
) {
  margin: 0;
  padding: 0;
}

.rg-site .site-logo a {
  display: block;
}

.rg-site .site-logo img {
  display: block;
  width: 320px;
  max-width: 100%;
  height: auto;
  max-height: 100px;
  object-fit: contain;
  transition: none;
  transform: none;
}

/* Desktop-Menü */
.rg-site .desktop-menu {
  display: block;
  margin-left: auto;
  min-width: 0;
}

.rg-site .desktop-menu :is(ul, li) {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rg-site .desktop-menu .navilo {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.3vw, 23px);
}

.rg-site .desktop-menu .navilo > li {
  position: relative;
}

.rg-site .desktop-menu .navilo > li > :is(a, button) {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 0;
  border: 0;
  background: none;
  color: var(--rg-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
}

.rg-site .desktop-menu .navilo > li > :is(a, button)::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  background: var(--rg-green);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s;
}

.rg-site .desktop-menu .navilo > li:is(
  :hover,
  :focus-within,
  .active,
  .current,
  .is-open
) > :is(a, button)::after,
.rg-site .desktop-menu .navilo > li > :is(
  a,
  button
)[aria-current="page"]::after {
  transform: scaleX(1);
}

.rg-site .desktop-menu .navilo > li:is(
  :hover,
  .active,
  .current
) > :is(a, button) {
  color: var(--rg-green-dark);
}

.rg-site .desktop-menu .menu-arrow {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

/* Untermenü */
.rg-site .desktop-menu .sub2 {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 2;
  width: 280px;
  max-width: calc(100vw - 32px);
  padding: 10px;
  border: 1px solid var(--rg-line);
  border-top: 3px solid var(--rg-green);
  border-radius: 0 0 12px 12px;
  background: #fff;
  box-shadow: 0 14px 35px rgb(25 38 22 / .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s, transform .18s, visibility .18s;
}

.rg-site .desktop-menu .navilo > li:nth-last-child(-n+2) > .sub2 {
  left: auto;
  right: 0;
}

.rg-site .desktop-menu li:is(
  :hover,
  :focus-within,
  .is-open
) > .sub2 {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.rg-site .desktop-menu .sub2::before,
.rg-site .desktop-menu .sub2::after {
  display: none;
}

.rg-site .desktop-menu .sub2 a {
  display: block;
  padding: 12px 14px;
  border-radius: 6px;
  color: var(--rg-ink);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}

.rg-site .desktop-menu .sub2 a:is(:hover, :focus-visible),
.rg-site .desktop-menu .sub2 :is(.active, .current) > a {
  background: var(--rg-surface);
  color: var(--rg-green-dark);
}

/* Mobiler Menübutton */
.rg-site .mobile-toggle {
  display: none !important;
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--rg-line);
  border-radius: 10px;
  background: var(--rg-surface);
  color: var(--rg-green-dark);
  text-decoration: none;
}

.rg-site .mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.rg-site :is(a, button):focus-visible {
  outline: 2px solid var(--rg-green);
  outline-offset: 5px;
}

/* Inhalt und Zurück-Button */
.rg-site #main {
  padding-top: 0;
}

.rg-back-wrap {
  padding-block: 24px 48px;
}

.rg-site .back-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border: 1px solid var(--rg-line);
  border-radius: 8px;
  background: var(--rg-surface);
  color: var(--rg-green-dark);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.rg-site .back-button:hover {
  background: #e9eddf;
}

/* Footer */
.rg-site .site-footer {
  position: relative;
  margin-top: 32px;
  padding: 60px 0 22px;
  border-top: 4px solid var(--rg-green);
  background: var(--rg-footer);
  color: #d4dcd4;
}

.rg-footer-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgb(255 255 255 / .13);
}

.rg-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #c1d19a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rg-site .site-footer h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 500;
  line-height: 1.2;
}

.rg-footer-intro > p {
  margin: 0;
  font-size: 19px;
  font-style: italic;
  line-height: 1.6;
}

.rg-footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr .9fr;
  gap: 48px;
  padding-block: 38px 44px;
}

.rg-site .site-footer h3 {
  margin: 0 0 20px;
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
}

.rg-site .site-footer p,
.rg-site .site-footer address {
  font-size: 15px;
  line-height: 1.75;
}

.rg-site .site-footer address {
  margin-bottom: 16px;
  font-style: normal;
  color: #fff;
}

.rg-site .site-footer a {
  color: inherit;
  text-decoration: none;
}

.rg-site .site-footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rg-site .site-footer .rg-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: #d2e0b4;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.rg-contact-person {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  font-size: 14px;
}

.rg-contact-person > span {
  color: #c7d0c7;
}

.rg-contact-person > a {
  color: #fff !important;
  font-size: 17px;
  font-weight: 600;
}

.rg-directions {
  align-self: start;
  padding: 24px;
  border: 1px solid rgb(255 255 255 / .13);
  border-radius: 14px;
  background: rgb(255 255 255 / .035);
}

.rg-location-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #c2d29b;
  color: #283524;
  font-size: 24px;
}

.rg-site .site-footer .rg-route-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 8px;
  background: #c2d29b;
  color: #283524;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.rg-site .site-footer .rg-route-button:hover {
  background: #d6e3ba;
  color: #283524;
}

.rg-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-top: 22px;
  border-top: 1px solid rgb(255 255 255 / .13);
}

.rg-site .rg-footer-bottom p {
  margin: 0;
  font-size: 12px;
}

.rg-footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 12px;
}

.rg-credit {
  font-size: 12px;
}

/* Bootstrap-Containerbreiten */
@media (min-width: 576px) {
  .rg-site .rg-container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .rg-site .rg-container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .rg-site .rg-container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .rg-site .rg-container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .rg-site .rg-container {
    max-width: 1320px;
  }
}

/* Tablet */
@media (max-width: 1199.98px) {
  .rg-site .desktop-menu {
    display: none !important;
  }

  .rg-site .mobile-toggle {
    display: inline-flex !important;
    margin-left: auto;
  }

  .rg-site .header-inner {
    min-height: 104px;
    gap: 20px;
  }

  .rg-site .site-logo img {
    width: 170px;
    max-height: 82px;
  }

  .rg-footer-grid {
    gap: 28px;
    grid-template-columns: 1fr 1fr;
  }

  .rg-directions {
    grid-column: 1 / -1;
  }
}

/* Smartphone */
@media (max-width: 767.98px) {
  .rg-topbar-inner {
    justify-content: center;
    min-height: 35px;
    padding-block: 6px;
  }

  .rg-topbar-inner > p {
    display: none;
  }

  .rg-topbar-contact {
    justify-content: center;
    font-size: 12px;
    gap: 6px 14px;
  }

  .rg-site .header-inner {
    min-height: 90px;
    padding-block: 10px;
  }

  .rg-site .site-logo img {
    width: 150px;
    max-height: 70px;
  }

  .rg-site .site-footer {
    padding-top: 38px;
  }

  .rg-footer-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding-bottom: 24px;
  }

  .rg-footer-intro > p {
    font-size: 16px;
  }

  .rg-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 28px;
  }

  .rg-directions {
    grid-column: auto;
  }

  .rg-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rg-site .desktop-menu * {
    transition: none !important;
  }
}


/* =========================================
   FOOTER – GRÜNE ALTERNATIVE
   ========================================= */

.rg-site .site-footer.rg-footer-new {
  --footer-green: #76923b;
  --footer-soft: #8ba359;
  --footer-lime: #a3ab1c;

  margin-top: 32px;
  padding: 48px 0 22px;
  border-top: 5px solid var(--footer-lime);
  background: var(--footer-green);
  color: #fff;
}

/* Logo und Spruch */
.rg-footer-new .rg-footer-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgb(255 255 255 / 25%);
}

.rg-footer-new .rg-footer-brand > a {
  display: block;
  flex: 0 1 300px;
}

.rg-footer-new .rg-footer-brand img {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
}

.rg-site .rg-footer-new .rg-footer-brand p {
  margin: 0;
  color: #fff;
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 400;
  line-height: 1.5;
}

.rg-footer-new .rg-footer-brand p span {
  font-style: italic;
}

/* Drei Inhaltsbereiche */
.rg-footer-new .rg-footer-columns {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr .9fr;
  gap: 36px;
  padding: 36px 0;
}

.rg-footer-new .rg-footer-columns > section {
  min-width: 0;
}

.rg-site .rg-footer-new h3 {
  margin: 0 0 24px;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

.rg-site .rg-footer-new a {
  color: #fff;
  text-decoration: none;
}

.rg-site .rg-footer-new a:hover {
  color: #fff;
}

/* Kontaktzeilen */
.rg-site .rg-footer-new .rg-footer-contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  text-decoration: none;
}

.rg-footer-new .rg-footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 13px;
  background: var(--footer-soft);
  color: #fff;
  font-size: 18px;
}

.rg-footer-new .rg-footer-contact-link > span:last-child {
  min-width: 0;
}

.rg-footer-new .rg-footer-contact-link small {
  display: block;
  margin-bottom: 3px;
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
}

.rg-footer-new .rg-footer-contact-link strong {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.rg-footer-new .rg-footer-contact-link:hover strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Adresse */
.rg-footer-new .rg-footer-address {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.rg-site .rg-footer-new address {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-style: normal;
  line-height: 1.7;
}

.rg-footer-new address strong {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.rg-site .rg-footer-new .rg-footer-directions-text {
  margin: 0 0 12px;
  color: #fff;
  font-size: 14px;
  line-height: 1.75;
}

/* Helle Anfahrtskarte */
.rg-footer-new .rg-footer-route {
  align-self: start;
  padding: 28px;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 18px;
  background: #f4f6ee;
}

.rg-footer-new .rg-footer-route-icon {
  display: block;
  margin-bottom: 20px;
  color: var(--footer-green);
  font-size: 30px;
}

.rg-site .rg-footer-new .rg-footer-route h3 {
  margin-bottom: 12px;
  color: #354126;
}

.rg-site .rg-footer-new .rg-footer-route p {
  margin: 0 0 22px;
  color: #535c49;
  font-size: 15px;
  line-height: 1.7;
}

.rg-site .rg-footer-new .rg-footer-route-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--footer-lime);
  border-radius: 10px;
  background: var(--footer-lime);
  color: #283116;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.rg-site .rg-footer-new .rg-footer-route-link:hover {
  background: #b5bd32;
  color: #283116;
  text-decoration: none;
}

.rg-footer-new .rg-footer-route-link .fa-arrow-up-right-from-square {
  font-size: 11px;
}

/* Untere Abschlusszeile */
.rg-footer-new .rg-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-top: 22px;
  border-top: 1px solid rgb(255 255 255 / 25%);
}

.rg-site .rg-footer-new .rg-footer-legal p {
  margin: 0;
  color: #fff;
  font-size: 12px;
}

.rg-footer-new .rg-footer-legal nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 12px;
}

.rg-site .rg-footer-new .rg-footer-legal a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rg-footer-new .rg-footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.rg-footer-new .rg-footer-credit i {
  font-size: 10px;
}

.rg-site .rg-footer-new a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

.rg-site .rg-footer-new .rg-footer-route a:focus-visible {
  outline-color: #354126;
}

/* Tablet */
@media (max-width: 1199.98px) {
  .rg-footer-new .rg-footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .rg-footer-new .rg-footer-route {
    grid-column: 1 / -1;
  }
}

/* Smartphone */
@media (max-width: 767.98px) {
  .rg-site .site-footer.rg-footer-new {
    padding-top: 34px;
  }

  .rg-footer-new .rg-footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding-bottom: 28px;
  }

  .rg-footer-new .rg-footer-brand > a {
    flex: none;
    width: 240px;
    max-width: 100%;
  }

  .rg-footer-new .rg-footer-columns {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 28px;
  }

  .rg-footer-new .rg-footer-route {
    grid-column: auto;
    padding: 24px;
  }

  .rg-footer-new .rg-footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }
}

