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

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

body {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    color: #1f1f1f;
    background: #ffffff;
    font-size: 1rem;
    /* 1rem = 16px */
    line-height: 1.5;
}

a {
    color: #c61016;
}

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

b,
strong {
    font-weight: 700;
}

@media (min-width: 1200px) {
    .row.rowWide {
        max-width: 1440px;
        width: 100%;
    }
}

#over {
    overflow: clip;
    position: relative;
}

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

#topbar {
    border-top: 10px solid #c61016;
    padding: 15px 0;
}

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

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

#logo {
    display: flex;
    align-items: center;
    align-content: center;
    gap: 15px;
    flex-wrap: wrap;
    text-decoration: none;
}

#logo .logoImg img {
    display: block;
}

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

#logo .logoTxt {
    line-height: 1;
    color: #c61016;
    font-size: clamp(1.125rem, 2vw, 1.875rem);
}

#logo .logoTxt :is(h1, h2, h3, h4, h5, h6) {
    margin: 0;
    color: #25518E;
    font-weight: 700;
    font-size: clamp(1.25rem, 4vw, 2.375rem);
}

/* ------------------------------------------------- stylerBox ------------------------------------------------ */

#stylerBox {
    display: flex;
    align-items: center;
    align-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

@media (min-width: 992px) {
    #stylerBox {
        gap: 30px;
        justify-content: end;
    }
}

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

#contrast_style span {
    font-weight: 400;
    color: #1f1f1f;
    font-size: clamp(1rem, 2vw, 1.125rem);
    padding-right: 15px;
}

#contrast_style button {
    display: inline-block;
    color: #000000;
    position: relative;
    z-index: 1;
    padding: 0;
    font-size: 0;
    width: 34px;
    height: 34px;
    font-weight: 400;
    border-radius: 50%;
    text-align: center;
    background: #ffffff;
    border: none;
    transition: background 300ms linear;
}

#contrast_style button+button {
    margin-left: 8px;
}

#contrast_style button:is(:hover, :focus) {
    background-color: rgba(255, 255, 255, 0.8);
}

/* -------------------------------------------- styler -------------------------------------------- */

@media (min-width: 992px) {
    #style span {
        font-weight: 500;
        color: #252525;
        padding-right: 5px;
    }

    #style button {
        font-size: 18px;
        background: transparent;
        padding: 0;
        border: none;
        color: #1f1f1f;
        display: inline-block;
        font-weight: 500;
        text-align: center;
        position: relative;
        min-width: 40px;
        min-height: 40px;
        line-height: 1;
        margin: 0 6px;
        border-radius: 100%;
        transition: color 300ms linear, background 300ms linear;
    }

    #style button+button::before {
        content: '';
        position: absolute;
        pointer-events: none;
        display: inline-block;
        left: -6px;
        top: 0;
        bottom: 0;
        margin: auto;
        width: 1px;
        height: 15px;
        background: #1f1f1f;
    }

    #style button:is(:hover, :focus) {
        color: #ffffff;
        background: #25518E;
    }

    #style button:focus-visible {
        outline: 2px auto
    }
}

/* ------------------------------------------- buttonStyle ------------------------------------------- */

.buttonStyle a {
    text-decoration: none;
    display: inline-block;
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 400;
    color: #ffffff;
    padding: 6px 18px 7px 18px;
    background: #c61016;
    transition: background 300ms linear, color 300ms linear;
}

@media (min-width: 768px) {
    .buttonStyle a+a {
        margin-left: 12px;
    }
}

.buttonStyle a:is(:hover, :focus) {
    color: #ffffff;
    background: #25518E;
}

/* #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: #25518E;
        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: #25518E;
        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 {
        position: sticky;
        top: 0;
        scroll-padding-top: auto;
        z-index: 102;
        padding: 5px 0;
        background-color: #25518E;
    }

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

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

    nav.horizontally a[class*="toplevel"] {
        overflow-wrap: break-word;
        word-wrap: break-word;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        -moz-hyphens: auto;
        hyphens: auto;
    }
}

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

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

nav.horizontally a[class*="toplevel"]::before {
    content: "";
    position: absolute;
    display: block;
    left: 0;
    bottom: 0;
    width: 0;
    height: 4px;
    background: #c61016;
    transition: width 300ms linear;
}

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"]::before {
        bottom: 4px;
    }
}

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

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

/* secondlevel + thirdlevel dropdown-box */

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

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

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

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

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

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

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

