/* ========== Basis-Styles ========== */
body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--lighter);
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--darker);
}

/* ========== Header ========== */
header {
  background: linear-gradient(135deg, var(--primary), #4aa8b5);
  color: var(--white);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 2.5rem;
  transition: var(--transition);
}

nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

nav a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

nav a:hover:after {
  width: 100%;
}

.phone-link {
  background: var(--white);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: var(--rounded-full);
  font-weight: 600;
  transition: var(--transition);
}

.phone-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ========== Hero-Section ========== */
.leistungen-hero {
  position: relative;
  padding: 8rem 0 6rem;
  background: linear-gradient(135deg, var(--lighter), var(--white));
  overflow: hidden;
}

.leistungen-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, var(--primary-light) 0%, rgba(255,255,255,0) 70%);
  z-index: 0;
}

.leistungen-hero .container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
}

.leistungen-hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, var(--primary), var(--dark-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.leistungen-hero p {
  font-size: 1.25rem;
  color: var(--dark-light);
  line-height: 1.8;
}

/* ========== Leistungs-Karten ========== */
.leistungs-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding: 5rem 0;
  align-items: center;
  justify-content: center;
}

.leistung-card {
  background: var(--white);
  border-radius: var(--rounded-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  z-index: 1;
  max-width: 600Px;
  min-width: 450px;
}

.leistung-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  height: 100%;
  background: linear-gradient(to bottom right, transparent, var(--primary-lighter));
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.leistung-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.leistung-card:hover::after {
  opacity: 1;
}

.leistung-card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-bottom: 1px solid var(--gray);
}

.leistung-card-content {
  padding: 2rem;
}

.leistung-card h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.leistung-card h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50%;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 3px;
}

.leistung-card p {
  color: var(--dark-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.leistungs-merkmale {
  margin: 2rem 0;
}

.leistungs-merkmale h3 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.leistungs-merkmale h3::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--primary);
}

.leistungs-merkmale ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.leistungs-merkmale li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--dark-light);
  line-height: 1.6;
}

.leistungs-merkmale li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 12px;
  height: 12px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%235cb8c2"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat center;
  opacity: 0.8;
}

/* ========== Akkordeon für Details ========== */
.leistungs-details {
  max-width: 900px;
  margin: 0 auto 5rem;
}

.leistungs-details summary {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--darker);
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--rounded-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: var(--transition);
}

.leistungs-details summary:hover {
  background: var(--primary-lighter);
}

.leistungs-details summary::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.leistungs-details[open] summary::after {
  content: '-';
}

.leistungs-details div {
  padding: 1.5rem;
  background: var(--white);
  border-radius: 0 0 var(--rounded-md) var(--rounded-md);
  margin-top: -8px;
  box-shadow: var(--shadow-sm);
}

.leistungs-details p {
  color: var(--dark-light);
  line-height: 1.8;
}

/* ========== CTA-Bereich ========== */
.leistung-cta {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary-lighter), var(--white));
  position: relative;
  overflow: hidden;
}

.leistung-cta::before {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, var(--secondary-light) 0%, rgba(255,255,255,0) 70%);
  z-index: 0;
}

.leistung-cta .container {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.leistung-cta h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--darker);
}

.leistung-cta p {
  color: var(--dark-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* ========== Buttons ========== */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(to right, var(--primary), #4aa8b5);
  color: var(--white);
  padding: 0.875rem 2rem;
  border-radius: var(--rounded-full);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(92, 184, 194, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(92, 184, 194, 0.4);
  background: linear-gradient(to right, #4aa8b5, var(--primary));
}

.cta-button.secondary {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: none;
}

.cta-button.secondary:hover {
  background: var(--primary-light);
  box-shadow: none;
}

p {
  font-size: 1,25rem;
}

/* ========== Responsive Design ========== */
@media (max-width: 1024px) {
  .leistungen-hero h1 {
    font-size: 2.5rem;
  }
  
  .leistungs-grid {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
  }

  .leistung-card {
    width: 80%;
    align-self: center;
    justify-self: center;
  }

  p{
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0;
    
  }
  
  .leistungen-hero {
    padding: 6rem 0 4rem;
  }
  
  .leistungen-hero h1 {
    font-size: 2rem;
  }
  
  .leistungen-hero p {
    font-size: 1.1rem;
  }
  
  .leistung-card-image {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .leistungen-hero h1 {
    font-size: 1.8rem;
  }
  
  .leistung-card h2 {
    font-size: 1.5rem;
  }
  
  .cta-button {
    width: 80%;
  }

  p {
    font-size: 0.9rem;
  }
}

/* ========== FAQ ========== */
.faq {
  padding: 6rem 0;
  background: var(--light);
}

.faq h2 {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.faq-grid {
  max-width: 800px;
  margin: 3rem auto 0;
}

details {
  background: var(--white);
  border-radius: var(--rounded-md);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

details[open] {
  box-shadow: var(--shadow-md);
}

summary {
  padding: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  list-style: none;
  position: relative;
}

summary:after {
  content: '+';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}

details[open] summary:after {
  content: '-';
}

details div {
  padding: 0 1.25rem 1.25rem;
  color: var(--dark-light);
}

details p {
  padding: 10px;
}