/* ==========================================================================
   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;
}

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

/*
   Die aktuelle index.php verwendet einen echten Button (.menu-toggle).
   Das JavaScript öffnet/schließt das Menü über .main-navigation.is-open.
   Die frühere Checkbox-Lösung wird nicht mehr verwendet.
*/

.menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    z-index: 110;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #B21B21;
    border-radius: 2px;
    transform-origin: center;
    transition:
        transform 0.3s ease,
        opacity 0.2s ease;
}

.menu-toggle:focus-visible {
    outline: 3px solid rgba(53, 74, 154, 0.25);
    outline-offset: 3px;
}

.main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition:
        max-height 0.35s ease,
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0s linear 0.35s;
    z-index: 100;
}

/* Wird durch template.js gesetzt */
.main-navigation.is-open {
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition:
        max-height 0.35s ease,
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0s;
}

.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;
}

/* Hamburger wird bei geöffnetem Menü zum X */
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Verhindert Scrollen des Seiteninhalts bei offenem Mobilmenü */
body.menu-open {
    overflow: hidden;
}

/* ==========================================================================
   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;
    align-items: stretch;
}

.magazin-shop-card {
    min-width: 0;
    min-height: 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 .mod-custom,
.magazin-shop-card .mod-articles-items,
.magazin-shop-card .mod-articles-items > li,
.magazin-shop-card .mod-articles-item,
.magazin-shop-card .mod-articles-item-content {
    height: 100%;
    min-height: 0;
}

/* Linke Kachel: Ausgabe aus dem Joomla-Modul "Beiträge – Kategorie". */
.magazin-card .mod-articles-items {
    margin: 0;
    padding: 0;
    list-style: none;
}

.magazin-card .mod-articles-items > li {
    margin: 0;
    padding: 0;
}


/* Joomla-Container für die Magazin-Kachel */


.magazin-card .mod-articles-image {
    grid-column: 1;
    grid-row: 1 / 7;
    align-self: center;
    margin: 0;
}

.magazin-card .mod-articles-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: contain;
    border-radius: 3px;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.16);
}

.magazin-card .bcr-magazin-label,
.magazin-card .bcr-magazin-title,
.magazin-card .bcr-magazin-ausgabe,
.magazin-card .bcr-magazin-text,
.magazin-card .bcr-magazin-archiv,
.magazin-card .mod-articles-item-content > p:not(.bcr-magazin-label):not(.bcr-magazin-ausgabe):not(.bcr-magazin-text):not(.bcr-magazin-archiv) {
    grid-column: 2;
    margin: 0;
    padding: 0;
}

.magazin-card .bcr-magazin-label {
    grid-row: 1;
    color: #B21B21;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.25;
    text-transform: uppercase;
}

.magazin-card .bcr-magazin-title {
    grid-row: 2;
    margin: 4px 0 3px;
    padding: 0;
    color: #12161a;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 800;
    line-height: 1.1;
}

.magazin-card .bcr-magazin-title::after {
    display: none;
}

.magazin-card .bcr-magazin-ausgabe {
    grid-row: 3;
    color: #283D88;
    font-size: 0.95rem;
    font-weight: 700;
}

