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

html {
  max-width: 1930px;
  margin-left: auto;
  margin-right: auto;
  background: #e4e4e4;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  scrollbar-color: #682f39 #ffffff;
  scrollbar-width: thin;
}

body {
  font-family: Arial, "Open Sans", sans-serif;
  font-weight: 400;
  color: #151515;
  background: #ffffff;
  font-size: clamp(1rem, 2vw, 1.125rem);
  /* 1rem = 16px */
  line-height: 1.5;
}

a {
  color: #682f39;
}

a:is(:hover, :focus) {
  color: #682f39;
  text-decoration: underline;
}

.linkUnderline a:not(.has-image, .shareButtonLink) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration 300ms;
}

.linkUnderline a:not(.has-image, .shareButtonLink):is(:hover, :focus) {
  text-decoration-color: transparent;
}

b,
strong {
  font-weight: 700;
}

.rowGap {
  row-gap: 30px;
}

:not(.cc_banner-wrapper, [id^="search_input"], [id^="search_submit"], #logo):focus-visible,
#vernetzt:focus-visible span {
  background-color: #fff !important;
  color: #682f39 !important;
  z-index: 100;
  text-decoration: none;
  outline: 4px solid #151515;
}

#logo:focus-visible {
  outline: 4px solid #151515;
  background: #151515;
}

:is([id^="search_input"], [id^="search_submit"]):focus-visible {
  outline: 2px solid #000;
}

#overflow {
  overflow: hidden;
}

/* ----------------------------------------------- @3tp topbar ----------------------------------------------- */

#tp3 {
  color: #ffffff;
  padding-top: 10px;
  padding-bottom: 10px;
  background: #682f39;
}

@media (max-width: 991px) {
  #tp3 > .row > * + * {
    margin-top: 10px;
  }
}

@media (max-width: 575px) {
  #tp3 > .row > * > * + * {
    margin-top: 10px;
  }
}

@media (min-width: 992px) {
  #tp3 {
    padding-top: 0;
    padding-bottom: 0;
  }
  #tp3 > .row > * > * + * {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 20px;
    margin-left: 20px;
  }
}

#tp3 span {
  color: #ffffff;
  font-size: 1rem;
  padding-right: 10px;
}

/* ------------------------------------------------ contrast_style ---------------------------------------------- */

#contrast_style button {
  color: #000000;
  padding: 0;
  font-size: 0;
  border: unset !important;
  display: inline-block;
  text-align: center;
  width: 2.1875rem;
  height: 2.1875rem;
  font-weight: 400;
  background: #fff;
  transition: background 300ms linear;
  border: 1px solid #151515 !important;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

#contrast_style button:hover,
#contrast_style button:focus {
  background: #151515;
}

#contrast_style * + * {
  margin-left: 3px;
}

@media (max-width: 575px) {
  #tp3 span {
    display: block;
    margin-bottom: 5px;
  }
}
/* ------------------------------------------------ styler ---------------------------------------------- */

#style button {
  padding: 0;
  border: none;
  color: #fff;
  display: inline-block;
  min-width: 2.1875rem;
  min-height: 2.1875rem;
  font-weight: 400;
  font-size: 1.25rem;
  text-align: center;
  background: transparent;
  border: 1px solid transparent !important;
  border-radius: 50%;
  position: relative;
  line-height: 1;
  transition:
    color 300ms linear,
    border-color 300ms linear,
    background 300ms linear;
}

#style button + button {
  margin-left: 10px;
  position: relative;
}

#style button + button::before {
  content: "";
  position: absolute;
  display: inline-block;
  height: 75%;
  top: 50%;
  left: -6px;
  transform: translateY(-50%);
  width: 2px;
  background: #fff;
}

#style button:hover,
#style button:focus {
  color: #151515;
  background: #fff;
  border-color: #151515 !important;
}

/* ----------------------------------------------- search ----------------------------------------------- */

form[id^="search"] {
  min-height: 35px;
  display: block;
  position: relative;
}

@media (max-width: 575px) {
  form[id^="search"] {
    display: inline-block;
  }
}

