/* =========================================================
   STADTBACHHEXEN MEMMINGEN
   Joomla 5 / Cassiopeia Child Template
   ========================================================= */


/* =========================================================
   GRUNDWERTE / DESIGN SYSTEM
   ========================================================= */

:root {

    --sbx-blue: #559ed1;
    --sbx-turquoise: #55aaa6;
    --sbx-green: #65ad6c;

    --sbx-white: #ffffff;

    --sbx-dark: #17384a;
    --sbx-text: #252525;
    --sbx-muted: #52636b;

    --sbx-content-bg: #f7f9f8;

    --sbx-border:
        rgba(23, 56, 74, 0.12);

    --sbx-shadow-small:
        0 8px 24px
        rgba(23, 56, 74, 0.07);

    --sbx-shadow:
        0 16px 40px
        rgba(23, 56, 74, 0.13);

    --sbx-gradient:
        linear-gradient(
            110deg,
            var(--sbx-blue) 0%,
            var(--sbx-turquoise) 52%,
            var(--sbx-green) 100%
        );

    --sbx-max-width: 1280px;
}


/* =========================================================
   BASIS
   ========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    background:
        var(--sbx-content-bg);
}

.site-grid {

    width: 100%;

    max-width:
        var(--sbx-max-width);

    margin-left: auto;
    margin-right: auto;

    padding-left: 24px;
    padding-right: 24px;
}

main {
    color:
        var(--sbx-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {

    font-weight: 700;
}


/* =========================================================
   HEADER
   ========================================================= */

.container-header {

    background:
        var(--sbx-gradient) !important;

    border: 0;

    box-shadow:
        0 5px 20px
        rgba(0, 0, 0, 0.18);
}

