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

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

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

a,
a:is(:hover, :focus) {
    color: #008039;
}

:is(#content, footer .template-page) a {
    text-decoration: underline;
}

b,
strong,
#content a {
    font-weight: 600;
}

/* #region --------------------------------- buttonStyle ---------------------------------------- */

.buttonStyle a:not(.has-image):not([rel]) {
    background: #ca0a0a;
    border-radius: 8px;
    color: #ffffff;
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 16px 20px;
    transition: all 300ms;
    position: relative;
    line-height: 1.2;
    text-transform: uppercase;
}

.buttonStyle a:not(.has-image):not([rel]):is(:focus, :hover) {
    background: #007a3d;
}

/* specific buttons */

#options .buttonStyle a[href^="mailto"] {
    background-image: url("data:image/svg+xml,%0A%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E");
    background-position: center left 14px;
    background-size: 20px auto;
    background-repeat: no-repeat;
    padding-left: 45px;
}

footer address a:not(.has-image):not([href^="mailto"]) {
    background: #ffffff;
    border-radius: 8px;
    color: #262626;
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 16px 20px;
    transition: all 300ms;
    position: relative;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none !important;
}

footer address a:not(.has-image):not([href^="mailto"]):is(:focus, :hover) {
    color: #1357a0;
}

/* #endregion ------------------------------ buttonStyle ---------------------------------------- */

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

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

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

/* #region ----------------------------------- options ------------------------------------------ */

#options {
    font-size: 1rem;
    line-height: 1.2;
    gap: 20px;
}

/* language */

#language {
    gap: 6px 15px;
}

#language h2 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
}

#language a {
    outline-offset: 2px;
    border-radius: 4px;
}

#language a:not(:focus) {
    outline: 2px solid transparent;
    transition: outline 300ms linear;
}

#language a:is(.active, :hover) {
    outline-color: rgba(102, 102, 102, 0.34);
}

#language a img {
    display: block;
}

/* buttons */

.button1 {
    background: #ffffff;
    padding: 14px 20px 14px 45px;
    position: relative;
    box-shadow: 0 2px 6px rgba(88, 88, 88, 0.2);
    transition: all 300ms;
    border-radius: 8px;
}

.button1:is(:hover, :focus-within) {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.button1 a {
    text-decoration: underline;
}

.button1::before {
    content: "";
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23ca0a0a" height="48" viewBox="0 -960 960 960" width="48"><path d="M777-487q-5-121.325-89.291-205.551Q603.418-776.778 482-781.778V-842q73 2 136.5 30.5T730-735q48 48 76.5 111.5T837-487h-60Zm-170 0q-5-50-40-84.5T482-611v-60q75 5 127.5 57T667-487h-60Zm188 367q-116 0-236.5-56T335-335Q232-438 176-558.5T120-795q0-19 13-32t32-13h140q14 0 24 10t14 25l27 126q2 14-.5 25.5T359-634L259-533q26 44 55 82t64 72q37 38 78 69.5t86 55.5l95-98q10-11 23-15t26-2l119 26q15 4 25 16t10 27v135q0 19-13 32t-32 13Z"/></svg>') center / 24px auto no-repeat;
    display: block;
    left: 0;
    position: absolute;
    top: 2px;
    bottom: 0;
    width: 50px;
}

.button1:is(:hover, :focus-within)::before {
    animation: shake 1s ease 1;
}

@keyframes shake {

    40%,
    60% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }

    70% {
        transform: rotate(0deg);
    }

    100% {
        transform: scale(1);
    }
}

/* #endregion -------------------------------- options ------------------------------------------ */

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

nav.horizontally {
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 9px 0 rgba(255, 255, 255, 0.6);
}

nav.horizontally>.row {
    row-gap: 20px;
}

/* burgermenu for tablet */

@media (max-width: 991px) {
    nav.horizontally {
        padding: 20px 0;
        position: static !important;
    }

    #burgerButton {
        font-size: 0;
        border: none !important;
        display: block;
        height: 50px;
        width: 60px;
        border-radius: 8px;
        padding: 6px 8px;
        cursor: pointer;
        background-color: #007a3d;
    }

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        background-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: #ffffff;
        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;
        right: 15px;
        top: 15px;
        z-index: 101;
    }

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

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

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally>.row {
        padding-top: 15px;
        padding-bottom: 15px;
        transition: padding 200ms linear;
    }

    .is-sticky nav.horizontally>.row {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    nav.horizontally>.row+.row::before {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        left: 15px;
        right: 15px;
        background: #666666;
        opacity: 0.34;
        height: 2px;
    }

    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 2px 15px;
        transition: margin-top 200ms linear;
    }

    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 li.open>ul {
        pointer-events: none !important;
        opacity: 0 !important;
        visibility: hidden;
    }

    nav.horizontally .navbar-nav li:is(: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)>ul {
        z-index: 1003;
    }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: #262626;
    font-weight: 600;
    padding: 12px 15px;
    position: relative;
    text-align: left;
    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 a[class*="toplevel"] {
        padding: 9px 0;
    }
}

nav.horizontally a[class*="toplevel"]::before {
    content: "";
    width: 0;
    height: 3px;
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 4px;
    background-color: #007a3d;
    opacity: 0;
    transition: opacity 300ms linear, width 300ms linear;
}

