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

/* ------------------------------------------ Grundlagen ------------------------------------------ */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    scrollbar-color: #235e2d #f5f6ef;
    max-width: 1930px;
    width: 100% !important;
    margin: auto;
}

body {
    font-family: "Roboto", sans-serif;
    font-size: clamp(1rem, 1.1vw, 1.125rem);
    font-weight: 400;
    line-height: 1.65;
    color: #4d4d4d;
    background: #f5f6ef;
}

a {
    color: #235e2d;
}

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

:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 4px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h4link a {
    color: #153c26;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

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

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

h4,
h5,
h6,
.h4link a {
    font-size: clamp(1.125rem, 1.6vw, 1.375rem);
}

/* ------------------------------------------ Kopfbereich ------------------------------------------ */
#topbar {
    background: #ffffff;
    padding: 22px 0 10px;
}

#logo {
    display: inline-block;
    max-width: 100%;
}

#logo img {
    display: block;
    width: auto;
    max-width: min(100%, 280px);
    height: auto;
}

.footer-brand strong {
    display: block;
    font-size: clamp(1.25rem, 2vw, 1.625rem);
    text-transform: uppercase;
    font-weight: 900;
}

.footer-brand p {
    display: block;
    margin: 5px 0 0;
    color: #83877f;
    font-size: 1rem;
}

.topbar-links {
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 28px;
    font-size: 1rem;
}

.utility-links {
    min-width: 0;
}

.utility-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 24px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.utility-links a {
    display: inline-block;
    color: #354e3d;
    text-decoration: none;
}

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

.menu-search {
    position: relative;
    display: inline-block;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: background-color 200ms;
}

.menu-search::before {
    content: "";
    position: absolute;
    width: 13px;
    height: 13px;
    border: 2px solid #235e2d;
    border-radius: 50%;
    top: 4px;
    left: 5px;
}

.menu-search::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 2px;
    top: 20px;
    left: 17px;
    background: #235e2d;
    transform: rotate(48deg);
}

.menu-search:is(:hover, :focus) {
    background: #e6ebdd;
}

/* ------------------------------------------ Navigation ------------------------------------------ */
#menu {
    background: #ffffff;
    z-index: 100;
    width: 100%;
    box-shadow: 0 2px 4px rgba(21, 60, 38, 0.04);
}

nav.horizontally a[class*="toplevel"] {
    color: #354e3d;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.3;
    text-decoration: none;
    padding: 22px 0 25px;
    position: relative;
}

nav.horizontally a[class*="toplevel"]::after {
    content: "";
    height: 5px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #235e2d;
    transform: scaleX(0);
    transition: transform 200ms;
}

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

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

nav.horizontally [class*="toplevel"] ul {
    background: #ffffff;
    padding: 25px 0;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 7px rgba(21, 60, 38, 0.12);
}

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    color: #354e3d;
    font-size: 1.125rem;
    line-height: 1.3;
    padding: 10px 25px;
    text-align: center;
    text-decoration: none;
}

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

@media (min-width: 992px) {
    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        margin-top: 10px;
        border-top: 1px solid #d9ddd2;
    }

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

    nav.horizontally .navbar-nav ul {
        display: block !important;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        min-width: 190px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 200ms, visibility 200ms;
        z-index: 1000;
    }

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

    nav.horizontally .navbar-nav li[class*="secondlevel"] {
        position: static;
    }

    nav.horizontally .navbar-nav [class*="secondlevel"]>ul {
        left: 100%;
        top: 0;
        margin-left: 15px;
        transform: none;
        border-radius: 4px;
    }

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

/* ------------------------------------------ Vereinsbereich / Banner ------------------------------------------ */
#hero {
    position: relative;
    overflow: hidden;
    background: #235e2d;
    color: #ffffff;
    padding: 100px 0 48px;
    overflow: hidden;
}

#hero>.row::before {
    content: "";
    position: absolute;
    background: url(../img/dekor-banner.png) no-repeat left center;
    width: 217px;
    height: 298px;
    display: block;
    left: -358px;
    pointer-events: none;
    bottom: -50px;
}

#hero::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50% + 627px);
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

