/*
 * SG Igensdorf -- Site-Template
 *
 * Aufbau nach dem Vorbild moderner Vereinsauftritte: dunkler Markengrund,
 * dazwischen helle Baender, grosse Auszeichnungsschrift, Pillen-Schaltflaechen
 * und weich gerundete Karten.
 *
 *  1 Tokens        2 Basis          3 Grundraster
 *  4 Servicezeile  5 Navigation     6 Vollbildmenue
 *  7 Buehne        8 Rubrikkacheln  9 Baender und Module
 * 10 Laufband     11 Inhalt        12 Partner  13 Fusszeile  14 Hilfsmittel
 */

/* ------------------------------------------------------------------ 1 Tokens */

:root {
    color-scheme: light;

    /* Vereinsrot als Markengrund -- dieselbe Rolle, die auf der Vorlage das
       Vereinsblau uebernimmt. */
    --sg-brand: #9a2c2a;
    --sg-brand-600: #7f2422;
    --sg-brand-700: #611b1a;
    --sg-brand-900: #2e0f0e;
    --sg-brand-050: #fbf1f0;

    --sg-ink: #14171a;
    --sg-ink-70: #4c525a;
    --sg-ink-50: #737a83;

    --sg-paper: #ffffff;
    --sg-mist: #f8f9fa;
    --sg-line: #e6e2dd;
    --sg-line-dark: rgb(255 255 255 / 14%);

    --sg-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;

    --sg-shadow-sm: 0 1px 2px rgb(20 23 26 / 6%), 0 2px 10px rgb(20 23 26 / 4%);
    --sg-shadow-md: 0 4px 12px rgb(20 23 26 / 8%), 0 16px 40px rgb(20 23 26 / 10%);
    --sg-shadow-lg: 0 10px 30px rgb(20 23 26 / 12%), 0 32px 70px rgb(20 23 26 / 16%);

    --sg-radius: 16px;
    --sg-radius-lg: 24px;
    --sg-pill: 999px;

    --sg-gutter: clamp(1.125rem, 4vw, 2.75rem);
    --sg-max: 1320px;
    --sg-service-h: 40px;
    --sg-pill-h: 68px;

    --sg-ease: cubic-bezier(0.2, 0.75, 0.3, 1);

    /* Menü: Zeilenanzahl, Schriftart und -groesse ueber Template-Optionen
       einstellbar (siehe index.php). Vorgabewerte hier entsprechen exakt
       dem bisherigen Aussehen, aendern also nichts, solange die Optionen
       auf ihren Standardwerten stehen. */
    --sg-menu-rows: 1;
    --sg-menu-font-family: var(--sg-font);
    --sg-menu-font-size: 0.75rem;

    /* Ueberschriften-Groessen H1-H4 (normaler Seiteninhalt), ebenfalls ueber
       Template-Optionen einstellbar. Vorgabewerte = bisherige Werte; H4
       hatte bisher keine eigene Groesse (Browser-Standard ~1em), daher hier
       neu mit sinnvollem Basiswert definiert. */
    --sg-h1-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
    --sg-h2-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
    --sg-h3-size: clamp(1.2rem, 1.08rem + 0.6vw, 1.5rem);
    --sg-h4-size: 1rem;
}

/* ------------------------------------------------------------------- 2 Basis */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--sg-service-h) + var(--sg-pill-h) + 1.5rem);
}

body.sg-site {
    margin: 0;
    background: var(--sg-paper);
    color: var(--sg-ink);
    font-family: var(--sg-font);
    font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
    overflow-x: clip;
}

body.sg-menu-open {
    overflow: hidden;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--sg-brand);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--sg-brand-700);
}

:where(h1, h2, h3, h4, h5, h6) {
    margin: 0 0 0.5em;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    text-wrap: balance;
    color: inherit;
}

p {
    margin: 0 0 1.1em;
}

button {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 3px solid currentcolor;
    outline-offset: 3px;
    border-radius: 6px;
}

hr {
    border: 0;
    border-top: 1px solid var(--sg-line);
    margin: 2.5rem 0;
}

/* Wiederkehrende Bausteine */

.sg-eyebrow {
    margin: 0 0 0.9rem;
    font-size: clamp(0.75rem, 0.72rem + 0.15vw, 0.875rem);
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.sg-arrow {
    display: inline-block;
    width: 0.55em;
    height: 0.55em;
    border-top: 2px solid currentcolor;
    border-right: 2px solid currentcolor;
    rotate: 45deg;
    translate: 0 -0.05em;
    transition: translate 0.2s var(--sg-ease);
}

.sg-arrow--up {
    rotate: -45deg;
}

.sg-caret {
    display: inline-block;
    width: 0.5em;
    height: 0.5em;
    border-right: 2px solid currentcolor;
    border-bottom: 2px solid currentcolor;
    rotate: 45deg;
    translate: 0 -0.15em;
    transition: rotate 0.2s var(--sg-ease);
}

[aria-expanded="true"] .sg-caret {
    rotate: 225deg;
    translate: 0 0.1em;
}

.sg-extlink {
    display: inline-block;
    width: 0.5em;
    height: 0.5em;
    margin-left: 0.35em;
    border-top: 1.5px solid currentcolor;
    border-right: 1.5px solid currentcolor;
    rotate: 45deg;
    translate: 0 -0.15em;
}

.sg-pillbtn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.4rem;
    border-radius: var(--sg-pill);
    background: var(--sg-mist);
    color: var(--sg-brand-700);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s var(--sg-ease), color 0.2s var(--sg-ease);
}

