/* Hier können Sie bei Bedarf Ihre eigenen CSS-Definitionen einfügen. */

@media screen and (max-width: 600px) {

  .event-list .cd-table {
    width: 100%;
    overflow-x: hidden;
  }

  .event-list .cd-table table {
    width: 100% !important;
    table-layout: fixed;
  }

  .event-list .cd-table th:first-child,
  .event-list .cd-table td:first-child {
    width: 38%;
  }

  .event-list .cd-table th:nth-child(2),
  .event-list .cd-table td:nth-child(2) {
    width: 62%;
  }

  .event-list .cd-table th,
  .event-list .cd-table td {
    white-space: normal !important;
    overflow-wrap: break-word;
    word-break: normal;
    padding: 6px !important;
    box-sizing: border-box;
  }

  .event-list .cd-table-date {
    font-size: 13px;
    line-height: 1.3;
  }

  .event-list .cd-table-value {
    font-size: 14px;
    line-height: 1.35;
  }

  .event-list .cd-table-value-detail {
    font-size: 12px;
    line-height: 1.3;
  }
}
/* Anfrage absenden – wie ClubDesk Button Variante 2 */
#submit_1000112 {
    color: #333333;
    border-color: #333333;

    border-width: 2px;
    border-style: solid;
    border-radius: 10px;

    padding: 5px 20px;
    margin: 10px 0;

    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-weight: 500;
    font-style: normal;
    text-decoration: none;
    text-align: left;
    text-transform: uppercase;
}
#section_1000085 {
    min-height: 0 !important;
    height: auto !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  border-top: 1pt solid #ffffff !important;
}

#section_1000085 p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}
@media (max-width: 767px) {
    #block_1000184 img {
        width: 50% !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }
}
/* Abstand unter dem fixierten Header */
.cd-header-empty .cd-content div.cd-section:first-of-type {
    padding-top: 150px !important;
}

/* Smartphone */
@media (max-width: 576px) {
    .cd-header-empty .cd-content div.cd-section:first-of-type {
        padding-top: 70px !important;
    }
}

/* Bestehende linke Linie entfernen */
.cd-block-content[style*="border-width"] {
    border-left: none !important;
    padding-left: 0 !important;
}

/* Überschriften H1 bis H3 */
.cd-block-content :is(h1, h2, h3) {
    border-left: none !important;
    padding-left: 0 !important;
    padding-bottom: 15px;
}

/* Neue Linie unter dem Titel */
.cd-block-content :is(h1, h2, h3)::after {
    content: "";
    display: block;
    width: 90px;
    height: 4px;
    background-color: currentColor;;
    border-radius: 2px;
    margin-top: 15px;
    margin-left: 0;
    margin-right: auto;
}

/* Zentrierte Titel */
.cd-block-content :is(h1, h2, h3)[style*="center"]::after,
.cd-block-content [style*="text-align: center"] :is(h1, h2, h3)::after,
.cd-block-content [align="center"] :is(h1, h2, h3)::after {
    margin-left: auto;
    margin-right: auto;
}

/* Rechtsbündige Titel */
.cd-block-content :is(h1, h2, h3)[style*="right"]::after,
.cd-block-content [style*="text-align: right"] :is(h1, h2, h3)::after,
.cd-block-content [align="right"] :is(h1, h2, h3)::after {
    margin-left: auto;
    margin-right: 0;
}



/* ==========================================
   GEWERBEVEREIN EGNACH
   OBERE DORF-SILHOUETTE
   Bildformat: 2171 × 418 Pixel
   ========================================== */

/* Abschnitt */
#section_1000030 {
    position: relative;
    overflow: hidden;
}

/* Beiger Hintergrund */
#section_1000030 > .cd-backgroundPane {
    background-color: #F0EDE6 !important;
}

/* Inhaltsbereich */
#section_1000030 > .cd-section-content {
    position: relative;
    z-index: 1;
    padding-bottom: 0 !important;
}

/* Silhouette unterhalb des Inhalts */
#section_1000030 > .cd-section-content::after {
    content: "";
    display: block;
    clear: both;

    /* Volle Bildschirmbreite */
    width: 100vw;
    max-width: none;

    /* Exaktes Seitenverhältnis */
    aspect-ratio: 2171 / 418;
    height: auto;

    /* Horizontal zentrieren */
    position: relative;
    left: 50%;
    transform: translateX(-50%);

    /* Neue dunkle Silhouette */
    background-image: url("https://www.gewerbe-egnach.ch/clubdesk/w_gewerbeverein-egnach/fileservlet?type=image&id=1000285&s=djEtvP4aTmrmChd9RRbk5IsYXi6p9ebDdYVgdO1Bc0Ug2Y4=");

    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;

    /* Kein zusätzlicher Abstand */
    margin: 0 !important;
    padding: 0 !important;

    opacity: 1;
    pointer-events: none;
}

/* Responsive Darstellung */
@media (max-width: 768px) {
    #section_1000030 > .cd-section-content::after {
        width: 100vw;
        aspect-ratio: 2171 / 418;
        height: auto;
        background-size: contain;
    }
}






