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

:root {
    --main-color: #122568;
    --text-color: #313131;
    --highlight: #f2ffff;

    --weight-normal: 400;
    --weight-bold: 700;

    --shadow: 0 3px 6px rgba(0, 0, 0, 0.16);

    --distance-min: 40px;
    --distance-small: clamp(var(--distance-min), 4vw, 70px);
}

html {
    max-width: 1930px;
    margin-left: auto;
    margin-right: auto;
    background: #e3e9ee;
    scroll-behavior: smooth;
    scroll-padding-top: 0;
    scrollbar-color: var(--main-color) #dfe4eb;
}

body {
    font-family: "Open Sans", sans-serif;
    font-weight: var(--weight-normal);
    color: var(--text-color);
    background: #fff;
    line-height: 1.5;
}

body {
    font-size: 1rem;
}

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

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

a,
a:is(:hover, :focus) {
    color: var(--main-color);
}

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

b,
strong {
    font-weight: var(--weight-bold);
}

hr {
    opacity: 1;
    background: rgba(48, 48, 48, 0.3);
}

.col {
    padding-left: 15px;
    padding-right: 15px;
}

.soft-background {
    background-color: var(--highlight);
}

.soft-background+.soft-background {
    margin-top: 4px;
}

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

#logo {
    display: inline-block;
}

#logo img {
    display: block;
    max-width: 267px;
}

@media (max-width: 575px) {
    #logo img {
        max-width: 68vw;
        width: 100%;
    }
}

/* #region ----------------------------------- buttons ------------------------------------------ */

.button-style *:not(form span)>a:not(.has-image):not(.slick-arrow),
form[id^="form"] input[type="submit"]:not([value="Filtern"]),
#demo-formular summary>span {
    color: inherit;
    color: #fff;
    background: #297f91;
    background-image: none !important;
    padding: 7px 12px;
    display: inline-block;
    border: 1px solid transparent;
    text-decoration: none;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: var(--weight-bold);
    position: relative;
    z-index: 1;
    box-shadow: 1px 3px 2px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    font-size: 1rem;
}

@media(min-width: 768px) {

    .button-style *:not(form span)>a:not(.has-image):not(.slick-arrow),
    form[id^="form"] input[type="submit"]:not([value="Filtern"]),
    #demo-formular summary>span {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (min-width: 992px) {

    .button-style *:not(form span)>a:not(.has-image):not(.slick-arrow),
    form[id^="form"] input[type="submit"]:not([value="Filtern"]),
    #demo-formular summary>span {
        font-size: 1.0625rem;
    }
}

#links .button-style :is(i, em) {
    font-style: normal;
}

#links .button-style h2 {
    font-size: clamp(1.5rem, 2vw, 1.5625rem);
}

#links .button-style .btgrid>.row>*:nth-child(1) :not(form span)>a:not(.has-image):not(.slick-arrow) {
    background: #122568;
}

#links .button-style .btgrid>.row>*:nth-child(1) :not(form span)>:is(i, em) {
    color: #122568;
}

#links .button-style .btgrid>.row>*:nth-child(2) :not(form span)>a:not(.has-image):not(.slick-arrow) {
    color: #fff;
    background: #3f7847;
}

#links .button-style .btgrid>.row>*:nth-child(2) :not(form span)>:is(i, em) {
    color: #3f7847;
}

#links .button-style .btgrid>.row>*:nth-child(3) :not(form span)>a:not(.has-image):not(.slick-arrow) {
    color: #fff;
    background: #d10000;
}

#links .button-style .btgrid>.row>*:nth-child(3) :not(form span)>:is(i, em) {
    color: #d10000;
}

#links .button-style .btgrid>.row>*:nth-child(4) :not(form span)>a:not(.has-image):not(.slick-arrow) {
    color: #313131;
    background: #bbe8ef;
    border: 1px solid rgba(65, 84, 135, 0.3);
}

#links .button-style .btgrid>.row>*:nth-child(4) :not(form span)>:is(i, em) {
    color: #9100ff;
}

.button-style *:not(form span)>a:not(.has-image):not(.slick-arrow)::after,
#demo-formular summary>span::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: -15px;
    width: 0;
    background: rgba(0, 0, 0, 0.15);
    transform: skew(-15deg);
    transition: width 200ms linear;
}

