/* Shared rhythm: section boundaries, grouped content, then component spacing.
   Widths and carousel/Isotope column calculations deliberately stay in their layouts. */
:root {
 --ads-space-section: clamp(120px, 10vw, 150px);
 --ads-space-opening: clamp(140px, 11vw, 165px);
 --ads-space-group: clamp(56px, 5vw, 76px);
 --ads-space-copy: 48px;
 --ads-space-card: clamp(32px, 3vw, 44px);
}

/* Home: title sections and their cards form one chapter. */
.page-id-113 .ads-welcome { padding-block: var(--ads-space-section); }
.page-id-113 .arge-block-work,
.page-id-113 .arge-block-partners { padding-block: var(--ads-space-section) !important; }
.page-id-113 :is(.arge-block-impact-intro,.arge-block-services-title,.arge-block-insights-title,.arge-block-team-title,.arge-block-voices-title) {
 padding-top: var(--ads-space-section) !important;
 padding-bottom: var(--ads-space-group) !important;
}
.page-id-113 :is(.arge-block-impact-cards,.arge-block-services,.arge-block-insights,.arge-block-team,.arge-block-voices) {
 padding-top: 0 !important;
 padding-bottom: var(--ads-space-section) !important;
}
.page-id-113 .arge-block-counters { padding-top: 32px !important; padding-bottom: var(--ads-space-section) !important; }
/* CTA follows its own heading and precedes the team within the same chapter. */
.page-id-113 .arge-block-cta { padding-top: 0 !important; padding-bottom: var(--ads-space-group) !important; }
.page-id-113 .arge-block .qodef-st-text { margin-top: var(--ads-space-copy) !important; line-height: 1.75; }
.page-id-113 .arge-info-card { padding: var(--ads-space-card); box-sizing: border-box; }
.page-id-113 .arge-info-card h3 { margin-bottom: 28px; line-height: 1.08; }
.page-id-113 .arge-info-card p { line-height: 1.7; }
.page-id-113 .arge-block-work .qodef-portfolio-slider-holder { margin-top: var(--ads-space-group); }
.page-id-113 .ads-home-knowledge__grid { gap: 40px; }
.page-id-113 .arge-team-copy { padding-top: 32px; }
.page-id-113 .arge-cta-copy h2 { margin-bottom: var(--ads-space-copy); }

/* Landing-page openings. */
.ads-services-tasks-intro,
.adw-opening,
.ads-contact-opening,
.ads-references-page .arge-references-intro,
.page-id-5629 .arge-home-section {
 padding-top: var(--ads-space-opening);
 padding-bottom: var(--ads-space-section);
}
.ads-services-tasks-intro { padding-bottom: var(--ads-space-group); }
.ads-services-heading--opening > p:last-child,
.adw-opening__copy > p:not(.adw-kicker),
.ads-contact-lead,
.ads-references-page .arge-references-intro__text,
.page-id-5629 .arge-home-lead { margin-top: var(--ads-space-copy); line-height: 1.75; }
.ads-services-heading--opening h1,
.adw-opening h1,
.ads-contact h1,
.ads-references-page .arge-references-intro h1,
.page-id-5629 .arge-home-title { line-height: 1; }

/* Services and working method. */
.ads-services-competence-intro,
.adw-principle-intro { padding-top: var(--ads-space-section); padding-bottom: var(--ads-space-group); }
.ads-services-tasks,
.ads-services-competences,
.adw-principle { padding-top: 0; padding-bottom: var(--ads-space-section); }
.ads-services-system,
.ads-services-references,
.ads-services-cta,
.adw-science,
.adw-collaboration,
.adw-expectations,
.adw-entry,
.adw-cta { padding-block: var(--ads-space-section); }
.ads-task-card,
.ads-competence,
.adw-step,
.adw-collab__cards article { padding: var(--ads-space-card); box-sizing: border-box; }
.ads-task-card p,
.ads-competence__copy,
.adw-step p,
.adw-collab__cards p { line-height: 1.7; }
.ads-competence ul { padding-top: 30px; row-gap: 12px; }
.ads-services-reference-slider { margin-top: var(--ads-space-group); }
.adw-collab__cards { margin-top: var(--ads-space-group); }
.adw-expect__grid article,
.ads-system__paths article { padding-block: 36px; }
.adw-entry__copy > p:last-child,
.adw-cta__copy > p:not(.adw-kicker) { margin-top: var(--ads-space-copy); }

