/* ============================================================================
   WWS Sitepackage - Custom Styles
   ============================================================================ */

@font-face {
    font-display: swap;
    font-family: "Ink Free";
    font-style: normal;
    font-weight: 400;
    src: url("../Fonts/Inkfree.ttf") format("truetype");
}

img {
    border-radius: 0.5rem;
}

.wws-heading-ink-free {
    display: block;
    width: 100%;
    max-width: none;
    color: #666666;
    font-family: "Segoe Script", "Ink Free", "Bradley Hand", "Brush Script MT", cursive;
    font-weight: 400;
    letter-spacing: 0;
}

h1.wws-heading-ink-free {
    font-size: clamp(2.6rem, 5vw, 4rem);
    line-height: 1.18;
}

h2.wws-heading-ink-free {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.25;
}

@media (max-width: 767px) {
    h2.wws-heading-ink-free {
        font-size: 2.4rem;
        line-height: 1.3;
        text-align: center;
    }
}

h3.wws-heading-ink-free {
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    line-height: 1.25;
}

h4.wws-heading-ink-free {
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    line-height: 1.3;
}

h5.wws-heading-ink-free {
    font-size: clamp(1.35rem, 1.8vw, 1.7rem);
    line-height: 1.35;
}

h6.wws-heading-ink-free {
    font-size: clamp(1.15rem, 1.4vw, 1.4rem);
    line-height: 1.4;
}

.btn-wws-blue {
    --bs-btn-bg: #5ea2d3;
    --bs-btn-border-color: #5ea2d3;
    --bs-btn-color: #ffffff;
    --bs-btn-hover-bg: #4d8fc0;
    --bs-btn-hover-border-color: #4d8fc0;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-focus-shadow-rgb: 94, 162, 211;
    --bs-btn-active-bg: #437fab;
    --bs-btn-active-border-color: #437fab;
    --bs-btn-active-color: #ffffff;
}

.btn-wws-green {
    --bs-btn-bg: #a5dc76;
    --bs-btn-border-color: #a5dc76;
    --bs-btn-color: #111111;
    --bs-btn-hover-bg: #94c966;
    --bs-btn-hover-border-color: #94c966;
    --bs-btn-hover-color: #111111;
    --bs-btn-focus-shadow-rgb: 165, 220, 118;
    --bs-btn-active-bg: #84b859;
    --bs-btn-active-border-color: #84b859;
    --bs-btn-active-color: #111111;
}

.frame-background-wws-green {
    --frame-background: #a5db79;
    --frame-color: #212121;
    --frame-link-color: #14370d;
    --frame-link-hover-color: #0f2a09;
}

.wws-page-header img,
.wws-start-carousel-logos img,
.wws-footer img,
.wws-contact-fixed-button img,
.nav-link-icon img,
.nav-link-icon svg {
    border-radius: 0;
}

body,
.body-bg-top,
.backendlayout-special_start,
.backendlayout-special_start .body-bg-top {
    padding-top: 0 !important;
}

/* ----------------------------------------------------------------------------
   Header / Main navigation
   Mobile first, Bootstrap 5 breakpoints: sm 576, md 768, lg 992, xl 1200, xxl 1400
   ---------------------------------------------------------------------------- */

.wws-page-header.navbar-mainnavigation {
    position: fixed !important;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 30;
    min-height: 0;
    margin: 0;
    padding: 0.75rem !important;
    border: 0;
    border-radius: 1rem;
    background: rgba(31, 70, 79, 0.86) !important;
    box-shadow: none;
    backdrop-filter: blur(8px);
}

.wws-page-header .container-mainnavigation {
    margin: 0;
    padding: 0;
}

.wws-page-header #mainnavigation {
    display: none !important;
    width: 100%;
    margin-top: 0.75rem;
}

.wws-page-header #mainnavigation.show {
    display: block !important;
}

.wws-page-header .navbar-toggler {
    margin-left: auto;
    border-color: rgba(255, 255, 255, 0.5);
}

.wws-page-header .navbar-nav {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 0 !important;
}

.wws-page-header .navbar-nav > .nav-spacer {
    display: none;
}

.wws-page-header .navbar-nav > .nav-item {
    margin: 0 !important;
    border: 0;
    border-radius: 0.75rem;
    background: transparent;
}

.wws-page-header .navbar-nav .nav-link-main {
    min-height: 3.25rem;
    justify-content: flex-start;
    padding: 0.5rem 1rem;
    color: #fff !important;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0;
    text-decoration: none !important;
    text-transform: uppercase;
}