.sg-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.sg-sechead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.sg-sechead__title {
    margin: 0;
    font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem);
    text-transform: uppercase;
}

.sg-sechead--invert .sg-sechead__title {
    color: #fff;
}

/* ------------------------------------------------------------ 3 Grundraster */

.sg-shell {
    width: 100%;
    max-width: var(--sg-max);
    margin-inline: auto;
    padding-inline: var(--sg-gutter);
}

.sg-shell--narrow {
    max-width: 880px;
}

.sg-layout {
    display: grid;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}

@media (min-width: 64rem) {
    .sg-main--aside .sg-layout {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 22rem);
    }

    .sg-main--aside .sg-layout > .sg-aside--left {
        grid-column: 1;
        grid-row: 1;
    }

    .sg-main--aside .sg-layout > .sg-aside--left ~ .sg-content {
        grid-column: 2;
    }
}

.sg-main {
    padding-block: clamp(2.75rem, 5vw, 5rem);
}

.sg-stack > * + * {
    margin-top: 2rem;
}

/* ------------------------------------------------------------ 4 Servicezeile */

.sg-skip {
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 300;
    padding: 0.7rem 1.2rem;
    background: var(--sg-brand);
    color: #fff;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transform: translateY(-180%);
    transition: transform 0.18s var(--sg-ease);
}

.sg-skip:focus-visible {
    transform: translateY(0);
    color: #fff;
}

.sg-service {
    background: var(--sg-brand-900);
    color: rgb(255 255 255 / 72%);
    font-size: 0.75rem;
}

.sg-service__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--sg-service-h);
}

.sg-service__label {
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgb(255 255 255 / 55%);
}

.sg-service__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sg-service__links a {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    padding-block: 0.5rem;
}

.sg-service__links a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 0.3em;
}

@media (max-width: 40rem) {
    .sg-service__label {
        display: none;
    }

    .sg-service__inner {
        justify-content: center;
    }
}

/* -------------------------------------------------------------- 5 Navigation */

.sg-head {
    position: sticky;
    top: 0;
    z-index: 120;
    padding-block: 0.75rem;
}

/* Auf der Startseite schwebt die Pille ueber der Buehne. */
.has-hero .sg-head {
    position: fixed;
    top: var(--sg-service-h);
    left: 0;
    right: 0;
    padding-block: 1rem;
    transition: top 0.25s var(--sg-ease);
}

.has-hero.is-scrolled .sg-head {
    position: fixed;
    top: 0;
    padding-block: 0.6rem;
}

.no-hero .sg-head {
    background: var(--sg-brand-900);
}

.sg-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--sg-pill-h);
    padding: 0.5rem 0.5rem 0.5rem 1.25rem;
    border-radius: var(--sg-pill);
    background: rgb(255 255 255 / 92%);
    box-shadow: var(--sg-shadow-md);
    transition: min-height 0.25s var(--sg-ease), background 0.25s var(--sg-ease);
}

@supports (backdrop-filter: blur(1px)) {
    .sg-pill {
        background: rgb(255 255 255 / 82%);
        backdrop-filter: saturate(180%) blur(16px);
        -webkit-backdrop-filter: saturate(180%) blur(16px);
    }
}

.is-scrolled .sg-pill {
    min-height: 58px;
}

.sg-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--sg-ink);
    flex: 0 0 auto;
}

.sg-brand__mark {
    width: auto;
    height: 46px;
    transition: height 0.25s var(--sg-ease);
}

.is-scrolled .sg-brand__mark {
    height: 40px;
}

.sg-brand__name {
    font-weight: 800;
    font-size: 0.9375rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.1;
}

@media (max-width: 30rem) {
    .sg-brand__name {
        display: none;
    }
}

/* Waagerechte Leiste in der Pille */

.sg-bar {
    display: none;
}

