/*
Theme Name: Bauservice Springer
Description: Block-Theme für Bauservice Springer, Eggesin. Beton, Böden, Fassaden, Trockenbau.
Version: 1.0.1
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Author: DATEN*DIENSTE GmbH
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bauservice-springer
*/

/* ---------- Grundlagen ---------- */
:root { --bs-rot:#B3242A; --bs-rot-dunkel:#8E1C21; --bs-anthrazit:#1F2326; --bs-tief:#15181A; --bs-beton:#F4F2EE; --bs-linie:#E6E2DC; --bs-radius:6px; }
body { -webkit-font-smoothing: antialiased; }
.wp-site-blocks { padding-top: 0; padding-bottom: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
main.bs-main { margin-block-start: 0; }
main.bs-main > .entry-content > *:first-child, main.bs-main .wp-block-post-content > *:first-child { margin-block-start: 0; }
main.bs-main .wp-block-post-content > .alignfull + .alignfull { margin-block-start: 0; }
img { height: auto; max-width: 100%; }
:focus-visible { outline: 3px solid var(--bs-rot); outline-offset: 2px; }

/* ---------- Kopfbereich ---------- */
.bs-header { background:#fff; border-bottom:1px solid var(--bs-linie); padding-block:14px; position:relative; z-index:20; }
.bs-header__inner { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px 28px; }
.bs-logo { margin:0; }
.bs-logo img { width:170px; height:auto; display:block; }
.bs-header .wp-block-navigation { font-size:15px; font-weight:500; gap:28px; }
.bs-header .wp-block-navigation a { color:var(--bs-anthrazit); text-decoration:none; }
.bs-header .wp-block-navigation a:hover { color:var(--bs-rot); }
.bs-header .wp-block-navigation__submenu-container { border:1px solid var(--bs-linie) !important; padding:6px 0; min-width:260px !important; }
.bs-header .wp-block-navigation__submenu-container a { padding:8px 16px !important; }
.bs-header__right { display:flex; align-items:center; gap:24px; flex-wrap:wrap; }
.bs-header .bs-tel .wp-block-button__link { padding:11px 18px; font-size:15px; }

/* ---------- Abschnitte ---------- */
.bs-section { padding-block: clamp(56px, 8vw, 96px); }
.bs-section--grau { background: var(--bs-beton); }
.bs-section--dunkel { background: var(--bs-anthrazit); color:#fff; }
.bs-section--dunkel a:not(.wp-element-button) { color:#fff; }
.bs-eyebrow { font-size:14px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--bs-rot); margin-bottom:-0.75rem; }
.bs-section--dunkel .bs-eyebrow, .bs-hero .bs-eyebrow, .bs-seitenkopf .bs-eyebrow { color:#F2C4C6; }
.bs-lead { font-size: var(--wp--preset--font-size--gross); max-width: 680px; }
.bs-muted { color:#555; }
.bs-section--dunkel .bs-muted { color:#D9D5CF; }

/* Hero */
.bs-hero { background: var(--bs-anthrazit) url(assets/images/illu-hero.svg) right center / cover no-repeat; color:#fff; padding-block: clamp(88px, 12vw, 150px) clamp(80px, 10vw, 120px); }
.bs-hero h1 { max-width: 720px; color:#fff; }
.bs-hero .bs-lead { color:#EDEAE6; max-width: 640px; }
@media (max-width: 781px) { .bs-hero { background-position: 78% center; } .bs-hero::before { content:none; } }

/* Seitenkopf der Unterseiten */
.bs-seitenkopf { background: var(--bs-anthrazit); color:#fff; padding-block: 64px 56px; }
.bs-seitenkopf h1 { color:#fff; }
.bs-seitenkopf .bs-lead { color:#EDEAE6; }
.bs-brotkrumen { font-size:14px; color:#B9B4AD; margin-bottom:-0.5rem; }
.bs-brotkrumen a { color:#B9B4AD !important; }

/* Vorteile-Leiste */
.bs-vorteile { background: var(--bs-beton); border-bottom:1px solid var(--bs-linie); padding-block: 32px; }
.bs-vorteil h3 { font-family: Inter, sans-serif; text-transform:none; font-size:17px; font-weight:600; letter-spacing:0; margin:0; padding-left:36px; position:relative; }
.bs-vorteil h3::before { content:""; position:absolute; left:0; top:-2px; width:24px; height:24px; background: no-repeat center/24px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B3242A' stroke-width='2.4'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.bs-vorteil p { font-size:15px; color:#555; margin-top:4px; padding-left:36px; }

/* Karten */
.bs-karte { background:#fff; border:1px solid var(--bs-linie); border-radius:var(--bs-radius); overflow:hidden; display:flex; flex-direction:column; gap:0 !important; }
.bs-section--grau .bs-karte { border-color: transparent; }
.bs-karte > .wp-block-image { margin:0; }
.bs-karte > .wp-block-image img { width:100%; aspect-ratio: 16/9; object-fit:cover; display:block; }
.bs-karte--projekt > .wp-block-image img { aspect-ratio: 4/3; }
.bs-karte__text { padding:22px 24px 24px; display:flex; flex-direction:column; gap:10px !important; flex:1; }
.bs-karte__text > * { margin:0 !important; }
.bs-karte h3 a { color:inherit; text-decoration:none; }
.bs-karte h3 a:hover { color:var(--bs-rot); }
.bs-karte--projekt h3 { font-family: Inter, sans-serif; text-transform:none; letter-spacing:0; font-size:19px; font-weight:600; line-height:1.3; }
.bs-meta { font-size:14px; color:#666; }
.bs-mehr a { font-weight:600; text-decoration:none; }
.bs-karte--dunkel { background: var(--bs-anthrazit); color:#fff; border:0; padding:32px; justify-content:space-between; gap:20px !important; }
.bs-karte--dunkel h3 { color:#fff; }
.bs-karte--dunkel p { color:#D9D5CF; margin:0; }

/* Infokacheln "Über uns" */
.bs-kachel { border-radius:var(--bs-radius); padding:26px; background:var(--bs-beton); gap:6px !important; }
.bs-kachel h3 { font-size:24px; margin:0; }
.bs-kachel p { font-size:15px; color:#555; margin:0; }
.bs-kachel--dunkel { background:var(--bs-anthrazit); color:#fff; }
.bs-kachel--dunkel h3 { color:#fff; } .bs-kachel--dunkel p { color:#D9D5CF; }
.bs-kachel--rot { background:var(--bs-rot); color:#fff; }
.bs-kachel--rot h3 { color:#fff; } .bs-kachel--rot p { color:#F7E1E2; }

/* Häkchen-Liste */
.bs-haken { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:12px; font-size:17px; }
.bs-haken li { position:relative; padding-left:34px; }
.bs-haken li::before { content:""; position:absolute; left:0; top:2px; width:22px; height:22px; background: no-repeat center/22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B3242A' stroke-width='2.6'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

.bs-illu img { width:100%; border-radius:var(--bs-radius); display:block; }

/* Weitere Leistungen */
.bs-weitere .wp-block-button.is-style-outline .wp-block-button__link { background:#fff; color:var(--bs-anthrazit); border:1px solid #C9C4BC; padding:11px 18px; font-size:15px; }
.bs-weitere .wp-block-button.is-style-outline .wp-block-button__link:hover { border-color:var(--bs-rot); color:var(--bs-rot); }

/* Buttons */
.bs-hero .is-style-outline .wp-block-button__link { background:transparent; color:#fff; border:2px solid #fff; padding:13px 24px; }
.bs-hero .is-style-outline .wp-block-button__link:hover { background:#fff; color:var(--bs-anthrazit); }
.bs-cta .is-style-outline .wp-block-button__link { background:transparent; color:var(--bs-anthrazit); border:2px solid var(--bs-anthrazit); padding:13px 24px; }

/* Rechtstexte */
.bs-rechtstext h2 { font-size:28px; margin-top:2.5rem; margin-bottom:.5rem; }
.bs-rechtstext p, .bs-rechtstext li { font-size:16px; color:#333; }

/* ---------- Kontaktformular ---------- */
.bs-formular { background:#fff; color:var(--bs-anthrazit); border-radius:var(--bs-radius); padding:32px; display:flex; flex-direction:column; gap:16px; }
.bs-formular__zeile { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:16px; }
.bs-formular label { display:flex; flex-direction:column; gap:6px; font-size:14px; font-weight:600; }
.bs-formular input[type=text], .bs-formular select, .bs-formular textarea { font:inherit; font-weight:400; font-size:16px; border:1px solid #C9C4BC; border-radius:4px; padding:11px 12px; background:#fff; color:var(--bs-anthrazit); width:100%; box-sizing:border-box; }
.bs-formular textarea { min-height:140px; resize:vertical; }
.bs-formular input:focus, .bs-formular select:focus, .bs-formular textarea:focus { outline:2px solid var(--bs-rot); outline-offset:1px; border-color:var(--bs-rot); }
.bs-formular .bs-hinweis { font-size:14px; color:#555; margin:0; }
.bs-formular .bs-hinweis a { color:var(--bs-rot) !important; }
.bs-formular button { align-self:flex-start; background:var(--bs-rot); color:#fff; border:0; border-radius:4px; padding:15px 28px; font:inherit; font-weight:600; font-size:17px; cursor:pointer; }
.bs-formular button:hover { background:var(--bs-rot-dunkel); }
.bs-hp { position:absolute !important; left:-9999px !important; width:1px; height:1px; overflow:hidden; }
.bs-meldung { border-radius:4px; padding:14px 16px; font-size:15px; margin:0; }
.bs-meldung--ok { background:#E6F2E8; color:#1E5128; }
.bs-meldung--fehler { background:#FBE9EA; color:#7A1A1E; }

/* ---------- Fußbereich ---------- */
.bs-footer { background:var(--bs-tief); color:#B9B4AD; padding-block:32px; font-size:14px; }
.bs-footer__inner { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px 24px; }
.bs-footer p { margin:0; }
.bs-footer a { color:#B9B4AD; }
.bs-footer a:hover { color:#fff; }
.bs-footer__links { display:flex; flex-wrap:wrap; gap:8px 24px; }

@media (max-width: 600px) {
	.bs-formular { padding:22px; }
	.bs-karte--dunkel { padding:24px; }
}

/* Ergänzungen */
.bs-klein { font-size: 28px !important; }
.bs-section--weitere { padding-top: 0; }
.bs-cta-zeile { align-items: center; }
.bs-cta-zeile h2 { margin-bottom: .5rem; }
.bs-section .wp-block-columns { gap: 3.5rem; align-items: center; }

/* 1.0.1: Texte linksbündig in der 1200er-Spalte statt mittig, Lesbarkeit im Hero auf kleineren Bildschirmen */
.bs-hero > h1, .bs-hero > .bs-lead, .bs-seitenkopf > .bs-lead, .bs-section > .bs-lead {
	margin-left: max(0px, calc((100% - 1200px) / 2)) !important;
	margin-right: auto !important;
}
@media (max-width: 1100px) {
	.bs-hero { background-image: linear-gradient(rgba(31,35,38,.82), rgba(31,35,38,.82)), url(assets/images/illu-hero.svg); }
}
.bs-haken { margin-top: 1.25rem !important; }
