/*
 * Compatibility styles for migrated TYPO3 content elements.
 * These rules target old csc-* markup so new imports get sane defaults
 * without needing page-specific CSS for every TYPO3 content type.
 */

.rg-content .csc-default,
.rg-content .csc-textpic,
.rg-sidebar__content .csc-default,
.rg-sidebar__content .csc-textpic {
  margin-block: 0 22px;
}

.rg-content .csc-frame:not(.csc-frame-teasermain),
.rg-sidebar__content .csc-frame:not(.csc-frame-teasermain) {
  display: flow-root;
  margin-block: 0 22px;
}

.rg-content .clearer,
.rg-sidebar__content .clearer,
.rg-content hr.clearer,
.rg-sidebar__content hr.clearer {
  clear: both;
}

.rg-content hr.clearer,
.rg-sidebar__content hr.clearer {
  height: 0;
  margin: 22px 0;
  border: 0;
  border-top: 1px solid #c9b49f;
}

.rg-content .csc-textpic,
.rg-sidebar__content .csc-textpic {
  display: flow-root;
}

.rg-content .csc-textpic-imagewrap,
.rg-sidebar__content .csc-textpic-imagewrap {
  max-width: 100%;
  margin: 0 0 14px;
}

.rg-content .csc-textpic-intext-left .csc-textpic-imagewrap,
.rg-content .csc-textpic-intext-left-nowrap .csc-textpic-imagewrap {
  float: left;
  max-width: min(42%, 320px);
  margin: 4px 20px 12px 0;
}

.rg-content .csc-textpic-intext-right .csc-textpic-imagewrap,
.rg-content .csc-textpic-intext-right-nowrap .csc-textpic-imagewrap {
  float: right;
  max-width: min(42%, 320px);
  margin: 4px 0 12px 20px;
}

.rg-sidebar__content .csc-textpic-intext-left .csc-textpic-imagewrap,
.rg-sidebar__content .csc-textpic-intext-left-nowrap .csc-textpic-imagewrap,
.rg-sidebar__content .csc-textpic-intext-right .csc-textpic-imagewrap,
.rg-sidebar__content .csc-textpic-intext-right-nowrap .csc-textpic-imagewrap {
  float: none;
  max-width: 100%;
  margin: 0 0 12px;
}

.rg-content .csc-frame-teasermain .csc-textpic-imagewrap,
.rg-content .csc-frame-teasermain .csc-textpic-intext-left .csc-textpic-imagewrap,
.rg-content .csc-frame-teasermain .csc-textpic-intext-left-nowrap .csc-textpic-imagewrap,
.rg-content .csc-frame-teasermain .csc-textpic-intext-right .csc-textpic-imagewrap,
.rg-content .csc-frame-teasermain .csc-textpic-intext-right-nowrap .csc-textpic-imagewrap,
.rg-sidebar__content .csc-frame-teasermain .csc-textpic-imagewrap,
.rg-sidebar__content .csc-frame-teasermain .csc-textpic-intext-left .csc-textpic-imagewrap,
.rg-sidebar__content .csc-frame-teasermain .csc-textpic-intext-left-nowrap .csc-textpic-imagewrap,
.rg-sidebar__content .csc-frame-teasermain .csc-textpic-intext-right .csc-textpic-imagewrap,
.rg-sidebar__content .csc-frame-teasermain .csc-textpic-intext-right-nowrap .csc-textpic-imagewrap {
  float: none;
  width: 100%;
  max-width: none;
  margin: 0;
}

.rg-content .csc-textpic-center .csc-textpic-imagewrap,
.rg-sidebar__content .csc-textpic-center .csc-textpic-imagewrap {
  margin-inline: auto;
  text-align: center;
}

.rg-content .csc-textpic-right .csc-textpic-imagewrap,
.rg-sidebar__content .csc-textpic-right .csc-textpic-imagewrap {
  margin-left: auto;
  text-align: right;
}

.rg-content .csc-textpic-imagewrap > dl,
.rg-content .csc-textpic-image,
.rg-sidebar__content .csc-textpic-imagewrap > dl,
.rg-sidebar__content .csc-textpic-image {
  max-width: 100%;
  margin: 0;
}

