/* =====================
   Grundstruktur / Layout
   ===================== */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f0f0f0;
    padding-top: 120px;  /* Platz für den fixierten Header schaffen */
}

html {
    scroll-behavior: smooth;
}

section {
    background: #fff;
    padding: 2rem;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    scroll-margin-top: 120px; /* Höhe deines fixierten Headers */
}

h1, h2 {
    color: #009ae8;
}

h3, h4 {
    color: #000;
    font-weight: bold;
}

a {
    color: #009ae8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =====================
   Header / Navigation
   ===================== */

header {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
    position: fixed;  /* Fixiert den Header */
    top: 0;  /* Setzt den Header ganz oben auf der Seite */
    left: 0;
    width: 100%;  /* Macht den Header über die gesamte Breite sichtbar */
    z-index: 1000;  /* Stellt sicher, dass der Header immer oben ist */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 90%;
  width: 100%;

    margin: 0 auto;
    padding: 0 1rem;
    gap: 3rem;
}





.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 auto;
}

.logo {
    height: 100px;
    margin-right: 0.8rem;
}

.schriftzug {
    height: 80px;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    position: relative;
    padding: 0 0.4rem;
    display: flex;
    align-items: center;
    height: 100px;
}

nav ul li + li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background-color: #ccc;
}

nav ul li a {
    display: block;
    padding: 1rem 2rem;
    color: #848482;
    text-decoration: none;

    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
    font-size: 1.05rem;   /* NEU: größerer Schriftgrad */
    font-weight: 500;     /* NEU: leicht fetter für bessere Lesbarkeit */
}
nav ul li a:hover {
    background-color: rgba(0, 154, 232, 0.15);
    color: black;
    text-decoration: none;
}

nav ul li a.highlight {
    background-color: rgba(0, 154, 232, 0.15);
    color: black;
    text-decoration: none;
}



/* =====================
   Startseite / Home
   ===================== */

#home {
    background: #fff;
    padding: 2rem;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;

}

#home button {
    background: #009ae8;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.aktuelles-box {
    background-color: rgba(0, 154, 232, 0.1);
    max-width: 60%;
    padding: 1.5rem;
    margin: 0 auto 2rem auto; /* zentriert und Abstand nach unten */
    border-radius: 8px;
}

.aktuelles-box h2 {
    margin-top: 0;
    color: #009ae8;
}


@media (max-width: 768px) {
    body {
        padding-top: 70px;  /* Reduziere den Abstand für kleinere Bildschirme */
    }
}

.begrüßung h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.begrüßung p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 1rem;
}

/* =====================
   Team
   ===================== */

.teamfoto {
    margin: 2.5rem 0;
    text-align: center;
}

.teamfoto img {
    max-width: 80%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dentist-team.row-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 4rem;
    margin-bottom: 4rem;
}

.hamburger {
    display: none;
  justify-content: space-between;

    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
  display: block;
  width: 100%;

    height: 3px;
    width: 25px;
    background: #009ae8;
    border-radius: 2px;
}

.vertical-divider {
    width: 2px;
    background-color: #ccc;
    height: auto;
    min-height: 300px;
    align-self: center;
}

.team-member.large {
    max-width: 45%;
    text-align: center;
}

.team-photo.large-img {
    width: 100%;
    max-width: 90%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
    margin-bottom: 1rem;
    cursor: pointer;
}

