/*
 * Front-end styles of the building blocks for Businessapp24 and COMMITLY Sync.
 *
 * Styles the HTML of the shortcodes in includes/class-ba24.php ([ba24_*]) and
 * includes/class-commitly.php ([commitly_*]), plus the draft bar of the price page
 * (includes/class-ba24-preise.php). Uses the color, font and spacing variables of the
 * busol theme (light/dark), e.g. --brand, --ink, --muted, --surface, --line, --radius-lg,
 * and its classes .wrap, .btn, .section-head, .note. The price page app itself is
 * styled by assets/preise/preise.css. Enqueued by Busol_BA24::assets().
 */

.bereich {
	overflow-x: clip;
}
.ba24-section {
	padding: clamp(64px, 8vw, 104px) 0;
}
.ba24-section + .ba24-section {
	padding-top: 0;
}
.ba24-section--alt {
	background: var(--surface);
	border-block: 1px solid var(--line);
	padding-top: clamp(64px, 8vw, 104px) !important;
}
.ba24-section--alt + .ba24-section {
	padding-top: clamp(64px, 8vw, 104px);
}
.ba24-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 12px 6px;
	color: var(--ink);
	font: 700 1rem/1 var(--font-head);
	text-decoration: none;
}
.ba24-link:hover {
	color: var(--brand);
}
.ba24-link .ico {
	width: 16px;
	height: 16px;
}
.ba24-tag {
	display: inline-block;
	align-self: flex-start;
	padding: 4px 10px;
	border-radius: 99px;
	background: var(--brand-100);
	color: var(--brand);
	font: 800 0.7rem/1.2 var(--font-head);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* ---------- Images ---------- */
.ba24-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ba24-img--ph {
	display: grid;
	place-items: center;
	min-height: 160px;
	background: linear-gradient(140deg, var(--brand-100), var(--bg-alt));
	color: var(--brand-300);
}
.ba24-img--ph .ico {
	width: 40px;
	height: 40px;
	opacity: 0.6;
}
.ba24-figure {
	margin: 2em 0;
	border-radius: var(--radius-lg);
	overflow: hidden;
	aspect-ratio: 21 / 9;
	box-shadow: var(--shadow);
}
.ba24-figure .ba24-img {
	height: 100%;
}

/* ---------- Hero of the overview ([ba24_hero]) ---------- */
.ba24-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(32px, 5vw, 64px) 0 clamp(64px, 8vw, 104px);
}
.ba24-hero .ba24-hero__mark {
	width: 680px;
	height: 680px;
	right: -180px;
	top: -140px;
	opacity: 0.05;
}
.ba24-hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(32px, 5vw, 64px);
	align-items: center;
}
.ba24-hero__text .crumbs ol {
	margin-bottom: 22px;
}
.ba24-brand {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 22px;
}
.ba24-brand__logo {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 14px 30px -16px rgba(15, 35, 66, 0.45);
}
.ba24-brand__logo img {
	width: 40px;
	height: auto;
}
.ba24-brand p {
	margin: 0;
	font: 800 0.82rem/1.35 var(--font-head);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--brand);
}
.ba24-brand p span {
	color: var(--muted);
	letter-spacing: 0.06em;
}
.ba24-hero__title {
	font-size: clamp(2.3rem, 5.2vw, 3.9rem);
	line-height: 1.05;
	margin: 0 0 0.4em;
}
.ba24-hero__title span {
	color: var(--brand);
}
.ba24-hero__lead {
	font-size: 1.22rem;
	color: var(--muted);
	max-width: 36em;
	margin: 0 0 1.6em;
}
.ba24-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}
.ba24-hero__contact {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 22px 0 0;
	font-size: 0.95rem;
	color: var(--muted);
}
.ba24-hero__contact a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: inherit;
	text-decoration: none;
}
.ba24-hero__contact a:hover {
	color: var(--brand);
}
.ba24-hero__contact strong {
	color: var(--ink);
}
.ba24-hero__contact .ico {
	width: 16px;
	height: 16px;
	color: var(--brand);
}

