@import url("https://fonts.verwaltungsportal.de/import/?family=Archivo:400,400i,700,700i");

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

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

a {
   color: #b30000;
}

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

#content a {
   text-decoration: underline;
}
b,
strong {
   font-weight: 700;
}

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

#topbar {
   padding-top: 10px;
   padding-bottom: 10px;
}

#logo {
   display: inline-block;
   margin-bottom: 15px;
}

#logo img {
   display: block;
}

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

/* #region ----------------------------------- notfall ------------------------------------------- */

#notfall {
   border: 2px solid #b30000;
   border-radius: 10px;
   line-height: 1;
   display: inline-block;
   padding: 15px 15px;
}

#notfall img {
    vertical-align: middle;
}

#notfall :is(b, strong) {
   color: #b30000;
   font-size: 1.25rem;
}

/* #region ----------------------------------- search ------------------------------------------- */

form[id^="search"] {
   background: #f4f4f4;
   display: inline-flex;
   position: relative;
   border-radius: 30px;
   margin: 15px 15px 0 15px;
}

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

form [id^="search_input"] {
   color: #6e6e6e;
   font-size: 0.875rem;
   font-style: italic !important;
   background: transparent;
   border: 0;
   width: 100%;
   border-radius: 30px;
   padding: 6px 14px;
   opacity: 1;
}

form [id^="search_submit"] {
   border: 5px solid #ffffff;
   background: #050785 url("../img/icon-suche.png") center / 14px auto no-repeat;
   padding: 0;
   border-radius: 50%;
   cursor: pointer;
   margin: -5px -5px -5px 0;
   font-size: 0;
   aspect-ratio: 1/1;
   min-width: 48px;
   flex-shrink: 0;
   transition: transform 150ms linear;
}

form [id^="search_submit"]:is(:hover, :focus) {
   transform: scale(1.2);
}

#search input::placeholder {
   color: #6e6e6e !important;
   opacity: 1 !important;
   font-style: italic !important;
}

/* #endregion -------------------------------- search ------------------------------------------- */

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

/* burgermenu for tablet */

@media (max-width: 991px) {
   #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: #050785;
      color: #ffffff;
      border-radius: 2px;
      position: absolute;
      width: 40px;
      height: 3px;
      left: 10px;
      transition: transform 200ms linear, opacity 200ms linear;
   }

   #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: #050785;
      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 {
      background-color: #050785;
   }

   nav.horizontally .navbar-nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
   }

   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;
      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 li:is(.open, :hover) > ul,
   nav.horizontally .navbar-nav li.open:focus-within > 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.open > ul {
      pointer-events: none !important;
      opacity: 0 !important;
      visibility: hidden;
   }

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

/* toplevel */

nav.horizontally a[class*="toplevel"] {
   color: #ffffff;
   font-weight: 700;
   text-align: left;
   padding: 10px 15px 15px 15px;
   text-transform: uppercase;
   position: relative;
   font-size: 1.25rem;
   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: 10px;
   }

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

nav.horizontally a[class*="toplevel"]::before {
   content: "";
   width: 20px;
   height: 9px;
   display: block;
   position: absolute;
   left: 30px;
   bottom: 0;
   border-top-left-radius: 90px;
   border-top-right-radius: 90px;
   background-color: #ffffff;
   opacity: 0;
   transition: opacity 300ms linear;
}

@media (min-width: 992px) {
   nav.horizontally a[class*="toplevel"]::before {
      left: calc(50% - 15px);
   }
}

/* 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: #b30000;
}

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: #f4f4f4;
   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*="secondlevel"] > ul {
    margin: 10px;
   }
}

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

   nav.horizontally [class*="toplevel"] > ul {
      left: 50%;
      transform: translate(-50%, 0);
   }

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
   color: #191919;
   border-left: .5729vw solid transparent;
   font-weight: 400;
   text-align: center;
   padding: 8px 25px;
   font-size: 1.125rem;
   line-height: 1.2;
   text-decoration: none;
   transition: border 300ms, color 300ms, background 300ms;
}

@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: #050785;
   color: #ffffff;
   border-left-color: #b30000;
}

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

/* -------------------------------------------- banner ------------------------------------------ */

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

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

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

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

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

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

.slider-mask {
   display: none;
}

/* #region -------------------------------- scroll bottom --------------------------------------- */

#scrollBottom {
   font-size: 0;
   border-radius: 50%;
   display: block;
   width: 40px;
   height: 40px;
   text-align: center;
   background-color: #f4f4f4;
   animation: bounceAni 2s infinite 2s;
   transition: all 0.2s ease-in;
   position: absolute;
   left: calc(50% - 20px);
   bottom: 20px;
   z-index: 50;
}

@media (min-width: 768px) {
   #scrollBottom {
      bottom: 45px;
   }
}

#scrollBottom:is(:hover, :focus) {
   animation-play-state: paused;
}

#scrollBottom::after {
   content: "";
   width: 10px;
   height: 10px;
   border-radius: 1px;
   margin-top: 13px;
   display: inline-block;
   border-left: 2px solid #b30000;
   border-bottom: 2px solid #b30000;
   transform: rotate(-45deg);
   transition: border 300ms linear;
}

@keyframes bounceAni {
   0%,
   100%,
   20%,
   50%,
   80% {
      transform: translateY(0);
   }

   40% {
      transform: translateY(-10px);
   }

   60% {
      transform: translateY(-5px);
   }
}

#scrollBottom:is(:hover, :focus)::after {
   border-color: #191919;
}

/* #endregion ----------------------------- scroll bottom --------------------------------------- */

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