/* References: keep the four-column gallery, give filtering room. */
.ads-references-page .qodef-pl-filter-holder {
 padding-block: 30px !important;
 margin-bottom: var(--ads-space-group) !important;
}
.ads-references-page .qodef-pl-filter-holder ul { gap: 14px; }
.ads-references-page .qodef-pl-load-more-holder { margin-block: var(--ads-space-group); }
.single-portfolio-item .qodef-portfolio-single-holder { padding-block: var(--ads-space-group); }
.single-portfolio-item .qodef-ps-info-item { margin-bottom: 32px; }
.single-portfolio-item .qodef-ps-content-item p { margin-bottom: 28px; line-height: 1.75; }

/* Editorial layout: retain the site's full standard content width. */
.ads-insights-grid { gap: clamp(36px, 4vw, 60px); margin-bottom: var(--ads-space-section); }
.ads-insight-card__content { padding-top: 32px; }
.single-post .ads-article-opening { padding-top: var(--ads-space-opening); padding-bottom: var(--ads-space-group); }
.single-post .qodef-post-text-main p { margin-bottom: 30px; line-height: 1.8; }
.single-post .qodef-post-text-main h2,
.single-post .ads-elementor-article .elementor-widget-heading h2.elementor-heading-title { margin-top: 72px; margin-bottom: 28px; line-height: 1.15; }
.single-post .qodef-post-text-main h3,
.single-post .ads-elementor-article .elementor-widget-heading h3.elementor-heading-title { margin-top: 48px; margin-bottom: 24px; }
.single-post .qodef-post-text-main li { margin-block: 14px; line-height: 1.75; }
.single-post .ads-article-byline + .ads-blog-navigation { margin-bottom: 56px; }
.single-post .ads-blog-navigation { padding-block: 36px; gap: 40px; }
.single-post .ads-blog-navigation + h2,
.single-post .ads-elementor-article .elementor-widget-heading:first-child h2.elementor-heading-title { margin-top: 0; }
.single-post .ads-blog-related { margin-top: var(--ads-space-section); }
.single-post .ads-blog-related > h2 { margin-bottom: var(--ads-space-copy); }
.single-post .ads-blog-related__grid { gap: 48px; }
.single-post .ads-blog-page { padding-bottom: var(--ads-space-section); }

/* Contact: more room between fields, without a background panel. */
.ads-contact-direct { padding-block: clamp(80px, 7vw, 105px); }
.ads-contact-form-section { padding-block: var(--ads-space-section); }
.ads-contact-form-intro > p:not(.ads-contact-kicker) { margin-block: 40px 48px; }
.ads-contact-next { padding-top: 32px; gap: 24px; }
.ads-contact-channels a { padding-block: 22px; }
.ads-contact-form { padding-block: 44px; }
.ads-contact-fields { gap: 32px 28px; }
.ads-contact-form fieldset { margin-block: 40px; }
.ads-contact-topics { gap: 14px; }
.ads-contact-form .ads-contact-privacy { margin-block: 32px; }
.qodef-page-footer .qodef-footer-top-inner { padding-top: 80px !important; padding-bottom: 76px !important; }

/* Plain information pages (imprint, privacy and accessibility). */
.qodef-default-page-template .qodef-page-content-holder:has(> h2, > h1) {
 padding-top: var(--ads-space-group);
 padding-bottom: var(--ads-space-section);
}
.qodef-default-page-template .qodef-page-content-holder > p {
 margin-bottom: 28px;
 line-height: 1.75;
}
.qodef-default-page-template .qodef-page-content-holder > :is(h2,h3) {
 margin-top: var(--ads-space-copy);
 margin-bottom: 24px;
}
.qodef-default-page-template .qodef-page-content-holder > :is(h1,h2,h3):first-child { margin-top: 0; }