.wws-page-header .navbar-nav .nav-link-main:hover,
.wws-page-header .navbar-nav .nav-link-main.active,
.wws-page-header .navbar-nav .nav-link-main:focus,
.wws-page-header .navbar-nav .nav-link-main:focus-visible {
    color: #9bd35b !important;
    text-decoration: none !important;
}

.wws-page-header .navbar-nav .nav-link-main:focus-visible {
    outline: 3px solid rgba(155, 211, 91, 0.8);
    outline-offset: -3px;
}

.wws-page-header .navbar-nav .nav-link:hover::before,
.wws-page-header .navbar-nav .nav-link:hover::after,
.wws-page-header .navbar-nav .nav-link-main::before,
.wws-page-header .navbar-nav .nav-link-main::after,
.wws-page-header .navbar-nav .nav-link-main .nav-link-text::before,
.wws-page-header .navbar-nav .nav-link-main .nav-link-text::after {
    display: none !important;
    content: none !important;
}

@media (min-width: 992px) {
    .wws-page-header.navbar-mainnavigation {
        top: clamp(1.25rem, 5.2vw, 3.25rem);
        left: 0;
        right: 0;
        padding: 0 !important;
        border-radius: 0;
        background: transparent !important;
        backdrop-filter: none;
    }

    .wws-page-header .container-mainnavigation {
        margin-right: auto;
        margin-left: auto;
    }

    .wws-page-header #mainnavigation {
        display: block !important;
        width: 100%;
        margin-top: 0;
    }

    .wws-page-header .navbar-nav {
        display: flex;
        width: 100%;
        flex-direction: row;
        align-items: stretch;
        border-radius: 1.15rem;
        gap: 0 !important;
        overflow: visible;
    }

    .wws-page-header .navbar-nav > .nav-item {
        flex-grow: 1;
        border-top: 1px solid rgba(122, 182, 72, 0.85);
        border-bottom: 1px solid rgba(122, 182, 72, 0.85);
        border-radius: 0;
        background: rgba(31, 70, 79, 0.8);
    }

    .wws-page-header .navbar-nav > .nav-item:first-child,
    .wws-page-header .navbar-nav > .nav-spacer + .nav-item {
        border-left: 1px solid rgba(122, 182, 72, 0.85);
        border-radius: 1.15rem 0 0 1.15rem;
    }

    .wws-page-header .navbar-nav > .nav-item:last-child {
        border-right: 1px solid rgba(122, 182, 72, 0.85);
        border-radius: 0 1.15rem 1.15rem 0;
    }

    .wws-page-header .navbar-nav .nav-link-main {
        flex-grow: 0;
        min-height: 5.2rem;
        justify-content: center;
        padding: 0 1rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 1200px) {
    .wws-page-header .navbar-nav .nav-link-main {
        padding-right: 1.25rem;
        padding-left: 1.25rem;
        font-size: 0.95rem;
    }
}

@media (min-width: 1400px) {
    .wws-page-header .navbar-nav .nav-link-main {
        padding-right: 1.45rem;
        padding-left: 1.45rem;
        font-size: 1rem;
    }
}

/* ----------------------------------------------------------------------------
   Fixed contact button
   ---------------------------------------------------------------------------- */

.wws-contact-fixed-button {
    position: fixed;
    top: 50%;
    right: 0;
    z-index: 20;
    display: inline-flex;
    min-width: 3.2rem;
    min-height: 11.5rem;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.7rem;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    border-left: 1px solid #fff;
    border-radius: 0.35rem 0 0 0.35rem;
    background: #a8dc70;
    color: #fff !important;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    text-decoration: none !important;
    text-transform: uppercase;
    text-orientation: mixed;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
}

.wws-contact-fixed-button:hover,
.wws-contact-fixed-button:focus {
    background: #94c85f;
    color: #fff !important;
    text-decoration: none !important;
}

.wws-contact-fixed-button:focus-visible {
    outline: 3px solid #2f5f1f;
    outline-offset: 3px;
}

@media (min-width: 992px) {
    .wws-contact-fixed-button {
        z-index: 40;
    }
}

/* ----------------------------------------------------------------------------
   Start carousel / hero
   ---------------------------------------------------------------------------- */

.frame-type-carousel-fullscreen {
    margin: 0;
    padding: 0;
}

.frame-type-carousel-fullscreen > .frame-container,
.frame-type-carousel-fullscreen > .frame-group-container {
    max-width: none;
    padding: 0;
}

.carousel-fullscreen,
.carousel-fullscreen .carousel-inner,
.carousel-fullscreen .carousel-item {
    min-height: 74vh;
}

.carousel-fullscreen .carousel-item {
    overflow: hidden;
    background-color: #dfe8e8;
}

