:root {
  --rosa: #fddce5;
  --blau: #e6f7fa;
  --lila: #f3e5f5;
  --weiß: #ffffff;
  --text: #333;
  --akzent: #d67ba8;
  --sanft: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", sans-serif;
  background-color: var(--weiß);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--akzent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* NAVIGATION */
.nav {
  background-color: rgba(255, 255, 255, 0.95);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.nav-logo {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--text);
}

/* Desktop Navigation */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.3s var(--sanft);
}

.nav-links li a:hover {
  color: var(--akzent);
}

/* Mobile Navigation */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text);
  display: block;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    width: 100%;
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  }

  .nav-links.show {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }
}

/* HERO */
.hero {
  position: relative;
  height: 70vh;
  background-image: url('../images/header2.jpg');
  background-size: cover;
  background-position: center;
}

/* BUTTON */
.button {
  display: inline-block;
  background-color: var(--rosa);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: bold;
  transition: background-color 0.3s var(--sanft);
}

.button:hover {
  background-color: var(--akzent);
  color: var(--weiß);
}

/* SECTIONS */
.section {
  padding: 4rem 1.5rem;
  text-align: center;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--akzent);
  animation: fadeIn 1s ease-in-out;
}

.section p {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #555;
  animation: fadeIn 2s ease-in-out;
}

/* GRID */
.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-top: 2rem;
  animation: fadeInUp 1.5s ease;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* KARTEN */
.card {
  background-color: var(--blau);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s var(--sanft);
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

/* FARBVARIANTEN */
.card.card-pink { background-color: var(--rosa); }
.card.card-blau { background-color: var(--blau); }
.card.card-lila { background-color: var(--lila); }

/* INFOS */
.info-block {
  background-color: #fff0f5;
  border-top: 1px solid #f4c2d7;
  border-bottom: 1px solid #f4c2d7;
}

.info-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  grid-template-columns: 1fr;
}

.info-grid h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--akzent);
}

@media (min-width: 768px) {
  .info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* KONTAKT */
.section.contact {
  background-color: #fef6f8;
}

.contact-info {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.8;
  animation: fadeInUp 1.2s ease-in-out;
}

/* FOOTER */
footer.footer {
  background-color: #fafafa;
  border-top: 1px solid #eee;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
}


/* TEAM SECTION */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
  animation: fadeInUp 1.5s var(--sanft);
}

@media (min-width: 600px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.team-card {
  background-color: var(--weiß);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s var(--sanft), box-shadow 0.3s var(--sanft);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.team-card img {
  width: 100%;
  max-width: 130px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 4px solid var(--rosa);
}

.team-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--akzent);
}

.team-card p {
  font-size: 0.95rem;
  color: #666;
}


/* SPRECHSTUNDENBLOCK */
.sprechzeiten-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 2rem auto 0 auto;
  animation: fadeInUp 1.2s var(--sanft);
}

@media (min-width: 768px) {
  .sprechzeiten-grid {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
  }
}

.sprechzeiten-box, .praxis-box {
  flex: 1;
  background-color: #fff9fb;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.sprechzeiten-box table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  color: #555;
}

.sprechzeiten-box td {
  padding: 0.4rem 0.6rem;
}

.sprechzeiten-box td:first-child {
  font-weight: bold;
  color: var(--akzent);
}

.praxis-box h4 {
  font-size: 1.2rem;
  color: var(--akzent);
  margin-bottom: 0.5rem;
}

.praxis-box p {
  margin-bottom: 0.5rem;
  color: #555;
}

.leistungen-detailliert .leistungen-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
  animation: fadeInUp 1.5s var(--sanft);
}

@media (min-width: 768px) {
  .leistungen-detailliert .leistungen-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .leistungen-detailliert .leistungen-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.leistung-card {
  background-color: var(--weiß);
  border: 2px solid var(--lila);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s var(--sanft);
  text-align: left;
}

.leistung-card:hover {
  transform: translateY(-6px);
}

.leistung-card i {
  color: var(--akzent);
  width: 28px;
  height: 28px;
  margin-bottom: 0.8rem;
}

.leistung-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--akzent);
}

.leistung-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}


/* BILD-SECTION */
.bild-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  animation: fadeInUp 1.2s var(--sanft);
}