@media (max-width: 767px) {
 :root {
  --ads-space-section: 84px;
  --ads-space-opening: 100px;
  --ads-space-group: 48px;
  --ads-space-copy: 36px;
  --ads-space-card: 28px;
 }
 .page-id-113 .ads-home-knowledge__grid { gap: 32px; }
 .page-id-113 .arge-info-card h3 { margin-bottom: 24px; }
 .ads-contact-direct { padding-block: 76px; }
 .ads-contact-direct-grid,
 .ads-contact-form-grid { gap: 48px; }
 .ads-contact-form { padding-block: 32px; }
 .ads-contact-fields { gap: 28px; }
 .ads-contact-form fieldset { margin-block: 32px; }
 .ads-references-page .qodef-pl-filter-holder { padding-block: 24px !important; }
 .ads-references-page .qodef-pl-filter-holder ul { gap: 10px; }
 .single-post .qodef-post-text-main h2,
 .single-post .ads-elementor-article .elementor-widget-heading h2.elementor-heading-title { margin-top: 56px; margin-bottom: 24px; }
 .single-post .qodef-post-text-main p { margin-bottom: 26px; }
 .single-post .ads-blog-navigation { gap: 28px; padding-block: 28px; }
 .single-post .ads-blog-related__grid { gap: 40px; }
 .single-post .ads-blog-navigation + h2,
 .single-post .ads-elementor-article .elementor-widget-heading:first-child h2.elementor-heading-title { margin-top: 0; }
 .qodef-page-footer .qodef-footer-top-inner { padding-top: 64px !important; padding-bottom: 60px !important; }
}

