/*
 * BuildControl Eco Health – Kern-Styles.
 * © BuildControl Eco Health UG · Entwicklung: Tobias Krug – IT-Krug.de
 */

/* --- Reset / Basis --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--bc-font-sans);
	font-size: 1.0625rem;
	line-height: var(--bc-line);
	color: var(--bc-ink);
	background: var(--bc-bg);
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--bc-teal); text-underline-offset: 2px; }
a:hover { color: var(--bc-green-dark); }
h1, h2, h3, h4 { font-family: var(--bc-font-head); color: var(--bc-teal); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1, h2 { font-weight: 800; }
h3, h4 { font-weight: 700; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }

/* --- Accessibility --- */
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--bc-teal); color: #fff; padding: 0.75rem 1.25rem;
	border-radius: 0 0 var(--bc-radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }
.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--bc-blue); outline-offset: 2px; border-radius: 3px; }

/* --- Layout --- */
.container { width: 100%; max-width: var(--bc-container); margin-inline: auto; padding-inline: var(--bc-gutter); }
.container--narrow { max-width: var(--bc-container-narrow); }
.section { padding-block: var(--bc-space-xl); }
.section--soft { background: var(--bc-bg-soft); }

/* --- Header --- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--bc-border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.site-branding { display: flex; align-items: center; gap: 0.75rem; }
.site-branding img, .custom-logo-link img { width: 48px; height: 48px; }
.site-title { font-size: 1.15rem; font-weight: 700; color: var(--bc-teal); margin: 0; line-height: 1.1; }
.site-title a { color: inherit; text-decoration: none; }

/* --- Navigation --- */
.main-navigation .nav-menu { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.main-navigation a { color: var(--bc-ink); text-decoration: none; font-weight: 600; padding: 0.5rem 0; }
.main-navigation a:hover, .main-navigation .current-menu-item > a { color: var(--bc-green-dark); }
.menu-toggle { display: none; }

/* --- Buttons --- */
.btn, .wp-block-button__link {
	display: inline-block; font-weight: 700; text-decoration: none; cursor: pointer;
	padding: 0.85rem 1.6rem; border-radius: var(--bc-radius-sm); border: 2px solid transparent;
	transition: transform var(--bc-transition), background var(--bc-transition), box-shadow var(--bc-transition);
}
.btn--primary { background: var(--bc-green); color: #fff; }
.btn--primary:hover { background: var(--bc-green-dark); color: #fff; transform: translateY(-2px); }
.btn--secondary { background: transparent; color: var(--bc-teal); border-color: var(--bc-blue); }
.btn--secondary:hover { background: var(--bc-blue); color: #fff; }

/* --- Hero --- */
.hero { background: linear-gradient(135deg, var(--bc-teal), var(--bc-green-dark)); color: #fff; }
.hero h1 { color: #fff; }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 60ch; opacity: 0.95; }
.hero .btn--primary { background: #fff; color: var(--bc-teal); }
.hero .btn--primary:hover { background: var(--bc-bg-soft); }

/* --- Cards / Leistungs-Grid --- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--bc-space-m); }
.card {
	background: #fff; border: 1px solid var(--bc-border); border-radius: var(--bc-radius);
	padding: var(--bc-space-m); box-shadow: var(--bc-shadow);
	transition: transform var(--bc-transition), box-shadow var(--bc-transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--bc-shadow-hover); }
.card__icon { width: 48px; height: 48px; color: var(--bc-green); margin-bottom: 0.75rem; }
.card h3 { margin-top: 0; }

/* --- Footer (dunkel, mehrspaltig; Stilvorbild sonnleitner.de) --- */
.site-footer { background: #0c3a43; color: #cfe0e2; }
.site-footer a { color: #e8f1f2; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__main {
	display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
	gap: var(--bc-space-l); padding-block: var(--bc-space-xl);
}
.site-footer__logo { font-family: var(--bc-font-head); font-weight: 800; font-size: 1.45rem; color: #fff; margin: 0 0 0.6rem; letter-spacing: -0.01em; }
.site-footer__logo span { color: var(--bc-green); }
.site-footer__claim { color: #9fc2c6; max-width: 32ch; }
.site-footer__legalform { font-size: 0.85rem; color: #7ea7ac; margin-top: 1.1rem; }
.site-footer__h { font-family: var(--bc-font-head); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: #7ea7ac; margin: 0 0 1.1rem; }
.site-footer__links { list-style: none; margin: 0; padding: 0; }
.site-footer__links li { margin-bottom: 0.65rem; }
.site-footer__links a { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.84rem; font-weight: 600; }
.site-footer__contact { font-style: normal; line-height: 1.95; }
.site-footer__bar { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.site-footer__bar-inner { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-block: 1.2rem; }
.site-footer__copy { margin: 0; font-size: 0.85rem; color: #9fc2c6; }
.site-footer__legal { list-style: none; display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 0; padding: 0; }
.site-footer__legal a { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; }
@media (max-width: 860px) { .site-footer__main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__main { grid-template-columns: 1fr; gap: var(--bc-space-m); } }

/* --- Mobile --- */
@media (max-width: 860px) {
	.menu-toggle {
		display: inline-flex; align-items: center; gap: 0.5rem; background: none; border: 0;
		font-weight: 700; color: var(--bc-teal); cursor: pointer; padding: 0.5rem;
	}
	.menu-toggle__bars { display: inline-block; width: 24px; height: 2px; background: currentColor; position: relative; }
	.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: currentColor; }
	.menu-toggle__bars::before { top: -7px; }
	.menu-toggle__bars::after { top: 7px; }
	.main-navigation .nav-menu {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; gap: 0; background: #fff;
		border-bottom: 1px solid var(--bc-border); padding: 0.5rem var(--bc-gutter) 1rem;
	}
	.main-navigation.is-open .nav-menu { display: flex; }
	.main-navigation .nav-menu a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--bc-border); }
}

/* --- Hero (erweitert) --- */
.hero__inner { max-width: 820px; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; font-size: 0.85rem; opacity: 0.9; margin: 0 0 0.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* --- Section-Heads --- */
.section-head { max-width: 760px; margin-bottom: var(--bc-space-m); }
.section-head__eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; font-size: 0.8rem; color: var(--bc-green-dark); margin: 0 0 0.4rem; }
.section-head__lead { color: var(--bc-muted); font-size: 1.05rem; }

/* --- Karten-Icons --- */
.card__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 56px; height: 56px; border-radius: 14px;
	background: rgba(95, 182, 68, 0.12); color: var(--bc-green-dark); margin-bottom: 0.85rem;
}
.card__icon svg { width: 30px; height: 30px; stroke-width: 1.75; }

/* --- Pill-Liste (Zielgruppen) --- */
.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.75rem; padding: 0; margin: 0; }
.pill-list li { background: #fff; border: 1px solid var(--bc-border); border-radius: 999px; padding: 0.6rem 1.1rem; font-weight: 600; box-shadow: var(--bc-shadow); }

/* --- Link mit Pfeil --- */
.link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; }
.link-arrow:hover { gap: 0.6rem; }

/* --- Ghost-Button --- */
.btn--ghost { background: transparent; color: var(--bc-teal); border-color: currentColor; }
.btn--ghost:hover { background: var(--bc-teal); color: #fff; }
.hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* --- CTA-Band --- */
.cta-band { background: linear-gradient(135deg, var(--bc-blue-dark), var(--bc-teal)); color: #fff; padding-block: var(--bc-space-xl); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.92); max-width: 60ch; margin-inline: auto; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.25rem; }
.cta-band .btn--primary { background: #fff; color: var(--bc-teal); }
.cta-band .btn--primary:hover { background: var(--bc-bg-soft); }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.6); display: inline-flex; align-items: center; gap: 0.5rem; }
.cta-band .btn--ghost svg { width: 18px; height: 18px; }

/* --- Kontaktseite --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--bc-space-l); align-items: start; }
.contact-card { background: var(--bc-bg-soft); border: 1px solid var(--bc-border); border-radius: var(--bc-radius); padding: var(--bc-space-m); }
.contact-line { display: flex; align-items: flex-start; gap: 0.6rem; }
.contact-line__ic { display: inline-flex; color: var(--bc-green-dark); flex: 0 0 auto; margin-top: 3px; }
.contact-line__ic svg { width: 20px; height: 20px; }
.form-fallback { background: var(--bc-bg-soft); border: 1px dashed var(--bc-border); border-radius: var(--bc-radius); padding: var(--bc-space-m); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* --- Inhalts-Typografie (Recht/Über uns) --- */
.entry-content h2 { margin-top: 1.8rem; }
.entry-content p { margin-bottom: 1rem; }
.impressum-credit { color: var(--bc-muted); font-size: 0.9rem; margin-top: 2rem; }

/* --- Utilities --- */
.u-center { text-align: center; }
.u-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.25rem; }

/* === Moderne Verfeinerung === */
/* Eyebrows als Label mit Akzentstrich */
.section-head__eyebrow, .hero__eyebrow { display: inline-flex; align-items: center; gap: 0.55rem; }
.section-head__eyebrow::before, .hero__eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; opacity: 0.65; }

/* Hero: tiefere, edlere Bildwelt mit Lichtakzenten */
.hero {
	position: relative; overflow: clip;
	padding-block: clamp(3.75rem, 8vw, 6.5rem);
	background:
		radial-gradient(60% 120% at 88% -10%, rgba(0, 158, 227, 0.45), transparent 60%),
		radial-gradient(55% 110% at -5% 115%, rgba(97, 179, 68, 0.40), transparent 55%),
		linear-gradient(140deg, #0c4650 0%, var(--bc-teal) 55%, #0c4650 100%);
}
/* Mehr Luft um die Hero-Buttons, damit nichts abgeschnitten wird */
.hero__actions { margin-top: 1.9rem; gap: 0.85rem; padding-bottom: 0.25rem; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.85rem); letter-spacing: -0.03em; }
.hero__eyebrow { color: #bfe9ff; }
.hero__sub { max-width: 56ch; }

/* Buttons: feiner, moderner */
.btn { border-radius: 10px; }
.btn--primary { box-shadow: 0 10px 22px rgba(97, 179, 68, 0.26); }
.hero .btn--primary { box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18); }

/* Karten + Sektionen */
.card { border-radius: 16px; }
.card:hover { border-color: rgba(97, 179, 68, 0.45); }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }

/* --- Rechtsseiten: Stand + PDF-Download --- */
.legal-meta { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--bc-border); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.legal-stand { margin: 0; color: var(--bc-muted); font-size: 0.9rem; }

/* --- Kontaktformular --- */
.bc-form .bc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .bc-form .bc-row { grid-template-columns: 1fr; } }
.bc-field { margin: 0 0 1rem; }
.bc-field label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.92rem; }
.bc-form input, .bc-form textarea { width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--bc-border); border-radius: 10px; font: inherit; background: #fff; color: var(--bc-ink); }
.bc-form input:focus, .bc-form textarea:focus { outline: none; border-color: var(--bc-blue); box-shadow: 0 0 0 3px rgba(0, 158, 227, 0.15); }
.bc-consent { display: block; margin: 0.25rem 0 1rem; font-size: 0.9rem; line-height: 1.5; }
.bc-consent input { width: auto; margin-right: 0.5rem; }
.bc-hint { font-size: 0.82rem; color: var(--bc-muted); }
.bc-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.form-note { padding: 1rem 1.1rem; border-radius: 12px; margin-bottom: 1.25rem; }
.form-note--ok { background: rgba(97, 179, 68, 0.12); border: 1px solid rgba(97, 179, 68, 0.5); color: #2c6e1f; }
.form-note--err { background: rgba(214, 64, 64, 0.08); border: 1px solid rgba(214, 64, 64, 0.4); color: #a31515; }

/* --- Druck / PDF-Export der Rechtsdokumente --- */
@media print {
	.main-navigation, .menu-toggle, .site-footer, .cta-band, .skip-link, .legal-dl { display: none !important; }
	.site-header { position: static; border: 0; background: #fff; box-shadow: none; }
	.site-header__inner { min-height: 0; padding-block: 0.4rem; }
	body { color: #000; background: #fff; }
	.section { padding-block: 0.5rem; }
	a { color: #000; }
	.legal-meta { justify-content: flex-start; border-color: #ccc; }
	@page { margin: 18mm 16mm; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
	* { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