.carousel-fullscreen .carousel-backgroundimage,
.carousel-fullscreen .carousel-backgroundimage-container {
    position: absolute;
    inset: 0;
}

.carousel-fullscreen .carousel-backgroundimage {
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

.carousel-fullscreen .carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.04) 18%, rgba(255, 255, 255, 0) 100%);
}

.carousel-fullscreen .carousel-item::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    height: 34%;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.86) 76%, #fff 100%);
}

.carousel-fullscreen .carousel-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    width: 100%;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    pointer-events: none;
}

.carousel .carousel-control-icon {
    width: 4rem;
    max-width: 4rem;
    height: 4rem;
    max-height: 4rem;
}

@media (min-width: 768px) {
    .carousel-fullscreen,
    .carousel-fullscreen .carousel-inner,
    .carousel-fullscreen .carousel-item {
        min-height: 82vh;
    }
}

@media (max-width: 767.98px) {
    .carousel .carousel-indicators {
        display: none;
    }

    .carousel .carousel-indicators.carousel-indicators-navigation {
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        justify-content: center;
        margin: 0;
        padding: 0.5rem 1rem 0.75rem;
    }

    .carousel .carousel-indicators.carousel-indicators-navigation > button {
        display: none;
    }

    .carousel .carousel-indicators.carousel-indicators-navigation > button.active,
    .carousel .carousel-indicators.carousel-indicators-navigation > button.active[data-bs-target] {
        display: inline-flex;
        width: auto !important;
        height: auto !important;
        min-height: 0;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
        border: 0 !important;
        border-top-width: 0 !important;
        border-bottom-width: 0 !important;
        border-radius: 0;
        margin: 0;
        background: transparent;
        color: #ffffff;
        font-size: 1.2rem;
        font-weight: 700;
        line-height: 1.2;
        opacity: 1;
        text-indent: 0 !important;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
    }

    .carousel .carousel-indicators.carousel-indicators-navigation > button.active::before {
        display: none;
        content: none;
    }

    .carousel .carousel-indicators.carousel-indicators-navigation > button.active span {
        display: inline;
    }
}

@media (min-width: 992px) {
    .carousel-fullscreen,
    .carousel-fullscreen .carousel-inner,
    .carousel-fullscreen .carousel-item {
        min-height: min(100vh, 1000px);
    }

    .navbar + a + .carousel-fullscreen,
    .navbar + a + .carousel-fullscreen .carousel-item,
    .navbar + a + a + .carousel-fullscreen,
    .navbar + a + a + .carousel-fullscreen .carousel-item,
    .navbar + .main-section > a + .carousel-fullscreen,
    .navbar + .main-section > a + .carousel-fullscreen .carousel-item,
    .navbar + .main-section > a + a + .carousel-fullscreen,
    .navbar + .main-section > a + a + .carousel-fullscreen .carousel-item {
        height: 100vh !important;
        min-height: 100vh !important;
    }
}

/* ----------------------------------------------------------------------------
   Start carousel: Aktuelles button
   ---------------------------------------------------------------------------- */

.wws-aktuelles-hero-button {
    position: absolute;
    top: clamp(7.5rem, 20vh, 11rem);
    left: 0;
    z-index: 5;
    pointer-events: auto;
}

.wws-aktuelles-hero-button-link {
    display: flex;
    width: 8.75rem;
    min-height: 7.5rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem;
    border: 1px solid rgba(122, 182, 72, 0.2);
    border-radius: 0 1.25rem 1.25rem 0;
    background: rgba(151, 226, 120, 0.72);
    box-shadow: 0 0.7rem 2rem rgba(32, 55, 28, 0.12);
    color: #000;
    text-align: center;
    text-decoration: none !important;
    transition: background-color 160ms ease, color 160ms ease;
}

.wws-aktuelles-hero-button-link:hover,
.wws-aktuelles-hero-button-link:focus-visible {
    background: rgba(151, 226, 120, 0.88);
    color: #000;
}

.wws-aktuelles-hero-button-icon {
    display: inline-flex;
    width: 3.4rem;
    height: 3.4rem;
    align-items: center;
    justify-content: center;
    border: 0.22rem solid currentColor;
    border-radius: 999rem;
    line-height: 1;
}

.wws-aktuelles-hero-button-mark {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 0.9;
    transform: translateY(-0.06em);
}

.wws-aktuelles-hero-button-text {
    font-size: 1.18rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
}

@media (min-width: 768px) {
    .wws-aktuelles-hero-button-link {
        width: clamp(9.25rem, 34vw, 12rem);
        min-height: clamp(7rem, 24vw, 8.75rem);
    }
}