#hero::after {
    content: "";
    position: absolute;
    width: 244px;
    height: 244px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    left: calc(50% + 505px);
    top: 190px;
    pointer-events: none;
}

.hero-row {
    z-index: 1;
}

.hero-title {
    color: #ffffff;
    font-size: clamp(2.8rem, 7.2vw, 8.5rem);
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.05;
    text-transform: uppercase;
    margin: 0 0 29px;
    overflow-wrap: anywhere;
}

.hero-sidebar {
    padding-right: 15px;
}

.club-year {
    border-top: 1px solid #6a9270;
    border-bottom: 1px solid #6a9270;
    padding: 18px 0 22px;
    margin-bottom: 30px;
}

.club-year p {
    margin: 0;
}

.club-year strong {
    display: block;
    color: #d9ed98;
    font-size: clamp(3rem, 4.3vw, 4.75rem);
    font-weight: 900;
    line-height: 1.1;
}

.hero-links a {
    display: block;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 15px 0;
    text-decoration: none;
}

.hero-links a::after,
.service-card a::after {
    content: "";
    display: inline-block;
    width: 18px;
    height: 10px;
    margin-left: 15px;
    background: currentColor;
    clip-path: polygon(0 40%, 75% 40%, 50% 0, 65% 0, 100% 50%, 65% 100%, 50% 100%, 75% 60%, 0 60%);
    transition: transform 200ms;
}

.hero-links a:is(:hover, :focus)::after,
.service-card a:is(:hover, :focus)::after {
    transform: translateX(4px);
}

#headerpic {
    position: relative;
    height: clamp(240px, 18vw, 304px);
}

#headerpic .slider-wrapper,
#headerpic #slider,
#headerpic #slider>[data-slick],
#headerpic .slick-list,
#headerpic .slick-track,
#headerpic .slick-slide,
#headerpic .slick-slide>div {
    height: 100%;
}

#headerpic .slick-slide>div {
    width: 100%;
}

#headerpic #slider>img,
#headerpic .slick-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#headerpic .slider-mask {
    display: none;
}

#headerpic .banner-label {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 4;
    background: rgba(21, 60, 38, 0.85);
    color: #ffffff;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 700;
}

@media (max-width: 767px) {
    #headerpic .banner-label {
        display: none;
}
}
/* ------------------------------------------ Newsticker ------------------------------------------ */
#ticker {
    background: #e6ebdc;
    font-size: 1rem;
    color: #354e3d;
    padding: 12px 0;
}

#ticker .newsticker-position {
    margin-bottom: 0;
}

.ticker-inner {
    display: flex;
    align-items: center;
    gap: 32px;
}

.ticker-content h2 {
    flex-shrink: 0;
    color: #235e2d;
    font-size: 0.875rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.ticker-content h2::before {
    content: "";
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: url(../img/icon.png) no-repeat center center;
    color: #ffffff;
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.ticker-content {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

/* ------------------------------------------ Inhalt / SG-Tabs ------------------------------------------ */
#mainArea {
    padding: 40px 0 55px;
}

#content {
    padding-top: 35px;
}

#content h1 {
    margin-top: 0;
    margin-bottom: 30px;
}

#content p {
    margin-bottom: 30px;
}

.service-row {
    margin-top: 22px;
    row-gap: 20px;
}