/* secondlevel + thirdlevel */

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

@media(max-width:991px) {
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        text-align: left;
        overflow-wrap: break-word;
        word-wrap: break-word;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        -moz-hyphens: auto;
        hyphens: auto;
    }

    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: #c61016;
    color: #ffffff;
}

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

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

/* ----------------------------------------------- @2b banner ----------------------------------------------- */

#slider {
    max-height: 300px;
    overflow: hidden;
    position: relative;
}

@media (min-width: 992px) {
    #slider {
        max-height: 430px;
    }

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

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

#headerpic {
    margin: 0 auto;
    position: relative;
    width: 100%;
}

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

.slider-mask {
    display: none;
}

/* ------------------------------------------------ contentBox ----------------------------------------------- */

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

/* ----------------------------------------------- @12ev events -------------------------------------------- */

@media (max-width: 991px) {
    #ev12 {
        margin-top: 30px;
    }
}

#ev12 {
    color: #1f1f1f;
    font-size: 1rem;
    position: relative;
    background: #ffffff;
    box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.06);
}

#ev12 .tabHeadline {
    margin-bottom: 0;
    text-align: left;
    color: #ffffff;
    font-size: clamp(1.75rem, 3vw, 2rem);
    padding: 34px 90px 34px 30px;
    background: url('../img/calendar-icon.png') right 15px center no-repeat, #25518E;
}

#ev12 #clr-events-hide {
    padding: 30px;
}

#ev12 .eventclndr-tab {
    margin-bottom: 0;
}

/* #ev12 #clr-events-hide>*:first-child{
    display: none;
} */

#ev12 .tab_link_title a {
    font-weight: 700;
    color: #25518E;
}

#ev12 .tab_link_mandat a {
    color: #1f1f1f;
}

#ev12 .tab_link_mehr {
    font-size: 0;
    text-align: right !important;
    padding: 30px;
    padding-top: 0 !important;
}

#ev12 .tab_link_mehr a {
    text-decoration: none;
    display: inline-block;
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 400;
    color: #ffffff;
    padding: 7px 25px 6px 25px;
    background: #c61016;
}

#ev12 .tab_link_mehr a:hover,
#ev12 .tab_link_mehr a:focus {
    color: #ffffff;
    background: #25518E;
}

/* ------------------------------------------------ @1tab ----------------------------------------------- */

#tab1 {
    padding-bottom: 40px;
}

@media (max-width: 991px) {
    #tab1 {
        padding-top: 40px;
    }
}

#tab1>.row {
    row-gap: 30px;
}

#tab1 .tab {
    color: #1f1f1f;
    padding: 20px;
    font-size: 1rem;
    min-height: 100%;
    background-color: #ffffff;
    box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.06);
}

#tab1 .tab :is(h1, h2, h3, h4, h5, h6) {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0c3b92;
}

#tab1 .tab a:not(.has-image):not([rel]):not(.has-image) {
    text-decoration: none;
    display: inline-block;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 400;
    padding: 7px 14px;
    margin-top: 15px;
    background-color: #c61016;
    transition: background 300ms linear;
}

#tab1 .tab a:not(.has-image):not([rel]):not(.has-image):hover,
#tab1 .tab a:not(.has-image):not([rel]):not(.has-image):focus {
    color: #ffffff;
    background: #25518E;
}

#tab1 .tab img {
    margin: -20px -20px 10px -20px;
    display: block;
    width: calc(100% + 40px) !important;
    min-width: calc(100% + 40px) !important;
    height: 170px;
    object-position: center;
    object-fit: cover;
}

/* ----------------------------------------------- @1nw news -------------------------------------------- */

#nw1 {
    padding-top: 40px;
    padding-bottom: 55px;
}

#nw1>.row {
    row-gap: clamp(30px, 2vw, 40px);
}

#nw1 .tabHeadline {
    hyphens: auto;
    font-size: clamp(1.75rem, 2vw, 2rem);
    margin-bottom: 0;
}

#nw1 .tab,
#nw1 .tab_link,
#nw1 .tab_link>div {
    height: 100%;
    min-height: 100%;
}

#nw1 .tab_link_entries {
    display: grid;
    gap: 30px;
}

@media (min-width: 576px) {
    #nw1 .tab_link_entries {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    #nw1 .tab_link_entries {
        grid-template-columns: repeat(3, 1fr);
    }
}

