.grenze-modern {
  --modern-header-gap: .75rem;
  --modern-frame-width: min(950px, calc(100% - 1.2rem));
  --modern-nav-font-size: .9rem;
  --modern-logo-size: clamp(78px, 10vw, 106px);
}

.grenze-modern #page_bg::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgb(255 255 255 / 92%),
    rgb(255 255 255 / 60%) 4.5rem,
    rgb(255 255 255 / 18%) 9rem,
    transparent 14rem
  );
}

.grenze-modern > .center {
  display: flow-root;
}

.grenze-modern #Content,
.grenze-modern #Footer {
  box-shadow: 0 3px 14px rgb(20 30 23 / 16%);
}

.grenze-modern #Content {
  background-color: #fff;
}

.grenze-modern #Content:has(> #Footer) {
  padding-block-end: 4% !important;
}

.grenze-modern-header {
  position: sticky;
  top: calc(-.85rem - var(--modern-logo-size) - var(--modern-header-gap));
  z-index: 10;
  color: #486e50;
}

.grenze-modern-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  box-sizing: border-box;
  align-items: center;
  row-gap: var(--modern-header-gap);
  width: var(--modern-frame-width);
  margin-inline: auto;
  padding: .85rem 0 0;
}

.grenze-modern-header #Grenzgebiet {
  position: absolute;
  inset: 0 0 auto auto;
}

.grenze-modern-header #HeaderLogo {
  position: static;
  float: none;
  grid-area: 1 / 1 / 2 / -1;
  width: var(--modern-logo-size);
  height: auto;
  margin: 0;
}

.grenze-modern-header #HeaderLogo p {
  margin: 0;
}

.grenze-modern-header #HeaderLogo img {
  display: block;
  width: 100%;
  height: auto;
}

.grenze-modern-header #Navigation {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  height: auto;
  margin: 0;
  padding: 0 .55rem;
  border-radius: 4px;
  background: white;
  box-shadow: 0 3px 14px rgb(20 30 23 / 18%);
}

.grenze-modern-actions,
.grenze-modern-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .2rem;
}

.grenze-modern-header #Language {
  position: static;
  float: none;
  width: auto;
  height: auto;
  margin: 0;
}

.grenze-modern-header #Language li {
  margin: 0;
}

.grenze-modern-header #Language a,
.grenze-modern-action,
.grenze-modern-menu summary {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  min-height: 44px;
  padding: 0 .3em;
  color: inherit;
  font-size: var(--modern-nav-font-size);
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.grenze-modern-header #Language a,
.grenze-modern-header #Language a:hover {
  font-weight: 400;
}

.grenze-modern-menu summary::-webkit-details-marker {
  display: none;
}

.grenze-modern-menu .grenze-menu-icon {
  position: relative;
  box-sizing: border-box;
  width: 1.15em;
  height: .8em;
  border-block: 1px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}

.grenze-modern-menu details[open] .grenze-menu-icon {
  border-color: transparent;
  background: none;
}

.grenze-modern-menu details[open] .grenze-menu-icon::before,
.grenze-modern-menu details[open] .grenze-menu-icon::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: currentColor;
  transform: rotate(45deg);
}

.grenze-modern-menu details[open] .grenze-menu-icon::after {
  transform: rotate(-45deg);
}

.grenze-modern-menu details:not([open]) nav {
  display: none;
}

.grenze-modern-menu nav {
  position: absolute;
  inset: 100% 0 auto;
  padding: .4rem .55rem .55rem;
  box-sizing: border-box;
  border-block-start: 1px solid #dbe3dc;
  border-radius: 0 0 4px 4px;
  background: white;
  box-shadow: 0 8px 18px rgb(0 0 0 / 13%);
}

.grenze-modern-menu nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.grenze-modern-menu nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: .85rem;
  color: #486e50;
  font-size: 1.1rem;
  font-weight: 400;
  text-decoration: none;
}

.grenze-modern-menu nav a[aria-current="page"] {
  font-weight: 700;
  background: #eef3ee;
  border-radius: 4px;
}

@media (hover: hover) {
  .grenze-modern-menu nav a:not([aria-current="page"]):hover {
    color: #314d36;
  }
}

.grenze-modern-menu nav a:not([aria-current="page"]):active {
  color: #314d36;
}