@media (min-width: 768px) {
  .bild-container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.bild-links img {
  width: 100%;
  max-width: 450px;
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s var(--sanft), box-shadow 0.4s var(--sanft);
}

.bild-links img:hover {
  transform: scale(1.03);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.bild-rechts {
  max-width: 500px;
  text-align: left;
}

.bild-rechts h2 {
  font-size: 1.8rem;
  color: var(--akzent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bild-rechts p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.6;
}

/* Pastellfarbene Karten-Varianten */
.pastell-1 {
  background-color: #ffe7ef;
}
.pastell-2 {
  background-color: #e6f7fa;
}
.pastell-3 {
  background-color: #f3e5f5;
}
.pastell-4 {
  background-color: #fff5e6;
}
.pastell-5 {
  background-color: #eaf6ea;
}

.farbig-streifen {
  background-color: #fff0f5; /* zartes Pastellrosa */
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.farbig-streifen .bild-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Farbiger Full-Width-Streifen für Leistungen */
.streifen {
  background-color: #fff8fb; /* Helles, frisches Rosa */
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.streifen .leistungen-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}


.nav-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-logo-text {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--text);
  white-space: nowrap;
}


@media (max-width: 500px) {
  .nav-logo-text {
    font-size: 0.9rem;
    white-space: normal;
  }
  .nav-logo-img {
    height: 32px;
  }
}

/* ANIMATIONEN */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.praxis-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.praxis-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 500px) {
  .praxis-logo {
    height: 40px;
  }

  .praxis-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

.bild-mitte {
  background-color: #fff0f5;
  padding: 4rem 1.5rem;
  text-align: center;
}

.bild-wrapper {
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 1.5s var(--sanft);
}

.zentralbild {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zentralbild:hover {
  transform: scale(1.015);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 0.8rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--akzent);
}

.slideshow {
  position: relative;
  width: 100%;
  max-width: 450px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  aspect-ratio: 3 / 2;
}

.slideshow .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  border-radius: 24px;
}

.slideshow .slide.active {
  opacity: 1;
  z-index: 1;
}

.pastell-bild {
  padding: 0;
  background-color: #fff8fb; /* sehr helles Rosa als Basis */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.leistung-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  transition: transform 0.3s var(--sanft);
}

.pastell-bild:hover .leistung-img {
  transform: scale(1.03);
}

.theme-toggle {
  cursor: pointer;
  margin-left: 1rem;
  padding: 0.5rem;
  border-radius: 50%;
  background-color: transparent;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.theme-toggle svg {
  width: 24px;
  height: 24px;
  color: var(--text);
  transition: transform 0.3s ease, color 0.3s ease;
}

.theme-toggle.dark svg {
  transform: rotate(180deg);
  color: var(--akzent);
}

/* Optional: Positionierung bei sehr kleinen Geräten */
@media (max-width: 600px) {
  .theme-toggle {
    margin-left: auto;
  }
}


#theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 1rem;
  display: flex;
  align-items: center;
  color: var(--text);
}

#theme-toggle i {
  width: 24px;
  height: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --weiß: #121212;
    --text: #f2f2f2;
    --akzent: #f89cc4;
    --rosa: #422a36;
    --blau: #1e2a2c;
    --lila: #2c1e2f;
  }

  body {
    background-color: var(--weiß);
    color: var(--text);
  }
  
  .nav,
  .nav-container,
  .sprechzeiten-box,
  .praxis-box,
  .leistung-card,
  .team-card,
  .leistungen-detailliert,
  .farbig-streifen,
  .section.contact,
  .bild-container,
  .sprechzeiten-grid,
  .sprechzeiten-box,
  .footer,
  .bild-mitte {
    background-color: #1e1e1e;
    color: var(--text);
  }
  
  table,
  table td,
  table th {
    color: var(--text); /* z. B. helles Grau oder Weiß */
  }
  
  .nav-links {
    background-color: #1a1a1a;
  }

  .nav-links li a {
    color: var(--text);
  }

  .nav-links li a:hover {
    color: var(--akzent);
  }

  .footer {
    background-color: #1a1a1a;
    color: #ccc;
  }
  
  .pastell-1 {
    background-color: #3b2b3f; /* dunkles, warmes Lila */
  }

  .pastell-2 {
    background-color: #26333d; /* dunkles Petrol */
  }

  .pastell-3 {
    background-color: #402d2d; /* dunkles Altrosa */
  }

  .pastell-4 {
    background-color: #2f3942; /* Graublau */
  }

  .pastell-5 {
    background-color: #3a3035; /* Beeren-Braun */
  }
  
  body, .leistung-card {
  transition: background-color 0.4s ease, color 0.4s ease;
  }
  
  .section p,
  .leistung-card p,
  .team-card p,
  .sprechzeiten-box p,
  .praxis-box p {
    color: #e0e0e0;
  }
  
  html.dark body {
  background-color: #121212;
  color: #f2f2f2;
}
  
  footer {
    background-color: #121212 !important;
    color: #ccc;
  }

  .footer-content p,
  .footer-links a,
  .footer-links span {
    color: #ccc;
  }

  .footer-links a:hover {
    color: var(--akzent);
  }
  
  .footer, .footer a {
  transition: background-color 0.4s ease, color 0.4s ease;
}
}