:is(#Inhalt, #Bottom1, #Bottom2) :is(p, li, dt, dd) a[href]:not(:has(img, svg, picture), .jcepopup, .wfpopup, .grenze-action, .grenze-modern-action, .grenze-modern-read, .station-overview-link, .grenze-pdf-link, .btn, .audio-tour__chapters a) {
  background: transparent;
  border-radius: 0;
  padding: 0;
  color: #456d4b;
  font-size: inherit;
  text-decoration: none;
}

:is(#Inhalt, #Bottom1, #Bottom2) :is(p, li, dt, dd) a[href]:not(:has(img, svg, picture), .jcepopup, .wfpopup, .grenze-action, .grenze-modern-action, .grenze-modern-read, .station-overview-link, .grenze-pdf-link, .btn, .audio-tour__chapters a):is(:hover, :focus-visible),
#Inhalt .jt-contact-consent a:is(:hover, :focus-visible) {
  color: #456d4b !important;
  background: #eef3ee !important;
  border-radius: 4px;
  text-decoration: none;
}

#Inhalt p > a.Weiterlesen {
  padding: 0 !important;
  text-transform: none;
}


/* MediaBox adds a zoom icon and may copy the image’s dimensions onto the link. */
:is(#Inhalt, #Bottom1, #Bottom2) p > a:is(.jcepopup, .wfpopup, [data-mediabox]):has(> img) {
  display: block;
  float: none !important;
  inline-size: 100%;
  max-inline-size: 100% !important;
  margin-inline: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  break-inside: avoid;
}

:is(#Inhalt, #Bottom1, #Bottom2) p > a:is(.jcepopup, .wfpopup, [data-mediabox]) > img,
:is(#Inhalt, #Bottom1, #Bottom2) :is(.station-photo, figure:has(> figcaption)) > img {
  display: block;
  float: none !important;
  inline-size: 100% !important;
  max-inline-size: 100%;
  block-size: auto !important;
  margin-inline: 0 !important;
}

:is(#Inhalt, #Bottom1, #Bottom2) p:has(> a:is(.jcepopup, .wfpopup, [data-mediabox]) > img) {
  break-inside: avoid;
}

:is(#Inhalt, #Bottom1, #Bottom2) p:has(> a:is(.jcepopup, .wfpopup, [data-mediabox]) > img) > .Bildunterschrift {
  display: block;
  margin-block-start: .35rem;
}

#Breadchumb:has(.grenze-action) {
  flex-wrap: nowrap;
}

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

@media (max-width: 420px) {
  #Breadchumb:has(.grenze-action) {
    gap: .35rem;
  }

  #Breadchumb .grenze-action {
    gap: .32rem;
    padding-inline: .55rem;
    font-size: .84rem;
  }
}

#Breadchumb .grenze-action {
  border: 1px solid #4b7251;
  border-radius: 15px;
  background: #4b7251;
  color: #fff;
}

#Breadchumb .grenze-action:hover {
  background: #385740;
  color: #fff;
  text-decoration: none;
}

#Inhalt a:is(.jcepopup, .wfpopup, .wf-zoom-image, [data-mediabox]):has(img):hover {
  background: transparent !important;
}

body:not(.grenze-modern) #Inhalt a:is(.jcepopup, .wfpopup, .wf-zoom-image, [data-mediabox]):hover img,
.grenze-modern #Inhalt a:is(.jcepopup, .wfpopup, .wf-zoom-image, [data-mediabox]) img {
  outline: 1px solid rgb(75 114 81 / 35%);
  outline-offset: -1px;
}

.grenze-modern #Inhalt a:is(.jcepopup, .wfpopup, .wf-zoom-image, [data-mediabox]):hover img {
  outline-color: transparent;
}

#Inhalt .readmore > a.btn {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #456d4b;
  font: inherit;
  text-decoration: none;
}

#Inhalt .readmore > a.btn:is(:hover, :focus-visible) {
  color: #456d4b !important;
  background: transparent !important;
  text-decoration: underline;
  text-underline-offset: .14em;
}

#Inhalt .readmore > a.btn > .icon-chevron-right {
  display: none;
}

.content-link-end {
  display: inline-block;
  hyphens: none;
  white-space: nowrap;
}

.content-link-arrow {
  margin-inline-start: .22em;
  font: 400 .9em/1 system-ui, sans-serif;
}