.sg-bar__list,
.sg-bar__sub {
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 68rem) {
    .sg-bar {
        display: block;
        flex: 1 1 auto;
    }

    .sg-bar__list {
        /* Grid statt Flex: Bei mehr als einer Zeile (--sg-menu-rows > 1)
           verteilt "grid-auto-flow: column" die Eintraege automatisch auf
           genau so viele Zeilen wie eingestellt, unabhaengig davon, wie
           viele Menuepunkte es gerade gibt (die Spaltenanzahl wird dafuer
           automatisch berechnet). Bei --sg-menu-rows: 1 (Standard) ist das
           Ergebnis identisch zur bisherigen einzeiligen Flex-Reihe. */
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        grid-template-rows: repeat(var(--sg-menu-rows), auto);
        align-items: center;
        justify-content: center;
        gap: 0.15rem;
    }

    .sg-bar__item {
        position: relative;
    }

    .sg-bar__link {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.6rem 0.85rem;
        border: 0;
        border-radius: var(--sg-pill);
        background: none;
        color: var(--sg-ink);
        font-family: var(--sg-menu-font-family);
        font-size: var(--sg-menu-font-size);
        font-weight: 800;
        letter-spacing: 0.09em;
        text-transform: uppercase;
        text-decoration: none;
        white-space: nowrap;
        cursor: pointer;
    }

    .sg-bar__link--plain {
        color: var(--sg-ink-50);
        cursor: default;
    }

    .sg-bar__item:hover > .sg-bar__link,
    .sg-bar__item:focus-within > .sg-bar__link {
        background: var(--sg-brand-050);
        color: var(--sg-brand);
    }

    .sg-bar__item.is-active > .sg-bar__link {
        color: var(--sg-brand);
    }

    .sg-bar__sub {
        position: absolute;
        top: calc(100% + 0.7rem);
        left: 50%;
        translate: -50% 6px;
        min-width: 14rem;
        padding: 0.5rem;
        border-radius: var(--sg-radius);
        background: var(--sg-paper);
        box-shadow: var(--sg-shadow-lg);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.16s var(--sg-ease), translate 0.16s var(--sg-ease),
            visibility 0.16s;
    }

    .sg-bar__item.has-sub:hover > .sg-bar__sub,
    .sg-bar__item.has-sub:focus-within > .sg-bar__sub,
    .sg-bar__item.has-sub.is-expanded > .sg-bar__sub {
        opacity: 1;
        visibility: visible;
        translate: -50% 0;
    }

    /* Unsichtbare "Bruecke" ueber die Luecke zwischen Menuepunkt und
       Dropdown (Abstand oben in .sg-bar__sub via "calc(100% + 0.7rem)").
       Ohne das faellt der Mauszeiger beim Runterfahren kurz aus jedem
       Hover-Element heraus, wodurch das Dropdown vorzeitig wieder
       zuklappt. Gleiche Positionierung/Breite wie .sg-bar__sub, damit die
       Bruecke exakt den Bereich unter dem Dropdown abdeckt. */
    .sg-bar__item.has-sub::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        translate: -50% 0;
        width: 100%;
        min-width: 14rem;
        height: 0.7rem;
    }

    .sg-bar__sublink {
        display: block;
        padding: 0.55rem 0.8rem;
        border-radius: 10px;
        color: var(--sg-ink-70);
        font-family: var(--sg-menu-font-family);
        /* Bleibt proportional etwas groesser als die Hauptpunkte (bisheriges
           Verhaeltnis 0.875rem / 0.75rem), folgt aber der eingestellten
           Menü-Schriftgroesse mit. */
        font-size: calc(var(--sg-menu-font-size) * 1.1667);
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
    }

    .sg-bar__sublink:hover {
        background: var(--sg-brand-050);
        color: var(--sg-brand);
    }

    .sg-bar__sublink--plain {
        color: var(--sg-ink-50);
    }
}

/* Menue-Schaltflaeche */

.sg-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 1.1rem 0.65rem 1.35rem;
    border: 0;
    border-radius: var(--sg-pill);
    background: var(--sg-brand);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    flex: 0 0 auto;
    transition: background 0.2s var(--sg-ease);
}

.sg-menu-btn:hover {
    background: var(--sg-brand-700);
}

.sg-menu-btn__box {
    position: relative;
    display: block;
    width: 18px;
    height: 12px;
}

.sg-menu-btn__box span,
.sg-menu-btn__box span::before,
.sg-menu-btn__box span::after {
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentcolor;
}

.sg-menu-btn__box span {
    top: 5px;
}

.sg-menu-btn__box span::before,
.sg-menu-btn__box span::after {
    content: "";
}

.sg-menu-btn__box span::before {
    top: -5px;
}

.sg-menu-btn__box span::after {
    top: 5px;
}

@media (max-width: 26rem) {
    .sg-menu-btn__label {
        display: none;
    }

    .sg-menu-btn {
        padding: 0.75rem;
    }
}

/* --------------------------------------------------------- 6 Vollbildmenue */

.sg-mega {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    background: var(--sg-paper);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    transition: opacity 0.28s var(--sg-ease);
}

.sg-mega.is-open {
    opacity: 1;
}

.sg-mega[hidden] {
    display: none;
}

.sg-mega__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1rem;
    border-bottom: 1px solid var(--sg-line);
}

.sg-mega__close {
    position: relative;
    width: 48px;
    height: 48px;
    border: 1px solid var(--sg-line);
    border-radius: 50%;
    background: var(--sg-paper);
    cursor: pointer;
}

.sg-mega__close span,
.sg-mega__close span::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: var(--sg-ink);
    content: "";
}

.sg-mega__close span {
    translate: -50% -50%;
    rotate: 45deg;
}

.sg-mega__close span::before {
    top: 0;
    left: 0;
    rotate: 90deg;
}

.sg-mega__nav {
    flex: 1 1 auto;
    padding-block: clamp(1.5rem, 4vh, 3rem);
}

.sg-mega__list,
.sg-mega__sub {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sg-mega__item {
    border-bottom: 1px solid var(--sg-line);
}

.sg-mega.is-open .sg-mega__item {
    animation: sg-rise 0.4s var(--sg-ease) both;
    animation-delay: calc(var(--i) * 45ms);
}

@keyframes sg-rise {
    from {
        opacity: 0;
        translate: 0 18px;
    }
}

.sg-mega__row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sg-mega__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex: 1 1 auto;
    padding: clamp(0.8rem, 2vh, 1.35rem) 0;
    color: var(--sg-brand-700);
    font-size: clamp(1.6rem, 1rem + 3vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s var(--sg-ease);
}

.sg-mega__link:hover {
    color: var(--sg-brand);
}

.sg-mega__link--plain {
    color: var(--sg-ink-50);
}

.sg-mega__link .sg-arrow {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--sg-line);
    border-radius: 50%;
    rotate: none;
    translate: 0;
    flex: 0 0 auto;
    transition: background 0.2s var(--sg-ease), border-color 0.2s var(--sg-ease);
}

.sg-mega__link .sg-arrow::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-top: 2px solid currentcolor;
    border-right: 2px solid currentcolor;
    rotate: 45deg;
    translate: -2px 0;
}

