/* ===============================
   LEISTUNGEN SECTION – KOMPLETT
   =============================== */

.leistungen-section {
  position: relative;
  min-height: 100vh;
  display: block;
  background: radial-gradient(circle at 30% 40%, #eaf4ff 0%, #d2ebff 50%, #e6f8ff 100%);
  overflow: hidden;
  padding: 5rem 1rem 6rem;
  z-index: 0;
}

/* Dynamischer Hintergrund mit Bewegung */
.bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.08), rgba(255, 255, 255, 0.12), rgba(0, 123, 255, 0.06));
  background-size: 300% 300%;
  animation: bgShift 18s ease-in-out infinite;
  z-index: 0;
}

@keyframes bgShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Glows */
.glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(220px);
  opacity: 0.6;
  z-index: 0;
}

.glow-left {
  background: rgba(91, 173, 255, 0.9);
  top: 10%;
  left: -200px;
}

.glow-right {
  background: rgba(156, 215, 255, 0.9);
  bottom: 5%;
  right: -200px;
}

/* Überschrift */
.leistungen-headline {
  text-align: center;
  z-index: 5;
  position: relative;
  margin-top: 4rem;
  margin-bottom: 2rem;
  animation: fadeInDown 1s ease both;
}

.leistungen-headline h2 {
  font-size: 2.8rem;
  color: #004f9e;
  margin-bottom: 0.6rem;
}

.leistungen-headline p {
  color: #0d468f;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* USP Box */
.usp-box {
  position: relative;
  width: 90%;
  max-width: 1100px;
  margin: 3rem auto 4rem;
  background: linear-gradient(145deg, rgba(240,248,255,0.92), rgba(200,230,255,0.9));
  border-radius: 32px;
  box-shadow: 0 0 60px rgba(0, 123, 255, 0.3), inset 0 0 20px rgba(255,255,255,0.5);
  padding: 3.2rem;
  text-align: center;
  z-index: 5;
  backdrop-filter: blur(15px);
  animation: fadeInUp 1.2s ease both;
  transition: all 0.5s ease;
  overflow: hidden;
}

.usp-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(0,123,255,0.15), rgba(255,255,255,0.05), rgba(0,123,255,0.15));
  background-size: 250% 250%;
  animation: uspGlow 10s ease-in-out infinite;
  z-index: -1;
}

@keyframes uspGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.usp-box:hover {
  transform: scale(1.02);
  box-shadow: 0 0 80px rgba(0, 123, 255, 0.35), inset 0 0 25px rgba(255,255,255,0.6);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.usp-box h3,
.usp-box h4 {
  color: #005fcc;
  font-size: 2.2rem;
  margin: 0 0 0.3rem;
}

.usp-box .usp-subtitle {
  color: #0d468f;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.usp-box p {
  color: #083e80;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.usp-box ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.usp-box li {
  color: #0b4d9e;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.usp-box li i {
  color: #1b9eff;
  margin-right: 0.5rem;
}

.usp-btn {
  background: linear-gradient(135deg, #007bff, #00c6ff);
  color: #fff;
  padding: 0.9rem 1.8rem;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
  transition: all 0.3s ease;
}

.usp-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 123, 255, 0.4);
  background: linear-gradient(135deg, #1a8bff, #4cb8ff);
}

/* Leistungsboxen */
.leistungen-container {
  display: flex;
  gap: 3rem;
  z-index: 5;
  position: relative;
  flex-wrap: wrap;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transform: translateY(70px);
  transition: all 1s ease;
}

.leistungen-container.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .leistungen-container {
    opacity: 1 !important;
    transform: none !important;
  }
}

.leistung-box {
  position: relative;
  width: 370px;
  background: rgba(255,255,255,0.88);
  border-radius: 25px;
  padding: 2.4rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  transition: all 0.5s ease;
  overflow: hidden;
  backdrop-filter: blur(12px);

  /* ⭐ WICHTIG: macht die Box flexibel */
  display: flex;
  flex-direction: column;
}

.leistung-box:hover {
  transform: scale(1.07) translateY(-8px);
}

.leistung-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease, transform 2s ease;
  z-index: -1;
}

.leistung-box:hover::before {
  opacity: 0.3;
  transform: scale(1.1);
  background-image: var(--bg-image);
}

.leistung-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #0c6ec9;
  margin-bottom: 0.8rem;
}

.leistung-header i {
  font-size: 2rem;
}

.leistung-header h3,
.leistung-header h4 {
  font-size: 1.5rem;
  margin: 0;
}

.leistung-box p {
  min-height: 120px; /* anpassen nach Bedarf */
  color: #333;
  margin: 0.8rem 0;
  line-height: 1.5;

  /* ⭐ Zwischenraum füllen */
  flex-grow: 1;
}

.leistung-box ul {
  margin-top: 320px;
  list-style: none;
  padding: 0;
  margin: 1rem 0;

  /* ⭐ Liste ebenfalls füllt den Raum */
  flex-grow: 1;
}

.leistung-box li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #0d468f;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.leistung-box li i {
  color: #24a0ff;
  font-size: 1rem;
}

.leistung-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;

  /* ⭐ Footer immer ganz unten */
  margin-top: auto;
}

.preis-tag {
  background: linear-gradient(135deg, #aee1ff, #c8f0ff);
  color: #004f9e;
  padding: 0.5rem 0.9rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: inset 0 0 6px rgba(255,255,255,0.6);
}

.mehr-btn {
  background: linear-gradient(135deg, #007bff, #1b9eff);
  color: white;
  border: none;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mehr-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
  background: linear-gradient(135deg, #1a8bff, #4cb8ff);
}

/* -------------------------
   CANVAS FÜR PARTIKEL
   ------------------------- */

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* -------------------------
   RESPONSIVE MOBILE DESIGN
   ------------------------- */

@media (max-width: 768px) {
  .leistungen-container {
    gap: 2rem;
    padding: 1rem;
  }

  .leistung-box {
    width: 95% !important;
    padding: 2rem;
    transform: none !important;
  }

  .usp-box {
    padding: 2rem;
  }

  .leistungen-headline h2 {
    font-size: 2rem;
  }
}

@media (max-width: 500px) {
  .leistungen-container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .leistung-box {
    width: 95% !important;
    padding: 1.6rem;
  }

  .usp-box {
    padding: 2rem 1.2rem;
  }
}

@media (max-width: 380px) {
  .leistung-box {
    width: 95% !important;
    padding: 1.4rem;
  }
}