/* Menü-Overlay der Geschichten – auf allen übrigen Seiten (Wissenspool) eingeblendet.
   Regeln aus story.css, auf #ewf-nav begrenzt, damit sie das Theme nicht beeinflussen. */
@font-face { font-family: "BaWueSans";  src: url("../fonts/BaWueSansWeb-Regular.woff2") format("woff2");       font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "BaWueSans";  src: url("../fonts/BaWueSansWeb-RegularItalic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "BaWueSans";  src: url("../fonts/BaWueSansWeb-SemiBold.woff2") format("woff2");      font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "BaWueSans";  src: url("../fonts/BaWueSansWeb-Bold.woff2") format("woff2");          font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "BaWueSans";  src: url("../fonts/BaWueSansWeb-BoldItalic.woff2") format("woff2");    font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "BaWueSerif"; src: url("../fonts/BaWueSerifWeb-Regular.woff2") format("woff2");      font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "BaWueSerif"; src: url("../fonts/BaWueSerifWeb-Bold.woff2") format("woff2");         font-weight: 700; font-style: normal; font-display: swap; }
#ewf-nav { --yellow: #fffc01; --ink: #1d1d1b; --white: #fff; --ease: cubic-bezier(.45, 0, .2, 1);
	font-family: "BaWueSans", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
#ewf-nav *, #ewf-nav *::before { box-sizing: border-box; }
#ewf-nav h2, #ewf-nav ul { font-family: inherit; }

#ewf-nav .menu {
	position: fixed; left: 48px; top: 48px; z-index: 30;
	width: 32px; height: 23px; padding: 0;
	background: none; border: 0; cursor: pointer;
}
#ewf-nav .menu svg { display: block; width: 100%; height: 100%; fill: var(--white); overflow: visible; transition: fill .4s var(--ease); }
#ewf-nav .menu.is-dark svg { fill: var(--ink); }
#ewf-nav .menu .bar { transition: width .3s var(--ease); }
#ewf-nav .menu:hover .bar--short, #ewf-nav .menu:focus-visible .bar--short { width: 854px; }
#ewf-nav .menu:focus-visible { outline: 2px solid var(--yellow); outline-offset: 8px; }

/* ---------- Menü-Overlay ---------- */
#ewf-nav .nav {
	position: fixed; inset: 0; z-index: 40;
	visibility: hidden; pointer-events: none;
	transition: visibility 0s linear .6s;
}
#ewf-nav .nav.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
#ewf-nav .nav-dim { position: absolute; inset: 0; background: rgba(64, 150, 158, .82); opacity: 0; transition: opacity .5s var(--ease); }
#ewf-nav .nav.is-open .nav-dim { opacity: 1; }
#ewf-nav .nav-panel {
	position: absolute; top: 0; bottom: 0; left: 0; width: 57vw; min-width: 520px;
	transform: translateX(-102%); transition: transform .6s var(--ease);
	overflow-y: auto;
}
#ewf-nav .nav.is-open .nav-panel { transform: none; transition-delay: .05s; }
#ewf-nav .nav-wave { position: fixed; left: 0; top: 0; width: 57vw; min-width: 520px; height: 100%; fill: var(--yellow); }
#ewf-nav .nav-inner { position: relative; min-height: 100%; padding: 7vw 3rem 6rem 7.75vw; color: var(--ink); }

#ewf-nav .nav-close { position: fixed; left: 38px; top: 38px; width: 32px; height: 32px; padding: 0; background: none; border: 0; cursor: pointer; }
#ewf-nav .nav-close svg { display: block; width: 100%; height: 100%; fill: var(--ink); transition: transform .3s var(--ease); }
#ewf-nav .nav-close:hover svg, #ewf-nav .nav-close:focus-visible svg { transform: rotate(90deg); }