/* Project media must fit the available screen, including laptop heights. */
.single-portfolio-item .qodef-ps-image-inner.qodef-owl-slider {
 --ads-project-media-height: min(760px, calc(100svh - 180px));
}
.single-portfolio-item .qodef-ps-image-inner.qodef-owl-slider .qodef-ps-image {
 height: var(--ads-project-media-height);
 display: flex;
 align-items: center;
 justify-content: center;
}
.single-portfolio-item .qodef-ps-image-inner.qodef-owl-slider .qodef-ps-image > a { display: block; width: 100%; height: 100%; }
.single-portfolio-item .qodef-ps-image-inner.qodef-owl-slider .qodef-ps-image img {
 width: 100%; height: 100%; object-fit: contain;
}
.single-portfolio-item .qodef-ps-image-inner.qodef-owl-slider .qodef-ps-image :is(video,iframe) {
 max-height: var(--ads-project-media-height); max-width: 100%;
}
.qodef-page-footer .ads-footer-contact-details p { margin-bottom: 24px; line-height: 1.65; }
.qodef-page-footer .ads-footer-contact-details strong { color: #fff; }
@media (max-width: 767px) {
 .single-portfolio-item .qodef-ps-image-inner.qodef-owl-slider { --ads-project-media-height: min(520px, 65svh); }
}
@media (min-width: 768px) {
 .single-portfolio-item .qodef-content .qodef-container > .qodef-container-inner { padding-top: 0; }
 .single-portfolio-item .qodef-portfolio-single-holder { padding-top: 32px; }
 .single-portfolio-item .qodef-ps-image-inner.qodef-owl-slider { --ads-project-media-height: min(760px, calc(100svh - 340px)); }
}

/* Testimonials and client logos form one shared trust section. */
.page-id-113 .arge-block-voices { padding-bottom: 24px !important; }
.page-id-113 .arge-block-voices .qodef-testimonial-content {
 min-height: 0;
 padding-bottom: 24px !important;
}
.page-id-113 .arge-block-partners {
 padding-top: 0 !important;
 padding-bottom: 64px !important;
}
@media(max-width:767px) {
 .page-id-113 .arge-block-voices { padding-bottom: 16px !important; }
 .page-id-113 .arge-block-partners { padding-bottom: 44px !important; }
}

/* One opaque header treatment, independent of scroll direction or content. */
body .qodef-page-header,
body .qodef-mobile-header {
 background: #fff !important;
 --ads-kopf-farbe: #1d1d1b;
 clip-path: none !important;
 box-shadow: 0 1px 0 rgba(29,29,27,.1) !important;
}
body .qodef-page-header .qodef-logo-wrapper a::after,
body .qodef-mobile-header .qodef-mobile-logo-wrapper a::after {
 background-image: url('../images/logo-adsembling-claim.svg') !important;
 filter: none !important;
}
body .qodef-page-header :is(.qodef-side-menu-button-opener,.qodef-search-opener,.ads-sprache),
body .qodef-mobile-header :is(.qodef-mobile-menu-opener,.qodef-mobile-menu-opener a,.ads-sprache) { color: #1d1d1b !important; }
html { scroll-padding-top: calc(var(--ads-kopfhoehe, 80px) + 20px); }

/* Project openings: client, project and disciplines before the gallery. */
.single-portfolio-item .qodef-content .qodef-container > .qodef-container-inner {
 width: min(1300px,calc(100% - 64px)) !important;
 padding-top: 0 !important;
}
.single-portfolio-item .qodef-portfolio-single-holder { padding-top: 0; }
.ads-project-opening { padding: var(--ads-space-opening) 0 var(--ads-space-group); }
.ads-project-kicker { margin: 0 0 28px; font: 700 12px/1.4 Roboto,sans-serif; letter-spacing: .17em; text-transform: uppercase; }
.ads-project-opening h1 { max-width: 1180px; margin: 0; color: #1d1d1b; font: 700 clamp(54px,6.3vw,98px)/1.02 Roboto,sans-serif; letter-spacing: -.055em; overflow-wrap: anywhere; }
.ads-project-opening h1 span { display: block; color: #d02e26; }
.ads-project-disciplines { margin: 36px 0 0; color: #555; font: 400 18px/1.6 Roboto,sans-serif; }
@media(max-width:767px) {
 .single-portfolio-item .qodef-content .qodef-container > .qodef-container-inner { width: calc(100% - 40px) !important; }
 .ads-project-opening h1 { font-size: clamp(38px,10.5vw,58px); line-height: 1.06; letter-spacing: -.045em; }
 .ads-project-kicker { margin-bottom: 24px; }
 .ads-project-disciplines { margin-top: 28px; font-size: 16px; }
 /* Use the available mobile width instead of nesting a 300px theme grid. */
 .page-id-113 .arge-block-voices,
 .page-id-113 .arge-block-voices-title { width: calc(100% - 40px) !important; max-width: none !important; margin-inline: auto !important; }
 .page-id-113 .arge-block-voices > .elementor-container,
 .page-id-113 .arge-block-voices-title > .elementor-container,
 .page-id-113 .arge-block-voices-title > .qodef-elementor-container-inner { width: 100% !important; max-width: none !important; }
 .page-id-113 .arge-block-voices .elementor-widget-wrap { padding-inline: 0 !important; }
 .page-id-113 .arge-block-voices .qodef-testimonial-content { padding: 40px 0 24px 30px !important; }
 .page-id-113 .arge-block-voices .qodef-testimonial-content::before { left: 0; }
 .page-id-113 .arge-block-voices .qodef-testimonial-text { font-size: 17px !important; line-height: 1.65 !important; }
}

/* Shared text palette: ink on light surfaces, white on dark surfaces.
   Scope Elementor overrides to actual light sections; preserve accent links,
   metadata, decorative background lettering and the cards' hover contrasts. */
:root { --ads-text-ink: #1d1d1b; --ads-text-inverse: #fff; }
body { color: var(--ads-text-ink); }
body :is(.ads-services-tasks-intro, .ads-task-card, .ads-services-system,
 .adw-opening, .adw-science, .adw-expectations, .adw-entry,
 .arge-references-intro, .ads-contact, .ads-project-opening,
 .qodef-ps-content-item) :is(p,li) {
 color: var(--ads-text-ink) !important;
}
body .ads-insight-card__content > p:not(.ads-insight-card__meta),
body .ads-blog-related__card > p,
body.single-post :is(.qodef-post-text-main,.ads-elementor-article,.comment-form) :is(p,li),
body.page-id-113 .arge-block-voices .qodef-testimonial-text {
 color: var(--ads-text-ink) !important;
}
body .adw-collab__cards p { color: var(--ads-text-inverse) !important; }

/* AI capability: the same editorial rhythm as the other landing sections. */
.ads-ai-section { padding:var(--ads-space-section) 0; background:#fff; color:#1d1d1b; }
.ads-ai-section > .elementor-container { width:100%; max-width:none; }
.ads-ai-section .elementor-widget-wrap { padding:0 !important; }
.ads-ai-width { width:min(1300px,calc(100% - 64px)); margin:auto; }
.ads-ai-section h2 { margin:0; font-size:clamp(42px,5.2vw,78px); line-height:1.04; letter-spacing:-.05em; color:#1d1d1b; }
.ads-ai-section h2 span { color:#0067ae; }
.ads-ai-section p { color:#1d1d1b !important; font-size:18px; line-height:1.7; }
.ads-ai-section :is(.arge-kicker,.ads-services-kicker) { font-size:12px; margin:0 0 24px; letter-spacing:.14em; font-weight:700; }
.ads-ai-intro,.ads-ai-teaser { display:grid; grid-template-columns:1.1fr 1fr; gap:clamp(40px,6vw,90px); align-items:end; }
.ads-ai-intro > p { margin:0; }
.ads-ai-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px; margin-top:var(--ads-space-group); }
.ads-ai-cards article { padding:32px; border-top:4px solid #0067ae; background:#f7f7f5; }
.ads-ai-cards article:nth-child(2) { border-color:#d02e26; }
.ads-ai-cards article:nth-child(3) { border-color:#ffee3b; }
.ads-ai-cards svg { width:48px; height:48px; fill:none; stroke:currentColor; stroke-width:1.5; }
.ads-ai-cards h3 { font-size:27px; line-height:1.15; letter-spacing:-.03em; margin:36px 0 20px; color:#1d1d1b; }
.ads-ai-cards p { font-size:16px; margin:0; }
.ads-ai-action { display:flex; align-items:center; justify-content:space-between; gap:48px; margin-top:48px; }
.ads-ai-action p { max-width:730px; margin:0; }
.ads-ai-link { display:inline-flex; gap:24px; align-items:center; padding:14px 0; border-bottom:2px solid #1d1d1b; color:#1d1d1b; font-weight:500; }
.ads-ai-link span { transition:transform .2s; }
.ads-ai-link:hover span { transform:translate(3px,-3px); }
.ads-ai-link:focus-visible { outline:2px solid #0067ae; outline-offset:5px; }
@media(max-width:900px) {
 .ads-ai-intro,.ads-ai-teaser { grid-template-columns:1fr; gap:32px; }
 .ads-ai-cards { grid-template-columns:1fr; }
 .ads-ai-action { flex-direction:column; align-items:flex-start; gap:24px; }
}
@media(max-width:767px) { .ads-ai-width { width:calc(100% - 40px); } .ads-ai-section p { font-size:17px; } .ads-ai-cards article { padding:28px; } }
@media(prefers-reduced-motion:reduce) { .ads-ai-link span { transition:none; transform:none !important; } }
.ads-ohne-bewegung .ads-ai-link span { transition:none; transform:none !important; }

/* Home AI content continues the yellow services chapter beneath its cards. */
.page-id-113 .arge-block-services { padding-bottom:0 !important; }
.page-id-113 .ads-ai-section--home {
 background:#ffee3b; padding-top:var(--ads-space-group); padding-bottom:var(--ads-space-section);
}
.page-id-113 .ads-ai-teaser { display:grid; grid-template-columns:1.1fr 1fr; align-items:center; }
.page-id-113 .ads-ai-teaser h2 { max-width:1050px; }
.page-id-113 .ads-ai-teaser h2 span { color:#0067ae; }
.page-id-113 .ads-ai-teaser-copy { max-width:none; margin-top:0; }
.page-id-113 .ads-ai-teaser-heading .ads-ai-teaser-lead { margin-top:32px; }
.page-id-113 .ads-ai-teaser-copy > p { margin:0; }
.page-id-113 .ads-ai-teaser-lead { display:flex; align-items:baseline; gap:18px; margin:0; }
.page-id-113 .ads-ai-teaser-lead::before {
 content:''; display:block; flex:0 0 42px; height:2px; background:#d02e26; align-self:flex-start; margin-top:.8em;
}
.page-id-113 .ads-ai-teaser .ads-ai-link { margin-top:24px; margin-left:0; }
@media(max-width:767px) {
 .page-id-113 .ads-ai-teaser-lead { gap:16px; }
 .page-id-113 .ads-ai-teaser-lead::before { flex-basis:32px; }
 .page-id-113 .ads-ai-teaser .ads-ai-link { margin-left:0; }
}
.page-id-113 .ads-ai-section--home .ads-ai-width { width:min(1300px,calc(100% - 64px)); }
@media(max-width:767px) { .page-id-113 .ads-ai-section--home .ads-ai-width { width:calc(100% - 40px); } }

@media(max-width:900px) { .page-id-113 .ads-ai-teaser { grid-template-columns:1fr; gap:32px; } }

/* Remove subpixel seams in full-bleed colour fields and decorative hairlines. */
.page-id-113 :is(.arge-block-team-title,.arge-block-cta,.arge-block-team),
.ads-services-competence-intro,.ads-services-competences,
.adw-principle-intro,.adw-principle {
 clip-path:inset(-1px -100vmax); border-top:0 !important; border-bottom:0 !important;
}
.ads-services-competences .elementor-column .ads-competence,
.ads-services-competences .ads-competence ul { border:0 !important; }
.page-id-113 .arge-block-team-title .qodef-st-title .ads-cta-ink { color:#000 !important; }

/* Preserve the existing two-pixel rule dimensions; replace only its colour. */
.page-id-5629 .ads-insight-card,
.single-post .ads-blog-related__card {
 border-top:2px solid transparent;
 border-image:linear-gradient(to right,#d02e26 0% 20%,#0067ae 20% 40%,#1d1d1b 40% 60%,#fff 60% 80%,#ffee3b 80% 100%) 1;
}

/* Content icons use the shared 10px corner size. */
.ads-task-card > svg,
.ads-competence__top > svg,
.adw-step > svg,
.adw-collab__cards article > svg,
.ads-ai-cards article > svg {
 box-sizing:border-box; width:58px; height:58px; flex-shrink:0;
 padding:12px; border:1px solid currentColor; border-radius:var(--ads-radius-surface); overflow:visible;
}
.ads-contact-next { grid-template-columns:48px minmax(0,1fr); }
.ads-contact-next > svg {
 box-sizing:border-box; width:48px; height:48px; padding:9px;
 color:#0067ae; border:1px solid currentColor; border-radius:var(--ads-radius-surface);
}

/* Legal pages use the same content frame and typography as the landing pages. */
.ads-legal-page {
 width:min(1300px,calc(100% - 64px)); margin:0 auto;
 padding:var(--ads-space-opening) 0 var(--ads-space-section);
 color:#1d1d1b; font-family:Roboto,sans-serif;
}
.ads-legal-opening { margin-bottom:var(--ads-space-group); }
.ads-legal-page .ads-legal-kicker { margin:0 0 26px; font-size:12px; line-height:1.5; font-weight:700; letter-spacing:.14em; text-transform:uppercase; }
.ads-legal-page h1 { margin:0; font-size:clamp(40px,6.2vw,92px); line-height:1.06; letter-spacing:-.05em; color:#1d1d1b; overflow-wrap:anywhere; hyphens:auto; }
.ads-legal-content { font-size:18px; line-height:1.75; }
.ads-legal-page .ads-legal-content h2 { margin:64px 0 24px; font-size:clamp(28px,3vw,42px); line-height:1.15; letter-spacing:-.035em; color:#1d1d1b; }
.ads-legal-page .ads-legal-content h3 { margin:0 0 20px; font-size:24px; line-height:1.25; color:#1d1d1b; }
.ads-legal-page .ads-legal-content :is(p,li) { color:#1d1d1b; font-size:18px; line-height:1.75; }
.ads-legal-content p { margin:0 0 24px; }
.ads-legal-content :is(ul,ol) { padding-left:24px; margin:20px 0 28px; }
.ads-legal-content li { margin-bottom:12px; }
.ads-legal-content a { color:#1d1d1b; text-decoration:underline; text-underline-offset:4px; overflow-wrap:anywhere; }
.ads-legal-content a:hover { color:#0067ae; }
.ads-legal-content a:focus-visible { outline:2px solid #0067ae; outline-offset:4px; }
.ads-legal-content small { font-size:14px; }
.ads-legal-details { display:grid; grid-template-columns:1fr 1fr; gap:48px; }
@media(max-width:767px) {
 .ads-legal-page { width:calc(100% - 40px); }
 .ads-legal-page h1 { font-size:clamp(32px,8.8vw,48px); }
 .ads-legal-page .ads-legal-content :is(p,li) { font-size:17px; }
 .ads-legal-page .ads-legal-content h2 { margin-top:48px; }
 .ads-legal-details { grid-template-columns:1fr; gap:8px; }
}

/* Article reading rhythm: compact paragraphs, clear section breaks. */
.single-post .qodef-post-text-main p,
.single-post .ads-elementor-article .elementor-widget-text-editor p {
 margin-top:0; margin-bottom:18px; line-height:1.65;
}
.single-post .qodef-post-text-main li,
.single-post .ads-elementor-article .elementor-widget-text-editor li { margin-block:6px; line-height:1.65; }
.single-post .ads-elementor-article .elementor-widget-text-editor { margin-bottom:18px; }
.single-post .ads-elementor-article .elementor-widget-text-editor .elementor-widget-container > p:last-child,
.single-post .ads-elementor-article .elementor-text-editor > p:last-child { margin-bottom:0; }
.single-post .ads-elementor-article .elementor-widget-heading { margin-bottom:0; }
.single-post .qodef-post-text-main h2,
.single-post .ads-elementor-article .elementor-widget-heading h2.elementor-heading-title { margin-top:48px; margin-bottom:20px; }
.single-post .qodef-post-text-main h3,
.single-post .ads-elementor-article .elementor-widget-heading h3.elementor-heading-title { margin-top:32px; margin-bottom:16px; }
.single-post .qodef-post-text-main .ads-blog-navigation + h2,
.single-post .ads-elementor-article .elementor-widget-heading:first-child h2.elementor-heading-title { margin-top:0; }

/* New logo with claim: preserve its complete 185.2 × 40.17 artboard. */
body .qodef-page-header .qodef-logo-wrapper a::after,
body .qodef-mobile-header .qodef-mobile-logo-wrapper a::after,
body .qodef-side-menu .widget_media_image::after {
 width:230px; height:50px; background-size:contain;
}
body .qodef-page-footer .ads-footer-logo,
body .qodef-page-footer .ads-footer-logo__word { width:230px; max-width:100%; }
@media(max-width:767px) {
 body .qodef-mobile-header .qodef-mobile-logo-wrapper a::after { width:210px; height:46px; }
}
@media(max-width:360px) {
 body .qodef-mobile-header .qodef-mobile-logo-wrapper a::after { width:180px; height:40px; }
}

/* Shared corner sizes across native, Elementor and custom components. */
:root { --ads-radius-button: 5px; --ads-radius-surface: 10px; }
body :is(
 button, input[type="submit"], input[type="button"], input[type="reset"],
 a[role="button"], .qodef-btn, .elementor-button, .wp-element-button,
 .wp-block-button__link, .arge-cta-button, .adw-cta__button,
 .ads-claim-hero__scroll, .ads-services-actions a, .ads-reference-more, .ads-not-found__home,
 .ads-not-found__contact, .ads-home-knowledge__read,
 .owl-prev, .owl-next, .qodef-side-menu-button-opener
) { border-radius: var(--ads-radius-button) !important; }

body :is(
 .arge-info-card, .ads-task-card, .ads-competence,
 .ads-home-knowledge__card, .ads-insight-card, .ads-blog-related__card,
 .adw-collab__cards article, .adw-expect__grid article,
 .ads-system__paths article, .ads-ai-cards article,
 .qodef-pl-item-inner, .qodef-team-holder,
 .elementor-widget-loop-grid .e-loop-item
):not(:is([class*="hero"], rs-module) *) {
 border-radius: var(--ads-radius-surface) !important;
 overflow: clip;
}

/* Clip image wrappers too, including zooming portfolio and team photographs. */
body .qodef-wrapper img:not(:is([class*="hero"], rs-module, rs-module-wrap) img),
body :is(
 .qodef-pli-image, .qodef-post-image, .qodef-ps-image-inner,
 .qodef-team-image, .qodef-single-image-holder,
 .ads-home-knowledge__image, .ads-insight-card__image, .ads-blog-related__image,
 .elementor-widget-image .elementor-widget-container,
 .elementor-image-gallery .gallery-icon, .wp-block-image
):not(:is([class*="hero"], rs-module, rs-module-wrap) *) {
 border-radius: var(--ads-radius-surface) !important;
}
body :is(
 .qodef-pli-image, .qodef-post-image, .qodef-ps-image-inner,
 .qodef-team-image, .qodef-single-image-holder,
 .ads-home-knowledge__image, .ads-insight-card__image, .ads-blog-related__image,
 .elementor-widget-image .elementor-widget-container,
 .elementor-image-gallery .gallery-icon, .wp-block-image
):not(:is([class*="hero"], rs-module, rs-module-wrap) *) { overflow: clip; }

/* Search landing pages use the established content width and type hierarchy. */
.ads-seo-page,.ads-seo-resources { width:min(1300px,calc(100% - 64px)); margin-inline:auto; padding:90px 0; color:#1d1d1b; font-family:Roboto,sans-serif; }
.ads-seo-page h1 { max-width:1050px; margin:30px 0 40px; font-size:clamp(42px,5.5vw,80px); line-height:1.03; letter-spacing:-.05em; }
.ads-seo-breadcrumb { font-size:14px; }
.ads-seo-content { max-width:900px; }
.ads-seo-content p { font-size:18px; line-height:1.7; }
.ads-seo-content .ads-seo-lead { font-size:22px; line-height:1.6; }
.ads-seo-content section { margin-top:56px; }
.ads-seo-content h2,.ads-seo-resources h2,.ads-seo-next h2 { font-size:clamp(28px,3vw,42px); line-height:1.15; letter-spacing:-.035em; margin-bottom:24px; }
.ads-seo-content a,.ads-seo-breadcrumb a { color:#0067ae; text-decoration:underline; text-underline-offset:3px; }
.ads-seo-content details { border-top:1px solid #ccc; padding:20px 0; }
.ads-seo-content summary { font-size:18px; font-weight:700; cursor:pointer; }
.ads-seo-next { margin-top:60px; padding:32px; border-radius:10px; background:#ffee3b; }
.ads-seo-next .qodef-btn { background:#1d1d1b; color:#fff; padding:14px 20px; }
.ads-seo-resource-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; margin:32px 0 64px; }
.ads-seo-resource-grid a { display:flex; justify-content:space-between; gap:24px; padding:28px; border:1px solid #ccc; border-radius:10px; color:#1d1d1b; font-size:22px; font-weight:700; }
.ads-seo-resource-grid a:hover { background:#ffee3b; }
.ads-seo-page a:focus-visible,.ads-seo-resources :is(a,summary):focus-visible { outline:3px solid #0067ae; outline-offset:5px; }
@media(max-width:767px) {
 .ads-seo-page,.ads-seo-resources { width:calc(100% - 30px); padding:60px 0; }
 .ads-seo-resource-grid { grid-template-columns:1fr; }
 .ads-seo-content p { font-size:16px; }
 .ads-seo-content .ads-seo-lead { font-size:19px; }
}
.ads-author-profile,.ads-editorial-sources { margin:48px 0 0; padding:28px 0; border-top:1px solid #ccc; }
.ads-author-profile h2 { margin:0 0 18px !important; }
.ads-case-summary { width:min(1300px,calc(100% - 64px)); margin:0 auto 48px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; }
.ads-case-summary > div { padding:24px; background:#f7f7f5; border-radius:10px; }
.ads-case-summary h2 { font-size:22px; margin:0 0 18px; }
.ads-case-summary p { font-size:16px; line-height:1.65; margin:0; }
@media(max-width:767px) { .ads-case-summary { width:calc(100% - 30px); grid-template-columns:1fr; } }

/* Reserve the final content position before the parent theme initializes. */
body.home .qodef-content { margin-top: 0 !important; }

/* Working method: consistent corners, including custom SVG icon frames. */
body .adw-link {
 padding: 16px 22px;
 border: 1px solid currentColor;
 border-radius: var(--ads-radius-button);
}
body .adw-step {
 border-radius: var(--ads-radius-surface);
 overflow: hidden;
}
body :is(.adw-step, .adw-collab__cards) svg,
body .adw-expect__grid i {
 border-radius: var(--ads-radius-surface);
}
body .adw-collab__cards {
 gap: 20px;
 border: 0;
}
body .adw-collab__cards article {
 border: 1px solid rgba(255,255,255,.5);
 border-radius: var(--ads-radius-surface);
}

/* Shared icon frames, including social links and arrow actions. */
body .qodef-wrapper :is(
 .arge-info-icon, .arge-home-social > a, .ads-footer-socials a,
 .ads-welcome__next i, .ads-all-references a i,
 .ads-home-knowledge__channel i, .ads-claim-hero__scroll i,
 .adw-expect__grid i, .qodef-icon-shortcode.qodef-circle,
 .qodef-social-icon-widget-holder.qodef-icon-has-hover
) { border-radius: var(--ads-radius-surface) !important; }
body .ads-pointer__surface { border-radius: var(--ads-radius-surface); }

/* Text-entry controls share the surface radius; submit controls remain 5px. */
body .qodef-wrapper :is(
 input[type="text"], input[type="email"], input[type="tel"],
 input[type="url"], input[type="search"], input[type="number"],
 input[type="password"], input[type="date"], select, textarea
) { border-radius: var(--ads-radius-surface) !important; }
body .qodef-wrapper input:not([type]) { border-radius: var(--ads-radius-surface) !important; }
body .ads-contact-topics label { border-radius: var(--ads-radius-button); }
