/* --- Filter Layout (Betriebe Filter – all Betriebsarten) --- */
.betriebe-filter.compact {
  background: #fff;
  padding: 0px;
  border-radius: 0 0 10px 10px; /* only round bottom corners */
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  max-width: 1200px;              /* center container width */
  margin: 0 auto 2em;             /* auto center + bottom spacing */
}

/* 4 columns layout (Ort | Preis | Betriebsart | Dienstleistungen) */
.betriebe-filter.compact .filter-row {
  display: grid;
grid-template-columns: 0.6fr 0.8fr 1.4fr 1.2fr; /* 4 equal columns */
  gap: 0px;
  align-items: start;
  width: 100%;
}

/* Labels */
.betriebe-filter.compact label {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--heading-color, #222);
  display: block;
}

/* Dropdowns */
.betriebe-filter.compact select {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  appearance: none;
  background-color: #fff;
  font-size: 15px;
}

/* Range slider block */
.betriebe-filter.compact .preis-slider {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.betriebe-filter.compact .preis-slider input[type="range"] {
  width: 100%;
}

.betriebe-filter.compact .preis-label {
  font-size: 0.9rem;
  color: #0085CD;
}


.betriebe-filter.compact .dienstleistungen label {
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 5px;
	
	padding: 0 4px; 
}

.betriebe-filter.compact .betriebsarten label {
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 5px;
	padding: 0 4px;  
}

/* Größere Checkboxen ohne größeren Text */
.betriebe-filter.compact input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: #0085CD; /* moderne Farbe (funktioniert in fast allen Browsern) */
  cursor: pointer;
}


/* Optional: Hover-Effekt */
.betriebe-filter.compact input[type="checkbox"]:hover {
  filter: brightness(0.9);
}


.betriebe-filter.compact fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

.betriebe-filter.compact .betriebsarten,
.betriebe-filter.compact .dienstleistungen {

  display: flex;
  flex-wrap: wrap;
  gap: 0px 10px;
}


/* Buttons section */
.filter-actions {
  grid-column: 1 / -1; /* spans full width */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.filter-btn {
  background: var(--palette-color-1, #0085CD);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
  margin: 5px;
}

.filter-btn:hover {
  background: var(--palette-color-2, #1995AD);
}

.reset-btn {
  display: inline-block;
  color: #555;
  font-size: 14px;
  text-decoration: underline;
	margin-bottom: 5px;
	margin-right: 5px;
}

/* Info (i) icon */
.info-icon {
  display: inline-block;
  margin-left: 4px;
  font-size: 14px;
  color: #0085CD;
  cursor: help;
  vertical-align: middle;
}

.info-icon:hover {
  color: #1995AD;
}

/* Responsive layout */
@media (max-width: 900px) {
  .betriebe-filter.compact .filter-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .betriebe-filter.compact .filter-row {
    grid-template-columns: 1fr;
  }
  .filter-actions {
    align-items: flex-end;
  }
}



.info-icon {
  display: inline-block;
  margin-left: 3px;
  font-size: 14px;
  color: #0085CD;
  cursor: help;
  vertical-align: top;
}

.info-icon:hover {
  color: #1995AD;
}

article.betrieb {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* ensures bottom area sticks to the end */
  height: 100%; /* makes the layout consistent in grid views */
}

article.betrieb .stk-block-button-group {
  margin-top: auto;          /* pushes it to the bottom of the flex column */
  align-self: flex-end;      /* keeps it right-aligned if needed */
  width: 100%;               /* optional: full-width button */
}




/* --- Mobile: bottom sheet style --- */
@media (max-width: 600px) {
  .betriebe-filter-section {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -3px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    z-index: 9999;
    transform: translateY(calc(100% - 40px));
    touch-action: none;
  }

  .betriebe-filter-section.open {
    transform: translateY(0);
  }

  /* Replace triangle with handle bar */
  .filter-toggle-btn {
    position: relative;
    width: 100%;
    height: 32px;
    cursor: grab;
  }

  .filter-toggle-btn .arrow {
    display: none;
  }

  .filter-toggle-btn::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 5px;
    background: #ccc;
    border-radius: 3px;
  }

  .filter-inner {
    max-height: 80vh;
    overflow-y: auto;
    padding-bottom: 10px;
  }
}

/* Hide mobile handle on desktop */
@media (min-width: 601px) {
  .filter-toggle-btn {
    display: none !important;
  }

  /* Always visible on desktop */
  .betriebe-filter-section {
    position: relative;
    transform: none !important;
    box-shadow: none;
  }

  .filter-inner {
    max-height: none !important;
    overflow: visible !important;
  }
}

/* Feine Trennlinie zwischen Filterspalten */
.betriebe-filter.compact .filter-row {
  border-top: 1px solid #eee;  /* optional: dezente obere Linie */
	align-items: stretch; /* make all columns same height */
}

.betriebe-filter-section {
  transform: translateY(100%); /* start completely off-screen, JS will slide it in */
}


.betriebe-filter.compact .filter-col {
  border-left: 1px solid #eee;
	  border-bottom: 1px solid #eee;
  padding: 10px;
}

/* Rechter Spalte rechter Linie */
.betriebe-filter.compact .filter-col:first-child {
  border-right: none;
  padding-right: 10px;
	align-items: stretch; /* make all columns same height */
}

.betriebe-filter.compact {
  margin: 0 auto 0em;
}



/* --- unify height across both layouts --- */
.betrieb-carousel.single {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: block;
}

.betrieb-carousel.single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Abstand oben/unten nur für den Kartenblock in #betriebe-results */
#betriebe-results .ct-container {
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Tablets (max 991px) */
@media (max-width: 991px) {
  #betriebe-results .ct-container {
    margin-top: 30px;
    margin-bottom: 30px;
  }
}

/* Smartphones (max 767px) */
@media (max-width: 767px) {
  #betriebe-results .ct-container {
    margin-top: 20px;
    margin-bottom: 25px;
  }
}

#body.home .stk-block-carousel__slider .stk-block-heading.stk-block-background {
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
}


/* Keep smooth zoom with visible borders */
body.home .stk-block-carousel__slider .stk-block-column {
  overflow: hidden;           /* keeps borders visible */
  border-radius: var(--radius-medium, 10px); /* matches Blocksy’s medium radius */
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

/* Gentle zoom effect inside the border */
body.home .stk-block-carousel__slider .stk-block-column:hover .stk-block-heading.stk-block-background {
  transform: scale(1.05);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  opacity: 0.9; /* optional subtle fade */
  transition: transform 0.4s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}


/* === MOBILE FAVOURITES PANEL === */
@media (max-width: 768px) {
  #favourites-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60vh;
		padding: 0px 10px 0px 10px;
    border-radius: 16px 16px 0 0;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.25);
    transform: translateY(75%);
    transition: transform 0.35s ease;
    z-index: 99999; /* stay above map */
  }

  #favourites-panel.open {
    transform: translateY(0);
  }

  #favourites-panel::before {
    content: "";
    display: block;
    width: 50px;
    height: 4px;
    background: #ccc;
    border-radius: 2px;
    margin: 8px auto;
  }
}