.grenze-modern #wrapper {
  width: var(--modern-frame-width);
  min-width: 0;
  padding-block-start: var(--modern-header-gap);
}

.grenze-modern #Breadchumb .mod-custom:has(.grenze-action) {
  display: none;
}

.grenze-modern #Breadchumb:has(.grenze-action) {
  height: 0;
  padding: 0;
}

.grenze-modern-desktop {
  min-width: 0;
}

.grenze-modern-desktop ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 clamp(.15rem, .65vw, .55rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.grenze-modern-desktop a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: .28rem;
  color: #1c271e;
  font-size: var(--modern-nav-font-size);
  font-weight: 400;
  text-decoration: none;
}

.grenze-modern-desktop a[aria-current="page"],
.grenze-modern-desktop .active > a {
  background: #eef3ee;
  color: #486e50;
  border-radius: 4px;
}

.grenze-modern-controls {
  padding-inline-start: .25rem;
}

.grenze-modern-menu {
  display: none;
}

.grenze-modern-actions {
  justify-content: flex-start;
  gap: .2rem;
  padding-inline: .3rem;
  border-inline-start: 1px solid #dbe3dc;
}

.grenze-modern-action {
  padding-inline: .35rem;
  color: #486e50;
  font-size: var(--modern-nav-font-size);
  font-weight: 400;
  border-radius: 4px;
}

.grenze-modern-action svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.grenze-modern-header :is(.grenze-modern-desktop a, .grenze-modern-action, #Language a, .grenze-modern-menu summary):hover {
  background: #eef3ee;
  color: #486e50;
  border-radius: 4px;
}

.grenze-modern-header a:focus-visible,
.grenze-modern-menu summary:focus-visible {
  outline: 2px solid #486e50;
  outline-offset: -2px;
}

.grenze-modern-desktop li:is(.item-194, .item-171, .item-134, .item-169, .item-170, .item-133),
.grenze-modern-menu li:is(.item-194, .item-171, .item-134, .item-169, .item-170, .item-133) {
  display: none;
}

@media (max-width: 899px) {
  .grenze-modern-header #Navigation {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-inline: .35rem;
  }

  .grenze-modern-header #Navigation:has(.grenze-modern-menu details[open]) {
    border-end-start-radius: 0;
    border-end-end-radius: 0;
  }

  .grenze-modern-actions {
    border-inline-start: 0;
    padding-inline: 0;
  }

  .grenze-modern-desktop {
    display: none;
  }

  .grenze-modern-controls {
    flex: 0 0 auto;
    gap: .25rem;
    padding-inline-start: 0;
  }

  .grenze-modern-menu {
    display: block;
  }

  .grenze-modern-header #Language a,
  .grenze-modern-menu summary {
    box-sizing: border-box;
    justify-content: center;
    width: 38px;
    min-width: 38px;
    padding-inline: 0;
  }

}

@media (max-width: 420px) {
  .grenze-modern-header #Navigation {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    column-gap: .15rem;
  }

  .grenze-modern-actions {
    flex: 0 0 auto;
    gap: .1rem;
  }

  .grenze-modern-controls {
    margin-inline-start: auto;
  }

  .grenze-modern-header {
    --modern-nav-font-size: .78rem;
  }

  .grenze-modern-action {
    padding-inline: .18rem;
  }

  .grenze-modern-action svg {
    width: 15px;
    height: 15px;
  }




}

.grenze-modern #Breadchumb:not(:has(> *)) {
  display: none;
}

.grenze-modern #FooterMenu {
  display: block;
  float: none;
  margin: clamp(1rem, 3vw, 1.6rem) 0 0;
  padding-top: .35rem;
}

.grenze-modern #FooterMenu ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 clamp(.55rem, 3vw, 1.5rem);
  margin: 0;
  padding: 0;
}

.grenze-modern #FooterMenu li:is(.item-169, .item-194) {
  display: none;
}

.grenze-modern #FooterMenu li {
  float: none;
}

.grenze-modern #FooterMenu ul li a:is(:link, :visited) {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 0;
  padding: 0 .15rem;
  border: 0;
  font-size: .9rem;
}

.grenze-modern #ContentTrennen {
  padding-top: 0;
  height: var(--modern-header-gap);
}

.grenze-modern #Inhalt a.grenze-modern-action {
  display: inline-flex;
  padding-inline: .65rem !important;
  border: 1px solid #dbe3dc;
  background: transparent !important;
}