#nw1 .tab_link_entry {
    font-size: 1rem;
    position: relative;
    width: 100%;
    padding: 210px 30px 30px 30px;
    background: #ffffff;
    box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.06);
    border: unset;
}

#nw1 .vorschau {
    opacity: 1;
}

#nw1 .tab_preview_picture {
    background: #ffffff;
}

#nw1 .tab_link_entry::before,
#nw1 .tab_link_entry .tab_preview_picture {
    position: absolute;
    display: block;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 170px;
    overflow: hidden;
}

#nw1 .tab_link_entry::before {
    content: "";
    background: center / cover no-repeat, #fdfdfd;
}

#nw1 .tab_preview_picture img {
    position: absolute;
    margin: 0 !important;
    left: 50%;
    top: 50%;
    max-width: none;
    min-width: 100%;
    min-height: 100%;
    max-width: 350px;
    width: auto;
    height: auto;
    -ms-interpolation-mode: bicubic;
    transform: translateX(-50%) translateY(-50%);
}

#nw1 .tab_date {
    display: inline-block;
    position: absolute;
    z-index: 1;
    left: -1px;
    top: 150px;
    color: #ffffff;
    font-size: 0.75rem;
    padding: 6px 20px;
    background: #25518E;
}

#nw1 .tab_link_title a {
    display: block;
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: #25518E;
    line-height: 1.2;
    margin-bottom: 8px;
}

#nw1 .tab_link_entries+div,
#nw1 .tab_link_entries .tab_spacer,
#nw1 .tab_link_entry>div:nth-last-child(2) {
    display: none;
}

/* ------------------------------------------------ sponsiBoxi ----------------------------------------------- */

#sponsiBoxi {
    padding-top: clamp(35px, 4vw, 55px);
    padding-bottom: clamp(35px, 5vw, 70px);
}

#sponsiBoxi .tabHeadline {
    font-size: clamp(1.75rem, 3vw, 2rem);
}

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

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


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

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

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

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

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

#footer {
    color: #ffffff;
    font-size: clamp(1rem, 2vw, 1.125rem);
    padding-top: clamp(35px, 2vw, 40px);
    padding-bottom: 35px;
    background-color: #25518E;
    position: relative;
    overflow: hidden;
}

@media (min-width: 1200px) {
    #footer>.row::before {
        content: '';
        position: absolute;
        pointer-events: none;
        top: -5px;
        left: -195px;
        width: 233px;
        height: 237px;
        background: url('../img/wasserzeichen-wappen-vfl-heiligkreuzsteinach-ev.png') center no-repeat;
    }
}

#footer .tab a {
    color: #ffffff;
    text-decoration: underline;
}

#footer .tab .tabHeadline {
    color: inherit;
    font-weight: 400;
    font-size: 1.75rem;
    margin-bottom: 20px;
}

#footer .iframetab a {
    color: #ffffff;
}

#footer>.row {
    row-gap: 35px;
}

#footer .iframetab iframe,
#footer .iframetab .iframe-wrapper-manual-enabling {
    min-width: 100% !important;
    width: 100% !important;
    display: block;
}

/* ----------------------------------------------- scrollTopBtn ----------------------------------------------- */

#scrollTopBtn {
    text-decoration: none;
    position: relative;
    display: inline-block;
    color: #1f1f1f;
    line-height: 1.2;
    font-size: clamp(1rem, 2vw, 1.125rem);
    padding: 12px 70px 11px 20px;
    background: #ffffff;
}

#scrollTopBtn:is(:hover, :focus) {
    color: #c61016;
}

#scrollTopBtn::before {
    content: "\00BB";
    position: absolute;
    right: 12px;
    top: 4px;
    padding: 0 10px;
    font-size: 30px;
    transform: rotate(-90deg);
    border-top: 1px solid rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------- lastOne -------------------------------------------- */

.lastOne {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: end;
    align-content: end;
    gap: clamp(30px, 8vw, 100px);
}

@media (max-width: 767px) {
    .lastOne {
        align-items: center;
        align-content: center;
    }
}

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

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

#vernetzt span span {
    display: block;
}

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

#innerfooter {
    font-size: 1rem;
    color: #ffffff;
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: #c61016;
}

#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 clamp(15px, 4vw, 70px);
    }
}

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

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

/* ---------------------------------------------- kontraste ---------------------------------------------- */

.contrast_dark_font #ev12 .tabHeadline {
    background-color: #ffffff !important;
}