.rg-content .csc-textpic-imagewrap dl,
.rg-sidebar__content .csc-textpic-imagewrap dl {
  display: inline-block;
  vertical-align: top;
}

.rg-content .csc-textpic-imagewrap dt,
.rg-sidebar__content .csc-textpic-imagewrap dt {
  margin: 0;
}

.rg-content .csc-textpic-imagewrap img,
.rg-sidebar__content .csc-textpic-imagewrap img {
  display: block;
  max-width: 100%;
  height: auto;
}

.rg-content .csc-textpic-caption,
.rg-sidebar__content .csc-textpic-caption,
.rg-content .csc-textpic-caption .copy,
.rg-sidebar__content .csc-textpic-caption .copy {
  margin-top: 6px;
  color: #8a5a2b;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
  text-align: center;
}

.rg-content .csc-textpic-text,
.rg-sidebar__content .csc-textpic-text {
  min-width: 0;
}

.rg-content .csc-textpic-text > :last-child,
.rg-sidebar__content .csc-textpic-text > :last-child {
  margin-bottom: 0;
}

.rg-content .rubrik,
.rg-sidebar__content .rubrik {
  margin: 0 0 8px;
  color: #8a5a2b;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

body:not(.rg-has-region-home) .rg-content:has(#region_list):has(#regionetmap) {
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(316px, 1fr);
  gap: 30px;
  align-items: start;
}

body:not(.rg-has-region-home) .rg-content:has(#region_list):has(#regionetmap) > .rubrik:empty,
body:not(.rg-has-region-home) .rg-content:has(#region_list):has(#regionetmap) > .csc-textpic-text:empty {
  display: none;
}

body:not(.rg-has-region-home) .rg-content:has(#region_list):has(#regionetmap) > nav {
  margin: 0;
  padding: 16px;
  border: 1px solid #e0d4c7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(53, 42, 31, 0.1);
}

body:not(.rg-has-region-home) .rg-content:has(#region_list):has(#regionetmap) > nav h2 {
  margin: 0 0 13px;
  color: #2f251c;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
}

#region_list {
  display: grid;
  gap: 8px;
}

#region_list br,
#region_list p:empty {
  display: none;
}

#region_list a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #e4d9cc;
  border-radius: 8px;
  background: #fbf8f3;
  color: #3d2a1d;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

#region_list a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.45;
  transform: rotate(-45deg);
}

#region_list a:hover,
#region_list a:focus,
#region_list a.is-active {
  border-color: #d39129;
  background: #fff0d6;
  color: #6f4421;
  transform: translateX(2px);
}

#regionetmap {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 14px;
  border: 1px solid #e0d4c7;
  border-radius: 8px;
  background: #f8f4ed;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

#regionetmap svg {
  display: block;
  width: 100%;
  height: auto;
}

#regionetmap .region-map-link polygon,
#regionetmap polygon.hoverable {
  fill: #d8c5a8;
  stroke: #fff;
  stroke-linejoin: round;
  stroke-width: 1.6;
  cursor: pointer;
  transition: fill 160ms ease, stroke 160ms ease, filter 160ms ease;
}

#regionetmap .region-map-link:hover polygon,
#regionetmap .region-map-link:focus polygon,
#regionetmap .region-map-link.is-active polygon,
#regionetmap polygon.is-active {
  fill: #d88a00;
  stroke: #6f4421;
  filter: drop-shadow(0 2px 3px rgba(53, 42, 31, 0.28));
}

#regionetmap .region-map-link:focus-visible polygon {
  stroke: #2f251c;
  stroke-width: 2.6;
}

#links-zentrale-dienste {
  display: grid;
  gap: 12px;
}

#links-zentrale-dienste h2 {
  margin: 0 0 2px;
  padding-bottom: 8px;
  border-bottom: 1px solid #b79373;
  color: #835424;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
}

#links-zentrale-dienste > a {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e0d4c7;
  border-radius: 8px;
  background: #fff;
  color: #2f251c;
  text-decoration: none;
  box-shadow: 0 5px 16px rgba(53, 42, 31, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

#links-zentrale-dienste > a:hover,
#links-zentrale-dienste > a:focus {
  border-color: #d39129;
  color: #2f251c;
  box-shadow: 0 8px 20px rgba(53, 42, 31, 0.14);
  transform: translateY(-1px);
}

