/* Current verified B2B presentation polish, 2026-10-31.
 * Method adapted from unslop by Damir Sokolovsky / @heydamir,
 * https://github.com/heydamir/unslop · CC BY 4.0.
 * All existing assets, scripts, forms and behavior are retained.
 */
/* Space separates sections; controls remain grouped with their content. */
body #preise.price-section { padding-block: 96px 64px; }
body #fragen { padding-block: 64px 96px; }
body #preise .price-copy > p { margin-block: 24px 0; line-height: 1.5; }
body #preise .price-copy > p + p { margin-top: 16px; color: #555; }
body #preise .price-card { padding: 32px; }
body #preise .price-inputs { gap: 16px; }
body #preise .price-inputs label { line-height: 1.4; }
body #preise .price-presets { gap: 8px; }
body #preise .price-presets button { min-width: 44px; min-height: 44px; }
body #preise .price-result { margin-top: 24px; }
body #preise #price-unit { font-variant-numeric: tabular-nums; }
body #preise #price-note { line-height: 1.5; }

/* A continuous FAQ list, with the same touch target for every question. */
body #faq-list { border: 0; }
body #faq-list details {
  padding-inline: 0;
  margin: 0 0 8px;
  border: 0;
  background: transparent;
}
body #faq-list summary {
  gap: 24px;
  min-height: 72px;
  padding-block: 20px;
  font-size: 18px;
  line-height: 1.4;
}
body #faq-list details p {
  max-width: 58ch;
  margin: 0;
  padding: 0 32px 24px 0;
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}
body #faq-list summary:focus-visible {
  outline: 2px solid var(--mg-color-purple);
  outline-offset: 4px;
}

/* Original CI orange and CI black provide contrast without changing the palette.
 * Original hover, focus and disabled rules remain in effect. */
body #hero-comparison :is(.comparison-poster, .comparison-cover, .comparison-closeup) .comparison-cta:not(:disabled),
body #hero-comparison .hero-product-design:not(:disabled),
body .editorial-process .process-cta:not(:disabled),
body #anfrage .request-launch-actions .button:not(:disabled),
body #preise #price-design:not(:disabled),
body.b2b-experience .request-dialog :is(.mp-primary, .button):not(.secondary):not(:disabled) {
  background: var(--mg-color-orange);
  border-color: var(--mg-color-orange);
  color: var(--mg-color-black);
}
/* Product-menu photographs fill their frame at every viewport size. */
body #menu-panel-products .menu-product-grid img {
  object-fit: cover;
  object-position: center;
  padding: 0;
  background: transparent;
}

/* More legible choices, with fitted project photographs untouched. */
html #design .sample-caption { padding-block: 8px; gap: 16px; }
html body #design .sample-caption .underlink {
  min-height: 44px;
  font-size: 14px;
  line-height: 1.4;
  text-underline-offset: 4px;
}
html #design .sample-track {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(112px, 1fr);
  gap: 8px;
  padding: 8px 4px 12px;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--mg-color-purple) transparent;
}
html #design .sample-choice {
  gap: 8px;
  min-height: 104px;
  padding: 8px 4px;
  scroll-snap-align: start;
}
html #design .sample-choice-image {
  position: relative;
  width: 64px;
  height: 64px;
  border-width: 3px;
  padding: 3px;
  overflow: visible;
}
html #design .sample-choice[aria-pressed=true] { background: var(--mg-color-white); }
html body #design .sample-choice[aria-pressed=true] .sample-choice-image { border-color: var(--mg-color-orange); }
html #design .sample-choice[aria-pressed=true] .sample-choice-image::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -2px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--mg-color-white);
  border-radius: 50%;
  background: var(--mg-color-purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}
html body #design .sample-choice[aria-pressed=true] > span:last-child { color: var(--mg-color-purple); font-weight: 700; }
html #design .sample-choice:focus-visible { outline-offset: -2px; }
html #design .sample-choice > span:last-child { font-size: 12px; line-height: 16px; }
html body.hero-comparison-page #design.sample-showcase { max-height: none; }
body.hero-comparison-page #anfrage.merged-product-request { max-height: none; overflow: visible; }
body #anfrage .request-product-card .request-product-name { line-height: 1.4; }
body #anfrage .request-product-name small { font-size: 14px; line-height: 20px; }

/* Consistent focus treatment without moving or replacing controls. */
body #preise :is(button, input, select):focus-visible,
body #anfrage .request-launch-actions .button:focus-visible {
  outline: 2px solid var(--mg-color-purple);
  outline-offset: 4px;
}
body #anfrage .request-launch-actions .button:focus-visible { outline-color: #fff; }

@media (max-width: 959px) {
  body #preise.price-section { padding-block: 56px 32px; }
  body #fragen { padding-block: 32px 64px; }
  body #preise .price-copy > p { margin-top: 20px; }
  body #preise .price-card { padding: 24px; }
  body #preise #price-design { padding-inline: 16px; min-height: 48px; font-size: 16px; line-height: 20px; }
  body #faq-list summary { font-size: 16px; min-height: 68px; gap: 16px; }
}
@media (max-width: 760px) {
  html #design > .wrap { width: calc(100% - 40px); }
  html #design .sample-heading h2 { font-size: 28px; line-height: 1.1; }
  html #design .sample-caption { align-items: center; gap: 12px; }
  html #design .sample-caption h3 { font-size: 20px; line-height: 1.2; }
  html #design .sample-track { grid-template-columns: none; grid-auto-columns: 104px; gap: 8px; }
  html #design .sample-choice-image { width: 60px; height: 60px; }
  html #design .sample-choice > span:last-child { max-width: 14ch; font-size: 12px; line-height: 16px; }
  body #anfrage .request-product-name small { font-size: 12px; line-height: 16px; }
  body #anfrage .request-product-group { gap: 20px 16px; }
  body #anfrage .request-launch-actions > span { font-size: 12px; line-height: 18px; }
}
@media (max-width: 600px) {
  body.b2b-experience .request-dialog-head { padding: 12px 20px; }
  body.b2b-experience .request-dialog-head h2 { font-size: 24px; line-height: 28px; }
  body.b2b-experience .request-dialog .guided-progress { padding-inline: 20px; }
  body.b2b-experience .request-dialog .guided-progress button { min-height: 48px; }
  body.b2b-experience .request-dialog-body { padding-top: 16px; }
  body.b2b-experience .request-dialog .guided-editor-hint {
    padding: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 20px;
  }
  body.b2b-experience .request-dialog .editor-price { padding: 12px; margin-bottom: 16px; }
  body.b2b-experience .request-dialog .mp-editor-inline > header { gap: 12px; padding-bottom: 12px; }
  body.b2b-experience .request-dialog .mp-editor-inline > header h2 { font-size: 24px; line-height: 28px; }
  body.b2b-experience .request-dialog .mp-editor-inline .mp-editor-layout { padding-top: 16px; }
}
@media (max-height: 540px) and (min-width: 761px) {
  html #design .sample-choice { min-height: 64px; gap: 4px; }
  html #design .sample-choice > span:last-child { font-size: 11px; line-height: 16px; }
}
