/* ========================================================================
   FC UNION ERFURT
   Zentrale Design- und Template-Anpassungen
   Header- und Footer-Stand V1.6: 17.07.2026

   Datei:
   /templates/shaper_helixultimate/css/custom.css

   Design:
   Schwarz:       #111111
   Dunkelgrau:    #1d1d1f
   Vereinsrot:    #e30613
   Dunkelrot:     #b70812
   Weiß:          #ffffff
   Hellgrau:      #f3f3f3
   ======================================================================== */


/* ========================================================================
   01. GRUNDVARIABLEN
   ======================================================================== */

:root {
    --union-schwarz: #111111;
    --union-dunkelgrau: #1d1d1f;
    --union-rot: #e30613;
    --union-dunkelrot: #b70812;
    --union-weiss: #ffffff;
    --union-hellgrau: #f3f3f3;
    --union-grau: #8c8c8c;

    --union-header-breite: 1360px;
    --union-header-hoehe: 92px;
    --union-topbar-hoehe: 36px;
}


/* ========================================================================
   02. ALLGEMEINE GRUNDEINSTELLUNGEN
   ======================================================================== */

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    color: #272727;
    background: var(--union-weiss);
    overflow-x: hidden;
}

body.offcanvas-active {
    overflow: hidden;
}

a {
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}


/* ========================================================================
   03. OBERER INFO- UND SOCIAL-MEDIA-BALKEN
   ======================================================================== */

#sp-top-bar {
    position: relative;
    min-height: var(--union-topbar-hoehe);
    padding: 0;
    color: rgba(255, 255, 255, 0.78);
    background: var(--union-schwarz);
    border-top: 3px solid var(--union-rot);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    line-height: var(--union-topbar-hoehe);
}

#sp-top-bar > .container,
#sp-top-bar > .container-inner {
    max-width: var(--union-header-breite);
}

#sp-top-bar a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

#sp-top-bar a:hover,
#sp-top-bar a:focus {
    color: var(--union-rot);
}

#sp-top-bar .sp-contact-info,
#sp-top-bar .social-icons {
    margin: 0;
}

#sp-top-bar .sp-contact-info li {
    margin: 0 0 0 18px;
    padding: 0;
}

#sp-top-bar .sp-contact-info li:first-child {
    margin-left: 0;
}

#sp-top-bar .social-icons > li {
    margin-left: 14px;
}

#sp-top-bar .social-icons > li > a {
    font-size: 14px;
}

.union-topbar-claim {
    display: inline-flex;
    align-items: center;
    min-height: var(--union-topbar-hoehe);
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.union-topbar-claim::before {
    width: 22px;
    height: 2px;
    margin-right: 10px;
    background: var(--union-rot);
    content: "";
}


/* ========================================================================
   04. HAUPTHEADER
   ======================================================================== */

#sp-header {
    position: relative;
    z-index: 999;
    height: var(--union-header-hoehe);
    background: var(--union-schwarz) !important;
    border-bottom: 3px solid var(--union-rot);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    overflow: visible !important;
}

#sp-header > .container,
#sp-header > .container-inner,
#sp-header .container,
#sp-header .container-inner {
    max-width: var(--union-header-breite);
    overflow: visible !important;
}

#sp-header .row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    min-height: var(--union-header-hoehe);
    overflow: visible !important;
}


/* ========================================================================
   05. LOGO
   ======================================================================== */

#sp-logo,
#sp-logo .sp-column,
#sp-header .logo {
    overflow: visible !important;
}

#sp-logo {
    position: relative;
    z-index: 1002;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
}

#sp-header .logo {
    position: relative;
    display: flex;
    align-items: flex-start;
    height: var(--union-header-hoehe);
    margin: 0;
}

#sp-header .logo a {
    position: relative;
    z-index: 1003;
    display: inline-flex;
    align-items: flex-start;
    height: auto;
    text-decoration: none;
}

#sp-header .logo-image {
    position: relative;
    top: 8px;
    width: auto;
    height: 138px;
    max-width: none;
    max-height: none;
    object-fit: contain;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.35));
    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}