@media (min-width: 576px) {
  form[id^="search"] {
    margin-left: 30px;
  }
}

form [id^="search_submit"] {
  width: 40px;
  aspect-ratio: 1;

  background: url("../img/suche-icon.png") center no-repeat;
  padding: 0;
  border: none;
  cursor: pointer;
  font-size: 0;
  transition:
    background 200ms linear,
    top 200ms linear,
    bottom 200ms linear;
}

form [id^="search_submit"]:hover,
form [id^="search_submit"]:focus {
  top: 0;
  bottom: 0;
  background-color: #151515;
}

/* für :focus-visible -> setzt die Umrandung -3px weiter hinein */
form[id^="search"],
form [id^="search_submit"] {
  outline-offset: -3px;
}

@media (max-width: 991px) {
  form[id^="search"],
  form [id^="search_submit"] {
    outline-offset: -3px;
    justify-content: center;
    align-content: center;
    display: flex;
  }
}
/* ------------------------------------------------- logo ------------------------------------------------ */

#logo {
  display: inline-block;
}

#logo img {
  display: block;
}

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

#logo {
  transition:
    scale 300ms,
    margin-block 300ms;
}
.is-sticky #logo {
  scale: 0.5;
  margin-block: -30px;
}

@media (max-width: 991px) {
  #logo {
    padding-top: 10px;
  }
  .is-sticky #logo {
    margin-block: -30px;
    scale: 0.5;
    padding: 20px 0;
  }
}

/* #region ---------------------------------- navigation ---------------------------------------- */

/* burgermenu for tablet */

@media (max-width: 991px) {
  nav.horizontally {
    background-color: #682f39;
    padding-bottom: 10px;
  }
  .is-sticky nav.horizontally {
    border-bottom: 2px solid #fff;
  }
  #burgerButton {
    font-size: 0;
    border: none !important;
    display: block;
    height: 50px;
    width: 60px;
    border-radius: 2px;
    padding: 6px 8px;
    cursor: pointer;
    background-color: #ffffff;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
  }

  #burgerButton::before,
  #burgerButton::after,
  #burgerButtonInner {
    background-color: #682f39;
    border-radius: 2px;
    position: absolute;
    width: 40px;
    height: 3px;
    left: 10px;
    transition:
      transform 200ms linear,
      opacity 200ms linear;
  }

  .contrast_light_font #burgerButton::before,
  .contrast_light_font #burgerButton::after,
  .contrast_light_font #burgerButtonInner {
    background-color: #fff !important;
  }

  .contrast_dark_font #burgerButton::before,
  .contrast_dark_font #burgerButton::after,
  .contrast_dark_font #burgerButtonInner {
    background-color: #000 !important;
  }

  #burgerButton[aria-expanded="true"] #burgerButtonInner {
    transform: rotate(-45deg) translate(-6px, 6px);
  }

  #burgerButton[aria-expanded="true"]::before {
    opacity: 0;
  }

  #burgerButton[aria-expanded="true"]:after {
    transform: rotate(45deg) translate(-4px, -6px);
  }

  #burgerButtonInner {
    top: 16px;
  }

  #burgerButton::before {
    top: 24px;
    content: "";
  }

  #burgerButton::after {
    top: 32px;
    content: "";
  }

  .navbar-nav {
    margin: 20px 0;
  }

  .navbar-collapse {
    width: calc(100% - 90px);
    max-width: 300px;
    top: 0;
    background: #682f39;
    position: fixed;
    left: -100%;
    bottom: 0;
    z-index: 100;
    height: auto !important;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    overflow-y: auto;
    transition:
      left 300ms linear,
      opacity 300ms linear,
      box-shadow 600ms linear;
    box-shadow: 250px 0 50vw 50vw rgba(255, 255, 255, 0);
  }

  .navbar-collapse:is([aria-expanded="true"], .in) {
    left: 0;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    box-shadow: 250px 0 50vw 50vw rgba(0, 0, 0, 0.6);
  }

  .navbar-header {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 101;
  }

  .dropdown-toggle-button-wrapper {
    top: 7px;
  }

  .dropdown-toggle-button-wrapper2 {
    top: 4px;
  }
}