@media (min-width: 992px) {
    .wws-aktuelles-hero-button {
        top: clamp(9.5rem, 24vh, 18rem);
    }

    .wws-aktuelles-hero-button-link {
        width: clamp(12rem, 18vw, 17.5rem);
        min-height: clamp(8.8rem, 13vw, 12.5rem);
        gap: 0.9rem;
        padding: 1.15rem 1.35rem;
    }

    .wws-aktuelles-hero-button-icon {
        width: clamp(4.2rem, 6vw, 5.9rem);
        height: clamp(4.2rem, 6vw, 5.9rem);
        border-width: 0.28rem;
    }

    .wws-aktuelles-hero-button-mark {
        font-size: clamp(3.1rem, 4.8vw, 4.75rem);
    }

    .wws-aktuelles-hero-button-text {
        font-size: clamp(1.45rem, 2.25vw, 2.45rem);
    }
}

/* ----------------------------------------------------------------------------
   Start carousel: logo strip
   ---------------------------------------------------------------------------- */

.wws-start-carousel-logos {
    position: absolute !important;
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 4;
    width: 100%;
    background: #dedede;
    pointer-events: auto;
    transform: none !important;
}

.wws-start-carousel-logos .container {
    width: 100%;
    max-width: calc(100vw - 1.5rem);
    margin-right: auto;
    margin-left: auto;
}

.wws-start-carousel-logos-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
    align-items: center;
    min-height: 6.4rem;
    padding: 0.75rem 0;
}

.wws-start-carousel-logos-school,
.wws-start-carousel-logos-links,
.wws-start-carousel-logo-elements,
.wws-start-carousel-logo-elements .gallery-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wws-start-carousel-logo-elements,
.wws-start-carousel-logo-elements .gallery-row {
    gap: 1rem;
}

.wws-start-carousel-logo-elements .frame,
.wws-start-carousel-logo-elements .frame-container,
.wws-start-carousel-logo-elements .frame-group-container,
.wws-start-carousel-logo-elements .frame-group-inner,
.wws-start-carousel-logo-elements .frame-inner,
.wws-start-carousel-logo-elements .gallery-row,
.wws-start-carousel-logo-elements .gallery-item,
.wws-start-carousel-logo-elements .gallery-figure,
.wws-start-carousel-logo-elements .gallery-image {
    margin: 0;
    padding: 0;
}

.wws-start-carousel-logo-elements .gallery-item {
    width: auto !important;
    max-width: none !important;
}

.wws-start-carousel-logo,
.wws-start-carousel-logo-elements a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.wws-start-carousel-logo {
    filter: none;
}

.wws-start-carousel-logo img,
.wws-start-carousel-logo-elements img {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: clamp(2.1rem, 3vw, 3rem) !important;
    max-height: clamp(2.1rem, 3vw, 3rem) !important;
    object-fit: contain !important;
}

.wws-start-carousel-logo--school img {
    height: clamp(5rem, 7.6vw, 8.2rem) !important;
    max-height: clamp(5rem, 7.6vw, 8.2rem) !important;
}

.wws-start-carousel-logo--webuntis img,
.wws-start-carousel-logo-elements .gallery-item:first-child img {
    height: clamp(1.85rem, 2.35vw, 2.65rem) !important;
    max-height: clamp(1.85rem, 2.35vw, 2.65rem) !important;
}

.wws-start-carousel-logo--schulcampus img,
.wws-start-carousel-logo-elements .gallery-item:nth-child(2) img {
    height: clamp(2rem, 2.55vw, 2.85rem) !important;
    max-height: clamp(2rem, 2.55vw, 2.85rem) !important;
}

@media (min-width: 768px) {
    .wws-start-carousel-logos .container {
        max-width: min(1320px, calc(100vw - 4rem));
    }

    .wws-start-carousel-logos-inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 2rem;
        min-height: clamp(6.4rem, 9vw, 9.6rem);
        padding: 0.85rem 0;
    }

    .wws-start-carousel-logos-school {
        justify-content: flex-start;
    }

    .wws-start-carousel-logos-links,
    .wws-start-carousel-logo-elements,
    .wws-start-carousel-logo-elements .gallery-row {
        justify-content: flex-end;
    }

    .wws-start-carousel-logo-elements,
    .wws-start-carousel-logo-elements .gallery-row {
        gap: clamp(1.6rem, 3.2vw, 3.25rem);
    }
}


/* --------------------------------------------------------------------------
   FOOTER – grüner Hintergrund statt Bootstrap Package Standard-Dunkel
   -------------------------------------------------------------------------- */