#sp-header .logo a:hover .logo-image {
    transform: translateY(-2px);
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.42));
}

#sp-header .logo-slogan {
    display: none;
}


/* ========================================================================
   06. DESKTOP-NAVIGATION
   ======================================================================== */

@media (min-width: 992px) {

    #sp-menu {
        flex: 1 1 auto;
        width: auto;
        max-width: none;
        min-width: 0;
        padding-left: 48px;
    }

    #sp-menu > .sp-column {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        height: 100%;
        gap: 0;
    }

    #sp-header .sp-megamenu-parent {
        position: relative;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch;
        justify-content: flex-end;
        width: auto;
        height: var(--union-header-hoehe);
        margin: 0;
        padding: 0;
        gap: 0;
        white-space: nowrap;
    }

    #sp-header .sp-megamenu-parent > li {
        position: relative;
        display: flex !important;
        flex: 0 0 auto;
        align-items: stretch;
        float: none;
        width: auto;
        height: var(--union-header-hoehe);
        margin: 0;
    }

    #sp-header .sp-megamenu-parent > li > a,
    #sp-header .sp-megamenu-parent > li > span {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: auto;
        height: var(--union-header-hoehe);
        padding: 0 13px;
        color: rgba(255, 255, 255, 0.92) !important;
        font-size: 13px;
        font-weight: 700;
        line-height: 1;
        letter-spacing: 0.015em;
        white-space: nowrap;
        text-decoration: none;
        text-transform: uppercase;
        transition:
            color 0.2s ease,
            background 0.2s ease,
            box-shadow 0.2s ease;
    }

    /* Hover: dezente rote Hinterlegung */
    #sp-header .sp-megamenu-parent > li:hover > a,
    #sp-header .sp-megamenu-parent > li:hover > span {
        color: var(--union-weiss) !important;
        background: linear-gradient(
            180deg,
            rgba(227, 6, 19, 0.24) 0%,
            rgba(183, 8, 18, 0.14) 100%
        ) !important;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.04),
            inset 0 -1px 0 rgba(0, 0, 0, 0.16);
    }

    /* Aktiver Menüpunkt: kräftiger, aber ohne zusätzliche Unterstreichung */
    #sp-header .sp-megamenu-parent > li.active > a,
    #sp-header .sp-megamenu-parent > li.active > span {
        padding-right: 11px;
        padding-left: 11px;
        color: var(--union-weiss) !important;
        background: linear-gradient(
            180deg,
            rgba(183, 8, 18, 0.70) 0%,
            rgba(110, 7, 14, 0.88) 100%
        ) !important;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.07),
            inset 0 -1px 0 rgba(0, 0, 0, 0.24),
            0 0 18px rgba(227, 6, 19, 0.12);
    }

    /* Tastaturfokus */
    #sp-header .sp-megamenu-parent > li > a:focus-visible,
    #sp-header .sp-megamenu-parent > li > span:focus-visible {
        outline: 2px solid var(--union-rot);
        outline-offset: -4px;
    }

    #sp-header .sp-megamenu-parent > li.sp-has-child > a,
    #sp-header .sp-megamenu-parent > li.sp-has-child > span {
        padding-right: 25px;
    }

    #sp-header .sp-megamenu-parent > li.active.sp-has-child > a,
    #sp-header .sp-megamenu-parent > li.active.sp-has-child > span {
        padding-right: 23px;
        padding-left: 11px;
    }


    /*
       Pfeile:
       Helix Ultimate erzeugt den Dropdown-Pfeil bereits selbst.
       Deshalb wird hier kein zusätzlicher Pfeil per ::before/::after erzeugt.
       So erscheint pro Menüpunkt nur noch ein Pfeil.
    */
}


/* ========================================================================
   07. DESKTOP-DROPDOWN
   ======================================================================== */

