p {
  font-size: 1.2rem;
}

section {
  scroll-margin-top: 70px;
}

#mainText {
  margin-bottom: 50px;
}

#mainText p {
  font-size: 3.5rem;
  color: #ffffff;
  position: relative;
  z-index: 2; 
  margin: 0;
}

/* ==========================================
   NAVBAR & TITEL RESPONSIVE
   ========================================== */
.navbar-title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1.1;
}

/* 1. MOBIL (Smartphones unter 768px): */
@media (max-width: 767.98px) {
  .navbar-title {
    font-size: 1.05rem !important; /* Passt jetzt entspannt in 2 Zeilen über die volle Breite */
    line-height: 1.2 !important;
  }
}

/* 2. TABLET: */
@media (min-width: 768px) and (max-width: 991.98px) {
  .navbar-title {
    font-size: 1.3rem !important;
  }
}

/* 3. LAPTOP / DESKTOP: */
@media (min-width: 992px) {
  .navbar-title {
    font-size: 1.85rem !important;
  }
}

.navbar {
  background: linear-gradient(to right, #5ac720, #fc5b5b);
}

.navbar-brand {
  font-size: x-large;
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
} 

.navbar-logo {
  width: 40px;
  height: 40px;
}

@media (min-width: 992px) {
  .navbar-logo {
    width: 50px;
    height: 50px;
  }
}

.collapse {
  font-size: 1.2rem;
}

.wave-top {
  background: linear-gradient(to right, #5ac720, #fc5b5b);
  position: relative;
  overflow: hidden;

  min-height: 200px;
  display: flex;
  align-items: center; 
  justify-content: center;
  
  font-size: 4.5rem;
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

.wave {
  display: block;
  width: 100%;
  height: 120px;
  fill: #ffffff;
  
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1; 
}

.banner-schlauch {
  width: 100%;
  height: 450px; 
  overflow: hidden;
}

.banner-schlauch img {
  width: 100%;
  height: 100%;
  object-position: 40% 35%;
  object-fit: cover; 
}

.profile-row {
  border-radius: 12px;
  transition: 0.2s;
}

.profile-row:hover {
  background-color: #f8f9fa;
}

h2 {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

.card img {
  height: 450px;
  object-fit: cover;
}

.card {
  border-radius: 15px;
}

.card-body h5 {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

.card p {
  font-size: large;
}

.card-kinder {
  border-radius: 30px; 
}

.card-erwachsene {
  border-radius: 30px;
}

#angebot h4 {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  text-align: center;
}

.custom-list {
  list-style: none;
  padding: 0;
  font-size: 1.2rem;
}

.custom-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.custom-list li:last-child {
  border-bottom: none;
}

.gruppenfoto {
  height: 300px;
  display: block;
  margin: 0 auto;
  border-radius: 15px;
}

footer {
  background: linear-gradient(to right, #5ac720, #fc5b5b);
  color: white;
}

footer h5 {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

ul {
  text-align: center;
  list-style-type: none; 
  padding-left: 0;
}

.card-hover-effect {
  transition: all 0.3s ease;
}

.card-hover-effect:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
}

.highlighted-row {
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

.team-card img {
  height: 450px;
  object-fit: cover;
}

.team-card {
  transition: all 0.4s ease-in-out;
  cursor: pointer;
}

.team-card .card {
  border: 10px solid #e38671 !important; 
  border-radius: 15px;
  position: relative;
  overflow: visible !important; 
}

.team-sticker {
  position: absolute;
  top: -20px;       
  right: -20px;     
  width: 75px;      
  height: 75px;     
  background-color: #e38671; 
  color: #ffffff;   
  border-radius: 50%; 
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 5;      
  transition: transform 0.3s ease-in-out, background-color 0.3s ease;
}

.team-card:hover .team-sticker {
  transform: scale(1.1) rotate(12deg);
  background-color: #d1715b; 
}

.card-hover-effect:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1) !important;
  transition: all 0.3s ease;
}

#close-highlighted {
  transition: transform 0.2s ease, color 0.2s ease;
}

#close-highlighted:hover {
  transform: scale(1.2);
  color: #5ac720 !important;
}

.highlighted-text {
  color: #444;
  font-family: inherit;
}

/* ==========================================
   MOBILE OPTIMIERUNGEN (unter 768px)
   ========================================== */
@media (max-width: 767.98px) {
  /* 1. Hauptbanner Text "Logopädie ist mehr als Worte!" */
  #mainText p {
    font-size: 1.4rem !important; /* Schön lesbar auf Handys */
    padding: 0 10px;
  }

  .banner-schlauch {
    height: 200px !important; 
  }

  .wave-top {
    min-height: 120px;
  }

  /* 2. Team-Karten & Porträts (Köpfe nie abschneiden!) */
  .card img, 
  .team-card img {
    height: 300px !important; 
    object-fit: cover;
    object-position: top center !important; /* Schneidet unten ab, nicht oben */
  }

  .team-sticker {
    width: 60px;
    height: 60px;
    font-size: 0.8rem;
    top: -10px;
    right: -10px;
  }

  .highlighted-card img {
    height: 280px !important;
    object-position: top center !important;
  }

  /* 3. Footer zentrieren */
  footer .row {
    text-align: center;
  }
  
  footer .col-md-3 {
    margin-bottom: 1.5rem;
  }

  /* 4. Praxis & Angebote */
  .gruppenfoto {
    width: 100%;
    height: auto;
    margin-top: 1.5rem;
  }

  /* Angebot-Listen auch mobil zentriert und ohne Aufzählungspunkte halten: */
  #angebot ul {
    text-align: center !important;
    list-style-type: none !important;
    padding-left: 0 !important;
  }
}