/*
 * Startseite: optische Überarbeitung der bestehenden Kubio-Abschnitte (03.12.2026).
 * Nur CSS, nur Startseite (body.fus-home-polish) – der Kubio-Inhalt bleibt unverändert; Schalter unter
 * Datei-Uploads → ✨ Startseite. Kubio setzt Stile über Klassen-IDs, daher teils !important.
 */
html:has(body.fus-home-polish) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has(body.fus-home-polish) { scroll-behavior: auto; } }

/* Gäste brauchen kein „Nicht angemeldet“ im Kopf. */
body.fus-home-polish:not(.logged-in) .fus-login-status--out { display: none !important; }

/* ---------- Kopfbild: lesbare Überschrift auf dem bunten Farbfächer ---------- */
body.fus-home-polish #hero > .background-wrapper::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(4, 16, 34, .62) 0%, rgba(4, 16, 34, .38) 38%, rgba(4, 16, 34, .55) 100%);
}
body.fus-home-polish #hero h1 {
	max-width: 21ch; margin-left: auto !important; margin-right: auto !important;
	font-size: clamp(1.9rem, 4.6vw, 3.7rem) !important;
	line-height: 1.08 !important; font-weight: 800 !important; letter-spacing: -.022em !important;
	color: #fff !important; text-shadow: 0 2px 28px rgba(0, 0, 0, .45);
	text-wrap: balance; hyphens: auto; -webkit-hyphens: auto;
}
body.fus-home-polish #hero h1 + * p, body.fus-home-polish #hero .wp-block-kubio-text__text {
	color: rgba(255, 255, 255, .92) !important; text-shadow: 0 1px 14px rgba(0, 0, 0, .5);
	font-size: clamp(1.05rem, 1.6vw, 1.3rem) !important;
}
body.fus-home-polish #hero video { border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }

/* ---------- Überschriften der Abschnitte: Satzschreibung statt Versalien ---------- */
body.fus-home-polish :is(#hero-accent, #content, #content-1) h6 {
	text-transform: none !important; letter-spacing: -.005em !important;
	font-size: clamp(1.08rem, 1.5vw, 1.28rem) !important; line-height: 1.3 !important;
	font-weight: 700 !important; color: #0f1b2d !important;
}
body.fus-home-polish #hero-accent h6 { min-height: 2.6em; }
body.fus-home-polish #hero-accent .wp-block-kubio-text__text { color: #46566c !important; }
body.fus-home-polish :is(#hero-accent, #features) .wp-block-kubio-icon__outer {
	border-radius: 16px !important; box-shadow: 0 8px 22px rgba(0, 77, 159, .12) !important;
}

/* Große Abschnittstitel („Über 120 Jahre …“, „Unsere Produkte“, „Unser Administrationsteam“, Projekte). */
body.fus-home-polish .fus-hp-title {
	font-size: clamp(1.8rem, 3.2vw, 2.6rem) !important; line-height: 1.12 !important;
	font-weight: 750 !important; letter-spacing: -.022em !important; color: #0f1b2d !important;
	text-wrap: balance;
}

body.fus-home-polish #portfolio .fus-hp-title { font-size: clamp(1.45rem, 2.3vw, 1.95rem) !important; }

/* ---------- Zahlen: große Ziffern statt Fortschrittsbalken ---------- */
body.fus-home-polish #counters .wp-block-kubio-counter__counterContainer { width: 100% !important; }
body.fus-home-polish #counters .kubio-counter__outer { text-align: center; }
body.fus-home-polish #counters .title-counter-bar { justify-content: center !important; }
body.fus-home-polish #counters .wp-block-kubio-counter__title {
	justify-content: center !important; order: 2;
	color: #46566c !important; font-size: 1rem !important; font-weight: 600 !important; letter-spacing: .02em;
}
body.fus-home-polish #counters .wp-block-kubio-counter__progressBarWrapper { display: flex; flex-direction: column; align-items: center; }
body.fus-home-polish #counters .progress { background: none !important; height: auto !important; width: 100%; overflow: visible !important; }
body.fus-home-polish #counters .h-bar-progress { display: none !important; }
body.fus-home-polish #counters .progress-number {
	position: static !important; inset: auto !important; transform: none !important; width: auto !important;
	display: flex; justify-content: center;
}
body.fus-home-polish #counters .bar-counter {
	position: static !important; color: #004d9f !important; background: none !important;
	font-size: clamp(2.6rem, 5vw, 4rem) !important; line-height: 1 !important; font-weight: 800 !important;
	letter-spacing: -.03em; font-variant-numeric: tabular-nums; padding: 0 !important;
}
body.fus-home-polish #counters .kubio-counter__outer .title-counter-bar { margin-top: 10px; }
body.fus-home-polish #counters .kubio-counter__outer { display: flex; flex-direction: column-reverse; gap: 8px; padding: 22px 12px; border-top: 3px solid #004d9f; }