@media (min-width: 992px) {

    #sp-header .sp-dropdown {
        padding-top: 0;
        margin-top: -2px;
    }

    #sp-header .sp-dropdown .sp-dropdown-inner {
        min-width: 330px;
        padding: 10px;
        background: rgba(17, 17, 17, 0.98) !important;
        border-top: 3px solid var(--union-rot);
        border-radius: 0 0 6px 6px;
        box-shadow:
            0 18px 42px rgba(0, 0, 0, 0.48),
            inset 0 1px 0 rgba(255, 255, 255, 0.04);
        backdrop-filter: blur(12px);
    }

    #sp-header .sp-dropdown li {
        margin: 0;
        padding: 0;
    }

    #sp-header .sp-dropdown li > a,
    #sp-header .sp-dropdown li > span {
        position: relative;
        display: flex;
        align-items: center;
        min-height: 46px;
        padding: 12px 18px;
        color: rgba(255, 255, 255, 0.84) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        border-radius: 2px;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.35;
        white-space: normal;
        text-decoration: none;
        text-transform: uppercase;
    }

    #sp-header .sp-dropdown li:last-child > a,
    #sp-header .sp-dropdown li:last-child > span {
        border-bottom: 0;
    }

    #sp-header .sp-dropdown li > a::before,
    #sp-header .sp-dropdown li > span::before {
        position: absolute;
        top: 8px;
        bottom: 8px;
        left: 0;
        width: 3px;
        height: auto;
        background: var(--union-rot);
        content: "";
        opacity: 0;
        transform: scaleY(0.35);
        transition:
            opacity 0.2s ease,
            transform 0.2s ease;
    }

    #sp-header .sp-dropdown li:hover > a,
    #sp-header .sp-dropdown li:hover > span,
    #sp-header .sp-dropdown li.active > a,
    #sp-header .sp-dropdown li.active > span {
        padding-left: 20px;
        color: var(--union-weiss) !important;
        background: linear-gradient(
            90deg,
            rgba(227, 6, 19, 0.16),
            rgba(227, 6, 19, 0.035)
        ) !important;
    }

    #sp-header .sp-dropdown li:hover > a::before,
    #sp-header .sp-dropdown li:hover > span::before,
    #sp-header .sp-dropdown li.active > a::before,
    #sp-header .sp-dropdown li.active > span::before {
        opacity: 1;
        transform: scaleY(1);
    }
}


/* ========================================================================
   08. SUCHE UND HEADER-SYMBOLE
   ======================================================================== */

#sp-header .sp-module {
    margin: 0;
}

@media (min-width: 992px) {

    #sp-header .search,
    #sp-header .mod-search {
        flex: 0 0 185px;
        width: 185px;
        margin-left: 14px;
    }

    #sp-header .search input,
    #sp-header .mod-search input,
    #sp-header input[type="search"] {
        width: 185px;
        height: 40px;
        padding: 0 14px;
        color: var(--union-weiss);
        background: rgba(255, 255, 255, 0.065);
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 5px;
        box-shadow: none;
        font-size: 14px;
    }

    #sp-header .search input::placeholder,
    #sp-header .mod-search input::placeholder,
    #sp-header input[type="search"]::placeholder {
        color: rgba(255, 255, 255, 0.55);
    }

    #sp-header .search input:focus,
    #sp-header .mod-search input:focus,
    #sp-header input[type="search"]:focus {
        background: rgba(255, 255, 255, 0.1);
        border-color: var(--union-rot);
        box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.12);
        outline: none;
    }

    #sp-header .search-icon,
    #sp-header .icon-search,
    #sp-header .sp-menu-item-search a {
        color: var(--union-weiss) !important;
    }

    #sp-header .search-icon:hover,
    #sp-header .icon-search:hover,
    #sp-header .sp-menu-item-search a:hover {
        color: var(--union-rot) !important;
        transform: scale(1.08);
    }
}


/* ========================================================================
   09. BURGER-BUTTON
   ======================================================================== */

#sp-header .offcanvas-toggler {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: 14px;
    color: var(--union-weiss) !important;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 4px;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

#sp-header .offcanvas-toggler:hover,
#sp-header .offcanvas-toggler:focus {
    color: var(--union-weiss) !important;
    background: var(--union-rot);
    border-color: var(--union-rot);
}

