/* =====================================================================
   THE Q – Navigation (qnav) · v1.0.5
   Keine Fonts (Montserrat kommt aus style.css). Opake Menü-Hintergründe.
   ===================================================================== */
   :root {
	--qn-bg: #2e2b29;
	--qn-bg2: #383330;
	--qn-gold: #a68651;
	--qn-gold2: #c9a86a;
	--qn-gold3: #f0d4a6;
	--qn-txt: #fff;
	--qn-mut: #b0a392;
	--qn-line: rgba(255, 255, 255, .1);
	--qn-h: 96px;
	--qn-h-stuck: 70px;
	--qn-pad: clamp(20px, 3.2vw, 56px);
	--qn-ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Basis ---------- */
.qn, .qn *, .qn-m, .qn-m * { box-sizing: border-box; }
.qn, .qn-m { font-family: 'Montserrat', Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.qn ul, .qn-m ul { list-style: none; margin: 0; padding: 0; }
.qn a, .qn-m a { text-decoration: none; }
.qn button, .qn-m button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
.qn-ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.qn-ic .qn-fill { fill: currentColor; stroke: none; }
.qn a:focus-visible, .qn button:focus-visible, .qn-m a:focus-visible, .qn-m button:focus-visible { outline: 2px solid var(--qn-gold2); outline-offset: 3px; border-radius: 6px; }

/* ---------- Leiste ---------- */
.qn {
	position: fixed; top: 0; left: 0; right: 0; z-index: 2147483000;
	background: transparent; color: var(--qn-txt);
	transition: background-color .3s ease, box-shadow .3s ease;
}
.admin-bar .qn { top: 32px; }
@media (max-width: 782px) { .admin-bar .qn { top: 46px; } }
.qn.is-solid { background: var(--qn-bg); }
/* Sticky: Glas. Leicht dunkel getönt, damit weiße Schrift auch über
   hellen Sektionen (#ede9e1) lesbar bleibt. Rein weißes Glas: rgb(255 255 255 / 6%) */
.qn.is-stuck {
	background: rgb(46 43 41 / 55%);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, .25);
}
/* Menü offen: Leiste opak, damit sie mit dem Panel verschmilzt */
.qn.is-open { background: var(--qn-bg); box-shadow: none; }

.qn-in {
	height: var(--qn-h);
	padding: 0 var(--qn-pad);
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
	transition: height .3s var(--qn-ease);
}
.qn.is-stuck .qn-in { height: var(--qn-h-stuck); }

.qn-logo { justify-self: start; display: inline-flex; align-items: center; line-height: 0; }
.qn-logo img { height: 75px; width: auto; max-width: 180px; transition: height .3s var(--qn-ease); }
.qn.is-stuck .qn-logo img { height: 55px; }

/* Menü (zentriert) */
.qn-nav { height: 100%; }
.qn-menu { display: flex; height: 100%; align-items: stretch; gap: clamp(4px, 1.2vw, 18px); }
.qn-item { position: relative; display: flex; align-items: center; }
.qn .qn-link {
	display: inline-flex; align-items: center; gap: 6px; height: 100%;
	padding: 0 12px; font-size: 16px; font-weight: 400; letter-spacing: .01em; line-height: 1;
	color: var(--qn-txt) !important; white-space: nowrap; position: relative;
}
.qn-link::after {
	content: ''; position: absolute; left: 12px; right: 12px; bottom: calc(50% - 16px); height: 1px;
	background: var(--qn-gold2); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--qn-ease);
}
.qn-item:hover > .qn-link::after, .qn-item.is-open > .qn-link::after, .qn-item.is-current > .qn-link::after { transform: scaleX(1); }
.qn-ic--chev { width: 14px; height: 14px; opacity: .7; transition: transform .3s var(--qn-ease); }
.qn-item.is-open .qn-ic--chev { transform: rotate(180deg); }

