#inhalt {
  --editorial-surface: #fcfbf7;
  --editorial-matte: #f0eee7;
  --editorial-line: #dedbd1;
  --editorial-text: #343638;
  --editorial-radius: .72rem;
  --editorial-gutter: clamp(1rem, 3.5vw, 2.9rem);
}

.page-hero.editorial-hero {
  display: block;
  min-height: 0;
  padding-block: clamp(2rem, 4.6vw, 4.4rem);
  border-block-end: 1px solid var(--edge-dark);
  background: linear-gradient(120deg, #17191c 20%, #22262b);
}

.page-hero.editorial-hero.has-image::after { content: none; }

.editorial-hero-grid {
  display: grid;
  align-items: center;
  gap: clamp(1.5rem, 4.8vw, 4.7rem);
  grid-template-columns: minmax(0, 1fr);
}

.editorial-hero.has-image .editorial-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}

.editorial-hero-copy { min-width: 0; }

.editorial-hero-copy h1 {
  max-width: 24ch;
  font-size: clamp(2.9rem, 5.55vw, 5.55rem);
  line-height: 1;
  text-transform: none;
  text-wrap: balance;
  hyphens: auto;
}

.editorial-hero-copy .crumbs {
  margin-block-end: .8rem;
  font-size: .95rem;
}

.editorial-hero-copy .lead {
  max-width: 49ch;
  margin-block-start: clamp(.75rem, 1.8vw, 1.25rem);
  color: #e2e2df;
  line-height: 1.55;
}

.editorial-hero-copy .actions { margin-block-start: 1.45rem; }

.editorial-hero-media {
  position: relative;
  min-width: 0;
  aspect-ratio: 8 / 5;
  border: 1px solid #42464c;
  border-radius: var(--editorial-radius);
  background: var(--editorial-matte);
  overflow: hidden;
}

.editorial-hero-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: clamp(.55rem, 1.65vw, 1.45rem);
  object-fit: contain;
}

.editorial-hero-media > img.visual-photo {
  padding: 0;
  object-fit: cover;
  object-position: var(--photo-position, center);
}

.content-shell.editorial-content {
  gap: clamp(1.15rem, 3vw, 2.75rem);
  padding-block: clamp(2rem, 4.6vw, 4.6rem);
}

.editorial-content > .editorial-surface {
  width: 100%;
  padding: var(--editorial-gutter);
  border: 1px solid var(--editorial-line);
  border-radius: var(--editorial-radius);
  background: var(--editorial-surface);
}

#inhalt .content-shell.editorial-content > article.prose.editorial-surface {
  max-width: none;
  margin-inline: 0;
}

.editorial-content > .side-panel {
  gap: .75rem;
  padding: clamp(1rem, 2vw, 1.55rem);
  border-color: var(--editorial-line);
  border-radius: var(--editorial-radius);
  background: var(--editorial-surface);
}

.editorial-content > .side-panel h2 { text-transform: none; }

#inhalt .editorial-content article.prose :where(p, ul, ol) {
  max-width: none;
  color: var(--editorial-text);
  font-size: clamp(1rem, 1.22vw, 1.09rem);
  line-height: 1.64;
}

#inhalt .prose :where(h2, h3, h4) {
  color: var(--ink);
  text-transform: none;
  text-wrap: pretty;
}

#inhalt .prose h2 {
  margin-block: clamp(1.85rem, 4.1vw, 3rem) .7rem;
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  line-height: 1.08;
}

#inhalt .prose h3 {
  margin-block: 1.45rem .55rem;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  line-height: 1.15;
}

#inhalt .prose :where(h2, h3):first-child { margin-block-start: 0; }
#inhalt .prose :where(ul, ol) > li::marker { color: #a54b25; }
#inhalt .prose > :last-child { margin-block-end: 0; }

#inhalt .prose figure {
  width: fit-content;
  max-width: 100%;
  margin-block: clamp(1.15rem, 3vw, 2rem);
}

#inhalt .prose :where(.video-figure, .editorial-gallery figure, .media-grid figure) { width: 100%; }

#inhalt img[src*="-freigestellt.webp"]:not([data-pagecontrol-articles] *) {
  background: transparent;
  object-fit: contain;
}

#inhalt .prose :is(figcaption, .editorial-caption) {
  margin-block-start: .5rem;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.42;
}

#inhalt .family-content .table-scroll {
  max-inline-size: 100%;
  overflow-x: auto;
  border: 1px solid var(--editorial-line);
  border-radius: .4rem;
}

#inhalt .family-content .table-scroll > table {
  inline-size: 100%;
  min-inline-size: 0;
  border-collapse: collapse;
  color: var(--ink);
  background: var(--editorial-surface);
  font-size: .9375rem;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1.45;
}

#inhalt .family-content .table-scroll > table:has(thead tr > :nth-child(4)) {
  min-inline-size: 34rem;
}

