/* Farbcodes:
    lila: #C2ACD3
    mint: #BEF9C3
*/

/* Schriftarten einbinden */
@font-face {
    font-family: 'Exo';
    src: url('fonts/Exo-Regular.woff2') format('woff2'),
         url('fonts/Exo-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Exo';
    src: url('fonts/Exo-Bold.woff2') format('woff2'),
         url('fonts/Exo-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Great Vibes';
    src: url('fonts/GreatVibes-Regular.woff2') format('woff2'),
         url('fonts/GreatVibes-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

/* Grundlegende Stile */
body {
    font-family: 'Exo', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
    color: #333;
    line-height: 1.2;
}

.container {
    width: 80%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: visible;
    background-color: white;
}

/* Header und Footer Stile */
.header, .footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header {
    background: white;
    color: black;
    padding: 10px 0;
    border-bottom: #BEF9C3 3px solid;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-text-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
    padding-left: 0;
    flex-direction: row; /* Sicherstellen, dass die Richtung horizontal bleibt */
    flex-wrap: wrap; /* Ermöglicht das Umbruchverhalten bei kleineren Bildschirmen */
}

header .logo {
    max-width: 100px;
    height: auto;
    margin-right: 10px;
}

.text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    width: auto;
}

.title-text {
    font-family: 'Great Vibes', cursive;
    font-size: 38px;
    color: #C2ACD3;
}

.colored-line {
    border: 1px solid #BEF9C3;
    margin: 2px 0;
    width: 100%;
}

.subtitle-text {
    font-family: 'Exo', Arial, sans-serif;
    font-size: 16px;
    color: #C2ACD3;
    text-align: center;
    padding-top: 5px;
    padding-bottom: 0;
}

/* Navigation Stile */
.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.menu li {
    margin: 0;
    padding: 10px 15px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.menu li a {
    text-decoration: none;
    color: black;
    transition: color 0.3s ease;
}

.menu li a:hover, .menu li a:focus {
    color: #C2ACD3;
    text-decoration: underline;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .menu-toggle:checked + .menu-icon + .menu {
        display: flex;
    }

    .menu-icon {
        display: block;
        background: #C2ACD3;
        color: white;
        padding: 10px;
        text-align: center;
        cursor: pointer;
    }

    .logo-text-container {
        flex-direction: row;
        justify-content: center;
    }

    header .logo {
        max-width: 80px;
        margin-right: 10px;
    }

    .text-container {
        align-items: center;
    }

    .title-text {
        font-size: 28px;
    }

    .subtitle-text {
        font-size: 14px;
        padding-top: 5px;
        text-align: center;
    }
}

/* Hauptteil Stile */
main {
    padding: 20px 0;
    border-bottom: #BEF9C3 3px solid;
}

main .container {
    width: 80%;
    max-width: 900px;
}

main h2, main h1 {
    color: #C2ACD3;
}

main p, main ul {
    line-height: 1.2;
}

main ul {
    list-style: square;
    padding-left: 20px;
}

.center-text {
    text-align: center;
}

.justify-text {
    text-align: justify;
}

.great-vibes {
    font-family: 'Great Vibes', cursive;
    font-size: 38px;
    line-height: 1.5;
}

.center-justify {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.center-justify p {
    width: 100%;
    max-width: 290px;
    text-align: center;
}

.contact-info p {
    line-height: 1.0;
    margin: 5px 0;
}

/* Karten-Design */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 40px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Hervorgehobener Text */
.highlight-text {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
}

/* Footer Stile */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 0;
    background-color: #333;
    color: white;
}

.footer-menu {
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: flex-start;
    background-color: transparent;
    padding-left: 80px;
}

.footer-menu li {
    margin: 0 10px;
}

.footer-menu a {
    color: #BEF9C3;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-menu a:hover, .footer-menu a:focus {
    color: #ffffff;
    text-decoration: underline;
}

.footer-text {
    font-size: 14px;
    text-align: right;
    margin: 0;
    margin-right: 40px;
}

/* Responsives Design für Footer, Container etc. */
@media (max-width: 768px) {
    .container {
        width: 90%;
        padding: 0 10px;
    }

    .header, .footer-container {
        flex-direction: column;
        align-items: center;
    }

    header .logo {
        max-width: 80px;
    }

    .menu-toggle {
        display: none;
    }

    .menu-icon {
        display: block;
        background: #C2ACD3;
        color: white;
        padding: 10px;
        text-align: center;
        cursor: pointer;
    }

    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        overflow-x: visible;
    }

    .menu-toggle:checked + .menu-icon + .menu {
        display: flex;
    }

    .menu li {
        margin: 10px 0;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-menu {
        flex-direction: column;
        align-items: center;
        padding-left: 0;
    }

    .footer-menu li {
        margin: 10px 0;
    }

    .footer-text {
        text-align: center;
        margin-top: 10px;
        margin-right: 0;
    }

    .card {
        padding: 10px;
        margin: 20px 0;
    }
}

/* Karten-Container */
.map-container {
    width: 100%;
    max-width: 400px;
    height: auto;
    position: relative;
    margin: 0 auto;
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-link-container {
    text-align: center;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .map-container {
        max-width: 250px;
    }
}

@media (min-width: 769px) {
    .map-container {
        max-width: 400px;
    }
}

/* Neue Stile für Hervorhebungen */
.highlight {
    background-color: #C2ACD3;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}

.highlight-bg {
    background-color: #C2ACD3;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    display: block;
    margin: 10px auto 0 auto;
    text-align: center;
    width: calc(100% - 40px);
    position: relative;
}

/* CSS für Logopaedie-Seite */
.therapist-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 150px;
    margin-bottom: 50px;
    position: relative;
}

.therapist-photo-container {
    position: absolute;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 50%;
    z-index: 2;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 40px;
}

.therapist-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.therapist-title {
    background-color: #C2ACD3;
    color: white;
    padding: 10px 20px;
    text-align: center;
    position: relative;
    width: calc(100% - 40px);
    top: 25px;
    border-radius: 10px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    margin: 0 auto;
    height: 60px;
}

.therapist-name {
    background-color: white;
    color: #C2ACD3;
    padding: 10px;
    text-align: center;
    margin-top: -120px;
    width: calc(100% - 40px);
    max-width: 800px;
    border-radius: 5px;
    z-index: 3;
    position: relative;
    top: -60px;
    font-weight: bold;
}

/* CSS für Ergotherapie-Seite */
.therapist2-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 150px;
    margin-bottom: 50px;
    position: relative;
}

.therapist2-photo-container {
    position: absolute;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 50%;
    z-index: 2;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 40px;
}

.therapist2-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.therapist2-title {
    background-color: #BEF9C3;
    color: gray;
    padding: 10px 20px;
    text-align: center;
    position: relative;
    width: calc(100% - 40px);
    top: 25px;
    border-radius: 10px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    margin: 0 auto;
    height: 60px;
}

.therapist2-name {
    background-color: white;
    color: black;
    padding: 10px;
    text-align: center;
    margin-top: -120px;
    width: calc(100% - 40px);
    max-width: 800px;
    border-radius: 5px;
    z-index: 3;
    position: relative;
    top: -60px;
    font-weight: bold;
}

.highlight_ergo-bg {
    background-color: #BEF9C3;
    color: gray;
    padding: 10px 20px;
    border-radius: 10px;
    display: block;
    margin: 10px auto 0 auto;
    text-align: center;
    width: calc(100% - 40px);
    position: relative;
}

.impressum-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.section-gap {
    margin-top: 20px;
}

.siegel {
    display: left;
    margin: 0px auto 30px;
    max-width: 100px;
}

/* Weitere spezifische Regeln */
.impressum-spacing p {
    margin-bottom: 15px;
}

.impressum-spacing br {
    margin-bottom: 15px;
}

.impressum-spacing .compact-space br {
    margin-bottom: 15px;
}

.impressum-content {
    max-width: 100%;
    width: 100%;
}

.left-align {
    text-align: left;
    margin-bottom: 5px;
}

.left-align strong {
    display: block;
    margin-bottom: 3px;
}

.left-align br {
    display: block;
    margin-bottom: 5px;
}

.compact-space br {
    margin-bottom: 2px;
}

.extra-space {
    margin-top: 40px;
}

.mint-line {
    border: 1px solid #BEF9C3;
    margin: 10px 0;
    width: 100%;
}

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 40px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.container {
    width: 80%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: visible;
    background-color: white;
}

/* Stile für die "Aktuelles"-Seite */
.card .date {
    font-size: 16px;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
}

.mint-line {
    border: 1px solid #BEF9C3;
    margin: 10px 0;
    width: 100%;
}

/* Video Container */
.video-container {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    cursor: pointer;
}

@media (max-width: 768px) {
    .video-container {
        max-width: 300px;
    }
}

/* Modales Video */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.video-modal video {
    max-width: 90%;
    max-height: 90%;
}

.article-image-container {
    text-align: center;
}

.article-image {
    max-width: 400px;
    cursor: pointer;
    margin: 10px;
}

@media (max-width: 768px) {
    .article-image {
        max-width: 200px;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.modal-content, .modal-caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}

.hidden {
    display: none;
}

/* --- Grundlayout: <ul class="menu"> in einer Zeile, jedes <li> als inline-block --- */
ul.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center; /* Zentriert die <li> */
  background: #fff;   /* Falls nötig */
  font-size: 0;       /* Trick, damit keine Lücken zwischen <li>-Elementen entstehen */
}

ul.menu > li {
  display: inline-block;
  vertical-align: middle;
  font-size: 16px; /* Zurücksetzen des font-size: 0 Trick */
  margin: 0;
  padding: 0;
}

/* Links im Menü */
ul.menu li a {
  display: inline-block;
  padding: 10px 15px;
  color: black;
  text-decoration: none;
  transition: color 0.3s ease;
}

ul.menu li a:hover,
ul.menu li a:focus {
  color: #C2ACD3;
  text-decoration: underline;
}

/* --- Spezielle Klasse für <details>-Dropdown --- */
.details-dropdown {
  position: relative; /* Für das absolute Untermenü */
}

/* Das <details> selbst als block, ohne extra margin/padding */
.details-dropdown details {
  display: inline-block; /* Bleibt in einer Zeile */
  margin: 0;
  padding: 0;
}

/* Entfernt Standard-Pfeil in Chrome/Safari */
.details-dropdown summary::-webkit-details-marker {
  display: none;
}

/* Das <summary> soll wie ein normaler Menülink aussehen */
.details-dropdown summary {
  display: inline-block;
  margin: 0;
  padding: 10px 15px;  /* Gleiche Werte wie .menu li a */
  border: none;
  background: none;
  cursor: pointer;
  color: black;
  font-size: 16px;
  line-height: normal;
  text-decoration: none;
}

/* Hover/Fokus-Effekt für <summary> */
.details-dropdown summary:hover,
.details-dropdown summary:focus {
  color: #C2ACD3;
  text-decoration: underline;
}

/* Das Untermenü */
.details-dropdown .submenu {
  display: none;       /* Standard: versteckt */
  position: absolute;  /* Relativ zum .details-dropdown */
  top: 100%;           /* Direkt unter dem zusammengeklappten Menüpunkt */
  left: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #ccc;
  min-width: 160px;
  z-index: 999;
}

/* Beim Öffnen von <details> wird .submenu sichtbar */
.details-dropdown details[open] .submenu {
  display: block;
}

/* Links im Untermenü */
.details-dropdown .submenu li a {
  display: block;
  padding: 10px 15px;
  color: black;
  text-decoration: none;
}

.details-dropdown .submenu li a:hover,
.details-dropdown .submenu li a:focus {
  background: #C2ACD3;
  color: #fff;
}
