@import url("https://fonts.verwaltungsportal.de/import/?family=Open+Sans:400,400i,600,600i");
@import url("https://fonts.verwaltungsportal.de/import/?family=Dancing+Script:700");

body {
   font-family: "Open Sans", sans-serif;
   color: #5c6b79;
   background: #ffffff;
   font-size: 1rem;
   /* 1rem = 16px */
   line-height: 1.5;
   padding: 45px 0;
   min-height: 100svh;
   background-attachment: fixed;
   background-size: cover;
}

@media (min-width: 768px) {
   body {
      font-size: 1.25rem;
   }
}

a {
   color: #507a38;
}

a:hover,
a:focus {
   color: #507a38;
   text-decoration: underline;
}

b,
strong {
   font-weight: 600;
}

.contain {
   max-width: 1200px;
   margin: auto;
   background: #ffffff;
   box-shadow: 0px 3px 16px 0px rgba(0, 0, 0, 0.1);
   padding: 25px 0;
}

@media (max-width: 1199px) {
   div:has(.contain) {
      margin: 0 30px !important;
   }
   .contain {
      padding: 30px;
   }
}


:not(.cc_banner-wrapper, #logo):focus,
#vernetzt:focus span {
    outline: 5px solid #ffffff !important;
    background-color: #507a38 !important;
    color: #ffffff !important;
    z-index: 100;
    text-decoration: none;
    border-radius: 10px;
}

/* ------------------------------------------------- topbar ------------------------------------------------ */

#topbar .contain {
   border-top-right-radius: 100px;
   border-top-left-radius: 100px;
   position: relative;
   z-index: 2;
}

/* ------------------------------------------------- logo ------------------------------------------------ */

#logo {
   display: inline-block;
}

#logo img {
   display: block;
}

@media (max-width: 991px) {
   #logo img {
      max-width: 210px;
      width: 100%;
   }
}

.logoText {
   font-family: "Dancing Script", cursive;
   font-size: clamp(2rem, 3.125vw, 3.125rem);
   color: #507a38;
   line-height: 1.1;
   font-weight: 700;
   margin: 10px 0;
}

.logoText :is(b, strong) {
   font-weight: 700;
   color: #5c6b79;
}

/* ------------------------------------------------ content ----------------------------------------------- */

#content .contain {
   text-align: left;
   padding-bottom: 30px;
   padding-top: 30px;
   padding-left: 15px;
   padding-right: 15px;
   background: #f7f7f7;
}

@media (min-width: 992px) {
   #content .contain {
      padding-bottom: 60px;
      padding-top: 60px;
   }
}

/* ------------------------------------------ tabs ----------------------------------------- */

#tabs {
   margin: 40px 0;
}

#tabs > .row {
   gap: 30px 0;
   padding: 0 15px;
}

#tabs .tab {
   height: 100%;
   background: linear-gradient(90deg, rgba(80, 122, 56, 0.95) 0%, rgba(80, 122, 56, 0.95) 100%), url(../img/grafik-muster.png), #507a38;
   background-size: cover;
   border-radius: 30px;
   color: #ffffff;
   font-size: 2rem;
   font-family: "Dancing Script", cursive;
   font-weight: 700;
   line-height: 1.1;
   padding: 30px;
   position: relative;
   z-index: 1;
   box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
   transition: transform 300ms, box-shadow 300ms;
}

#tabs .tab :is(b, strong) {
   font-size: 2.5rem;
   font-weight: 400;
}

#tabs img {
   margin: 0 auto;
   margin-bottom: 25px;
   display: inline-block;
}

#tabs .tab .template-page,
#tabs .tab .template-page > .row,
#tabs .tab .template-page > .row > div {
   display: inline-block;
   height: 100%;
   width: 100%;
}

#tabs .tab .template-page > .row > div {
   display: flex;
   flex-direction: column;
}

#tabs a {
   color: #fff;
   display: inline-flex;
   height: 100%;
   align-items: center;
   justify-content: center;
   text-decoration: none;
}

#tabs p:has(a) {
   display: inline-flex;
   height: 100%;
   align-items: center;
   justify-content: center;
   text-decoration: none;
}

#tabs a::before {
   content: "";
   position: absolute;
   inset: -30px -30px -55px -30px;
   /* Inset = Padding von .tab */
   border-radius: 30px;
}

#tabs .tab:has(a:is(:hover, :focus)) {
   transform: scale(1.1);
   z-index: 2;
   box-shadow: 0px 0px 50px 0px rgba(0, 0, 0, 0.75);
}

/* ------------------------------------------ h1 - h6, newslink ----------------------------------------- */

.h4link a:link,
.h4link a:hover,
.h4link a:focus,
.h4link a:visited,
H6,
H5,
H4,
H3,
H2,
H1 {
   color: #507a38;
   line-height: 1.2;
   font-family: "Dancing Script", cursive;
   font-weight: 700;
}

h1,
.h1,
.legacy_h1 {
   font-size: 2.1875rem;
}

@media (min-width: 768px) {
   h1,
   .h1,
   .legacy_h1 {
      font-size: 2.8125rem;
   }
}

h2,
.h2,
.legacy_h2 {
   font-size: 1.875rem;
}

@media (min-width: 768px) {
   h2,
   .h2,
   .legacy_h2 {
      font-size: 2.1875rem;
   }
}

h3,
.h3,
.legacy_h3 {
   font-size: 1.6rem;
}

h4,
.h4,
.h4link a:link,
.h4link a:hover,
.h4link a:focus,
.h4link a:visited,
.legacy_h4 {
   font-size: 1.5rem;
}

h5,
.h5,
.legacy_h5 {
   font-size: 1.4rem;
}

h6,
.h6,
.legacy_h6 {
   font-size: 1.3rem;
}

#newslinks,
#newsmandate {
   border: 1px solid #5c6b79;
}
/* ----------------------------------------------- @5f footer ----------------------------------------------- */

#f5 .contain {
   border-bottom-right-radius: 100px;
   border-bottom-left-radius: 100px;
   background: #507a38;
   padding: 30px 0;
   position: relative;
   z-index: 2;
}

@media (max-width: 1199px) {
   #f5 .contain {
      padding: 40px 30px;
   }
}

/* --------------------------------------------- innerfooter -------------------------------------------- */

#innerfooter ul {
   padding: 0;
   display: flex;
   justify-content: space-between;
   flex-wrap: wrap;
}

#innerfooter li {
   display: inline-block;
}

#innerfooter a {
   color: #ffffff;
   text-decoration: none;
   display: inline-block;
   font-size: 1rem;
}

#innerfooter a:hover,
#innerfooter a:focus {
   color: #ffffff;
   text-decoration: underline;
}

#innerfooter li + li::before {
   content: "";
   margin: 0 6px;
}

@media (min-width: 992px) {
   #innerfooter li + li::before {
      margin: 0 15px;
   }
}

@media (max-width: 767px) {
   #innerfooter li {
      display: block;
      text-align: center;
      padding: 5px;
      margin: 0;
   }

   #innerfooter li + li::before {
      display: none;
   }
}

/* --------------------------------------------- vernetzt -------------------------------------------- */

#vernetzt {
   text-align: right;
   font-size: 0.9375rem;
   color: #ffffff;
   line-height: 1.3;
   margin: 0 auto;
   text-decoration: none;
}

@media (min-width: 768px) {
   #vernetzt {
      margin: 0;
   }
}

#vernetzt span {
   color: #ffffff;
}

#vernetzt span span {
   display: block;
}

#vernetzt img {
   margin-left: 12px;
}