.staff-team {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.team-member.polaroid {
    background: white;
    border: 1px solid #ccc;
    padding: 1rem;
    box-shadow: 2px 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    transform: rotate(-1deg);
    transition: transform 0.2s ease;
    width: 250px;
}

.team-member.polaroid:hover {
    transform: rotate(0deg) scale(1.02);
}

.team-photo {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

ul.vita {
    max-width: 60%;
    list-style-position: outside;
    padding-left: 1.2rem;
    text-align: left;
    margin: 1rem 0;
}

.vita {
    text-align: left;
    margin: 0 auto;
    display: inline-block;
}

/* =====================
   Leistungen
   ===================== */

.leistungsblock {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    border-left: 4px solid #59b6a4;
    background-color: #f9f9f9;
    border-radius: 0.5rem;
}

.leistungsblock h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    margin-bottom: 0.5rem;
}

.leistungsblock ul {
    padding-left: 1.2em;
    list-style-type: disc;
}

.leistungsblock li {
    margin-bottom: 0.3em;
}

 .accordion {
    max-width: 700px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 1rem;
    background: #f9f9f9;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);

}

.accordion-header {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: #ffffff;
    cursor: pointer;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header i {
    margin-right: 0.6rem;
    font-size: 1rem;
}

.accordion-icon i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon i {
    transform: rotate(90deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 1rem;
    background: #f9f9f9;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: none; /* Erlaubt dem Inhalt, seine natürliche Höhe einzunehmen */
}




.accordion-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0.8rem 0;
}

.accordion-content li {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.sub-accordion-content {
  max-height: 0;
  overflow: hidden;
    padding: 0 1rem;
  transition: max-height 0.5s ease-out, padding 0.3s ease;
}


.sub-accordion-content.open {
  max-height: 1500px; /* Oder höher – je nach Länge des Inhalts */
  overflow: visible;
}






.sub-accordion-header {
    width: 100%;
    background: #ffffff;
    border: none;
    font-size: 0.95rem;
    padding: 0.5rem 0.7rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-top: 0.5rem;
    border-radius: 0.4rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Standard-Styles für das Sub-Accordion */

/* Optional: Für bessere Sichtbarkeit von aktiven Elementen */
.sub-accordion-header.active {
    font-weight: bold;
}







.sub-img {
    max-width: 100%;
    margin-top: 0.5rem;
    border-radius: 0.4rem;
}

/* =====================
   Galerie / Ambiente
   ===================== */

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.gallery-item {
    width: 100%;
    max-width: 300px;
    margin: 10px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.caption {
    margin-top: 8px;
    font-size: 14px;
    color: #555;
}

/* =====================
   Partner
   ===================== */

#partners {
    padding: 2rem;
    text-align: center;
}

.partner-category {
    margin-bottom: 2rem;
}

.partner-category h3 {
    margin-bottom: 1rem;
}

.partner-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.partner {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    text-align: left;
    width: calc(50% - 2rem);
    box-sizing: border-box;
}

.partner-info {
    flex: 1;
    margin-right: 1rem;
}

.partner-logo {
    max-width: 200px;
    height: auto;
}

.partner h4, .partner p {
    margin: 0.5rem 0;
}

.partner a {
    color: #009ae8;
    text-decoration: none;
}


  /* Versteckt das Element standardmäßig */
  .mobile-only {
    display: none;
  }

  /* Zeigt es auf Bildschirmen mit maximal 768px Breite (typisch für Smartphones) */
  @media (max-width: 768px) {
    .mobile-only {
      display: inline;
    }
  }

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

/* =====================
   Kontakt
   ===================== */

.contact-info, .contact-details, .contact-form, .contact-directions {
    margin-bottom: 2rem;
    text-align: center;
}

.contact-info h3, .contact-details h3, .contact-form h3, .contact-directions h3 {
    margin-bottom: 1rem;
}

.contact-info p strong, .contact-details p strong {
    font-weight: bold;
}

.contact-info p, .contact-details p {
    margin: 0.5rem 0;
}

.contact-details .spacing {
    margin-top: 1rem;
}

.contact-form p {
    margin: 0.5rem 0;
}

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

.contact-form,
.contact-directions {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-form,
  .contact-directions {
    grid-column: span 1;
  }
}

.footer-link {
    color: #009ae8;
}

.footer-link:hover {
    text-decoration: underline;
}

.highlight {
    color: #009ae8;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.4rem;
}

.contact-form button.btn {
  background-color: #009ae8;
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;
}


form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.form-group label {
    width: 150px;
    margin-right: 1rem;
    text-align: right;
}

.form-group input, .form-group textarea {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    margin-top: 1rem;
    background: #009ae8;
    color: #fff;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

#map iframe {
    width: 100%;
    height: 350px;
    border: 1px solid black;
}

/* =====================
   Footer
   ===================== */

footer {
    background: #fff;
    color: #999;
    text-align: center;
    padding: 1rem 0;
    position: relative;
    width: 100%;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 2rem;
    border-bottom: 1px solid #ddd;
}

.footer-column {
    flex: 1;
    text-align: left;
    min-width: 0;
}

.footer-column p {
    margin: 0rem 0;
    font-size: 0.8rem;
}

.footer-bottom {
    padding: 0rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.8rem;
}

.footer-bottom a {
    color: #009ae8;
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.footer-column.social {
    text-align: right;
}

.footer-column.social a {
    color: #999;
    margin-left: 10px;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.2rem;
}

.footer-column.social a:hover {
    color: #009ae8;
}

/* =====================
   Responsive Design
   ===================== */

@media (max-width: 768px) {



    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .logo-container {
        margin-bottom: 1rem;
        justify-content: center;
  

    }

    .dentist-team.row-layout {
        flex-direction: column;
    }

  .dentist-team {
    flex-direction: column;
    align-items: center;
  }

  .team-member.large {
    width: 90%;
    max-width: 400px;
  }

  .team-photo.large-img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }

    .partner-row {
        flex-direction: column;
        align-items: center;
    }

    .partner {
  	  width: 100%;
    }

    .partner-logo {
        margin-top: 1rem;
        margin-left: 0;
	width: 50%;
    }

    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-group label {
        width: auto;
        margin-right: 0;
        text-align: left;
    }

    .form-group input, .form-group textarea {
        width: 100%;
    }

    .footer-top {
        flex-direction: column;
        text-align: center;
    }

    .footer-column {
        margin-bottom: 1rem;
    }

    .footer-bottom p {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom a {
        margin: 0.5rem 0;
    }

  .header-container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Hamburger ganz rechts */

  justify-content: space-between;
  flex-wrap: nowrap; /* verhindert Umbruch */
  padding: 1rem;
  width: 100%;

  }

   .hamburger {
        display: flex;
    margin-left: auto; /* schiebt den Hamburger ganz nach rechts */

    }

  .logo {
    height: 60px;
  }

  .schriftzug {
    height: 60px;
  }

  nav {
    width: 100%;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
    display: none; /* standardmäßig versteckt */
    background-color: white;
    border-top: 1px solid #ddd;
  }

  nav ul li {
    height: auto;
    width: 100%;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #eee;
  }

  nav ul li + li::before {
    display: none;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
    margin-left: auto;
  }

  nav ul.show {
    display: flex;
  }



    nav ul {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        display: none;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        height: auto;
        padding: 1rem;
        border-top: 1px solid #eee;
    }
}


}
