/* Link-Wrapper: macht das ganze Widget klickbar */
.custom-widget-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Widget Container */
#custom-widget {
  border: 1px solid #EDEDED;
  border-radius: 0;
  max-width: 600px;
  width: 100%;
  margin: 10px auto;
  padding: 0 0 20px 0;
  min-height: 450px;
  max-height: 450px;
  overflow: hidden;
  text-align: left;
  position: relative;
  cursor: pointer;
}

/* Bildbereich inkl. Overlay */
#custom-widget .widget-image {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
}

#custom-widget .widget-image img {
  width: 100%;
  height: 100%; 
  max-width: 100%;
  
  object-fit: cover;
  transform-origin: center center;
  transition: transform 0.5s ease-in-out;
}

#custom-widget .widget-image .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  display: flex;
  align-items: flex-start;
  padding: 10px;
  color: #fff;
  font-size: 1.2em;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.7) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}


/* Hover-Effekte für Bild & Overlay */
#custom-widget:hover .widget-image img {
  transform: scale(1.05);
}

#custom-widget:hover .widget-image .overlay {
  opacity: 1;
}

/* Titel */
#custom-widget .widget-title {
  color: #225ed3;
  font-size: 1.5em;
  margin: 10px 0 !important;
  padding-left: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Textbereich */
#custom-widget .widget-text {
  margin: 0 10px 15px;
  padding-bottom: 5px;
  font-size: 1em;
  line-height: 1.4em;
  text-align: left;
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}


/* 1) Service Tabelle ab hier */
#c26178 .pricing-table {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  gap: 0;
}

/* 2) Drei Spalten je 1/3 Breite */
#c26178 .pricing-table > div[class*="col-"] {
  flex: 1 1 33.3333%;
  max-width: 33.3333%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 3) Ab Breakpoint auf 1 Spalte (100% Breite) */
@media (max-width: 768px) {
  #c26178 .pricing-table > div[class*="col-"] {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
