/* Hier können Sie bei Bedarf Ihre eigenen CSS-Definitionen einfügen. */
.cd-navigation-bar-content {
    background-color: #064c77;
}

/*für Handy*/
@media (max-width: 576px) {
img.cd-club-logo {
    width: 85%;
    height: auto;
}}
.cd-club-logo {
    height: 80px;
    vertical-align: middle;
    margin: 10px;
}
p.cd-additional-teaser {
    display: none;
}
/*-----willkommen button weitere Einträge verstecken-----*/
#section_1000038 p.cd-detailPageNavigation {
    display: none;
}

@media (max-width: 991px) {
body.page-willkommen .cd-megamenu-container {
    width: 350px;
    overflow-y: auto;
    background: rgb(255 255 255 / 82%);
    margin: 0 15px 0 auto;
    margin-bottom: 15px;
}

body.page-willkommen html, td, div, .tinyMceContent > * {
    font-family: Open Sans, sans-serif;
    font-size: 18px;
    font-weight: 400;
    font-style: normal;
    text-decoration: none;
    text-align: right;
    line-height: 1.4;
    text-transform: none;
    overflow-wrap: break-word;
}

body.page-willkommen .cd-menu-level-1 ul li {
    border-bottom: 1px solid #064C77;
    margin-left: 20px;
}}

/*----Video Background responsive----*/
#section_1000051 {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
    overflow: hidden;
    margin-top: 50px;
}
#section_1000051 .cd-backgroundVideo {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
}
#section_1000051 .cd-backgroundVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/*--- Willkommen Sponsoren & Parner-Logos---*/
#block_1000213 img.cd-image-contain,
#block_1000214 img.cd-image-contain {
    border: 1px solid #000;
}
/*----Linkbutton auf aktuell,news und archivseite----*/
body.page-aktuell a.cd-button.cd-button-tertiary,
body.page-news a.cd-button.cd-button-tertiary,
body.page-archiv a.cd-button.cd-button-tertiary {
    width: 150px;
    margin: 3px 0 11px;
}
/*---Button Ausrichtung rechts---*/
body.page-aktuell #block_1000529_content,
body.page-aktuell #block_1000530_content,
body.page-aktuell #block_1000539_content,
body.page-aktuell #block_1000541_content,
body.page-aktuell #block_1000545_content,
body.page-aktuell #block_1000546_content {
    display: flex;
    justify-content: flex-end;
}
body.page-aktuell a.cd-button.cd-button-tertiary {
    background: rgba(238, 238, 238, 1.0);
}

/*----Aktuell Bild Pos Circle Mitte----)
/* Bilder in den News-Kacheln verkleinern */
.cd-image-wrapper-1 .cd-image-content-circle {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
}
/* Bild an den verkleinerten Container anpassen */
.cd-image-wrapper-1 .cd-image-content-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* ---betrifft nur Kopfbereich von Beitragsseiten--- */
.cd-news-detail h1 {
    display: none;
}
.cd-news-text h1 {
    display: block;
}
.cd-carousel-container.cd-carousel-nav-hover.cd-carousel-dots-hover {
    display: none;
}
.cd-news-text {
    margin-left: 0;
    margin-right: 0;
    max-width: stretch;
} 
/*---------Ende Kopfbereich Beitagsseiten--------------------*/

/* Tabellenlayout  Beitragsseiten*/
.cd-news-text table[border="1"],
.cd-news-text table[border="1"] tr,
.cd-news-text table[border="1"] td {
    border: none !important;
    padding-right: 30px;
    vertical-align: top;
    padding-top: 20px !important;
}

.cd-news-text table[border="1"] {
    width: 100%;
    border-collapse: collapse;
}

/* Bilder responsiv */
.cd-news-text table[border="1"] img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Responsive Darstellung bis 768px --- */
@media screen and (max-width: 768px) {

    .cd-news-text table[border="1"] colgroup {
        display: none;
    }

    .cd-news-text table[border="1"],
    .cd-news-text table[border="1"] tbody,
    .cd-news-text table[border="1"] tr,
    .cd-news-text table[border="1"] td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        padding-right: 0;
    }

    /* Tabellenzellen */
    .cd-news-text table[border="1"] td {
        padding: 25px 0 !important;
        vertical-align: top;
        white-space: normal !important;
        overflow-wrap: anywhere;
        line-height: 1.6;
    }

    /* Texte innerhalb der Zellen */
    .cd-news-text table[border="1"] td p,
    .cd-news-text table[border="1"] td div {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        white-space: normal !important;
    }
}