.footer-section-content {
    background: #7ab648 !important;
    --frame-background: #7ab648 !important;
    --frame-color: #ffffff !important;
    --frame-link-color: #ffffff !important;
    --frame-link-hover-color: rgba(255, 255, 255, 0.75) !important;
}

.footer-section-meta {
    background: #5f9234 !important;
    --frame-background: #5f9234 !important;
    --frame-color: #ffffff !important;
    --frame-link-color: rgba(255, 255, 255, 0.85) !important;
    --frame-link-hover-color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   FOOTER – Kontakt: Schulname prominent darstellen
   -------------------------------------------------------------------------- */

.footer-contact .footer-contact-headline {
    display: none;
}

.footer-contact .address-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.footer-contact address {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-contact address p {
    margin-bottom: 0.15rem;
}

.footer-contact address a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer-contact address a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   FOOTER – Navigation Links weiß, uppercase
   -------------------------------------------------------------------------- */

.footer-navigation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-navigation-link {
    color: #ffffff !important;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-decoration: none;
    display: inline-block;
    line-height: 2;
}

.footer-navigation-link:hover,
.footer-navigation-link:focus {
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   FOOTER – Copyright und Meta-Links
   -------------------------------------------------------------------------- */

.footer-copyright p,
.footer-copyright a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    text-decoration: none;
}

.footer-copyright a:hover {
    color: #ffffff;
}

.footer-meta a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-meta a:hover {
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   FOOTER – WWS Layout nach Vorlage
   -------------------------------------------------------------------------- */

.bp-page-footer {
    padding: 1rem 0.75rem;
    background: #ffffff;
}

.wws-footer-section {
    padding: 0;
    background: transparent !important;
}

.wws-footer {
    width: 100%;
    border-radius: clamp(1.1rem, 1.45vw, 1.65rem);
    background: #a5db79;
    color: #ffffff;
}

.wws-footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 5.75rem);
    padding: 2rem 1.25rem;
}

.wws-footer-title {
    margin: 0 0 2rem;
    color: #ffffff;
    font-size: clamp(2rem, 3.05vw, 3.15rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.wws-footer-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.2rem, 1.4vw, 1.65rem);
    align-items: end;
}

.wws-footer-images {
    display: block;
}

.wws-footer-images .frame,
.wws-footer-images .frame-container,
.wws-footer-images .frame-group-container,
.wws-footer-images .frame-group-inner,
.wws-footer-images .frame-inner,
.wws-footer-images .gallery-row,
.wws-footer-images .gallery-item,
.wws-footer-images .gallery-figure,
.wws-footer-images .gallery-image {
    margin: 0;
    padding: 0;
}

.wws-footer-images .gallery-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(0.6rem, 0.8vw, 0.9rem);
    align-items: stretch;
}

.wws-footer-images .gallery-item {
    width: auto !important;
    max-width: none !important;
}

.wws-footer-images picture,
.wws-footer-images img {
    display: block;
    width: auto;
    max-width: 100%;
}

.wws-footer-images img {
    height: auto;
    max-height: 11rem;
    border-radius: 0.35rem;
    object-fit: cover;
}

.wws-footer-images .gallery-item:first-child img {
    object-fit: cover;
    object-position: center;
    background: #ffffff;
}

.wws-footer-navigation-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wws-footer-navigation-list li {
    margin: 0;
}

.wws-footer-navigation-link {
    display: inline-block;
    color: #ffffff !important;
    font-size: clamp(1rem, 1.12vw, 1.18rem);
    font-weight: 700;
    line-height: 1.55;
    text-decoration: none;
    text-transform: uppercase;
}

.wws-footer-navigation-link:hover,
.wws-footer-navigation-link:focus {
    color: rgba(255, 255, 255, 0.78) !important;
    text-decoration: none;
}

.wws-footer-right {
    align-self: start;
    max-width: 26rem;
    padding-top: 0.05rem;
    color: #ffffff;
    font-size: clamp(0.78rem, 0.72vw, 0.88rem);
    line-height: 1.18;
}

.wws-footer-contact {
    margin: 0 0 clamp(1.6rem, 2vw, 2.25rem);
    color: #ffffff;
    font-style: normal;
}

.wws-footer-contact p {
    margin: 0 0 1.05rem;
}

.wws-footer-contact a {
    color: #ffffff;
    text-decoration: none;
}

.wws-footer-contact a:hover,
.wws-footer-contact a:focus {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: underline;
}

.wws-footer-legal {
    display: grid;
    gap: 0.28rem;
    margin-bottom: 0.75rem;
}