#links-zentrale-dienste > a > img {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
}

#links-zentrale-dienste .links-zentrale-dienste-hover {
  display: none;
}

#links-zentrale-dienste > a:hover > img:first-of-type,
#links-zentrale-dienste > a:focus > img:first-of-type {
  display: none;
}

#links-zentrale-dienste > a:hover > .links-zentrale-dienste-hover,
#links-zentrale-dienste > a:focus > .links-zentrale-dienste-hover {
  display: block;
}

#links-zentrale-dienste h3 {
  margin: 0 0 3px;
  padding: 0;
  border: 0;
  color: #6f4421;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.15;
}

#links-zentrale-dienste p {
  margin: 0;
  color: #665b52;
  font-size: 12px;
  line-height: 1.35;
}

body.rg-has-region-home .rg-container {
  width: min(100% - 48px, 1220px);
}

body.rg-has-region-home .rg-page-header {
  display: none;
}

body.rg-has-region-home .rg-layout.has-sidebar {
  grid-template-columns: minmax(280px, 330px) minmax(360px, 1fr) minmax(320px, 380px);
  gap: clamp(20px, 2vw, 28px);
  align-items: stretch;
}

body.rg-has-region-home .rg-layout > .rg-layout__main,
body.rg-has-region-home .rg-content:has(#region_list):has(#regionetmap) {
  display: contents;
}

body.rg-has-region-home .rg-content:has(#region_list):has(#regionetmap) > .rubrik,
body.rg-has-region-home .rg-content:has(#region_list):has(#regionetmap) > .csc-textpic-text {
  display: none;
}

body.rg-has-region-home .rg-content:has(#region_list):has(#regionetmap) > nav:has(#region_list) {
  grid-column: 1;
  grid-row: 1;
}

body.rg-has-region-home #regionetmap {
  grid-column: 2;
  grid-row: 1;
}

body.rg-has-region-home .rg-sidebar {
  grid-column: 3;
  grid-row: 1;
}

body.rg-has-region-home .rg-content:has(#region_list):has(#regionetmap) > nav:has(#region_list),
body.rg-has-region-home #regionetmap {
  min-width: 0;
  min-height: 416px;
}

body.rg-has-region-home .rg-content:has(#region_list):has(#regionetmap) > nav:has(#region_list) {
  display: block;
  width: 100%;
  padding: 22px 24px;
}

body.rg-has-region-home .rg-content:has(#region_list):has(#regionetmap) > nav:has(#region_list)::before {
  content: "St\00e4 dte und Orte von A-Z";
  display: block;
  margin: 0 0 18px;
  color: #2f251c;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
}

body.rg-has-region-home .rg-content:has(#region_list):has(#regionetmap) > nav:has(#region_list) h2 {
  margin-bottom: 14px;
  font-size: 18px;
}

body.rg-has-region-home #region_list {
  display: grid;
  gap: 7px;
}

body.rg-has-region-home #region_list a {
  min-height: 29px;
  padding: 5px 8px;
  border-color: transparent;
  background: transparent;
  color: #9d4f32;
  font-size: 15px;
  box-shadow: none;
}

body.rg-has-region-home #region_list a::after {
  display: none;
}

body.rg-has-region-home #region_list a:hover,
body.rg-has-region-home #region_list a:focus,
body.rg-has-region-home #region_list a.is-active {
  border-color: #ead8c7;
  background: #fff5e8;
  color: #6f4421;
}

body.rg-has-region-home #regionetmap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px;
}

body.rg-has-region-home #regionetmap p {
  display: contents;
}

body.rg-has-region-home #regionetmap svg,
body.rg-has-region-home #regionetmap img {
  width: min(100%, 370px);
  max-height: 376px;
}

body.rg-has-region-home #links-zentrale-dienste > h2 {
  display: none;
}

body.rg-has-region-home #links-zentrale-dienste {
  gap: 20px;
  height: 100%;
  grid-template-rows: repeat(4, minmax(0, 1fr));
}

body.rg-has-region-home #links-zentrale-dienste > a {
  min-height: 87px;
}

.rg-content .csc-menu,
.rg-sidebar__content .csc-menu {
  margin: 0 0 18px;
  padding-left: 18px;
}