/* Cookie settings follow the site's typography and control sizes. */
body .cc_div {
  --cc-bg: #fff;
  --cc-text: #25372a;
  --cc-btn-primary-bg: #486e50;
  --cc-btn-primary-text: #fff;
  --cc-btn-primary-hover-bg: #35563d;
  --cc-btn-secondary-bg: #edf3ed;
  --cc-btn-secondary-text: #294b30;
  --cc-btn-secondary-hover-bg: #dce8dd;
  --cc-toggle-bg-on: #486e50;
  --cc-block-text: #25372a;
  --cc-cookie-category-block-bg: #f3f6f3;
  --cc-cookie-category-block-bg-hover: #edf3ed;
  --cc-overlay-bg: rgb(23 31 25 / 52%);
  font-family: Bitter, Georgia, serif;
}
body .cc_div :is(#cm, #s-inr) { border-radius: 12px; }
body #cc_div #cm.box {
  width: min(26rem, calc(100% - 1.2rem));
  max-width: none;
  padding: .9rem 1rem;
  box-shadow: 0 3px 14px rgb(20 30 23 / 12%);
}
body #cc_div #c-ttl { margin-bottom: .5rem; }
body #cc_div #c-txt { line-height: 1.6; }
body #cc_div #c-bns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .25rem;
  margin-top: .7rem;
}
body #cc_div #c-bns .c-bn {
  width: 100%;
  margin: 0;
  min-height: 36px;
  padding: .25rem .3rem;
  white-space: normal;
}
body #cc_div #c-t-bn { grid-column: 1 / -1; grid-row: 2; }
body #cc_div .grenze-cookie-notice { display: block; margin-top: .4rem; font-size: .9em; }
body #cc_div a.grenze-cookie-notice { width: fit-content; }
@media (max-width: 520px) {
  body #cc_div #cm.box {
    left: 50%;
    right: auto;
    bottom: max(.6rem, env(safe-area-inset-bottom, 0px));
    width: calc(100% - 1.2rem - 16px);
    margin: 0;
    translate: -50% 0;
  }
}

body .cc_div .c-bn { min-height: 44px; border-radius: 6px; }
body .cc_div #c-p-bn,
body .cc_div #c-s-bn { background: #486e50; color: #fff; }
body .cc_div #c-p-bn:hover,
body .cc_div #c-s-bn:hover { background: #35563d; }
body {
  --grenze-control-right: calc(12px + env(safe-area-inset-right, 0px));
}
body :is(.cc-trigger.cc-trigger-icon, #scroll2top.scrollToTop) {
  margin: 0 !important;
  right: var(--grenze-control-right) !important;
}
body .cc-trigger.cc-trigger-icon {
  --cc-trigger-icon: #486e50;
  --cc-trigger-icon-hover: #294b30;
  box-sizing: border-box;
  inset: auto var(--grenze-control-right) calc(12px + env(safe-area-inset-bottom, 0px)) auto !important;
  width: 44px;
  height: 44px;
  border: 1px solid #4b7251;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px #0002;
  place-items: center;
  transform: none;
}
.n3tcc--loaded:not(.show--consent, .show--settings) body .cc-trigger.cc-trigger-icon { display: grid; }
body .cc-trigger.cc-trigger-icon svg { width: 20px; }
body .cc-trigger.cc-trigger-icon:hover { background: #edf3ed; }
body .cc-trigger.cc-trigger-icon:focus-visible { outline: 2px solid #294b30; outline-offset: 2px; }
body:has(.cc-trigger.cc-trigger-icon) #scroll2top.scrollToTop {
  bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
}

@media (max-width: 420px) {
  .grenze-press #Inhalt :is(h1, h2, h3) {
    hyphens: auto;
    overflow-wrap: anywhere;
  }
}

:is(#Inhalt, #Bottom1, #Bottom2) a.grenze-pdf-link {
  display: inline-grid;
  grid-template-columns: 1.1em minmax(0, 1fr) auto;
  align-items: center;
  gap: .55em;
  box-sizing: border-box;
  max-width: 100%;
  min-height: 44px;
  padding: .45em .7em;
  border: 1px solid #dbe3dc;
  border-radius: 6px;
  color: #36583d;
  background: #fafcf9;
  text-decoration: none;
}
.grenze-pdf-icon {
  width: 1.1em;
  height: 1.1em;
  color: #456d4b;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h9l5 5v13H5zM14 3v5h5M8 12h8m-8 4h8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.grenze-pdf-title { min-width: 0; overflow-wrap: anywhere; }
.grenze-pdf-format {
  padding: .12em .35em;
  border-radius: 3px;
  background: #e8efe8;
  color: #36583d;
  font-size: .72em;
  font-weight: 600;
  white-space: nowrap;
}
#Content a.grenze-pdf-link:is(:hover, :focus-visible),
:is(#Inhalt, #Bottom1, #Bottom2) a.grenze-pdf-link:is(:hover, :focus-visible) {
  border-color: #b9cdbb;
  background: #edf3ed;
  color: #294b30 !important;
  text-decoration: none;
}
.grenze-pdf-link:focus-visible { outline: 2px solid #486e50; outline-offset: 2px; }
#Inhalt :is(.com-content-article__body, .item-content, .colums)
  :is(p, li):not(:where(nav *, .sige *, .audio-tour__chapters *, :has(img, audio, video, iframe, button))) {
  orphans: 2;
  widows: 2;
  text-wrap: pretty;
}

@media (min-width: 800px) {
  .grenze-press #Inhalt .colums .press-greetings {
    break-before: column;
    break-after: avoid-column;
  }
}

.grenze-modern :is(#Inhalt, #Bottom1, #Bottom2, #Navigation, #FooterMenu, .cc_div) a {
  text-decoration: none !important;
}

.grenze-press #Inhalt .page-header h2 > a {
  color: inherit;
}

.grenze-press #Inhalt .page-header h2 > a:is(:hover, :focus-visible) {
  color: #294b30;
}

.grenze-press #Inhalt .page-header .content-link-arrow {
  margin-inline-start: .35em;
  font-size: .49em;
  vertical-align: .22em;
  opacity: .72;
}

.grenze-modern :is(#Inhalt, #Bottom1, #Bottom2) a:focus-visible {
  outline: 2px solid #486e50;
  outline-offset: 2px;
}