.sg-mega__link:hover .sg-arrow {
    background: var(--sg-brand-050);
    border-color: var(--sg-brand);
}

.sg-mega__toggle,
.sg-caret-circle {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--sg-line);
    border-radius: 50%;
    background: var(--sg-paper);
    color: var(--sg-brand-700);
    cursor: pointer;
    flex: 0 0 auto;
    transition: background 0.2s var(--sg-ease), border-color 0.2s var(--sg-ease);
}

.sg-mega__toggle:hover,
.sg-mega__toggle-row:hover .sg-caret-circle {
    background: var(--sg-brand-050);
    border-color: var(--sg-brand);
}

/* Rubrik ohne eigenes Ziel: die ganze Zeile ist der Umschalter, nicht nur
   der Knopf -- und sie sieht aus wie jede andere Rubrik, nicht wie ein
   abgeschalteter Eintrag. */
.sg-mega__toggle-row {
    width: 100%;
    border: 0;
    background: none;
    text-align: left;
    cursor: pointer;
}

.sg-mega__sub {
    display: none;
    padding: 0 0 1.5rem;
    columns: 2 11rem;
    column-gap: 2rem;
}

.sg-mega__item.is-expanded > .sg-mega__sub {
    display: block;
}

.sg-mega__sub li {
    break-inside: avoid;
}

.sg-mega__sublink {
    display: block;
    padding: 0.5rem 0;
    color: var(--sg-ink-70);
    font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.125rem);
    font-weight: 600;
    text-decoration: none;
}

.sg-mega__sublink:hover {
    color: var(--sg-brand);
}

.sg-mega__sublink--plain {
    color: var(--sg-ink-50);
}

.sg-mega__foot {
    padding-block: 1.5rem 2.5rem;
    border-top: 1px solid var(--sg-line);
    color: var(--sg-ink-70);
}

.sg-mega__service {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sg-mega__service a {
    display: inline-flex;
    align-items: center;
    color: var(--sg-ink-70);
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
}

.sg-mega__service a:hover {
    color: var(--sg-brand);
}

/* ------------------------------------------------------------------ 7 Buehne */

.sg-hero {
    position: relative;
    isolation: isolate;
    overflow: clip;
    background: var(--sg-brand-900);
}

.sg-hero__stage {
    display: grid;
    min-height: clamp(30rem, 88vh, 52rem);
}

.sg-hero__slide {
    position: relative;
    grid-area: 1 / 1;
    display: grid;
    align-items: end;
    min-height: inherit;
    padding-bottom: clamp(3.5rem, 9vh, 6.5rem);
}

.sg-hero--multi .sg-hero__slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s var(--sg-ease), visibility 0.7s;
}

.sg-hero--multi .sg-hero__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.sg-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    scale: 1.06;
    transition: scale 8s linear;
}

.sg-hero__slide.is-active .sg-hero__img {
    scale: 1;
}

.sg-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgb(20 8 8 / 30%) 0%, rgb(20 8 8 / 0%) 30%, rgb(20 8 8 / 22%) 58%, rgb(20 8 8 / 82%) 100%),
        linear-gradient(90deg, rgb(20 8 8 / 45%) 0%, rgb(20 8 8 / 0%) 58%);
}

.sg-hero__body {
    color: #fff;
    max-width: 68rem;
}

.sg-hero__body .sg-eyebrow {
    color: rgb(255 255 255 / 72%);
}

.sg-hero__title {
    margin: 0 0 0.7rem;
    color: #fff;
    font-size: clamp(2.5rem, 1.1rem + 6vw, 5.5rem);
    letter-spacing: -0.035em;
    text-transform: uppercase;
    text-shadow: 0 2px 30px rgb(0 0 0 / 35%);
}

.sg-hero__text {
    max-width: 44rem;
    font-size: clamp(1.05rem, 0.98rem + 0.45vw, 1.35rem);
    color: rgb(255 255 255 / 92%);
    text-shadow: 0 1px 14px rgb(0 0 0 / 45%);
}

.sg-hero__text p:last-child {
    margin-bottom: 0;
}

.sg-hero__nav {
    position: absolute;
    left: 0;
    right: 0;
    bottom: clamp(1.5rem, 4vh, 2.5rem);
    display: flex;
    justify-content: flex-end;
}

/* Segmentanzeige */

.sg-ticks {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1.1rem;
    border-radius: var(--sg-pill);
    background: rgb(20 8 8 / 35%);
}

