/* ==========================================================================
   1. GLOBAL RESET & BASICS
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #12161a;
    background-color: #f8fafc;
    overflow-x: hidden;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #B21B21;
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    color: #8c151a;
}


/* ==========================================================================
   2. BARRIEREFREIHEIT / SYSTEM
   ========================================================================== */

.visually-hidden-focusable {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.visually-hidden-focusable:focus {
    position: absolute;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    margin: 0;
    padding: 10px 15px;
    overflow: visible;
    clip: auto;
    background-color: #ffffff;
    color: #12161a;
    z-index: 9999;
}

.system-messages {
    margin: 20px auto;
}


/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition:
        background-color 0.3s ease,
        box-shadow 0.3s ease;
}

.nav-wrapper {
    padding: 7px 0;
}

.main-nav-container {
    min-height: 61px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.site-logo {
    flex-shrink: 0;
}

.site-logo img {
    height: 60px;
    width: auto;
}

.nav-checkbox {
    display: none;
}


/* ==========================================================================
   4. MOBILE MENU
   ========================================================================== */

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 110;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #B21B21;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        max-height 0.3s ease-in-out,
        opacity 0.3s ease-in-out;
    z-index: 99;
}

.main-navigation ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 15px 20px;
}

.main-navigation li {
    margin: 0;
    padding: 0;
}

.main-navigation li::before {
    display: none;
}

.main-navigation li a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #12161a;
    font-size: 1.1rem;
    font-weight: 600;
}

.main-navigation li:last-child a {
    border-bottom: none;
}

.main-navigation li a:hover,
.main-navigation li.active > a,
.main-navigation li.current > a {
    color: #B21B21;
}

.nav-checkbox:checked ~ .main-navigation {
    max-height: 500px;
    opacity: 1;
}

.nav-checkbox:checked ~ .menu-toggle span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-checkbox:checked ~ .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.nav-checkbox:checked ~ .menu-toggle span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* ==========================================================================
   5. HERO / BÜHNE
   ========================================================================== */

.hero-section {
    position: relative;
    min-height: 400px;
    padding: 40px 0 80px;
    background-color: #12161a;
    overflow: hidden;
}

.hero-section .mod-custom,
.hero-section .mod-custom > div {
    width: 100%;
    height: 100%;
}

.hero-section img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 700px;
    color: #ffffff;
}

.hero-content h1 {
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.15;
}

.hero-content p {
    margin-bottom: 30px;
    color: #ffffff;
    font-size: 1.1rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-primary,
.btn-outline {
    width: 100%;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: all 0.25s ease;
}

.btn-primary {
    background-color: #B21B21;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #8c151a;
    color: #ffffff;
}

.btn-outline {
    border: 2px solid #ffffff;
    color: #ffffff;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: #12161a;
}


/* ==========================================================================
   6. SPORTANGEBOT / KACHELN
   ========================================================================== */

.section-sportangebot {
    position: relative;
    z-index: 10;
    margin-top: -60px;
    padding-bottom: 50px;
}

/*
   Ohne Hero darf der Kachelbereich nicht nach oben gezogen werden.
   Die Modifier-Klasse wird bereits in der index.php gesetzt.
*/
.section-sportangebot--no-hero {
    margin-top: 0;
}

/*
   Flexible Kachel-Anordnung:
   - Kacheln sind immer zentriert
   - Anzahl ist egal
   - Auf Startseite und Unterseiten identisch nutzbar
*/

.sports-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.sport-card {
    display: flex;
    flex: 0 1 calc((100% - 10px) / 2);
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.sport-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-image-wrapper {
    height: 120px;
    padding: 15px 10px 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
}

.card-image-wrapper img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80px;
    margin: 0 auto;
    object-fit: contain;
}

.card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 12px;
    text-align: center;
}

.card-content h3 {
    margin-bottom: 6px;
    color: #12161a;
    font-size: 1.05rem;
    font-weight: 700;
}

.card-content p {
    flex-grow: 1;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.3;
}