.magazin-card .bcr-magazin-text {
    grid-row: 4;
    margin-top: 10px;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.magazin-card .mod-articles-item-content > p:not(.bcr-magazin-label):not(.bcr-magazin-ausgabe):not(.bcr-magazin-text):not(.bcr-magazin-archiv) {
    grid-row: 5;
    margin-top: 12px;
}

.magazin-card .bcr-magazin-button {
    display: inline-block;
    padding: 9px 12px;
    background-color: #B21B21;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.magazin-card .bcr-magazin-button:hover,
.magazin-card .bcr-magazin-button:focus-visible {
    background-color: #8c151a;
    color: #ffffff;
    transform: translateY(-1px);
}

.magazin-card .bcr-magazin-archiv {
    grid-row: 6;
    align-self: end;
    margin-top: 10px;
    font-size: 0.82rem;
}

.magazin-card .bcr-magazin-archiv a {
    color: #283D88;
    font-weight: 700;
}

/* Rechte Kachel: das 4:3-Bild füllt die Karte; der Text liegt darüber. */
.shop-card .mod-custom {
    position: relative;
    overflow: hidden;
    background-image: none !important;
}

.shop-card .mod-custom > p {
    margin: 0;
    padding: 0;
}

.shop-card .mod-custom > p:first-child {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    padding: 8px 11px;
    background-color: rgba(0, 63, 125, 0.9);
    color: #ffffff;
}

.shop-card .mod-custom > p:first-child span {
    color: #ffffff !important;
    font-size: 0.95rem !important;
}

.shop-card .mod-custom > p:last-child,
.shop-card .mod-custom > p:last-child a,
.shop-card .mod-custom > p:last-child img {
    display: block;
    width: 100%;
    height: 100%;
}

.shop-card .mod-custom > p:last-child img {
    max-height: none;
    object-fit: cover;
    object-position: center;
}


/* ==========================================================================
   15. UNTERSEITEN – NEWSFLASH
   ========================================================================== */

/* ===========================================================================
   BCR-BEITRAGSKACHELN
   ========================================================================== */

.section-subpage-news {
    padding: 50px 0 60px;
    background-color: #283d88;
}

.subpage-news-wrapper .moduletable > h3 {
    margin: 0 0 28px;
    color: #ffffff;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
}

.bcr-subpage-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bcr-subpage-news-card {
    min-width: 0;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bcr-subpage-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.bcr-subpage-news-card a {
    display: block;
    height: 100%;
    padding: 24px;
    color: #12161a;
    text-decoration: none;
}

.bcr-subpage-news-card h2,
.bcr-subpage-news-card h3,
.bcr-subpage-news-card h4,
.bcr-subpage-news-card h5,
.bcr-subpage-news-card h6 {
    margin: 0;
    color: #12161a;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.3;
}

.bcr-subpage-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    margin: 0 0 12px;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.35;
}

.bcr-subpage-news-category {
    color: #283d88;
}

.bcr-subpage-news-date::before {
    content: "•";
    margin-right: 12px;
    color: #94a3b8;
}

.bcr-subpage-news-card a:hover h2,
.bcr-subpage-news-card a:hover h3,
.bcr-subpage-news-card a:hover h4,
.bcr-subpage-news-card a:hover h5,
.bcr-subpage-news-card a:hover h6 {
    color: #283d88;
}

.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 {
        aspect-ratio: 4 / 3;
    }

    .magazin-shop-card > * {
        height: 100%;
    }
    .magazin-shop-card h4{height:30px;}
    .bcr-subpage-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

}


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

@media (min-width: 992px) {

    /* Mobile-Menüzustand auf Desktop vollständig zurücksetzen */
    .main-navigation,
    .main-navigation.is-open {
        position: static;
        width: auto;
        max-height: none;
        overflow: visible;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        background: transparent;
        box-shadow: none;
    }



    .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;
    }

    .bcr-subpage-news-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
	}
	
    .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;
    }

}

/* ==========================================================================
   21. VISFORMS – EINHEITLICHES DESIGN ALLER FORMULARE
   ========================================================================== */

/*
   Visforms erzeugt im Bootstrap-5-Layout Spaltenklassen wie col-3 / col-9.
   Das BCR-Template lädt bewusst kein vollständiges Bootstrap-Grid.
   Deshalb übernimmt dieser Bereich das Formularlayout gezielt selbst.
   Die Regeln erfassen alle Visforms-Formulare, deren ID mit "visform"
   beginnt (z. B. visform1 und visform2). Die :is()-Kombination erhaelt
   die bisherige Selektor-Spezifitaet. Andere Formulare bleiben unberuehrt.
*/

#visformcontainer {
    width: 100%;
}

#visformcontainer .category-desc {
    margin-bottom: 32px;
}

#visformcontainer .category-desc h2 {
    margin-top: 0;
}

:is(#visform1, form[id^="visform"]) {
    width: 100%;
    margin: 0;
}