#content {
   text-align: left;
   padding-bottom: clamp(30px, 4vw, 60px);
   padding-top: clamp(30px, 4vw, 60px);
}

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
   color: #050785;
   font-weight: 700;
   line-height: 1.2;
}

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

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

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

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

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

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

/* ------------------------------------------------ @13nw News ----------------------------------------------- */

#news {
   background: url(../img/dekorative-ecke-meldungen-oben.png), url(../img/dekorative-ecke-meldungen-unten.png), #f4f4f4;
   background-position: top -40px left -115px, bottom -40px right -85px, center;
   background-repeat: no-repeat;
   padding-top: 50px;
   padding-bottom: 80px;
}

#news .tabHeadline {
   font-size: clamp(1.375rem, 3vw, 2.1875rem);
   font-weight: 700;
   margin-bottom: 10px;
   text-transform: uppercase;
}

@media (min-width: 768px) {
   #news .tabHeadline {
      margin-bottom: 20px;
   }
}

@media (min-width: 768px) {
   #news .tab_link_entries {
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -ms-flex-wrap: wrap;
      flex-wrap: wrap;
   }
}

#news .tab_link_entry {
   background: #ffffff;
   box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.15);
   border-radius: 10px;
   width: 100%;
   padding: 20px;
   display: grid;
}

#news .tab_link_title {
   order: 1;
   margin-bottom: 8px;
}

#news .vorschau {
   order: 2;
   opacity: 1;
}

#news .tab_date {
   order: 3;
   font-style: italic;
   font-size: 1rem;
}

@media (min-width: 768px) and (max-width: 991px) {
   #news .tab_link_entry {
      width: calc(50% - 15px);
   }

   #news .tab_link_entry:nth-child(2n + 1) {
      margin-right: 15px;
   }

   #news .tab_link_entry:nth-child(2n + 2) {
      margin-left: 15px;
   }
}

@media (min-width: 992px) {
   #news .tab_link_entry {
      width: calc(33.33% - 20px);
   }

   #news .tab_link_entry:nth-child(3n + 1) {
      margin-right: 15px;
   }

   #news .tab_link_entry:nth-child(3n + 2) {
      margin-right: 15px;
      margin-left: 15px;
   }

   #news .tab_link_entry:nth-child(3n + 3) {
      margin-left: 15px;
   }
}

#news .tab_link_entry + .tab_link_entry {
   margin-top: 30px;
}

@media (min-width: 768px) {
   #news .tab_link_entry:nth-child(2) {
      margin-top: 0;
   }
}

@media (min-width: 992px) {
   #news .tab_link_entry:nth-child(3) {
      margin-top: 0;
   }
}

#news .tab_link_title a {
   font-weight: 700;
   font-size: 1.25rem;
   text-transform: uppercase;
   color: #050785;
}

#news .tab_link_mehr {
   margin-bottom: 30px;
   color: transparent;
   font-size: 0;
}

#news .tab_link_mehr a {
   color: #191919;
   display: inline-block;
   font-size: 1rem;
   font-weight: 700;
   background: #ffffff;
   border: 2px solid #b30000;
   border-radius: 10px;
   padding: 10px 25px;
   transition: border 300ms, color 300ms;
}

#news .tab_link_mehr a:hover,
#news .tab_link_mehr a:focus {
   border: 2px solid #191919;
   text-decoration: none;
   color: #b30000;
}

@media (max-width: 767px) {
   #news .tab_link_mehr {
      margin-bottom: 10px;
   }
}

#news .tab_link_entry .tab_link_mehr,
#news .tab_spacer,
#news .tab_preview_picture {
   display: none;
}

/* #region ----------------------------------- footer ------------------------------------------- */

#footer {
   padding: clamp(30px, 4vw, 35px) 0;
   border-top: 3px solid #f4f4f4;
}

@media (max-width: 767px) {
   #footer > .row > .col-xs-12 + * {
      border-top: 1px solid rgba(0, 0, 0, 0.2);
      margin-top: 15px;
      padding-top: 15px;
   }
}

@media (max-width: 991px) {
   #footer > .row > .col-xs-12:last-child {
      border-top: 1px solid rgba(0, 0, 0, 0.2);
      margin-top: 15px;
      padding-top: 15px;
   }
}

@media (min-width: 992px) {
   #footer {
      font-size: 1rem;
   }
}

#footer .notfallnummer :is(h1, h2, h3, h4, h5, h6) {
    color: #b30000;
}

#footer .notfallnummer img {
    vertical-align: middle;
}

#footer a:not(#vernetzt) {
   text-decoration: underline;
}

#footer a:is(:hover, :focus) {
   text-decoration: none;
}

#footer :is(h1, h2, h3, h4, h5, h6) {
   font-size: clamp(1.375rem, 4vw, 2.1875rem);
   font-weight: 700;
   text-transform: uppercase;
}

#innerfooter {
   background-color: #050785;
   padding-top: 15px;
   padding-bottom: 15px;
   font-size: 1rem;
}

#innerfooter ul {
   padding: 0;
}

#innerfooter li {
   display: block;
}

#innerfooter a {
   color: #fff;
   text-decoration: none;
   font-weight: 400;
}

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

@media (min-width: 500px) {
   #innerfooter li + li::before {
      content: "•";
      margin: 0 clamp(15px, 2vw, 25px);
      color: #fff;
   }

   #innerfooter li {
      display: inline-block;
   }
}

/* #endregion -------------------------------- footer ------------------------------------------- */

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

#vernetzt {
   gap: 18px;
   text-align: right;
   font-size: 0.875rem;
   color: #191919;
   line-height: 1.3;
   margin: 0 auto;
   font-weight: 400;
   text-decoration: none;
}

#vernetzt b {
    color: #b30000;
}

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

#vernetzt span span {
   display: block;
}
