/* ── Expertenwissen Dropdown-Navigation ──
   Klick-gesteuert (kein Hover). Shared CSS für alle Seiten die das Dropdown nutzen.
   Desktop: absolute Panel unter dem Trigger.
   Mobile:  Inline-Submenu im Fullscreen-Overlay. */

/* ── Gemeinsam ── */
.has-dropdown {
    position: relative;
}

/* Trigger-Button passt sich optisch an nav ul li a an */
.dropdown-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 16px;
    color: #2e2e2e;
    font-weight: 300;
    font-family: 'Montserrat', sans-serif;
    text-transform: lowercase;
    line-height: 1;
}
.dropdown-toggle:hover {
    color: #39628d;
    border-bottom: 1px solid #39628d;
}
.dropdown-toggle:focus-visible {
    outline: 2px solid #39628d;
    outline-offset: 3px;
}

.dropdown-caret {
    display: inline-block;
    margin-left: 4px;
    font-size: 10px;
    vertical-align: middle;
    transition: transform 0.2s ease;
}
.dropdown-toggle[aria-expanded="true"] .dropdown-caret {
    transform: rotate(180deg);
}

/* ── Desktop Dropdown-Panel ── */
.dropdown-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    background: #fff;
    border-top: 2px solid #97CADF;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
    min-width: 210px;
    z-index: 200;
    text-align: left;
}
.dropdown-menu.is-open {
    display: block;
}
.dropdown-menu li {
    display: block;
    margin: 0;
}
.dropdown-menu li a {
    display: block;
    padding: 11px 20px;
    font-size: 15px;
    color: #2e2e2e;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: none;
}
.dropdown-menu li a:hover {
    color: #39628d;
    background: rgba(151, 202, 223, 0.12);
    border-bottom: none;
}

/* 6. Item im Desktop-Nav: Abstände leicht reduzieren damit nichts quetscht */
nav ul li {
    margin: 0 1.3%;
}

/* Burger-Nav früher einblenden (main.css bricht erst bei 900px um) */
@media screen and (max-width: 1100px) {
    nav ul  { display: none; }
    .navi   { display: block; }
}

/* ── Mobile Fullscreen-Dropdown ── */
.mobile-dropdown-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    text-transform: lowercase;
    cursor: pointer;
    padding: 20px;
    display: block;
    width: 100%;
    text-align: center;
    transition: all 0.4s ease-in-out;
}
.mobile-dropdown-toggle .dropdown-caret {
    font-size: 18px;
    margin-left: 8px;
    vertical-align: middle;
}

.mobile-dropdown-menu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
}
.mobile-dropdown-menu.is-open {
    display: block;
}
.mobile-dropdown-menu li a {
    font-size: 22px !important;
    padding: 12px 20px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    display: block;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s ease-in-out;
}
.mobile-dropdown-menu li a:hover {
    color: #fff !important;
}