#sp-header .burger-icon > span,
#sp-header .burger-icon > span::before,
#sp-header .burger-icon > span::after,
.burger-icon > span,
.burger-icon > span::before,
.burger-icon > span::after {
    background: var(--union-weiss) !important;
}


/* ========================================================================
   10. STICKY HEADER
   ======================================================================== */

#sp-header.header-sticky,
#sp-header.menu-fixed,
#sp-header.sticky-header {
    height: 78px;
    background: rgba(17, 17, 17, 0.97) !important;
    border-bottom-width: 3px;
    backdrop-filter: blur(12px);
}

#sp-header.header-sticky .row,
#sp-header.menu-fixed .row,
#sp-header.sticky-header .row,
#sp-header.header-sticky .logo,
#sp-header.menu-fixed .logo,
#sp-header.sticky-header .logo,
#sp-header.header-sticky .sp-megamenu-parent,
#sp-header.menu-fixed .sp-megamenu-parent,
#sp-header.sticky-header .sp-megamenu-parent,
#sp-header.header-sticky .sp-megamenu-parent > li,
#sp-header.menu-fixed .sp-megamenu-parent > li,
#sp-header.sticky-header .sp-megamenu-parent > li,
#sp-header.header-sticky .sp-megamenu-parent > li > a,
#sp-header.header-sticky .sp-megamenu-parent > li > span,
#sp-header.menu-fixed .sp-megamenu-parent > li > a,
#sp-header.menu-fixed .sp-megamenu-parent > li > span,
#sp-header.sticky-header .sp-megamenu-parent > li > a,
#sp-header.sticky-header .sp-megamenu-parent > li > span {
    height: 78px;
    min-height: 78px;
}

#sp-header.header-sticky .logo-image,
#sp-header.menu-fixed .logo-image,
#sp-header.sticky-header .logo-image {
    top: 5px;
    height: 112px;
}


/* ========================================================================
   11. OFFCANVAS-MENÜ
   ======================================================================== */

/*
   Wichtig:
   Die geschlossene Position wird ausdrücklich mit translateX(100 %)
   gesetzt. Dadurch bleibt das Menü auch dann vollständig außerhalb des
   Bildschirms, wenn seine Breite responsiv verändert wird.
*/

.offcanvas-menu {
    position: fixed;
    top: 0;
    right: 0 !important;
    left: auto !important;
    width: min(360px, calc(100vw - 22px)) !important;
    max-width: calc(100vw - 22px) !important;
    height: 100vh;
    color: var(--union-weiss);
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.018),
            transparent 180px
        ),
        var(--union-schwarz) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -20px 0 55px rgba(0, 0, 0, 0.45);
    overflow-x: hidden !important;
    transform: translateX(100%) !important;
    transition: transform 0.35s ease !important;
}

/* Helix verwendet je nach Version unterschiedliche Body-Klassen */
body.offcanvas-active .offcanvas-menu,
body.offcanvas-opened .offcanvas-menu,
body.offcanvas-menu-open .offcanvas-menu {
    transform: translateX(0) !important;
}

.offcanvas-menu .offcanvas-inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: 100%;
    padding: 88px 34px 35px;
    overflow-x: hidden;
    overflow-y: auto;
}

.offcanvas-menu .offcanvas-header {
    background: transparent;
    border: 0;
}

.offcanvas-menu .close-offcanvas {
    position: absolute;
    top: 18px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--union-weiss) !important;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 3px;
}

.offcanvas-menu .close-offcanvas:hover,
.offcanvas-menu .close-offcanvas:focus {
    color: var(--union-weiss) !important;
    background: var(--union-rot);
    border-color: var(--union-rot);
}