/* menu desktop */

@media (min-width: 992px) {
  nav.horizontally {
    transition:
      background-color 300ms,
      padding-block 300ms;
    padding-block: 30px;
  }

  .is-sticky nav.horizontally {
    background-color: #682f39;
    left: auto !important;
    padding-block: 0px;
    padding-top: 10px;
  }

  #menu-sticky-wrapper {
    position: absolute;
    width: 100%;
  }

  #menu-sticky-wrapper.is-sticky {
    position: absolute;
    width: 100%;
  }

  nav.horizontally .navbar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%);
  }

  nav.horizontally .navbar-nav::after {
    content: "";
    position: absolute;
    z-index: -1;
    background: #682f39;
    inset: 0 -100vw 0 -60px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 30px 50%);
    transition: inset 300ms;
  }

  .is-sticky .horizontally .navbar-nav::after {
    inset: -30px -100vw -60px -100vw;
    display: none;
  }

  nav.horizontally .navbar-nav > li {
    flex-grow: 1;
  }

  nav.horizontally .navbar-nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: block !important;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms linear;
  }

  nav.horizontally .navbar-nav [class*="secondlevel"] > ul {
    left: 100%;
    top: 0;
  }

  nav.horizontally .navbar-nav li {
    position: relative;
  }

  nav.horizontally .navbar-nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: block !important;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms linear;
  }

  nav.horizontally .navbar-nav li {
    position: relative;
  }

  nav.horizontally .navbar-nav li:is(.open:focus-within, :hover) > ul,
  nav.horizontally .navbar-nav li[class*="secondlevel"] > ul[style*="block"] {
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible;
  }

  nav.horizontally .navbar-nav li:is(:hover, :focus-within) > ul {
    z-index: 1003;
  }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
  color: #ffffff;
  font-weight: 400;
  text-align: left;
  padding: 10px 15px 15px 15px;
  position: relative;
  font-size: 1.125rem;
  line-height: 1.2;
  text-decoration: none;
}

@media (max-width: 991px) {
  nav.horizontally a[class*="toplevel"].dropdown-toggle {
    padding-right: 35px;
  }
}

@media (min-width: 992px) {
  nav.horizontally li[class*="toplevel"] + li {
    margin-left: 20px;
  }

  nav.horizontally a[class*="toplevel"] {
    text-align: center;
    padding: 30px 0;
  }
}

@media (min-width: 992px) {
  nav.horizontally a[class*="toplevel"]::before {
    content: "";
    width: 25px;
    height: 15px;
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    background-color: #ffffff;
    opacity: 0;
    transition: opacity 300ms linear;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    transition: top 300ms linear;
  }
  .is-sticky nav.horizontally a[class*="toplevel"]::before {
    top: -10px;
  }
}
@media (max-width: 991px) {
  nav.horizontally a[class*="toplevel"]::before {
    content: "";
    width: 20px;
    height: 8px;
    display: block;
    position: absolute;
    left: -6px;
    top: 37%;
    background-color: #682f39;
    opacity: 0;
    transition: opacity 300ms linear;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    rotate: -90deg;
  }
}

/* toplevel-over */

nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within) > a,
nav.horizontally li[class*="toplevel"] > a:is(:hover, :focus),
nav.horizontally li[class*="toplevel"].open > a,
nav.horizontally li[class*="toplevel"].open > a:is(:hover, :focus),
nav.horizontally li[class*="toplevel"][class*="_over"] > a,
nav.horizontally li[class*="toplevel"][class*="_over"] > a:is(:hover, :focus) {
  color: #ffffff;
  background-color: transparent;
}

@media (max-width: 991px) {
  nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within) > a,
  nav.horizontally li[class*="toplevel"] > a:is(:hover, :focus),
  nav.horizontally li[class*="toplevel"].open > a,
  nav.horizontally li[class*="toplevel"].open > a:is(:hover, :focus),
  nav.horizontally li[class*="toplevel"][class*="_over"] > a,
  nav.horizontally li[class*="toplevel"][class*="_over"] > a:is(:hover, :focus) {
    color: #682f39;
    background-color: #fff;
  }
}

nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within) > a::before,
nav.horizontally li[class*="toplevel"] > a:is(:hover, :focus)::before,
nav.horizontally li[class*="toplevel"].open > a::before,
nav.horizontally li[class*="toplevel"].open > a:is(:hover, :focus)::before,
nav.horizontally li[class*="toplevel"][class*="_over"] > a::before,
nav.horizontally li[class*="toplevel"][class*="_over"] > a:is(:hover, :focus)::before {
  opacity: 1;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
  background-color: #682f39;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
  nav.horizontally [class*="toplevel"] > ul {
    padding: 10px 0;
  }
  nav.horizontally [class*="toplevel"] ul {
    margin: 10px;
  }
}

@media (min-width: 992px) {
  nav.horizontally [class*="toplevel"] ul {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  nav.horizontally [class*="toplevel"] > ul {
    left: -15px;
    margin-top: 15px;
  }

  nav.horizontally [class*="toplevel"] > ul::before {
    content: "";
    position: absolute;
    display: block;
    height: 15px;
    left: 0;
    right: 0;
    top: -15px;
  }

  nav.horizontally [class*="secondlevel"] > ul {
    margin-top: -30px;
    border-radius: 4px;
    margin-left: 10px;
  }

  nav.horizontally [class*="secondlevel"] > ul::before {
    content: "";
    position: absolute;
    display: block;
    width: 30px;
    top: 0;
    bottom: 0;
    left: -30px;
  }
}

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
  color: #fff;
  font-weight: 400;
  text-align: left;
  padding: 8px 25px;
  font-size: 1.125rem;
  line-height: 1.2;
  text-decoration: none;
}

@media (max-width: 991px) {
  nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    text-align: left;
  }

  nav.horizontally a[class*="secondlevel"].dropdown-toggle2 {
    padding-right: 35px;
  }
}

/* secondlevel + thirdlevel over */

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]):is(:hover, :focus-within) > a,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]) > a:is(:hover, :focus),
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open > a,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open > a:is(:hover, :focus),
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"] > a,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"] > a:is(:hover, :focus) {
  background: #fff;
  color: #682f39;
}

/* #endregion ------------------------------- navigation ---------------------------------------- */
/* -------------------------------------------- banner ------------------------------------------ */

#slider {
  max-height: clamp(300px, 42vw, 500px);
  position: relative;
}

@media (min-width: 992px) {
  body.index #slider {
    max-height: clamp(400px, 62vw, 800px);
  }

  #headerpic a.nivo-prevNav {
    left: 65px;
  }

  #headerpic a.nivo-nextNav {
    right: 65px;
  }
}

#headerpic {
  padding: 0;
  position: relative;
}

.slider-wrapper,
#slider {
  height: 100%;
}

.slider-mask {
  display: none;
}

@media (min-width: 992px) {
  .slider-mask {
    display: block;
    background: linear-gradient(to top, #151515, transparent);
  }
}

#bannerTab {
  padding-block: clamp(30px, 4vw, 50px);
  background: #682f39;
  color: #fff;
  pointer-events: none;
}

#bannerTab .tab {
  pointer-events: all;
}

#bannerTab .tabHeadline {
  font-size: clamp(3rem, 7vw, 6.25rem);
  color: #fff;
}

@media (min-width: 992px) {
  #bannerTab {
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 20;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%);
  }
}

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

#content {
  text-align: left;
  padding-bottom: 30px;
  padding-top: 30px;
}

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

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
  color: #682f39;
  font-weight: 600;
  line-height: 1.2;
  font-family: "DynaPuff", cursive;
}

h1,
.h1,
.legacy_h1 {
  font-size: clamp(1.875rem, 5.5vw, 2.875rem);
}

h2,
.h2,
.legacy_h2 {
  font-size: clamp(1.75rem, 5vw, 2.625rem);
}

