/* -------------------------
   HEADER
-------------------------- */
.site-header {
    position: sticky;
    top: 10;
    z-index: 100;
    background-color: var(--color-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    width: 100%;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* -------------------------
   LOGO
-------------------------- */
.header-logo img {
    height: 210px;
    width: auto;
}

/* -------------------------
   NAV LIST
-------------------------- */
.header-nav .nav-list {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    list-style: none;
}

.nav-link {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0;
    position: relative;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* -------------------------
   DROPDOWN
-------------------------- */
.nav-item {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.6rem;
    margin-left: 4px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    background-color: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    list-style: none;
    min-width: 280px;
    padding: 0.5rem 0;
    z-index: 200;
}

.dropdown-menu.is-open {
    display: block;
	z-index: 100;  
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1.2rem;
    color: var(--color-primary);
    transition: background-color 0.15s ease, color 0.15s ease;
    white-space: normal;
}

.dropdown-item:hover,
.dropdown-item.active {
    background-color: var(--color-light);
    color: var(--color-accent);
}

/* -------------------------
   ANMELDUNG - styled as a subtle button
-------------------------- */
.nav-link--anmeldung {
    padding: 0.4rem 1rem;
    border: 1.5px solid var(--color-accent);
    border-radius: 25px;
    color: var(--color-accent);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link--anmeldung::after {
    display: none;
}

.nav-link--anmeldung:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

/* -------------------------
   LANGUAGE SWITCH
-------------------------- */
.lang-switch {
	font-size: 1.5rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	color: var(--color-primary);
	opacity: 0.6;
	transition: opacity 0.2s ease;
	border: 1.5px solid var(--color-accent);
	border-radius: 25px;
	padding: 0.5rem 1.3rem;
}

.lang-switch:hover {
    opacity: 1;
}

.lang-switch::after {
    display: none;
}

/* =========================================
   BURGER BUTTON
   ========================================= */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1101;  /* above the panel */
    position: relative;
	color: var(--color-text);
}

.burger-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.38s cubic-bezier(0.23, 1, 0.32, 1),
                opacity   0.25s ease,
                width     0.25s ease;
}

/* Smooth morph to X */
.burger-menu.is-open .burger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.burger-menu.is-open .burger-bar:nth-child(2) {
    opacity: 0;
    width: 0;
}
.burger-menu.is-open .burger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Keep burger on top & visible over the dark backdrop */
.burger-menu.is-open {
    color: #000; /* adjust if your panel bg is light */
}

/* Lift the header so the burger escapes its stacking context */
.site-header {
    position: relative;
    z-index: 1102;
}


/* =========================================
   BACKDROP
   ========================================= */
.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1099;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.mobile-nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.35s ease, visibility 0s linear 0s;
}


/* =========================================
   SLIDE-IN PANEL (from right)
   ========================================= */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-blue); /* adjust to your site's bg or brand colour */
    z-index: 1100;
    display: flex;
    flex-direction: column;
    padding: 80px 1.75rem 2rem;
    overflow-y: auto;
	width: 100%;

    /* Hidden: shifted off-screen to the right */
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.38s cubic-bezier(0.23, 1, 0.32, 1),
                visibility 0s linear 0.38s;
}

.mobile-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.38s cubic-bezier(0.23, 1, 0.32, 1),
                visibility 0s linear 0s;
}

body.mobile-nav-open {
    overflow: hidden;
}


/* =========================================
   MOBILE NAV LIST
   ========================================= */
.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
	padding-top: 105px;
	
}

.mobile-nav-link {
    display: block;
    width: 100%;
    padding: 0.9rem 0;
    font-size: 1.1rem;
    font-weight: 400;
    color: inherit;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    line-height: 1.3;
    transition: opacity 0.2s ease;
}


.mobile-nav-link:hover,
.mobile-nav-link.active {
    opacity: 0.55;
}

.mobile-lang-switch {
    letter-spacing: 0.08em;
    font-size: 1rem;
    width: fit-content;
    color: var(--color-primary);
    transition: opacity 0.2s ease;
    border: 1px solid var(--color-accent);
    border-radius: 25px;
    padding: 0.5rem 1rem;
}



/* =========================================
   "DIE PRAXIS" — always expanded sub-list
   ========================================= */

.mobile-sub-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0.75rem 0.75rem;
}

.mobile-sub-list li {
    border: none;
}

.mobile-sub-item {
    display: block;
    padding: 0.55rem 0;
    font-size: 1rem;
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.mobile-sub-item:hover,
.mobile-sub-item.active {
    opacity: 1;
}
/* =========================================
   RESPONSIVE — show burger, hide desktop nav
   ========================================= */
@media (max-width: 768px) {
	.site-header{
		max-height: inherit;
		top: 0;
        left: 0;
        right: 0;
		position: fixed; 
	}
	.header-inner{
	  min-height: 0;
	}
	.header-logo img{
	  max-height: 30vw;
	}
	
    .header-nav {
        display: none;
    }

    .burger-menu {
        display: flex;
    }
	body {
        padding-top: 30vw; /* adjust value to match your actual mobile header height */
    }
}
