/* Applies only to the three compact MaGu legal documents. The site chrome is unchanged. */
.magu-recht-tabs,
.magu-recht-document {
  --recht-paper: #fffdf9;
  --recht-strip: #eae5d9;
  --recht-border: #ded7ca;
  --recht-ink: #292722;
  --recht-active: #4b5947;
  --recht-number: #806c58;
  --recht-serif: "Cormorant Garamond", Georgia, serif;
  color: var(--recht-ink);
}
.magu-recht-tabs {
  background: var(--recht-strip);
  border-bottom: 1px solid #d7d0c3;
}
.magu-recht-tabs__inner {
  display: flex;
  max-width: 1060px;
  border-inline-start: 1px solid #d7d0c3;
}
.magu-recht-tabs__inner a {
  flex: 1 1 0;
  min-width: 0;
  min-height: 52px;
  display: grid;
  place-content: center;
  text-align: center;
  border-inline-end: 1px solid #d7d0c3;
  padding: 8px 6px;
  font-size: .875rem;
  line-height: 1.25;
}
.magu-recht-tabs__inner a:hover { background: #f4f0e8; }
.magu-recht-tabs__inner a[aria-current="page"] { background: var(--recht-active); color: var(--recht-paper); }
.magu-recht-tabs__inner a:focus-visible { outline: 2px solid currentColor; outline-offset: -5px; }
.magu-recht-page-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.magu-recht-document {
  width: min(var(--recht-doc-width, var(--recht-doc-preset, 1060px)),
    max(calc(100% - var(--recht-doc-gutter, var(--recht-default-gutter, 17px)) * 2), min(280px, 100%)));
  max-width: none;
  margin-block: var(--recht-doc-start, clamp(16px, 3vw, 35px)) clamp(16px, 3vw, 35px);
  font-size: var(--recht-body-size, var(--recht-font-preset, 1rem));
  line-height: var(--recht-body-leading, 1.65);
}
.magu-recht-width-narrow { --recht-doc-preset: 880px; }
.magu-recht-width-wide { --recht-doc-preset: 1320px; }
.magu-recht-width-full { --recht-doc-preset: 100%; }
.magu-recht-font-large { --recht-font-preset: 1.125rem; }
.magu-recht-font-xlarge { --recht-font-preset: 1.25rem; }
.magu-recht-spacing-compact { --recht-card-padding: clamp(10px, 1.6vw, 20px); --recht-gap-preset: 6px; }
.magu-recht-spacing-generous { --recht-card-padding: clamp(20px, 3.8vw, 44px); --recht-gap-preset: 18px; }
.magu-recht-surface-ivory { --recht-card-surface: #f3ebdf; }
.magu-recht-surface-white { --recht-card-surface: #fff; }
.magu-recht-intro,
.magu-recht-chapter,
.magu-recht-contents {
  background: var(--recht-card-surface, var(--recht-paper));
  border: 1px solid var(--recht-border);
}
.magu-recht-intro,
.magu-recht-chapter {
  margin: 0;
  padding: var(--recht-card-padding, clamp(14px, 2.7vw, 32px));
  overflow-wrap: anywhere;
}
.magu-recht-chapter {
  display: grid;
  grid-template-columns: clamp(29px, 6vw, 67px) minmax(0, 1fr);
  gap: clamp(5px, 1.65vw, 17px);
  scroll-margin-block-start: 110px;
}
.magu-recht-document > * + * { margin-block-start: var(--recht-chapter-gap, var(--recht-gap-preset, 10px)); }
.magu-recht-chapter__copy { max-width: var(--recht-text-width, none); min-width: 0; }
.magu-recht-chapter__number {
  color: var(--recht-number);
  font: 500 clamp(23px, 3.1vw, 36px)/1 var(--recht-serif);
  font-variant-numeric: tabular-nums;
}
.magu-recht-document h2 {
  font: 600 var(--recht-heading-size, clamp(25px, 3.3vw, 36px))/var(--recht-heading-leading, 1.1) var(--recht-serif);
  margin-block: var(--recht-heading-top, 0px) var(--recht-heading-bottom, .4em);
}
.magu-recht-intro h2[id] { scroll-margin-block-start: 110px; }
.magu-recht-company:not(:last-child) { margin-bottom: var(--recht-paragraph-gap, .75em); }
.magu-recht-document h3 { margin-block: var(--recht-heading-top, .75em) var(--recht-heading-bottom, .35em); line-height: var(--recht-heading-leading, 1.15); }
.magu-recht-document p { max-width: var(--recht-text-width, 70ch); margin: 0 0 var(--recht-paragraph-gap, .75em); }
.magu-recht-document p:last-child { margin-bottom: 0; }
.magu-recht-document a { color: var(--recht-active); text-decoration: underline; text-underline-offset: .18em; }
.magu-recht-contents { margin-block-end: 0; overflow-wrap: anywhere; }
.magu-recht-contents summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 8px clamp(14px, 2.7vw, 32px);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.magu-recht-contents summary::-webkit-details-marker { display: none; }
.magu-recht-contents summary::after { content: "+"; color: var(--recht-active); }
.magu-recht-contents[open] summary::after { content: "−"; }
.magu-recht-contents ol { margin: 0; padding: 0 clamp(14px, 2.7vw, 32px) 12px clamp(36px, 5vw, 55px); }
.magu-recht-contents a { display: inline-flex; min-height: 36px; align-items: center; }
@media (max-width: 520px) {
  .magu-recht-tabs__inner { width: 100%; }
  .magu-recht-tabs__inner a { font-size: .8125rem; }
  .magu-recht-document { --recht-default-gutter: 12px; }
  .magu-recht-contents a { min-height: 44px; }
}

/* The compact page title is distinct from the global MaGu navigation. */
.magu-recht-head {
  background: var(--recht-head-bg);
  color: var(--recht-head-color);
  padding-block: var(--recht-head-top) var(--recht-head-bottom);
  border-block-end: 1px solid #d7cbb8;
}
.magu-recht-head__inner { max-width: 1060px; }
.magu-recht-head--left { text-align: start; }
.magu-recht-head--center { text-align: center; }
.magu-recht-head--right { text-align: end; }
.magu-recht-head h1 {
  font: 600 var(--recht-head-size)/1.14 "Cormorant Garamond", Georgia, serif;
  color: inherit;
  margin: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
@media (max-width: 600px) {
  .magu-recht-head {
    padding-block: calc(var(--recht-head-top) * .74) calc(var(--recht-head-bottom) * .74);
  }
  .magu-recht-head h1 { font-size: max(20px, calc(var(--recht-head-size) * .76)); }
}

/* Fotovariante: never overlays the site's masthead; the plain variant stays unchanged. */
.magu-recht-head--photo {
  --recht-photo-direction: to right;
  --recht-photo-dark: rgba(31, 22, 15, var(--recht-photo-shade));
  --recht-photo-mid: rgba(31, 22, 15, calc(var(--recht-photo-shade) * .72));
  --recht-photo-light: rgba(31, 22, 15, calc(var(--recht-photo-shade) * .16));
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  display: grid;
  align-items: center;
  min-height: var(--recht-photo-height);
  background: #544337;
  color: var(--recht-photo-color);
  border-block-end-color: transparent;
}
.magu-recht-head--photo.magu-recht-head--right { --recht-photo-direction: to left; }
.magu-recht-head__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--recht-photo-x) var(--recht-photo-y);
  /* Scale only the photo around the same point as object-position. Its edges
     then stay at or outside the clipping box at any position (0–100%). */
  transform-origin: var(--recht-photo-x) var(--recht-photo-y);
  transform: scale(var(--recht-photo-zoom, 1));
  z-index: -2;
}
.magu-recht-head--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(var(--recht-photo-direction),
    var(--recht-photo-dark), var(--recht-photo-mid) 43%, var(--recht-photo-light));
}
.magu-recht-head--photo.magu-recht-head--center::after {
  background: linear-gradient(90deg, var(--recht-photo-light), var(--recht-photo-dark) 35% 65%, var(--recht-photo-light));
}
.magu-recht-head--photo h1 { font-size: var(--recht-photo-size); text-wrap: balance; }
@media (max-width: 600px) {
  .magu-recht-head--photo { min-height: var(--recht-photo-height-mobile); }
  .magu-recht-head--photo h1 { font-size: var(--recht-photo-size-mobile); }
  .magu-recht-head--photo:not(.magu-recht-head--center)::after {
    background: linear-gradient(var(--recht-photo-direction),
      var(--recht-photo-dark), var(--recht-photo-mid) 67%, var(--recht-photo-light));
  }
}