:is(#visform1, form[id^="visform"]) fieldset.vffieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

/* Pflichtfeld-Hinweis */
:is(#visform1, form[id^="visform"]) .vis_mandatory {
    margin: 0 0 18px;
    color: #B21B21;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Allgemeine Feldabstände */
:is(#visform1, form[id^="visform"]) .visfield-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 8px;
    padding: 0 !important;
}

/*
   Normale Formularzeile:
   links Beschriftung, rechts Eingabefeld.
*/
:is(#visform1, form[id^="visform"]) .visfield-container > .form-group.row {
    display: grid !important;
    grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
    column-gap: 28px;
    row-gap: 8px;
    align-items: start;
    width: 100%;
    margin: 0 0 18px !important;
}

/* Bootstrap-Spalten von Visforms neutralisieren */
:is(#visform1, form[id^="visform"]) .visfield-container > .form-group.row > [class*="col-"],
:is(#visform1, form[id^="visform"]) .visfield-container > .row > [class*="col-"],
:is(#visform1, form[id^="visform"]) .visfield-container > .form-group.row > [class*="offset-"],
:is(#visform1, form[id^="visform"]) .visfield-container > .row > [class*="offset-"] {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Feldbeschriftungen */
:is(#visform1, form[id^="visform"]) .visfield-container > .form-group.row > label {
    grid-column: 1;
    margin: 0;
    padding: 11px 0 0 !important;
    color: #12161a;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
}

/* Eingabebereich */
:is(#visform1, form[id^="visform"]) .visfield-container > .form-group.row > label + div {
    grid-column: 2;
}

/* Textfelder */
:is(#visform1, form[id^="visform"]) .form-control,
:is(#visform1, form[id^="visform"]) input[type="text"],
:is(#visform1, form[id^="visform"]) input[type="email"],
:is(#visform1, form[id^="visform"]) input[type="tel"],
:is(#visform1, form[id^="visform"]) input[type="number"],
:is(#visform1, form[id^="visform"]) select,
:is(#visform1, form[id^="visform"]) textarea {
    display: block;
    width: 100% !important;
    max-width: none !important;
    min-height: 48px;
    padding: 10px 13px;
    background-color: #ffffff;
    color: #12161a;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font: inherit;
    line-height: 1.4;
    box-shadow: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

:is(#visform1, form[id^="visform"]) textarea {
    min-height: 130px;
    resize: vertical;
}

:is(#visform1, form[id^="visform"]) .form-control:hover,
:is(#visform1, form[id^="visform"]) input[type="text"]:hover,
:is(#visform1, form[id^="visform"]) input[type="email"]:hover,
:is(#visform1, form[id^="visform"]) input[type="tel"]:hover,
:is(#visform1, form[id^="visform"]) select:hover,
:is(#visform1, form[id^="visform"]) textarea:hover {
    border-color: #94a3b8;
}

:is(#visform1, form[id^="visform"]) .form-control:focus,
:is(#visform1, form[id^="visform"]) input[type="text"]:focus,
:is(#visform1, form[id^="visform"]) input[type="email"]:focus,
:is(#visform1, form[id^="visform"]) input[type="tel"]:focus,
:is(#visform1, form[id^="visform"]) input[type="number"]:focus,
:is(#visform1, form[id^="visform"]) select:focus,
:is(#visform1, form[id^="visform"]) textarea:focus {
    outline: none;
    border-color: #354a9a;
    box-shadow: 0 0 0 3px rgba(53, 74, 154, 0.14);
}

/* Kalenderfeld */
:is(#visform1, form[id^="visform"]) .field-calendar,
:is(#visform1, form[id^="visform"]) .input-group {
    width: 100%;
}

:is(#visform1, form[id^="visform"]) .input-group {
    display: flex;
    align-items: stretch;
}

:is(#visform1, form[id^="visform"]) .input-group .form-control {
    flex: 1 1 auto;
    min-width: 0;
    border-radius: 6px 0 0 6px;
}

:is(#visform1, form[id^="visform"]) .input-group-append {
    display: flex;
}

:is(#visform1, form[id^="visform"]) .input-group-append .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    background-color: #f1f5f9;
    color: #354a9a;
    border: 1px solid #cbd5e1;
    border-left: 0;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
}

:is(#visform1, form[id^="visform"]) .input-group-append .btn:hover {
    background-color: #e2e8f0;
}

/* ==========================================================================
   VISFORMS – ABSCHNITTSÜBERSCHRIFTEN
   ========================================================================== */

:is(#visform1, form[id^="visform"]) .visfield-container[data-container-field-type="fieldsep"] {
    margin: 38px 0 22px;
    padding: 0 !important;
}

/* Die von Visforms zusätzlich ausgegebene Trennlinie wird nicht benötigt. */
:is(#visform1, form[id^="visform"]) .visfield-container[data-container-field-type="fieldsep"] > .form-group {
    display: none !important;
}

:is(#visform1, form[id^="visform"]) .visfield-container[data-container-field-type="fieldsep"] > .row {
    display: block !important;
    width: 100%;
    margin: 0 !important;
}

:is(#visform1, form[id^="visform"]) .visfield-container[data-container-field-type="fieldsep"] > .row > div {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 14px 18px !important;
    background-color: #354a9a;
    color: #ffffff;
    border-radius: 7px;
    font-size: 1.14rem;
    font-weight: 800;
    line-height: 1.3;
}

/* Erster Abschnitt braucht weniger Abstand nach oben. */
:is(#visform1, form[id^="visform"]) .visfield-container[data-container-field-type="fieldsep"]:first-of-type {
    margin-top: 10px;
}

/* ==========================================================================
   VISFORMS – RADIOBUTTONS & CHECKBOX-GRUPPEN
   ========================================================================== */

/* Auswahlbereiche rechts in der normalen Zweispaltenansicht */
:is(#visform1, form[id^="visform"]) [data-container-field-type="radio"] > .form-group.row > div,
:is(#visform1, form[id^="visform"]) [data-container-field-type="multicheckbox"] > .form-group.row > div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    align-items: center;
    min-height: 48px;
}

/* Bootstrap-inline-Abstände von Visforms neutralisieren */
:is(#visform1, form[id^="visform"]) .form-check-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
}

/* Checkboxen / Radios ausreichend groß und gut anklickbar */
:is(#visform1, form[id^="visform"]) .form-check-input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0 !important;
    accent-color: #354a9a;
    cursor: pointer;
}

:is(#visform1, form[id^="visform"]) .form-check-label {
    margin: 0;
    color: #12161a;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.45;
    cursor: pointer;
}

/* ==========================================================================
   VISFORMS – LANGE BESTÄTIGUNGS-CHECKBOXEN
   ========================================================================== */

/*
   Einzelne Checkbox-Felder enthalten kein separates Label in Spalte 1.
   Sie erhalten deshalb eine eigene, gut lesbare Bestätigungsbox.
*/
:is(#visform1, form[id^="visform"]) .visfield-container[data-container-field-type="checkbox"] > .form-group.row {
    grid-template-columns: 1fr;
    margin-bottom: 18px !important;
}

:is(#visform1, form[id^="visform"]) .visfield-container[data-container-field-type="checkbox"] > .form-group.row > div {
    grid-column: 1 / -1;
    width: 100% !important;
    margin: 0 !important;
    padding: 14px 16px !important;
    background-color: #f8fafc;
    border: 1px solid #dbe3ec;
    border-radius: 7px;
}

:is(#visform1, form[id^="visform"]) .visfield-container[data-container-field-type="checkbox"] .form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
}

:is(#visform1, form[id^="visform"]) .visfield-container[data-container-field-type="checkbox"] .form-check-input {
    margin-top: 2px !important;
}

:is(#visform1, form[id^="visform"]) .visfield-container[data-container-field-type="checkbox"] .form-check-label {
    flex: 1 1 auto;
    font-weight: 500;
    line-height: 1.55;
}

/* ==========================================================================
   VISFORMS – FEHLERMELDUNGEN
   ========================================================================== */

:is(#visform1, form[id^="visform"]) .visfield-container > .row:not(.form-group) {
    display: grid;
    grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
    column-gap: 28px;
    width: 100%;
    margin: -10px 0 12px !important;
}

:is(#visform1, form[id^="visform"]) .visfield-container > .row:not(.form-group) > div {
    grid-column: 2;
}

:is(#visform1, form[id^="visform"]) .error,
:is(#visform1, form[id^="visform"]) .invalid,
:is(#visform1, form[id^="visform"]) [class^="fc-tbx"],
:is(#visform1, form[id^="visform"]) [class*=" fc-tbx"] {
    color: #B21B21;
    font-size: 0.88rem;
    line-height: 1.4;
}

:is(#visform1, form[id^="visform"]) .form-control.error,
:is(#visform1, form[id^="visform"]) .form-control.invalid {
    border-color: #B21B21;
}

/* ==========================================================================
   VISFORMS – ABSENDEBUTTON
   ========================================================================== */

:is(#visform1, form[id^="visform"]) .vf-button-container {
    margin-top: 28px !important;
}

:is(#visform1, form[id^="visform"]) .vf-button-container,
:is(#visform1, form[id^="visform"]) .vf-button-container > div,
:is(#visform1, form[id^="visform"]) .vf-button-container .form-group,
:is(#visform1, form[id^="visform"]) .vf-button-container .col-12,
:is(#visform1, form[id^="visform"]) .vf-button-container .col-auto {
    width: auto !important;
    max-width: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

:is(#visform1, form[id^="visform"]) input[type="submit"],
:is(#visform1, form[id^="visform"]) button[type="submit"] {
    min-height: 52px;
    padding: 13px 28px;
    background-color: #354a9a !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 6px;
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(53, 74, 154, 0.20);
    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

:is(#visform1, form[id^="visform"]) input[type="submit"]:hover:not(:disabled),
:is(#visform1, form[id^="visform"]) button[type="submit"]:hover:not(:disabled) {
    background-color: #293d88 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(53, 74, 154, 0.26);
}

:is(#visform1, form[id^="visform"]) input[type="submit"]:focus-visible,
:is(#visform1, form[id^="visform"]) button[type="submit"]:focus-visible {
    outline: 3px solid rgba(53, 74, 154, 0.25);
    outline-offset: 3px;
}

:is(#visform1, form[id^="visform"]) input[type="submit"]:disabled,
:is(#visform1, form[id^="visform"]) button[type="submit"]:disabled {
    background-color: #94a3b8 !important;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 1;
}

/* ==========================================================================
   VISFORMS – TABLET / MOBILE
   ========================================================================== */

@media (max-width: 767px) {

    #visformcontainer .category-desc {
        margin-bottom: 24px;
    }

    :is(#visform1, form[id^="visform"]) .visfield-container > .form-group.row {
        grid-template-columns: 1fr;
        row-gap: 7px;
        margin-bottom: 18px !important;
    }

    :is(#visform1, form[id^="visform"]) .visfield-container > .form-group.row > label,
    :is(#visform1, form[id^="visform"]) .visfield-container > .form-group.row > label + div {
        grid-column: 1;
    }

    :is(#visform1, form[id^="visform"]) .visfield-container > .form-group.row > label {
        padding-top: 0 !important;
    }

    :is(#visform1, form[id^="visform"]) [data-container-field-type="radio"] > .form-group.row > div,
    :is(#visform1, form[id^="visform"]) [data-container-field-type="multicheckbox"] > .form-group.row > div {
        min-height: 0;
        gap: 10px 18px;
    }

    :is(#visform1, form[id^="visform"]) .visfield-container[data-container-field-type="fieldsep"] {
        margin: 30px 0 18px;
    }

    :is(#visform1, form[id^="visform"]) .visfield-container[data-container-field-type="fieldsep"] > .row > div {
        padding: 13px 15px !important;
        font-size: 1.05rem;
    }

    :is(#visform1, form[id^="visform"]) .visfield-container > .row:not(.form-group) {
        grid-template-columns: 1fr;
        margin-top: -8px !important;
    }

    :is(#visform1, form[id^="visform"]) .visfield-container > .row:not(.form-group) > div {
        grid-column: 1;
    }

    :is(#visform1, form[id^="visform"]) .visfield-container[data-container-field-type="checkbox"] > .form-group.row > div {
        padding: 13px 14px !important;
    }

    :is(#visform1, form[id^="visform"]) input[type="submit"],
    :is(#visform1, form[id^="visform"]) button[type="submit"] {
        width: 100%;
    }

}


/* ==========================================
   STARTSEITE – AKTUELLES KACHELN
   ========================================== */

/* Einheitliche Innenabstände und Ausrichtung */
#aktuelles .mod-articles-item {
    text-align: left;
}

#aktuelles .mod-articles-item-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: left;
}

/* Erste Zeile: Kategorie links, Datum rechts */
#aktuelles .mod-articles-item-content > dl {
    order: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    margin: 0 0 20px;
    padding: 0;
    text-align: left;
}

/* Versteckten Informationstitel entfernen */
#aktuelles .article-info-term {
    display: none;
}

/* Kategorie links */
#aktuelles .mod-articles-category {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-size: 14px;
    text-align: left;
}

/* Datum rechts */
#aktuelles .mod-articles-date {
    flex: 0 0 auto;
    margin: 0 0 0 auto;
    padding: 0;
    color: #ffffff;
    font-size: 14px;
    text-align: right;
    white-space: nowrap;
}

/* Alten Trennpunkt entfernen */
#aktuelles .mod-articles-date::before {
    content: none;
}

/* Joomla-Icons ausblenden */
#aktuelles .mod-articles-category .icon-folder-open,
#aktuelles .mod-articles-date .icon-calendar {
    display: none;
}

/* Überschrift einheitlich linksbündig */
#aktuelles .mod-articles-title {
    order: 2;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: left !important;
    line-height: 1.4;
}

/* Titellink */
#aktuelles .mod-articles-title a {
    display: block;
    color: #ffffff;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
}




/* ==========================================
   BCR MAGAZIN – ARCHIV
   ========================================== */

/* Vier Ausgaben pro Zeile */
body.is-bcr-magazin .blog-items {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    align-items: start;
}

/* Einzelne Ausgabe */
body.is-bcr-magazin .blog-items > .blog-item {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Inhalt der Ausgabe */
body.is-bcr-magazin .blog-item .item-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    text-align: left;
}
body.is-bcr-magazin .blog-items p.magazin-hlep{display:none;}

/* Absatz mit dem anklickbaren Cover */
body.is-bcr-magazin
.blog-item .item-content > p:has(.bcr-magazin-cover) {
    order: 1;
    margin: 0;
}

/* Cover-Link */
body.is-bcr-magazin .bcr-magazin-cover {
    display: block;
    width: 100%;
    line-height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 18px rgba(0,0,0,.15);
}

/* Magazincover */
body.is-bcr-magazin .bcr-magazin-cover img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 517 / 742;
    object-fit: contain;
}

/* Titel unter dem Cover */
body.is-bcr-magazin .blog-item .page-header {
    order: 2;
    margin: 16px 0 0;
    padding: 0;
    border: none;
}

body.is-bcr-magazin .blog-item .page-header h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
    text-align: center;
    color: #172d63;
}

/* Tablet */
@media (max-width: 991px) {
    body.is-bcr-magazin .blog-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px;
    }
}

/* Smartphone */
@media (max-width: 575px) {
    body.is-bcr-magazin .blog-items {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    body.is-bcr-magazin .blog-item {
        max-width: 340px;
        margin-inline: auto;
    }
}




/* ==========================================
   STARTSEITE – MAGAZIN FEINTUNING
   ========================================== */

/* Weiße Magazin-Kachel */
.is-home .magazin-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;                    /* kleiner Abstand zwischen Label, Inhalt und Archivlink */
    min-width: 0;
    box-sizing: border-box;
    padding: 22px;
    overflow: hidden;
}

/* Label "Aktuelle Ausgabe" */
.is-home .bcr-magazin-home-label {
    align-self: flex-start;
    margin: 0 0 4px calc(40% + 24px);   /* linksbündig an der Textspalte */
    color: #c61d22;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-align: left;
}

/* Joomla-Modul selbst */
.is-home .magazin-card .mod-articles-items,
.is-home .magazin-card .mod-articles-items > li,
.is-home .magazin-card .mod-articles-item,
.is-home .magazin-card .mod-articles-item-content {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
}

/* Magazinbeitrag: Cover links, Text rechts */
.is-home .magazin-card .bcr-home-magazin {
    display: grid;
    grid-template-columns: 40% minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    width: 100%;
    height: auto;
}

/* Cover */
.is-home .magazin-card .bcr-home-magazin-cover {
    display: block;
    width: 100%;
    min-width: 0;
    line-height: 0;
}

.is-home .magazin-card .bcr-home-magazin-cover img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: contain;
}

/* Textspalte */
.is-home .magazin-card .bcr-home-magazin-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;                  /* engerer Abstand innerhalb der Textspalte */
    width: 100%;
    min-width: 0;
    max-width: none;
}

/* Text-Abstände */
.is-home .bcr-home-magazin-content p,
.is-home .bcr-home-magazin-content h3,
.is-home .bcr-home-magazin-content a {
    margin: 0;
}

/* Überschrift */
.is-home .magazin-card .bcr-magazin-title {
    margin: 0;
    font-size: 27px;
    line-height: 1.2;
    color: #111;
}

/* Beschreibung */
.is-home .magazin-card .bcr-magazin-text {
    margin: 0;
    line-height: 1.45;
}

/* Link "Alle Ausgaben" */
.is-home .bcr-magazin-home-archiv {
    align-self: flex-start;
    margin: 4px 0 0 calc(40% + 24px);   /* direkt unterhalb des Buttons, an Textspalte ausgerichtet */
    text-align: left;
}

.is-home .bcr-magazin-home-archiv a {
    color: #263f8e;
    font-weight: 600;
    text-decoration: none;
}

.is-home .bcr-magazin-home-archiv a:hover {
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 767px) {
    .is-home .magazin-card .bcr-home-magazin {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .is-home .bcr-magazin-home-label,
    .is-home .bcr-magazin-home-archiv {
        margin-left: 0;
    }

    .is-home .magazin-card .bcr-home-magazin-cover img {
        max-height: 280px;
    }
}
