/* Gemeinsame Styles für alle Unterseiten */

/* Hero-Bereich */
.hero-section {
  position: relative;
  height: 350px;
  overflow: hidden;
  margin-top: 70px;
  border-radius: 70px 70px 0 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
  z-index: 2;
}

.hero-content {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 100%;
  padding: 0 40px;
  z-index: 10;
  color: white;
  text-align: left;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 600px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.hero-btn {
  display: inline-block;
  background: linear-gradient(to right, #95c121, #7da80c);
  color: white;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 10px 25px rgba(149, 193, 33, 0.25);
  transition: all 0.3s ease;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(149, 193, 33, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-accent {
    bottom: 40px;
    right: 40px;
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 300px;
    border-radius: 50px 50px 0 0;
  }
  
  .hero-content {
    padding: 0 20px;
  }
  
  .hero-content h1 {
    font-size: 28px;
    margin-bottom: 10px;
  }
  
  .hero-content p {
    font-size: 14px;
    margin-bottom: 15px;
  }
  
  .hero-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .hero-accent {
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
  }
}

/* Team page styles */
.team-img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.team-member {
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.team-position {
  color: #777;
  font-style: italic;
  margin-top: -10px;
  margin-bottom: 20px;
}

.specialty-list {
  padding-left: 0;
  list-style: none;
  margin-bottom: 25px;
}

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

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

.accordion {
  margin-bottom: 15px;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
}

.accordion-header {
  background-color: #f9f9f9;
  padding: 12px 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.accordion-header:hover {
  background-color: #f2f2f2;
}

.accordion-header h4 {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.accordion-content.active {
  max-height: 2000px;
}

.accordion-inner {
  padding: 15px;
  background-color: #fff;
}

.vita-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.vita-table th {
  width: 30%;
  padding: 8px;
  text-align: left;
  vertical-align: top;
  font-weight: 600;
  color: #555;
}

.vita-table td {
  padding: 8px;
  vertical-align: top;
}

.vita-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.education-list {
  padding-left: 0;
  list-style: none;
}

.education-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

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

.info-box {
  background-color: #f5f9ee;
  border-left: 3px solid #95c121;
  padding: 15px;
  margin-top: 30px;
}

.info-box p {
  margin: 0;
}

/* Infobox für Hinweise und Links */
.infobox {
  background-color: #f5f9ee;
  border-left: 3px solid #95c121;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 5px;
  position: relative;
}

.infobox p {
  margin: 0;
}

.infobox a {
  color: #95c121;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.infobox a:hover {
  text-decoration: underline;
}

.infobox i.fa-info-circle {
  color: #95c121;
  margin-right: 8px;
}

.team-member-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.team-text {
  flex: 1;
}

.team-photo {
  width: 120px;
  height: 120px;
  margin-left: 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #95c121;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

@media (min-width: 992px) {
  .team-photo {
    width: 200px;
    height: 200px;
  }
}

.doctor-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-photo:hover .doctor-photo {
  transform: scale(1.08);
}

.team-photo-large {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.team-photo-large:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.team-photo-large::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(149, 193, 33, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-photo-large:hover::after {
  opacity: 1;
}

.team-photo-large:hover .doctor-photo {
  transform: scale(1.3);
}

/* Neues Team-Layout mit größerem Foto */
.team-member-layout {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.team-info {
  flex: 1;
}

.team-photo-large {
  width: 100%;
  height: 300px;
  border-radius: 15px;
  overflow: hidden;
  border: 3px solid #95c121;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  margin-bottom: 20px;
}

/* Desktop-Layout */
@media (min-width: 992px) {
  .team-member-layout {
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
  }
  
  .team-info {
    flex: 1;
  }
  
  .team-photo-large {
    width: 320px;
    height: 320px;
    margin-top: 0;
    margin-bottom: 0;
  }
  
  .team-info h3 {
    margin-top: 0;
  }
}

.team-info .specialty-list {
  margin-bottom: 0;
}

.team-info h4 {
  margin-top: 15px;
  margin-bottom: 10px;
}

.placeholder-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f9ee;
}

.placeholder-photo i {
  font-size: 48px;
  color: #95c121;
}

.placeholder-photo.team-photo-large {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f9ee;
}

.placeholder-photo.team-photo-large i {
  font-size: 100px;
  color: #95c121;
}

@media (max-width: 767px) {
  .vita-table th {
    width: 40%;
  }
  
  .education-list li {
    font-size: 13px;
  }
  
  .team-member-header {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }

  .team-photo {
    margin-left: 0;
    margin-bottom: 15px;
  }
  
  .team-text {
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 992px) {
  .team-intro {
    display: flex;
    align-items: center;
    gap: 30px;
  }
  
  .team-intro .team-img {
    width: 40%;
    margin-bottom: 0;
  }
}

@media (max-width: 991px) {
  .team-member-layout {
    flex-direction: column;
  }
  
  .team-info {
    display: flex;
    flex-direction: column;
  }
  
  .team-info h3,
  .team-info .team-position {
    order: 1;
    text-align: center;
  }
  
  .team-photo-large {
    order: 2;
    width: 70%;
    height: auto;
    aspect-ratio: 1/1;
    margin: 15px auto 20px;
  }
  
  .team-info .specialties {
    order: 3;
  }
}

/* Desktop/Mobile Ansicht Toggle */
.mobile-only {
  display: none;
}

.desktop-only {
  display: block;
}

/* Team-Foto-Container in der mobilen Ansicht */
.team-photo-container {
  margin: 15px 0 20px;
  width: 100%;
}

.team-photo-container .team-photo-large {
  width: 80%;
  height: auto;
  aspect-ratio: 1/1;
  margin: 0 auto;
}

/* Mobile-Anpassungen */
@media (max-width: 991px) {
  .mobile-only {
    display: block;
  }
  
  .desktop-only {
    display: none;
  }
  
  .team-info h3 {
    margin-bottom: 5px;
  }
  
  .team-position {
    margin-top: 0;
    margin-bottom: 10px;
  }
  
  .team-member-layout {
    flex-direction: column;
  }
}

/* Sidebar Navigation Styles for Mobile (Services Accordion) */
@media (max-width: 768px) {
  .sidebar-nav .services-grid {
    display: none;
    margin-top: 10px;
    flex-direction: column;
  }

  .sidebar-nav.open .services-grid {
    display: flex;
  }

  .sidebar-nav .nav-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    background: #f8f9fa;
  }

  .sidebar-nav .nav-title:after {
    content: '\f107'; /* Down arrow */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #95c121;
    transition: transform 0.3s ease;
  }

  .sidebar-nav.open .nav-title:after {
    transform: rotate(180deg);
  }
}