.rg-content .csc-menu li,
.rg-sidebar__content .csc-menu li {
  margin: 3px 0;
}

.rg-content .csc-menu a,
.rg-sidebar__content .csc-menu a {
  overflow-wrap: anywhere;
}

.rg-content .csc-menu-15,
.rg-sidebar__content .csc-menu-15 {
  float: left;
  width: 13em;
  max-width: calc(33.333% - 1rem);
  margin: 0 1rem 18px 0;
  padding-left: 18px;
}

.rg-content .csc-sitemap,
.rg-sidebar__content .csc-sitemap {
  margin: 0 0 20px;
  padding-left: 18px;
}

.rg-content .csc-frame-indent,
.rg-content .csc-frame-indent3366,
.rg-content .csc-frame-indent6633 {
  padding-left: 24px;
}

.rg-content .csc-frame-frame1,
.rg-content .csc-frame-frame2,
.rg-sidebar__content .csc-frame-frame1,
.rg-sidebar__content .csc-frame-frame2 {
  padding: 16px;
  border: 1px solid #d9c7b1;
  background: #fbf7ef;
}

.rg-content .csc-frame-columnbox1,
.rg-sidebar__content .csc-frame-columnbox1 {
  overflow: hidden;
  border: 1px solid #f0bd78;
  border-radius: 4px;
  background: #fffdf9;
}

.rg-layout.no-sidebar .rg-content .csc-frame-columnbox1:has(.csc-textpic) {
  width: min(100%, 35rem);
}

