:root {
  --heft: clamp(36px, 4vw, 60px);
}

html {
  scroll-padding-top: calc(var(--kopf-h) + 24px);
}

.seitenkopf--recht {
  display: block;
  min-height: 0;
}

.seitenkopf--recht .seitenkopf-tafel {
  padding-bottom: calc(var(--heft) + clamp(40px, 4.5vw, 72px));
}

.seitenkopf--recht .seitenkopf-tafel::after {
  content: none;
}

.seitenkopf--recht .seitenkopf-titel {
  font-size: clamp(2.5rem, 1.6rem + 4.4vw, 6rem);
  line-height: 1;
}

.titel-wort {
  display: inline-block;
}

@media (max-width: 899px) {
  .seitenkopf--recht .seitenkopf-tafel {
    padding-bottom: calc(var(--heft) + 32px);
  }
}

.recht {
  position: relative;
  padding-bottom: clamp(72px, 9vw, 144px);
}

.recht:not(:has(.recht-hinweis)) {
  padding-top: clamp(48px, 6vw, 88px);
}

.recht-raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
  .recht-raster {
    grid-template-columns: minmax(200px, 264px) minmax(0, 31rem);
    column-gap: clamp(40px, 5.5vw, 96px);
  }

  .recht-hinweis {
    grid-column: 2;
  }

  .verzeichnis {
    grid-column: 1;
    grid-row: 2;
  }

  .recht-text {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (min-width: 1200px) {
  .recht-raster {
    grid-template-columns: minmax(220px, 280px) minmax(0, 31rem) minmax(0, 1fr);
  }
}

.recht-hinweis {
  --stein: var(--gelb);
  z-index: 1;
  margin-top: calc(-1 * var(--heft));
  margin-bottom: clamp(48px, 6vw, 88px);
  padding-block: 36px 30px;
  background: var(--creme);
  color: var(--tinte);
}

.recht-hinweis p {
  max-width: 52ch;
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.5;
}

.recht-hinweis strong {
  color: var(--gruen-tief);
}

.verzeichnis {
  margin-bottom: clamp(48px, 7vw, 72px);
}

@media (min-width: 900px) {
  .verzeichnis {
    position: sticky;
    top: calc(var(--kopf-h) + 32px);
    align-self: start;
    max-height: calc(100vh - var(--kopf-h) - 56px);
    max-height: calc(100dvh - var(--kopf-h) - 56px);
    margin: 0;
    padding: 4px 6px 8px 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}

.verzeichnis-titel {
  margin: 0 0 14px;
  color: var(--gruen-tief);
  font-family: var(--schrift-titel);
  font-size: 1.625rem;
  line-height: 1.1;
}

.verzeichnis ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.verzeichnis-liste {
  position: relative;
}

.verzeichnis-liste::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 5.5px;
  width: 2px;
  background: var(--grau-hell);
}

.verzeichnis a {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 32px;
  padding: 5px 0;
  color: var(--tinte);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  hyphens: manual;
  -webkit-hyphens: manual;
}

.verzeichnis .wegraute {
  margin-top: 0.22em;
}

.verzeichnis a:hover {
  color: var(--gruen-tief);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.verzeichnis a:hover .wegraute-stein {
  fill: var(--gelb);
}

.verzeichnis a:focus-visible {
  outline-offset: 0;
}

.verzeichnis a[aria-current="true"] {
  color: var(--gruen-tief);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.verzeichnis .ist-hier li:not(.ist-hier):not(.ist-vorbei) > a:not(:hover) .wegraute-stein {
  fill: var(--rahmen);
}

.verzeichnis .ist-hier li.ist-vorbei > a:not(:hover) .wegraute-stein {
  fill: var(--mint);
}

.verzeichnis .ist-hier li:not(.ist-hier) .wegraute-rahmen {
  opacity: 0;
}

.verzeichnis-liste ol {
  margin: 0 0 6px 26px;
}

.verzeichnis-liste ol a {
  min-height: 28px;
  padding: 3px 0;
  font-size: 0.9375rem;
  font-weight: 400;
}

.verzeichnis-liste ol .wegraute {
  width: 10px;
  height: 10px;
  margin-top: 0.36em;
}

.verzeichnis-gruppe-titel {
  display: block;
  text-wrap: balance;
  padding: 10px 0 2px;
  color: var(--tinte-2);
  font-size: 0.875rem;
  line-height: 1.35;
}

.verzeichnis-gruppe-titel--oben {
  padding: 0 0 6px 27px;
}

.verzeichnis-gruppe ol {
  margin-left: 0;
}

@media (max-width: 899px) {
  .verzeichnis-liste > li > ol {
    display: none;
  }
}

.recht-text {
  min-width: 0;
}

.recht-text h2 {
  margin: clamp(64px, 7vw, 96px) 0 20px;
  color: var(--gruen-tief);
  font-size: clamp(1.75rem, 1.45rem + 0.9vw, 2.25rem);
  line-height: 1.12;
}

.recht-text h3 {
  margin: 44px 0 12px;
  color: var(--gruen-tief);
  font-size: clamp(1.3125rem, 1.18rem + 0.45vw, 1.625rem);
  line-height: 1.2;
}

.recht-text h4 {
  margin: 28px 0 8px;
  color: var(--tinte);
  font-size: 1.25rem;
  line-height: 1.25;
}

.recht-text > :first-child {
  margin-top: 0;
}

.recht-text h2 + h3 {
  margin-top: 28px;
}

.recht-text h3 + h4 {
  margin-top: 16px;
}

.recht-text p {
  margin: 0 0 1em;
}

.recht-quelle {
  color: var(--tinte-2);
  font-size: 1rem;
}

.recht-text > .recht-quelle:last-child {
  margin: 56px 0 0;
}

.anbieter-name {
  color: var(--gruen-tief);
  font-family: var(--schrift-titel);
  font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
  line-height: 1.2;
  hyphens: manual;
  -webkit-hyphens: manual;
}

.recht-text .anbieter-name {
  margin-bottom: 14px;
}

.recht-daten {
  display: grid;
  gap: 8px;
  margin: 0 0 1em;
}

.recht-daten div {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 2px 16px;
}

.recht-daten dt {
  color: var(--gruen-tief);
  font-weight: 600;
}

.recht-daten dd {
  margin: 0;
}

.recht-daten a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.recht-tel {
  white-space: nowrap;
}

.agb-nr {
  margin-right: 0.15em;
}

.abs {
  position: relative;
  padding-left: 2.5em;
}

.abs-nr {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--gruen-tief);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 599px) {
  .abs {
    padding-left: 2.1em;
  }
}

.muster--recht {
  display: none;
}

@media (min-width: 1200px) {
  .muster--recht {
    display: block;
    grid-column: 3;
    grid-row: 2;
    position: sticky;
    top: calc(var(--kopf-h) + 40px);
    align-self: start;
    justify-self: end;
    width: min(100%, 300px);
    height: auto;
    overflow: visible;
    fill: none;
    stroke: #ecd9a2;
    stroke-width: 2px;
    stroke-linecap: round;
  }
}

.bewegt .muster--recht.ist-gezeichnet path {
  transition-duration: 1400ms;
  transition-delay: calc(var(--i, 0) * 260ms);
}

.recht + .angebote {
  background: var(--creme-hell);
}

.seitenkopf--fehlt {
  min-height: clamp(440px, 36vw, 560px);
}

@media (min-width: 900px) {
  .seitenkopf--fehlt {
    grid-template-columns: minmax(360px, 6fr) minmax(0, 5fr);
  }
}

@media (min-width: 1500px) {
  .seitenkopf--fehlt {
    grid-template-columns: calc((100cqw - var(--breite)) / 2 + 680px) minmax(0, 1fr);
  }
}

.seitenkopf--fehlt .seitenkopf-titel {
  font-size: clamp(2.75rem, 11.5cqi, 5.25rem);
  line-height: 1;
}

.fehlt-weiter {
  display: grid;
  gap: 28px;
}

.fehlt-weiter .seitenkopf-lead {
  max-width: 26ch;
}

.fehlt-feld {
  display: grid;
  place-items: center;

  padding: clamp(32px, 5vw, 80px) clamp(32px, 5vw, 80px) clamp(32px, 5vw, 80px) clamp(72px, 8vw, 128px);
  background: var(--gruen-dunkel);
}

.pflaster {
  width: min(100%, 560px);
  height: auto;
  overflow: visible;
}

.pf-stein {
  fill: var(--gruen);
}

.pf-stein--tief {
  fill: var(--gruen-tief);
}

.pf-stein--mint {
  fill: var(--mint);
}

.pf-stein--gelb {
  fill: var(--gelb);
}

.pf-stein--creme {
  fill: var(--creme);
}

.pf-luecke {
  fill: none;
  stroke: var(--creme);
  stroke-width: 0.9;
  stroke-dasharray: 2.4 1.8;
  stroke-linecap: round;
  opacity: 0.85;
}

.bewegt .pf-stein {
  animation: setzen var(--normal) var(--kurve) both;
  animation-delay: calc(120ms + var(--n, 0) * 26ms);
}

.bewegt .pf-luecke {
  animation: setzen var(--normal) var(--kurve) 460ms both;
}

@media (max-width: 899px) {
  .seitenkopf--fehlt .seitenkopf-tafel {
    padding-top: 32px;
  }

  .seitenkopf--fehlt .seitenkopf-titel {
    font-size: clamp(2.25rem, 10cqi, 3.25rem);
  }

  .fehlt-feld {
    aspect-ratio: auto;
    padding: 36px var(--rand) 40px;
  }

  .pflaster {
    width: min(100%, 420px);
  }
}

.fehlt-wege {
  padding-block: clamp(44px, 5vw, 72px);
  background: var(--weiss);
}

.fehlt-wege-titel {
  margin-bottom: clamp(24px, 3vw, 36px);
  color: var(--gruen-tief);
  font-size: var(--t-h3);
}

.wege-liste {
  display: flex;
  flex-wrap: wrap;
  gap: 4px clamp(24px, 3vw, 40px);
  max-width: 1100px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wege-liste li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wege-raute {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: -0.1em;
  fill: var(--gruen);
  transition: fill var(--kurz) var(--kurve);
}

.wege-liste li:hover .wege-raute,
.wege-liste li:focus-within .wege-raute {
  fill: var(--gelb);
}

.wege-liste a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-family: var(--schrift-titel);
  font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.875rem);
  line-height: 1.2;
  hyphens: manual;
  -webkit-hyphens: manual;
}

@media (max-width: 899px) {
  .seitenkopf--recht .seitenkopf-titel {
    font-size: clamp(2.25rem, 1.6rem + 3vw, 3rem);
  }
}

.recht-text .agb-pdf {
  margin-top: 40px;
  font-weight: 600;
}