/* Phone mock-up with floating cards */
.ba24-phone {
	position: relative;
	height: 540px;
}
.ba24-phone__device {
	position: absolute;
	left: 50%;
	top: 10px;
	width: 260px;
	height: 515px;
	transform: translateX(-50%);
	padding: 14px 16px;
	border-radius: 44px;
	background: var(--surface);
	border: 10px solid #142033;
	box-shadow: 0 40px 80px -30px rgba(15, 35, 66, 0.55);
	overflow: hidden;
}
.ba24-phone__notch {
	display: block;
	width: 110px;
	height: 24px;
	margin: 0 auto 16px;
	border-radius: 99px;
	background: #142033;
}
.ba24-phone__head {
	margin: 0 0 12px;
	font: 800 0.95rem/1.2 var(--font-head);
	color: var(--ink);
}
.ba24-phone__job {
	display: grid;
	gap: 2px;
	padding: 12px 14px;
	margin-bottom: 9px;
	border-radius: 14px;
	background: var(--brand-50);
}
.ba24-phone__job strong {
	font: 700 0.86rem/1.3 var(--font-head);
	color: var(--ink);
}
.ba24-phone__job span {
	font-size: 0.78rem;
	color: var(--muted);
}
.ba24-phone__job.is-active {
	background: var(--brand);
}
.ba24-phone__job.is-active strong,
.ba24-phone__job.is-active span {
	color: #fff;
}
.ba24-phone__bar {
	height: 6px;
	margin-top: 18px;
	border-radius: 99px;
	background: var(--bg-alt);
	overflow: hidden;
}
.ba24-phone__bar span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--brand-300), var(--brand));
	animation: ba24-fill 2.6s var(--ease) both 0.4s;
}
@keyframes ba24-fill {
	from {
		width: 0;
	}
}
.ba24-float {
	position: absolute;
	display: flex;
	gap: 11px;
	align-items: flex-start;
	width: 196px;
	padding: 13px 15px;
	border-radius: 16px;
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: 0 20px 44px -22px rgba(15, 35, 66, 0.4);
	font-size: 0.82rem;
	line-height: 1.35;
	color: var(--muted);
	animation: ba24-float 6.5s ease-in-out infinite;
}
.ba24-float strong {
	display: block;
	font: 700 0.9rem/1.3 var(--font-head);
	color: var(--ink);
}
.ba24-float > .ico {
	flex: none;
	width: 30px;
	height: 30px;
	padding: 6px;
	border-radius: 9px;
	background: var(--brand-100);
	color: var(--brand);
}
.ba24-float--1 {
	left: -36px;
	top: 64px;
}
.ba24-float--2 {
	right: -36px;
	top: 22px;
	animation-delay: -2s;
}
.ba24-float--3 {
	right: -48px;
	top: 214px;
	animation-delay: -4s;
}
.ba24-float--4 {
	left: -48px;
	top: 300px;
	animation-delay: -1s;
}
.ba24-float--5 {
	right: -20px;
	bottom: 30px;
	animation-delay: -3s;
}
@keyframes ba24-float {
	50% {
		transform: translateY(-9px);
	}
}

/* ---------- Key figures ([ba24_kennzahlen]) ---------- */
.ba24-stats {
	position: relative;
	display: grid;
}
.ba24-stats--photo {
	min-height: 440px;
}
.ba24-stats__media {
	grid-area: 1 / 1;
	overflow: hidden;
}
.ba24-stats__media .ba24-img {
	height: 100%;
	min-height: 440px;
}
.ba24-stats--photo .ba24-stats__shade {
	grid-area: 1 / 1;
	align-self: end;
	padding: 64px 0 44px;
	background: linear-gradient(180deg, transparent, rgba(13, 35, 66, 0.92));
}
.ba24-stats__row {
	display: flex;
	flex-wrap: wrap;
	gap: 28px 72px;
	color: #fff;
}
.ba24-stat strong {
	display: block;
	font: 800 clamp(2.4rem, 5vw, 3.5rem)/1 var(--font-head);
	letter-spacing: -0.03em;
}
.ba24-stat span {
	font: 700 0.8rem/1.4 var(--font-head);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #cfdcf0;
}

