/* ==========================================================================
   Bit & Bytes – Styles für Child-Theme (Frontend + Editor)
   Farben/Schriften kommen aus theme.json (--wp--preset--*). Hier: Schriften,
   GeneratePress-Feinschliff und die Bausteine der Block-Vorlagen (bb-*).
   ========================================================================== */

/* ---------- Schriften (lokal, keine Google-Abrufe) ---------- */
@font-face {
	font-family: "Public Sans";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/publicsans-latin-var.woff2") format("woff2");
}
@font-face {
	font-family: "Public Sans";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/publicsans-latin-italic-var.woff2") format("woff2");
}
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/archivo-latin-var.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
	--bb-ink: var(--wp--preset--color--ink, #14201f);
	--bb-slate-dk: var(--wp--preset--color--slate-dark, #33454f);
	--bb-slate: var(--wp--preset--color--slate, #516671);
	--bb-green: var(--wp--preset--color--green, #4fc77c);
	--bb-green-dk: var(--wp--preset--color--green-dark, #1e7a44);
	--bb-muted: var(--wp--preset--color--muted, #56646a);
	--bb-rule: var(--wp--preset--color--rule, #d5dcd9);
	--bb-paper: var(--wp--preset--color--paper, #f6f7f5);
	--bb-white: #fff;
	--bb-ticket: #fffdf6;
	--bb-radius: 18px;
	--bb-radius-sm: 10px;
	--bb-shadow: 0 20px 40px -28px rgba(20, 32, 31, .45);
	--bb-font: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--bb-display: Archivo, "Public Sans", system-ui, sans-serif;
	--bb-section-pad: clamp(48px, 7vw, 88px);
}

/* ---------- Grundlagen / GeneratePress ---------- */
body.bb-theme {
	font-family: var(--bb-font);
	color: var(--bb-ink);
	background: var(--bb-paper);
	overflow-x: clip;
}
.bb-theme h1, .bb-theme h2, .bb-theme h3, .bb-theme h4 {
	font-family: var(--bb-display);
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.08;
	text-wrap: balance;
}
.bb-theme :focus-visible { outline: 2px solid var(--bb-green-dk); outline-offset: 2px; }

/* Gestaltete Seiten: GP-Inhaltskasten (weiß, Innenabstand) entfernen */
.bb-designed .site-content,
.bb-designed .site-main,
.bb-designed .inside-article,
.bb-designed .entry-content { padding: 0 !important; margin: 0 !important; background: transparent !important; }
.bb-designed .site-content { display: block; max-width: none; }
.bb-designed .grid-container.site-content,
.bb-designed .site.grid-container { max-width: none; }
.bb-designed .entry-content > * { margin-top: 0; margin-bottom: 0; }

/* Volle Breite auch, wenn der GP-Inhaltscontainer nicht auf „volle Breite“ steht */
.bb-theme .entry-content > .alignfull {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
	width: auto;
}
.bb-designed .entry-content > .alignfull { margin-left: 0; margin-right: 0; }
.bb-theme .entry-content > .alignfull:first-child { margin-top: 0; }

/* Seitenabstand für alle Bereiche (auf dem Handy wichtig) */
.bb-theme .wp-block-group.alignfull,
.bb-designed .entry-content > .wp-block-group:not(.alignfull) {
	padding-left: max(20px, 4vw, env(safe-area-inset-left, 0px));
	padding-right: max(20px, 4vw, env(safe-area-inset-right, 0px));
}

/* ---------- Kleine Bausteine ---------- */
.bb-kick {
	font-size: .76rem !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	color: var(--bb-green-dk); margin-bottom: 10px !important;
}
.bb-muted { color: var(--bb-muted); }
.bb-note { font-size: .88rem; color: var(--bb-muted); }

/* Öffnungsstatus: farbige Plakette + Zusatz (hell als Standard, dunkel in der Infoleiste) */
.bb-status {
	--st-bg: #eef1ef; --st-fg: var(--bb-muted); --st-dot: #9aa6a3; --st-ring: rgba(154, 166, 163, .35);
	display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; row-gap: 4px;
	font-size: .9rem; color: var(--bb-muted); font-variant-numeric: tabular-nums;
}
.bb-status.is-open { --st-bg: #e3f5ea; --st-fg: #17663a; --st-dot: #2fb565; --st-ring: rgba(47, 181, 101, .35); }
.bb-status.is-closed { --st-bg: #fbeee1; --st-fg: #9a4f12; --st-dot: #e08a3c; --st-ring: rgba(224, 138, 60, .35); }
.bb-status.is-open.is-soon { --st-bg: #fdf4d6; --st-fg: #855d00; --st-dot: #e2b007; --st-ring: rgba(226, 176, 7, .4); }
.bb-status__pill {
	display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; border-radius: 999px;
	background: var(--st-bg); color: var(--st-fg); font-weight: 700; font-size: .82em; letter-spacing: .02em; white-space: nowrap;
}
.bb-status__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--st-dot); flex: 0 0 auto; }
.bb-status.is-open .bb-status__dot::after {
	content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--st-ring);
	animation: bb-ping 2s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes bb-ping { 0% { transform: scale(.6); opacity: 1; } 80%, 100% { transform: scale(1.7); opacity: 0; } }
.bb-status__info { white-space: nowrap; }

/* Buttons: Klassen am Button-Block (Erweitert → Zusätzliche CSS-Klasse) */
.bb-theme .wp-block-button .wp-block-button__link {
	padding: 14px 20px; border-radius: var(--bb-radius-sm); font-weight: 700; transition: background .15s, transform .15s;
}
.bb-theme .bb-btn-primary .wp-block-button__link { background: var(--bb-green); color: #0d2417; }
.bb-theme .bb-btn-primary .wp-block-button__link:hover { background: #6fd897; transform: translateY(-1px); }
.bb-theme .bb-btn-ghost .wp-block-button__link { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.bb-theme .bb-btn-ghost .wp-block-button__link:hover { background: rgba(127, 127, 127, .12); }
.bb-theme .bb-btn-dark .wp-block-button__link { background: var(--bb-ink); color: #fff; }

/* Sektionen */
.bb-section { padding-top: var(--bb-section-pad); padding-bottom: var(--bb-section-pad); }
.bb-section--tight { padding-top: 0; }
.bb-section--white { background: var(--bb-white); }

/* ---------- Hero ---------- */
.bb-hero {
	background: radial-gradient(1200px 500px at 85% -10%, #3b5562 0, transparent 60%), var(--bb-slate-dk);
	color: #fff;
	padding-top: clamp(40px, 6vw, 72px);
	padding-bottom: clamp(40px, 6vw, 72px);
}
.bb-hero h1 { color: #fff; font-size: var(--wp--preset--font-size--huge, clamp(2.4rem, 5vw, 4rem)); letter-spacing: -.025em; line-height: 1.02; margin-bottom: 18px; }
.bb-hero .bb-sub { font-size: 1.12rem; color: #c5d3d0; max-width: 46ch; }
.bb-hero .wp-block-columns { align-items: center; gap: clamp(28px, 4vw, 48px); }
.bb-facts { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .84rem; color: #b6c6c2; }
.bb-facts li::before { content: "✓ "; color: var(--bb-green); font-weight: 700; }

.bb-photo { position: relative; margin: 0; }
.bb-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--bb-radius); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.bb-photo figcaption {
	position: absolute; left: -18px; bottom: 24px; margin: 0; text-align: left;
	background: #fff; color: var(--bb-ink); padding: 12px 16px; border-radius: 12px;
	font-size: .8rem; line-height: 1.5; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .45);
}
@media (max-width: 781px) { .bb-photo figcaption { left: 10px; } }

/* ---------- Problem-Finder ---------- */
.bb-finder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 30px; align-items: start; margin-top: 24px; }
.bb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bb-chip {
	font: 600 .92rem var(--bb-font); padding: 10px 16px; border-radius: 999px; cursor: pointer;
	border: 1.5px solid var(--bb-rule); background: var(--bb-white); color: var(--bb-ink);
}
.bb-chip:hover { border-color: var(--bb-ink); background: var(--bb-white); color: var(--bb-ink); }
.bb-chip[aria-pressed="true"] { background: var(--bb-slate-dk); border-color: var(--bb-slate-dk); color: #fff; }
.bb-answers { display: grid; gap: 16px; }
.bb-answer {
	background: var(--bb-white); border: 1px solid var(--bb-rule); border-radius: var(--bb-radius);
	box-shadow: var(--bb-shadow); padding: 26px;
}
.bb-answer h3 { font-size: 1.35rem; margin: 0 0 10px; }
.bb-answer ul { margin: 0 0 12px 1.1em; }
.bb-answer__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .82rem; color: var(--bb-muted); border-top: 1px dashed var(--bb-rule); padding-top: 12px; }
.bb-answer__links { margin: 10px 0 0; font-weight: 700; }
.bb-js .bb-answer[hidden] { display: none; }
@media (max-width: 860px) { .bb-finder { grid-template-columns: 1fr; } }

/* ---------- Privat / Firmen ---------- */
.bb-split { gap: 0 !important; border: 1px solid var(--bb-rule); border-radius: 20px; overflow: hidden; background: var(--bb-white); margin-top: 24px; }
.bb-split > .wp-block-column { padding: 28px; }
.bb-split > .wp-block-column.bb-split__dark { background: var(--bb-slate-dk); color: #e9f0ee; }
.bb-split__dark h3, .bb-split__dark a { color: #fff; }
.bb-split h3 { font-size: 1.5rem; margin-top: 0; }
.bb-linklist { list-style: none; padding: 0; margin: 0; }
.bb-linklist li { padding: 10px 0; border-bottom: 1px solid var(--bb-rule); }
.bb-split__dark .bb-linklist li { border-color: rgba(255, 255, 255, .18); }
.bb-linklist a { text-decoration: none; font-weight: 500; color: inherit; display: flex; justify-content: space-between; gap: 12px; }
.bb-linklist a::after { content: "→"; opacity: .5; }
.bb-linklist a:hover::after { opacity: 1; }

/* ---------- Preis-Karten ---------- */
.bb-flatgrid { gap: 16px !important; margin-top: 24px; }
.bb-flat {
	background: var(--bb-white); border: 1px solid var(--bb-rule); border-radius: var(--bb-radius);
	padding: 24px !important;
}
.bb-flat > * { margin-top: 0; margin-bottom: 10px; }
.bb-flat--hi { background: var(--bb-slate-dk); border-color: var(--bb-slate-dk); color: #fff; }
.bb-flat--hi h3 { color: #fff; }
.bb-flat--hi .bb-kick { color: var(--bb-green); }
.bb-price { font-family: var(--bb-display); font-weight: 800; font-size: 2rem; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bb-price small, .bb-price sub { font: 500 .8rem var(--bb-font); opacity: .75; letter-spacing: 0; vertical-align: baseline; }

/* Vergleichstabelle (Tabellen-Block mit Klasse bb-compare) */
.bb-compare table { border-collapse: collapse; width: 100%; background: var(--bb-white); font-variant-numeric: tabular-nums; }
.bb-compare th, .bb-compare td { border: 0; border-bottom: 1px solid var(--bb-rule); padding: 12px 14px; text-align: left; }
.bb-compare thead th { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--bb-muted); }
.bb-compare td:not(:first-child), .bb-compare th:not(:first-child) { text-align: center; }

/* ---------- Ablauf + Serviceauftrag ---------- */
.bb-steps { list-style: none; padding: 0; margin: 0; counter-reset: bbstep; }
.bb-steps li { counter-increment: bbstep; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--bb-rule); }
.bb-steps li::before { content: counter(bbstep); font: 800 1.9rem/1 var(--bb-display); color: var(--bb-slate); }
.bb-steps strong { display: block; font-size: 1.05rem; }

.bb-ticket {
	background: var(--bb-ticket); border: 1px solid #cbc6b4; border-radius: 6px 6px 0 0;
	padding: 22px 22px 26px; font-size: .9rem; line-height: 1.55; color: #2a2a24; position: relative;
	transform: rotate(.6deg); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .4); font-variant-numeric: tabular-nums;
}
.bb-ticket::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px;
	background: radial-gradient(circle at 6px 0, transparent 5px, var(--bb-ticket) 5.5px) 0 0 / 12px 8px repeat-x;
}
.bb-ticket__top { display: flex; justify-content: space-between; font-weight: 700; border-bottom: 1.5px dashed #9c9784; padding-bottom: 10px; margin-bottom: 10px; }
.bb-ticket dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin: 0; }
.bb-ticket dt { color: #77735f; }
.bb-ticket dd { margin: 0; }
.bb-ticket__sum { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; border-top: 1.5px dashed #9c9784; margin-top: 12px; padding-top: 12px; }
.bb-ticket__price {
	font: 800 1.6rem/1 var(--bb-display); letter-spacing: -.01em; color: var(--bb-ink);
	padding: 2px 6px; background: linear-gradient(transparent 58%, rgba(79, 199, 124, .38) 58%, rgba(79, 199, 124, .38) 92%, transparent 92%);
}
.bb-ticket__stamp {
	position: absolute; right: -8px; top: -16px; background: var(--bb-ticket);
	border: 2px solid var(--bb-green-dk); color: var(--bb-green-dk); padding: 3px 8px; font-weight: 700;
	letter-spacing: .06em; transform: rotate(-9deg); font-size: .8rem;
}
@media (prefers-reduced-motion: reduce) { .bb-ticket, .bb-ticket__stamp { transform: none; } }

/* ---------- Person / Bewertungen ---------- */
.bb-person { background: var(--bb-white); border-top: 1px solid var(--bb-rule); border-bottom: 1px solid var(--bb-rule); }
.bb-person .wp-block-columns { align-items: center; }
.bb-person img { border-radius: 16px; aspect-ratio: 5 / 6; object-fit: cover; }
.bb-person blockquote, .bb-person .wp-block-quote { border: 0; padding: 0; margin: 0; }
.bb-person .wp-block-quote p { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 600; line-height: 1.4; }
.bb-person .wp-block-quote cite { font-size: .85rem; color: var(--bb-muted); font-style: normal; }
.bb-reviews { margin-top: clamp(32px, 5vw, 56px); padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--bb-rule); }
.bb-reviews h2 { margin: 4px 0 20px; }
@media (max-width: 781px) { .bb-person .wp-block-image img { max-width: 160px; } }

/* ---------- Besuch / Öffnungszeiten / FAQ ---------- */
.bb-hours {
	background: #fff; border: 1px solid var(--bb-rule); border-radius: 18px; padding: 10px; font-variant-numeric: tabular-nums;
}
.bb-hours__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.bb-hours__list li {
	display: flex; justify-content: space-between; align-items: center; gap: 12px;
	padding: 8px 10px; border-radius: 10px; font-size: .95rem; transition: background-color .2s ease;
}
.bb-hours__day { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.bb-hours__day em { display: none; font-style: normal; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--bb-green); color: var(--bb-ink); }
.bb-hours__time { text-align: right; color: var(--bb-ink); }
.bb-hours__time small { color: var(--bb-muted); font-size: .8em; }
.bb-hours__list li.is-closed .bb-hours__day, .bb-hours__list li.is-closed .bb-hours__time { color: #98a39f; font-weight: 500; }
.bb-hours__list li.is-today { background: var(--bb-paper); box-shadow: inset 3px 0 0 var(--bb-green); }
.bb-hours__list li.is-today .bb-hours__day { color: var(--bb-ink); font-weight: 700; }
.bb-hours__list li.is-today .bb-hours__day em { display: inline-block; }
.bb-hours__list li.is-today .bb-hours__time { font-weight: 700; color: var(--bb-ink); }
.bb-address { font-style: normal; margin-bottom: 10px; }

.bb-faq .wp-block-details { border-bottom: 1px solid var(--bb-rule); padding: 12px 0; margin: 0; }
.bb-faq .wp-block-details summary { cursor: pointer; font-weight: 600; }
.bb-faq .wp-block-details > :not(summary) { color: var(--bb-muted); margin-top: 8px; }

/* ---------- CTA-Band ---------- */
.bb-cta { background: var(--bb-ink); color: #e3ebe9; padding-top: 48px; padding-bottom: 48px; }
.bb-cta h2 { color: #fff; margin-top: 0; }
.bb-cta .wp-block-buttons { margin-top: 18px; }

/* ---------- Leistungsseite ---------- */
.bb-page-hero { background: var(--bb-white); border-bottom: 1px solid var(--bb-rule); padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(36px, 5vw, 64px); }
.bb-page-hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: 14px; }
.bb-page-hero .bb-sub { font-size: 1.12rem; color: var(--bb-muted); max-width: 60ch; }
.bb-checks { list-style: none; padding: 0; }
.bb-checks li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.bb-checks li::before { content: "✓"; position: absolute; left: 0; color: var(--bb-green-dk); font-weight: 800; }

/* ---------- Ausrichtung in breiten (1200px) Bereichen ---------- */
/* Untertitel und Fließtext-Spalten linksbündig an der 1200px-Kante statt mittig */
:root { --bb-wide: 1200px; }
.is-layout-constrained > .bb-sub,
.bb-article.is-layout-constrained > * {
	margin-left: max(0px, calc((100% - var(--bb-wide)) / 2)) !important;
	margin-right: auto !important;
}
.is-layout-constrained > .bb-sub { max-width: 60ch; }
.bb-article.is-layout-constrained > * { max-width: 760px; }
.bb-article.is-layout-constrained > .wp-block-table,
.bb-article.is-layout-constrained > .wp-block-columns { max-width: var(--bb-wide); }

/* Lesbarkeit auf dunklen Karten */
.bb-flat--hi .bb-note { color: #c5d3d0; }
.bb-flat--hi a { color: var(--bb-green); }
.bb-article.is-layout-constrained > h2:not(:first-child) { margin-top: 1.6em !important; }
.bb-article.is-layout-constrained > h2 { margin-bottom: .5em !important; }


/* ==========================================================================
   Einstieg Startseite: Gebäude im Hintergrund, zwei einzelne Kacheln
   ========================================================================== */
.bb-gate {
	position: relative; isolation: isolate; color: #e9f0ee;
	padding-top: clamp(48px, 7vw, 104px); padding-bottom: clamp(48px, 7vw, 104px);
	background:
		linear-gradient(90deg, rgba(14, 22, 22, .55) 0%, rgba(14, 22, 22, .2) 60%, rgba(14, 22, 22, 0) 100%),
		linear-gradient(180deg, rgba(14, 22, 22, .72) 0%, rgba(14, 22, 22, .6) 45%, rgba(14, 22, 22, .9) 100%),
		url("../img/laden-grauwiesen-gross.webp") center 40% / cover no-repeat,
		var(--bb-ink);
}
@media (max-width: 781px) {
	.bb-gate { background:
		linear-gradient(180deg, rgba(14, 22, 22, .78) 0%, rgba(14, 22, 22, .92) 100%),
		url("../img/laden-grauwiesen.webp") center / cover no-repeat, var(--bb-ink); }
}
.bb-gate h1 { color: #fff; font-size: clamp(2.1rem, 4.8vw, 3.8rem); margin: 0 0 14px; max-width: 18ch; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.bb-gate .bb-sub { color: #fff; font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 500; line-height: 1.5; text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 2px 18px rgba(0, 0, 0, .45); }
.bb-gate__panels { gap: clamp(16px, 2vw, 24px) !important; margin-top: clamp(28px, 4vw, 52px) !important; max-width: 1000px; margin-left: max(0px, calc((100% - var(--bb-wide)) / 2)) !important; }

.bb-gate__panel {
	position: relative; overflow: hidden; isolation: isolate;
	min-height: clamp(280px, 34vh, 360px);
	border-radius: 22px; padding: clamp(24px, 2.6vw, 36px) !important;
	display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
	box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .7);
	transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s, opacity .35s, filter .35s;
}
.bb-gate__panel > * { margin: 0 !important; position: relative; z-index: 2; }
.bb-gate__panel > .wp-block-buttons, .bb-gate__panel .wp-block-button { position: static; }
.bb-gate__panel h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -.03em; }
.bb-gate__panel ul { list-style: none; padding: 0; margin: 8px 0 20px !important; display: grid; gap: 4px; font-size: .98rem; }
.bb-gate__panel ul li::before { content: "– "; }

/* Privat: hell */
.bb-gate__panel--privat { background: rgba(255, 255, 255, .96); color: var(--bb-ink); }
.bb-gate__panel--privat h2 { color: var(--bb-ink); }
.bb-gate__panel--privat .bb-kick { color: var(--bb-green-dk); }
.bb-gate__panel--privat ul { color: var(--bb-muted); }
.bb-gate__panel--privat ul li::before { color: var(--bb-green-dk); }
.bb-theme .bb-gate__panel--privat .wp-block-button .wp-block-button__link { background: var(--bb-ink); color: #fff; }

/* Firma: dunkel */
.bb-gate__panel--firma {
	background:
		radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .08) 1px, transparent 0) 0 0 / 22px 22px,
		linear-gradient(160deg, #3b5562 0%, var(--bb-slate-dk) 60%, #26363e 100%);
	color: #fff;
}
.bb-gate__panel--firma h2 { color: #fff; }
.bb-gate__panel--firma .bb-kick { color: var(--bb-green); }
.bb-gate__panel--firma ul { color: rgba(255, 255, 255, .8); }
.bb-gate__panel--firma ul li::before { color: var(--bb-green); }
.bb-theme .bb-gate__panel--firma .wp-block-button .wp-block-button__link { background: #fff; color: var(--bb-ink); }

/* Pfeil oben rechts */
.bb-gate__panel::before {
	content: "→"; position: absolute; top: 22px; right: 22px; z-index: 2;
	width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
	font: 700 1.3rem/1 var(--bb-font); transform: rotate(-45deg);
	transition: transform .45s cubic-bezier(.2, .8, .2, 1), background .3s, color .3s;
}
.bb-gate__panel--privat::before { background: var(--bb-paper); color: var(--bb-ink); }
.bb-gate__panel--firma::before { background: rgba(255, 255, 255, .12); color: #fff; }

/* Lichtkegel, folgt der Maus (Position kommt aus bb.js) */
.bb-gate__panel::after {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .4s;
	background: radial-gradient(380px circle at var(--mx, 70%) var(--my, 30%), rgba(79, 199, 124, .22), transparent 60%);
}

/* Ganze Kachel klickbar */
.bb-gate__panel .wp-block-button__link::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.bb-theme .bb-gate__panel .wp-block-button .wp-block-button__link { position: static; transition: background .25s, color .25s, padding .3s; }

@media (hover: hover) {
	.bb-gate__panels:hover .bb-gate__panel:not(:hover) { opacity: .7; filter: saturate(.7); transform: scale(.985); }
	.bb-gate__panel:hover, .bb-gate__panel:focus-within { transform: translateY(-8px); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .8), 0 0 0 2px var(--bb-green); }
	.bb-gate__panel:hover::after { opacity: 1; }
	.bb-gate__panel:hover::before { transform: rotate(0deg); background: var(--bb-green); color: #0d2417; }
	.bb-theme .bb-gate__panel:hover .wp-block-button .wp-block-button__link { background: var(--bb-green); color: #0d2417; padding-right: 28px; }
}
@media (prefers-reduced-motion: reduce) {
	.bb-gate__panel, .bb-gate__panel::before { transition: none; }
	.bb-gate__panel:hover, .bb-gate__panels:hover .bb-gate__panel:not(:hover) { transform: none; }
}

/* ==========================================================================
   Rechner IT-Betreuungsvertrag
   ========================================================================== */
.bb-calc {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0;
	border: 1px solid var(--bb-rule); border-radius: 22px; overflow: hidden; background: var(--bb-white);
	box-shadow: var(--bb-shadow); margin-top: 24px;
}
.bb-calc__in { padding: clamp(22px, 3vw, 36px); display: grid; gap: 22px; align-content: start; }
.bb-calc__field { display: grid; gap: 8px; }
.bb-calc__field label { font-weight: 700; display: grid; gap: 2px; }
.bb-calc__field label span { font-weight: 400; font-size: .86rem; color: var(--bb-muted); }
.bb-stepper { display: inline-grid; grid-template-columns: 48px 90px 48px; border: 1.5px solid var(--bb-rule); border-radius: 12px; overflow: hidden; width: max-content; }
.bb-stepper button {
	background: var(--bb-paper); color: var(--bb-ink); border: 0; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0;
}
.bb-stepper button:hover { background: var(--bb-rule); color: var(--bb-ink); }
.bb-stepper input {
	border: 0 !important; border-left: 1.5px solid var(--bb-rule) !important; border-right: 1.5px solid var(--bb-rule) !important;
	text-align: center; font: 700 1.3rem var(--bb-display); padding: 10px 4px !important; width: 100%; background: #fff; color: var(--bb-ink);
	-moz-appearance: textfield; appearance: textfield; font-variant-numeric: tabular-nums; border-radius: 0 !important;
}
.bb-stepper input::-webkit-outer-spin-button, .bb-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bb-calc__range { display: flex; align-items: center; gap: 14px; }
.bb-calc__range input { flex: 1; accent-color: var(--bb-green-dk); }
.bb-calc__range output { min-width: 110px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.bb-calc__inc { margin: 0; font-size: .9rem; color: var(--bb-green-dk); background: #e6f5ec; padding: 10px 14px; border-radius: 10px; }

.bb-calc__out { background: var(--bb-slate-dk); color: #e9f0ee; padding: clamp(22px, 3vw, 36px); display: grid; gap: 10px; align-content: start; }
.bb-calc__out .bb-kick { color: var(--bb-green); margin: 0 !important; }
.bb-calc__total { margin: 0; font: 800 clamp(2.4rem, 5vw, 3.4rem)/1 var(--bb-display); color: #fff; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.bb-calc__total small { font: 500 .9rem var(--bb-font); color: #b9c8c4; letter-spacing: 0; }
.bb-calc__out dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 10px 0 0; font-variant-numeric: tabular-nums; font-size: .95rem; }
.bb-calc__out dt { color: #b9c8c4; }
.bb-calc__out dd { margin: 0; text-align: right; font-weight: 600; color: #fff; }
.bb-calc__out .bb-calc__sum { border-top: 1px solid rgba(255,255,255,.18); padding-top: 8px; }
.bb-calc__out [hidden] { display: none; }
.bb-calc__terms { font-size: .82rem; color: #b4c4c0; margin: 6px 0 0; }
.bb-calc__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.bb-calc__btn {
	display: inline-flex; padding: 13px 18px; border-radius: 10px; font-weight: 700; text-decoration: none;
	background: var(--bb-green); color: #0d2417 !important;
}
.bb-calc__btn:hover { background: #6fd897; }
.bb-calc__btn--ghost { background: transparent; color: #fff !important; border: 1.5px solid rgba(255,255,255,.4); }
.bb-calc__btn--ghost:hover { background: rgba(255,255,255,.1); }
@media (max-width: 860px) { .bb-calc { grid-template-columns: 1fr; } }

/* Leistungs-Kacheln (Hub-Seiten) */
.bb-cards { gap: 16px !important; }
.bb-card {
	position: relative; background: var(--bb-white); border: 1px solid var(--bb-rule); border-radius: var(--bb-radius);
	padding: 22px !important; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.bb-card > * { margin-top: 0 !important; margin-bottom: 8px !important; }
.bb-card h3 { font-size: 1.2rem; }
.bb-card h3 a { color: var(--bb-ink); text-decoration: none; }
.bb-card h3 a::after { content: ""; position: absolute; inset: 0; }
.bb-card p { color: var(--bb-muted); font-size: .95rem; }
.bb-card:hover { border-color: var(--bb-ink); transform: translateY(-2px); box-shadow: var(--bb-shadow); }

/* Einstieg: Überschrift linksbündig an der 1200px-Kante */
.bb-gate.is-layout-constrained > h1 {
	margin-left: max(0px, calc((100% - var(--bb-wide)) / 2)) !important;
	margin-right: auto !important;
}

/* ==========================================================================
   Kopfzeile, zweizeilig: dunkle Infoleiste + weiße Hauptleiste
   ========================================================================== */
:root { --accent: var(--bb-green-dk); } /* GeneratePress-Linkfarbe statt Standardblau */

/* Infoleiste */
.bb-topbar { background: var(--bb-ink); color: rgba(255, 255, 255, .78); font-size: .82rem; }
.bb-topbar__in {
	max-width: 1440px; margin: 0 auto; padding: 0 32px; min-height: 42px;
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.bb-topbar .bb-status { font-size: .82rem; color: rgba(255, 255, 255, .75); gap: 9px; }
.bb-topbar .bb-status { --st-bg: rgba(255, 255, 255, .1); --st-fg: #fff; }
.bb-topbar .bb-status.is-open { --st-bg: rgba(79, 199, 124, .18); --st-fg: #8be8ae; --st-dot: #4fc77c; --st-ring: rgba(79, 199, 124, .5); }
.bb-topbar .bb-status.is-open.is-soon { --st-bg: rgba(242, 201, 76, .16); --st-fg: #f5d77a; --st-dot: #f2c94c; --st-ring: rgba(242, 201, 76, .5); }
.bb-topbar .bb-status.is-closed { --st-bg: rgba(240, 160, 90, .16); --st-fg: #f7c08c; --st-dot: #f0a05a; }
.bb-topbar .bb-status__pill { font-size: .78rem; padding: 3px 10px 3px 8px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.bb-topbar__links { list-style: none; margin: 0 !important; padding: 0; display: flex; align-items: center; gap: 26px; }
.bb-topbar__links li { margin: 0; line-height: 1.2; white-space: nowrap; }
.bb-topbar__links a { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .78); text-decoration: none; transition: color .2s ease; }
.bb-topbar__links a:hover, .bb-topbar__links a:focus-visible { color: #fff; }
.bb-topbar__links svg { width: 15px; height: 15px; fill: var(--bb-green); flex: 0 0 auto; }
.bb-topbar__tel a { color: #fff; }
.bb-topbar__tel strong { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .01em; }

/* Hauptleiste */
.bb-theme .site-header { border-bottom: 1px solid var(--bb-rule); }
.bb-theme .site-header .inside-header.grid-container { max-width: 1440px; }
.bb-theme .site-logo img,
.bb-theme .site-header .custom-logo { max-height: 50px; width: auto; height: auto; }
.bb-theme .site-logo { flex-shrink: 0; }

/* Menüpunkte: grüner Strich beim Überfahren / aktiv */
.bb-theme .main-navigation .main-nav > ul > li > a { position: relative; font-weight: 600; color: var(--bb-ink); }
.bb-theme .main-navigation .main-nav > ul > li > a::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 16px; height: 2px; border-radius: 2px;
	background: var(--bb-green); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.bb-theme .main-navigation .main-nav > ul > li:hover > a::after,
.bb-theme .main-navigation .main-nav > ul > li.current-menu-item > a::after,
.bb-theme .main-navigation .main-nav > ul > li.current-menu-ancestor > a::after { transform: scaleX(1); }
.bb-theme .main-navigation .main-nav > ul > li.menu-item-has-children > a::after { right: 30px; }
/* Untermenüs als Karte */
.bb-theme .main-navigation ul ul {
	border-radius: 14px; padding: 8px; background: #fff;
	box-shadow: 0 24px 48px -24px rgba(20, 32, 31, .45); border: 1px solid var(--bb-rule);
}
.bb-theme .main-navigation ul ul { width: auto; min-width: 230px; }
.bb-theme .main-navigation ul ul li a { border-radius: 8px; padding: 10px 14px; font-size: .92rem; line-height: 1.3; white-space: nowrap; }
.bb-theme .main-navigation ul ul li:hover > a, .bb-theme .main-navigation ul ul li.current-menu-item > a { background: var(--bb-paper); color: var(--bb-green-dk); }

/* Knopf „Fernwartung“ und Telefon-Symbol */
.bb-theme .bb-menu-extra a { line-height: normal; }
.bb-theme .bb-menu-extra .bb-remote-btn {
	display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap;
	background: var(--bb-green); color: var(--bb-ink) !important; font-weight: 700; font-size: .95rem;
	padding: 11px 18px 11px 14px; border-radius: 12px;
	box-shadow: 0 10px 22px -14px rgba(34, 135, 75, .9);
	transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.bb-theme .bb-menu-extra .bb-remote-btn:hover, .bb-theme .bb-menu-extra .bb-remote-btn:focus-visible {
	background: #5fd68b; transform: translateY(-1px); box-shadow: 0 14px 26px -14px rgba(34, 135, 75, 1);
}
.bb-menu-extra svg { width: 18px; height: 18px; fill: currentColor; flex: 0 0 auto; }
.bb-theme .bb-menu-extra .bb-callicon {
	display: none; width: 40px; height: 40px; border-radius: 11px; place-items: center;
	background: var(--bb-green); color: var(--bb-ink) !important;
}

@media (min-width: 769px) {
	.bb-theme .inside-header { padding-left: 32px; padding-right: 32px; }
	.bb-theme #site-navigation { flex: 1 1 auto; }
	.bb-theme #site-navigation .inside-navigation { flex-wrap: nowrap; width: 100%; max-width: none; justify-content: flex-end; }
	.bb-theme #primary-menu { flex-shrink: 0; margin-left: auto; }
	.bb-theme .main-navigation .main-nav > ul > li > a { padding-left: 12px; padding-right: 12px; white-space: nowrap; }
	.bb-theme .main-navigation .main-nav > ul > li > a .dropdown-menu-toggle { padding-left: 6px; padding-right: 0; }
	/* Fernwartung steht als Knopf rechts – im Menü daneben nicht doppelt zeigen */
	.bb-theme .main-navigation .main-nav > ul > li > a[href$="/fernwartung/"] { display: none; }
	.bb-menu-extra { flex-shrink: 0; margin-left: 20px; display: flex; align-items: center; }
}
@media (min-width: 769px) and (max-width: 1100px) {
	.bb-theme .inside-header, .bb-topbar__in { padding-left: 20px; padding-right: 20px; }
	.bb-topbar__mail { display: none; }
}
@media (min-width: 769px) and (max-width: 940px) {
	.bb-theme .site-logo img { max-height: 40px; }
	.bb-theme .main-navigation .main-nav > ul > li > a { padding-left: 8px; padding-right: 8px; }
	.bb-theme .main-navigation .main-nav > ul > li > a::after { left: 8px; right: 8px; }
	.bb-theme .bb-menu-extra .bb-remote-btn { padding: 10px; }
	.bb-theme .bb-menu-extra .bb-remote-btn span { display: none; }
	.bb-topbar__addr { display: none; }
}
@media (max-width: 768px) {
	.bb-topbar__in { padding: 0 16px; min-height: 36px; font-size: .78rem; }
	.bb-topbar__addr, .bb-topbar__mail { display: none; }
	.bb-topbar .bb-status { font-size: .78rem; }
	.bb-theme .site-logo img,
	.bb-theme .site-header .custom-logo { max-height: 34px; }
	.bb-theme .inside-header {
		padding: 10px 16px;
		flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center;
	}
	.bb-theme .site-logo { margin: 0; }
	.bb-theme .mobile-menu-control-wrapper { margin-left: auto !important; flex-wrap: nowrap; align-items: center; }
	.bb-theme .mobile-menu-control-wrapper .menu-toggle { flex-grow: 0; }
	.bb-theme #site-navigation { flex-basis: 100%; }
	.bb-menu-extra { margin-left: 8px; display: flex; gap: 8px; }
	.bb-theme .bb-menu-extra .bb-remote-btn { display: none; }
	.bb-theme .bb-menu-extra .bb-callicon { display: grid; }
}
@media (max-width: 360px) {
	.bb-theme .site-logo img,
	.bb-theme .site-header .custom-logo { max-height: 28px; }
	.bb-topbar .bb-status { font-size: .72rem; }
	.bb-topbar .bb-status__info { font-size: .95em; }
}
@media (max-width: 480px) {
	.bb-topbar__in { justify-content: center; }
	.bb-topbar__tel { display: none; } /* Telefon steht als Symbol in der Hauptleiste */
}

/* ---------- Seitlicher Knopf: Google-Bewertungen ---------- */
.bb-gtab {
	position: fixed; right: 0; top: 50%; z-index: 60;
	display: grid; grid-template-columns: 76px auto auto; grid-template-rows: auto auto; align-items: center;
	padding: 14px 22px 14px 0; text-decoration: none; color: var(--bb-ink) !important;
	background: #fff; border: 1px solid var(--bb-rule); border-right: 0;
	border-radius: 20px 0 0 20px; box-shadow: 0 22px 44px -20px rgba(20, 32, 31, .55);
	transform: translate(calc(100% - 76px), -50%);
	transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s ease;
}
.bb-gtab:hover, .bb-gtab:focus-visible { transform: translate(0, -50%); box-shadow: 0 26px 50px -20px rgba(20, 32, 31, .65); }
.bb-gtab__g { grid-column: 1; grid-row: 1; justify-self: center; width: 44px; height: 44px; display: grid; place-items: center; }
.bb-gtab__g svg { width: 36px; height: 36px; }
.bb-gtab__stars { grid-column: 1; grid-row: 2; justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 1px; margin-top: 8px; color: #fbbc04; font-size: 15px; line-height: 1; }
.bb-gtab__stars i { font-style: normal; text-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.bb-gtab__txt { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 3px; padding-left: 4px; font-size: .86rem; color: var(--bb-muted); white-space: nowrap; }
.bb-gtab__txt strong { font-size: 1.05rem; color: var(--bb-ink); }
.bb-gtab__go { grid-column: 3; grid-row: 1 / span 2; margin-left: 18px; font-size: 1.3rem; color: var(--bb-green-dk); transition: transform .2s ease; }
.bb-gtab:hover .bb-gtab__go { transform: translateX(3px); }
.bb-gtab:hover .bb-gtab__stars i { animation: bb-star .5s ease both; }
.bb-gtab:hover .bb-gtab__stars i:nth-child(2) { animation-delay: .06s; }
.bb-gtab:hover .bb-gtab__stars i:nth-child(3) { animation-delay: .12s; }
.bb-gtab:hover .bb-gtab__stars i:nth-child(4) { animation-delay: .18s; }
.bb-gtab:hover .bb-gtab__stars i:nth-child(5) { animation-delay: .24s; }
@keyframes bb-star { 50% { transform: scale(1.35); } }
@media (max-width: 768px) {
	.bb-gtab {
		top: auto; bottom: 90px; grid-template-columns: 58px auto auto; padding: 10px 16px 10px 0;
		border-radius: 16px 0 0 16px; transform: translateX(calc(100% - 58px));
	}
	.bb-gtab:hover, .bb-gtab:focus-visible { transform: translateX(0); }
	.bb-gtab__g, .bb-gtab__g svg { width: 30px; height: 30px; }
	.bb-gtab__stars { font-size: 11px; margin-top: 5px; }
}
@media (prefers-reduced-motion: reduce) {
	.bb-gtab, .bb-menu-extra .bb-remote-btn { transition: none; }
	.bb-status__dot::after, .bb-gtab:hover .bb-gtab__stars i { animation: none !important; }
}
.bb-reviews { scroll-margin-top: 24px; }

/* ---------- Einstieg: Fernwartungs-Leiste unter den Kacheln ---------- */
.bb-gate .bb-gate__remote { margin-top: 22px !important; margin-bottom: 0; }
.bb-gate__remote a {
	display: flex; align-items: center; gap: 16px; text-decoration: none; color: #fff !important;
	padding: 14px 20px 14px 14px; border-radius: 16px;
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.bb-gate__remote a:hover, .bb-gate__remote a:focus-visible { background: rgba(255, 255, 255, .18); border-color: var(--bb-green); transform: translateY(-1px); }
.bb-gate__remote-ico {
	flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background-color: var(--bb-green);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2314201f'%3E%3Cpath d='M3 4h18a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1h-7v2h3v2H7v-2h3v-2H3a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm1 2v9h16V6z'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: center; background-size: 22px;
}
.bb-gate__remote a > span:nth-child(2) { flex: 1; font-size: .95rem; color: rgba(255, 255, 255, .8); }
.bb-gate__remote strong { display: block; color: #fff; font-size: 1.05rem; }
.bb-gate__remote-go { font-size: 1.3rem; transition: transform .2s ease; }
.bb-gate__remote a:hover .bb-gate__remote-go { transform: translateX(4px); }

/* ---------- Kontaktliste (Laden & Kontakt) ---------- */
.bb-contact-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.bb-contact-list a {
	display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--bb-ink) !important;
	padding: 10px 14px 10px 10px; border-radius: 14px; background: #fff; border: 1px solid var(--bb-rule);
	transition: border-color .2s ease, transform .2s ease;
}
.bb-contact-list a:hover, .bb-contact-list a:focus-visible { border-color: var(--bb-ink); transform: translateX(3px); }
.bb-ci { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--bb-paper); }
.bb-ci svg { width: 18px; height: 18px; fill: var(--bb-ink); }
.bb-contact-list a:hover .bb-ci { background: var(--bb-green); }
.bb-contact-list a > span:last-child { display: flex; flex-direction: column; font-weight: 700; line-height: 1.25; word-break: break-word; }
.bb-contact-list small { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--bb-muted); }

/* Fußzeile: Links ruhig statt blau */
.bb-theme .site-info a { color: var(--bb-ink); text-decoration-color: var(--bb-rule); text-underline-offset: 3px; }
.bb-theme .site-info a:hover { color: var(--bb-green-dk); }

/* ==========================================================================
   404 – Seite nicht gefunden
   ========================================================================== */
.bb-404 {
	position: relative; isolation: isolate; overflow: hidden; color: #e9f0ee;
	background:
		radial-gradient(60% 70% at 85% 10%, rgba(79, 199, 124, .16), transparent 60%),
		radial-gradient(50% 60% at 0% 100%, rgba(81, 102, 113, .45), transparent 60%),
		var(--bb-ink);
	padding: clamp(56px, 8vw, 120px) max(20px, 4vw);
}
.bb-404::before { /* feines Punkteraster */
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
	background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
	background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.bb-404__in {
	max-width: var(--bb-wide, 1200px); margin: 0 auto;
	display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center;
}
.bb-404 .bb-kick { color: var(--bb-green); }
.bb-404 h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin: 0 0 14px; max-width: 20ch; }
.bb-404__sub { color: rgba(255, 255, 255, .78); font-size: 1.1rem; max-width: 46ch; margin-bottom: 28px; }

/* Große 404 mit Flimmern */
.bb-404__num {
	position: relative; display: inline-flex; gap: .02em; margin: 0 0 10px;
	font: 900 clamp(6rem, 17vw, 12.5rem)/.85 var(--bb-display); letter-spacing: -.05em; color: #fff;
	font-variant-numeric: tabular-nums;
}
.bb-404__num span { display: inline-block; min-width: .62em; text-align: center; transition: color .3s ease; color: rgba(255, 255, 255, .35); }
.bb-404__num span.is-set { color: #fff; }
.bb-404__num .bb-404__zero.is-set { color: var(--bb-green); }
.bb-404__num::before, .bb-404__num::after {
	content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0;
	letter-spacing: inherit; display: flex; gap: .02em;
}
.bb-404.is-done .bb-404__num::before { color: var(--bb-green); animation: bb-glitch-a 4.5s steps(1) infinite; }
.bb-404.is-done .bb-404__num::after { color: #7fa6b6; animation: bb-glitch-b 4.5s steps(1) infinite; }
@keyframes bb-glitch-a {
	0%, 86%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 0 0); }
	88% { opacity: .9; transform: translate(-6px, 2px); clip-path: inset(12% 0 58% 0); }
	91% { opacity: .9; transform: translate(5px, -1px); clip-path: inset(62% 0 8% 0); }
	94% { opacity: .8; transform: translate(-3px, 0); clip-path: inset(36% 0 40% 0); }
}
@keyframes bb-glitch-b {
	0%, 87%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 0 0); }
	89% { opacity: .8; transform: translate(6px, -2px); clip-path: inset(50% 0 22% 0); }
	92% { opacity: .8; transform: translate(-5px, 1px); clip-path: inset(4% 0 70% 0); }
	95% { opacity: .7; transform: translate(3px, 0); clip-path: inset(74% 0 4% 0); }
}
.bb-404.is-done .bb-404__zero { animation: bb-wobble 4.5s ease-in-out infinite; transform-origin: 50% 60%; }
@keyframes bb-wobble { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-8deg); } 88% { transform: rotate(6deg); } 92% { transform: rotate(-3deg); } }

/* Suchlauf */
.bb-404__scan {
	max-width: 460px; padding: 16px 18px; border-radius: 14px;
	background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
}
.bb-404__scan-head { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; font-variant-numeric: tabular-nums; }
.bb-404__scan-label { color: rgba(255, 255, 255, .85); }
.bb-404__scan-pct { color: #fff; font-weight: 700; }
.bb-404__bar { height: 8px; margin-top: 10px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.bb-404__bar span {
	display: block; height: 100%; width: 0; border-radius: inherit; transition: width .3s ease;
	background: linear-gradient(90deg, var(--bb-green), #9be8b6, var(--bb-green)); background-size: 200% 100%;
	animation: bb-stripe 1.2s linear infinite;
}
@keyframes bb-stripe { to { background-position: -200% 0; } }
.bb-404__scan-result { margin: 0; max-height: 0; opacity: 0; overflow: hidden; font-size: .92rem; color: rgba(255, 255, 255, .85); transition: max-height .4s ease, opacity .4s ease, margin .4s ease; }
.bb-404__scan.is-done .bb-404__bar span { background: #e0a15e; animation: none; }
.bb-404__scan.is-done .bb-404__scan-pct { color: #f0b878; }
.bb-404__scan.is-done .bb-404__scan-result { max-height: 4em; opacity: 1; margin-top: 10px; }
.bb-404__scan.is-done { animation: bb-shake .45s ease 1; }
@keyframes bb-shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

/* Wege weiter */
.bb-404__nav { background: #fff; color: var(--bb-ink); border-radius: var(--bb-radius); padding: clamp(20px, 3vw, 30px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.bb-404__navtitle { font: 800 1.2rem/1.2 var(--bb-display); margin: 0 0 12px; }
.bb-404__nav ul { list-style: none; margin: 0 0 16px; padding: 0; }
.bb-404__nav li + li { border-top: 1px solid var(--bb-rule); }
.bb-404__nav li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 6px; text-decoration: none; color: var(--bb-ink); border-radius: 10px; transition: background-color .2s ease, padding .2s ease; }
.bb-404__nav li a > span:first-child { display: flex; flex-direction: column; font-size: .88rem; color: var(--bb-muted); line-height: 1.35; }
.bb-404__nav li a strong { font-size: 1rem; color: var(--bb-ink); }
.bb-404__nav li a:hover, .bb-404__nav li a:focus-visible { background: var(--bb-paper); padding-left: 12px; padding-right: 12px; }
.bb-404__go { color: var(--bb-green-dk); font-size: 1.15rem; transition: transform .2s ease; }
.bb-404__nav li a:hover .bb-404__go { transform: translateX(3px); }
.bb-404__search { display: flex; gap: 8px; margin: 0; }
.bb-404__search input[type="search"] { flex: 1; min-width: 0; border: 1px solid var(--bb-rule); border-radius: 10px; padding: 10px 12px; background: var(--bb-paper); }
.bb-404__search button, .bb-404__search input[type="submit"] { border: 0; border-radius: 10px; padding: 10px 16px; background: var(--bb-ink); color: #fff; font-weight: 700; cursor: pointer; }
.bb-404__call { margin: 14px 0 0; font-size: .92rem; color: var(--bb-muted); }
.bb-404__call a { color: var(--bb-ink); font-weight: 700; }

@media (max-width: 860px) {
	.bb-404__in { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.bb-404 *, .bb-404 *::before, .bb-404 *::after, .bb-404__num::before, .bb-404__num::after { animation: none !important; transition: none !important; }
	.bb-404__num span { color: #fff; }
}
.error404 .site-main { margin: 0; }

/* ==========================================================================
   Suche
   ========================================================================== */
.bb-search-hero {
	position: relative; isolation: isolate; overflow: hidden; color: #e9f0ee;
	background: radial-gradient(60% 90% at 90% 0%, rgba(79, 199, 124, .16), transparent 60%), var(--bb-ink);
	padding: clamp(44px, 6vw, 84px) max(20px, 4vw);
}
.bb-search-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
	background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent);
}
.bb-search-hero__in, .bb-search-body__in { max-width: 920px; margin: 0 auto; }
.bb-search-hero .bb-kick { color: var(--bb-green); }
.bb-search-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin: 0 0 24px; overflow-wrap: anywhere; }
.bb-search-form {
	display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 16px; background: #fff;
	box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .7); margin: 0;
}
.bb-search-form__ico { display: grid; place-items: center; width: 40px; flex: 0 0 auto; }
.bb-search-form__ico svg { width: 22px; height: 22px; fill: var(--bb-muted); }
.bb-theme .bb-search-form input[type="search"] {
	flex: 1; min-width: 0; border: 0; background: none; padding: 12px 4px; font-size: 1.05rem; color: var(--bb-ink); outline: none; box-shadow: none;
}
.bb-search-form button {
	border: 0; border-radius: 11px; padding: 12px 22px; background: var(--bb-green); color: var(--bb-ink);
	font-weight: 700; font-size: 1rem; cursor: pointer; transition: background-color .2s ease;
}
.bb-search-form button:hover { background: #5fd68b; }
.bb-search-form:focus-within { box-shadow: 0 0 0 3px rgba(79, 199, 124, .5), 0 24px 50px -28px rgba(0, 0, 0, .7); }

.bb-search-body { padding: clamp(32px, 5vw, 64px) max(20px, 4vw) clamp(48px, 7vw, 88px); }
.bb-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bb-result a {
	position: relative; display: grid; gap: 4px; padding: 20px 56px 20px 22px; border-radius: 16px;
	background: #fff; border: 1px solid var(--bb-rule); text-decoration: none; color: var(--bb-ink);
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.bb-result a:hover, .bb-result a:focus-visible { border-color: var(--bb-ink); transform: translateY(-2px); box-shadow: var(--bb-shadow); }
.bb-result__path { font-size: .78rem; color: var(--bb-green-dk); font-weight: 600; overflow-wrap: anywhere; }
.bb-result__title { font: 800 1.25rem/1.25 var(--bb-display); letter-spacing: -.01em; }
.bb-result__text { font-size: .95rem; color: var(--bb-muted); line-height: 1.55; }
.bb-result mark { background: linear-gradient(transparent 55%, rgba(79, 199, 124, .4) 55%); color: var(--bb-ink); padding: 0 1px; font-weight: 600; }
.bb-result__go { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--bb-green-dk); transition: transform .2s ease; }
.bb-result a:hover .bb-result__go { transform: translate(4px, -50%); }
.bb-js .bb-result { animation: bb-rise .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes bb-rise { from { opacity: 0; transform: translateY(14px); } }

.bb-noresult__lead { font-size: 1.1rem; margin-bottom: 14px; }
.bb-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.bb-chips a {
	display: inline-block; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--bb-rule);
	color: var(--bb-ink); text-decoration: none; font-weight: 600; font-size: .95rem; transition: border-color .2s, background-color .2s;
}
.bb-chips a:hover { border-color: var(--bb-green-dk); background: var(--bb-paper); }

.bb-search-help {
	margin-top: clamp(28px, 4vw, 44px); padding: 20px 22px; border-radius: 16px; border: 1.5px dashed var(--bb-rule);
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
}
.bb-search-help p { margin: 0; }
.bb-search-help__tel { font-weight: 800; font-size: 1.15rem; color: var(--bb-ink); text-decoration: none; white-space: nowrap; }
.bb-search-help__tel:hover { color: var(--bb-green-dk); }
@media (max-width: 560px) {
	.bb-search-form__ico { display: none; }
	.bb-search-form button { padding: 12px 16px; }
	.bb-result a { padding: 18px 44px 18px 18px; }
	.bb-result__go { right: 16px; }
}
@media (prefers-reduced-motion: reduce) { .bb-js .bb-result { animation: none; } }

/* ==========================================================================
   Bewegung (Startseite & Bausteine) – greift nur mit JavaScript,
   ohne JS oder bei „Bewegung reduzieren“ ist alles sofort sichtbar.
   ========================================================================== */

/* Sanftes Einblenden beim Scrollen */
.bb-rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.bb-rv.is-in { opacity: 1; transform: none; }

/* Startseite: Kacheln und Fernwartungs-Leiste gleiten herein (Überschrift bleibt sofort da) */
.bb-js .bb-gate .bb-sub { animation: bb-in .7s .1s cubic-bezier(.2, .8, .2, 1) both; }
.bb-js .bb-gate__panel { animation: bb-in .8s cubic-bezier(.2, .8, .2, 1) both; }
.bb-js .bb-gate__panel--privat { animation-delay: .2s; }
.bb-js .bb-gate__panel--firma { animation-delay: .34s; }
.bb-js .bb-gate__remote { animation: bb-in .8s .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes bb-in { from { opacity: 0; transform: translateY(30px); } }
/* Auf dem Handy ohne Einblenden: Inhalt sofort sichtbar (schnellerer Seitenaufbau bei Google). */
@media (max-width: 781px) {
	.bb-js .bb-gate .bb-sub, .bb-js .bb-gate__panel, .bb-js .bb-gate__remote { animation: none; }
}

/* Ablauf: Schritte nacheinander, Nummer leuchtet kurz grün */
.bb-steps--anim li { opacity: 0; transform: translateX(-18px); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1); }
.bb-steps--anim.is-in li { opacity: 1; transform: none; }
.bb-steps--anim.is-in li::before { animation: bb-num .9s ease both; }
.bb-steps--anim li:nth-child(2) { transition-delay: .18s; }
.bb-steps--anim li:nth-child(3) { transition-delay: .36s; }
.bb-steps--anim li:nth-child(4) { transition-delay: .54s; }
.bb-steps--anim.is-in li:nth-child(1)::before { animation-delay: .1s; }
.bb-steps--anim.is-in li:nth-child(2)::before { animation-delay: .28s; }
.bb-steps--anim.is-in li:nth-child(3)::before { animation-delay: .46s; }
.bb-steps--anim.is-in li:nth-child(4)::before { animation-delay: .64s; }
@keyframes bb-num { 0% { transform: scale(.6); color: var(--bb-green); } 45% { transform: scale(1.18); color: var(--bb-green); } 100% { transform: none; } }
.bb-steps li::before { display: inline-block; transform-origin: 30% 60%; }

/* Preise zählen hoch: kurzer Glanz am Ende */
.bb-flatgrid .bb-price.is-counted { animation: bb-pop .4s ease; }
@keyframes bb-pop { 50% { transform: scale(1.04); } }

/* Serviceauftrag aus dem Drucker */
.bb-printer { position: relative; max-width: 470px; margin-left: auto; }
.bb-printer__body {
	position: relative; z-index: 3; height: 34px; margin: 0 -14px; border-radius: 12px 12px 6px 6px;
	background: linear-gradient(180deg, #3a4a52, var(--bb-slate-dk)); box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .6);
}
.bb-printer__slot { position: absolute; left: 22px; right: 22px; bottom: 7px; height: 5px; border-radius: 3px; background: #0d1414; }
.bb-printer__led { position: absolute; right: 14px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--bb-green); box-shadow: 0 0 8px var(--bb-green); }
.bb-printer__paper { position: relative; z-index: 2; margin-top: -9px; padding-top: 4px; clip-path: inset(0 -60px -60px -60px); }
.bb-printer .bb-ticket { transform: rotate(0); margin: 0 6px; }
.bb-printer .bb-ticket__stamp { top: auto; right: auto; bottom: 14px; left: 34%; }

.bb-printer--anim .bb-ticket { transform: translateY(-101%); }
.bb-printer--anim.is-printing .bb-ticket { animation: bb-print 1.4s steps(9, end) forwards; }
@keyframes bb-print { from { transform: translateY(-101%); } to { transform: translateY(0); } }
.bb-printer--anim.is-printing .bb-printer__led { animation: bb-blink .18s steps(1) 8; }
@keyframes bb-blink { 50% { opacity: .2; } }
.bb-printer--anim .bb-ticket__stamp { opacity: 0; transform: rotate(-24deg) scale(2.4); }
.bb-printer--anim.is-stamped .bb-ticket__stamp { animation: bb-stamp .45s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes bb-stamp { 0% { opacity: 0; transform: rotate(-24deg) scale(2.4); } 70% { opacity: 1; transform: rotate(-7deg) scale(.92); } 100% { opacity: 1; transform: rotate(-9deg) scale(1); } }
.bb-printer--anim.is-stamped .bb-ticket { transform: none; animation: bb-thud .3s .25s ease; }
@keyframes bb-thud { 0% { transform: none; } 40% { transform: translateY(3px) rotate(.4deg); } 100% { transform: none; } }
.bb-ticket__price { display: inline-block; min-width: 5.2ch; text-align: right; font-variant-numeric: tabular-nums; }
.bb-ticket__price.is-set { animation: bb-pop .35s ease; }

@media (max-width: 781px) {
	.bb-printer { margin: 8px auto 0; }
	.bb-printer__body { margin: 0 -6px; }
	.bb-printer .bb-ticket__stamp { left: 22%; font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
	.bb-js .bb-gate .bb-sub, .bb-js .bb-gate__panel, .bb-js .bb-gate__remote { animation: none; }
}

/* ==========================================================================
   Rechtliches: Impressum & Datenschutz
   ========================================================================== */
.bb-legal-hero {
	position: relative; isolation: isolate; overflow: hidden; color: #e9f0ee;
	background: radial-gradient(55% 90% at 92% 0%, rgba(79, 199, 124, .16), transparent 60%), var(--bb-ink);
	padding-top: clamp(48px, 7vw, 96px) !important; padding-bottom: clamp(44px, 6vw, 80px) !important;
}
.bb-legal-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
	background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent);
}
.bb-legal-hero::after { /* großes Paragrafenzeichen im Hintergrund */
	content: "§"; position: absolute; z-index: -1; right: max(20px, 8vw); top: 50%; transform: translateY(-52%);
	font: 900 clamp(10rem, 26vw, 22rem)/1 var(--bb-display); color: rgba(255, 255, 255, .045);
	pointer-events: none;
}
.bb-js .bb-legal-hero::after { animation: bb-para 9s ease-in-out infinite; }
@keyframes bb-para { 50% { transform: translateY(-56%) rotate(-4deg); color: rgba(79, 199, 124, .08); } }
.bb-legal-hero.is-layout-constrained > * { margin-left: max(0px, calc((100% - var(--bb-wide)) / 2)) !important; }
.bb-legal-hero .bb-kick { color: var(--bb-green); }
.bb-legal-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); margin: 0 0 12px; font-variant-numeric: tabular-nums; }
.bb-decrypt.is-decrypting { color: var(--bb-green); }
.bb-decrypt.is-decrypted { animation: bb-settle .5s ease; }
@keyframes bb-settle { from { text-shadow: 0 0 24px rgba(79, 199, 124, .8); } }
.bb-legal-hero .bb-sub { color: rgba(255, 255, 255, .8); max-width: 60ch; font-size: 1.1rem; }

/* Datenschutz: Inhaltsverzeichnis + Text */
.bb-legal--ds { display: grid; grid-template-columns: minmax(0, 270px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.bb-legal__toc { position: sticky; top: 24px; background: #fff; border: 1px solid var(--bb-rule); border-radius: 18px; padding: 18px 14px; }
.bb-legal__toc-title { font: 800 .76rem/1 var(--bb-font); letter-spacing: .08em; text-transform: uppercase; color: var(--bb-green-dk); margin: 0 6px 10px; }
.bb-legal__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.bb-legal__toc a {
	display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 10px;
	color: var(--bb-muted); text-decoration: none; font-size: .9rem; line-height: 1.35; transition: background-color .2s, color .2s;
}
.bb-legal__toc a span { font: 800 .78rem/1 var(--bb-display); color: #a5b0ac; font-variant-numeric: tabular-nums; }
.bb-legal__toc a:hover { background: var(--bb-paper); color: var(--bb-ink); }
.bb-legal__toc a.is-active { background: var(--bb-ink); color: #fff; }
.bb-legal__toc a.is-active span { color: var(--bb-green); }

.bb-legal__body { max-width: 760px; font-size: 1rem; line-height: 1.7; color: #2a3533; }
.bb-legal__sec { scroll-margin-top: 24px; padding-bottom: clamp(20px, 3vw, 32px); margin-bottom: clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--bb-rule); }
.bb-legal__sec:last-child { border-bottom: 0; }
.bb-legal__sec h2 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 18px; }
.bb-legal__no {
	flex: 0 0 auto; display: inline-grid; place-items: center; min-width: 2.4em; height: 2.4em; padding: 0 .4em;
	border-radius: 12px; background: var(--bb-ink); color: var(--bb-green); font-size: .62em; font-variant-numeric: tabular-nums;
	transform: translateY(-.2em);
}
.bb-legal__h.is-decrypting { color: var(--bb-green-dk); }
.bb-legal__body h3 { font-size: 1.15rem; margin: 26px 0 8px; }
.bb-legal__body h4 { font-family: var(--bb-font); font-size: 1rem; font-weight: 700; letter-spacing: 0; margin: 18px 0 6px; }
.bb-legal__body p { margin: 0 0 12px; }
.bb-legal__body ul { margin: 0 0 14px; padding-left: 1.2em; }
.bb-legal__body li { margin-bottom: 6px; }
.bb-legal__body li::marker { color: var(--bb-green-dk); }
.bb-legal__body a { color: var(--bb-green-dk); overflow-wrap: anywhere; }
.bb-legal__caps { font-size: .86rem; letter-spacing: .01em; padding: 14px 16px; border-left: 3px solid var(--bb-green); background: #fff; border-radius: 0 12px 12px 0; }
.bb-legal__contact { font-style: normal; padding: 18px 20px; margin: 4px 0 16px; background: #fff; border: 1px solid var(--bb-rule); border-radius: 14px; line-height: 1.6; }
.bb-progress {
	position: fixed; left: 0; right: 0; top: 0; z-index: 100; height: 4px; transform-origin: 0 50%; transform: scaleX(0);
	background: linear-gradient(90deg, var(--bb-green-dk), var(--bb-green)); box-shadow: 0 0 12px rgba(79, 199, 124, .6);
}
@media (max-width: 900px) {
	.bb-legal--ds { grid-template-columns: minmax(0, 1fr); }
	.bb-legal__toc { position: static; }
}

/* Impressum: Visitenkarte */
.bb-legal--imp { display: grid; place-items: center; padding: clamp(8px, 3vw, 32px) 0; }
.bb-vcard { width: min(100%, 560px); perspective: 1000px; }
.bb-vcard__in {
	--gx: 50%; --gy: 0%;
	position: relative; overflow: hidden; border-radius: 24px; padding: clamp(24px, 4vw, 38px);
	background: #fff; border: 1px solid var(--bb-rule);
	box-shadow: 0 40px 80px -40px rgba(20, 32, 31, .45), 0 2px 0 rgba(255, 255, 255, .8) inset;
	transform-style: preserve-3d; transition: transform .25s ease-out;
}
.bb-vcard__in::before { /* grüne Kante */
	content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, var(--bb-green), var(--bb-green-dk));
}
.bb-vcard__glare {
	position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
	background: radial-gradient(400px circle at var(--gx) var(--gy), rgba(79, 199, 124, .16), transparent 45%);
}
.bb-vcard:hover .bb-vcard__glare { opacity: 1; }
.bb-vcard__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; }
.bb-vcard__top img { height: 46px; width: auto; }
.bb-vcard__chip { /* „Chip“ wie auf einer Karte */
	width: 46px; height: 34px; border-radius: 7px; flex: 0 0 auto;
	background: linear-gradient(135deg, #e6d8a6, #c7b371 45%, #efe3b8 55%, #b9a35f);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
	-webkit-mask: linear-gradient(#000 0 0) , repeating-linear-gradient(90deg, transparent 0 14px, #000 14px 15px);
}
.bb-vcard__label { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bb-green-dk); margin: 0 0 6px; }
.bb-vcard__name { font: 800 clamp(1.6rem, 3vw, 2.1rem)/1.1 var(--bb-display); letter-spacing: -.02em; margin: 0 0 22px; }
.bb-vcard__name small { display: block; margin-top: 6px; font: 500 1rem/1.3 var(--bb-font); letter-spacing: 0; color: var(--bb-muted); }
.bb-vcard__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bb-vcard__rows li { display: flex; gap: 14px; align-items: flex-start; }
.bb-vcard__rows svg { flex: 0 0 auto; width: 38px; height: 38px; padding: 10px; border-radius: 11px; background: var(--bb-paper); fill: var(--bb-ink); }
.bb-vcard__rows span { display: flex; flex-direction: column; line-height: 1.45; padding-top: 2px; }
.bb-vcard__rows small { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bb-muted); }
.bb-vcard__rows a { color: var(--bb-ink); font-weight: 700; text-decoration: none; }
.bb-vcard__rows a:hover { color: var(--bb-green-dk); }
.bb-vcard__vat { margin: 22px 0 0; padding-top: 16px; border-top: 1px dashed var(--bb-rule); display: flex; flex-direction: column; gap: 2px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.bb-vcard__vat small { font-size: .72rem; font-weight: 600; letter-spacing: .02em; color: var(--bb-muted); }

/* ==========================================================================
   Cookie-Banner (dezent, unten links)
   ========================================================================== */
.bb-consent {
	position: fixed; left: 20px; bottom: 20px; z-index: 90; width: min(400px, calc(100vw - 40px));
	background: #fff; color: var(--bb-ink); border: 1px solid var(--bb-rule); border-radius: 18px;
	padding: 18px 18px 16px; box-shadow: 0 30px 60px -24px rgba(20, 32, 31, .45);
	opacity: 0; transform: translateY(16px); transition: opacity .3s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
	font-size: .9rem;
}
.bb-consent.is-open { opacity: 1; transform: none; }
.bb-consent__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.bb-consent__ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--bb-paper); }
.bb-consent__ico svg { width: 18px; height: 18px; fill: #b07a3c; }
.bb-consent__title { margin: 0; font: 800 1rem/1.2 var(--bb-display); }
.bb-consent__text { margin: 0 0 12px; color: var(--bb-muted); line-height: 1.5; }
.bb-consent__text a { color: var(--bb-ink); }
.bb-consent__opts { display: grid; gap: 8px; margin: 0 0 12px; }
.bb-consent[hidden], .bb-consent__opts[hidden], .bb-consent [hidden] { display: none !important; }
.bb-consent__opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--bb-paper); cursor: pointer; }
.bb-consent__opt.is-fixed { cursor: default; opacity: .75; }
.bb-consent__opt input { margin-top: 3px; accent-color: var(--bb-green-dk); width: 16px; height: 16px; }
.bb-consent__opt span { display: flex; flex-direction: column; font-size: .84rem; color: var(--bb-muted); line-height: 1.4; }
.bb-consent__opt strong { color: var(--bb-ink); font-size: .9rem; }
.bb-consent__btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bb-consent__btn {
	flex: 1 1 auto; border: 1.5px solid var(--bb-ink); background: #fff; color: var(--bb-ink);
	border-radius: 11px; padding: 10px 14px; font: 700 .9rem/1 var(--bb-font); cursor: pointer; transition: background-color .2s, color .2s;
}
.bb-consent__btn:hover, .bb-consent__btn:focus-visible { background: var(--bb-ink); color: #fff; }
.bb-consent__link { border: 0; background: none; padding: 6px 2px; color: var(--bb-muted); font: 600 .84rem/1 var(--bb-font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bb-theme .bb-consent__link:hover, .bb-theme .bb-consent__link:focus { color: var(--bb-ink); background: none; }
@media (max-width: 560px) {
	.bb-consent { left: 10px; right: 10px; bottom: 10px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
	.bb-consent, .bb-vcard__in { transition: none; }
	.bb-js .bb-legal-hero::after { animation: none; }
}

/* Platzhalter für externe Inhalte (Google-Bewertungen vor Einwilligung) */
.bb-extph {
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px 22px;
	padding: clamp(18px, 3vw, 26px); border-radius: 18px; background: var(--bb-paper);
	border: 1.5px dashed var(--bb-rule);
}
.bb-extph__g { width: 56px; height: 56px; border-radius: 16px; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -16px rgba(20, 32, 31, .5); }
.bb-extph__g svg { width: 32px; height: 32px; }
.bb-extph__stars { margin: 0 0 2px; color: #fbbc04; letter-spacing: 2px; font-size: 1rem; }
.bb-extph__title { margin: 0 0 4px; font: 800 1.15rem/1.25 var(--bb-display); }
.bb-extph__note { margin: 0; font-size: .86rem; color: var(--bb-muted); }
.bb-extph__note a { color: var(--bb-ink); }
.bb-theme .bb-extph__btn {
	border: 0; border-radius: 12px; padding: 12px 20px; background: var(--bb-ink); color: #fff;
	font: 700 .95rem/1 var(--bb-font); cursor: pointer; white-space: nowrap; transition: background-color .2s, transform .2s;
}
.bb-theme .bb-extph__btn:hover, .bb-theme .bb-extph__btn:focus-visible { background: var(--bb-slate-dk); color: #fff; transform: translateY(-1px); }
.bb-extph__actions { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bb-extph__ext { font-size: .82rem; font-weight: 600; color: var(--bb-muted); text-decoration: none; white-space: nowrap; }
.bb-extph__ext:hover { color: var(--bb-ink); text-decoration: underline; }
@media (max-width: 640px) {
	.bb-extph { grid-template-columns: auto minmax(0, 1fr); }
	.bb-extph__actions { grid-column: 1 / -1; }
	.bb-extph__btn { width: 100%; }
}

/* ==========================================================================
   Firmen-Leistungsseiten: Partner-Logos, Vergleich, Referenzen
   ========================================================================== */
.bb-theme .is-layout-constrained > .bb-partners,
.bb-theme .is-layout-constrained > .bb-options,
.bb-theme .is-layout-constrained > .bb-refs { margin-left: max(0px, calc((100% - var(--bb-wide)) / 2)) !important; margin-right: auto !important; max-width: var(--bb-wide); width: 100%; }
.bb-partners { margin-top: clamp(24px, 4vw, 40px); }
.bb-partners__title { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bb-muted); margin: 0 0 12px; }
.bb-partners ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 14px; }
.bb-partners ul:has(> li:nth-child(2):last-child), .bb-partners ul:has(> li:only-child) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 240px)); }
.bb-partners li { display: flex; flex-direction: column; gap: 8px; }
.bb-partners a {
	display: grid; place-items: center; height: 76px; padding: 0 18px; text-decoration: none;
	background: #fff; border: 1px solid var(--bb-rule); border-radius: 16px;
	transition: border-color .2s, transform .2s, box-shadow .2s;
}
.bb-partners img { max-height: 32px; max-width: 100%; width: auto; height: auto; }
.bb-partners a:hover, .bb-partners a:focus-visible { border-color: var(--bb-ink); transform: translateY(-2px); box-shadow: var(--bb-shadow); }
.bb-partners li > span { font-size: .78rem; line-height: 1.35; color: var(--bb-muted); padding: 0 4px; }
@media (max-width: 560px) { .bb-partners ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .bb-partners a { height: 64px; padding: 0 12px; } .bb-partners__word strong { font-size: 1rem; } }
.bb-partners a.is-dark { background: var(--bb-ink); border-color: var(--bb-ink); }
.bb-partners a.is-dark:hover, .bb-partners a.is-dark:focus-visible { background: var(--bb-slate-dk); }
.bb-partners__word { display: flex; flex-direction: column; align-items: center; line-height: 1.15; color: var(--bb-ink); }
.bb-partners__word strong { font: 800 1.15rem/1.1 var(--bb-display); letter-spacing: -.01em; }
.bb-partners__word small { font-size: .74rem; font-weight: 600; color: var(--bb-muted); letter-spacing: .02em; }

.bb-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(16px, 2.5vw, 24px); }
.bb-option {
	position: relative; background: #fff; border: 1px solid var(--bb-rule); border-radius: var(--bb-radius);
	padding: clamp(22px, 3vw, 32px); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.bb-option:hover { border-color: var(--bb-ink); box-shadow: var(--bb-shadow); transform: translateY(-2px); }
.bb-option__logo { display: block; height: 32px; width: auto; max-width: 180px; margin-bottom: 18px; }
.bb-option h3 { font-size: 1.35rem; margin: 0 0 14px; }
.bb-option .bb-checks { margin: 0; }

.bb-refs { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.bb-refs a {
	position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 20px 20px 18px;
	background: #fff; border: 1px solid var(--bb-rule); border-radius: 16px; text-decoration: none; color: var(--bb-ink);
	transition: border-color .2s, transform .2s, box-shadow .2s; overflow: hidden;
}
.bb-refs a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--bb-green); transform: scaleY(0); transform-origin: bottom; transition: transform .25s ease; }
.bb-refs a:hover, .bb-refs a:focus-visible { border-color: var(--bb-ink); transform: translateY(-3px); box-shadow: var(--bb-shadow); }
.bb-refs a:hover::before { transform: scaleY(1); }
.bb-refs strong { font: 800 1.12rem/1.25 var(--bb-display); }
.bb-refs__branch { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--bb-green-dk); }
.bb-refs__what { font-size: .88rem; color: var(--bb-muted); line-height: 1.45; flex: 1; }
.bb-refs__host { margin-top: 8px; font-size: .82rem; font-weight: 600; color: var(--bb-ink); }
.bb-refs__host i { font-style: normal; color: var(--bb-green-dk); display: inline-block; transition: transform .2s; }
.bb-refs a:hover .bb-refs__host i { transform: translate(2px, -2px); }