.button-style *:not(form span)>a:not(.has-image):not(.slick-arrow):is(:hover, :focus)::after,
#demo-formular summary>span:is(:hover, :focus)::after {
    width: calc(100% + 25px);
}

form[id^="form"] input[type="submit"]:not([value="Filtern"]):is(:hover, :focus) {
    background-color: #122568;
}

summary {
    display: block;
}

summary>span {
    cursor: pointer;
}

/* #endregion -------------------------------- buttons ------------------------------------------ */

/* --------------------------------------------- list ------------------------------------------- */

.slick-dots li {
    display: block;
}

:is(header, main) ul:not(.slick-dots) {
    margin: 0 0 -8px 0 !important;
}

:is(header, main) ul:not(.slick-dots) li {
    list-style: none;
    position: relative;
    padding-left: 14px;
    margin-bottom: clamp(4px, 0.6vw, 8px);
}

:is(header, main) ul:not(.slick-dots) li::after {
    content: "";
    display: block;
    position: absolute;
    top: 13px;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--main-color);
}

/* #region ------------------------------------ header ------------------------------------------ */

header {
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    header {
        padding-bottom: 20px;
    }
}

header .row {
    row-gap: 25px;
}

.index header {
    padding-bottom: clamp(var(--distance-min), 4vw, 50px);
}

@media (min-width: 992px) {
    header .button-style :not(form span)>a:not(.has-image):not(.slick-arrow) {
        display: block;
        max-width: max-content;
        margin-top: 18px;
    }
}

header>.row:first-child {
    max-width: 1560px;
    padding-top: 21px;
    padding-bottom: 30px;
}

@media (min-width: 1200px) {
    header>.row:first-child {
        padding-top: 30px;
        padding-bottom: 0;
    }
}

@media (min-width: 1200px) {
    header h1 {
        width: calc(100% + 10px);
    }
}

#header-links {
    display: grid;
    gap: 24px 30px;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 576px) and (max-width: 767px) {
    #header-links {
        gap: 15px;
        grid-template-columns: repeat(4, 1fr);
    }
}

#header-links a {
    border-radius: 2px;
    padding: clamp(15px, 2vw, 35px);
    aspect-ratio: 1/1;
    display: flex;
    align-items: end;
    font-weight: var(--weight-bold);
    color: #fff;
    text-decoration: none;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
    transition: transform 150ms linear;
}

@media (min-width: 576px) and (max-width: 767px) {
    #header-links a {
        padding: 8px;
        font-size: 0.9375rem;
    }
}

#header-links a:is(:hover, :focus) {
    transform: scale(1.1);
}

#header-links a::after,
#header-links a::before {
    content: "";
    display: block;
    position: absolute;
    z-index: -1;
}

#header-links a:nth-child(1) {
    background: var(--main-color);
}

#header-links a:nth-child(1)::after {
    top: 6px;
    right: 14px;
    bottom: 65px;
    left: -28px;
    background: url('../img/gesundheit.webp') top right -4px / 70px auto no-repeat;
}

@media (min-width: 992px) {
    #header-links a:nth-child(1)::after {
        background: url('../img/gesundheit.webp') bottom 70px left / 58px auto no-repeat, url('../img/gesundheit.webp') bottom left 60px / 113px auto no-repeat, url('../img/gesundheit.webp') top right -4px / 83px auto no-repeat;
    }
}

#header-links a:nth-child(2) {
    background: #d10000;
}

#header-links a:nth-child(2)::after,
#header-links a:nth-child(2)::before {
    background: #ffe4e4;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

#header-links a:nth-child(2)::after {
    width: 70px;
    height: 70px;
    right: 15px;
    top: 12px;
}

@media (min-width: 992px) {
    #header-links a:nth-child(2)::after {
        width: 92px;
        height: 92px;
        right: unset;
        left: 80px;
        top: 70px;
    }

    #header-links a:nth-child(2)::before {
        width: 158px;
        height: 158px;
        top: -50px;
        right: -30px;
    }
}

@media (min-width: 1200px) {
    #header-links a:nth-child(2)::after {
        top: 90px;
    }
}