.rg-content .csc-frame-columnbox1 > h2:first-child,
.rg-content .csc-frame-columnbox1 > h3:first-child,
.rg-content .csc-frame-columnbox1 > h4:first-child,
.rg-sidebar__content .csc-frame-columnbox1 > h2:first-child,
.rg-sidebar__content .csc-frame-columnbox1 > h3:first-child,
.rg-sidebar__content .csc-frame-columnbox1 > h4:first-child {
  margin: 0;
  padding: 6px 10px;
  background: #f8dfb6;
  color: #1d130b;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.rg-content .csc-frame-columnbox1 > .rubrik:empty,
.rg-sidebar__content .csc-frame-columnbox1 > .rubrik:empty {
  display: none;
}

.rg-content .csc-frame-columnbox1 > .csc-textpic,
.rg-sidebar__content .csc-frame-columnbox1 > .csc-textpic {
  padding: 16px;
}

.rg-content .csc-frame-columnbox1 .csc-textpic hr.clearer,
.rg-sidebar__content .csc-frame-columnbox1 .csc-textpic hr.clearer {
  display: none;
}

.rg-content .csc-frame-columnbox1 ul,
.rg-sidebar__content .csc-frame-columnbox1 ul {
  columns: 2;
  column-gap: 36px;
  margin: 0;
  padding: 16px 24px 18px 38px;
}

.rg-content .csc-frame-columnbox1 li,
.rg-sidebar__content .csc-frame-columnbox1 li {
  break-inside: avoid;
  margin: 0 0 6px;
  padding-right: 12px;
}

.rg-content .csc-frame-columnbox1 a,
.rg-sidebar__content .csc-frame-columnbox1 a {
  overflow-wrap: anywhere;
}

.rg-content .news-list-container,
.rg-content .news-single-item,
.rg-sidebar__content .news-list-container {
  margin: 0 0 22px;
}

.rg-layout.no-sidebar .rg-content .news-list-container {
  width: min(100%, 35rem);
}

.rg-content .news-list-item,
.rg-sidebar__content .news-list-item {
  display: flow-root;
  padding: 0 0 16px;
  margin: 0 0 16px;
  border-bottom: 1px solid #d9c7b1;
}

.rg-content .news-list-item h3,
.rg-sidebar__content .news-list-item h3 {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.25;
}

.rg-content .news-list-item h3 a,
.rg-sidebar__content .news-list-item h3 a {
  color: #945800;
  text-decoration: none;
}

.rg-content .news-list-item h3 a:hover,
.rg-content .news-list-item h3 a:focus,
.rg-sidebar__content .news-list-item h3 a:hover,
.rg-sidebar__content .news-list-item h3 a:focus {
  color: #7a4b1f;
  text-decoration: none;
}

.rg-content .news-list-category,
.rg-content .news-list-homecat,
.rg-content .news-event-cat,
.rg-sidebar__content .news-list-category,
.rg-sidebar__content .news-list-homecat,
.rg-sidebar__content .news-event-cat {
  float: right;
  margin-left: 20px;
  color: #945800;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9em;
  font-weight: 400;
}

.rg-content .news-list-category a,
.rg-content .news-list-homecat a,
.rg-content .news-event-cat a,
.rg-sidebar__content .news-list-category a,
.rg-sidebar__content .news-list-homecat a,
.rg-sidebar__content .news-event-cat a {
  color: inherit;
  text-decoration: none;
}

.rg-content .news-list-item > a:empty,
.rg-sidebar__content .news-list-item > a:empty,
.rg-content .news-list-item hr.clearer,
.rg-sidebar__content .news-list-item hr.clearer {
  display: none;
}

.rg-content .news-list-resultbrowser,
.rg-sidebar__content .news-list-resultbrowser {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

.rg-content .news-list-resultbrowser li,
.rg-sidebar__content .news-list-resultbrowser li {
  margin: 0;
}

.rg-content .news-list-resultbrowser .news-list-resultcount,
.rg-sidebar__content .news-list-resultbrowser .news-list-resultcount {
  flex: 1 0 100%;
  color: #665b52;
  font-size: 13px;
  line-height: 1.35;
}

.rg-content .news-list-resultbrowser a,
.rg-content .news-list-resultbrowser strong,
.rg-sidebar__content .news-list-resultbrowser a,
.rg-sidebar__content .news-list-resultbrowser strong {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid #d9c7b1;
  border-radius: 999px;
  background: #fff9f0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.rg-content .news-list-resultbrowser a,
.rg-sidebar__content .news-list-resultbrowser a {
  color: #7a4b1f;
}

.rg-content .news-list-resultbrowser a:hover,
.rg-content .news-list-resultbrowser a:focus,
.rg-sidebar__content .news-list-resultbrowser a:hover,
.rg-sidebar__content .news-list-resultbrowser a:focus {
  border-color: #d39129;
  background: #fff0d6;
  color: #6f4421;
}

.rg-content .news-list-resultbrowser strong,
.rg-sidebar__content .news-list-resultbrowser strong {
  border-color: #8a5a2b;
  background: #8a5a2b;
  color: #fff;
}

.rg-content .news-list-date,
.rg-sidebar__content .news-list-date {
  color: #8a5a2b;
  font-size: 12px;
  font-weight: 700;
}

.rg-content .tx-indexedsearch,
.rg-content .tx-indexedsearch-browsebox,
.rg-content .tx-indexedsearch-res {
  margin: 18px 0;
}

.rg-content .tx-indexedsearch-res {
  padding-bottom: 14px;
  border-bottom: 1px solid #d9c7b1;
}

.rg-content .external-link-new-window,
.rg-sidebar__content .external-link-new-window {
  overflow-wrap: anywhere;
}

.rg-content table.contenttable,
.rg-content table.csc-table,
.rg-sidebar__content table.contenttable,
.rg-sidebar__content table.csc-table {
  width: 100%;
  border-collapse: collapse;
}

.rg-content table.contenttable th,
.rg-content table.contenttable td,
.rg-content table.csc-table th,
.rg-content table.csc-table td,
.rg-sidebar__content table.contenttable th,
.rg-sidebar__content table.contenttable td,
.rg-sidebar__content table.csc-table th,
.rg-sidebar__content table.csc-table td {
  padding: 7px 9px;
  border: 1px solid #d9c7b1;
  vertical-align: top;
}

@media (max-width: 1180px) and (min-width: 901px) {
  body.rg-has-region-home .rg-container {
    width: min(100% - 40px, 1000px);
  }

  body.rg-has-region-home .rg-layout.has-sidebar {
    grid-template-columns: minmax(270px, 330px) minmax(330px, 1fr);
    gap: 24px;
  }

  body.rg-has-region-home .rg-content:has(#region_list):has(#regionetmap) > nav:has(#region_list) {
    grid-column: 1;
    grid-row: 1;
  }

  body.rg-has-region-home #regionetmap {
    grid-column: 2;
    grid-row: 1;
  }

  body.rg-has-region-home .rg-sidebar {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  body.rg-has-region-home .rg-content:has(#region_list):has(#regionetmap) > nav:has(#region_list),
  body.rg-has-region-home #regionetmap {
    min-height: 360px;
  }

  body.rg-has-region-home #regionetmap svg,
  body.rg-has-region-home #regionetmap img {
    width: min(100%, 340px);
  }

  body.rg-has-region-home #links-zentrale-dienste {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    height: auto;
  }

  body.rg-has-region-home #links-zentrale-dienste > a {
    min-height: 82px;
  }
}

