/*
Theme Name: Bury Haustechnik
Theme URI: https://bury-haustechnik.de
Description: FSE-Block-Theme fuer bury-haustechnik.de - Meisterbetrieb fuer Heizung, Sanitaer, Bad, Klima, Photovoltaik in der Region Freiburg/Kaiserstuhl.
Author: myKaiserstuhl GmbH
Version: 0.6.1
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bury-haustechnik
*/

/* ================================================================
   Basis-Styles. Design-Tokens kommen aus theme.json (--wp--preset--*).
   Nur was der Block-Editor nicht abbildet, gehört hierher:
   Full-Width-Layout, Fokus-States (BFSG), kleine Sektions-Helfer.
   HINWEIS: Nach dem Anlegen/Ändern von Patterns die "Version:" oben
   UND BURY_THEME_VERSION in functions.php hochzählen,
   sonst cacht WordPress die alte Pattern-Liste.
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* Sichtbarer Fokus für Tastaturnutzer (WCAG 2.4.7 / BFSG) */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
	border-radius: 3px;
}

/* Skip-Link (in header.html eingebunden) */
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--wp--preset--color--ink); color: var(--wp--preset--color--white);
	padding: 0.75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Full-Width-Modell: randlose Sektionen, Inhalt zentriert über die
   Layout-Größen aus theme.json. .alignfull dehnt sich über den Viewport,
   der innere .wp-block-group hält contentSize. */
.wp-site-blocks { overflow-x: clip; }

/* ── HEADER / NAVIGATION ── */
.bury-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--wp--preset--color--white);
	border-bottom: 1px solid var(--wp--preset--color--hairline);
}
.bury-logo { margin: 0; }
.bury-logo img { height: 52px; width: auto !important; border-radius: 6px; }
@media (max-width: 600px) { .bury-logo img { height: 42px; } }
.bury-nav .wp-block-navigation-item__content { color: var(--wp--preset--color--ink); font-weight: 500; }
.bury-nav .wp-block-navigation-item__content:hover,
.bury-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--wp--preset--color--primary); }
/* Pill-Navigation wie im Figma-Design (ab Tablet). Mobil = Overlay, daher ausgenommen.
   Über dem hellen Platzhalter-Hero als Sand-Pille; wird zur Glas-Pille, sobald das
   dunkle Hero-Bild steht. */
@media (min-width: 782px) {
	.bury-nav .wp-block-navigation__container {
		background: var(--wp--preset--color--sand);
		border: 1px solid var(--wp--preset--color--warm-200);
		border-radius: 999px;
		padding: 0.65rem 1.75rem;
	}
	/* Dropdown-Panel behält sein eigenes Styling (kein Pill-Rahmen erben) */
	.bury-nav .wp-block-navigation__submenu-container { padding: 0.5rem; }
}
/* Dropdown „Leistungen" */
.bury-nav .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: 14px;
	box-shadow: 0 18px 40px rgba(26,25,23,0.12);
	padding: 0.5rem;
	min-width: 240px;
}
.bury-header-cta .wp-block-button__link:hover { background: var(--wp--preset--color--primary-hover) !important; }
/* Mobil: CTA-Pill ausblenden (Menü liegt im Overlay), sonst Enge/Overflow */
@media (max-width: 781px) {
	.bury-header-cta { display: none; }
}

/* ── BUTTONS ── */
.wp-block-button__link { border-radius: 999px; font-weight: 500; }
.is-style-outline .wp-block-button__link {
	border: 1.5px solid var(--wp--preset--color--warm-200);
	background: transparent;
	color: var(--wp--preset--color--ink);
}
.is-style-outline .wp-block-button__link:hover { border-color: var(--wp--preset--color--ink); }

/* ── FOOTER ── */
.bury-footer a { color: inherit; }
.bury-footer a:hover { color: var(--wp--preset--color--white); }
.bury-footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.bury-footer-list a { color: var(--wp--preset--color--warm-300); }
.bury-footer-list a:hover { color: var(--wp--preset--color--white); }
.bury-footer .wp-block-heading { margin-bottom: 1rem; }
.bury-footer .wp-block-image img { height: 50px; width: auto !important; border-radius: 6px; }

/* ── GEWERKE-BLÖCKE (Leistungsseite) ── */
.gewerk-row { margin-block: 0; }
.gewerk-img { position: relative; border-radius: 28px; overflow: hidden; min-height: 440px; height: 100%; }
.gewerk-img img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; }
.gewerk-num {
	position: absolute; top: 1.25rem; left: 1.25rem; z-index: 2;
	width: 60px; height: 60px; border-radius: 50%;
	background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.05rem;
}
.gewerk-img.is-placeholder { background: var(--wp--preset--color--warm-100); display: flex; align-items: center; justify-content: center; }
.gewerk-badge {
	background: #F5C84B; color: var(--wp--preset--color--ink);
	font-size: 0.72rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
	padding: 0.4rem 0.85rem; border-radius: 999px;
}
.gewerk-bullets { list-style: none; margin: 1rem 0 1.5rem; padding: 0; display: grid; gap: 0.55rem; }
.gewerk-bullets li { position: relative; padding-left: 1.4rem; }
.gewerk-bullets li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--wp--preset--color--primary); }
@media (min-width: 782px) {
	.gewerk-reverse .wp-block-columns { flex-direction: row-reverse; }
}

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