/* ---------- Projekte: gleich hohe Bilder, ruhige Karten ---------- */
body.fus-home-polish #portfolio .wp-block-kubio-image__image {
	width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px;
}
body.fus-home-polish #portfolio .wp-block-kubio-column__inner:has(.wp-block-kubio-image) {
	border-radius: 16px !important; transition: transform .2s ease, box-shadow .2s ease;
}
body.fus-home-polish #portfolio .wp-block-kubio-column__inner:has(.wp-block-kubio-image):hover {
	transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 27, 45, .14) !important;
}

/* ---------- Produkte: runde, gleichmäßige Karten, Titel nicht unter der Ecke ---------- */
body.fus-home-polish #pricing-1 .wp-block-kubio-pricing-table-item__inner {
	border-radius: 20px !important; overflow: hidden; background: #fff;
	box-shadow: 0 14px 40px rgba(15, 27, 45, .10) !important; height: 100%;
	transition: transform .2s ease, box-shadow .2s ease;
}
body.fus-home-polish #pricing-1 .wp-block-kubio-pricing-table-item__inner:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(15, 27, 45, .16) !important; }
body.fus-home-polish #pricing-1 .wp-block-kubio-pricing-table-item__container { align-self: stretch !important; }
body.fus-home-polish #pricing-1 .wp-block-kubio-pricing-table-item__inner h2 {
	font-size: clamp(1.25rem, 1.75vw, 1.55rem) !important; line-height: 1.2 !important; padding: 0 14px !important; text-wrap: balance;
	word-break: normal !important; overflow-wrap: normal !important; hyphens: manual;
}

/* Bildrahmen volle Breite → Platz ist schon vor dem (verzögerten) Laden reserviert, nichts springt. */
body.fus-home-polish :is(#team-1, #portfolio) :is(figure.wp-block-kubio-image, .wp-block-kubio-image__captionContainer, .wp-block-kubio-image__frameContainer) { width: 100% !important; }

/* ---------- Team: gleich große Bilder, sechs nebeneinander ---------- */
body.fus-home-polish #team-1 .wp-block-kubio-image__image {
	width: 100% !important; height: auto !important; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%;
	border-radius: 16px; filter: saturate(.92); transition: filter .2s ease, transform .2s ease;
}
body.fus-home-polish #team-1 .wp-block-kubio-image:hover .wp-block-kubio-image__image { filter: none; transform: scale(1.02); }
@media (min-width: 1200px) {
	body.fus-home-polish #team-1 .wp-block-kubio-column__container:has(.wp-block-kubio-image) { flex: 0 0 16.666% !important; max-width: 16.666% !important; }
	body.fus-home-polish #team-1 .wp-block-kubio-column__container:has(.wp-block-kubio-image) h4 { font-size: 1.12rem !important; white-space: nowrap; }
}
@media (min-width: 768px) and (max-width: 1199px) {
	body.fus-home-polish #team-1 .wp-block-kubio-column__container:has(.wp-block-kubio-image) { flex: 0 0 33.333% !important; max-width: 33.333% !important; }
}
@media (max-width: 767px) {
	body.fus-home-polish #team-1 .wp-block-kubio-column__container:has(.wp-block-kubio-image) { flex: 0 0 50% !important; max-width: 50% !important; }
	body.fus-home-polish #team-1 h4 { font-size: 1.05rem !important; }
}
