@media (max-width: 1400px) {
  #sp-header.header-with-modal-menu #offcanvas-toggler {
    display: flex !important;
  }

  .sp-megamenu-wrapper {
    display: none !important;
  }
}


/* Container für die Module */
#position-1, #position-2 {
  position: relative;
  display: inline-block;
}

@media (max-width: 768px) {
  p {
    white-space: normal; /* Zeilenumbrüche erlauben auf kleinen Bildschirmen */
    word-break: break-word; /* Wörtern das Umbrechen ermöglichen */
  }

  .bild {
      height: 300px !important; /* Anpassung für mobile Höhe */
    }
}

/* Graue Box */
.custom-text-box {
  background-color: rgba(128, 128, 128, 0.8);
  color: white;
  padding: 20px;
  max-width: 250px;
  z-index: 2;
  position: absolute;
  left: 0; /* Positioniert die Box links */
  top: 50px; /* Justiere den Abstand nach Bedarf */
}

/* Bild */
.custom-image-box img {
  max-width: 100%;
  height: auto;
  z-index: 1;
  position: relative;
}

@media (max-width: 768px) {
  .custom-text-box {
    position: relative;
    left: 0;
    top: 0;
    margin-bottom: 20px; /* Abstand zum Bild */
  }

  .custom-image-box img {
    max-width: 100%;
  }
}

.fade-in {
  opacity: 0; /* Unsichtbar */
  transform: translateY(20px); /* Leicht nach unten verschoben */
  transition: opacity 1s ease, transform 1s ease; /* Übergang */
}

.fade-in.visible {
  opacity: 1; /* Sichtbar */
  transform: translateY(0); /* Zurück zur Ausgangsposition */
}


/* Allgemeiner Wrapper für Boxen */
.content-wrapper {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Stil für die Boxen */
.content-box {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    background-color: #dddddd; /* Fallback-Hintergrundfarbe */
    text-align: center;
    
    color: white; 
    background-size: cover;
    background-position: center;
    position: relative; /* Für Overlay */
    overflow: hidden; /* Begrenze das Overlay innerhalb der Box */
}

/* Farb-Overlay */
.content-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7)); /* Dezent von transparent zu dunkler */
    z-index: 1;
    
}

/* Text und Inhalte über dem Overlay */
.content-box h3,
.content-box p,
.content-box a {
    position: relative;
    z-index: 2;
}

/* Stil für die Buttons */
.button-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #154a23;
    color: white;
    text-decoration: none;
    border: solid 1px #ffffff;
    border-radius: 5px;
    margin-top: 10px;
}

/* Responsiver Stil für kleine Bildschirme */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .content-box {
        width: 100%;
    }
}

:target {
  scroll-margin-top: 100px;
}

/*Besucherinformation*/
.info-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.info-box {
    flex: 1;
    min-width: 200px;
    background: #dddddd;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.info-box:first-child {
    flex: 0 1 30%; /* Linke Box etwas schmaler */
}

.info-box:last-child {
    flex: 0 1 65%; /* Rechte Box etwas breiter */
}

@media (max-width: 768px) {
  .info-container {
    flex-direction: column;
  }

  .info-box:first-child,
  .info-box:last-child {
    flex: 1 1 100%;
  }
  
  .parking-content {
    flex-direction: column;
  }

  .parking-text {
    padding-right: 0;
    margin-bottom: 20px;
  }

  #map {
    width: 100% !important;
    height: 400px; /* optional: etwas kleiner auf Mobil */
  }

  .vereinstext {
    flex: 1 1 100%;
    flex-wrap: wrap;
  }
  .textundbild {
      flex: 1 1 100%; 
    }
}

.info-box ul {
    list-style: none;
    padding: 0;
}

.info-box ul li {
    font-size: 16px;
    margin: 5px 0;
}

.parking-box {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
}

.parking-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.parking-text {
    flex: 1;
    padding-right: 20px; 
}

.parking-img-container {
    width: 400px; 
    height: auto;
}

.parking-img {
    width: 100%;
    height: auto;
    border-radius: 8px; 
}

/*Text und Bild Container*/
.textundbild {
  border-radius: 8px;    
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}
/*wandern*/
.container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }

.section { flex: 1; min-width: 300px; }