.offcanvas-menu .menu {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.offcanvas-menu .menu > li {
    position: relative;
    width: 100%;
    margin: 0;
    border: 0;
}

.offcanvas-menu .menu > li > a,
.offcanvas-menu .menu > li > span {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 40px;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.035em;
    text-decoration: none;
    text-transform: uppercase;
}

.offcanvas-menu .menu > li:hover > a,
.offcanvas-menu .menu > li:hover > span {
    color: var(--union-weiss) !important;
}

.offcanvas-menu .menu > li.active > a,
.offcanvas-menu .menu > li.active > span {
    color: var(--union-rot) !important;
}


/* Pfeile */

.offcanvas-menu .menu-toggler {
    display: flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 38px;
    margin-left: auto;
    color: rgba(255, 255, 255, 0.82) !important;
}

.offcanvas-menu .menu-toggler:hover,
.offcanvas-menu .menu-toggler:focus {
    color: var(--union-rot) !important;
}


/* Untermenü
   Die rote Linie liegt als Pseudoelement separat neben dem Inhalt.
   Dadurch kann der Text unabhängig davon sauber eingerückt werden.
*/

.offcanvas-menu .menu-child {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    margin: 6px 0 20px;
    padding: 5px 0 5px 0 !important;
    border-left: 0 !important;
    list-style: none;
}

.offcanvas-menu .menu-child::before {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 10px;
    width: 2px;
    background: var(--union-rot);
    content: "";
}

.offcanvas-menu .menu-child > li {
    box-sizing: border-box;
    width: 100%;
    margin: 0 !important;
    padding: 0 0 0 38px !important;
}

.offcanvas-menu .menu-child > li > a,
.offcanvas-menu .menu-child > li > span {
    display: block;
    width: 100%;
    margin: 0 !important;
    padding: 5px 0 !important;
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    text-decoration: none;
    text-transform: uppercase;
}

.offcanvas-menu .menu-child > li:hover > a,
.offcanvas-menu .menu-child > li:hover > span,
.offcanvas-menu .menu-child > li.active > a,
.offcanvas-menu .menu-child > li.active > span {
    color: var(--union-weiss) !important;
}


/* Scrollbar */

.offcanvas-menu::-webkit-scrollbar,
.offcanvas-menu .offcanvas-inner::-webkit-scrollbar {
    width: 5px;
}

.offcanvas-menu::-webkit-scrollbar-track,
.offcanvas-menu .offcanvas-inner::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.025);
}

.offcanvas-menu::-webkit-scrollbar-thumb,
.offcanvas-menu .offcanvas-inner::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 10px;
}


/* ========================================================================
   12. RESPONSIVE ANPASSUNGEN
   ======================================================================== */

@media (min-width: 992px) and (max-width: 1199px) {

    :root {
        --union-header-breite: 1180px;
    }

    #sp-header .logo-image {
        height: 122px;
    }

    #sp-menu {
        padding-left: 30px;
    }

    #sp-header .sp-megamenu-parent > li > a,
    #sp-header .sp-megamenu-parent > li > span {
        padding-right: 9px;
        padding-left: 9px;
        font-size: 12px;
    }

    #sp-header .sp-megamenu-parent > li.sp-has-child > a,
    #sp-header .sp-megamenu-parent > li.sp-has-child > span {
        padding-right: 20px;
    }

    #sp-header .search,
    #sp-header .mod-search {
        flex-basis: 150px;
        width: 150px;
        margin-left: 10px;
    }

    #sp-header .search input,
    #sp-header .mod-search input,
    #sp-header input[type="search"] {
        width: 150px;
    }
}


@media (max-width: 991px) {

    :root {
        --union-header-hoehe: 76px;
        --union-topbar-hoehe: 32px;
    }

    #sp-top-bar {
        min-height: var(--union-topbar-hoehe);
        line-height: var(--union-topbar-hoehe);
    }

    #sp-header,
    #sp-header .row,
    #sp-header .logo {
        height: var(--union-header-hoehe);
        min-height: var(--union-header-hoehe);
    }

    #sp-header .logo-image {
        top: 5px;
        height: 92px;
    }

    #sp-menu {
        margin-left: auto;
        padding-left: 0;
    }

    #sp-header .offcanvas-toggler {
        width: 42px;
        height: 42px;
        margin-left: 8px;
    }

    #sp-header.header-sticky,
    #sp-header.menu-fixed,
    #sp-header.sticky-header {
        height: 70px;
    }

    #sp-header.header-sticky .row,
    #sp-header.menu-fixed .row,
    #sp-header.sticky-header .row,
    #sp-header.header-sticky .logo,
    #sp-header.menu-fixed .logo,
    #sp-header.sticky-header .logo {
        height: 70px;
        min-height: 70px;
    }

    #sp-header.header-sticky .logo-image,
    #sp-header.menu-fixed .logo-image,
    #sp-header.sticky-header .logo-image {
        top: 4px;
        height: 84px;
    }

    .offcanvas-menu {
        right: 0 !important;
        left: auto !important;
        transform-origin: right center;
    }

    .offcanvas-menu .offcanvas-inner {
        padding-right: 30px;
        padding-left: 30px;
    }

    .offcanvas-menu .menu-child {
        width: calc(100% - 22px);
        margin-left: 8px;
        padding-left: 26px;
    }
}