.grenze-modern #Inhalt a.grenze-modern-action:is(:hover, :focus-visible) {
  color: #486e50 !important;
  background: #eef3ee !important;
}

@media (max-width: 420px) {
  .grenze-modern #FooterMenu ul {
    flex-wrap: nowrap;
    gap: .4rem;
  }

  .grenze-modern #FooterMenu ul li a:is(:link, :visited) {
    padding-inline: .08rem;
    font-size: .78rem;
    white-space: nowrap;
  }
}

@media (max-width: 899px) {
  .grenze-modern-menu summary {
    transition: opacity .5s ease;
  }

  .grenze-modern-header--scroll-hidden .grenze-modern-menu details:not([open]) summary:not(:focus-visible) {
    opacity: 0;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .grenze-modern-menu summary {
    transition: none;
  }
}

.grenze-modern-header #HeaderLogo img { filter: drop-shadow(0 2px 5px rgb(20 30 23 / 22%)); }
.grenze-modern #Inhalt .grenze-modern-back::before { content: '←'; }
.grenze-modern :is(#Content #Inhalt, #Bottom1, #Bottom2) :is(a.Weiterlesen, .readmore > a.btn) {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  box-sizing: border-box;
  min-height: 44px;
  padding: .45em .85em !important;
  border: 1px solid #d5e0d6;
  border-radius: 4px;
  background: #fafcf9 !important;
  color: #456d4b !important;
  font-weight: 400;
  text-decoration: none !important;
  text-transform: none;
}

.grenze-modern :is(#Content #Inhalt, #Bottom1, #Bottom2) :is(a.Weiterlesen, .readmore > a.btn):is(:hover, :focus-visible) {
  background: #eef3ee !important;
}

.grenze-modern :is(#Content #Inhalt, #Bottom1, #Bottom2) :is(a.Weiterlesen, .readmore > a.btn):focus-visible {
  outline: 2px solid #294b30;
  outline-offset: 2px;
}
.grenze-modern :is(#Inhalt, #Bottom1, #Bottom2) .grenze-modern-read::after { content: '→'; }

.grenze-modern.grenze-imprint #Inhalt .Flexbox:has(> .Flexelement > .Kontakt) {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 2.75rem);
  align-items: start;
  margin-block: 1rem 2rem;
}

.grenze-modern.grenze-imprint #Inhalt .Flexbox > .Flexelement {
  width: auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.grenze-modern.grenze-imprint #Inhalt .Flexelement:first-child > p {
  margin-block: 0 .8rem;
  line-height: 1.55;
}

.grenze-modern.grenze-imprint #Inhalt .Flexelement:first-child > p:first-child {
  padding-inline-start: .85rem;
  border-inline-start: 2px solid #9bb19e;
  margin-block-end: 1.25rem;
}

.grenze-modern.grenze-imprint #Inhalt .Kontakt {
  padding: 0;
  padding-inline-start: clamp(.85rem, 2vw, 1.4rem);
  border: 0;
  border-inline-start: 1px solid #dbe3dc;
  border-radius: 0;
  background: transparent;
}

.grenze-modern.grenze-imprint #Inhalt .Kontakt h4 {
  margin-block-end: .9rem;
}

.grenze-modern.grenze-imprint #Inhalt .Kontakt .jt_quick_contact_form .blocks {
  gap: .65rem;
}

.grenze-modern.grenze-imprint #Inhalt .Kontakt .jt-contact-privacy {
  margin: .2rem 0;
  color: #45634a;
  font-size: .85rem;
  line-height: 1.5;
}

.grenze-modern.grenze-imprint #Inhalt .Kontakt .textarea {
  min-height: 268px;
}

.grenze-modern.grenze-imprint #Inhalt .com-content-article__body > h3 {
  margin-block: 1.65rem .45rem;
  padding-block-start: .8rem;
  border-block-start: 1px solid #dbe3dc;
  font-size: 1.15rem;
}

.grenze-modern #Inhalt .Kontakt .jt_quick_contact_form .btn {
  box-sizing: border-box;
  min-height: 44px;
  padding: .45em .85em;
  border: 1px solid #d5e0d6;
  border-radius: 4px;
  background: #fafcf9;
  color: #456d4b;
  font-weight: 400;
  cursor: pointer;
}