.wws-footer-legal-link {
    color: #ffffff !important;
    font-size: clamp(1rem, 1.12vw, 1.18rem);
    font-weight: 700;
    line-height: 1.15;
    text-decoration: none;
    text-transform: uppercase;
}

.wws-footer-legal-link:hover,
.wws-footer-legal-link:focus {
    color: rgba(255, 255, 255, 0.78) !important;
    text-decoration: none;
}

.wws-footer-copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(0.64rem, 0.58vw, 0.72rem);
    line-height: 1.25;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .bp-page-footer {
        padding: clamp(1.25rem, 2.6vw, 2.25rem) clamp(0.75rem, 0.35vw, 1rem);
    }

    .wws-footer-inner {
        padding: clamp(2.25rem, 4.4vw, 4.7rem) clamp(2rem, 7.8vw, 8.6rem) clamp(2rem, 3.7vw, 4rem);
    }

    .wws-footer-title {
        margin-bottom: clamp(2.75rem, 5.4vw, 5.4rem);
    }

    .wws-footer-images .gallery-row {
        grid-template-columns: 0.55fr 1fr 1fr;
    }

    .wws-footer-images picture,
    .wws-footer-images img {
        width: 100%;
    }

    .wws-footer-images img {
        height: clamp(8.25rem, 9.8vw, 10.3rem);
        max-height: none;
    }
}

@media (min-width: 1200px) {
    .wws-footer-inner {
        grid-template-columns: minmax(0, 1fr) clamp(13rem, 17vw, 18.25rem);
    }

    .wws-footer-showcase {
        grid-template-columns: minmax(0, 1fr) clamp(12rem, 14vw, 15rem);
    }

    .wws-footer-right {
        max-width: none;
    }
}

/* ==========================================================================
   COOKIEMAN – Modal an WWS-Farbschema angepasst
   ========================================================================== */

/* Modal-Header in WWS-Grün */
#cookieman-modal .modal-header {
    background: #7ab648;
    color: #ffffff;
    border-bottom: 0;
    padding: 1rem 1.5rem;
}

#cookieman-modal .modal-title,
#cookieman-modal #cookieman-modal-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.15rem;
}

#cookieman-modal .modal-content {
    border-radius: 12px;
    border: 0;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

#cookieman-modal .modal-body {
    padding: 1.5rem;
    color: #2d2d2d;
    line-height: 1.6;
}

#cookieman-modal .modal-body a {
    color: #5f9234;
    font-weight: 600;
    text-decoration: underline;
}

#cookieman-modal .modal-body a:hover {
    color: #7ab648;
}

#cookieman-modal .modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1rem 1.5rem;
    background: #f8f9fa;
}

/* Buttons – Primärbutton in WWS-Grün */
#cookieman-modal .btn-primary,
#cookieman-modal [data-cookieman-accept-all] {
    background-color: #7ab648 !important;
    border-color: #7ab648 !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
}

#cookieman-modal .btn-primary:hover,
#cookieman-modal [data-cookieman-accept-all]:hover {
    background-color: #5f9234 !important;
    border-color: #5f9234 !important;
}

#cookieman-modal .btn-primary:focus,
#cookieman-modal [data-cookieman-accept-all]:focus {
    box-shadow: 0 0 0 0.25rem rgba(122, 182, 72, 0.4) !important;
}

/* Sekundärbuttons (Ablehnen, Einstellungen) */
#cookieman-modal .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
}

#cookieman-modal .btn-secondary:hover {
    background-color: #565e64;
    border-color: #565e64;
}

/* "Speichern"-Button (btn-light) */
#cookieman-modal .btn-light {
    background-color: #5f9234;
    border-color: #5f9234;
    color: #ffffff;
    font-weight: 600;
}

#cookieman-modal .btn-light:hover {
    background-color: #4d7a2a;
    border-color: #4d7a2a;
    color: #ffffff;
}

/* Einstellungen-Toggle-Button im Body */
#cookieman-modal [data-bs-target="#cookieman-settings"] {
    background-color: transparent;
    color: #5f9234;
    border: 1px solid #7ab648;
}

#cookieman-modal [data-bs-target="#cookieman-settings"]:hover {
    background-color: #7ab648;
    color: #ffffff;
}

#cookieman-modal [data-bs-target="#cookieman-settings"]:after {
    background-color: #5f9234 !important;
}

#cookieman-modal [data-bs-target="#cookieman-settings"]:hover:after {
    background-color: #ffffff !important;
}