@media (max-width: 767px) {

    #sp-top-bar {
        display: none;
    }

    :root {
        --union-header-hoehe: 72px;
    }

    #sp-header {
        border-bottom-width: 3px;
    }

    #sp-header,
    #sp-header .row,
    #sp-header .logo {
        height: var(--union-header-hoehe);
        min-height: var(--union-header-hoehe);
    }

    #sp-header .logo-image {
        top: 4px;
        height: 80px;
    }

    .offcanvas-menu {
        width: min(340px, calc(100vw - 18px)) !important;
        max-width: calc(100vw - 18px) !important;
    }

    .offcanvas-menu .offcanvas-inner {
        padding: 82px 26px 30px;
    }

    .offcanvas-menu .menu > li > a,
    .offcanvas-menu .menu > li > span {
        font-size: 16px;
    }

    .offcanvas-menu .menu-child {
        width: calc(100% - 18px);
        margin: 6px 0 18px 8px;
        padding: 5px 0 5px 24px;
    }
}


@media (max-width: 480px) {

    #sp-header .logo-image {
        height: 74px;
    }

    #sp-header .offcanvas-toggler {
        width: 40px;
        height: 40px;
    }

    .offcanvas-menu {
        width: calc(100vw - 14px) !important;
        max-width: calc(100vw - 14px) !important;
    }

    .offcanvas-menu .offcanvas-inner {
        padding-right: 22px;
        padding-left: 22px;
    }

    .offcanvas-menu .menu-child {
        width: calc(100% - 14px);
        margin-left: 6px;
        padding-left: 22px;
    }
}

/* ========================================================================
   13. BARRIEREFREIHEIT: REDUZIERTE BEWEGUNG
   ======================================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ========================================================================
   14. FOOTER UND SPONSORENBEREICH
   ======================================================================== */

/*
   Aufbau im Helix-Layout:
   footer1 = Sponsoren-Einleitung + Client Logo Slider
   footer2 = Footer-Menü + Helix-Copyright

   Die sichtbare Trennlinie zwischen beiden Bereichen stammt aus dem
   Helix-Template. In der custom.css wird keine zweite Linie ergänzt.
*/


/* ------------------------------------------------------------------------
   Gemeinsame Footer-Grundlagen
   ------------------------------------------------------------------------ */

#sp-footer1,
#sp-footer2 {
    color: var(--union-weiss);
    background: #151515;
}

#sp-footer1 > .container,
#sp-footer1 > .container-inner,
#sp-footer2 > .container,
#sp-footer2 > .container-inner {
    max-width: var(--union-header-breite);
}


/* ------------------------------------------------------------------------
   Sponsorenbereich / footer1
   ------------------------------------------------------------------------ */

#sp-footer1 {
    position: relative;
    padding: 34px 0 12px;
    background: #151515;
    border-top: 3px solid var(--union-rot);
    border-bottom: 0;
    box-shadow: none;
}

#sp-footer1::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 130px;
    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(227, 6, 19, 0.075),
            transparent 58%
        );
    content: "";
    pointer-events: none;
}

#sp-footer1 .sp-column {
    position: relative;
    z-index: 1;
}

