/* Phase 2: homepage-only composition. Shared pages and interaction scripts stay intact. */
body.dm-home-refined {
  --home-black: #08090b;
  --home-paper: #fafaf7;
  --home-ink: #151719;
  --home-muted: #52606b;
  --home-dim: #bdc5cc;
  --home-rule: #d8dddf;
  --home-width: var(--dm-width);
  --home-gutter: var(--dm-gutter);
  background: var(--home-black);
  color: #fafaf7;
}
body.dm-home-refined main > section {
  height: auto;
  min-height: 0;
  padding: var(--dm-space) var(--home-gutter);
}
body.dm-home-refined :is(.hp-shell, .dm-hero-layout, .dm-contact-layout) {
  width: 100%; max-width: var(--home-width); margin-inline: auto; min-width: 0;
}
body.dm-home-refined main :is(h1, h2, h3) { font-family: Manrope, 'Segoe UI', sans-serif; }
body.dm-home-refined main h2 {
  font-size: var(--dm-heading) !important;
  line-height: 1.17 !important; letter-spacing: -.04em; font-weight: 600;
}
body.dm-home-refined main h3 { line-height: 1.35 !important; }
body.dm-home-refined main :is(p, li) { overflow-wrap: break-word; }
body.dm-home-refined .section-heading { max-width: 52rem; margin-bottom: var(--dm-heading-gap); }
body.dm-home-refined main .eyebrow { font-size: .8125rem; letter-spacing: .07em; }
body.dm-home-refined :is(.dm-opening-art, .menu-waterline) { display: none; }
body.dm-home-refined :is(a, button, summary, input, textarea, select):focus-visible {
  outline: 3px solid #e5be6f !important; outline-offset: 5px !important;
}
body.dm-home-refined :is(.dm-primary-action, .e01-link, .premium-care__footer > a, .homepage-contact button[type=submit]) {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 52px; padding: .9rem 1.25rem; border: 1px solid #e5be6f;
  border-radius: 3px; background: #e5be6f; color: #241a08;
  box-shadow: none; font-size: .9375rem; font-weight: 700; text-decoration: none;
  transition: background-color 160ms ease;
}
body.dm-home-refined :is(.dm-primary-action, .e01-link, .premium-care__footer > a, .homepage-contact button[type=submit]):hover {
  background: #f0d28d; color: #241a08;
}