/* ============================================
   GEWERBEVEREIN EGNACH
   KOMPLETTER FOOTER
   Bildformat: 2153 x 413 Pixel
   ============================================ */


/* --------------------------------------------
   1. FOOTER GRUNDLAYOUT
   -------------------------------------------- */

#section_1000029 {
    position: relative;
    background-color: #333333;
    overflow: hidden;
}

#section_1000029 > .cd-backgroundPane {
    background-color: #333333 !important;
}

#section_1000029 > .cd-section-content {
    position: relative;
    z-index: 1;
    padding-bottom: 0 !important;
}


/* --------------------------------------------
   2. ÜBERSCHRIFTEN
   -------------------------------------------- */

#section_1000029 h4 {
    color: #FFFFFF !important;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
}


/* --------------------------------------------
   3. TEXTE UND LINKS
   -------------------------------------------- */

#section_1000029 p {
    color: #FFFFFF;
    line-height: 1.6;
}

#section_1000029 a {
    color: #FFFFFF !important;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

#section_1000029 a:hover {
    opacity: 0.7;
}


/* --------------------------------------------
   4. BESTEHENDES FOOTER-LOGO
   -------------------------------------------- */

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


/* --------------------------------------------
   5. COPYRIGHT
   -------------------------------------------- */

#section_1000029 #block_1000229 {
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

#section_1000029 #block_1000229_content {
    margin: 0 !important;
    padding: 0 !important;
}

#section_1000029 #block_1000229_content > span {
    display: block;
    color: #FFFFFF !important;

    margin: 0 !important;
    padding-bottom: 0 !important;

    line-height: 1.4;
}

/* Letzte Zeile ohne zusätzlichen Abstand */
#section_1000029
> .cd-section-content
> .cd-row:last-of-type {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}


/* --------------------------------------------
   6. KEINE SILHOUETTE OBERHALB
   -------------------------------------------- */

#section_1000029 > .cd-section-content::before {
    content: none !important;
    display: none !important;
}



/* ==========================================
   7. WEISSE DORF-SILHOUETTE
   Ohne Verzerrung, volle Bildschirmbreite
   ========================================== */

#section_1000029 > .cd-section-content::after {
    content: "";
    display: block;
    clear: both;

    /* Ganze Bildschirmbreite */
    width: 100vw;
    max-width: none;

    /* Verhältnis des zugeschnittenen Bildes */
    aspect-ratio: 2153 / 413;
    height: auto;

    /* Horizontal zentrieren */
    position: relative;
    left: 50%;
    transform: translateX(-50%);

    /* ClubDesk-Bild */
    
background-image: url("https://www.gewerbe-egnach.ch/clubdesk/w_gewerbeverein-egnach/fileservlet?type=image&id=1000286&s=djEthMyYL6vE5elmsplUFI3axkQJd6GMbJF6O5zIoIV360c=");

    background-repeat: no-repeat;
    background-position: center bottom;

    /* Proportionen beibehalten */
    background-size: contain;

    margin: 0 !important;
    padding: 0 !important;

    opacity: 1;
    pointer-events: none;
}

/* Auf Mobilgeräten keine andere Bildhöhe erzwingen */
@media (max-width: 768px) {
    #section_1000029 > .cd-section-content::after {
        aspect-ratio: 2153 / 413;
        height: auto;
        background-size: contain;
    }
}

/* --------------------------------------------
   8. SMARTPHONE UND TABLET
   -------------------------------------------- */

@media (max-width: 768px) {

    #section_1000029 h4 {
        margin-bottom: 10px;
    }

    #section_1000029 #block_1000229 {
        margin-top: 5px !important;
        margin-bottom: 0 !important;
    }

    #section_1000029 > .cd-section-content::after {
        width: 100vw;

        /* Bild bleibt proportional */
        aspect-ratio: 2153 / 413;
        height: auto;

        background-size: 100% 100%;

        margin: 0 !important;
    }
}

/* ==========================================
   GEWERBEVEREIN EGNACH
   MOBILE SEITENABSTÄNDE
   ========================================== */

@media (max-width: 768px) {

    /* Überschriften und Texte mit Seitenabstand */
    .cd-section .cd-row > .cd-col {
        box-sizing: border-box;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Überschriften nicht zusätzlich verschieben */
    .cd-section h1,
    .cd-section h2,
    .cd-section h3,
    .cd-section h4 {
        margin-left: 0;
        margin-right: 0;
    }

    /* Dorf-Silhouetten bleiben bildschirmbreit */
    #section_1000030 > .cd-section-content::after,
    #section_1000029 > .cd-section-content::after {
        width: 100vw;
        max-width: none;
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}


/* ==========================================
   GEWERBEVEREIN EGNACH
   MEHR ABSTAND UNTER HEADER – MOBILE
   Nur Unterseiten, nicht Startseite
   ========================================== */

@media (max-width: 768px) {

    /* Erste Inhaltssektion auf Unterseiten */
    body:not(.cd-home) .cd-content
    > .cd-section:first-child
    > .cd-section-content {
        padding-top: 50px !important;
    }

}