/* ---------- Industry tiles ([ba24_branchen]) ---------- */
.ba24-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
	gap: 20px;
}
.ba24-tile {
	display: flex;
	flex-direction: column;
	border-radius: var(--radius-lg);
	background: var(--surface);
	border: 1px solid var(--line);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition:
		transform 0.45s var(--ease),
		box-shadow 0.45s,
		border-color 0.3s;
}
.ba24-tile:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-lg);
	border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
	color: inherit;
}
.ba24-tile__media {
	display: block;
	height: 180px;
	overflow: hidden;
}
.ba24-tile__media .ba24-img {
	transition: transform 0.8s var(--ease);
}
.ba24-tile:hover .ba24-tile__media .ba24-img {
	transform: scale(1.06);
}
.ba24-tile__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px;
	flex: 1;
}
.ba24-tile__body strong {
	font: 700 1.25rem/1.25 var(--font-head);
	color: var(--ink);
}
.ba24-tile__body > span:not(.ba24-tag):not(.ba24-tile__more) {
	font-size: 0.97rem;
	color: var(--muted);
}
.ba24-tile__more {
	margin-top: auto;
	padding-top: 6px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font: 700 0.95rem/1 var(--font-head);
	color: var(--brand);
}
.ba24-tile__more .ico {
	width: 16px;
	height: 16px;
	transition: transform 0.3s var(--ease);
}
.ba24-tile:hover .ba24-tile__more .ico {
	transform: translateX(4px);
}
.ba24-tile--ask {
	border-style: dashed;
	border-color: var(--line-strong);
}
.ba24-tile--ask .ba24-tile__media {
	opacity: 0.82;
}