/* Dark editorial opening; existing four shortcut links and their behavior remain. */
body.dm-home-refined main > .dm-opening {
  display: block; min-height: 0; overflow: visible;
  padding-top: calc(var(--header-clearance, 6rem) + clamp(3rem, 5vw, 5rem));
  padding-bottom: clamp(4rem, 7vw, 7rem); background: var(--home-black);
}
body.dm-home-refined .dm-hero-layout {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center; gap: clamp(2.5rem, 5vw, 5rem);
}
body.dm-home-refined .dm-opening__content { width: 100%; max-width: none; position: relative; }
body.dm-home-refined .ap5-positioning { color: var(--home-dim); font-size: .8125rem; margin-bottom: 1.75rem; }
body.dm-home-refined .dm-opening #hero-title {
  font-size: var(--dm-title) !important;
  line-height: 1.1 !important; letter-spacing: -.045em; max-width: 20ch;
  margin: 0 0 1.75rem; font-weight: 600;
}
body.dm-home-refined .dm-opening #hero-title > span { color: #fafaf7; }
body.dm-home-refined .dm-opening .dm-opening__lead { max-width: 48ch; color: var(--home-dim); font-size: 1.0625rem; line-height: 1.7; }
body.dm-home-refined .dm-opening__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.75rem; margin-top: 2rem; }
body.dm-home-refined .dm-opening__actions .text-link { color: #fafaf7; }
body.dm-home-refined .dm-hero-image { margin: 0; min-width: 0; align-self: stretch; display: flex; }
body.dm-home-refined .dm-hero-image img { display: block; width: 100%; height: 100%; min-height: 32rem; object-fit: cover; object-position: 64% center; }
body.dm-home-refined .hero-service-symbols { width: 100%; max-width: none; margin-top: 2.5rem; gap: 1.25rem; }
body.dm-home-refined .hero-service-symbols svg { width: 26px; height: 26px; }
body.dm-home-refined .hero-service-symbols li:nth-child(3) svg { color: #46b9fd; }
body.dm-home-refined .hero-service-symbols .hero-service-link > span:not(.hero-service-title) { font-size: .875rem; }

/* One light chapter: identity and three restrained service worlds. */
body.dm-home-refined :is(.dm-identity, #leistungen, #pakete, #ablauf, #vorteile, #faq) {
  background: var(--home-paper); color: var(--home-ink); color-scheme: light;
}
body.dm-home-refined :is(.dm-identity, #leistungen, #pakete, #ablauf, #vorteile, #faq) .section-heading > :is(.eyebrow, p:last-child) { color: var(--home-muted); }
body.dm-home-refined .dm-identity .section-heading {
  display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  column-gap: 6rem; max-width: none; margin: 0;
}
body.dm-home-refined .dm-identity .eyebrow { grid-column: 1; grid-row: 1 / 3; }
body.dm-home-refined .dm-identity h2 { grid-column: 2; margin-bottom: 1.5rem; }
body.dm-home-refined .dm-identity .section-heading > p:last-child { grid-column: 2; max-width: 55ch; font-size: 1.0625rem; line-height: 1.75; }
body.dm-home-refined main > #leistungen { padding-top: 0; }
body.dm-home-refined .hp-process-panels__heading {
  max-width: var(--home-width); margin-inline: auto; display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1rem 4rem;
  padding: 4rem 0 3rem; border-top: 1px solid var(--home-rule);
}
body.dm-home-refined .hp-process-panels__heading > .eyebrow { grid-column: 1 / -1; }
body.dm-home-refined .hp-process-panels__heading > h2 { margin: 0; }
body.dm-home-refined .hp-process-panels__heading > p:last-child { max-width: 40ch; align-self: end; }
body.dm-home-refined main > #leistungen { padding-inline: 0; padding-bottom: 0; }
/* Match the centered content shell; outrank the shared heading margin reset. */
body.dm-home-refined main > #leistungen > .hp-process-panels__heading {
  width: calc(100% - 2 * var(--home-gutter)); margin-inline: auto;
}
body.dm-home-refined .hp-offer-stage { max-width: none; width: 100%; margin-inline: 0; }
body.dm-home-refined .hp-process-panels__grid {
  display: flex; align-items: stretch; gap: 0; min-height: 34rem;
  overflow: visible; scroll-snap-type: none;
}
body.dm-home-refined .dm-service-world-group {
  display: flex; flex: 1 1 0; flex-direction: column; min-width: 0;
  padding: clamp(1.5rem, 3.4vw, 3.5rem);
  border: 0; background: var(--service-fill); color: var(--service-ink);
}
body.dm-home-refined .dm-service-websites { --service-fill: #46b9fd; --service-ink: #071722; }
body.dm-home-refined .dm-service-film { --service-fill: #78bb93; --service-ink: #0b2115; }
body.dm-home-refined .dm-service-hosting { --service-fill: #e5be6f; --service-ink: #241a08; }
body.dm-home-refined .hp-process-panel {
  display: flex; position: relative; flex-direction: column; flex: 1 1 auto;
  min-width: 0; min-height: 0; padding: 0; background: var(--service-fill);
  color: var(--service-ink); border: 0; transform: none; transition: none;
  overflow: visible; scroll-snap-align: none;
}
body.dm-home-refined .hp-process-panel__step { display: none; }
body.dm-home-refined .hp-process-panel h3 { min-block-size: 2.8em; max-width: none; margin: 0 0 .75rem; color: inherit; font-size: 1.125rem !important; }
body.dm-home-refined .hp-process-panel .hp-process-panel__promise { font-size: clamp(1.75rem, 2.6vw, 2.6rem); color: inherit; line-height: 1.15; min-block-size: 3.45em; max-width: 17ch; margin: 0 0 1.5rem; }
body.dm-home-refined .hp-process-panel__preview { display: flex; flex: 1; flex-direction: column; max-height: none; opacity: 1; transform: none; margin: 0; overflow: visible; }
body.dm-home-refined .hp-process-panel .hp-process-panel__summary { font-size: 1rem; color: inherit; line-height: 1.65; }
body.dm-home-refined .hp-process-panel .hp-process-panel__bullets { display: block; padding-left: 1rem; margin: 1rem 0; color: inherit; }
body.dm-home-refined .hp-process-panel .hp-process-panel__bullets li { font-size: .875rem; margin-block: .5rem; }
body.dm-home-refined .hp-process-panel .hp-process-panel__cue { color: inherit; opacity: 1; max-height: none; margin-top: auto; border-color: currentColor; }
body.dm-home-refined .hp-process-panel__select { border-radius: 0; }
body.dm-home-refined .hp-process-panel__select:hover { box-shadow: inset 0 -3px var(--service-ink); }
body.dm-home-refined .hp-process-panel:is(.is-preview, .is-selected) .hp-process-panel__promise { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
body.dm-home-refined .hp-service-information__slide { background: var(--service-fill); color: var(--service-ink); }
body.dm-home-refined .hp-service-information__inner { max-width: var(--home-width); padding: clamp(2rem, 5vw, 5rem) var(--home-gutter); }
body.dm-home-refined .hp-service-information__slide h3 { color: inherit; font-size: clamp(1.75rem, 3vw, 2.75rem) !important; }
body.dm-home-refined .hp-service-information__slide :is(p, li) { color: inherit; }
body.dm-home-refined .hp-service-information__slide :is(h4, a, button, .eyebrow) { color: inherit; }
body.dm-home-refined .hp-service-information__slide ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
body.dm-home-refined .hp-service-information__full { background: #e5be6f; color: #241a08 !important; border-radius: 3px; }
body.dm-home-refined .hp-service-information__connection { border-color: currentColor; }

/* Preserve the original 3D carousel stylesheet, including perspective and depth. */
body.dm-home-refined main > #referenzen {
  padding: var(--dm-space) var(--home-gutter);
  background: #08090b; color: #f5f7fa;
}
body.dm-home-refined #referenzen > .hp-shell { max-width: 74rem; }
body.dm-home-refined #referenzen .section-heading {
  max-width: 47rem; margin-inline: auto; margin-bottom: 2.5rem;
}
body.dm-home-refined #referenzen h2 {
  font-size: var(--dm-heading) !important; line-height: 1.25 !important; font-weight: 650;
}
body.dm-home-refined #referenzen h3 { line-height: 1.4 !important; }

/* Comparison and project steps are one calm light chapter. Generated content stays verbatim. */
body.dm-home-refined #pakete .e01-packages { padding: 0; background: transparent; color: var(--home-ink); }
body.dm-home-refined #pakete :is(.e01-eyebrow, .e01-package__label) { color: var(--home-muted); }
body.dm-home-refined #pakete .e01-package { background: transparent; border: 0; border-top: 1px solid var(--home-rule); border-radius: 0; padding: 1.75rem 0 0; box-shadow: none; }
body.dm-home-refined #pakete .e01-package :is(p, li) { color: var(--home-muted); }
body.dm-home-refined #pakete .e01-package h3 { color: var(--home-ink); font-size: 1.75rem !important; }
body.dm-home-refined #pakete .e01-package-grid { gap: 2.5rem; }
body.dm-home-refined #ablauf { padding-top: var(--dm-space); }
body.dm-home-refined #ablauf > .hp-shell { border-top: 1px solid var(--home-rule); padding-top: 4rem; }
body.dm-home-refined #ablauf .hp-process { gap: 1.75rem; background: transparent; }
body.dm-home-refined #ablauf .hp-process li { background: transparent; padding: 1.25rem 0 0; border-color: var(--home-rule); border-radius: 0; }
body.dm-home-refined #ablauf .hp-process :is(p, span) { color: var(--home-muted); }

/* Original red problem / green solution styles remain in homepage-restored-sections.css. */
body.dm-home-refined :is(#problem-loesung, #digital-motion-system) { background: var(--home-black); color: #fafaf7; }
body.dm-home-refined #digital-motion-system { padding-top: 1rem; }
body.dm-home-refined .system-case { background: #111417; color: #fafaf7; border: 1px solid #ffffff30; }
body.dm-home-refined .system-cases.is-enhanced .system-case { min-height: 0; }
body.dm-home-refined .system-case :is(h3, h4, strong, .system-case__process-title) { color: #fafaf7; }
body.dm-home-refined .system-case :is(.system-case__label, .system-case__context, .system-case__goal, .system-case__flow li > span) { color: var(--home-dim); }
body.dm-home-refined .system-case__flow li,
body.dm-home-refined .system-case__goal { border-color: #ffffff30; }
body.dm-home-refined .system-case__service { background: transparent; color: #fafaf7; border: 1px solid #ffffff40; border-left: 3px solid #46b9fd; }
body.dm-home-refined .system-case__service--film { border-left-color: #78bb93; }
body.dm-home-refined .system-case__service--care { border-left-color: #e5be6f; }

/* Complete care conditions and all seven questions stay in the light decision chapter. */
body.dm-home-refined #vorteile .premium-care { color: var(--home-ink); }
body.dm-home-refined #vorteile .premium-care__intro { background: transparent; border-top: 2px solid #e5be6f; border-bottom-color: var(--home-rule); }
body.dm-home-refined #vorteile .premium-care__promise { padding-left: 0; border-right-color: var(--home-rule); }
body.dm-home-refined #vorteile .premium-care__promise > strong { color: var(--home-ink); font-size: 2.5rem; line-height: 1.2; }
body.dm-home-refined #vorteile :is(.premium-care__label, .premium-care__promise > p, .premium-care__contact > p, .premium-care__contact a span, .premium-care__footer p) { color: var(--home-muted); }
body.dm-home-refined #vorteile :is(.premium-care__contact h3, .premium-care__contact a) { color: var(--home-ink); }
body.dm-home-refined #vorteile :is(.premium-care__contact a, .premium-care__details) { border-color: var(--home-rule); }
body.dm-home-refined #vorteile .premium-care__details summary { color: var(--home-ink); }
body.dm-home-refined #vorteile .e01-choice-grid article { background: transparent; border: 0; border-top: 1px solid var(--home-rule); padding: 1.5rem 0; }
body.dm-home-refined #vorteile .e01-choice-grid article p { color: var(--home-muted); }
body.dm-home-refined #faq { padding-top: var(--dm-stack-gap); }
body.dm-home-refined #faq .faq-project-layout { display: block; max-width: 60rem; }
body.dm-home-refined #faq .faq-grid { display: block; }
body.dm-home-refined #faq .faq-card { background: transparent; color: var(--home-ink); border: 0; border-top: 1px solid var(--home-rule); border-radius: 0; }
body.dm-home-refined #faq .faq-card summary { padding-block: 1.25rem; }
body.dm-home-refined #faq .faq-card summary :is(h3, span) { color: var(--home-ink); }
body.dm-home-refined #faq .faq-card summary i::before,
body.dm-home-refined #faq .faq-card summary i::after { background: var(--home-ink); }
body.dm-home-refined #faq .faq-answer { padding-bottom: 1.25rem; }
body.dm-home-refined #faq .faq-answer p { color: var(--home-muted); max-width: 68ch; }

/* Existing form bytes and processing are untouched; only its surrounding composition changes. */
body.dm-home-refined .dm-home-contact { background: var(--home-black); color: #fafaf7; }
body.dm-home-refined .dm-contact-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(3rem, 7vw, 7rem); align-items: start; }
body.dm-home-refined .dm-contact-intro h2 { font-size: var(--dm-heading) !important; max-width: 12ch; }
body.dm-home-refined .dm-contact-intro p { color: var(--home-dim); font-size: 1.0625rem; }
body.dm-home-refined .homepage-contact { min-width: 0; padding: 0; background: transparent; color: #fafaf7; }
body.dm-home-refined .home-contact-field { color: #fafaf7; font-size: .9375rem; }
body.dm-home-refined .home-contact-field :is(input, textarea),
body.dm-home-refined .homepage-contact .e01-field select {
  color-scheme: dark; min-height: 52px; background: #14171b; color: #fafaf7;
  border: 1px solid #737c85; border-radius: 3px; font-size: 1rem;
}
body.dm-home-refined .home-contact-field textarea { min-height: 10rem; }
body.dm-home-refined .homepage-contact :is(.home-contact-note, .home-contact-consent, .ap5-classification > summary > span) { color: var(--home-dim); font-size: .8125rem; }
body.dm-home-refined .homepage-contact :is(.ap5-classification, .e01-field) { border-color: #ffffff40; color: #fafaf7; }
body.dm-home-refined .home-contact-consent input { accent-color: #e5be6f; }
body.dm-home-refined .home-contact-error,
body.dm-home-refined .homepage-contact .e01-field-error { color: #ffbdc5; }
body.dm-home-refined .homepage-contact :is([data-contact-status], [data-contact-success] p) { color: var(--home-dim); }
body.dm-home-refined .homepage-contact [data-contact-fallback] { color: #e5be6f; }
body.dm-home-refined .site-footer { background: var(--home-black); border-top: 1px solid #ffffff25; }
body.dm-home-refined .site-footer :is(.shell, .site-footer-main, .site-footer-bottom) { max-width: var(--home-width); margin-inline: auto; }
body.dm-home-refined .footer-transition-layer { display: none; }

@media (max-width: 1050px) {
  body.dm-home-refined .dm-hero-layout { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 2rem; }
  body.dm-home-refined .dm-hero-image img { min-height: 28rem; }
  body.dm-home-refined .dm-service-world-group { padding: 1.5rem; }
  body.dm-home-refined .dm-identity .section-heading { column-gap: 3rem; }
  body.dm-home-refined #pakete .e01-package { display: flex; }
  body.dm-home-refined #pakete .e01-package ul { margin-block: 1rem 1.5rem; }
}
@media (max-width: 760px) {
  body.dm-home-refined { --home-gutter: var(--dm-gutter); }
  body.dm-home-refined main > section { padding-block: var(--dm-space); }
  body.dm-home-refined main h2 { font-size: var(--dm-heading) !important; }
  body.dm-home-refined .dm-hero-layout,
  body.dm-home-refined .dm-identity .section-heading,
  body.dm-home-refined .dm-contact-layout,
  body.dm-home-refined .hp-process-panels__heading { grid-template-columns: minmax(0, 1fr); }
  body.dm-home-refined .dm-opening #hero-title { font-size: var(--dm-title) !important; max-width: 20ch; }
  body.dm-home-refined .dm-opening .dm-opening__lead { font-size: 1rem; }
  body.dm-home-refined .dm-hero-image { margin-top: 1rem; }
  body.dm-home-refined .dm-hero-image img { min-height: 0; height: auto; aspect-ratio: 4 / 3; object-position: 64% center; }
  body.dm-home-refined .hero-service-symbols { min-height: 0; margin-top: 2rem; }
  body.dm-home-refined .hero-service-symbols .hero-service-title { font-size: .875rem; }
  body.dm-home-refined .dm-identity :is(.eyebrow, h2, .section-heading > p:last-child) { grid-column: 1; grid-row: auto; }
  body.dm-home-refined .dm-identity .section-heading { gap: 1rem; }
  body.dm-home-refined .dm-identity h2 { margin-bottom: .25rem; }
  body.dm-home-refined .hp-process-panels__heading { padding-block: 3rem 2rem; }
  body.dm-home-refined .hp-process-panels__grid { overflow-x: auto; scroll-snap-type: x mandatory; }
  body.dm-home-refined .dm-service-world-group { flex: 0 0 88%; scroll-snap-align: start; }
  body.dm-home-refined .hp-service-information__slide ol { grid-template-columns: minmax(0, 1fr); }
  body.dm-home-refined .hp-service-information__full { margin-right: 0; }
  body.dm-home-refined main > #referenzen { padding: var(--dm-space) var(--home-gutter); }
  body.dm-home-refined #referenzen .section-heading { margin-bottom: 1.75rem; }
  body.dm-home-refined #vorteile .premium-care__intro { grid-template-columns: minmax(0, 1fr); }
  body.dm-home-refined #vorteile .premium-care__promise { border-right: 0; padding: 1.5rem 0; }
  body.dm-home-refined #vorteile .premium-care__contact { padding: 1.5rem 0; }
  body.dm-home-refined #vorteile .premium-care__contact nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.dm-home-refined .premium-care__footer { align-items: flex-start; flex-direction: column; }
  body.dm-home-refined .dm-contact-layout { gap: 2rem; }
  body.dm-home-refined .dm-contact-intro h2 { font-size: var(--dm-heading) !important; }
}
@media (max-width: 540px) {
  body.dm-home-refined .dm-opening__actions { align-items: stretch; flex-direction: column; }
  body.dm-home-refined .dm-primary-action { width: 100%; }
  body.dm-home-refined .hero-service-symbols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.dm-home-refined .system-cases__tabs { gap: .75rem; }
  body.dm-home-refined .system-cases__tab { padding-block: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  body.dm-home-refined .dm-primary-action { transition: none; }
}