#sp-footer1 .sp-module,
#sp-footer1 [class*="union-sponsor-slider"] {
    border-bottom: 0;
    box-shadow: none;
}


/* Sponsoren-Einleitung */

.union-sponsor-intro {
    max-width: 760px;
    margin: 0 0 18px;
}

.union-sponsor-intro__eyebrow {
    display: inline-flex;
    align-items: center;
    margin: 0 0 8px;
    color: var(--union-rot);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.union-sponsor-intro__eyebrow::before {
    width: 28px;
    height: 2px;
    margin-right: 11px;
    background: var(--union-rot);
    content: "";
}

.union-sponsor-intro__title {
    max-width: 700px;
    margin: 0 0 10px;
    color: var(--union-weiss);
    font-size: clamp(28px, 2.4vw, 36px);
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.union-sponsor-intro__text {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.6;
}


/* Client Logo Slider */

#sp-footer1 [class*="union-sponsor-slider"] {
    position: relative;
    margin-top: 0;
    padding: 0 0 10px;
    overflow: hidden;
}

#sp-footer1 [class*="union-sponsor-slider"]::before,
#sp-footer1 [class*="union-sponsor-slider"]::after {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 5;
    width: 58px;
    content: "";
    pointer-events: none;
}

#sp-footer1 [class*="union-sponsor-slider"]::before {
    left: 0;
    background: linear-gradient(
        90deg,
        #151515 0%,
        rgba(21, 21, 21, 0) 100%
    );
}

#sp-footer1 [class*="union-sponsor-slider"]::after {
    right: 0;
    background: linear-gradient(
        270deg,
        #151515 0%,
        rgba(21, 21, 21, 0) 100%
    );
}

#sp-footer1 [class*="union-sponsor-slider"] li,
#sp-footer1 [class*="union-sponsor-slider"] .slide,
#sp-footer1 [class*="union-sponsor-slider"] .item {
    display: flex;
    align-items: center;
    justify-content: center;
}

#sp-footer1 [class*="union-sponsor-slider"] img {
    max-height: 96px;
    object-fit: contain;
    transition:
        filter 0.25s ease,
        opacity 0.25s ease,
        transform 0.25s ease;
}

#sp-footer1 [class*="union-sponsor-slider"] a:hover img,
#sp-footer1 [class*="union-sponsor-slider"] a:focus img {
    transform: translateY(-3px) scale(1.025);
}

#sp-footer1 [class*="union-sponsor-slider"] a:focus-visible {
    outline: 2px solid var(--union-rot);
    outline-offset: 4px;
}


/* ------------------------------------------------------------------------
   Unterer Footer / footer2
   ------------------------------------------------------------------------ */

#sp-footer2 {
    padding: 0 0 20px;
    background: #151515;
    border-top: 0;
    box-shadow: none;
}

#sp-footer2 .sp-column {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 28px;
    padding-top: 16px;
    border-top: 0;
}


/* Footer-Menü */

#sp-footer2 .sp-module {
    margin: 0;
}

#sp-footer2 ul.menu,
#sp-footer2 .menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#sp-footer2 ul.menu > li,
#sp-footer2 .menu > li {
    position: relative;
    margin: 0;
    padding: 0;
}

#sp-footer2 ul.menu > li:not(:last-child)::after,
#sp-footer2 .menu > li:not(:last-child)::after {
    position: absolute;
    top: 50%;
    right: -13px;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    content: "";
    transform: translateY(-50%);
}

#sp-footer2 ul.menu a,
#sp-footer2 .menu a {
    position: relative;
    display: inline-block;
    padding: 3px 0;
    color: rgba(255, 255, 255, 0.70);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

#sp-footer2 ul.menu a::after,
#sp-footer2 .menu a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--union-rot);
    content: "";
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.2s ease;
}

#sp-footer2 ul.menu a:hover,
#sp-footer2 ul.menu a:focus,
#sp-footer2 .menu a:hover,
#sp-footer2 .menu a:focus {
    color: var(--union-weiss);
}

#sp-footer2 ul.menu a:hover::after,
#sp-footer2 ul.menu a:focus::after,
#sp-footer2 .menu a:hover::after,
#sp-footer2 .menu a:focus::after {
    transform: scaleX(1);
}