@media (max-width: 900px) {
  .rg-content .csc-menu-15,
  .rg-sidebar__content .csc-menu-15 {
    max-width: calc(50% - 0.75rem);
  }

  .rg-content .csc-textpic-intext-left .csc-textpic-imagewrap,
  .rg-content .csc-textpic-intext-left-nowrap .csc-textpic-imagewrap,
  .rg-content .csc-textpic-intext-right .csc-textpic-imagewrap,
  .rg-content .csc-textpic-intext-right-nowrap .csc-textpic-imagewrap {
    float: none;
    max-width: 100%;
    margin: 0 0 14px;
  }

  .rg-content .csc-frame-indent,
  .rg-content .csc-frame-indent3366,
  .rg-content .csc-frame-indent6633 {
    padding-left: 0;
  }

  .rg-content .csc-frame-columnbox1 ul,
  .rg-sidebar__content .csc-frame-columnbox1 ul {
    columns: 1;
  }

  body:not(.rg-has-region-home) .rg-content:has(#region_list):has(#regionetmap) {
    grid-template-columns: 1fr;
  }

  body:not(.rg-has-region-home) .rg-content:has(#region_list):has(#regionetmap) > nav,
  body:not(.rg-has-region-home) .rg-content:has(#region_list):has(#regionetmap) > #regionetmap {
    grid-column: auto;
  }

  #region_list {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  body.rg-has-region-home .rg-container {
    width: min(100% - 32px, 1060px);
  }

  body.rg-has-region-home .rg-layout.has-sidebar {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  body.rg-has-region-home .rg-layout > .rg-layout__main {
    display: block;
  }

  body.rg-has-region-home .rg-content:has(#region_list):has(#regionetmap) {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  body.rg-has-region-home .rg-content:has(#region_list):has(#regionetmap) > nav:has(#region_list),
  body.rg-has-region-home #regionetmap,
  body.rg-has-region-home .rg-sidebar {
    grid-column: auto;
    grid-row: auto;
  }

  body.rg-has-region-home .rg-content:has(#region_list):has(#regionetmap) > nav:has(#region_list),
  body.rg-has-region-home #regionetmap {
    min-height: 0;
  }

  body.rg-has-region-home #regionetmap {
    width: min(100%, 430px);
    margin-inline: auto;
  }

  body.rg-has-region-home #regionetmap svg,
  body.rg-has-region-home #regionetmap img {
    width: min(100%, 340px);
    max-height: none;
  }

  body.rg-has-region-home #links-zentrale-dienste {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
  }
}

@media (max-width: 640px) {
  .rg-content .csc-menu-15,
  .rg-sidebar__content .csc-menu-15 {
    float: none;
    width: auto;
    max-width: none;
    margin-right: 0;
  }

  body.rg-has-region-home .rg-container {
    width: min(100% - 24px, 760px);
  }

  body.rg-has-region-home .rg-content:has(#region_list):has(#regionetmap) > nav:has(#region_list) {
    padding: 18px;
  }

  body.rg-has-region-home .rg-content:has(#region_list):has(#regionetmap) > nav:has(#region_list)::before,
  body.rg-has-region-home .rg-content:has(#region_list):has(#regionetmap) > nav:has(#region_list) h2 {
    font-size: 17px;
  }

  body.rg-has-region-home #region_list {
    grid-template-columns: 1fr;
  }

  body.rg-has-region-home #regionetmap {
    padding: 14px;
  }

  body.rg-has-region-home #links-zentrale-dienste > a {
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: 76px;
    padding: 10px;
  }

  body.rg-has-region-home #links-zentrale-dienste > a > img {
    width: 46px;
    height: 46px;
  }
}