.card-link {
    color: #B21B21;
    font-size: 0.85rem;
    font-weight: 600;
}


/* ==========================================================================
   7. HAUPTINHALT / JOOMLA BEITRÄGE
   ========================================================================== */

.section-main-component {
    padding: 40px 0;
    background-color: #ffffff;
}

body.is-home .component-container,
body.is-subpage .component-container {
    width: 100%;
}

.component-container h1,
.component-container h2 {
    position: relative;
    color: #12161a;
    font-weight: 800;
}

.component-container h1 {
    margin-bottom: 25px;
    padding-bottom: 12px;
    font-size: 2rem;
    line-height: 1.2;
}

.component-container h2 {
    margin: 30px 0 20px;
    padding-bottom: 10px;
    font-size: 1.5rem;
}

.component-container h1::after,
.component-container h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 150px;
    height: 3px;
    background-color: #B21B21;
}

.component-container p {
    margin-bottom: 15px;
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
}

.component-container p:first-of-type {
    color: #12161a;
    font-size: 1.1rem;
    font-weight: 500;
}

.component-container ul {
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.component-container li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 25px;
    color: #12161a;
    font-size: 1rem;
}

.component-container li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #B21B21;
    font-weight: 900;
}


/* ==========================================================================
   8. WILLKOMMENSBEREICH
   ========================================================================== */

.welcome-badge {
    display: inline-block;
    margin-bottom: 15px;
    padding: 6px 14px;
    background-color: #fbebeb;
    border-radius: 50px;
    color: #B21B21;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.welcome-stats-card {
    margin-top: 30px;
    padding: 30px 20px;
    background-color: #12161a;
    border-radius: 6px;
    color: #ffffff;
}

.stats-card-title {
    margin-bottom: 25px;
    color: #ffffff;
    font-size: 1.3rem;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: center;
}

.stat-item .stat-num {
    display: block;
    margin-bottom: 5px;
    color: #B21B21;
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1;
}

