/* ======== Basislayout ======== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  color: #222;
}

header {
  background: linear-gradient(90deg, #ffcc00, #ff6600);
  color: white;
  padding: 2rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.logo-container {
  margin-bottom: 1rem;
}

.logo-container picture img {
  max-width: 200px;
}

.header-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.header-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.cta {
  background-color: white;
  color: #cc3300;
  padding: 1rem 2rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin: 0.5rem;
}

.cta-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ======== Sektionen & Layout ======== */
section {
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: auto;
}

.leistungen, .vorteile {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.leistungen div, .vorteile div {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

h2 {
  color: #ff6600;
  margin-bottom: 1rem;
}

footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 2rem;
}

a {
  color: #ff6600;
  text-decoration: none;
}

/* ======== Sterne-Interaktion (Eingabe) ======== */
.star {
  cursor: pointer;
  font-size: 1.5rem;
  color: #ccc;
}

.star.selected {
  color: gold;
}

/* ======== Bewertungsanzeige mit Farben ======== */
#reviewList {
  display: inline-flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 1.5rem;
  padding: 2rem 1rem;
  justify-content: flex-start;
  scroll-snap-type: x mandatory;
}

.review {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}


/* Bewertungszeile */
.review-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  margin-bottom: 0.3rem;
  flex-wrap: nowrap;
}

.review-line .stars {
  flex-shrink: 0;
  .review-line .stars {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
}
}
/* Sterne farbig (1–5) */
.star-output {
  font-size: 1.5rem;
  display: inline-block;
  min-width: 1.5rem;
  text-align: center;
  white-space: nowrap;
  margin-right: 4px;
}


.star-1 { color: #e53935; }   /* Rot */
.star-2 { color: #fb8c00; }   /* Orange */
.star-3 { color: #fdd835; }   /* Gelb */
.star-4 { color: #9ccc65; }   /* Hellgrün */
.star-5 { color: #2e7d32; }   /* Dunkelgrün */

/* Durchschnittsbewertung */
#ratingSummary {
  background: #fff8e1;
  padding: 1rem 1.5rem;
  margin: 2rem auto 2rem auto;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}
.review-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.review-line .stars {
  display: inline-flex; 
  flex-wrap: nowrap;
}
.rating-row {
  display: inline-flex;
  align-items: center;
  margin-bottom: 6px;
}

.rating-label {
  min-width: 180px;
}

.rating-stars {
  display: inline-flex;
  gap: 2px;
  flex-wrap: nowrap;
}

.review-text {
  font-style: italic;
  margin-top: 0.5rem;
}

.review-date {
  text-align: right;
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.5rem;
}
.rating-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.star-group {
  display: inline-flex;
  gap: 2px;
}
.review-container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;           /* ← WICHTIG: Nur hier soll gescrollt werden */
  gap: 20px;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;      /* Firefox */
  scrollbar-color: #999 #eee; /* Firefox */
}

.review-container::-webkit-scrollbar {
  height: 8px;
}

.review-container::-webkit-scrollbar-thumb {
  background-color: #999;
  border-radius: 4px;
}

.review {
  flex: 0 0 320px; /* feste Breite verhindert Flex-Squeeze */
  min-width: 320px;
  background-color: #e3f2fd;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
body {
  overflow-x: auto;
}
.review-container::after {
  content: '';
  flex: 0 0 1px;
}

.review-container::-webkit-scrollbar-track {
  background: #eee;

}
section {
  overflow: visible !important;
}
.review-container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 20px;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #999 #eee;
  max-width: 100%;
  box-sizing: border-box;
}

/* Chrome/Edge/Webkit Scrollbar */
.review-container::-webkit-scrollbar {
  height: 8px;
}
.review-container::-webkit-scrollbar-track {
  background: #eee;
}
.review-container::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 4px;
}

/* Einzelne Bewertungskarte */
.review {
  flex: 0 0 auto;
  width: 280px;
  min-width: 260px;
  max-width: 90vw;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  scroll-snap-align: start;
  box-sizing: border-box;
}
@media (max-width: 480px) {
  .review {
    width: 240px;
    font-size: 0.9em;
  }

  .review-container {
    gap: 12px;
    padding: 12px 0;
  }
}
.review {
  flex: 0 0 auto;
  width: 280px;
  min-width: 260px;
  max-width: 90vw;
  background-color: #e0f2ff; /* Hellblau */
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  scroll-snap-align: start;
  box-sizing: border-box;

  /* WICHTIG: Text soll umbrechen */
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
@keyframes slideFadeIn {
  0% {
    transform: translateY(-30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.review {
  animation: slideFadeIn 0.8s ease forwards;
  /* bereits vorhandene Styles nicht löschen! */
}
@keyframes fadeUp {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.animated-box {
  transition: transform 0.3s ease, z-index 0.3s;
  will-change: transform;
  z-index: 1;
  position: relative;
}

.animated-box:hover {
  transform: scale(1.5);
  z-index: 10;
}
@media (hover: hover) and (pointer: fine) {
  .animated-box:hover {
    transform: scale(1.5);
    z-index: 10;
  }
}