#ewf-nav .nav-title {
	margin: 0 0 .4vw;
	font-weight: 700; font-size: clamp(1.6rem, 2.2vw, 2.7rem); line-height: 1; letter-spacing: .01em;
	text-transform: uppercase;
}
#ewf-nav .nav-list { list-style: none; margin: 0 0 2.4vw; padding: 0; }
#ewf-nav .nav-list a {
	position: relative; display: inline-block;
	padding: .65vw 0 .65vw 2.5vw;
	font-size: clamp(1.05rem, 1.46vw, 1.8rem); line-height: 1.3; font-style: italic;
	color: #2f5f6c; text-decoration: none;
	transition: color .25s var(--ease);
}
#ewf-nav .nav-list a::before {
	content: ""; position: absolute; left: 0; top: 50%;
	width: 1.35vw; height: 1.1vw; min-width: 18px; min-height: 15px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='128 196 786 632'%3E%3Cpath d='M597 196 914 512 597 828 537 768 750 555H128V469H750L537 256L597 196Z'/%3E%3C/svg%3E") no-repeat center / contain;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='128 196 786 632'%3E%3Cpath d='M597 196 914 512 597 828 537 768 750 555H128V469H750L537 256L597 196Z'/%3E%3C/svg%3E") no-repeat center / contain;
	transform: translateY(-50%); transition: transform .3s var(--ease);
}
#ewf-nav .nav-list a:hover, #ewf-nav .nav-list a:focus-visible, #ewf-nav .nav-list a.is-current { color: var(--ink); font-weight: 700; outline: none; }
#ewf-nav .nav-list a:hover::before, #ewf-nav .nav-list a:focus-visible::before { transform: translateY(-50%) translateX(6px); }

/* Impressum | Datenschutz: unten, zentriert über der gelben Fläche (wie Startseite) */
#ewf-nav .nav-footer {
	position: absolute; left: 0; bottom: 2.9vw; width: 50.5vw;
	display: flex; justify-content: center; gap: 1.1vw;
	font-size: clamp(.7rem, .78vw, 1rem); letter-spacing: .08em; text-transform: uppercase; line-height: 1;
}
#ewf-nav .nav-footer a { color: var(--ink); text-decoration: none; }
#ewf-nav .nav-footer a { text-decoration: none !important; }
#ewf-nav .nav-footer a:hover, #ewf-nav .nav-footer a:focus-visible { text-decoration: underline !important; text-underline-offset: .3em !important; text-decoration-thickness: max(1px, .07em) !important; }

/* Wissenspool: Menü-Button dunkel, auf Höhe des gelben Headers */
#ewf-nav .menu { top: 18px; left: 32px; }
#ewf-nav .menu svg { fill: var(--ink); }
.admin-bar #ewf-nav .menu, .admin-bar #ewf-nav .nav-close { margin-top: 32px; }
@media (max-width: 768px) {
	#ewf-nav .menu { left: 16px; top: 16px; width: 30px; height: 21px; }
	#ewf-nav .nav-panel, #ewf-nav .nav-wave { width: 100%; min-width: 0; }
	#ewf-nav .nav-wave { display: none; }
	#ewf-nav .nav-panel { background: var(--yellow); }
	#ewf-nav .nav-inner { padding: 5.5rem 1.5rem 4.5rem; }
	#ewf-nav .nav-title { margin-bottom: .4rem; }
	#ewf-nav .nav-list { margin-bottom: 1.8rem; }
	#ewf-nav .nav-list a { padding: .45rem 0 .45rem 2.2rem; }
	#ewf-nav .nav-footer { width: 100%; bottom: 1.6rem; gap: 1rem; }
	#ewf-nav .nav-close { left: 16px; top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	#ewf-nav .nav, #ewf-nav .nav-dim, #ewf-nav .nav-panel, #ewf-nav .nav-close svg { transition-duration: .01s !important; transition-delay: 0s !important; }
}
/* Menü offen: Seite nicht mitscrollen */
html.ewf-nav-open { overflow: hidden; }
/* über Header/Sticky-Elementen des Themes */
#ewf-nav .menu { z-index: 99990; }
#ewf-nav .nav { z-index: 99999; }
#ewf-nav .nav-title a { color: inherit; text-decoration: none; }
#ewf-nav .nav-title a { text-decoration: none !important; }
/* Hover wie in den Geschichten (Scrollytelling) – !important gegen die Theme-Regel a { text-decoration-thickness: 1px } */
#ewf-nav .nav-title a:hover, #ewf-nav .nav-title a:focus-visible { text-decoration: underline !important; text-underline-offset: .18em !important; text-decoration-thickness: max(1px, .07em) !important; outline: none; }

/* Kein Fokus-Rahmen nach Mausklick – nur bei Tastatur-Bedienung (:focus-visible) */
:focus:not(:focus-visible) { outline: none !important; }