/* Copyright und 4cleverminds */

#sp-footer2 .copyright,
#sp-footer2 .sp-copyright,
#sp-footer2 [class*="copyright"] {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0 5px;
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    line-height: 1.5;
    text-align: right;
}

#sp-footer2 .union-copyright-separator {
    color: rgba(255, 255, 255, 0.28);
}

#sp-footer2 .copyright a,
#sp-footer2 .sp-copyright a,
#sp-footer2 [class*="copyright"] a {
    position: relative;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
    text-decoration: none;
}

#sp-footer2 .copyright a::after,
#sp-footer2 .sp-copyright a::after,
#sp-footer2 [class*="copyright"] a::after {
    position: absolute;
    right: 0;
    bottom: -2px;
    left: 0;
    height: 1px;
    background: var(--union-rot);
    content: "";
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.2s ease;
}

#sp-footer2 .copyright a:hover,
#sp-footer2 .copyright a:focus,
#sp-footer2 .sp-copyright a:hover,
#sp-footer2 .sp-copyright a:focus,
#sp-footer2 [class*="copyright"] a:hover,
#sp-footer2 [class*="copyright"] a:focus {
    color: var(--union-weiss);
}

#sp-footer2 .copyright a:hover::after,
#sp-footer2 .copyright a:focus::after,
#sp-footer2 .sp-copyright a:hover::after,
#sp-footer2 .sp-copyright a:focus::after,
#sp-footer2 [class*="copyright"] a:hover::after,
#sp-footer2 [class*="copyright"] a:focus::after {
    transform: scaleX(1);
}


/* ------------------------------------------------------------------------
   Responsive Footer
   ------------------------------------------------------------------------ */

@media (max-width: 991px) {

    #sp-footer1 {
        padding-top: 30px;
    }

    .union-sponsor-intro {
        max-width: 720px;
    }

    #sp-footer1 [class*="union-sponsor-slider"]::before,
    #sp-footer1 [class*="union-sponsor-slider"]::after {
        width: 34px;
    }

    #sp-footer2 .sp-column {
        align-items: flex-start;
        flex-direction: column;
    }

    #sp-footer2 .copyright,
    #sp-footer2 .sp-copyright,
    #sp-footer2 [class*="copyright"] {
        justify-content: flex-start;
        text-align: left;
    }
}


@media (max-width: 767px) {

    #sp-footer1 {
        padding: 28px 0 10px;
    }

    .union-sponsor-intro {
        margin-bottom: 16px;
    }

    .union-sponsor-intro__title {
        font-size: clamp(27px, 8vw, 34px);
    }

    .union-sponsor-intro__text {
        font-size: 14px;
        line-height: 1.6;
    }

    #sp-footer1 [class*="union-sponsor-slider"] {
        padding-bottom: 8px;
    }

    #sp-footer1 [class*="union-sponsor-slider"]::before,
    #sp-footer1 [class*="union-sponsor-slider"]::after {
        width: 20px;
    }

    #sp-footer1 [class*="union-sponsor-slider"] img {
        max-height: 92px;
    }

    #sp-footer2 {
        padding-bottom: 18px;
    }

    #sp-footer2 .sp-column {
        gap: 10px;
        padding-top: 14px;
    }

    #sp-footer2 ul.menu,
    #sp-footer2 .menu {
        gap: 7px 18px;
    }

    #sp-footer2 ul.menu > li:not(:last-child)::after,
    #sp-footer2 .menu > li:not(:last-child)::after {
        right: -10px;
    }
}


@media (max-width: 480px) {

    .union-sponsor-intro__eyebrow {
        font-size: 10px;
        letter-spacing: 0.13em;
    }

    .union-sponsor-intro__eyebrow::before {
        width: 20px;
        margin-right: 8px;
    }

    #sp-footer2 ul.menu,
    #sp-footer2 .menu {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    #sp-footer2 ul.menu > li::after,
    #sp-footer2 .menu > li::after {
        display: none;
    }
}