/* Accordion in Einstellungen */
#cookieman-modal .accordion {
    --bs-accordion-active-color: #5f9234;
    --bs-accordion-active-bg: rgba(122, 182, 72, 0.08);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(122, 182, 72, 0.25);
    --bs-accordion-border-color: rgba(122, 182, 72, 0.2);
}

#cookieman-modal .accordion-button:not(.collapsed) {
    background-color: rgba(122, 182, 72, 0.08);
    color: #5f9234;
    box-shadow: inset 0 -1px 0 rgba(122, 182, 72, 0.2);
}

#cookieman-modal .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(122, 182, 72, 0.25);
}

/* Alert in Settings (Pflicht-Cookies) */
#cookieman-modal .alert-primary {
    background-color: rgba(122, 182, 72, 0.12);
    border-color: rgba(122, 182, 72, 0.3);
    color: #3d5e1e;
}

/* Form-Check (Checkboxen) */
#cookieman-modal .form-check-input:checked {
    background-color: #7ab648;
    border-color: #7ab648;
}

#cookieman-modal .form-check-input:focus {
    border-color: #7ab648;
    box-shadow: 0 0 0 0.25rem rgba(122, 182, 72, 0.25);
}

/* Tabelle in Settings */
#cookieman-modal .table {
    --bs-table-hover-bg: rgba(122, 182, 72, 0.06);
}

#cookieman-modal .btn-group {
    width: 100%;
    flex-direction: column;
}

#cookieman-modal .btn-group .btn {
    width: 100%;
    margin: 0.25rem 0 !important;
    border-radius: 6px !important;
}

#cookieman-modal .modal-dialog {
    margin: 0.5rem;
}

@media (min-width: 576px) {
    #cookieman-modal .btn-group {
        width: auto;
        flex-direction: row;
    }

    #cookieman-modal .btn-group .btn {
        width: auto;
        margin: 0 !important;
        border-radius: var(--bs-btn-border-radius) !important;
    }

    #cookieman-modal .modal-dialog {
        margin-right: auto;
        margin-left: auto;
    }
}

/* --------------------------------------------------------------------------
   NEWS LIST
   -------------------------------------------------------------------------- */

.news-list-view {
    display: grid;
    gap: clamp(2rem, 4vw, 4rem);
}

.wws-news-list-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: stretch;
}

.wws-news-list-item + .wws-news-list-item {
    margin-top: 1.5rem;
}

.wws-news-list-item--even .wws-news-list-item__media {
    order: initial;
}

.wws-news-list-item--even .wws-news-list-item__content {
    order: initial;
}

.wws-news-list-item__media,
.wws-news-list-item__content {
    min-width: 0;
}

.wws-news-list-item__media {
    width: 100%;
    max-width: 640px;
    aspect-ratio: 4 / 3;
    align-self: center;
}

.wws-news-list-item__media a {
    display: block;
    height: 100%;
}

.wws-news-list-item__image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 640px;
    max-height: 480px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.wws-news-list-item__image--dummy {
    object-fit: contain;
    padding: clamp(1rem, 2vw, 1.75rem);
    background: rgba(184, 218, 135, 0.64);
}

.wws-news-list-item__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.5rem, 3.5vw, 3.5rem) 0;
    background: #fff;
}

.wws-news-list-item__date {
    display: inline-block;
    margin-bottom: 0.65rem;
    color: var(--wws-primary, #006b3f);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.wws-news-list-item__title {
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.6rem);
    line-height: 1.08;
}

.wws-news-list-item__title a {
    color: inherit;
    text-decoration: none;
}