/* ---------- Advantages ([ba24_vorteile]) ---------- */
.ba24-adv-wrap {
	display: grid;
	grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
}
.ba24-adv-wrap .section-head {
	position: sticky;
	top: calc(var(--header-h, 64px) + 32px);
	margin: 0;
}
.ba24-adv {
	list-style: none;
	counter-reset: adv;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 0 36px;
}
.ba24-adv li {
	counter-increment: adv;
	position: relative;
	display: grid;
	gap: 4px;
	padding: 20px 0 20px 48px;
	border-bottom: 1px solid var(--line);
}
.ba24-adv li::before {
	content: counter(adv, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 21px;
	font: 800 0.95rem/1.5 var(--font-head);
	color: var(--brand-300);
}
.ba24-adv strong {
	font: 700 1.08rem/1.35 var(--font-head);
	color: var(--ink);
}
.ba24-adv span {
	font-size: 0.98rem;
	color: var(--muted);
}
.prose .ba24-adv {
	margin: 1.2em 0 2em;
}

/* ---------- ERP & included services ([ba24_erp]) ---------- */
.ba24-two {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
	gap: 40px;
}
.ba24-two h2 {
	font-size: clamp(1.6rem, 2.6vw, 2rem);
	margin: 0 0 0.4em;
}
.ba24-two p {
	color: var(--muted);
	margin: 0 0 18px;
}
.ba24-chips {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.ba24-chips li {
	padding: 8px 14px;
	border-radius: 99px;
	background: var(--surface);
	border: 1px solid var(--line);
	font: 600 0.9rem/1.2 var(--font-head);
	color: var(--text);
	transition:
		border-color 0.25s,
		color 0.25s,
		transform 0.25s var(--ease);
}
.ba24-chips li:hover {
	border-color: var(--brand);
	color: var(--brand);
	transform: translateY(-2px);
}

/* ---------- Closing band ([ba24_cta], [ba24_apps]) ---------- */
.ba24-cta {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	align-items: center;
	justify-content: space-between;
	padding: clamp(32px, 5vw, 52px) clamp(24px, 5vw, 60px);
	border-radius: var(--radius-lg);
	background: linear-gradient(
		130deg,
		var(--brand) 0%,
		#0f3566 68%,
		var(--navy) 100%
	);
	color: #cfdcf0;
	box-shadow: var(--shadow-lg);
}
.ba24-cta h2 {
	color: #fff;
	margin: 0 0 0.3em;
	font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.ba24-cta p {
	margin: 0;
	max-width: 40em;
}
.ba24-cta strong {
	color: #fff;
}
.ba24-cta__text {
	flex: 1 1 420px;
	position: relative;
}
.ba24-cta__actions {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
}
.ba24-apps {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
}
.ba24-apps a {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 9px 14px;
	border-radius: 12px;
	background: #000;
	color: #fff;
	text-decoration: none;
	font: 700 0.92rem/1.1 var(--font-head);
	border: 1px solid rgba(255, 255, 255, 0.2);
	transition: transform 0.25s var(--ease);
}
.ba24-apps a:hover {
	color: #fff;
	transform: translateY(-2px);
}
.ba24-apps small {
	display: block;
	font: 500 0.66rem/1.1 var(--font-body);
	opacity: 0.8;
}

/* ---------- Industry pages: role tabs and contact box ([ba24_rollen], [ba24_kontakt]) ---------- */
.ba24-roles {
	margin: 1.4em 0 2.4em;
}
.ba24-roles__tabs {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 6px;
	margin-bottom: 18px;
	border-radius: 16px;
	background: var(--surface);
	border: 1px solid var(--line);
}
.ba24-roles__tabs button {
	padding: 11px 18px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: var(--muted);
	font: 700 0.95rem/1 var(--font-head);
	cursor: pointer;
	transition:
		background-color 0.25s,
		color 0.25s,
		box-shadow 0.3s;
}
.ba24-roles__tabs button:hover {
	color: var(--ink);
	background: var(--bg-alt);
}
.ba24-roles__tabs button[aria-selected="true"] {
	background: var(--brand);
	color: #fff;
	box-shadow: 0 10px 24px -12px rgba(27, 86, 158, 0.7);
}
.ba24-roles__panel {
	padding: 28px 32px;
	border-radius: var(--radius-lg);
	background: var(--surface);
	border: 1px solid var(--line);
	animation: ba24-in 0.45s var(--ease) both;
}
.ba24-roles__panel h3 {
	margin: 0 0 14px;
	font-size: 1.5rem;
}
.ba24-roles__for {
	margin: 0 0 4px;
	font: 800 0.75rem/1 var(--font-head);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--brand);
}
.ba24-roles__panel ul {
	margin: 0;
}
@keyframes ba24-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
}
.ba24-contactbox {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	align-items: center;
	justify-content: space-between;
	margin: 2.4em 0 0;
	padding: 22px 26px;
	border-radius: var(--radius-lg);
	background: var(--brand-50);
	border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
}
.ba24-contactbox strong {
	display: block;
	font: 700 1.1rem/1.3 var(--font-head);
	color: var(--ink);
}
.ba24-contactbox span {
	color: var(--muted);
	font-size: 0.95rem;
}

/* ---------- Price page as draft (bar for logged-in editors) ---------- */
.ba24-draftbar {
	position: relative;
	z-index: 2;
	padding: 10px 16px;
	text-align: center;
	background: #fff3dc;
	color: #6b4b00;
	border-bottom: 1px solid #f3dcae;
	font: 600 0.92rem/1.4 var(--font-body);
}

/* ---------- COMMITLY Sync: news timeline and waiting list form ---------- */
.cs-news {
	margin: 2.6em 0;
}
.cs-news__list {
	list-style: none;
	margin: 1em 0 0;
	padding: 0;
	border-left: 2px solid var(--line);
}
.cs-news__list li {
	position: relative;
	display: grid;
	grid-template-columns: 90px 1fr;
	gap: 16px;
	padding: 0 0 22px 22px;
}
.cs-news__list li::before {
	content: "";
	position: absolute;
	left: -7px;
	top: 6px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--brand);
	box-shadow: 0 0 0 4px var(--brand-100);
}
.cs-news__list time {
	font: 700 0.85rem/1.6 var(--font-head);
	color: var(--brand);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.cs-news__list strong {
	display: block;
	font: 700 1.05rem/1.4 var(--font-head);
	color: var(--ink);
}
.cs-news__list p {
	margin: 4px 0 0;
	color: var(--muted);
}
.cs-wait {
	margin: 2.4em 0;
	padding: 26px 28px;
	border-radius: var(--radius-lg);
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-sm);
}
.cs-wait h3,
.prose .cs-wait h3 {
	margin: 0 0 16px;
	font-size: 1.3rem;
}
.cs-wait__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 14px;
}
.cs-wait__grid label {
	display: grid;
	gap: 6px;
}
.cs-wait__grid label span {
	font: 700 0.88rem/1.2 var(--font-head);
	color: var(--ink);
}
.cs-wait__wide {
	grid-column: 1 / -1;
}
.cs-wait input[type="text"],
.cs-wait input[type="email"] {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--line-strong);
	border-radius: 12px;
	background: var(--surface-2);
	color: var(--ink);
	font: 400 1rem/1.4 var(--font-body);
}
.cs-wait input:focus {
	outline: 0;
	border-color: var(--brand);
	box-shadow: var(--ring);
}
.cs-wait__check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0 0 18px;
	font-size: 0.93rem;
	color: var(--muted);
}
.cs-wait__check input {
	margin-top: 4px;
	width: 18px;
	height: 18px;
	accent-color: var(--brand);
	flex: none;
}
.cs-wait__hp {
	position: absolute;
	left: -9999px;
}
.cs-wait__err {
	padding: 10px 14px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--danger) 9%, transparent);
	color: var(--danger);
	font-weight: 600;
}