/* toplevel-over */

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;
    width: 100%;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 18px 0;
    border-radius: 10px;
}

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

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

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

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

    nav.horizontally :is([class*="toplevel"], [class*="secondlevel"])>ul::before {
        content: "";
        display: block;
        position: absolute;
    }

    nav.horizontally [class*="toplevel"]>ul::before {
        height: 20px;
        left: 0;
        right: 0;
        top: -20px;
    }

    nav.horizontally [class*="secondlevel"]>ul::before {
        bottom: 0;
        left: -20px;
        top: 0;
        width: 20px;
    }
}

/* secondlevel + thirdlevel */

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

@media (max-width: 991px) {
    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: #007a3d;
    color: #ffffff;
}

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

/* #region ------------------------------------ banner ------------------------------------------ */

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

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

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

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

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

#content {
    text-align: left;
    padding-top: clamp(40px, 5vw, 50px);
    padding-bottom: clamp(40px, 7vw, 70px);
}

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

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

h1,
.h1,
.legacy_h1,
:is(#feedback .tabHeadline) :is(h1, h2) {
    font-size: clamp(1.875rem, 4vw, 2.375rem);
}

h2,
.h2,
.legacy_h2 {
    font-size: clamp(1.8125rem, 3.5vw, 2rem);
}

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

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

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

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

/* #region ------------------------------------- tabs ------------------------------------------- */

#tabs {
    background: url('../img/flaggen.webp') center bottom / cover no-repeat;
    padding-bottom: clamp(60px, 10vw, 100px);
}

#tabs>.row {
    row-gap: 15px;
}

#tabs .buttonStyle a { 
    width: 100%;
    max-width: 205px;
    text-align: center;
    margin-bottom: 15px;
    background-color: #1357a0;
}

#tabs .tab1 {
    padding: 15px 0;
}

#tabs .buttonStyle a:not(.has-image):not([rel]):is(:focus, :hover) {
  background-color: #007a3d;
}

/* ----------------------------------------------- @3ev events -------------------------------------------- */

#ev3 {
    font-size: 1rem;
    padding: 15px 0;
    display: grid;
    row-gap: 30px;
}

#ev3 .tabHeadline {
    font-size: 1.875rem;
    font-weight: 700;
    color: #262626;
    margin-bottom: 0;
}

#ev3Box {
    color: #ffffff;
    position: relative;
    border-radius: 10px;
    padding: clamp(30px, 3vw, 55px) clamp(30px, 3vw, 40px);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-color: #007a3d;
}

#ev3Box a {
    color: #ffffff;
}

@media (min-width: 768px) {
    #ev3 .tab_link_entries {
        display: flex !important;
        flex-wrap: wrap;
    }

    #ev3 .tab_link_entry {
        width: calc(50% - 15px);
    }

    #ev3 .tab_link_entry:nth-of-type(2n+1) {
        margin-right: 30px;
    }

    #ev3 .tab_link_entry:not(:first-child)+.tab_link_entry {
        margin-top: 25px;
        padding-top: 25px;
        border-top: 2px solid #ffffff;
    }
}

@media (max-width: 767px) {
    #ev3 .tab_link_entry+.tab_link_entry {
        margin-top: 25px;
        padding-top: 25px;
        border-top: 2px solid #ffffff;
    }
}

#ev3 .tab_link_title a {
    font-weight: 700;
}

#ev3Box .tab_link_mehr,
#ev3 .tab_spacer {
    display: none;
}

#ev3 .tab_link_mehr {
    font-size: 0;
}

#ev3 .tab_link_mehr a {
    text-decoration: none;
    display: inline-block;
    font-weight: 400;
    font-size: 0.875rem;
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 8px;
    background: #1357a0;
}

#ev3 .tab_link_mehr a:hover,
#ev3 .tab_link_mehr a:focus {
    color: #ffffff;
    background: #007a3d;
}

/* #endregion ---------------------------------- tabs ------------------------------------------- */

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

footer {
    font-size: 1rem;
    background: #1357a0;
}

footer,
footer * {
    color: #ffffff;
}

footer>.row {
    row-gap: 30px;
}

footer>.row:first-of-type {
    padding-top: 40px;
    padding-bottom: 40px;
}

footer>.row:last-of-type {
    padding-top: 35px;
    padding-bottom: 35px;
}

footer .footerTab a {
    text-decoration: underline;
}

footer hr {
    border-color: #124f91;
    opacity: 1;
    margin: 0;
}

footer :is(.iframe-wrapper-manual-enabling, iframe) {
    width: 100% !important;
    min-width: 100% !important;
    border-radius: 10px;
}

.social-media img {
    display: inline-block;
    width: 50px !important;
    height: 50px !important;
    background: #ffffff;
    border-radius: 50%;
    object-fit: none;
}

#innerfooter ul {
    padding: 0;
}

#innerfooter ul a {
    text-decoration: none;
}

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

@media (min-width: 576px) {
    #innerfooter li {
        display: inline-block;
    }

    #innerfooter li+li {
        margin-left: 20px;
    }
}

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

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

footer #vernetzt {
    gap: 12px;
    text-align: right;
    font-size: 0.8125rem;
    line-height: 1.3;
    font-weight: 400;
    text-decoration: none;
}

footer #vernetzt span span {
    display: block;
}