/* Main stylesheet for BHB Theme */
:root {
	--bhb-anchor-offset: 80px;
	--bhb-bg: #ffffff;
	--bhb-text: #222222;
	--bhb-link: #1a73e8;
	--bhb-link-hover: #0c47a1;
	--bhb-header-bg: #ffffff;
	--bhb-menu-link: #222222;
	--bhb-menu-link-hover: #1a73e8;
	--bhb-btn-bg: #1a73e8;
	--bhb-btn-bg-hover: #0c47a1;
	--bhb-btn-text: #ffffff;
	--bhb-font-body: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji";
	--bhb-font-heading: "Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
	--bhb-font-size-base: 16px;
	--bhb-hero-overlay: 0.3;
}

* { box-sizing: border-box; }
html { font-size: var(--bhb-font-size-base); }
body {
	margin: 0;
	font-family: var(--bhb-font-body);
	color: var(--bhb-text);
	background: var(--bhb-bg);
	line-height: 1.6;
}

a { color: var(--bhb-link); text-decoration: none; }
a:hover, a:focus { color: var(--bhb-link-hover); text-decoration: underline; }

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

.container { width: min(1100px, 92%); margin: 0 auto; }

/* Accessibility */
.screen-reader-text { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
:focus { outline: 3px solid currentColor; outline-offset: 2px; }

/* Header */
.site-header { background: var(--bhb-header-bg); border-bottom: 1px solid rgba(0,0,0,.06); }
.site-header__top { background: rgba(0,0,0,.04); font-size: 0.875rem; padding: .35rem 0; }
.site-header__inner { display: flex; align-items: center; gap: 2rem; padding: 1rem 0; }
.site-branding { display: flex; align-items: center; gap: 1rem; }
.site-title-wrap { line-height: 1.2; }
.site-title a { color: inherit; font-weight: 700; }
.site-description { margin: .15rem 0 0; font-size: .9rem; opacity: .8; }
.site-header-subtitle { margin: .25rem 0 0; font-size: .9rem; opacity: .9; }

.site-header__navwrap { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.site-nav .menu { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; }
.site-nav .menu a { color: var(--bhb-menu-link); padding: .5rem .35rem; display: block; }
.site-nav .menu a:hover, .site-nav .menu a:focus { color: var(--bhb-menu-link-hover); text-decoration: none; }

/* CTA Button */
.site-cta { background: var(--bhb-btn-bg); color: var(--bhb-btn-text); padding: .6rem .95rem; border-radius: .4rem; font-weight: 600; display: inline-flex; align-items: center; }
.site-cta:hover, .site-cta:focus { background: var(--bhb-btn-bg-hover); color: var(--bhb-btn-text); text-decoration: none; }

/* Hero */
.hero { position: relative; padding: 4rem 0; color: #fff; background: #111; overflow: hidden; }
.hero--withimg { background-size: cover; background-position: center; }
.hero__overlay { position: absolute; inset: 0; background: rgba(0,0,0, var(--bhb-hero-overlay)); }
.hero__inner { position: relative; z-index: 2; }
.hero__title { font-family: var(--bhb-font-heading); font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 .5rem; }
.hero__subtitle { font-size: clamp(1rem, 3vw, 1.25rem); margin: 0; opacity: .95; }

/* Content */
.content-area { padding: 2rem 0; }
.post__title, .page__title { font-family: var(--bhb-font-heading); }
.post__thumb { margin-bottom: 1rem; }
.post__meta { font-size: .9rem; opacity: .7; margin: .25rem 0 1rem; }
.post__excerpt { margin-bottom: 2rem; }

/* Footer */
.site-footer { background: #0f172a; color: #e5e7eb; margin-top: 3rem; }
.site-footer a { color: #93c5fd; }
.site-footer__cols { display: grid; grid-template-columns: repeat(1,1fr); gap: 1.25rem; padding: 2rem 0; }
.site-footer__bottom { padding: 1rem 0 2rem; border-top: 1px solid rgba(255,255,255,.15); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; opacity: .9; }

/* Buttons */
.button { background: var(--bhb-btn-bg); color: var(--bhb-btn-text); padding: .6rem .95rem; border-radius: .4rem; display: inline-block; }
.button:hover, .button:focus { background: var(--bhb-btn-bg-hover); color: var(--bhb-btn-text); text-decoration: none; }

/* Responsive */
@media (max-width: 800px) {
	.site-header__inner { flex-wrap: wrap; gap: 1rem; }
	.site-header__navwrap { width: 100%; justify-content: space-between; }
	.site-nav .menu { flex-wrap: wrap; }
	.site-footer__cols { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 560px) {
	.site-footer__cols { grid-template-columns: 1fr; }
}

/* Anchor scroll offset for fixed-ish header height */
[id] { scroll-margin-top: var(--bhb-anchor-offset); }

/* Front page sections generated from Anker-Liste */
.front-sections { margin: 2rem 0; }
.section { padding: 3rem 0; border-top: 1px solid rgba(0,0,0,.06); }
.section__title { font-family: var(--bhb-font-heading); font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 1rem; }
.section__content > *:first-child { margin-top: 0; }
.section__content > *:last-child { margin-bottom: 0; }

/* Section styles */
.section--withbg { color: #fff; position: relative; }
.section--withbg .section__title { color: #fff; }
.section__icon { display: inline-block; vertical-align: middle; margin-right: .5rem; font-size: 1.25em; line-height: 1; }

/* === Footer colors via Customizer (injected) === */
.site-footer {
    background: var(--bhb-footer-bg, #0f172a);
    color: var(--bhb-footer-text, #e5e7eb);
}
.site-footer a {
    color: var(--bhb-footer-link, #93c5fd);
}