@media (max-width: 960px) {
	.ba24-hero__inner,
	.ba24-adv-wrap {
		grid-template-columns: 1fr;
	}
	.ba24-adv-wrap .section-head {
		position: static;
	}
	.ba24-phone {
		height: 470px;
		max-width: 460px;
		margin: 0 auto;
		width: 100%;
	}
	.ba24-phone__device {
		width: 230px;
		height: 450px;
	}
	.ba24-float {
		width: 180px;
		font-size: 0.78rem;
	}
	.ba24-float--1,
	.ba24-float--4 {
		left: 0;
	}
	.ba24-float--2,
	.ba24-float--3,
	.ba24-float--5 {
		right: 0;
	}
}
@media (max-width: 560px) {
	.ba24-phone {
		display: none;
	}
	.cs-wait__grid {
		grid-template-columns: 1fr;
	}
	.cs-news__list li {
		grid-template-columns: 1fr;
		gap: 2px;
	}
	.ba24-roles__panel {
		padding: 22px 20px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.ba24-float,
	.ba24-phone__bar span,
	.ba24-roles__panel {
		animation: none;
	}
}

/* Key figures as a translucent bar over the fixed page background (no photo set) */
.ba24-stats--bar {
	margin: clamp(8px, 2vw, 24px) 0;
}
.ba24-stats--bar .ba24-stats__shade {
	padding: 40px 0 36px;
	background: linear-gradient(
		100deg,
		rgba(13, 35, 66, 0.88),
		rgba(27, 86, 158, 0.78)
	);
	-webkit-backdrop-filter: blur(6px) saturate(1.2);
	backdrop-filter: blur(6px) saturate(1.2);
	border-block: 1px solid rgba(255, 255, 255, 0.08);
}
:root[data-theme="dark"] .ba24-stats--bar .ba24-stats__shade {
	background: linear-gradient(
		100deg,
		rgba(8, 17, 32, 0.82),
		rgba(29, 90, 166, 0.55)
	);
}