@supports (backdrop-filter: blur(1px)) {
    .sg-ticks {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

.sg-tick {
    width: 2.75rem;
    height: 1.25rem;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    display: grid;
    align-items: center;
}

.sg-tick i {
    display: block;
    height: 3px;
    border-radius: 3px;
    background: rgb(255 255 255 / 35%);
    transition: background 0.25s var(--sg-ease);
}

.sg-tick.is-active i,
.sg-tick:hover i {
    background: #fff;
}

@media (max-width: 48rem) {
    .sg-hero__nav {
        justify-content: center;
    }

    .sg-tick {
        width: 1.75rem;
    }
}

/* ------------------------------------------------------------ 8 Rubrikkacheln */

.sg-gateway {
    padding-block: clamp(3rem, 6vw, 5.5rem);
    background: var(--sg-paper);
}

.sg-tiles {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.sg-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-height: 19rem;
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: var(--sg-radius-lg);
    background: var(--sg-brand-900);
    color: #fff;
    overflow: clip;
    isolation: isolate;
    transition: translate 0.25s var(--sg-ease), box-shadow 0.25s var(--sg-ease);
}

/* Diagonaler Farbverlauf statt Foto -- so behauptet keine Kachel, ein
   bestimmtes Team abzubilden. */
.sg-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(145deg, var(--sg-brand) 0%, var(--sg-brand-700) 45%, var(--sg-brand-900) 100%);
    transition: scale 0.4s var(--sg-ease);
}

.sg-tile::after {
    content: "";
    position: absolute;
    right: -3rem;
    bottom: -4rem;
    z-index: -1;
    width: 15rem;
    height: 15rem;
    border: 2px solid rgb(255 255 255 / 10%);
    border-radius: 50%;
}

.sg-tile:has(a:hover),
.sg-tile:has(a:focus-visible) {
    translate: 0 -3px;
    box-shadow: var(--sg-shadow-lg);
}

.sg-tile:has(a:hover)::before {
    scale: 1.08;
}

.sg-tile__title {
    margin: 0;
    /* Gross und in gemischter Schreibung -- so passen auch lange Komposita
       wie "Maedchenfussball" in der schmalsten Kachel in eine Zeile. */
    font-size: clamp(1.2rem, 1rem + 0.65vw, 1.55rem);
    color: #fff;
    hyphens: auto;
    overflow-wrap: break-word;
}

.sg-tile__title a {
    color: #fff;
    text-decoration: none;
}

/* Die ganze Kachel ist anklickbar, der Text bleibt markierbar. */
.sg-tile__title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.sg-tile__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    position: relative;
    z-index: 2;
}

.sg-tile__links a {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: var(--sg-pill);
    color: rgb(255 255 255 / 88%);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.18s var(--sg-ease), border-color 0.18s var(--sg-ease);
}

.sg-tile__links a:hover {
    background: rgb(255 255 255 / 14%);
    border-color: rgb(255 255 255 / 45%);
    color: #fff;
}

.sg-tile .sg-pillbtn {
    margin-top: auto;
    align-self: flex-start;
}

.sg-tile:has(a:hover) .sg-pillbtn .sg-arrow {
    translate: 3px -0.05em;
}

.sg-tile.is-flat {
    background: var(--sg-mist);
    color: var(--sg-ink);
}

.sg-tile.is-flat::before,
.sg-tile.is-flat::after {
    display: none;
}

.sg-tile.is-flat .sg-tile__title {
    color: var(--sg-ink-50);
}

/* Gestapelt brauchen die Kacheln keine feste Mindesthoehe -- sonst entsteht
   auf dem Telefon viel Leerraum. */
@media (max-width: 47.99rem) {
    .sg-tile {
        min-height: 0;
    }
}

/* -------------------------------------------------- 9 Baender und Module */

.sg-band {
    padding-block: clamp(3rem, 6vw, 5.5rem);
}

.sg-band--mist {
    background: var(--sg-mist);
}

.sg-band--intro {
    background: var(--sg-mist);
    text-align: center;
}

.sg-band--intro .sg-module__title,
.sg-band--intro .newsflash-title {
    margin-bottom: 0.85rem;
    font-size: clamp(0.75rem, 0.72rem + 0.15vw, 0.875rem);
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sg-brand);
}

.sg-band--intro h3 {
    margin-bottom: 1.5rem;
    font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.25rem);
    text-transform: uppercase;
}

.sg-band--intro p {
    color: var(--sg-ink-70);
    font-size: clamp(1.02rem, 0.99rem + 0.2vw, 1.15rem);
}

.sg-band--intro p:last-child {
    margin-bottom: 0;
    font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
    font-weight: 700;
    color: var(--sg-ink);
}

.sg-pagehead {
    background: var(--sg-mist);
    border-bottom: 1px solid var(--sg-line);
    font-size: 0.8125rem;
}

.sg-pagehead ol,
.sg-pagehead ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.6rem;
    list-style: none;
    margin: 0;
    padding: 0.9rem 0;
}

.sg-pagehead li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--sg-ink-50);
    letter-spacing: 0.02em;
}

.sg-pagehead li + li::before {
    content: "";
    width: 5px;
    height: 5px;
    border-right: 1.5px solid var(--sg-ink-50);
    border-bottom: 1.5px solid var(--sg-ink-50);
    rotate: -45deg;
    opacity: 0.7;
}

.sg-pagehead a {
    color: var(--sg-ink-70);
    text-decoration: none;
}

.sg-pagehead a:hover {
    color: var(--sg-brand);
    text-decoration: underline;
}

.sg-pagehead .divider {
    display: none;
}

.sg-module + .sg-module {
    margin-top: 2rem;
}

.sg-module__title {
    font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
}

.sg-cards {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.sg-cards > .sg-module {
    margin: 0;
    padding: 1.75rem;
    background: var(--sg-paper);
    border-radius: var(--sg-radius-lg);
    box-shadow: var(--sg-shadow-sm);
}

.sg-aside .sg-module {
    padding: 0;
    margin: 0 0 1.5rem;
}

.sg-aside .sg-module img {
    display: block;
    width: 100%;
    border-radius: var(--sg-radius-lg);
}

.sg-aside .sg-module p {
    margin: 0;
}

.sg-aside .sg-module__title {
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sg-brand);
}

@media (min-width: 64rem) {
    .sg-aside--right {
        position: sticky;
        top: calc(var(--sg-pill-h) + 2rem);
    }
}

/* --------------------------------------------------------------- 10 Laufband */