.container-header .grid-child {

    width: 100%;

    max-width:
        var(--sbx-max-width);

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   BRANDING
   ========================================================= */

.container-header .navbar-brand {

    display: flex;

    align-items: center;

    gap: 22px;

    padding-top: 20px;
    padding-bottom: 16px;
}

.container-header .navbar-brand img {

    display: block;

    width: 100px;
    height: 100px;

    object-fit: cover;

    border-radius: 50%;

    border:
        3px solid
        rgba(255, 255, 255, 0.85);

    box-shadow:
        0 4px 14px
        rgba(0, 0, 0, 0.22);
}

.container-header .site-description {

    margin: 0;

    color:
        var(--sbx-white);

    font-size:
        clamp(
            1.4rem,
            2.2vw,
            2rem
        );

    font-weight: 750;

    line-height: 1.15;

    letter-spacing:
        0.015em;

    text-shadow:
        0 2px 5px
        rgba(0, 0, 0, 0.22);
}

.container-header .navbar-brand a {

    color:
        var(--sbx-white);

    text-decoration: none;

    transition:
        opacity 0.2s ease;
}

.container-header .navbar-brand a:hover {

    color:
        var(--sbx-white);

    text-decoration: none;

    opacity: 0.92;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.container-header .container-nav {

    padding-top: 2px;
    padding-bottom: 16px;
}

.container-header .mod-menu {

    display: flex;

    align-items: center;

    gap: 30px;

    margin: 0;

    padding: 0;

    list-style: none;
}

.container-header .mod-menu > li {

    margin: 0;

    padding: 0;
}

.container-header .mod-menu > li > a {

    position: relative;

    display: inline-flex;

    align-items: center;

    padding: 8px 0;

    color:
        rgba(
            255,
            255,
            255,
            0.92
        ) !important;

    background:
        transparent !important;

    border: 0 !important;

    border-radius: 0 !important;

    box-shadow:
        none !important;

    text-decoration:
        none !important;

    font-size: 1rem;

    font-weight: 650;

    letter-spacing:
        0.015em;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.container-header
.mod-menu > li > a::after {

    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 3px;

    border-radius: 3px;

    background:
        var(--sbx-white);

    transform:
        scaleX(0);

    transform-origin:
        center;

    transition:
        transform 0.2s ease;
}

.container-header
.mod-menu > li > a:hover {

    color:
        var(--sbx-white) !important;
}

.container-header
.mod-menu > li > a:hover::after {

    transform:
        scaleX(1);
}

.container-header
.mod-menu > li.active > a,

.container-header
.mod-menu > li.current > a {

    color:
        var(--sbx-white) !important;
}

.container-header
.mod-menu > li.active > a::after,

.container-header
.mod-menu > li.current > a::after {

    transform:
        scaleX(1);
}


/* =========================================================
   ALLGEMEINE LINKS
   ========================================================= */

main a {

    color:
        #347f87;

    text-underline-offset:
        3px;
}

main a:hover {

    color:
        var(--sbx-dark);
}


/* =========================================================
   ALLGEMEINE KICKER
   ========================================================= */

.sbx-kicker,
.sbx-eyebrow {

    display: inline-block;

    margin: 0 0 14px;

    color:
        #347f87;

    font-size: 0.9rem;

    font-weight: 800;

    letter-spacing:
        0.11em;

    text-transform:
        uppercase;
}


/* =========================================================
   STARTSEITE
   ========================================================= */

.sbx-home {

    padding:
        38px 0 70px;
}

.sbx-home-hero {

    display: grid;

    grid-template-columns:
        minmax(280px, 420px)
        minmax(0, 1fr);

    gap: 64px;

    align-items: center;
}


/* =========================================================
   STARTSEITE - BILD
   ========================================================= */

.sbx-home-image {

    position: relative;

    overflow: hidden;

    border-radius: 24px;

    background:
        var(--sbx-white);

    box-shadow:
        0 18px 45px
        rgba(
            23,
            56,
            74,
            0.20
        );
}

.sbx-home-image img {

    display: block;

    width: 100%;
    height: auto;

    margin: 0;
}

.sbx-home-image::after {

    content: "";

    position: absolute;

    inset: 0;

    border-radius: 24px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.40
        );

    pointer-events: none;
}


/* =========================================================
   STARTSEITE - INTRO
   ========================================================= */

.sbx-home-intro {

    max-width: 720px;
}

.sbx-home-intro h1 {

    margin:
        0 0 22px;

    color:
        var(--sbx-dark);

    font-size:
        clamp(
            2.4rem,
            5vw,
            4.6rem
        );

    line-height: 0.98;

    letter-spacing:
        -0.035em;

    font-weight: 800;
}

.sbx-home-lead {

    max-width: 650px;

    margin:
        0 0 34px;

    color:
        #42545c;

    font-size:
        clamp(
            1.05rem,
            1.5vw,
            1.3rem
        );

    line-height: 1.65;
}


/* =========================================================
   STARTSEITE - VERBÄNDE
   ========================================================= */

.sbx-membership {

    margin-top: 32px;
}

.sbx-membership-title {

    margin-bottom: 14px;

    color:
        var(--sbx-dark);

    font-size: 0.9rem;

    font-weight: 750;

    letter-spacing:
        0.09em;

    text-transform:
        uppercase;
}

.sbx-associations {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 16px;
}

.sbx-association {

    display: flex;

    align-items: center;

    gap: 16px;

    min-height: 120px;

    padding: 18px;

    background:
        rgba(
            255,
            255,
            255,
            0.82
        );

    border:
        1px solid
        var(--sbx-border);

    border-radius: 16px;

    box-shadow:
        0 6px 20px
        rgba(
            23,
            56,
            74,
            0.07
        );

    color:
        var(--sbx-dark) !important;

    text-decoration:
        none !important;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.sbx-association:hover {

    transform:
        translateY(-3px);

    background:
        var(--sbx-white);

    box-shadow:
        0 12px 30px
        rgba(
            23,
            56,
            74,
            0.14
        );
}

.sbx-association img {

    width: 82px;
    height: 82px;

    flex: 0 0 82px;

    object-fit: contain;
}

.sbx-association span {

    color:
        var(--sbx-dark);

    font-size: 0.95rem;

    font-weight: 650;

    line-height: 1.35;
}


/* =========================================================
   HÄSER
   ========================================================= */

.sbx-haeser {

    padding:
        42px 0 90px;
}


/* =========================================================
   HÄSER - INTRO
   ========================================================= */

.sbx-haeser-intro {

    max-width: 850px;

    margin-bottom: 44px;
}

.sbx-haeser-intro h1 {

    margin:
        0 0 18px;

    color:
        var(--sbx-dark);

    font-size:
        clamp(
            2.6rem,
            5vw,
            4.8rem
        );

    line-height: 1;

    letter-spacing:
        -0.035em;

    font-weight: 800;
}

.sbx-haeser-lead {

    max-width: 760px;

    margin: 0;

    color:
        var(--sbx-muted);

    font-size:
        clamp(
            1.05rem,
            1.6vw,
            1.3rem
        );

    line-height: 1.65;
}


/* =========================================================
   HÄSER - FIGUREN-NAVIGATION
   ========================================================= */

.sbx-figure-nav {

    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 26px;

    margin-bottom: 90px;
}

.sbx-figure-nav-item {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 14px;

    padding:
        22px 14px 18px;

    color:
        var(--sbx-dark) !important;

    text-decoration:
        none !important;

    background:
        rgba(
            255,
            255,
            255,
            0.62
        );

    border:
        1px solid
        var(--sbx-border);

    border-radius: 24px;

    box-shadow:
        var(--sbx-shadow-small);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.sbx-figure-nav-item:hover {

    transform:
        translateY(-8px);

    background:
        var(--sbx-white);

    box-shadow:
        0 18px 38px
        rgba(
            23,
            56,
            74,
            0.16
        );
}

.sbx-figure-nav-image {

    position: relative;

    display: block;

    width: 180px;

    max-width: 100%;

    aspect-ratio: 1;

    border-radius: 50%;

    padding: 5px;

    background:
        var(--sbx-gradient);

    box-shadow:
        0 10px 28px
        rgba(
            23,
            56,
            74,
            0.14
        );
}

.sbx-figure-nav-image img {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;

    background:
        var(--sbx-white);
}

.sbx-figure-nav-title {

    color:
        var(--sbx-dark);

    font-size: 1.05rem;

    font-weight: 750;

    text-align: center;
}


/* =========================================================
   HÄSER - STORY
   ========================================================= */

.sbx-figure-story {

    scroll-margin-top: 40px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 64px;

    align-items: center;

    margin-bottom: 70px;

    padding: 42px;

    background:
        rgba(
            255,
            255,
            255,
            0.78
        );

    border:
        1px solid
        var(--sbx-border);

    border-radius: 30px;

    box-shadow:
        0 16px 50px
        rgba(
            23,
            56,
            74,
            0.09
        );
}


/* gespiegelt */

.sbx-figure-story-right
.sbx-figure-photo {

    order: 2;
}

.sbx-figure-story-right
.sbx-figure-content {

    order: 1;
}


/* =========================================================
   HÄSER - BILDER
   ========================================================= */

.sbx-figure-photo {

    position: relative;

    overflow: hidden;

    border-radius: 24px;

    background: #e9f0f1;

    box-shadow:
        0 16px 36px
        rgba(
            23,
            56,
            74,
            0.16
        );
}

.sbx-figure-photo > img {

    display: block;

    width: 100%;

    height: auto;

    object-fit: contain;

    object-position: center;

    transition:
        transform 0.5s ease;
}

.sbx-figure-story:hover
.sbx-figure-photo > img {

    transform:
        scale(1.015);
}


/* Nummern raus */

.sbx-figure-number {

    display: none !important;
}


/* =========================================================
   HÄSER - DOPPELBILD
   ========================================================= */

.sbx-figure-photo-double {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 4px;

    background:
        var(--sbx-dark);
}

.sbx-double-photo {

    position: relative;

    min-height: 100%;
}

.sbx-double-photo img {

    display: block;

    width: 100%;
    height: 100%;

    min-height: 420px;

    object-fit: cover;
}

.sbx-double-photo span {

    position: absolute;

    left: 16px;
    bottom: 16px;

    padding:
        7px 12px;

    color:
        var(--sbx-white);

    background:
        rgba(
            23,
            56,
            74,
            0.80
        );

    border-radius: 999px;

    font-size: 0.82rem;

    font-weight: 750;

    backdrop-filter:
        blur(5px);
}


/* =========================================================
   HÄSER - TEXT
   ========================================================= */

.sbx-figure-content {

    max-width: 600px;
}

.sbx-figure-label {

    margin-bottom: 12px;

    color:
        #347f87;

    font-size: 0.84rem;

    font-weight: 800;

    letter-spacing:
        0.11em;

    text-transform:
        uppercase;
}

.sbx-figure-content h2 {

    margin:
        0 0 16px;

    color:
        var(--sbx-dark);

    font-size:
        clamp(
            2rem,
            3.6vw,
            3.3rem
        );

    line-height: 1.05;

    letter-spacing:
        -0.025em;

    font-weight: 800;
}

.sbx-figure-line {

    width: 90px;

    height: 5px;

    margin-bottom: 26px;

    border-radius: 999px;

    background:
        var(--sbx-gradient);
}

.sbx-figure-content p {

    margin:
        0 0 16px;

    color:
        #42545c;

    font-size: 1.04rem;

    line-height: 1.72;
}

.sbx-figure-content p:last-child {

    margin-bottom: 0;
}


/* =========================================================
   ZUNFTRAT
   ========================================================= */

.sbx-zunftrat {

    padding:
        42px 0 90px;
}


/* =========================================================
   ZUNFTRAT - INTRO
   ========================================================= */

.sbx-page-intro {

    max-width: 850px;

    margin-bottom: 48px;
}

.sbx-page-intro h1 {

    margin:
        0 0 18px;

    color:
        var(--sbx-dark);

    font-size:
        clamp(
            2.6rem,
            5vw,
            4.8rem
        );

    line-height: 1;

    letter-spacing:
        -0.035em;

    font-weight: 800;
}

.sbx-team-lead {

    max-width: 760px;

    margin: 0;

    color:
        var(--sbx-muted);

    font-size:
        clamp(
            1.05rem,
            1.6vw,
            1.3rem
        );

    line-height: 1.65;
}


/* =========================================================
   ZUNFTRAT - DOPPELTE GESAMTÜBERSICHT AUSBLENDEN
   ========================================================= */

/*
   Die blog.php liefert zusätzlich oben noch einmal
   alle Personen komplett.

   Für unser Design brauchen wir das nicht,
   weil wir die Personen sauber nach Gruppen zeigen.
*/

.sbx-zunftrat-overview {

    display: none;
}


/* =========================================================
   ZUNFTRAT - GRUPPEN
   ========================================================= */

.sbx-team-group {

    margin-bottom: 72px;
}

.sbx-team-group-header {

    margin-bottom: 26px;
}

.sbx-team-group-kicker {

    margin-bottom: 8px;

    color:
        #347f87;

    font-size: 0.84rem;

    font-weight: 800;

    letter-spacing:
        0.11em;

    text-transform:
        uppercase;
}

.sbx-team-group-header h2 {

    margin:
        0 0 12px;

    color:
        var(--sbx-dark);

    font-size:
        clamp(
            2rem,
            3vw,
            3rem
        );

    font-weight: 800;

    line-height: 1.05;
}

.sbx-team-line {

    width: 90px;

    height: 5px;

    border-radius: 999px;

    background:
        var(--sbx-gradient);
}


/* =========================================================
   ZUNFTRAT - KARTEN-GRID
   ========================================================= */

.sbx-team-stack {

    display: grid;

    gap: 26px;
}


/* Leitung */

.sbx-team-group-leitung
.sbx-team-stack {

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    max-width: 860px;
}


/* Vorstand */

.sbx-team-group-vorstand
.sbx-team-stack {

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    max-width: 860px;
}


/* Beisitzer */

.sbx-team-group-beisitzer
.sbx-team-stack {

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
}


/* Hexenmeister */

.sbx-team-group-hexenmeister
.sbx-team-stack {

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
}


/* =========================================================
   ZUNFTRAT - PERSONENKARTEN
   analog zu Häser
   ========================================================= */

.sbx-member-card {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: flex-start;

    gap: 0;

    padding:
        24px 18px 22px;

    background:
        rgba(
            255,
            255,
            255,
            0.68
        );

    border:
        1px solid
        var(--sbx-border);

    border-radius: 24px;

    box-shadow:
        var(--sbx-shadow-small);

    scroll-margin-top: 120px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.sbx-member-card:hover {

    transform:
        translateY(-7px);

    background:
        var(--sbx-white);

    box-shadow:
        0 18px 38px
        rgba(
            23,
            56,
            74,
            0.16
        );
}


/* rechte Karten nicht mehr spiegeln */

.sbx-member-card--right
.sbx-member-media,

.sbx-member-card--right
.sbx-member-content {

    order: initial;
}


/* =========================================================
   ZUNFTRAT - RUNDES BILD
   ========================================================= */

.sbx-member-media {

    width: 100%;

    display: flex;

    justify-content: center;

    margin-bottom: 18px;
}

.sbx-member-imagewrap {

    width: 180px;

    height: 180px;

    flex: 0 0 180px;

    padding: 5px;

    border-radius: 50%;

    background:
        var(--sbx-gradient);

    box-shadow:
        0 10px 28px
        rgba(
            23,
            56,
            74,
            0.14
        );

    overflow: hidden;
}

.sbx-member-imagewrap img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center;

    border-radius: 50%;

    background:
        #e7eef2;
}


/* Leitung etwas größer */

.sbx-team-group-leitung
.sbx-member-imagewrap {

    width: 210px;

    height: 210px;

    flex-basis: 210px;
}


/* =========================================================
   ZUNFTRAT - TEXT
   ========================================================= */

.sbx-member-content {

    width: 100%;

    text-align: center;
}

.sbx-member-kicker {

    margin:
        0 0 7px;

    color:
        #347f87;

    font-size: 0.82rem;

    font-weight: 800;

    letter-spacing:
        0.07em;

    text-transform:
        uppercase;
}

.sbx-member-content h3 {

    margin: 0;

    color:
        var(--sbx-dark);

    font-size:
        1.45rem;

    line-height: 1.15;

    font-weight: 800;
}


/* Leitung Namen etwas größer */

.sbx-team-group-leitung
.sbx-member-content h3 {

    font-size: 1.65rem;
}


/* Linie aus Detail-Layout brauchen wir nicht */

.sbx-member-line {

    display: none;
}


/* Aktuell keine langen Personen-Bios */

.sbx-member-text {

    display: none;
}


/* =========================================================
   BACK TO TOP
   ========================================================= */

.back-to-top-link {

    position:
        fixed !important;

    right:
        28px !important;

    bottom:
        28px !important;

    z-index: 999;

    display: flex !important;

    align-items: center;

    justify-content: center;

    width: 54px;
    height: 54px;

    padding: 0 !important;

    color:
        var(--sbx-white) !important;

    background:
        var(--sbx-gradient) !important;

    border:
        2px solid
        rgba(
            255,
            255,
            255,
            0.85
        ) !important;

    border-radius:
        50% !important;

    box-shadow:
        0 8px 24px
        rgba(
            23,
            56,
            74,
            0.28
        ) !important;

    text-decoration:
        none !important;

    opacity: 0 !important;

    visibility: hidden;

    pointer-events: none;

    transform:
        translateY(12px);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.2s ease !important;
}


/* Joomla blendet ein */

.back-to-top-link.visible {

    opacity:
        0.96 !important;

    visibility:
        visible;

    pointer-events:
        auto;

    transform:
        translateY(0);
}

.back-to-top-link.visible:hover,
.back-to-top-link.visible:focus {

    color:
        var(--sbx-white) !important;

    transform:
        translateY(-4px);

    box-shadow:
        0 14px 32px
        rgba(
            23,
            56,
            74,
            0.38
        ) !important;

    opacity:
        1 !important;
}

.back-to-top-link svg {

    color:
        var(--sbx-white) !important;

    fill:
        currentColor;
}


/* =========================================================
   TABLET
   ========================================================= */

@media
(max-width: 1000px) {


    /* Start */

    .sbx-home-hero {

        grid-template-columns:
            minmax(250px, 350px)
            minmax(0, 1fr);

        gap: 40px;
    }

    .sbx-associations {

        grid-template-columns:
            1fr;
    }


    /* Häser */

    .sbx-figure-nav {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .sbx-figure-story {

        gap: 38px;

        padding: 32px;
    }

    .sbx-double-photo img {

        min-height: 360px;
    }


    /* Zunftrat */

    .sbx-team-group-beisitzer
    .sbx-team-stack,

    .sbx-team-group-hexenmeister
    .sbx-team-stack {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media
(max-width: 768px) {


    /* Header */

    .container-header
    .navbar-brand {

        gap: 14px;

        padding-top: 14px;

        padding-bottom: 12px;
    }

    .container-header
    .navbar-brand img {

        width: 76px;

        height: 76px;

        border-width: 2px;
    }

    .container-header
    .site-description {

        font-size: 1.2rem;
    }

    .container-header
    .container-nav {

        padding-bottom: 12px;
    }

    .container-header
    .mod-menu {

        gap: 18px;
    }

    .container-header
    .mod-menu > li > a {

        font-size: 0.95rem;

        padding: 7px 0;
    }


    /* Start */

    .sbx-home {

        padding-top: 24px;
    }

    .sbx-home-hero {

        grid-template-columns:
            1fr;

        gap: 34px;
    }

    .sbx-home-image {

        width: 100%;

        max-width: 420px;

        margin-left: auto;

        margin-right: auto;
    }

    .sbx-home-intro {

        max-width: none;
    }

    .sbx-home-intro h1 {

        font-size:
            clamp(
                2.2rem,
                10vw,
                3.4rem
            );
    }


    /* Häser */

    .sbx-haeser {

        padding-top: 28px;
    }

    .sbx-haeser-intro {

        margin-bottom: 30px;
    }

    .sbx-figure-nav {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 14px;

        margin-bottom: 55px;
    }

    .sbx-figure-nav-item {

        padding:
            16px 10px;
    }

    .sbx-figure-nav-image {

        width: 140px;
    }

    .sbx-figure-story {

        grid-template-columns:
            1fr;

        gap: 30px;

        margin-bottom: 40px;

        padding: 22px;

        border-radius: 24px;
    }

    .sbx-figure-story-right
    .sbx-figure-photo,

    .sbx-figure-story-right
    .sbx-figure-content {

        order: initial;
    }

    .sbx-figure-content {

        max-width: none;
    }

    .sbx-double-photo img {

        min-height: 300px;
    }


    /* Zunftrat */

    .sbx-zunftrat {

        padding-top: 28px;
    }

    .sbx-page-intro {

        margin-bottom: 36px;
    }

    .sbx-team-group {

        margin-bottom: 50px;
    }

    .sbx-team-group-leitung
    .sbx-team-stack,

    .sbx-team-group-vorstand
    .sbx-team-stack,

    .sbx-team-group-beisitzer
    .sbx-team-stack,

    .sbx-team-group-hexenmeister
    .sbx-team-stack {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        max-width: none;
    }

    .sbx-member-imagewrap {

        width: 145px;

        height: 145px;

        flex-basis: 145px;
    }

    .sbx-team-group-leitung
    .sbx-member-imagewrap {

        width: 160px;

        height: 160px;

        flex-basis: 160px;
    }

    .sbx-member-content h3 {

        font-size: 1.25rem;
    }


    /* Back to top */

    .back-to-top-link {

        right:
            18px !important;

        bottom:
            18px !important;

        width: 48px;

        height: 48px;
    }
}


/* =========================================================
   SEHR KLEINE DISPLAYS
   ========================================================= */

@media
(max-width: 480px) {


    .site-grid {

        padding-left: 16px;

        padding-right: 16px;
    }


    /* Header */

    .container-header
    .navbar-brand {

        gap: 11px;
    }

    .container-header
    .navbar-brand img {

        width: 64px;

        height: 64px;
    }

    .container-header
    .site-description {

        font-size: 1rem;

        line-height: 1.2;
    }

    .container-header
    .mod-menu {

        gap: 14px;
    }

    .container-header
    .mod-menu > li > a {

        font-size: 0.9rem;
    }


    /* Start */

    .sbx-home {

        padding-top: 18px;
    }

    .sbx-home-intro h1 {

        font-size: 2.35rem;
    }

    .sbx-association {

        min-height: 100px;

        padding: 14px;
    }

    .sbx-association img {

        width: 68px;

        height: 68px;

        flex-basis: 68px;
    }


    /* Häser */

    .sbx-figure-nav {

        gap: 10px;
    }

    .sbx-figure-nav-image {

        width: 115px;
    }

    .sbx-figure-nav-title {

        font-size: 0.95rem;
    }

    .sbx-figure-story {

        padding: 16px;
    }

    .sbx-figure-photo {

        border-radius: 18px;
    }

    .sbx-figure-photo-double {

        grid-template-columns:
            1fr;
    }

    .sbx-double-photo img {

        min-height: auto;

        aspect-ratio: 1;

        object-fit: cover;
    }

    .sbx-figure-content h2 {

        font-size: 2rem;
    }


    /* Zunftrat */

    .sbx-team-group-leitung
    .sbx-team-stack,

    .sbx-team-group-vorstand
    .sbx-team-stack,

    .sbx-team-group-beisitzer
    .sbx-team-stack,

    .sbx-team-group-hexenmeister
    .sbx-team-stack {

        grid-template-columns:
            1fr;
    }

    .sbx-member-card {

        padding:
            20px 14px 18px;
    }

    .sbx-member-imagewrap,
    .sbx-team-group-leitung
    .sbx-member-imagewrap {

        width: 155px;

        height: 155px;

        flex-basis: 155px;
    }

    .sbx-member-content h3 {

        font-size: 1.35rem;
    }


    /* Back to top */

    .back-to-top-link {

        right:
            14px !important;

        bottom:
            14px !important;

        width: 46px;

        height: 46px;
    }
}