/* Aktionen rechts */
.qn-actions { justify-self: end; display: flex; align-items: center; gap: 6px; }
.qn-icbtn {
	width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	color: var(--qn-txt) !important; border: 1px solid transparent; transition: border-color .25s ease, color .25s ease;
}
.qn-icbtn:hover, .qn-icbtn[aria-expanded="true"] { border-color: rgba(255, 255, 255, .3); color: var(--qn-gold3) !important; }
.qn-cta {
	margin-left: 8px; display: inline-flex; align-items: center; gap: 8px;
	background: var(--qn-gold); color: #fff !important; padding: 13px 20px; border-radius: 3px;
	font-size: 15px; font-weight: 700; letter-spacing: .02em; line-height: 1; white-space: nowrap;
	transition: background-color .25s ease;
}
.qn-cta:hover { background: #b8955c; }
.qn-cta .qn-ic { width: 17px; height: 17px; }

/* ---------- Panels (Desktop) ---------- */
.qn-panel { display: none; }
.qn-panel.is-open { display: block; animation: qnIn .26s var(--qn-ease) both; }
@keyframes qnIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
/* unsichtbare Brücke gegen Flackern */
.qn-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }

.qn-eyebrow { margin: 0 0 12px; padding: 0; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--qn-gold2); }

/* Dropdown */
.qn-drop {
	position: absolute; top: 100%; left: 50%; margin-left: -150px; width: 300px;
	background: var(--qn-bg); border: 1px solid var(--qn-line); border-radius: 0 0 22px 22px;
	padding: 24px 26px 22px; box-shadow: 0 24px 50px rgba(0, 0, 0, .35);
}
.qn-drop ul + .qn-eyebrow { margin-top: 20px; }
.qn-drop a, .qn-mega a.qn-mlink, .qn-col a {
	display: block; color: rgba(255, 255, 255, .88) !important; font-size: 15px; font-weight: 400; line-height: 1.3;
	padding: 8px 0; transition: color .2s ease, transform .25s var(--qn-ease);
}
.qn-drop a:hover, .qn-col a:hover, .qn-drop a[aria-current], .qn-col a[aria-current] { color: var(--qn-gold3) !important; transform: translateX(4px); }
.qn-drop--sub a { padding: 10px 0; }
.qn-drop--sub small, .qn-row--sub small { display: block; font-size: 12px; color: var(--qn-mut); margin-top: 3px; }
.qn-badge { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--qn-bg); background: var(--qn-gold2); border-radius: 20px; padding: 2px 7px; vertical-align: 2px; margin-left: 4px; }

/* Mega */
.qn-mega, .qn-searchp {
	position: absolute; top: 100%; left: 0; right: 0;
	background: var(--qn-bg); border-top: 1px solid var(--qn-line);
	box-shadow: 0 30px 60px rgba(0, 0, 0, .4); border-radius: 0 0 46px 46px;
}
.qn-mega__in { max-width: 1320px; margin: 0 auto; padding: 38px var(--qn-pad) 44px; display: grid; grid-template-columns: 1fr 300px; gap: 48px; }
.qn-mega__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.qn-col { border-left: 1px solid var(--qn-line); padding-left: 24px; }
.qn-col:first-child { border-left: 0; padding-left: 0; }
.qn-mega__side { display: grid; gap: 14px; align-content: start; }