.sg-teams {
    padding-block: clamp(3rem, 6vw, 5rem);
    background: var(--sg-brand-700);
    color: #fff;
    overflow: clip;
}

.sg-marquee {
    --sg-marquee-duration: 45s;

    display: flex;
    gap: 0;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.sg-marquee__track {
    display: flex;
    flex: 0 0 auto;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0 0.375rem;
    animation: sg-marquee var(--sg-marquee-duration) linear infinite;
}

.sg-marquee:hover .sg-marquee__track,
.sg-marquee:focus-within .sg-marquee__track {
    animation-play-state: paused;
}

@keyframes sg-marquee {
    to {
        translate: -100% 0;
    }
}

.sg-marquee__item {
    flex: 0 0 auto;
}

.sg-marquee__item a {
    display: block;
    min-width: 13rem;
    padding: 1.4rem 1.75rem;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: var(--sg-radius);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s var(--sg-ease), border-color 0.2s var(--sg-ease);
}

.sg-marquee__item a:hover {
    background: rgb(255 255 255 / 10%);
    border-color: rgb(255 255 255 / 45%);
    color: #fff;
}

.sg-marquee__section {
    display: block;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgb(255 255 255 / 60%);
    margin-bottom: 0.35rem;
}

.sg-marquee__name {
    display: block;
    font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ----------------------------------------------------------------- 11 Inhalt */

.sg-content {
    min-width: 0;
}

.sg-content > * {
    max-width: 72ch;
}

.sg-main--aside .sg-content > * {
    max-width: none;
}

.sg-content :where(h1, h2, h3, h4) {
    line-height: 1.15;
}

.sg-content h1 {
    font-size: var(--sg-h1-size);
    text-transform: uppercase;
}

.sg-content h2 {
    font-size: var(--sg-h2-size);
    text-transform: uppercase;
}

.sg-content h3 {
    font-size: var(--sg-h3-size);
}

.sg-content h4 {
    font-size: var(--sg-h4-size);
}

.sg-content h2:not(:first-child),
.sg-content h3:not(:first-child) {
    margin-top: 2em;
}

.sg-content h2::before {
    content: "";
    display: block;
    width: 3rem;
    height: 4px;
    margin-bottom: 0.9rem;
    border-radius: 4px;
    background: var(--sg-brand);
}

.sg-content ul,
.sg-content ol {
    padding-left: 1.35rem;
    margin: 0 0 1.4em;
}

.sg-content li {
    margin-bottom: 0.6em;
}

.sg-content ul {
    list-style: none;
    padding-left: 0;
}

.sg-content ul li {
    position: relative;
    padding-left: 1.75rem;
}

.sg-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--sg-brand);
}

.sg-content ul ul,
.sg-content ol ol {
    margin-top: 0.6em;
    margin-bottom: 0;
}

.sg-content img {
    border-radius: var(--sg-radius);
}

.sg-content figure {
    margin: 2rem 0;
}

.sg-content blockquote {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--sg-brand);
    border-radius: 0 var(--sg-radius) var(--sg-radius) 0;
    background: var(--sg-brand-050);
    font-size: 1.08em;
}

.sg-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Tabellen: auf schmalen Displays waagerecht scrollbar statt gequetscht */

.sg-table-wrap {
    overflow-x: auto;
    margin: 0 0 1.75em;
    border-radius: var(--sg-radius);
    background: var(--sg-paper);
    box-shadow: var(--sg-shadow-sm);
    -webkit-overflow-scrolling: touch;
}

.sg-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.975rem;
}

.sg-table-wrap > table {
    margin: 0;
    /* Inline-Breiten aus dem Editor sollen den Rahmen nicht halb leer lassen. */
    min-width: 100%;
}

.sg-content th,
.sg-content td {
    padding: 0.9rem 1.15rem;
    text-align: left;
    border-bottom: 1px solid var(--sg-line);
    vertical-align: top;
}

.sg-content thead th,
.sg-content tr:first-child th {
    background: var(--sg-brand-900);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    border-bottom: 0;
}

.sg-content tbody tr:last-child td {
    border-bottom: 0;
}

.sg-content tbody tr:hover {
    background: var(--sg-brand-050);
}

/* Joomla-Standardausgaben */

.sg-content .article-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    padding: 0;
    margin: 0 0 1.75rem;
    list-style: none;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sg-ink-50);
}

.sg-content .article-info dd {
    margin: 0;
}

.sg-content .items-leading > .item,
.sg-content .item-page {
    margin-bottom: 2.5rem;
}

.sg-content .blog-items {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    margin-top: 2rem;
}

.sg-content .blog-items > * {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: var(--sg-radius-lg);
    background: var(--sg-paper);
    box-shadow: var(--sg-shadow-sm);
}

.sg-content .readmore .btn,
.sg-content a.readmore,
.sg-content .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 0;
    border-radius: var(--sg-pill);
    background: var(--sg-brand);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s var(--sg-ease);
}

.sg-content .readmore .btn:hover,
.sg-content a.readmore:hover,
.sg-content .btn-primary:hover {
    background: var(--sg-brand-700);
    color: #fff;
}

.sg-content .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin: 2.5rem 0 0;
}

.sg-content .pagination a,
.sg-content .pagination span {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--sg-line);
    border-radius: var(--sg-pill);
    color: var(--sg-ink-70);
    text-decoration: none;
}

.sg-content .pagination .active span {
    background: var(--sg-brand);
    border-color: var(--sg-brand);
    color: #fff;
}