#inhalt .family-content .table-scroll > table :is(th, td) {
  min-inline-size: 0;
  padding: .64rem .72rem;
  border: 0;
  border-block-end: 1px solid var(--editorial-line);
  text-align: start;
  vertical-align: top;
  overflow-wrap: anywhere;
}

#inhalt .family-content .table-scroll thead th {
  color: #fff;
  background: #263032;
  font-weight: 700;
}

#inhalt .family-content .table-scroll tbody tr:nth-child(even) {
  background: #f3f1ea;
}

#inhalt .family-content .table-scroll tbody td:first-child:not([colspan]) {
  background: #efede5;
  border-inline-end: 1px solid var(--editorial-line);
  font-weight: 700;
}

#inhalt .family-content .table-scroll > table > tbody:last-child > tr:last-child > :is(th, td) {
  border-block-end: 0;
}

#inhalt .family-content .table-scroll > table:has(thead tr > :nth-child(6)) :is(thead th, tbody td):not(:first-child),
#inhalt .family-content .table-scroll > table:has(thead tr > :nth-child(4)):not(:has(thead tr > :nth-child(6))) :is(thead th, tbody td):nth-child(n + 3) {
  text-align: end;
}

.editorial-section + .editorial-section {
  margin-block-start: clamp(1.5rem, 3.6vw, 2.75rem);
  padding-block-start: clamp(1.5rem, 3.6vw, 2.75rem);
}

.editorial-grid,
.editorial-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: clamp(.8rem, 1.7vw, 1.4rem);
  margin-block: 1rem 1.4rem;
}

.editorial-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.editorial-grid > .editorial-card:not(.card-link) {
  min-width: 0;
  padding: clamp(.95rem, 2vw, 1.45rem);
  border: 1px solid var(--editorial-line);
  border-radius: calc(var(--editorial-radius) - .12rem);
  background: var(--editorial-matte);
}

.editorial-grid > .editorial-card > :first-child { margin-block-start: 0; }
.editorial-grid > .editorial-card > :last-child { margin-block-end: 0; }

#inhalt .prose .editorial-card h3 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

.editorial-content > .editorial-surface:has(> [aria-labelledby="uvv-pruefumfang"]) {
  padding: 0;
  border: 0;
  background: transparent;
}

[aria-labelledby="uvv-pruefumfang"] > .editorial-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 5vw, 5rem);
  row-gap: 0;
  margin: clamp(1rem, 2.5vw, 1.75rem) 0 0;
}

[aria-labelledby="uvv-pruefumfang"] > .editorial-grid > .editorial-card {
  padding: clamp(1.25rem, 2.6vw, 2rem) 0;
  border: 0;
  border-block-start: 1px solid var(--editorial-line);
  border-radius: 0;
  background: transparent;
}

#inhalt [aria-labelledby="uvv-pruefumfang"] .editorial-card p { max-width: 46ch; }

#inhalt .uvv-contact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 5vw, 5rem);
}

#inhalt .prose .uvv-contact-mark {
  width: clamp(7.5rem, 9.45vw, 9rem);
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.editorial-link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem 1.15rem;
  margin-block-start: 1.15rem;
}

.editorial-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.15rem, 3.5vw, 2.8rem);
}

.editorial-split:has(> :nth-child(2)) {
  grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr);
}

#inhalt .prose .editorial-split > figure,
#inhalt .prose .editorial-gallery > figure,
#inhalt .prose .media-grid > figure { margin: 0; }

.editorial-gallery > * { min-width: 0; }

#inhalt .editorial-gallery :where(img):not(.video-shell img) {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

#inhalt .editorial-gallery img.visual-photo { object-fit: cover; }

.product-applications {
  margin-block: 0 clamp(1.35rem, 3.1vw, 2.25rem);
}

#inhalt .product-applications h2 {
  margin-block: 0 .8rem;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.1;
  text-transform: none;
}

#inhalt .product-applications ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

#inhalt .product-applications li {
  display: grid;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: .8rem .85rem;
  border: 1px solid var(--editorial-line);
  border-inline-start: 3px solid var(--accent-strong);
  border-radius: .32rem;
  background: var(--editorial-matte);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .editorial-hero.has-image .editorial-hero-grid,
  .editorial-split:has(> :nth-child(2)),
  #inhalt .uvv-contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .editorial-hero-media { width: min(100%, 41rem); }
}

@media (max-width: 640px) {
  .page-hero.editorial-hero { padding-block: 1.65rem; }
  .editorial-hero-grid { gap: 1.2rem; }

  .editorial-hero-copy h1 {
    font-size: clamp(2.45rem, 8.2vw, 3.35rem);
  }

  .editorial-hero-copy .lead { margin-block-start: .7rem; }
  .editorial-hero-copy .actions { margin-block-start: 1rem; }
  .content-shell.editorial-content { padding-block: 1.4rem 2.1rem; }
  [aria-labelledby="uvv-pruefumfang"] > .editorial-grid { grid-template-columns: minmax(0, 1fr); }
  #inhalt .product-applications ul { grid-template-columns: minmax(0, 1fr); }
}