.qn-tool { position: relative; display: block; border-radius: 20px; overflow: hidden; line-height: 0; background: var(--qn-bg2); }
.qn-tool img { width: 100%; height: 170px; object-fit: cover; display: block; transition: transform .6s var(--qn-ease); }
.qn-tool:hover img { transform: scale(1.04); }
.qn-tool::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, #2f2e2d 0, rgba(25, 28, 33, .5) 50%, rgba(25, 28, 33, 0) 90%); }
.qn-tool__txt { position: absolute; z-index: 2; left: 18px; bottom: 16px; right: 60px; line-height: 1.3; color: #fff; }
.qn-tool__txt strong { display: block; font-size: 16px; font-weight: 700; }
.qn-tool__txt span { font-size: 13px; color: rgba(255, 255, 255, .8); }
.qn-tool__go { position: absolute; z-index: 2; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%; background: #eee9e1; color: var(--qn-bg); display: flex; align-items: center; justify-content: center; transform: rotate(-45deg); }
.qn-tool__go .qn-ic { width: 17px; height: 17px; }

.qn-consult { background: var(--qn-bg2); border: 1px solid var(--qn-line); border-radius: 20px; padding: 18px 20px; }
.qn-consult p { margin: 0; padding: 0; }
.qn-consult__t { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.3; }
.qn-consult__p { font-size: 13px; line-height: 1.55; color: var(--qn-mut); margin: 6px 0 12px !important; }
.qn-consult__a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--qn-gold3) !important; }
.qn-consult__a .qn-ic { width: 16px; height: 16px; transition: transform .25s var(--qn-ease); }
.qn-consult__a:hover .qn-ic { transform: translateX(4px); }

/* Suche */
.qn-searchp__in { max-width: 760px; margin: 0 auto; padding: 32px var(--qn-pad) 38px; }
.qn-field { position: relative; display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .25); border-radius: 46px; padding: 0 16px 0 20px; color: var(--qn-mut); margin: 0; }
.qn-field:focus-within { border-color: var(--qn-gold2); }
.qn-q { flex: 1; min-width: 0; height: 54px; background: transparent !important; border: 0 !important; outline: 0; color: #fff !important; font: inherit; font-size: 16px; padding: 0 !important; box-shadow: none !important; }
.qn-q:focus, .qn-q:focus-visible { outline: 0 !important; }
.qn-q::placeholder { color: var(--qn-mut); opacity: 1; }
.qn-q::-webkit-search-cancel-button { -webkit-appearance: none; }
.qn-clear { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; }
.qn-clear[hidden] { display: none; }
.qn-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.qn-chips > span { font-size: 12px; color: var(--qn-mut); margin-right: 4px; }
.qn-chip { font-size: 13px !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .22) !important; border-radius: 30px !important; padding: 7px 14px !important; line-height: 1 !important; transition: border-color .2s ease, background-color .2s ease; }
.qn-chip:hover { border-color: var(--qn-gold2) !important; background: rgba(166, 134, 81, .18) !important; }
.qn-results:empty { display: none; }
.qn-searchp .qn-results { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.qn-hit { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--qn-line); color: #fff !important; font-size: 15px; }
.qn-hit em { font-style: normal; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--qn-gold2); white-space: nowrap; }
.qn-hit:hover { color: var(--qn-gold3) !important; }
.qn-empty { grid-column: 1 / -1; margin: 0; padding: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--qn-mut); }
.qn-empty a { color: var(--qn-gold3) !important; font-weight: 700; }

/* Mobile-Elemente auf Desktop aus */
.qn-mbar, .qn-m { display: none; }
.qn-spacer { display: none; height: var(--qn-h); }
.qn.is-solid + .qn-spacer { display: block; }

@media (max-width: 1280px) {
	.qn .qn-link { font-size: 15px; padding: 0 9px; }
	.qn-link::after { left: 9px; right: 9px; }
	.qn-hide-md { display: none; }
	.qn-mega__in { grid-template-columns: 1fr 260px; gap: 32px; }
}

/* =====================================================================
   MOBIL ≤ 1100
   ===================================================================== */