joomla-alert,
.alert {
    display: block;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: var(--sg-radius);
    background: var(--sg-mist);
}

/* ---------------------------------------------------------------- 12 Partner */

.sg-partners {
    padding-block: clamp(3rem, 6vw, 5.5rem);
    background: var(--sg-brand-900);
    color: #fff;
}

.sg-partners .mod-banners,
.sg-partners .bannergroup {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
}

.sg-partners .bannerheader,
.sg-partners .sg-module__title {
    flex-basis: 100%;
    margin: 0;
    font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.05;
    text-transform: uppercase;
    color: #fff;
}

/* Rahmenlose Logos direkt auf dem dunklen Band: msLogo hat weisse Schrift und
   liest sich darauf, Torwurst bringt seine eigene helle Flaeche mit. */
.sg-partners .banneritem,
.sg-partners .mod-banners__item {
    display: flex;
    flex: 0 1 auto;
    transition: transform 0.2s var(--sg-ease);
}

.sg-partners .banneritem > a,
.sg-partners .mod-banners__item > a {
    display: grid;
    place-items: center;
    padding: 0.5rem;
}

.sg-partners .banneritem:hover,
.sg-partners .mod-banners__item:hover,
.sg-partners .banneritem:focus-within,
.sg-partners .mod-banners__item:focus-within {
    transform: translateY(-3px);
}

.sg-partners .banneritem img,
.sg-partners .mod-banners__item img {
    max-width: 100%;
    max-height: clamp(6.5rem, 11vw, 10rem);
    width: auto;
    height: auto;
    border-radius: 6px;
    object-fit: contain;
    opacity: 0.92;
    transition: opacity 0.2s var(--sg-ease);
}

.sg-partners .banneritem:hover img,
.sg-partners .mod-banners__item:hover img,
.sg-partners a:focus-visible img {
    opacity: 1;
}

.sg-partners .bannerfooter {
    flex-basis: 100%;
    font-size: 0.85rem;
    color: rgb(255 255 255 / 60%);
}

@media (prefers-reduced-motion: reduce) {
    .sg-partners .banneritem,
    .sg-partners .mod-banners__item {
        transition: none;
    }

    .sg-partners .banneritem:hover,
    .sg-partners .mod-banners__item:hover,
    .sg-partners .banneritem:focus-within,
    .sg-partners .mod-banners__item:focus-within {
        transform: none;
    }
}

.sg-strip {
    padding-block: clamp(1.75rem, 3vw, 2.75rem);
    background: var(--sg-paper);
}

.sg-strip .mod-banners,
.sg-strip .bannergroup {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.sg-strip img {
    display: block;
    border-radius: var(--sg-radius);
}

/* -------------------------------------------------------------- 13 Fusszeile */

.sg-footer {
    background: var(--sg-brand-900);
    color: rgb(255 255 255 / 74%);
}

.sg-footer__grid {
    display: grid;
    gap: clamp(2rem, 4vw, 3.5rem);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    padding-block: clamp(3rem, 5vw, 4.5rem);
}

.sg-footer a {
    color: rgb(255 255 255 / 82%);
    text-decoration: none;
}

.sg-footer a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

.sg-footer__mark {
    height: 96px;
    width: auto;
    margin-bottom: 1rem;
}

.sg-footer__name {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
}

.sg-footer .sg-module__title,
.sg-footer__head {
    margin: 0 0 1.2rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgb(255 255 255 / 55%);
}

.sg-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sg-footer li + li {
    margin-top: 0.6rem;
}

.sg-footer p:last-child {
    margin-bottom: 0;
}

/* Kontaktliste: Artisteer-Platzhalter ausblenden, echte Symbole setzen */

.sg-footer .address .spacer_w,
.sg-mega .address .spacer_w,
.spacer_w {
    display: none;
}

.address li {
    position: relative;
    padding-left: 1.9rem;
    line-height: 1.5;
}

.address li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 1.15rem;
    height: 1.15rem;
    background-color: currentcolor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    opacity: 0.75;
}

.address .icon-home::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.address .icon-mail::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m2 7 10 6 10-6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m2 7 10 6 10-6'/%3E%3C/svg%3E");
}

/* Fusszeilen-Uebersicht */

.sg-sitemap {
    columns: 3 9rem;
    column-gap: 2rem;
}

.sg-sitemap__group {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

.sg-sitemap__head {
    margin: 0 0 0.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
}

.sg-sitemap__head a {
    color: #fff;
}

.sg-sitemap li + li {
    margin-top: 0.35rem;
}

.sg-sitemap li a {
    font-size: 0.875rem;
    color: rgb(255 255 255 / 62%);
}

.sg-footer__nav {
    grid-column: span 2;
}

@media (max-width: 47.99rem) {
    .sg-footer__nav {
        grid-column: auto;
    }
}

.sg-footer__bar {
    border-top: 1px solid var(--sg-line-dark);
}

.sg-footer__bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.75rem;
    padding-block: 1.25rem;
    font-size: 0.8125rem;
}

.sg-footer__copy {
    margin: 0;
    color: rgb(255 255 255 / 50%);
}

.sg-footer__legal ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.75rem;
}

.sg-footer__legal li + li {
    margin-top: 0;
}

.sg-totop {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--sg-line-dark);
    border-radius: var(--sg-pill);
    background: none;
    color: rgb(255 255 255 / 80%);
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s var(--sg-ease), color 0.2s var(--sg-ease);
}

.sg-totop:hover {
    background: rgb(255 255 255 / 10%);
    color: #fff;
}

