/* Haushalt Journal: Kopfzeile (Astra Header Builder) */

/* Mitlaufende Kopfzeile mit Markenlinie */
#masthead {
	position: sticky;
	top: 0;
	z-index: 999;
	background: #ffffff;
	box-shadow: 0 1px 0 #D3E6F3, 0 8px 24px rgba(18, 48, 74, 0.06);
}
.admin-bar #masthead { top: 32px; }
@media (max-width: 782px) { .admin-bar #masthead { top: 46px; } }
#masthead::before {
	content: "";
	display: block;
	height: 4px;
	background: linear-gradient(90deg, #0098E9 0%, #0098E9 70%, #FFC233 70%, #FFC233 100%);
}
#masthead .main-header-bar { border-bottom: 0; }

/* Logo */
#masthead .custom-logo-link img { transition: transform 0.25s ease; }
#masthead .custom-logo-link:hover img { transform: scale(1.03); }

/* Hauptnavigation als Pillen mit Icon */
#ast-desktop-header .main-header-menu { gap: 0.25rem; }
#ast-desktop-header .main-header-menu > .menu-item > .menu-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 1rem;
	border-radius: 999px;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-weight: 700;
	font-size: 15px;
	line-height: 1;
	color: #12304A;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
#ast-desktop-header .main-header-menu > .menu-item > .menu-link img {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	transition: transform 0.2s ease;
}
#ast-desktop-header .main-header-menu > .menu-item > .menu-link:hover {
	background: #EEF6FC;
	color: #0079BD;
}
#ast-desktop-header .main-header-menu > .menu-item > .menu-link:hover img { transform: translateY(-1px) rotate(-6deg); }
#ast-desktop-header .main-header-menu > .current-menu-item > .menu-link,
#ast-desktop-header .main-header-menu > .current-post-ancestor > .menu-link,
#ast-desktop-header .main-header-menu > .current-menu-parent > .menu-link {
	background: #DCEDF9;
	color: #0079BD;
	box-shadow: inset 0 0 0 1px #C3DFF2;
}

/* Suche als runder Button */
#masthead .ast-header-search .astra-search-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #EEF6FC;
	color: #12304A;
	transition: background-color 0.2s ease, color 0.2s ease;
}
#masthead .ast-header-search .astra-search-icon:hover { background: #0098E9; color: #ffffff; }
#masthead .ast-header-search .astra-search-icon svg { width: 18px; height: 18px; fill: currentColor; }
#masthead .ast-search-menu-icon .search-field {
	border: 1px solid #D3E6F3;
	border-radius: 999px;
	padding: 0.6rem 1.1rem;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 14px;
	background: #ffffff;
}
#masthead .ast-search-menu-icon.slide-search .search-form { border-radius: 999px; }

/* Schmalere Desktops: Navigation bleibt einzeilig */
#ast-desktop-header .main-header-menu { flex-wrap: nowrap; }
#ast-desktop-header .main-header-menu > .menu-item > .menu-link { white-space: nowrap; }
@media (max-width: 1180px) {
	#ast-desktop-header .main-header-menu { gap: 0; }
	#ast-desktop-header .main-header-menu > .menu-item > .menu-link { padding: 0.5rem 0.6rem; font-size: 14px; gap: 0.35rem; }
	#ast-desktop-header .main-header-menu > .menu-item > .menu-link img { width: 16px; height: 16px; flex-basis: 16px; }
}
@media (max-width: 1000px) {
	#ast-desktop-header .main-header-menu > .menu-item > .menu-link img { display: none; }
}

/* Fußzeile: Menüs und aktuelle Seite */
.site-footer .widget_nav_menu ul { list-style: none; margin: 0; padding: 0; }
.site-footer .widget_nav_menu li { margin: 0 0 0.35rem; }
.site-footer .widget_nav_menu a { display: inline-block; padding: 0.3rem 0.75rem; margin-left: -0.75rem; border-radius: 999px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; font-weight: 600; color: #1C2733; transition: background-color 0.2s ease, color 0.2s ease; }
.site-footer .widget_nav_menu a:hover { color: #0079BD; background: #DCEDF9; }
.site-footer .widget_nav_menu .current-menu-item > a,
.site-footer .widget_nav_menu .current_page_item > a { color: #ffffff; background: #0098E9; font-weight: 700; }
.site-footer .widget-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #566576; margin-bottom: 0.75rem; }

/* Mobil */
#ast-mobile-header .menu-toggle {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #EEF6FC;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}
#ast-mobile-header .menu-toggle .ast-mobile-svg { fill: #12304A; }
#ast-mobile-header .ast-mobile-header-content,
#ast-mobile-header .ast-builder-menu-mobile .main-navigation { background: #ffffff; }
#ast-mobile-header .ast-builder-menu-mobile .main-header-menu { padding: 0.5rem 1rem 1rem; }
#ast-mobile-header .ast-builder-menu-mobile .main-header-menu .menu-item { border: 0; }
#ast-mobile-header .ast-builder-menu-mobile .main-header-menu .menu-link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.7rem 1rem;
	margin: 0.1rem 0;
	line-height: 1.2;
	border-radius: 14px;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-weight: 700;
	font-size: 16px;
	color: #12304A;
	border: 0;
}
#ast-mobile-header .ast-builder-menu-mobile .main-header-menu .menu-link img { width: 20px; height: 20px; flex: 0 0 20px; }
#ast-mobile-header .ast-builder-menu-mobile .main-header-menu .current-menu-item > .menu-link,
#ast-mobile-header .ast-builder-menu-mobile .main-header-menu .current-post-ancestor > .menu-link,
#ast-mobile-header .ast-builder-menu-mobile .main-header-menu .current-menu-parent > .menu-link,
#ast-mobile-header .ast-builder-menu-mobile .main-header-menu .menu-link:hover { background: #EEF6FC; color: #0079BD; }
#ast-mobile-header .ast-mobile-header-content .ast-header-search { padding: 1rem 1rem 0; }

@media (prefers-reduced-motion: reduce) {
	#masthead *, #masthead *::before { transition: none !important; }
}