/*tabellen*/
table {
    width: 70%;
    margin: 20px auto;
    border-collapse: separate;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

th {
    background-color: #154a23;
    color: white;
    padding: 12px;
    text-align: left;
    font-size: 1.1em;
    letter-spacing: 1px;
}

td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

tr:hover {
    background-color: #f1f1f1;
}

tr:hover td {
    background-color: #f1f1f1;
}

.table-striped tr:hover td {
    font-weight: bold;
  color: #154a23;
}

.table-striped tr:hover a {
    text-decoration: underline;
}

a {
    color: #154a23;
    text-decoration: underline;
}

a:hover {
    font-weight: bold;
}

td, th {
    border-left: 1px solid #ddd;
    border-top: 1px solid #ddd;
}

td:first-child, th:first-child {
    border-left: none;
}

/*ladespinner*/
.spinner {
        border: 8px solid #ffea00; /* Hintergrundfarbe */
        border-top: 8px solid #154A23; /* Farbe des Kreisrandes */
        border-radius: 50%;
        width: 50px;
        height: 50px;
        animation: spin 2s linear infinite;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

#loadingIndicator {
    display: block;
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
  z-index: 9999;
}


/*dorfmarkt*/
.markt-info {
    background: #dddddd;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    
    line-height: 1.6;
  color: #154a23;
  max-width: 100%;
  box-sizing: border-box;
}

.markt-info p {
    margin-bottom: 10px;
}


ul {
    margin-left: 20px;
    font-size: 1.1em;
    line-height: 1.6;
}

p {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 5px;
    font-size: 1.1em;
    line-height: 1.6;
}
 /*slideshow*/
.sigplus .sigThumb {
    border-radius: 15px !important;
}

.sigplus .sigplus-gallery img {
    border-radius: 10px;
}

.sigplus-gallery {
  max-width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
}

.sigplus-gallery img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {


   .sigplus-gallery img {
    display: none;
  }

}


/*drop down überschriften*/
.menu-header {
  color: #ffffff;
  cursor: pointer;
  white-space: normal;
    display: block;
    text-align: center;
}

.menu-header:hover {
  color: #dddddd;
  font-weight: bold;
}

/*kalender suche buttons*/
.ic-filter-submit-btn {
    font-size: 16px;
    color: #fff;
    background: #154A23;
}

.ic-filter-submit-btn:hover {    
    background: #23395B;
}

.ic-filter-reset-btn {
    font-size: 16px;
    color: #fff;
    background: #7A5C61;
  border: none;
}

.ic-filter-reset-btn:hover {    
    background: #23395B;
}

..ic-filters {
    float: right; /* Positioniert die Suche nach rechts */
    margin-left: 20px; /* Abstand zur Veranstaltungsliste */
}

/*mediathek*/
.video-box {
    display: flex;
    align-items: stretch; 
    background: #dddddd;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-height: 300px; 
  width: 100%;
}

.video-left {
    flex: 1;
    max-width: 40%;
}

.video-left video,
.video-left iframe {
    width: 100%;
    height: 300px;
    border-radius: 8px;
}

.video-right {
    flex: 1;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

.video-right h4 {
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: bold;
}

.video-right p {
    font-size: 20px;
    flex-grow: 1; 
}

/* Responsive Anpassung */
@media (max-width: 768px) {
    .video-box {
        flex-direction: column;
        text-align: center;
    }

    .video-left,
    .video-right {
        max-width: 100%;
        padding: 0;
    }

    .video-right {
        margin-top: 10px;
    }
}

.article-ratings-social-share {
    display: none !important;
}

.sp-menu-heading {
  color: #ffffff;
}

@media only screen and (max-width: 768px) {
    table {
      width: 95%;
      font-size: 11px; /* Kleine Schriftgröße für kleinere Geräte */
    }
    th, td {
      padding: 3px; /* Weniger Padding auf mobilen Geräten */
    }
    th {
      text-align: left;
    }
    /* Optional: Breiten der Spalten anpassen */
    td, th {
      width: auto;
    }
  }

/*icagenda*/
/* Kategorie ausblenden */
.ic-event-category {
    display: none;
}

/* Datum ausblenden */
.ic-event-date {
    display: none;
}

/* Veranstaltungsort ausblenden */
.ic-event-location {
    display: none;
}

.ic-divTable.ic-align-left {
  display: none;
}

#ic-list-of-dates.ic-all-dates {
    display: none;
}

.ictip-date-lbl {
  display: none;
}

.ictip-date-format {
  display: none;
}

#ictip {
  font: roboto;
}

.ic-content {
  font: roboto;
}

.ic-content a{
  text-decoration: none;
}

/*bilder größer anzeigen*/
.custom-modal {
  display: none; 
  position: fixed; 
  z-index: 9999; 
  padding-top: 50px;
  left: 5%;
  top: -5%;
  width: 90%; 
  height: 55%; 
  overflow: auto; 
  background-color: rgba(255,255,255,1); 
}

.custom-modal .modal-content-img {
  margin: auto;
  display: block;
  width: 90%;
  /*max-width: 1000px;*/
  border-radius: 3px;
}

.custom-modal .close {
  position: absolute;
  top: 5px;
  right: 15px;
  color: #424242;
  z-index: 9999; 
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/*galerie dorfmarkt*/
.carousel-inner {
  width: 40%;  
  height: auto;
  overflow: hidden;  
}

.carousel-inner img {
  width: 100%;  
  height: 100%;  
  object-fit: cover;  
 border-radius: 8px;



  /*legende plätze*/
  .info.legend.leaflet-control {
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #333;
  line-height: 1.3;
}

.info.legend.leaflet-control i {
  margin-right: 8px;
}