#header-links a:nth-child(3) {
    background: #3f7847;
}

#header-links a:nth-child(3)::after {
    width: 103px;
    height: 86px;
    top: 2px;
    right: 4px;
    background: url('../img/werkzeug.webp?v=1');
}

@media (min-width: 992px) {
    #header-links a:nth-child(3)::after {
        height: 184px;
        top: -5px;
        right: 16px;
    }
}

@media (min-width: 1200px) {
    #header-links a:nth-child(3)::after {
        height: 310px;
    }
}

#header-links a:nth-child(4) {
    background: #bbe8ef;
    color: inherit;
    border: 1px solid rgba(65, 84, 135, 0.3);
}

#header-links a:nth-child(4)::before {
    width: 80px;
    height: 80px;
    top: 5px;
    right: 8px;
    background: url('../img/form.webp') top right / 76px auto no-repeat;
    transform: rotate(-150deg);
}

@media (min-width: 992px) {

    #header-links a:nth-child(4)::after {
        width: 200px;
        height: 200px;
        left: 0;
        bottom: 0;
        background: url('../img/form.webp') bottom -50px left -50px / 237px auto no-repeat;
    }

    #header-links a:nth-child(4)::before {
        width: 120px;
        height: 120px;
        top: 15px;
        right: -40px;
        background: url('../img/form.webp') top right / 106px auto no-repeat;
        transform: rotate(-150deg);
    }
}

#devices {
    padding-bottom: 10px;
}

#devices img {
    max-width: 328px;
}

/* #endregion --------------------------------- header ------------------------------------------ */

/* #region ------------------------------------- content ----------------------------------------- */

main img:not([src*="global/"]):not([src*=".png"]):not([src*=".PNG"]):not([src*="logo"]):not(.no-style),
main .icon-border img:not([src*="global/"]):not(.no-style) {
    border-radius: 5px;
}

main img:not([src*="global/"]):not([src*=".png"]):not([src*=".PNG"]):not([src*="logo"]):not(.no-style) {
    box-shadow: var(--shadow);
}

main .icon-border img:not([src*="global/"]):not(.no-style) {
    padding: 7px;
    background: #fff;
    box-shadow: var(--shadow);
}

.icon-border img {
    max-width: 65px;
    width: 65px !important;
    height: auto !important;
}

.no-style img:not([src*="global/"]):not([src*=".png"]):not([src*=".PNG"]):not([src*="logo"]):not(.no-style) {
    border-radius: 0;
    box-shadow: none;
}

*:not(.icon-border) .banner img {
    display: block;
}

main .btgrid>.row {
    row-gap: 30px;
}

body:not(.index) #content {
    padding: var(--distance-small) 0;
}

.index #content>* {
    padding: var(--distance-small) 0;
}

@media (min-width: 992px) {
    .index #content>*:first-child {
        padding-top: 20px
    }
}

form[id^="form"] .formgen_row :is(.subfield, select, textarea),
form[id^="form"] .formgen_row input:is([type="text"], [type="file"], [type="tel"], [type="email"], [type="number"]) {
    padding: 6px 10px;
    background: transparent;
}

#contentbottom_left {
    display: none;
}

#content_footer {
    margin: 0;
}

table th {
    vertical-align: top;
}

#demo-formular {
    margin-top: 20px;
}

#demo-formular[open]>div {
    margin-top: 30px;
}

#demo-formular-success {
    margin-top: 30px;
    display: grid;
    gap: 30px;
}

@media (min-width: 768px) {
    #demo-formular-success {
        grid-template-columns: 1fr 1fr;
    }
}

#demo-formular-success a {
    text-decoration: underline;
}

#demo-formular-success section {
    box-shadow: var(--shadow);
    border-radius: 5px;
    background: #ffffff;
    padding: clamp(30px, 3vw, 40px);
}

#demo-formular-success section:nth-child(1) h3 {
    position: relative;
    display: inline-block;
    width: auto;
    padding-left: 50px;
}

#demo-formular-success section:nth-child(1) h3::before {
    content: "";
    display: block;
    width: 37px;
    height: 37px;
    position: absolute;
    left: 0;
    top: calc(50% - 18px);
    background: url('../img/demo/haekchen.png') center no-repeat;
}

