/* The outer page grid shares the Startseite's 5% gutters. Reading text keeps its own line measure. */
html body.editorial-layout.premium-subpage {
  --page-gutter: 5%;
  --page-frame: calc(100% - 2 * var(--page-gutter));
  --design-content-width: var(--page-frame);
  --editorial-content-width: var(--page-frame);
}

html body.editorial-layout.premium-subpage > .design-header,
html body.editorial-layout.premium-subpage :is(.design-mobile-panel, .contextual-links, .site-closing-red, .editorial-site-footer) {
  padding-inline: var(--page-gutter) !important;
}

html body.editorial-layout.premium-subpage :is(.contextual-links-inner, .editorial-site-footer > div, .site-closing-red > div) {
  width: 100% !important;
  max-width: none !important;
}

html body.editorial-layout.premium-subpage main.wissen-page,
html body.editorial-layout.premium-subpage :is(.premium-subhero, .design-services-overview, .design-error-main, .app-page > section, #page-main > section.editorial-bounded, .subpage-marquee-stage) {
  box-sizing: border-box;
  width: var(--page-frame) !important;
  max-width: none !important;
  margin-inline: auto !important;
}

html body.editorial-layout.premium-subpage #page-main > section:not(.site-primary-heading),
html body.editorial-layout.premium-subpage #page-main > div:not(.app-page):not(.kia-wrap) > section:not(.site-primary-heading) {
  max-width: none !important;
}

html body.editorial-layout.premium-subpage .app-shell {
  width: 100% !important;
  max-width: none !important;
}

html body.editorial-layout.premium-subpage main.wissen-page > :is(.wissen-hero, .google-update-detail-hero, .wissen-main) {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
}

html body.editorial-layout.premium-subpage main.wissen-page > .wissen-main {
  padding-inline: 0 !important;
}

html body.editorial-layout.premium-subpage .wissen-main > :is(.wissen-layout, .wissen-doc-grid) {
  width: 100% !important;
  max-width: none !important;
}

html body.editorial-layout.premium-subpage .wissen-prose :is(p, li, blockquote) {
  max-inline-size: 88ch !important;
}

html body.editorial-layout.premium-subpage :is(.wissen-prose, .app-page, .webseo-references) :is(pre, .table-scroll) {
  max-inline-size: 100%;
  overflow-x: auto;
}

html body.editorial-layout.premium-subpage .premium-subhero > div,
html body.editorial-layout.premium-subpage .kia-wrap {
  max-width: none !important;
}

html body.editorial-layout.premium-subpage .kia-wrap {
  width: var(--page-frame) !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}

html body.editorial-layout.premium-subpage main.webseo-references {
  width: var(--page-frame) !important;
  max-width: none !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}

html body.editorial-layout.premium-subpage main.webseo-references > :is(div,section) {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
}

html body.editorial-layout.premium-subpage main :is(h1,h2,h3) {
  overflow-wrap: break-word;
  text-wrap: pretty;
}

html body.editorial-layout.premium-subpage :is(.app-hero-copy, .premium-subhero) h1 {
  font-size: clamp(1.7rem, 3.9vw, 3.75rem) !important;
  line-height: 1.12 !important;
  max-width: none !important;
}

html body.editorial-layout.premium-subpage .app-conversion :is(.app-form,.editorial-contact-form,.inquiry-form),
html body.editorial-layout.premium-subpage form :is(input:not([type=checkbox],[type=radio]),select,textarea) {
  min-width: 0;
  max-width: 100%;
}

html body.editorial-layout.premium-subpage .app-conversion form .optional-grid {
  min-width: 0;
}

@media (min-width: 64rem) and (max-width: 75rem) {
  html body.editorial-layout.premium-subpage > .design-header { gap: 12px; }
  html body.editorial-layout.premium-subpage .design-header .design-logo img { width: clamp(150px, 16vw, 176px); }
  html body.editorial-layout.premium-subpage .design-header .webseo-service-desktop { gap: 10px; }
  html body.editorial-layout.premium-subpage .webseo-service-desktop .design-button { gap: 12px; padding-inline: 12px; }
}

html body.editorial-layout.premium-subpage .qc-page {
  --qc-report-width: 100%;
  width: var(--page-frame) !important;
  max-width: none !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}

html body.editorial-layout.premium-subpage .qc-page > :is(.qc-hero, .qc-explainer, .qc-evidence, .qc-report-nav) {
  max-width: none !important;
}

html body:has(main > #effects) > .header { padding-inline: 5%; }
html body:has(main > #effects) > main { width: 90%; }


@media (max-width: 380px) {
  html body.editorial-layout.premium-subpage .wissen-prose :is(h1, h2, h3) .prose-word {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}
