/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Template: astra
Author: Dein Name
Description: Astra Child Theme
Version: 1.0.0
Text Domain: astra-child
*/
/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
  animation: fadeIn 0.3s ease;
}

/* Modal Inhalt */
.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 700px;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  max-height: 90%;
  overflow-y: auto;
  transform: translateY(-30px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

/* Modal Close oben rechts */
.modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  border-radius: 5px;
  padding-left:10px;
  padding-right:10px;
  padding-top:1px;
  padding-bottom:10px;
  background: rgba(119,119,119,0.7);
  border: none;
  color: #fff;
  font-size: 2rem;
  z-index: 30;
  cursor: pointer;
}


.modal-close:hover {
  color: #a5d6bd;
}

/* Fade-In Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Smarter Booking Button */
.booking-button,.single_add_to_cart_button {
  background-color: #204437 !important;
  color: #fff !important;
  padding: 0.5em 1.2em !important;
  border-radius: 6px !important;
  font-weight: bold !important;
  text-decoration: none !important;
  font-size: 0.95em;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: background 0.3s ease;
}

.booking-button:hover {
  background-color: #163227 !important;
}

/* Galerie-Button im Hero */
.gallery-open-btn {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: rgba(32, 68, 55, 0.9);
  color: #fff;
  padding: 0.6em 1.4em;
  border-radius: 8px;
  font-weight: bold;
  font-size: 0.95em;
  text-decoration: none;
  transition: background 0.3s ease;
}

.gallery-open-btn:hover {
  background: rgba(22, 50, 39, 0.95);
}






/* Glide Pfeile optisch verbessern */
.glide__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.4);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  padding: 0.8rem;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.3s ease;
}

.glide__arrow:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.glide__slides{
  padding-left: 0px !important;
}

.glide__arrow--left {
  left: -20px;
}

.glide__arrow--right {
  right: -20px;
}

/* Standardfarbe für aktive Pfeile */
.glide__arrow {
  color: white;
  background-color: rgba(0, 0, 0, 0.4);
  transition: background 0.3s ease, color 0.3s ease;
}

/* Hover-Farbe */
.glide__arrow:hover {
  background-color: rgba(1, 75, 12, 0.7);
  color: #fff;
}

/* Deaktivierte Pfeile ausgegraut */
.glide__arrow.glide__arrow--disabled {
  opacity: 0.3;
  cursor: not-allowed;
  color: #aaa;
  background-color: rgba(1, 75, 12, 0.9);
}




/* Slider Wrapper mit Relativpositionierung */
.kategorie-glide {
  position: relative;
  overflow: visible; /* für Pfeile */
}

/* Box-Styling (inkl. Hover & Abrundung) */
.kategorie-box {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #fff;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.kategorie-box:hover img {
  transform: scale(1.05);
}

.kategorie-box img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

/* Kategorietitel am unteren Rand */
.kategorie-name {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 0.6rem;
  text-align: center;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}



.filter-sidebar label {
  display: flex;
  align-items: center; /* vertikal zentriert */
  gap: 0.6rem;
  margin-bottom: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 15px;
  line-height: 1.2;
}

.filter-sidebar input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #204437;
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease-in-out;
  flex-shrink: 0;
  margin: 0;
}

.filter-sidebar input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 4px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg);
  transition: opacity 0.2s ease-in-out;
}

.filter-sidebar input[type="checkbox"]:checked {
  background-color: #204437;
  border-color: #204437;
}

.filter-sidebar input[type="checkbox"]:checked::after {
  opacity: 1;
}

.top-angebote {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
/* Gleiche Höhe für alle Karten im Slider */
.top-angebote .glide__slides {
  display: flex;
  align-items: stretch; /* wichtig: Höhe durch höchste Karte */
}

/* jede Slide füllt gleichen Platz */
.top-angebote .glide__slide {
  flex: 0 0 auto;
  height: unset !important;
  display: flex;
  align-items: stretch;
}

.top-angebote .card {
  width: 100%;
  max-width: 350px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  transition: transform 0.3s ease;
  height: auto;
}

.top-angebote .card-content {
  padding: 1rem;

  /* Neu: für Button-Positionierung */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.top-angebote .card a {
  margin-top: auto;
  background: #204437;
  color: #fff;
  width:100%;
  text-align:center;
  padding: 0.5rem 1rem;
  display: inline-block;
  border-radius: 5px;
  text-decoration: none;
  align-self: flex-start; /* optional: 'center' für mittig */
}

.top-angebote .card:hover {
  transform: translateY(-3px);
}

@media (max-width: 600px) {
  .top-angebote .glide__track {
    overflow: hidden;
  }

  .top-angebote .glide__slides {
    display: flex !important;
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .top-angebote .glide__slide {
    max-width: 100% !important;
    display: flex;
    justify-content: center;
  }

  .top-angebote .card {
    width: 100%; /* oder max-width: 360px; wenn du Begrenzung willst */
    margin-right: 15px;
  }
}





.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.card {
  width: calc(50% - 1rem);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}
.card:hover {
  transform: scale(1.02);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-content {
  padding: 1rem;
}
.card-title {
  font-size: 1.2rem;
  font-weight: bold;
}
.card-meta {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: #666;
}
.card a {
  margin-top: auto;
  background: #204437;
  color: #fff;
  padding: 0.5rem 1rem;
  display: inline-block;
  border-radius: 5px;
  text-decoration: none;
}
@media (max-width: 768px) {
  .card {
    width: 100%;
  }
}




#preis-slider {
  margin-top: 1rem;
}

#preis-values {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-top: 0.3rem;
}


#amelia-container div[class='am-collapse-item__trigger']:first{
	display:none !important;
}