/* ----Blendet Header, Navigation und Scroll-Button aus, wenn wir auf der Gönner-Seite sind------- */
body:has(a.cd-button-login[href*="/goenner"]) nav,
body:has(a.cd-button-login[href*="/goenner"]) #cd-navigation-element,
body:has(a-cd-button-login[href*="/goenner"]) .header-wrapper,
body:has(a.cd-button-login[href*="/goenner"]) .cd-totop-button {
    display: none !important;
}
/* -----Blendet den Footer und dessen inneren ClubDesk-Container radikal aus----- */
body:has(a.cd-button-login[href*="/goenner"]) footer,
body:has(a.cd-button-login[href*="/goenner"]) footer #section_1000001,
body:has(a.cd-button-login[href*="/goenner"]) .cd-footer {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/*----Foto Gallery & Button-----*/
#section_1000094 a.cd-button.cd-button-tertiary,
#section_1000094 a.cd-button.cd-button-tertiary,
#section_1000098 a.cd-button.cd-button-tertiary,
#section_1000099 a.cd-button.cd-button-tertiary {
    width: 90%;
    font-weight: bold;
    color: #fff;
    background-color: #189234;
}
#section_1000094 a:visited.cd-button.cd-button-tertiary,
#section_1000094 a:visited.cd-button.cd-button-tertiary,
#section_1000098 a:visited.cd-button.cd-button-tertiary,
#section_1000099 a:visited.cd-button.cd-button-tertiary {
    width: 90%;
    font-weight: bold;
    color: #c4f0f7;
    background-color: #189234;
}
/*----Hintergrundbild Positionierung bei Gallery Abschnitte-----*/
div#section_1000094 span.cd-backgroundPane,
div#section_1000099 span.cd-backgroundPane,
div#section_1000104 span.cd-backgroundPane,
div#section_1000098 span.cd-backgroundPane {
    background-repeat: no-repeat;
    background-position: right center;
    /*background-attachment: fixed;*/
    background-size: 180px;
    background-color: transparent !important;
}

/*--- Linkseite Clublink-Tabelle ----*/
div#block_1000496 table {
    border: none;
}
div#block_1000496 img {
    border: 2px solid #000;
}
/*---Sponsoren und Partner---*/
#section_1000106 img.cd-image-contain {
    border: solid 2px #000;
}


/* Titel als Positionierungsgrundlage */
h1 {
    position: relative;
    z-index: 1; 
}

/* Bild vor dem Titel */
h1::before {
    content: "";
    position: absolute;
    left: -10px;
    top: -20px;
    width: 40px;
    height: 60px;
    background-image: url(https://schachliplatzger.clubdesk.com/clubdesk/fileservlet?type=image&id=1000427&s=djEt3WX09dYbcJ00ODrlvxc3dupAWpZ2tsUMJIy581ajZ20=);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(34deg);
    opacity: 0.9;
}
@media (max-width: 576px) {
     h1::before {
        background-size: 6vmin;
        left: -17px;
        top: -25px;
        z-index: 2 !important;
    }
    .cd-col div.cd-block:first-of-type .cd-block-content {
        padding-top: 20px;
    }

/* --- Aktuell: Erfolge, News und Archiv --- */
#block_1000240,
#block_1000238,
#block_1000237 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Abstand oberhalb der drei Navigationsbereiche reduzieren */
#section_1000013,
#section_1000065,
#section_1000046,
#section_1000034,
#section_1000096,
#section_1000067,
#section_1000020,
#section_1000080  {
    padding-top: 55px !important;
    padding-bottom: 0;
}
div#section_1000094 {
    padding-top: 0px;
}
}
/*----Linktabelle Feinde-----*/
/* Tabelle selbst wird zum Grid */
/* Tabelle */
body:has(.cd-menu-active[href="/links"])
#block_1000496 table {
    display: block !important;
    width: 100% !important;
    border: none !important;
    border-collapse: separate !important;
}

/* Tabelleninhalt als Grid */
body:has(.cd-menu-active[href="/links"])
#block_1000496 table tbody {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

/* Tabellenzeilen auflösen */
body:has(.cd-menu-active[href="/links"])
#block_1000496 table tr {
    display: contents !important;
}

/* Tabellenzellen */
body:has(.cd-menu-active[href="/links"])
#block_1000496 table td {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    padding: 15px !important;
    border: none !important;
    box-sizing: border-box;
    vertical-align: middle;
}

/* Bilder */
body:has(.cd-menu-active[href="/links"])
#block_1000496 table td img {
    display: block;
    width: 100% !important;
    max-width: 220px;
    height: auto !important;
    object-fit: contain;
}

/* ==========================================
   TABLET – 3 Spalten
   ========================================== */

@media screen and (max-width: 1023px) {
    body:has(.cd-menu-active[href="/links"])
    #block_1000496 table tbody {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ==========================================
   SMARTPHONE – 2 Spalte
   ========================================== */

@media screen and (max-width: 600px) {
    body:has(.cd-menu-active[href="/links"])
    #block_1000496 table tbody {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body:has(.cd-menu-active[href="/links"])
    #block_1000496 table td img {
        max-width: 260px;
    }
}

/*----Sponsoren und Partner auf der Link- und Willkommenseite----*/
@media screen and (min-width: 577px) and (max-width: 1023px) {

    body.page-links .cd-col.m6,
    body.page-willkommen .cd-col.m6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
}