.sg-totop:hover .sg-arrow {
    translate: 0 -3px;
}

/* ------------------------------------------------------------ 14 Hilfsmittel */

/* Fehlerseite: Inhalt mittig, damit die kurze Seite nicht oben klebt. */
.sg-site--error .sg-main {
    display: grid;
    align-content: center;
    min-height: 60vh;
}

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

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

    .sg-marquee__track {
        animation: none;
    }

    .sg-marquee {
        overflow-x: auto;
    }
}

@media print {
    .sg-service,
    .sg-head,
    .sg-mega,
    .sg-hero,
    .sg-gateway,
    .sg-teams,
    .sg-partners,
    .sg-strip,
    .sg-pagehead,
    .sg-totop {
        display: none !important;
    }

    .sg-footer {
        background: none;
        color: #000;
    }
}


/* === Team-Seiten Styles (automatisch eingefuegt) === */
/*
 * Styles für das Team-Seiten-Grundgerüst (Layout-Override team.php)
 * -------------------------------------------------------------------
 * Einbindung: entweder in die bestehende Template-CSS-Datei einfügen,
 * oder als eigene Datei "team.css" ablegen und im Template (z. B. in
 * templateDetails.xml unter <files>/<media> bzw. per <link> im
 * index.php) einbinden. Farben unten auf die Vereinsfarben anpassen.
 */

.sg-team-page {
    --sg-accent: #1b6e2c;      /* Vereinsfarbe anpassen */
    --sg-accent-light: #eaf4ec;
    --sg-border: #e0e0e0;
    --sg-text-muted: #6b6b6b;
}

.sg-team-page__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.sg-team-page__header h1 {
    margin-bottom: 0.75rem;
}

.sg-team-page__edit-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--sg-border);
    border-radius: 6px;
    color: var(--sg-accent);
    text-decoration: none;
    white-space: nowrap;
}

.sg-team-page__edit-link:hover,
.sg-team-page__edit-link:focus {
    background: var(--sg-accent-light);
    text-decoration: none;
}

.sg-team-page__intro {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.sg-team-page section + section {
    margin-top: 2.5rem;
}

.sg-team-page h2 {
    border-bottom: 2px solid var(--sg-accent);
    padding-bottom: 0.4rem;
    margin-bottom: 1.25rem;
    font-size: 1.3rem;
}

/* Trainerteam - Personenkarten: Foto oben (mit Akzent-Leiste und -Ecke),
   darunter Name mit Akzent-Balken links und Kontakt */
.sg-trainer-grid {
    --sg-trainer-indent: 1.35rem;
    /* Fallbacks, da die Karten auch außerhalb von .sg-team-page genutzt
       werden (z. B. Schiedsrichter-Seite) */
    --sg-trainer-accent: var(--sg-accent, #1b6e2c);
    --sg-trainer-muted: var(--sg-text-muted, #6b6b6b);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
    gap: 2.5rem clamp(1.25rem, 3vw, 3.5rem);
}

.sg-trainer-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sg-trainer-card__media {
    position: relative;
    overflow: hidden;
    border-bottom: 8px solid var(--sg-trainer-accent);
}

/* Akzent-Dreieck unten rechts auf dem Foto */
.sg-trainer-card__media::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 22%;
    aspect-ratio: 1;
    background: var(--sg-trainer-accent);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    pointer-events: none;
}

/* Doppelte Klasse, damit ".sg-content img" (Radius) überstimmt wird */
.sg-trainer-card__media .sg-trainer-card__foto {
    /* Originalfoto 290x360 -> Seitenverhältnis 4:5 */
    width: 100%;
    aspect-ratio: 4 / 5;
    max-width: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.sg-trainer-card__body {
    min-width: 0;
    padding: 1.5rem 0 0 var(--sg-trainer-indent);
}

.sg-trainer-card__name {
    margin-left: calc(-1 * var(--sg-trainer-indent));
    padding: 0.1rem 0 0.1rem calc(var(--sg-trainer-indent) - 4px);
    border-left: 4px solid var(--sg-trainer-accent);
    font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--sg-ink, #14171a);
}

.sg-trainer-card__mannschaft,
.sg-trainer-card__kontakt {
    margin-top: 1rem;
    color: var(--sg-trainer-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    word-break: break-word;
}

.sg-trainer-card__mannschaft {
    font-weight: 700;
}

.sg-trainer-card__mannschaft + .sg-trainer-card__kontakt {
    margin-top: 0.5rem;
}

/* Mehrere Kontaktzeilen untereinander (z. B. Schiedsrichter) */
.sg-trainer-card__kontakt + .sg-trainer-card__kontakt {
    margin-top: 0.15rem;
}

@media (max-width: 480px) {
    .sg-trainer-grid {
        --sg-trainer-indent: 1rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.75rem 1rem;
    }

    .sg-trainer-card__body {
        padding-top: 1rem;
    }
}

/* Trainingszeiten */
.sg-zeiten-table {
    width: 100%;
    border-collapse: collapse;
}

.sg-zeiten-table th,
.sg-zeiten-table td {
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--sg-border);
}

.sg-zeiten-table th {
    background: var(--sg-accent-light);
    font-weight: 600;
}

/* Spielplan-Widget-Bereich */
.sg-team-page__widget {
    background: #fafafa;
    border: 1px solid var(--sg-border);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto; /* falls Widget-Breite feststeht */
}

.sg-team-page__empty {
    color: var(--sg-text-muted);
    font-style: italic;
}