.stat-item .stat-desc {
    color: #94a3b8;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}


/* ==========================================================================
   9. TERMINE
   ========================================================================== */

.section-split {
    padding: 40px 0;
    background-color: #f1f5f9;
}

.grid-split {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.split-col-left,
.split-col-right {
    min-width: 0;
}

body.is-subpage .section-split {
    display: none !important;
}


/* ==========================================================================
   10. JEVENTS – TERMINVORSCHAU
   ========================================================================== */

.bcr-termine {
    width: 100%;
    font-size: 0;
}

.bcr-termine > h3 {
    margin-bottom: 24px;
    color: #12161a;
    font-size: 1.6rem;
    font-weight: 800;
}

.bcr-termine .mod_events_latest_callink {
    display: none;
}

.bcr-termine .mod_events_latest_table {
    display: contents !important;
}

.bcr-termine .jeviso_item {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-size: 16px;
}

.bcr-termine .jfloat-event {
    position: relative;
    height: 100%;
    min-height: 150px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.bcr-termine .jfloat-event:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
}

.bcr-termine .jeviso_item_image {
    display: none !important;
}

.bcr-termine .jeviso_eventsummary {
    display: grid !important;
    grid-template-columns: 80px minmax(0, 1fr);
    align-items: stretch;
    height: 100%;
    min-height: 150px;
    cursor: pointer;
}

.bcr-termine .jeviso_eventsummary > div:first-child {
    display: block;
    width: 80px;
}

.bcr-termine .startdate {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 100%;
    padding: 18px 8px !important;
    background: #354a9a !important;
    color: #ffffff !important;
    text-align: center;
}

.bcr-termine .startdate [uk-icon] {
    display: none;
}

.bcr-termine .startmonth {
    margin-bottom: 3px;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.bcr-termine .startday {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.bcr-termine .eventtitle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    margin: 0 !important;
    padding: 18px 20px !important;
    color: #12161a;
    font-size: 1.1rem !important;
    font-weight: 800;
    line-height: 1.3;
    white-space: normal !important;
    overflow: visible !important;
}

.bcr-termine .eventcategory {
    display: block;
    margin-top: 7px;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
}

.bcr-termine .jeviso-modal {
    display: none;
}

.bcr-termine .ev_link_row {
    color: #12161a;
    text-decoration: none;
}

.bcr-termine .ev_link_row:hover {
    color: #354a9a;
}


/* ==========================================================================
   11. SPONSOREN / LOGO-LAUFBAND
   ========================================================================== */

.section-sponsoren {
    padding: 45px 0;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    overflow: hidden;
}

.section-sponsoren .container{
    max-width:100%;
}

.bcr-sponsoren {
    width: 100%;
    overflow: hidden;
}

.bcr-sponsoren > h3 {
    position: relative;
    margin: 0 auto 30px;
    padding-bottom: 10px;
    color: #12161a;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
    max-width: 1140px;
}

.bcr-sponsoren > h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 3px;
    background-color: #B21B21;
}

.bcr-sponsoren .mod-custom {
    width: 100%;
    overflow: hidden;
}

.sponsor-track {
    display: flex;
    align-items: center;
    gap: 50px;
    width: max-content;
    animation: sponsor-scroll 25s linear infinite;
}

.sponsor-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 180px;
    height: 100px;
    padding: 12px;
    background-color: #ffffff;
    border-radius: 6px;
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.sponsor-logo img {
    display: block;
    max-width: 150%;
    max-height: 114px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.sponsor-logo:hover {
    transform: scale(1.04);
}

.sponsor-track:hover {
    animation-play-state: paused;
}

@keyframes sponsor-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


/* ==========================================================================
   12. FOOTER
   ========================================================================== */

.site-footer h3,
.site-footer .module-title {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.site-footer {
    padding: 40px 0 20px;
    background-color: #12161a;
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-top {
    padding-bottom: 30px;
    border-bottom: 1px solid #272e35;
}

.grid-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

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

.split-footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.site-footer a {
    color: #cbd5e1;
}

.site-footer a:hover {
    color: #ffffff;
}

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

.site-footer li {
    margin-bottom: 8px;
}


/* ==========================================================================
   13. AKTUELLES / LETZTE 4 BEITRÄGE
   ========================================================================== */

.section-aktuelles {
    padding: 50px 0 60px;
    background-color: #ffffff;
}

.section-aktuelles .section-title {
    position: relative;
    margin: 0 0 30px;
    padding-bottom: 10px;
    color: #12161a;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
}

.section-aktuelles .section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 3px;
    background-color: #B21B21;
}

.bcr-aktuelles {
    width: 100%;
}

.bcr-aktuelles .mod-articles-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bcr-aktuelles .mod-articles-items > li {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bcr-aktuelles .mod-articles-item {
    display: flex;
    align-items: stretch;
    height: 100%;
    min-height: 120px;
    overflow: hidden;
    background-color: #354a9a;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 5px 18px rgba(25, 43, 107, 0.18);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.bcr-aktuelles .mod-articles-item:hover {
    transform: translateY(-4px);
    background-color: #293d88;
    box-shadow: 0 10px 28px rgba(25, 43, 107, 0.28);
}

.bcr-aktuelles .mod-articles-item-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    padding: 18px;
    text-align: center;
}

.bcr-aktuelles .mod-articles-item img {
    display: none;
}

.bcr-aktuelles .mod-articles-title {
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
}

.bcr-aktuelles .mod-articles-title a {
    color: #ffffff;
    text-decoration: none;
}

.bcr-aktuelles .mod-articles-title a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.bcr-aktuelles .mod-articles-item-content p {
    margin: 0 0 15px;
    padding: 0;
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.5;
}

.bcr-aktuelles .readmore {
    margin-top: 10px;
    padding-top: 0;
}

.bcr-aktuelles .readmore a {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.bcr-aktuelles .readmore a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Aktuelles: einheitliche Vereinsblau-Kacheln mit zentriertem Inhalt.
   Diese Regeln gelten bewusst auch innerhalb der Desktop-Breakpoints. */
.bcr-aktuelles .mod-articles-item {
    display: flex;
    align-items: stretch;
    min-height: 120px;
    background-color: #354a9a;
}

.bcr-aktuelles .mod-articles-item-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bcr-aktuelles .mod-articles-item-content,
.bcr-aktuelles .mod-articles-item-content * {
    color: #ffffff;
}


/* ==========================================================================
   14. MAGAZIN & SHOP
   ========================================================================== */

.section-magazin-shop {
    padding: 50px 0 60px;
    background-color: #283D88;
}

.magazin-shop-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.magazin-shop-card {
    min-width: 0;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.magazin-shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
}

.magazin-shop-card .moduletable,
.magazin-shop-card .mod-custom {
    height: 100%;
}

.magazin-shop-card h3 {
    position: relative;
    margin: 0 0 20px;
    padding: 24px 24px 12px;
    color: #12161a;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.magazin-shop-card h3::after {
    content: "";
    position: absolute;
    left: 24px;
    bottom: 0;
    width: 70px;
    height: 3px;
    background-color: #B21B21;
}

.magazin-shop-card p {
    margin: 0;
    padding: 0 24px 18px;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.55;
}

.magazin-shop-card img {
    display: block;
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

.magazin-shop-card a {
    color: #B21B21;
    font-weight: 700;
}

.magazin-shop-card a:hover {
    color: #8c151a;
}

.magazin-shop-card .btn-primary {
    display: inline-block;
    width: auto;
    margin: 0 24px 24px;
}


/* ==========================================================================
   15. FUSSBALL – MANNSCHAFTS-KACHELN
   ========================================================================== */

.team-grid {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100% !important;
    max-width: none !important;
    margin: 40px 0 20px;
}

.team-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-width: 0;
    min-height: 90px;
    padding: 18px 14px;
    position: relative;
    overflow: hidden;
    background-color: #0044bb;
    color: #ffffff !important;
    border: 1px solid #0044bb;
    border-radius: 8px;
    box-shadow: 0 5px 16px rgba(0, 68, 187, 0.18);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

.team-card span {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    color: #ffffff;
    text-align: center;
}

.team-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.14),
        rgba(255, 255, 255, 0)
    );
    opacity: 0;
    transition: opacity 0.25s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    background-color: #00358f;
    color: #ffffff !important;
    box-shadow: 0 12px 28px rgba(0, 68, 187, 0.30);
}

.team-card:hover::after {
    opacity: 1;
}

.team-card:hover span {
    color: #ffffff;
}


/* ==========================================================================
   16. MOBILE
   ========================================================================== */

@media (max-width: 767px) {

    .bcr-termine {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bcr-termine > h3 {
        grid-column: 1;
    }

    .section-sponsoren {
        padding: 35px 0;
    }

    .sponsor-track {
        gap: 30px;
        animation-duration: 20s;
    }

    .sponsor-logo {
        width: 140px;
        height: 85px;
    }

    .sponsor-logo img {
        max-height: 62px;
    }

}


/* ==========================================================================
   17. AB 600 PX
   ========================================================================== */

@media (min-width: 600px) {

    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

}


/* ==========================================================================
   18. TABLET – AB 768 PX
   ========================================================================== */

@media (min-width: 768px) {

    .hero-section {
        height: 60vh;
        min-height: 450px;
        padding: 0;
    }

    .hero-section .container {
        height: 100%;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    /*
       Sportkacheln:
       feste Kartenbreite + Zentrierung.
       So stehen auch 2 oder 3 Kacheln mittig.
    */
    .sports-grid {
        gap: 20px;
    }

    .sport-card {
        flex-basis: calc((100% - 40px) / 3);
    }

    .grid-split {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .grid-footer {
        grid-template-columns: repeat(2, 1fr);
    }

    .split-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .grid-split .split-col-left:only-child {
        grid-column: 1 / -1;
    }

    .bcr-termine {
        display: block !important;
        width: 100%;
    }

    .bcr-termine > h3 {
        display: block;
        width: 100%;
        margin: 0 0 28px 0;
        font-size: 1.6rem;
    }

    .bcr-termine .mod_events_latest_table {
        display: block !important;
        width: 100% !important;
        border: 0 !important;
        background: transparent !important;
    }

    .bcr-termine .jeviso_item {
        display: block !important;
        float: left;
        width: calc((100% - 48px) / 3) !important;
        margin: 0 24px 0 0 !important;
        padding: 0 !important;
        font-size: 16px;
    }

    .bcr-termine .jeviso_item:nth-of-type(3n) {
        margin-right: 0 !important;
    }

    .bcr-termine .jfloat-event {
        width: 100%;
        height: 150px;
        min-height: 150px;
    }

    .bcr-termine .jeviso_eventsummary {
        height: 150px;
        min-height: 150px;
    }

    .bcr-termine::after {
        content: "";
        display: table;
        clear: both;
    }

    .bcr-aktuelles .mod-articles-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .magazin-shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    .magazin-shop-card {
        height: 100%;
    }

}


/* ==========================================================================
   19. DESKTOP – AB 992 PX
   ========================================================================== */

@media (min-width: 992px) {

    .site-logo img {
        height: 80px;
    }

    .main-nav-container {
        min-height: 80px;
    }

    .menu-toggle {
        display: none;
    }

    .main-navigation {
        position: static;
        width: auto;
        max-height: none;
        overflow: visible;
        opacity: 1;
        background: transparent;
        box-shadow: none;
    }

    .main-navigation ul {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 30px;
        padding: 0;
    }

    .main-navigation li a {
        padding: 8px 0;
        border-bottom: none;
    }

    .main-nav-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: row;
    }

    .btn-primary,
    .btn-outline {
        width: auto;
    }

    /*
       Unterseiten:
       2 Karten stehen mittig,
       3 Karten stehen mittig,
       4 Karten stehen mittig,
       5 Karten stehen mittig.
    */
    .sports-grid {
        gap: 20px;
    }

    .sport-card {
        /* Fünf Kacheln pro Zeile; unvollständige Reihen bleiben mittig. */
        flex-basis: calc((100% - 80px) / 5);
        max-width: 220px;
    }

    body.is-home .welcome-grid {
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        gap: 60px;
        align-items: start;
        margin-top: 40px;
    }

    .welcome-stats-card {
        margin-top: 0;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-footer {
        grid-template-columns: repeat(4, 1fr);
    }

    .bcr-aktuelles .mod-articles-items {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .bcr-aktuelles .mod-articles-item img {
        height: 160px;
    }

    .team-grid {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        width: 100% !important;
        max-width: none !important;
        gap: 18px;
        margin-left: 0;
        margin-right: 0;
    }

    .team-card {
        width: 100% !important;
        min-width: 0;
        min-height: 115px;
        padding: 22px 15px;
        font-size: 1.05rem;
    }

}


/* ==========================================================================
   20. GROSSER DESKTOP – AB 1200 PX
   ========================================================================== */

@media (min-width: 1200px) {

    .container {
        max-width: 1140px;
    }

    /*
       Fuenf Sportkacheln in einer Reihe.
       Der 1140px-Container enthaelt links und rechts je 15px Innenabstand,
       deshalb wird die Kartenbreite aus der tatsaechlich verfuegbaren
       Innenbreite berechnet. Weniger Kacheln bleiben weiterhin zentriert.
    */
    .sports-grid {
        gap: 10px;
    }

    .sport-card {
        flex-basis: calc((100% - 40px) / 5);
        max-width: none;
    }

    .card-image-wrapper {
        height: 140px;
        padding: 20px 10px 10px;
    }

    .card-image-wrapper img {
        max-height: 90px;
    }

    .card-content {
        padding: 15px;
    }

    .card-content h3 {
        font-size: 1.15rem;
    }

    .card-content p {
        font-size: 0.9rem;
    }

    body.is-subpage .component-container {
        max-width: 850px;
    }

}