.wws-news-list-item__title a:hover {
    color: var(--wws-primary, #006b3f);
}

.wws-news-list-item__teaser {
    margin-top: 1.15rem;
    font-size: clamp(1rem, 1.25vw, 1.18rem);
    line-height: 1.65;
}

.wws-news-list-item__teaser > *:last-child {
    margin-bottom: 0;
}

.wws-news-list-item__more {
    align-self: flex-start;
    margin-top: 1.5rem;
    color: var(--wws-primary, #006b3f);
    font-weight: 700;
    text-decoration: none;
}

.wws-news-list-item__more:hover,
.wws-news-list-item__more:focus {
    text-decoration: underline;
}

.wws-news-pagination {
    margin-top: clamp(2rem, 4vw, 4rem);
}

.wws-news-pagination .pagination {
    gap: 0.25rem;
}

.wws-news-pagination .page-link {
    color: var(--wws-primary, #006b3f);
}

.wws-news-pagination .page-item.active .page-link {
    border-color: var(--wws-primary, #006b3f);
    background-color: var(--wws-primary, #006b3f);
    color: #fff;
}

/* --------------------------------------------------------------------------
   NEWS STARTPAGE CARDS
   -------------------------------------------------------------------------- */

.wws-news-startpage {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 1.4rem;
}

.wws-news-startpage-card {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border-radius: 0.45rem;
    background: #ffffff;
}

.wws-news-startpage-card__media {
    aspect-ratio: 4 / 3;
    background: #ffffff;
    overflow: hidden;
}

.wws-news-startpage-card__media a,
.wws-news-startpage-card__media img,
.wws-news-startpage-card__media picture {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.wws-news-startpage-card__image {
    max-width: none !important;
    border-radius: 0.45rem 0.45rem 0 0;
    object-fit: cover !important;
}

.wws-news-startpage-card__image--dummy {
    object-fit: cover !important;
    background: rgba(184, 218, 135, 0.64);
}

.wws-news-startpage-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 0.8rem 0.85rem;
}

.wws-news-startpage-card__title {
    margin: 0 0 1.35rem;
    color: #2f2f2f;
    font-size: clamp(1rem, 3.8vw, 1.15rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
}

.wws-news-startpage-card__title a {
    color: inherit;
    text-decoration: none;
}

.wws-news-startpage-card__title a:hover,
.wws-news-startpage-card__title a:focus {
    color: #4d7a2a;
    text-decoration: none;
}

.wws-news-startpage-card__more {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    margin-top: auto;
    padding: 0.28rem 0.48rem;
    border-radius: 0.28rem;
    background: #a8dc70;
    color: #111111 !important;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
}

.wws-news-startpage-card__more::before {
    content: '>';
    display: inline-block;
    font-weight: 900;
    line-height: 1;
}

.wws-news-startpage-card__more:hover,
.wws-news-startpage-card__more:focus {
    background: #94c85f;
    color: #111111 !important;
    text-decoration: none !important;
}

.wws-news-startpage-card__more:focus-visible {
    outline: 3px solid #2f5f1f;
    outline-offset: 2px;
}

@media (min-width: 768px) {
    .wws-news-list-item {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    }

    .wws-news-list-item--even .wws-news-list-item__media {
        order: 2;
    }

    .wws-news-list-item--even .wws-news-list-item__content {
        order: 1;
    }

    .wws-news-list-item__content {
        padding: clamp(1.5rem, 3.5vw, 3.5rem);
    }

    .wws-news-startpage {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.8rem;
    }

    .wws-news-startpage-card__title {
        font-size: 1rem;
    }
}

#page-content {
    scroll-margin-top: 90px;
}

.carousel-indicators.carousel-indicators-navigation {
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.carousel-indicators.carousel-indicators-navigation::-webkit-scrollbar {
    display: none;
}

.carousel-indicators.carousel-indicators-navigation > button {
    flex: 0 0 auto;
}

/* Footer-Bilder vollständig und ohne Beschnitt anzeigen */
.wws-footer-images picture,
.wws-footer-images img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
}

.wws-footer-images img,
.wws-footer-images .gallery-item:first-child img {
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center;
}

@media (min-width: 768px) {
    .wws-footer-images .gallery-row {
        /*
         * Entspricht ungefähr den echten Bildformaten:
         * Logo 1,88:1 – Fotos etwa 1,5:1.
         * Dadurch werden alle fast gleich hoch, ohne Cropping.
         */
        grid-template-columns:
            minmax(0, 1.25fr)
            minmax(0, 1fr)
            minmax(0, 1fr);
        align-items: center;
    }
}

/* Newsbilder vollständig und einheitlich darstellen */
.wws-news-startpage-card__media {
    display: grid;
    place-items: center;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #fff;
}

.wws-news-startpage-card__media > a,
.wws-news-startpage-card__media picture {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.wws-news-startpage-card__image,
.wws-news-startpage-card__image--dummy {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: contain !important;
    object-position: center;
    background: #fff;
}

.card-menu-link .card {
    position: relative;
    min-height: 110px;
    height: auto;
    display: flex;
    align-items: center;
}

.card-menu-link .card-body {
    width: 100%;
    padding: 1.35rem 3.5rem 1.35rem 1.5rem;
}

.card-menu-link .card-title {
    margin: 0;
    color: #263321;
    font-size: 1.15rem;
    line-height: 1.3;
    font-weight: 600;
}

.card-menu-link .card::after {
    content: "→";
    position: absolute;
    right: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
    color: #7ab648;
    font-size: 1.7rem;
    font-weight: 400;
    transition: transform 0.2s ease;
}

.card-menu-link:hover .card::after {
    transform: translate(5px, -50%);
}

.card-menu-link:hover .card {
    transform: translateY(-3px);
}