.kundenberichte-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(500px,1fr));
  gap: 30px;
  max-width:1200px;
  margin: auto;
  padding:2em;
  box-sizing: border-box;
}
.kundenbericht-box {
  background:#fff;
  border-radius:12px;
  box-shadow:0 3px 15px rgba(0,0,0,.1);
  padding:20px;
  transition:.2s;
  position: relative;
  padding-bottom: 3em;
    opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.kundenbericht-box.visible {
  opacity: 1;
  transform: translateY(0);
}


.kundenbericht-box:hover {
  transform:translateY(-5px);
  box-shadow:0 6px 20px rgba(0,0,0,.15);
}
.kundenbericht-top {
  display:flex;justify-content:space-between;align-items:center;
}

.kundenbericht-title a {text-decoration: none;}
.kundenbericht-stars {color:#f5c518;font-size:1.8em;}
.kundenbericht-logo {width:60px;height:60px;border-radius:8px;object-fit:cover;}
.kundenbericht-title {margin-top:10px;font-size:1.3em;color:#111;}
.kundenbericht-text {margin:10px 0 15px;color:#333;line-height:1.5em;}
.kundenbericht-footer {border-top:1px dotted #ddd;padding-top:10px; display:flex; justify-content: space-between; align-items: center; position: absolute; bottom:0.5em; width:100%; left:0; padding:0em 1em; box-sizing: border-box; }
.kundenbericht-footer a,  .kundenbericht-footer p {color:#004aad;text-decoration:none; padding:0; margin:5px;}
.kundenbericht-footer > div {display: flex; gap:10px; font-size: 1.5em; }
.kundenbericht-footer > div > a {color: #888; transition: all 1s ease;}
.kundenbericht-footer > div > a:hover {color: #004aad;}
.kundenberichte-button {
  background:#004aad;color:#fff;border:none;padding:12px 25px;
  border-radius:8px;cursor:pointer;display:block;margin:30px auto;font-size:1em;
}
.kundenberichte-button:disabled {background:#888;cursor:not-allowed;}






.quote {display: flex; gap:20px; align-items: center; align-content: center;}
.kundenbericht-single .quote .kundenbericht-logo {width:300px;height:300px;border-radius:8px;object-fit:100% 100%; margin-right:2em;}



.kundenbericht-single .quote blockquote {
  position: relative;
  margin: 2em auto;
  padding: 1.5em 2em;
  font-size: 1.2em;
  line-height: 1.6;
  color: #222;
  background: #f8f8f8;
  border-left: 6px solid #8bc53e;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  font-style: italic;
}

.kundenbericht-single .quote blockquote::before {
  content: "“";
  position: absolute;
  top: -30px;
  left: 15px;
  font-size: 6em;
  color: rgba(0,115,170,0.2);
  line-height: 1;
  font-family: Georgia, serif;
}

.kundenbericht-single .quote blockquote p {
  margin: 0;
}

.kundenbericht-single .quote blockquote cite {
  display: block;
  margin-top: 1em;
  font-size: 0.8em;
  font-style: normal;
  color: #555;
  text-align: right;
}

.kundenbericht-single .quote  blockquote cite::before {
  content: "— ";
  color: #999;
}


.vorher-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 300px;
  margin: 0 auto;
background-color: #e6e6e6;
}

.vorher-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.vorher-grid h4 {margin:0;}
.vorher-grid figcaption {font-size:0.9em; text-align: right;}

.vorher-grid  figure p {margin:0;}


.vorher-grid > figure {
  
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.vorher-grid img:hover {
  transform: scale(1.02);
}

/* Lightbox Overlay */
#lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#lightbox-overlay.active {
  display: flex;
  animation: fadeIn 0.25s ease-in-out;
}

#lightbox-overlay img {
  max-width: 95%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}




.ergebnis-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 300px;
  margin: 0 auto;
background-color: #e6e6e6;
}

.ergebnis-grid figcaption {font-size:0.9em; text-align: right;}

.ergebnis-grid figure p {margin:0;}

.ergebnis-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.ergebnis-grid img:hover {
  transform: scale(1.02);
}

.ergebnis-bild h4 {
  margin-bottom: 0.5rem;
  font-weight: 600;
}


.ergebnis-grid > figure {
  
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}




/* =========================================
   📱 MOBILE OPTIMIERUNG
   ========================================= */

/* Kleine Tablets und Smartphones */
@media (max-width: 1024px) {
  .kundenberichte-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    padding: 1.5em;
  }

  .kundenbericht-single .quote .kundenbericht-logo {
    width: 200px;
    height: 200px;
    margin-right: 1.5em;
  }

  .kundenbericht-tabs .tab-buttons li {
    flex: 1 1 auto;
    text-align: center;
    padding: .6rem .8rem;
    font-size: .95em;
  }

  .vorher-grid,
  .ergebnis-grid {
    max-width: 100%;
    gap: 1rem;
  }

  .vorher-grid > figure,
  .ergebnis-grid > figure {
    padding: 0.8rem;
  }
}

/* Smartphones (max. 768px) */
@media (max-width: 768px) {
  .kundenberichte-grid {
    grid-template-columns: 1fr;
    padding: 5px;
    gap: 1.2rem;
  }

  .kundenbericht-box {
    padding: 10px;
  }

  .kundenbericht-footer {
    flex-direction: column;
    align-items: center;
    position: static;
    margin-top: 1rem;
  }

  .kundenbericht-footer > div {
    font-size: 1.2em;
  }

  /* Zitatbereich */
  .quote {
    flex-direction: column;
    text-align: center;
  }

  .kundenbericht-single .quote .kundenbericht-logo {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
  }

  .kundenbericht-single .quote blockquote {
    font-size: 1em;
    padding: 1.2em 1.5em;
  }

  .kundenbericht-single .quote blockquote::before {
    font-size: 4em;
    top: -20px;
    left: 10px;
  }

  /* Tabs */
  .kundenbericht-tabs .tab-buttons {
    flex-direction: column;
  }

  .kundenbericht-tabs .tab-buttons li {
    width: 100%;
    font-size: 1em;
  }

  /* Vorher/Nachher-Grids einspaltig */
  .vorher-grid,
  .ergebnis-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .vorher-grid > figure,
  .ergebnis-grid > figure {
    padding: 1rem;
  }

  .vorher-grid img,
  .ergebnis-grid img {
    width: 100%;
    height: auto;
  }

  /* Buttons */
  .kundenberichte-button {
    width: 100%;
    padding: 1rem;
    font-size: 1.1em;
  }
}

/* Mini-Geräte (max. 480px) */
@media (max-width: 480px) {
  .kundenbericht-title {
    font-size: 1.1em;
  }

  .kundenbericht-stars {
    font-size: 1.4em;
  }

  .kundenbericht-tabs .tab-buttons li {
    font-size: 0.9em;
    padding: 0.5rem 0.8rem;
  }

  .kundenbericht-single .quote blockquote {
    font-size: 0.95em;
    padding: 1em;
    margin-top:0;
  }

  .vorher-grid figcaption,
  .ergebnis-grid figcaption {
    font-size: 0.8em;
  }
}





.kundenbericht-accordion {
  border-top: 1px solid #ddd;
  margin-top: 1em;
}
.accordion-item {
  border-bottom: 1px solid #ddd;
}
.accordion-header {
  cursor: pointer;
  font-weight: 600;
  padding: 1em;
  background: #f7f7f7;
  transition: background 0.2s;
}
.accordion-header:hover {
  background: #eee;
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 1em;
transition: max-height 0.4s ease, padding 0.3s ease, opacity 0.4s ease, transform 0.4s ease;
}
.accordion-item.active .accordion-body {
  transform: translateY(0);
  opacity: 1;
}


@keyframes fadeIn {
  from {opacity:0;}
  to {opacity:1;}
}



.accordion-body {position: relative; padding:0em 2em; display:flex; box-sizing: border-box;}

.accordion-body > div {padding:1em;}
.accordion-body > div:first-child {
  flex: 0 0 70%;
}

.accordion-body > div:last-child {
  flex: 0 0 30%;
}


.start .accordion-header {background-color: #c5473e39; color:black;}
.start .accordion-body ul {list-style: none;}

.start .accordion-body ul li {
  position: relative;
	list-style: none;
	display: block;
	padding-left:1em;

}



.kundenbericht-accordion .accordion-body ul li p {font-size:0.9em;}

.start .accordion-body ul li::before {
	font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f057";
	color: #c5473e;
	margin-right:0.5em;
	position: absolute;
	left: -20px;
  top:3px;
}






.ziel .accordion-header {background-color: #ffff0038; color:black;}
.ziel .accordion-body ul {list-style: none;}

.ziel .accordion-body ul li {
  position: relative;
	list-style: none;
	display: block;
	padding-left:1em;

}

.ziel .accordion-body ul li::before {
	font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f05b";
	color: #0037ff;
	margin-right:0.5em;
	position: absolute;
	left: -20px;
  top:3px;
}







.ergebnis .accordion-header {background-color: #66ff0038; color:black;}
.ergebnis .accordion-body ul {list-style: none;}

.ergebnis .accordion-body ul li {
  position: relative;
	list-style: none;
	display: block;
	padding-left:1em;

}

.ergebnis .accordion-body ul li::before {
	font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f00c";
	color: #229c00;
	margin-right:0.5em;
	position: absolute;
	left: -20px;
  top:3px;
}











@media (max-width: 980px) {

.accordion-body {display:block; padding:0px 5px;}
.accordion-body > div {padding:0;}
.vorher-grid, .ergebnis-grid {flex-direction: row; justify-content: space-between;  box-sizing: border-box;}
.vorher-grid > figure, .ergebnis-grid > figure {max-width:50%;}

}



@media (max-width: 600px) {
.accordion-body {padding:0px 5px;}
 .vorher-grid, .ergebnis-grid {flex-direction: column;}
 .vorher-grid > figure, .ergebnis-grid > figure {
    max-width: 90%;
  }


}