.service-card a {
    position: relative;
    background: #ffffff;
    border-top: 1px solid #d3d9cc;
    border-bottom: 1px solid #d3d9cc;
    padding: 32px;
    height: 100%;
    color: #153c26;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: inherit;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

.service-card a:is(:hover, :focus-within) {
    background: #153c26;
    border-color: #153c26;
    color: #ffffff;
}

.calendar-tab {
    background: #ffffff;
    padding: 16px 20px 24px;
}

.calendar-tab .tabHeadline {
    font-size: clamp(1.375rem, 2vw, 1.625rem);
    margin: -16px -20px 10px;
    border-left: 5px solid #235e2d;
    padding: 16px 15px;
}

.calendar-tab a {
    color: #235e2d;
}

@media (min-width: 992px) {
    .content-row>.col-lg-8 {
        flex: 0 0 70%;
        max-width: 70%;
        padding-right: 55px;
    }

    .calendar-column {
        flex: 0 0 30%;
        max-width: 30%;
        padding-left: 16px;
    }
}

/* ------------------------------------------ Footer ------------------------------------------ */
footer {
    position: relative;
    overflow: hidden;
    background: #153c26;
    color: #ffffff;
    padding: 20px 0;
    font-size: 0.875rem;
}

footer>.footer-bottom::after {
    content: "";
    position: absolute;
    background: url(../img/deko-footer.png) no-repeat bottom center;
    width: 110px;
    height: 96px;
    bottom: -10px;
    right: -300px;
    pointer-events: none;
}

.footer-brand p {
    color: #c4ccbd;
}

.footer-top {
    padding-bottom: 20px;
}

.footer-bottom {
    padding-top: 12px;
}

.footer-bottom::before {
    content: "";
    position: absolute;
    top: 0;
    left: 15px;
    right: 15px;
    height: 1px;
    background: #355442;
}

#innerfooter {
    text-align: right;
}

#innerfooter ul {
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 25px 65px;
    list-style: none;
}

#innerfooter a {
    color: #c4ccbd;
    text-decoration: none;
}

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

.footer-network {
    text-align: right;
}

#vernetzt {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: #c4ccbd;
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: left;
    text-decoration: none;
}

#vernetzt img {
    max-width: 80px;
    order: -1;
}

#vernetzt span span {
    display: block;
}

/* ------------------------------------------ Tablet / Mobil ------------------------------------------ */
@media (max-width: 991px) {
    #topbar {
        padding: 20px 0;
    }

    .topbar-links {
        min-width: 0;
        margin-top: 20px;
        justify-content: flex-start;
    }

    #menu {
        min-height: 0;
    }

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

    #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 rgba(0, 0, 0, 0.08);
    }

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

    #burgerButtonInner {
        top: 16px;
    }

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

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

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

    #myNavbar.navbar-collapse {
        display: block !important;
        width: calc(100% - 90px);
        max-width: 320px;
        position: fixed;
        top: 0;
        bottom: 0;
        left: -100%;
        z-index: 100;
        height: auto !important;
        background: #153c26;
        overflow-y: auto;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: left 250ms, opacity 250ms, visibility 250ms;
    }

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

    nav.horizontally .navbar-nav {
        margin: 24px 0;
    }

    nav.horizontally a[class*="toplevel"] {
        color: #ffffff;
        padding: 16px 35px 16px 20px;
        font-size: 1.25rem;
    }

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

    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        text-align: left;
        padding-right: 35px;
    }

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

    #hero {
        padding: 45px 0 35px;
    }

    #hero::before {
        opacity: 0.18;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 5rem);
        margin-bottom: 25px;
    }

    .hero-sidebar {
        margin-bottom: 25px;
    }

    .club-year {
        padding: 15px 0;
        margin-bottom: 15px;
    }

    .calendar-column {
        margin-top: 35px;
    }

    .calendar-tab {
        max-width: 440px;
    }

    #mainArea {
        padding: 30px 0 40px;
    }

    #content {
        padding-top: 0;
    }
}

@media (max-width: 767px) {
    .topbar-links {
        min-width: 0;
        font-size: 0.875rem;
        gap: 15px;
    }

    .utility-links ul {
        justify-content: flex-start;
        gap: 10px 18px;
    }

    .ticker-inner {
        gap: 15px;
        align-items: flex-start;
    }

    .ticker-label {
        font-size: 0.75rem;
    }

    .ticker-label::before {
        display: none;
    }


    .footer-brand,
    .footer-network,
    #innerfooter {
        text-align: center;
    }

    .footer-network {
        margin-top: 20px;
    }

    .footer-copyright {
        text-align: center;
        margin-bottom: 18px;
    }

    #innerfooter ul {
        justify-content: center;
        gap: 15px 25px;
    }

    footer::after {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    #myNavbar,
    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner,
    nav.horizontally .navbar-nav ul,
    nav.horizontally a[class*="toplevel"]::after,
    .hero-links a::after,
    .service-card a::after,
    .menu-search {
        transition: none;
    }
}