/* [aob_service_*] — single service page (CPT leistungen). No Figma frame: built from the site's tokens, the badge/title/card
   language of [aob_process] / [aob_about] / [aob_why_us] and the home page's light/dark rhythm.
   Light sections: intro, benefits, steps, results, closing (with a dark CTA panel). Dark: hero, scope, problems, principles. */

/* ---- section colour scheme (custom properties switch light/dark) ---- */
:not(#_) .aob-service-intro, :not(#_) .aob-service-benefits, :not(#_) .aob-service-steps, :not(#_) .aob-service-results, :not(#_) .aob-service-closing {
	--sv-bg: var(--aob-light-1);
	--sv-fg: var(--aob-black-3);
	--sv-muted: #5c564f;
	--sv-card: #fff;
	--sv-border: rgba(17, 16, 14, 0.08);
	--sv-shadow: 0 10px 30px rgba(17, 16, 14, 0.06);
}
:not(#_) .aob-service-scope, :not(#_) .aob-service-problems, :not(#_) .aob-service-principles {
	--sv-bg: var(--aob-black-3);
	--sv-fg: var(--aob-light-1);
	--sv-muted: var(--aob-light-2);
	--sv-card: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.05));
	--sv-border: rgba(245, 242, 237, 0.08);
	--sv-shadow: none;
}
:not(#_) .aob-service-results { --sv-bg: var(--aob-light-2); }
:not(#_) .aob-service-problems { --sv-bg: linear-gradient(180deg, var(--aob-black-2), var(--aob-black-3)); }

:not(#_) .aob-service-intro, :not(#_) .aob-service-scope, :not(#_) .aob-service-benefits, :not(#_) .aob-service-problems, :not(#_) .aob-service-steps,
:not(#_) .aob-service-results, :not(#_) .aob-service-principles, :not(#_) .aob-service-closing {
	position: relative;
	overflow: hidden;
	overflow: clip; /* not hidden: a hidden ancestor would stop the sticky photos from sticking */
	background: var(--sv-bg);
	color: var(--sv-fg);
	font-family: var(--aob-font-body);
}

/* ---- shared parts ---- */
:not(#_) .aob-service-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: var(--aob-section-gap); }
:not(#_) .aob-service-head--left { align-items: flex-start; text-align: left; }
:not(#_) .aob-service-head--center { align-items: center; text-align: center; }
:not(#_) .aob-service-badge { padding: 6px 8px; border: 1px solid var(--aob-gold-soft); border-radius: 44px; background: var(--aob-gold-faint); box-shadow: var(--aob-shadow-button-secondary); font-size: 14px; font-weight: 500; line-height: 21px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sv-fg); }
:not(#_) .aob-service-title { max-width: 760px; margin: 0; font-family: var(--aob-font-display); font-size: clamp(32px, 4.4vw, 48px); font-weight: 400; line-height: 1.2; text-wrap: balance; color: var(--sv-fg); }
:not(#_) .aob-service-text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--sv-muted); }
:not(#_) .aob-service-card-title { margin: 0 0 8px; font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--sv-fg); }
:not(#_) .aob-service-card-title:last-child { margin-bottom: 0; }
:not(#_) .aob-service-text + .aob-service-text { margin-top: 12px; }

:not(#_) .aob-service-intro__media, :not(#_) .aob-service-scope__media, :not(#_) .aob-service-benefits__media, :not(#_) .aob-service-principles__media { position: relative; }
/* Absolute fill: a box sized only by aspect-ratio left the photo at its natural ratio (empty box under it). */
/* host `.elementor img { height: auto }` is outranked by the :not(#_) prefix */
:not(#_) .aob-service-intro__img, :not(#_) .aob-service-scope__img, :not(#_) .aob-service-benefits__img, :not(#_) .aob-service-principles__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
/* The full-width curve decoration grows with the viewport; keep the badge clear of it. */
@media (min-width: 1024px) {
	:not(#_) .aob-service-scope.aob-p-2, :not(#_) .aob-service-principles.aob-p-2 { padding-top: calc(5rem + 3.5vw); }
}

/* ---- hero ---- */
:not(#_) .aob-service-hero { position: relative; overflow: hidden; background: var(--aob-black-3); color: var(--aob-white); font-family: var(--aob-font-body); }
:not(#_) .aob-service-hero__bg { position: absolute; inset: 0; pointer-events: none; }
:not(#_) .aob-service-hero__img { display: block; width: 100%; height: 100%; object-fit: cover; }
:not(#_) .aob-service-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 16, 14, 0.8) 0%, rgba(17, 16, 14, 0.66) 50%, rgba(17, 16, 14, 0.95) 100%); }
:not(#_) .aob-service-hero__inner { position: relative; padding-top: 56px; padding-bottom: 56px; }
:not(#_) .aob-service-hero--offset .aob-service-hero__inner { padding-top: 120px; }
:not(#_) .aob-service-hero__stack { display: flex; flex-direction: column; gap: 40px; }
:not(#_) .aob-service-hero__head { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 980px; margin-inline: auto; text-align: center; }
:not(#_) .aob-service-hero__title { margin: 0; font-family: var(--aob-font-display); font-size: clamp(36px, 5.6vw, 64px); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; overflow-wrap: anywhere; color: var(--aob-white); }
:not(#_) .aob-service-hero__lead { max-width: 900px; margin: 0; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.6; text-wrap: pretty; color: var(--aob-light-2); }
:not(#_) .aob-service-hero__form { width: 100%; max-width: 1100px; margin-inline: auto; box-sizing: border-box; padding: 24px 20px; border: 1px solid var(--aob-gold-border); border-radius: 20px; background: var(--aob-glass-bg); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
:not(#_) .aob-service-hero__form-title { margin: 0 0 24px; font-size: 22px; font-weight: 600; line-height: 28px; text-transform: uppercase; color: var(--aob-white); }
@media (min-width: 768px) {
	:not(#_) .aob-service-hero__inner { padding-top: 72px; padding-bottom: 72px; }
	:not(#_) .aob-service-hero--offset .aob-service-hero__inner { padding-top: 150px; }
	:not(#_) .aob-service-hero__form { padding: 32px; }
	:not(#_) .aob-service-hero__form-title { font-size: 28px; line-height: 34px; }
}

/* "wide" form layout (hero.css only applies it inside .aob-hero): 2 columns on tablets, 3 on desktop, message full width. */
:not(#_) .aob-service-hero .aob-field--wide { grid-column: 1 / -1; }
@media (min-width: 640px) { :not(#_) .aob-service-hero .aob-form__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { :not(#_) .aob-service-hero .aob-form__fields { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) { :not(#_) .aob-service-hero .aob-form__submit-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; } }

/* ---- 2: intro ---- */
:not(#_) .aob-service-intro__inner { display: grid; gap: 40px; }
:not(#_) .aob-service-intro__list { display: flex; flex-direction: column; gap: 32px; margin: 0; padding: 0; list-style: none; }
:not(#_) .aob-service-intro__item { position: relative; display: flex; gap: 20px; margin: 0; }
:not(#_) .aob-service-intro__item:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 52px; bottom: -24px; width: 1px; background: var(--aob-gold-soft); }
:not(#_) .aob-service-intro__num { display: flex; flex: none; align-items: center; justify-content: center; box-sizing: border-box; width: 44px; height: 44px; border: 1px solid var(--aob-brand); border-radius: 900px; font-family: var(--aob-font-display); font-size: 18px; color: var(--aob-brand); }
:not(#_) .aob-service-intro__item-title { margin: 8px 0 8px; font-size: 24px; font-weight: 400; line-height: 1.3; letter-spacing: -0.02em; color: var(--sv-fg); }
:not(#_) .aob-service-intro__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--aob-radius); background: var(--aob-light-2); box-shadow: var(--sv-shadow); }
@media (min-width: 1024px) {
	:not(#_) .aob-service-intro__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: start; }
	:not(#_) .aob-service-intro__media { position: sticky; top: 120px; aspect-ratio: 1 / 1; max-height: min(520px, calc(100vh - 160px)); }
}

/* ---- 3: scope ---- */
:not(#_) .aob-service-scope__grid { display: grid; gap: 32px; max-width: 960px; margin-inline: auto; }
:not(#_) .aob-service-scope__card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--sv-border); border-radius: var(--aob-radius); background: var(--sv-card); }
:not(#_) .aob-service-scope__media { overflow: hidden; aspect-ratio: 16 / 10; border-bottom: 2px solid var(--aob-brand-2); }
:not(#_) .aob-service-scope__img { transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
:not(#_) .aob-service-scope__body { flex: 1; padding: var(--aob-pad-y) var(--aob-pad-x); }
@media (min-width: 768px) { :not(#_) .aob-service-scope__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (hover: hover) { :not(#_) .aob-service-scope__card:hover .aob-service-scope__img { transform: scale(1.04); } }

/* ---- 4: benefits ---- */
:not(#_) .aob-service-benefits__layout { display: grid; gap: 32px; }
:not(#_) .aob-service-benefits__list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
:not(#_) .aob-service-benefits__item { display: flex; gap: 20px; box-sizing: border-box; margin: 0; padding: 20px var(--aob-pad-x); border: 1px solid var(--sv-border); border-radius: var(--aob-radius); background: var(--sv-card); box-shadow: var(--sv-shadow); }
:not(#_) .aob-service-benefits__icon { display: flex; flex: none; align-items: center; justify-content: center; box-sizing: border-box; width: 56px; height: 56px; border: 1px solid var(--aob-gold-border); border-radius: 800px; background: var(--aob-light-1); box-shadow: var(--aob-shadow-button-secondary); }
:not(#_) .aob-service-benefits__icon-img { display: block; width: 32px; height: 32px; object-fit: contain; }
:not(#_) .aob-service-benefits__icon--none::before { content: ""; width: 7px; height: 13px; margin-top: -3px; border: solid var(--aob-brand-2); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
:not(#_) .aob-service-benefits__body { min-width: 0; }
:not(#_) .aob-service-benefits__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--aob-radius); background: var(--aob-light-2); }
:not(#_) .aob-service-benefits__cta { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); }
@media (min-width: 768px) { :not(#_) .aob-service-benefits__layout--single .aob-service-benefits__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
	:not(#_) .aob-service-benefits__layout:not(.aob-service-benefits__layout--single) { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: start; }
	:not(#_) .aob-service-benefits__media { position: sticky; top: 120px; aspect-ratio: 1 / 1; max-height: min(520px, calc(100vh - 160px)); }
}

/* ---- 5: problems ---- */
:not(#_) .aob-service-problems__grid { display: grid; gap: 32px; }
:not(#_) .aob-service-problems__item { position: relative; box-sizing: border-box; padding: 40px var(--aob-pad-x) var(--aob-pad-y); border: 1px solid var(--sv-border); border-top: 2px solid var(--aob-brand-2); border-radius: var(--aob-radius); background: var(--sv-card); }
:not(#_) .aob-service-problems__num { position: absolute; top: 12px; right: 24px; font-family: var(--aob-font-display); font-size: 56px; line-height: 1; letter-spacing: -0.01em; color: rgba(255, 255, 255, 0.14); }
:not(#_) .aob-service-problems__item .aob-service-card-title { padding-right: 72px; font-size: 22px; }
@media (min-width: 768px) { :not(#_) .aob-service-problems__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- 6: steps ---- */
:not(#_) .aob-service-steps { --sv-cols: 3; }
:not(#_) .aob-service-steps--count-1, :not(#_) .aob-service-steps--count-2 { --sv-cols: 2; }
:not(#_) .aob-service-steps--count-4 { --sv-cols: 4; }
:not(#_) .aob-service-steps__list { position: relative; display: flex; flex-direction: column; gap: 32px; margin: 0; padding: 0 0 0 36px; list-style: none; }
:not(#_) .aob-service-steps__list::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 14px; width: 1px; background: var(--aob-black-1); }
:not(#_) .aob-service-steps__step { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 0; }
:not(#_) .aob-service-steps__dot { position: absolute; left: -36px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--aob-brand); box-shadow: 0 0 0 4px rgba(242, 106, 10, 0.16); }
:not(#_) .aob-service-steps__label { padding: 6px 12px; border: 1px solid var(--aob-gold-soft); border-radius: 44px; background: var(--sv-card); font-size: 14px; font-weight: 500; line-height: 21px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sv-fg); }
:not(#_) .aob-service-steps__card { box-sizing: border-box; width: 100%; flex: 1; padding: var(--aob-pad-y) var(--aob-pad-x); border: 1px solid var(--sv-border); border-radius: var(--aob-radius); background: var(--sv-card); box-shadow: var(--sv-shadow); }
@media (min-width: 640px) {
	:not(#_) .aob-service-steps__list { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 32px; padding-left: 0; }
	:not(#_) .aob-service-steps__list::before, :not(#_) .aob-service-steps__dot { display: none; }
	:not(#_) .aob-service-steps__step { flex: 0 0 calc((100% - 32px) / 2); }
}
@media (min-width: 1024px) {
	:not(#_) .aob-service-steps__step { flex-basis: calc((100% - 32px * (var(--sv-cols) - 1)) / var(--sv-cols)); }
}

/* ---- 7: results — one white panel split into two columns by a gold hairline ---- */
:not(#_) .aob-service-results__panel { display: grid; overflow: hidden; border: 1px solid var(--sv-border); border-radius: 20px; background: var(--sv-card); box-shadow: var(--sv-shadow); }
:not(#_) .aob-service-results__item { box-sizing: border-box; padding: 32px var(--aob-pad-x); }
:not(#_) .aob-service-results__item + .aob-service-results__item { border-top: 1px solid var(--aob-gold-soft); }
:not(#_) .aob-service-results__badge { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 48px; height: 48px; margin-bottom: 20px; border: 1px solid var(--aob-gold-border); border-radius: 800px; background: var(--aob-light-1); box-shadow: var(--aob-shadow-button-secondary); }
:not(#_) .aob-service-results__badge::before { content: ""; width: 7px; height: 13px; margin-top: -3px; border: solid var(--aob-brand); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
:not(#_) .aob-service-results__item-title { margin: 0 0 12px; font-family: var(--aob-font-display); font-size: clamp(24px, 2.4vw, 30px); font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; color: var(--sv-fg); }
@media (min-width: 768px) {
	:not(#_) .aob-service-results__panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	:not(#_) .aob-service-results__item { padding: 44px 40px; }
	:not(#_) .aob-service-results__item + .aob-service-results__item { border-top: 0; border-left: 1px solid var(--aob-gold-soft); }
}

/* ---- 8: principles (accordion, same mechanics as [aob_why_us]) ---- */
:not(#_) .aob-service-principles__layout { display: grid; gap: 40px; align-items: center; }
:not(#_) .aob-service-principles__layout--single .aob-service-principles__list { max-width: 760px; margin-inline: auto; }
:not(#_) .aob-service-principles__media { overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--aob-gold-soft); border-radius: var(--aob-radius); }
:not(#_) .aob-service-principles__list { width: 100%; }
:not(#_) .aob-service-principles__item { border-bottom: 1px solid rgba(245, 242, 237, 0.15); }
:not(#_) .aob-service-principles__heading { margin: 0; }
:not(#_) .aob-service-principles__trigger { display: flex; align-items: center; gap: 16px; width: 100%; box-sizing: border-box; margin: 0; padding: var(--aob-pad-y) 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
:not(#_) .aob-service-principles__trigger:focus-visible { outline: 2px solid var(--aob-white); outline-offset: -2px; border-radius: var(--aob-radius); }
:not(#_) .aob-service-principles__num { display: flex; flex: none; align-items: center; justify-content: center; box-sizing: border-box; width: 42px; height: 42px; border: 1px solid var(--aob-brand); border-radius: 900px; background: var(--aob-black-2); font-family: var(--aob-font-display); font-size: 16px; color: var(--aob-white); transition: box-shadow 0.3s; }
:not(#_) .aob-service-principles__label { flex: 1; min-width: 0; font-size: 22px; font-weight: 400; line-height: 1.3; letter-spacing: -0.02em; color: var(--aob-white); }
:not(#_) .aob-service-principles__chevron { flex: none; width: 10px; height: 10px; margin: 0 8px; border-right: 2px solid var(--aob-brand-2); border-bottom: 2px solid var(--aob-brand-2); transform: rotate(45deg); transition: transform 0.45s cubic-bezier(0.3, 0.7, 0.2, 1); }
:not(#_) .aob-service-principles__item.aob-is-open .aob-service-principles__chevron { transform: rotate(-135deg); }
:not(#_) .aob-service-principles__trigger:hover .aob-service-principles__num { box-shadow: 0 0 0 4px rgba(242, 106, 10, 0.12); }
:not(#_) .aob-service-principles__panel { display: grid; grid-template-rows: 1fr; }
:not(#_) .aob-service-principles__panel-inner { min-height: 0; overflow: hidden; }
:not(#_) .aob-service-principles__panel-inner .aob-service-text { padding: 0 0 var(--aob-pad-y) 58px; }
:not(#_) .aob-service-principles__list.aob-is-ready .aob-service-principles__panel { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.45s cubic-bezier(0.3, 0.7, 0.2, 1), visibility 0s linear 0.45s; }
:not(#_) .aob-service-principles__list.aob-is-ready .aob-service-principles__item.aob-is-open .aob-service-principles__panel { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
:not(#_) .aob-service-principles__bar { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; margin-top: 48px; padding: 24px var(--aob-pad-x); border: 1px solid var(--aob-gold-soft); border-radius: 20px; background: var(--aob-gold-faint); }
:not(#_) .aob-service-principles__bar-text { margin: 0; font-family: var(--aob-font-display); font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; color: var(--aob-white); }
@media (min-width: 768px) { :not(#_) .aob-service-principles__bar { flex-direction: row; align-items: center; justify-content: space-between; padding: 24px 32px; } }
@media (min-width: 1024px) { :not(#_) .aob-service-principles__layout:not(.aob-service-principles__layout--single) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; } }

/* ---- 9: closing — dark call-to-action panel on the light section ---- */
:not(#_) .aob-service-closing__panel {
	--sv-fg: var(--aob-light-1);
	--sv-muted: var(--aob-light-2);
	position: relative;
	display: grid;
	gap: 40px;
	box-sizing: border-box;
	padding: 32px var(--aob-pad-x);
	overflow: hidden;
	border: 1px solid var(--aob-gold-border);
	border-radius: 20px;
	background: radial-gradient(120% 140% at 0% 0%, rgba(242, 106, 10, 0.22), transparent 55%), linear-gradient(180deg, var(--aob-black-2), var(--aob-black-3));
	box-shadow: 0 24px 60px rgba(17, 16, 14, 0.25);
	color: var(--sv-fg);
}
:not(#_) .aob-service-closing__lead { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
:not(#_) .aob-service-closing__lead .aob-service-head { margin-bottom: 0; }
:not(#_) .aob-service-closing__title { font-size: clamp(28px, 3.4vw, 40px); }
:not(#_) .aob-service-closing__list { display: flex; flex-direction: column; gap: 28px; }
:not(#_) .aob-service-closing__item { padding-left: 20px; border-left: 2px solid var(--aob-brand-2); }
:not(#_) .aob-service-closing__item .aob-service-card-title { font-size: 22px; color: var(--aob-white); }
@media (min-width: 1024px) {
	:not(#_) .aob-service-closing__panel { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; padding: 56px; }
}

/* ---- mobile ---- */
@media (max-width: 767px) {
	:not(#_) .aob-service-head--left { align-items: flex-start; }
	:not(#_) .aob-service-benefits__item { padding: 16px; gap: 16px; }
	:not(#_) .aob-service-benefits__icon { width: 48px; height: 48px; }
	:not(#_) .aob-service-benefits__icon-img { width: 28px; height: 28px; }
	:not(#_) .aob-service-principles__panel-inner .aob-service-text { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
	:not(#_) .aob-service-scope__img, :not(#_) .aob-service-principles__chevron { transition: none; }
	:not(#_) .aob-service-scope__card:hover .aob-service-scope__img { transform: none; }
	:not(#_) .aob-service-principles__list.aob-is-ready .aob-service-principles__panel { transition: none; }
}

/* Extra CTA buttons (intro, scope, steps). */
:not(#_) .aob-service-cta { display: flex; margin-top: 40px; }
:not(#_) .aob-service-cta--center { justify-content: center; }
:not(#_) .aob-service-cta--left { justify-content: flex-start; }
@media (max-width: 767px) { :not(#_) .aob-service-cta { margin-top: 32px; } :not(#_) .aob-service-cta .aob-btn { width: 100%; } }