@media (max-width: 1100px) {
	:root { --qn-h: 76px; --qn-h-stuck: 62px; }
	.qn-in { grid-template-columns: 1fr auto; gap: 12px; }
	.qn-nav, .qn-actions, .qn-panel { display: none !important; }
	.qn-logo img { height: 50px; }
	.qn.is-stuck .qn-logo img { height: 40px; }
	.qn-mbar { display: flex; align-items: center; gap: 10px; justify-self: end; }
	.qn-mterm { display: inline-flex; align-items: center; gap: 7px; background: var(--qn-gold); color: #fff !important; font-size: 14px; font-weight: 700; line-height: 1; padding: 11px 15px; border-radius: 3px; }
	.qn-mterm .qn-ic { width: 16px; height: 16px; }
	.qn-burger { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3) !important; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
	.qn-burger span { display: block; width: 18px; height: 1.5px; background: #fff; border-radius: 2px; }
	.qn-burger span + span { width: 12px; margin-left: 6px; }

	html.qn-lock, html.qn-lock body { overflow: hidden; }

	.qn-m {
		display: flex; flex-direction: column;
		position: fixed; inset: 0; z-index: 2147483647; height: 100%; height: 100dvh;
		background: var(--qn-bg); color: #fff;
		visibility: hidden; opacity: 0; transform: translateY(12px);
		transition: opacity .3s ease, transform .35s var(--qn-ease), visibility 0s linear .35s;
	}
	.qn-m:not(.is-open), .qn-m:not(.is-open) * { pointer-events: none !important; }
	.qn-m:not(.is-open) .qn-s { visibility: hidden !important; }
	.qn-m.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .3s ease, transform .35s var(--qn-ease), visibility 0s; }
	.qn-m__head { flex: none; height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid var(--qn-line); }
	.qn-m__head .qn-logo img { height: 30px; }
	.qn-m__close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3) !important; display: inline-flex; align-items: center; justify-content: center; }
	.qn-m__body { position: relative; flex: 1; overflow: hidden; }
	.qn-s {
		position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
		padding: 22px 20px 28px; background: var(--qn-bg);
		transform: translateX(100%); visibility: hidden;
		transition: transform .38s var(--qn-ease), opacity .38s ease, visibility 0s linear .38s;
	}
	.qn-s.is-current { transform: none; visibility: visible; transition: transform .38s var(--qn-ease), opacity .38s ease, visibility 0s; }
	.qn-s.is-prev { transform: translateX(-24%); opacity: 0; }
	.qn-s__t { margin: 6px 0 16px; padding: 0; font-size: 26px; font-weight: 700; line-height: 1.2; color: #fff; outline: 0; }
	.qn-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px !important; color: var(--qn-gold2) !important; padding: 6px 0 !important; }
	.qn-back .qn-ic { width: 18px; height: 18px; }
	.qn-s .qn-eyebrow { margin: 22px 0 4px; }

	.qn-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 0; border-bottom: 1px solid var(--qn-line); color: #fff !important; font-size: 16px; line-height: 1.3; }
	.qn-row--big { font-size: 19px; font-weight: 400; min-height: 60px; }
	.qn-row .qn-ic { width: 18px; height: 18px; color: var(--qn-mut); }
	.qn-row[aria-current] { color: var(--qn-gold3) !important; }
	.qn-count { font-style: normal; font-size: 12px; color: var(--qn-mut); margin-left: 6px; }

	.qn-s .qn-chips { margin: 14px 0 8px; }
	.qn-s .qn-results { margin-top: 10px; }
	.qn-m.is-searching .qn-s__home { display: none; }

	/* Academy: dezent, Zielgruppe Ärzte */
	.qn-row--acad small { font-size: 12px; color: var(--qn-mut); margin-left: 8px; letter-spacing: .02em; }
	.qn-row--acad span { display: inline-flex; align-items: baseline; flex-wrap: wrap; }
	.qn-m__wa { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 14px; color: var(--qn-mut) !important; }

	.qn-tool--m { margin-top: 22px; padding: 18px 64px 18px 20px; line-height: 1.3; border: 1px solid var(--qn-line); }
	.qn-tool--m::before { display: none; }
	.qn-tool--m .qn-tool__txt { position: static; }
	.qn-s .qn-consult { margin-top: 22px; }

	.qn-m__foot { flex: none; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--qn-line); background: var(--qn-bg); }
	.qn-m__foot a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 3px; font-size: 15px; font-weight: 700; }
	.qn-m__call { border: 1px solid rgba(255, 255, 255, .3); color: #fff !important; }
	.qn-m__book { background: var(--qn-gold); color: #fff !important; }
	.qn-m__foot .qn-ic { width: 18px; height: 18px; }
}
@media (max-width: 360px) { .qn-mterm { padding: 10px 11px; font-size: 13px; } }

/* =====================================================================
   ACADEMY (helles Design): .qn--light / .qn-m--light
   Farben aus academy.css (ink #2b2724, paper #f6f3ee, sand #ede8e0, bronze #9a6a48)
   ===================================================================== */
.qn--light { --qn-ink: #2b2724; --qn-paper: #f6f3ee; --qn-bronze: #9a6a48; --qn-lmute: #7d7368; --qn-lline: rgba(43, 39, 36, .12); color: var(--qn-ink); }
/* Academy-Logo über die Breite steuern (wie bisher 245px), Höhe automatisch */
.qn--light .qn-logo img { width: 245px; height: auto; max-width: none; transition: width .3s var(--qn-ease); }
.qn--light.is-stuck .qn-logo img { width: 205px; height: auto; }
.qn--light .qn-link, .qn--light .qn-icbtn { color: var(--qn-ink) !important; }
.qn--light .qn-link::after { background: var(--qn-bronze); }
.qn--light .qn-icbtn:hover { border-color: rgba(43, 39, 36, .3); color: var(--qn-bronze) !important; }
.qn--light.is-stuck {
	background: rgb(246 243 238 / 72%);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-shadow: 0 8px 32px rgba(60, 45, 30, .12);
}
.qn--light.is-open { background: var(--qn-paper); box-shadow: none; }
.qn--light .qn-drop { background: var(--qn-paper); border-color: var(--qn-lline); box-shadow: 0 24px 50px rgba(60, 45, 30, .14); }
.qn--light .qn-drop a { color: var(--qn-ink) !important; }
.qn--light .qn-drop a:hover, .qn--light .qn-drop a[aria-current] { color: var(--qn-bronze) !important; }
.qn--light .qn-drop--sub small { color: var(--qn-lmute); }
.qn-back-klinik { display: inline-flex; align-items: center; margin-right: 10px; font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: currentColor !important; opacity: .7; transition: opacity .25s ease; white-space: nowrap; }
.qn-back-klinik:hover { opacity: 1; }

@media (max-width: 1100px) {
	.qn--light .qn-burger { border-color: rgba(43, 39, 36, .3) !important; }
	.qn--light .qn-burger span { background: var(--qn-ink); }
	.qn-m--light { --qn-ink: #2b2724; --qn-bronze: #9a6a48; --qn-lmute: #7d7368; --qn-lline: rgba(43, 39, 36, .12); background: #ede8e0; color: var(--qn-ink); }
	.qn-m--light .qn-m__head, .qn-m--light .qn-m__foot { border-color: var(--qn-lline); background: #ede8e0; }
	.qn--light .qn-logo img { width: 200px; }
	.qn--light.is-stuck .qn-logo img { width: 175px; }
	.qn-m--light .qn-m__head .qn-logo img { width: 180px; height: auto; max-width: none; }
	.qn-m--light .qn-m__close { border-color: rgba(43, 39, 36, .3) !important; color: var(--qn-ink); }
	.qn-m--light .qn-s { background: #ede8e0; }
	.qn-m--light .qn-s__t { color: var(--qn-ink); }
	.qn-m--light .qn-back { color: var(--qn-bronze) !important; }
	.qn-m--light .qn-row { color: var(--qn-ink) !important; border-color: var(--qn-lline); }
	.qn-m--light .qn-row .qn-ic { color: var(--qn-lmute); }
	.qn-m--light .qn-row[aria-current] { color: var(--qn-bronze) !important; }
	.qn-m--light .qn-row--sub small { color: var(--qn-lmute); }
	.qn-m__foot--one { grid-template-columns: 1fr; }
	.qn-m--light .qn-m__book { background: var(--qn-ink); color: #fff !important; border-radius: 100px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
}

@media (prefers-reduced-motion: reduce) {
	.qn *, .qn-m, .qn-m * { transition: none !important; animation: none !important; }
}