h3,
.h3,
.legacy_h3 {
  font-size: clamp(1.625rem, 4.5vw, 2.4375rem);
}

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited) .legacy_h4 {
  font-size: clamp(1.5rem, 4vw, 2.1875rem);
}

h5,
.h5,
.legacy_h5 {
  font-size: clamp(1.375rem, 3.5vw, 1.875rem);
}

h6,
.h6,
.legacy_h6 {
  font-size: clamp(1.25rem, 3vw, 1.5625rem);
}

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

#tabs {
  background-image: url(../img/hintergrund-logo.png);
  background-repeat: no-repeat;
  background-position: bottom left 15px;
  padding-bottom: 60px;
}

#tabs .tabHeadlineBig {
  margin: 0;
}

#tabs .tab .tabHeadline {
  font-size: clamp(1.75rem, 5vw, 3rem);
  color: #682f39;
  font-family: "Story Script", cursive;
  font-weight: 400;
}

/* ----------------------------------------------- @2f footer ----------------------------------------------- */

#footer {
  color: #151515;
  padding-top: 30px;
  padding-bottom: 30px;
  background: #fff url(../img/spielerin-grau-footer.png);
  background-repeat: no-repeat;
  background-position: center right 25%;
  border-top: 4px solid #682f39;
}

@media (max-width: 991px) {
  #footer {
    color: #151515;
    padding-top: 30px;
    padding-bottom: 30px;
    background: #fff;
    background-repeat: no-repeat;
    background-position: center right 25%;
    border-top: 4px solid #682f39;
  }
}

@media (min-width: 992px) {
  #footer {
    padding-top: 50px;
    padding-bottom: 45px;
  }
}

#footer .tabHeadline {
  font-family: "Story Script", cursive;
  font-weight: 400;
}

@media (max-width: 767px) {
  #footer > .row > *:not(:first-of-type) {
    border-top: solid 1px #682f39;
    padding-top: 15px;
  }
}

/* ----------------------------------------------- scrollTop ----------------------------------------------- */

#scrollTop {
  text-decoration: none;
  color: #ffffff;
  font-size: 1.125rem;
  opacity: 1 !important;
  max-width: 170px;
  padding: 10px 20px;
  margin: 0 auto 25px auto;
  background-color: #682f39;
}

@media (min-width: 992px) {
  #scrollTop {
    margin: auto 0 45px auto;
  }
}

#scrollTop:hover,
#scrollTop:focus {
  background-color: #151515;
}

#scrollTop span {
  position: relative;
  display: inline-block;
  font-size: 0;
  height: 35px;
  width: 18px;
  margin-right: 4px;
  transition: border-radius 300ms linear;
}

#scrollTop span::after {
  content: "";
  position: absolute;
  display: inline-block;
  margin-top: -1px;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 1px;
  border-right: 2px solid #ffffff;
  border-top: 2px solid #ffffff;
  transform: rotate(-45deg);
}

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

#vernetzt {
  gap: 12px;
  text-align: right;
  font-size: 1rem;
  color: #151515;
  line-height: 1.3;
  text-decoration: none;
}

#vernetzt span span {
  display: block;
}

@media (min-width: 768px) and (max-width: 991px) {
  .vernetztBereich {
    display: flex;
    align-content: center;
    justify-content: center;
    border-top: solid 1px #682f39;
    padding-top: 30px;
  }

  #scrollTop {
    margin: 0 auto 25px 0;
  }
}
/* ---------------------------------------------- innerfooter ---------------------------------------------- */

#innerfooter {
  font-size: 1rem;
  color: #ffffff;
  background: #682f39;
}

#innerfooter > .row {
  padding-block: 40px;
  background: #682f39 url(../img/footer-logo.png);
  background-repeat: no-repeat;
  background-position: center left 0;
}

@media (max-width: 991px) {
  #innerfooter > .row {
    background-image: none;
  }
}

#innerfooter ul {
  padding: 0 !important;
}

#innerfooter li {
  display: inline-block;
}

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

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

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

@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;
  }
}

.contrast_dark_font :is(#logo img, #search_submit) {
  background-color: #000 !important;
}
