/* =========================================================
   Nendosplit – Frontend Styles
   ========================================================= */

:root {
	--hfb-header-bg: #ffffff;
	--hfb-topbar-bg: #222222;
	--hfb-topbar-text: #ffffff;
	--hfb-footer-bg: #1a1a1a;
	--hfb-footer-text: #dddddd;
	--hfb-footer-bottom-bg: #111111;
	--hfb-container: 1200px;
	--hfb-accent: #2563eb;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.6;
	color: #1e1e1e;
	background: #fff;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--hfb-accent);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link {
	top: -100px;
	left: 0;
	position: absolute;
	background: #fff;
	padding: 10px 16px;
	z-index: 100000;
}
.skip-link:focus {
	top: 0;
}

.hfb-container {
	max-width: var(--hfb-container);
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- HEADER & FOOTER: gemeinsames Zeilen-/Zonen-Raster ---------- */
.hfb-header {
	position: relative;
	z-index: 50;
}
.has-sticky-header .hfb-row-primary {
	position: sticky;
	top: 0;
	z-index: 200;
}

.hfb-row-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 56px;
	flex-wrap: wrap;
}
.hfb-row-primary .hfb-row-inner {
	min-height: 80px;
}

.hfb-zone {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.hfb-zone-left {
	flex: 0 1 auto;
}
.hfb-zone-center {
	flex: 1 1 auto;
	justify-content: center;
}
.hfb-zone-right {
	flex: 0 1 auto;
	justify-content: flex-end;
	margin-left: auto;
}

/* Header-Zeilen */
.hfb-header .hfb-row-above,
.hfb-header .hfb-row-below {
	background: var(--hfb-topbar-bg);
	color: var(--hfb-topbar-text);
	font-size: 0.875rem;
}
.hfb-header .hfb-row-above a,
.hfb-header .hfb-row-below a {
	color: inherit;
	opacity: 0.85;
}
.hfb-header .hfb-row-above a:hover,
.hfb-header .hfb-row-below a:hover {
	opacity: 1;
}
.hfb-header .hfb-row-primary {
	background: var(--hfb-header-bg);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.hfb-site-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #1e1e1e;
}
.hfb-site-description {
	margin: 0;
	font-size: 0.8rem;
	color: #666;
}

.hfb-menu,
.hfb-mobile-menu-list {
	list-style: none;
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
}
.hfb-menu li,
.hfb-mobile-menu-list li {
	position: relative;
}
.hfb-header .hfb-row-primary .hfb-menu a,
.hfb-mobile-menu-list a {
	color: #1e1e1e;
	font-weight: 500;
}
.hfb-menu .sub-menu {
	list-style: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	padding: 10px 0;
	min-width: 200px;
	display: none;
	z-index: 100;
}
.hfb-menu li:hover > .sub-menu,
.hfb-menu li:focus-within > .sub-menu {
	display: block;
}
.hfb-menu .sub-menu a {
	display: block;
	padding: 8px 20px;
	color: #1e1e1e;
}

.hfb-el-button .hfb-button {
	display: inline-block;
	background: var(--hfb-accent);
	color: #fff;
	padding: 10px 20px;
	border-radius: 4px;
	font-weight: 600;
}
.hfb-el-button .hfb-button:hover {
	opacity: 0.9;
	text-decoration: none;
}

.hfb-el-social {
	list-style: none;
	display: flex;
	gap: 16px;
	margin: 0;
	padding: 0;
}

.hfb-el-search form {
	display: flex;
	gap: 6px;
}
.hfb-el-search input[type='search'] {
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
}
.hfb-el-search button {
	padding: 8px 14px;
	border: 0;
	border-radius: 4px;
	background: var(--hfb-accent);
	color: #fff;
	cursor: pointer;
}

.hfb-menu-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 8px;
}
.hfb-menu-toggle-bar {
	width: 24px;
	height: 2px;
	background: #1e1e1e;
	display: block;
}

.hfb-mobile-menu {
	display: none;
	background: var(--hfb-header-bg);
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.hfb-mobile-menu.is-open {
	display: block;
}
.hfb-mobile-menu-list {
	flex-direction: column;
	gap: 0;
	padding: 10px 20px;
}
.hfb-mobile-menu-list li {
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.hfb-mobile-menu-list a {
	display: block;
	padding: 12px 0;
}

@media (max-width: 860px) {
	.hfb-header .hfb-row-primary .hfb-zone-center {
		display: none;
	}
	.hfb-header .hfb-row-primary .hfb-zone-right .hfb-el-menu {
		display: none;
	}
	.hfb-menu-toggle {
		display: flex;
	}
}

/* ---------- CONTENT (Plugin-Bereich) ---------- */
.hfb-main {
	min-height: 40vh;
}
.hfb-main-fullwidth {
	width: 100%;
	padding: 0;
}
.hfb-main-fullwidth .hfb-content-wrap {
	max-width: none;
	padding: 0;
	margin: 0;
}
.hfb-main-contained {
	max-width: var(--hfb-container);
	margin: 0 auto;
	padding: 40px 20px;
}

/* ---------- FOOTER ---------- */
.hfb-footer a {
	color: inherit;
	opacity: 0.85;
}
.hfb-footer a:hover {
	opacity: 1;
}

.hfb-footer .hfb-row-primary {
	background: var(--hfb-footer-bg);
	color: var(--hfb-footer-text);
	padding: 20px 0;
}
.hfb-footer .hfb-row-above,
.hfb-footer .hfb-row-below {
	background: var(--hfb-footer-bottom-bg);
	color: var(--hfb-footer-text);
	font-size: 0.875rem;
}
.hfb-footer .hfb-row-inner {
	min-height: 56px;
}

.hfb-el-widget .widget-title {
	font-size: 1rem;
	margin: 0 0 12px;
	color: inherit;
}

/* ---------- Blog / Archiv Fallback ---------- */
.hfb-post-list {
	display: grid;
	gap: 40px;
}
.hfb-post-item {
	border-bottom: 1px solid #eee;
	padding-bottom: 30px;
}
.hfb-post-title {
	font-size: 1.5rem;
	margin: 12px 0 6px;
}
.hfb-post-meta {
	color: #888;
	font-size: 0.85rem;
}
.hfb-single-title {
	font-size: 2rem;
	margin-bottom: 6px;
}
.hfb-single-thumb {
	margin: 24px 0;
}

.hfb-blank-canvas,
.hfb-blank-canvas body {
	margin: 0;
	padding: 0;
}