.grenze-modern #Inhalt .Kontakt .jt_quick_contact_form .btn:is(:hover, :focus-visible) {
  background: #eef3ee;
  color: #456d4b;
}

.grenze-modern #Inhalt .Kontakt .jt_quick_contact_form .btn:focus-visible {
  outline: 2px solid #294b30;
  outline-offset: 2px;
}

@media (max-width: 680px) {
  .grenze-modern.grenze-imprint #Inhalt .Flexbox:has(> .Flexelement > .Kontakt) {
    grid-template-columns: minmax(0, 1fr);
  }

  .grenze-modern.grenze-imprint #Inhalt .Kontakt {
    padding-inline-start: 0;
    padding-block-start: 1rem;
    border-inline-start: 0;
    border-block-start: 1px solid #dbe3dc;
  }
}

.grenze-modern:is(.grenze-imprint, .grenze-privacy, .grenze-directions) #Inhalt
  .com-content-article__body > h1 {
  margin-block-end: clamp(1.1rem, 3vw, 1.8rem);
}

.grenze-modern:is(.grenze-privacy, .grenze-directions) #Inhalt
  .com-content-article__body > p {
  max-inline-size: 66ch;
  margin-block: 0 .9rem;
}

.grenze-modern.grenze-privacy #Inhalt .com-content-article__body > h3,
.grenze-modern.grenze-directions #Inhalt .com-content-article__body > h4 {
  margin-block: 1.6rem .55rem;
  padding-block-start: .7rem;
  border-block-start: 1px solid #dbe3dc;
  color: #486e50;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.grenze-modern.grenze-privacy #Inhalt [data-rlta-type="accordions"] {
  max-inline-size: 72ch;
  margin-block: 1.4rem 0;
}

.grenze-modern.grenze-privacy #Inhalt [data-rlta-element="panel-content"] {
  overflow-wrap: anywhere;
}

.grenze-modern.grenze-directions #Inhalt .external-media--map {
  margin-block: 1.3rem 1.55rem;
}

.grenze-modern.grenze-directions #Inhalt .external-media--map figcaption {
  padding-block-start: .35rem;
}

.grenze-modern #Inhalt .jt-contact-consent {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin-block-end: .25rem;
  color: #45634a;
  font-size: .85rem;
  line-height: 1.5;
}

.grenze-modern #Inhalt .jt-contact-consent input {
  flex: none;
  margin: .2em 0 0;
  accent-color: #486e50;
  cursor: pointer;
}

.grenze-modern #Inhalt .jt-contact-consent label {
  display: inline;
  cursor: pointer;
}

.grenze-modern #Inhalt .jt-contact-consent a:any-link {
  color: #456d4b;
  font-weight: 400;
  text-decoration: none;
}

@media (forced-colors: none) {
  .grenze-modern #Inhalt .jt-contact-consent input {
    appearance: none;
    display: grid;
    place-content: center;
    inline-size: 1.05rem;
    block-size: 1.05rem;
    border: 1px solid #64836a;
    border-radius: 4px;
    background: #f7faf7;
  }

  .grenze-modern #Inhalt .jt-contact-consent input:checked {
    background: #486e50;
  }

  .grenze-modern #Inhalt .jt-contact-consent input:checked::before {
    content: '';
    inline-size: .52rem;
    block-size: .3rem;
    border: solid white;
    border-width: 0 0 2px 2px;
    transform: translateY(-1px) rotate(-45deg);
  }

  .grenze-modern #Inhalt .jt-contact-consent input:focus-visible {
    outline: 2px solid #486e50;
    outline-offset: 2px;
  }
}

.grenze-modern :is(#Content #Inhalt, #Bottom1, #Bottom2)
  :is(a.Weiterlesen, .readmore > a.btn, a.grenze-modern-action, a.grenze-pdf-link, .Kontakt .jt_quick_contact_form .btn) {
  border: 1px solid #dbe3dc;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgb(28 51 33 / 10%);
  background: transparent !important;
  color: #486e50 !important;
}

.grenze-modern :is(#Content #Inhalt, #Bottom1, #Bottom2)
  :is(a.Weiterlesen, .readmore > a.btn, a.grenze-modern-action, a.grenze-pdf-link, .Kontakt .jt_quick_contact_form .btn):is(:hover, :focus-visible) {
  background: #eef3ee !important;
  text-decoration: none;
}