#demo-formular-success.loading section:nth-child(1) h3::before {
    background-image: url('../img/demo/ladestatus.png');
    animation: rotation 2s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#demo-formular-success section:nth-child(2) {
    background-image: url('../img/demo/support-mitarbeiter.webp'), radial-gradient(circle at 400px 0, #e0f6f8 500px, rgba(255, 255, 255, 0) 500px);
    background-position: center top 50px, top center;
    background-repeat: no-repeat;
    padding-top: 280px;
}

#demo-formular-success ol {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

#demo-formular-success li {
    position: relative;
    min-height: 90px;
    box-shadow: var(--shadow);
    border-radius: 3px;
    background: linear-gradient(to right, #fff1fd, #ffffff);
    padding: 18px clamp(15px, 2vw, 30px) 18px 140px;
}

#demo-formular-success li::after {
    content: "";
    display: block;
    position: absolute;
    left: 30px;
    top: calc(50% - 35px);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    box-shadow: var(--shadow);
    background: #ffffff url('../img/demo/brief.png') center no-repeat;
}

#demo-formular-success li:nth-child(2)::after {
    background-image: url('../img/demo/gluehbirne.png');
}

#demo-formular-success li:nth-child(3)::after {
    background-image: url('../img/demo/headset.png');
}

#demo-formular-success address {
    margin: 20px 0;
    font-weight: var(--weight-bold);
}

#demo-formular-success address p+p {
    margin-top: 15px;
}

#demo-formular-success address p::before {
    content: "";
    display: inline-block;
    width: 26px;
    height: 26px;
    border: 5px solid #ffffff;
    box-shadow: var(--shadow);
    border-radius: 3px;
    margin-right: 10px;
    vertical-align: middle;
    background: #e9f0f5 url('../img/demo/telefon.png') center no-repeat;
}

#demo-formular-success address p:nth-child(2):before {
    background-image: url('../img/demo/mail.png');
}

#demo-formular-success address+p {
    font-size: smaller;
    margin-bottom: 15px;
}

#demo-formular-success li+li {
    margin-top: 22px;
}

#demo-formular-success :is(li span, p .block) {
    display: block;
    font-weight: var(--weight-bold);
}

/* #endregion ---------------------------------- content ----------------------------------------- */

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1,
table th {
    color: var(--text-color);
    font-weight: var(--weight-bold);
    line-height: 1.2;
    font-family: "Open Sans", sans-serif;
}

@media (max-width: 767px) {
    :is(.h4link a:is(:link, :hover, :focus, :visited), h6, h5, h4, h3, h2, h1, table th) br {
        display: none;
    }
}

@media (max-width: 1299px) {
    header :is(.h4link a:is(:link, :hover, :focus, :visited), h6, h5, h4, h3, h2, h1, table th) br {
        display: none;
    }
}

.headline-large-margin :is(h1, h2) {
    margin-bottom: clamp(25px, 3vw, 30px);
}

main section:not(#safety, #functions) :is(p, .btgrid)+ :is(h1, h2, h3, h4, h5, h6) {
    margin-top: clamp(15px, 2vw, 25px);
}

h1,
.h1,
.legacy_h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

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

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

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

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

h6,
.h6,
.legacy_h6,
table th,
.icon-border :is(h3, h4, h5),
.tiny-headline-h3 :is(h3, h4, h5),
.tiny-headline-h2 :is(h2, h3, h4, h5) {
    font-size: 1.25rem;
}

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

footer {
    line-height: 1.7;
    padding: var(--distance-small) 0;
}

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

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

footer>.row>*>* {
    width: 100%;
}

footer a {
    color: inherit;
    text-decoration: underline;
}

footer :is(h1, h2, h3, h4, h5, h6) {
    margin-bottom: 20px;
}

footer.template-page>.row {
    row-gap: 20px;
}

#innerfooter ul {
    padding: 0;
    width: 100%;
}

#innerfooter ul li {
    display: block;
}

#innerfooter ul a {
    padding: 3px 0;
    font-weight: var(--weight-bold);
    display: inline-block;
    text-decoration: none;
}

#innerfooter ul a:is(:hover, :focus) {
    color: var(--main-color);
}

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