/* Final phone/tablet layer. Desktop styles and full-height color slides stay intact. */
@media (max-width: 760px) {
 :root {
  --type-title: clamp(1.875rem, 1.35rem + 2.8vw, 2.5rem);
  --type-section: clamp(1.5rem, 1.25rem + 1.2vw, 1.875rem);
  --type-card: 1.125rem;
  --mobile-gutter: clamp(1.25rem, 5vw, 2rem);
 }
 html { scroll-padding-top: calc(var(--header-clearance, 5rem) + 1rem); }
 body { -webkit-text-size-adjust: 100%; }
 body main :is(h1, h2, h3) { hyphens: manual; }
 body main p { line-height: 1.65; }
 body main :is(input:not([type=checkbox]):not([type=radio]), textarea, select) { font-size: 1rem; min-height: 48px; }
 body main textarea { min-height: 8rem; }
 body :is(.hp-shell, .ws-shell, .sm-shell, .fo-shell, .contact-shell) { width: 100%; max-width: 100%; min-width: 0; }
 body :is(.ws-shell, .sm-shell, .fo-shell, .contact-shell) { width: calc(100% - 2 * var(--mobile-gutter)); margin-inline: auto; }
 body .hp-section, body .quality-content { padding-inline: var(--mobile-gutter); padding-block: 3.5rem; }
 body .hp-section > .hp-shell { margin-inline: auto; }
 .section-heading { margin-bottom: 1.75rem; }
 .section-heading > .eyebrow { margin-bottom: .75rem; }
 .section-heading > p:last-child { margin-bottom: 0; }
 body main :is(.text-link, .sm-text-link, .ws-text-link) { display: inline-flex; align-items: center; min-height: 44px; }

 /* A compact opening with readable type, rather than a large empty top offset. */
 body.homepage-content-restored .dm-opening {
  padding: calc(var(--header-clearance, 5rem) + 2.5rem) var(--mobile-gutter) 3.5rem;
  align-items: center;
 }
 body.homepage-content-restored .dm-opening__content { max-width: 100%; width: 100%; }
 body.homepage-content-restored .dm-opening #hero-title { max-width: 20ch; margin-bottom: 1.25rem; }
 body.homepage-content-restored .dm-opening .dm-opening__lead { font-size: 1rem; max-width: 40ch; }
 .dm-opening-art { opacity: .12; }
 .hero-service-symbols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; min-height: 0; margin-top: 2rem; }
 .hero-service-symbols .hero-service-link { min-height: 0; gap: .5rem; }
 .hero-service-symbols svg { width: 28px; height: 28px; }
 .hero-service-symbols .hero-service-title { max-width: 22ch; }

 /* Strong colors remain, with less light spilling between stacked cards. */
 .home-challenge__tabs { gap: 0; justify-content: space-between; }
 .home-challenge__tabs button { padding: .8rem .2rem; min-height: 48px; gap: .4rem; }
 .home-challenge__panel { gap: 1.5rem; }
 .home-challenge__side > img { height: clamp(9rem, 40vw, 13rem); }
 .home-challenge__copy { padding: 1.25rem; }
 .home-challenge__side--problem { box-shadow: 0 0 14px #ff526636; }
 .home-challenge__side--solution { box-shadow: 0 0 14px #70e59b3d; }
 .home-challenge__copy .text-link { width: 100%; }

 /* Touch selection uses concise, equally sized service tiles. Detail copy is
    available in the full-height offer that opens on tap. */
 body .hp-section.hp-process-panels { padding: 0; }
 .hp-process-panels__heading { padding: 3.5rem var(--mobile-gutter) 2rem; gap: 1rem; }
 .hp-process-panels__heading h2 { max-width: 24ch; }
 .hp-process-panels__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; min-height: 0; }
 .hp-process-panel, .hp-process-panel.is-preview { min-width: 0; min-height: 15rem; padding: 3.5rem 1.1rem 1.25rem; justify-content: flex-start; }
 .hp-process-panel__step { top: 1.25rem; left: 1.1rem; right: 1.1rem; }
 body main .hp-process-panel h3 { margin-bottom: .65rem; font-size: .9375rem !important; }
 body main .hp-process-panel__promise { font-size: 1.375rem; line-height: 1.3; letter-spacing: -.02em; }
 .hp-process-panel__preview, .hp-process-panel.is-preview .hp-process-panel__preview { margin-top: auto; max-height: none; opacity: 1; transform: none; padding-top: 1rem; }
 .hp-process-panel__preview .hp-process-panel__summary,
 .hp-process-panel .hp-process-panel__bullets { display: none; }
 .hp-process-panel .hp-process-panel__cue { margin-top: 0; padding-top: .65rem; }
 .hp-service-information__inner { padding: 2.5rem var(--mobile-gutter) 3rem; }
 .hp-service-information__top { flex-wrap: wrap; gap: .75rem; }
 .hp-service-information__top button { min-height: 44px; margin-left: auto; }
 .hp-service-information__slide ol { grid-template-columns: 1fr; gap: 1.5rem; }
 .hp-service-information__full, .hp-service-information__contact { width: 100%; justify-content: center; text-align: center; margin-right: 0; }

 /* Predictable spacing across every service page. All color sections retain
    the existing 100svh minimum; longer mobile copy grows without clipping. */
 body :is(.ws-section, .sm-section, .fo-intro, .fo-services, .fo-output, .fo-process) { padding-block: 3.5rem; }
 body :is(.ws-hero, .sm-hero, .fo-hero) { padding-top: calc(var(--header-clearance, 5rem) + 2.5rem); padding-bottom: 3rem; align-items: start; }
 .ws-front, .sm-front { padding-top: 0; padding-bottom: 0; }
 .ws-image, .sm-image { left: 0; opacity: .25; }
 .ws-split, .ws-path, .sm-split, .sm-path, .fo-split, .fo-output header, .fo-map { grid-template-columns: 1fr; gap: 1.5rem; }
 .ws-system, .ws-process, .sm-process, .sm-compare, .sm-assurance { grid-template-columns: 1fr; margin-top: 2rem; }
 .ws-system p, .sm-assurance p { min-height: 0; padding: 1.25rem; }
 .ws-system span, .sm-assurance span { margin-top: .5rem; }
 .ws-process li, .sm-process li { padding: 1.25rem 0; }
 .ws-path__steps p, .sm-path__steps p { grid-template-columns: 1fr; gap: .35rem; padding-block: 1rem; }
 body main :is(.ws-path, .sm-path) header > span { font-size: 1.75rem; margin-bottom: 1rem; }
 .fo-grid { grid-template-columns: 1fr; }
 .fo-grid img { height: 12rem; }
 .fo-grid p { min-height: 0; }
 .fo-map { margin-top: 2rem; }
 .fo-source { width: min(100%, 20rem); }
 .fo-presence { grid-template-columns: 1fr; }
 .fo-presence > div img { min-height: 0; height: 14rem; }
 .fo-presence > section { padding: 2.5rem var(--mobile-gutter) 3.5rem; }
 .fo-process li { grid-template-columns: 1.5rem minmax(0, 1fr); gap: .5rem 1rem; }
 .fo-process li p { grid-column: 2; }
 .fo-final { padding-block: 3.5rem; }
 body.care-page .care-hero { padding: calc(var(--header-clearance, 5rem) + 2.5rem) var(--mobile-gutter) 3.5rem; }
 .care-choice__grid, .care-process ol, .care-technical__grid { grid-template-columns: 1fr; }
 .care-choice article { padding: 1.25rem; }
 body.care-page .care-system { padding-inline: 0; }
 .care-system > .hp-shell > .section-heading { padding-inline: var(--mobile-gutter); }
 .care-system__grid { grid-template-columns: 1fr; }
 .care-system__grid article { min-height: 0; padding: 1.75rem var(--mobile-gutter); }
 .care-system__grid h3 { margin-top: 1rem; }
 .care-system__note { margin-inline: var(--mobile-gutter); }
 .care-system .service-context { padding-inline: var(--mobile-gutter); }
 .service-context { margin-top: 1.75rem; padding-top: 1.5rem; }
 .service-context__grid { grid-template-columns: 1fr; gap: 1.25rem; }
 .service-context__point + .service-context__point { padding-top: 1.25rem; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
 .service-context__actions { flex-direction: column; align-items: flex-start; gap: .5rem; }
 .service-context__lead { margin-bottom: 1.25rem; }
 .premium-care__intro { grid-template-columns: 1fr; }
 .premium-care__promise, .premium-care__contact { padding: 1.25rem; }
 .premium-care__promise { border-right: 0; border-bottom: 1px solid #ffffff25; }
 .premium-care__contact nav, .premium-care__benefits { grid-template-columns: 1fr; }
 .premium-care__benefits strong { min-height: 0; }
 .premium-care__benefits li { padding-top: 1.25rem; }
 .premium-care__footer a { justify-content: center; width: 100%; text-align: center; }

 /* Keep the requested 3D depth, with a stable reading area and touch controls. */
 .home-references.is-enhanced .hp-projects { height: 31rem; }
 .home-references.is-enhanced .home-reference { width: 84%; border-radius: .65rem; }
 .home-references.is-enhanced .home-reference__copy { padding: 1rem; }
 .home-references.is-enhanced .home-reference__browser { padding-inline: .65rem; }
 .home-references.is-enhanced .home-reference__browser span { font-size: .75rem; }
 .home-reference-controls { margin-top: .75rem; gap: .5rem; }
 .home-reference-controls button { min-width: 44px; min-height: 46px; padding-inline: .8rem; }
 .home-references .section-heading { text-align: left; }

 .faq-project-layout { grid-template-columns: 1fr; gap: 3rem; }
 .faq-card summary { grid-template-columns: 1.1rem minmax(0, 1fr) 1rem; gap: .5rem; padding-block: 1rem; }
 .faq-answer > p { padding: 0 0 1.25rem 1.6rem; }
 .homepage-contact { padding-top: 1.5rem; border-top: 1px solid #ffffff30; }
 .home-contact-field { display: grid; gap: .5rem; font-size: .875rem; margin-bottom: 1rem; }
 .home-contact-field :is(input, textarea) { width: 100%; min-width: 0; padding: .85rem; }
 .homepage-contact .home-contact-field :is(input, textarea) { border: 1px solid #ffffff45; border-radius: 4px; background: #101820; color: #f5f7fa; }
 .homepage-contact textarea { resize: vertical; }
 .home-contact-consent { display: flex; align-items: flex-start; gap: .65rem; font-size: .875rem; line-height: 1.6; }
 .home-contact-consent input { margin-top: .3rem; flex-shrink: 0; }
 .homepage-contact button[type=submit] { width: 100%; min-height: 48px; padding: .85rem 1rem; border: 1px solid #e5be6f; border-radius: 4px; background: #e5be6f; color: #211707; font-weight: 650; }
 .home-contact-note { font-size: .875rem; line-height: 1.6; }
 .contact-main, .contact-two, .analysis-name-row, .result-layout, .analyse-request { grid-template-columns: 1fr; }
 .contact-intro { padding-top: calc(var(--header-clearance, 5rem) + 2.5rem); }
 .contact-intro__bottom { gap: 1rem; }
 .contact-form-card { padding: 1.25rem; }
 .contact-next ol { grid-template-columns: 1fr; }
 .contact-footer { grid-template-columns: 1fr; }
 .contact-footer nav { justify-self: start; flex-wrap: wrap; }
 .analyse-page .shell { width: calc(100% - 2 * var(--mobile-gutter)); }
 .analyse-hero { padding-top: calc(var(--header-clearance, 5rem) + 2.5rem); }
 .analyse-chapter { grid-template-columns: 1fr; gap: .75rem; }
 .chapter-copy { grid-column: 1; }
 .analyse-hero__art { display: none; }
 .analysis-options, .analysis-channel-options { gap: .5rem; }
 .analysis-choice { min-height: 44px; }
 body .site-footer { padding: 2.5rem var(--mobile-gutter) 1.5rem; }
 .site-footer-main { grid-template-columns: 1fr; gap: 1.75rem; }
 .site-footer-column { gap: .1rem; }
 .site-footer-column a { display: inline-flex; align-items: center; min-height: 44px; }
 .site-footer-logo { width: 11rem; }
 .site-footer-bottom { flex-direction: column; gap: .5rem; }
 .dm-mobile-actions { padding: .4rem var(--mobile-gutter) calc(.4rem + env(safe-area-inset-bottom, 0px)); }
 .dm-mobile-actions a { min-height: 44px; display: flex; align-items: center; justify-content: center; }
 body:has(.dm-mobile-actions) { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)); }
 body:not(:has(.dm-mobile-actions)) { padding-bottom: 0; }
 .menu-waterline { height: 4px; }
 .menu-waterline__chamber::before { animation: none; }
}

/* Header rules share the important layer used by the existing navigation. */
@layer adaptive-navigation {
 @media (max-width: 760px) {
  body .cl-header { grid-template-columns: 88px minmax(0, 1fr) auto 44px !important; gap: .5rem !important; min-height: 72px !important; padding: 8px 1rem !important; }
  body .cl-header .cl-brand { width: 88px !important; height: 56px !important; }
  body .cl-header > .dm-header-actions a[href="/premium/kontakt/"] { display: inline-flex !important; grid-column: 3; margin-right: 0; font-size: .8125rem !important; }
  body .cl-header .cl-mobile-menu { grid-column: 4; }
  body .cl-header > .dm-header-actions a[href="/premium/digital-analyse/"] {
   grid-column: 2; justify-self: center; max-width: 100%; min-height: 44px;
   padding: .45rem .65rem !important; gap: .15rem !important; flex-direction: column !important;
   font-size: .8125rem !important; line-height: 1.3 !important;
   background: #e5be6f !important; border-color: #e5be6f !important; box-shadow: none;
  }
  body .cl-header > .dm-header-actions a[href="/premium/digital-analyse/"]::after { display: none; }
  body .cl-header .header-analysis-free { font-size: .6875rem; border: 0; padding: 0; letter-spacing: .04em; }
  body .cl-header .cl-mobile-menu > summary { width: 44px; min-height: 44px; padding: 0 !important; border: 0 !important; }
  body .cl-header .cl-mobile-menu > summary .cl-menu-label { display: none !important; }
  body .cl-header .cl-mobile-menu[open] nav[aria-label] { display: grid !important; grid-template-columns: 1fr; padding: .75rem 1rem !important; gap: .35rem !important; max-height: calc(100svh - 90px); overflow-y: auto !important; }
  body .cl-header .cl-mobile-menu[open] nav[aria-label] a {
   width: 100%; min-height: 56px; justify-content: flex-start; padding: .85rem 1rem !important;
   background: #101820 !important; color: #f5f7fa !important; border-left: 3px solid var(--menu-fill) !important;
   font-size: 1rem !important; font-weight: 600; white-space: normal !important; box-shadow: none;
  }
  body .cl-header .cl-mobile-menu nav a[aria-current=page]::after { left: auto; right: 1rem; bottom: auto; background: var(--menu-fill); }
  body .cl-header .cl-mobile-menu nav a:focus-visible { outline-color: #e5be6f !important; }
 }
 @media (max-width: 370px) {
  body .cl-header { grid-template-columns: 68px minmax(0, 1fr) auto 44px !important; gap: .4rem !important; padding-inline: .75rem !important; }
  body .cl-header .cl-brand { width: 68px !important; }
 }
}
