/* Lokales Token: gedämpfter Text auf Tinte, 5,1:1 */
:root {
  --leise-auf-dunkel: #8a867c;
}

/* =====================================================================
   Webseiten (/webseiten/): Leitstück „Was in einer Website steckt“
   ===================================================================== */
.w-text {
  max-width: 34em;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
}
.w-text p + p {
  margin-top: 1em;
}

/* Kopf: kurz. Die Fuge sitzt nicht mehr frei unter der H1, sondern läuft (PC, mit Film-JS) als .schichten__fuge
   vom oberen Rand des Leitstücks in den Spalt, aus dem sich die Aufnahme öffnet. */
.w-kopf {
  min-height: 0;
  padding-bottom: clamp(40px, 6vw, 80px);
}
.w-kopf .ergebnis__handlungen .pfeillink {
  margin-top: 0;
}
/* PC: rechts im Kopf Eriks Seite am Handy. Gleiches Raster wie die Bühne darunter (12 Spalten, Rand --innen),
   das Handy steht mittig über .schichten__bild, damit seine Fuge genau in die .schichten__fuge übergeht. */
@media (min-width: 1000px) {
  .w-kopf {
    padding-inline: var(--innen);
    padding-bottom: 0;
    align-items: stretch;
  }
  .w-kopf .seitenkopf__text {
    grid-column: 1 / span 6;
    align-self: center;
    padding-bottom: clamp(40px, 6vw, 80px);
  }
  .w-kopf .w-kopf__stueck {
    grid-column: 6 / -1;
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .w-kopf__handy {
    width: clamp(200px, 16vw, 236px);
    flex: none;
  }
  .w-kopf__handy img {
    border-radius: 31px;
  }
  /* von der Unterkante des Handys bis an den Rand des Kopfs */
  .w-kopf__fuge {
    flex: 1 0 clamp(40px, 6vw, 80px);
    width: 10px;
    background: var(--gelb);
    border-radius: 1px 1px 0 0;
  }
}

/* Leitstück */
.schichten {
  position: relative;
  background: var(--tinte);
  color: var(--hell);
}
.schichten__buehne {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding: clamp(48px, 6vw, 80px) var(--innen) clamp(56px, 6vw, 88px);
}
.schichten h2 {
  font-size: var(--h-gross);
  font-weight: var(--gewicht-gross);
  line-height: 0.98;
  letter-spacing: -0.035em;
  word-spacing: 0.05em;
  text-wrap: balance;
}
.schichten__einleitung {
  margin-top: 14px;
  max-width: 30em;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text-auf-dunkel);
}
.schichten__liste {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--linie-dunkel);
}
.schichten__liste li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--linie-dunkel);
  transition: opacity 0.24s ease;
}
.schichten__nr {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--gelb);
  color: var(--tinte);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}
.schichten__liste h3 {
  font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.schichten__liste p {
  margin-top: 4px;
  max-width: 30em;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text-auf-dunkel);
}
.schichten__bild {
  min-width: 0;
}
/* Fuge vom Abschnittsrand bis in den Spalt der Aufnahme: nur PC mit Film-JS (dort öffnet sich die Aufnahme aus ihr).
   Ohne JS, mit reduzierter Bewegung und am Handy entfällt sie, weil die Aufnahme dann offen steht bzw. unter dem Text liegt. */
.schichten__fuge {
  display: none;
}
@media (min-width: 1000px) {
  html.ist-film .schichten {
    overflow-y: clip;
  }
  html.ist-film .schichten__bild {
    position: relative;
  }
  html.ist-film .schichten__fuge {
    display: block;
    position: absolute;
    left: 50%;
    bottom: 100%;
    z-index: 1;
    width: 10px;
    height: 100vh;
    margin-left: -5px;
    background: var(--gelb);
    border-radius: 1px;
    transform-origin: 50% 100%;
    pointer-events: none;
  }
}
.schichten__pc {
  display: none;
}
.schichten__handy {
  width: min(72vw, 320px);
  margin-inline: auto;
}
.schichten__flaeche {
  position: relative;
  overflow: hidden;
  border-radius: inherit;
}
.schichten__handy .schichten__flaeche {
  border-radius: 23px;
}
.schichten__flaeche img {
  width: 100%;
}
.schichten__quelle {
  margin-top: 14px;
  font-size: 0.9375rem;
  color: var(--grau-auf-dunkel);
  text-align: center;
}
/* Markierte Stelle auf der Aufnahme: gelber Rahmen mit Nummer */
.schicht-feld {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--b);
  height: var(--h);
  border: 3px solid var(--gelb);
  border-radius: 6px;
}
/* Abdunklung: ein ruhendes Overlay je Rahmen (der Schatten selbst wird nie animiert), geschaltet nur per opacity;
   der gelbe Rahmen kommt mit opacity und einem kleinen scale. Nur mit Film-JS. */
html.ist-film .schicht-feld::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 200vmax rgba(22, 20, 15, 0.58);
}
.schicht-feld i {
  position: absolute;
  left: -3px;
  top: -3px;
  transform: translate(-40%, -40%);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gelb);
  color: var(--tinte);
  font-style: normal;
  font-size: 0.875rem;
  font-weight: 700;
}
@media (min-width: 1000px) {
  .schichten__buehne {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(16px, 2.4vw, 40px);
    align-items: center;
  }
  .schichten__text {
    grid-column: 1 / span 5;
  }
  .schichten__bild {
    grid-column: 6 / -1;
  }
  html.ist-film .schichten h2 {
    font-size: clamp(2rem, 1.2rem + 2.2vw, 3.25rem);
  }
  html.ist-film .schichten__liste li {
    padding: 12px 0;
  }
  .schichten__pc {
    display: block;
  }
  .schichten__handy {
    display: none;
  }
}
/* Mit Film-JS: gepinnt, je eine Schicht aktiv, der Rest der Aufnahme tritt zurück */
html.ist-film .schichten__buehne {
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 96px;
  padding-bottom: 32px;
  align-content: center;
}
html.ist-film .schicht-feld {
  opacity: 0;
  transform: scale(0.985);
  transition:
    opacity 0.2s ease,
    transform 0.2s var(--ease-ui);
}
html.ist-film .schicht-feld.ist-aktiv {
  opacity: 1;
  transform: none;
}
html.ist-film .schichten__liste li:not(.ist-aktiv) h3,
html.ist-film .schichten__liste li:not(.ist-aktiv) p {
  color: var(--leise-auf-dunkel);
}
html.ist-film .schichten__liste li:not(.ist-aktiv) .schichten__nr {
  background: transparent;
  color: var(--leise-auf-dunkel);
  box-shadow: inset 0 0 0 2px var(--leise-auf-dunkel);
}
html.ist-film .schichten__liste li.ist-aktiv {
  opacity: 1;
}
@media (max-width: 999px) {
  html.ist-film .schichten__buehne {
    gap: 18px;
  }
  html.ist-film .schichten__einleitung {
    display: none;
  }
  html.ist-film .schichten__liste {
    margin-top: 16px;
    display: grid;
  }
  /* Textwechsel asymmetrisch: die alte Zeile geht schnell, die neue kommt danach von unten */
  html.ist-film .schichten__liste li {
    grid-area: 1 / 1;
    opacity: 0;
    padding: 12px 0;
    border-bottom: 0;
    transform: translateY(6px);
    transition:
      opacity 0.12s ease-out,
      transform 0.12s cubic-bezier(0.23, 1, 0.32, 1);
  }
  html.ist-film .schichten__liste li.ist-aktiv {
    opacity: 1;
    transform: none;
    transition:
      opacity 0.24s ease-out 0.06s,
      transform 0.24s var(--ease-ui) 0.06s;
  }
  html.ist-film .schichten__liste li:not(.ist-aktiv) {
    pointer-events: none;
  }
  /* gepinnte Bühne passt in einen Handy-Bildschirm (812 px): Bild etwas kleiner, Quelle näher */
  html.ist-film .schichten__buehne {
    padding-top: 84px;
    padding-bottom: 20px;
    gap: 14px;
  }
  html.ist-film .schichten__handy {
    width: min(66vw, calc((100svh - 26.5rem) * 0.54));
  }
  html.ist-film .schichten__quelle {
    margin-top: 8px;
  }
}
/* kurze Handys (Safari mit Leisten, SE): Quelle während des Pins weg, Titel kleiner, dafür das Bild größer */
@media (max-width: 999px) and (max-height: 740px) {
  html.ist-film .schichten__buehne {
    padding-top: 76px;
  }
  html.ist-film .schichten h2 {
    font-size: 1.75rem;
  }
  html.ist-film .schichten__quelle {
    display: none;
  }
  html.ist-film .schichten__handy {
    width: min(66vw, calc((100svh - 22rem) * 0.54));
  }
}

/* Erik: gezählte Seiten */
.w-erik {
  background: var(--tinte);
  color: var(--hell);
}
.w-erik__innen {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: clamp(40px, 5vw, 72px) var(--innen) clamp(44px, 8vw, 112px);
  border-top: 1px solid var(--linie-dunkel);
}
.w-erik h2 {
  font-size: var(--h-mittel);
  font-weight: var(--gewicht-gross);
  line-height: 1;
  letter-spacing: -0.035em;
  word-spacing: 0.04em;
  text-wrap: balance;
}
.w-erik .w-text {
  margin-top: 16px;
  color: var(--text-auf-dunkel);
}
.w-erik .pfeillink {
  margin-top: 22px;
}
.w-seiten {
  margin: 0;
  border-top: 1px solid var(--linie-dunkel);
}
.w-seiten > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--linie-dunkel);
}
.w-seiten dt {
  font-size: 1.125rem;
  font-weight: 650;
}
.w-seiten dt span {
  display: block;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--grau-auf-dunkel);
}
.w-seiten dd {
  margin: 0;
  font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--gelb);
}
.w-seiten__quelle {
  margin-top: 12px;
  font-size: 0.9375rem;
  color: var(--grau-auf-dunkel);
}
@media (min-width: 1000px) {
  .w-erik__innen {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(16px, 2.4vw, 40px);
    align-items: start;
  }
  .w-erik__innen > div:first-child {
    grid-column: 1 / span 5;
  }
  .w-seiten__block {
    grid-column: 7 / -1;
  }
}

/* Erik: am Handy zwei mal zwei statt vier Zeilen */
@media (max-width: 999px) {
  .w-seiten {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }
  .w-seiten > div {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 4px;
    padding: 14px 0 12px;
  }
  .w-seiten dd {
    grid-row: 1;
  }
}

/* =====================================================================
   Zweites Leitstück: Bauzeitenplan. Die Fuge ist die Zeitachse, über ihr Ihr Teil, unter ihr mein Teil.
   Handy: senkrecht (Zeit läuft nach unten, Ihr Teil links, mein Teil rechts), PC ab 1100 px: waagerecht.
   Balken sind Grafik (aria-hidden); die Texte stehen immer voll da, auch mitten im Einzeichnen.
   ===================================================================== */
.bauplan {
  position: relative;
}
.bauplan__innen {
  padding: clamp(44px, 7vw, 104px) var(--innen) clamp(40px, 7vw, 104px);
}
.bauplan h2 {
  font-size: var(--h-mittel);
  font-weight: var(--gewicht-gross);
  line-height: 1;
  letter-spacing: -0.035em;
  word-spacing: 0.04em;
  text-wrap: balance;
}
.bauplan__kopf .w-text {
  margin-top: 16px;
  text-wrap: pretty;
}

.plan {
  --achse: 10px;
  --spalt: 28px;
  position: relative;
  margin-top: 28px;
}
@media (min-width: 1280px) {
  .plan {
    margin-top: 40px;
  }
}
.plan__name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.plan__zelle p {
  font-size: 0.9375rem;
  line-height: 1.45;
  text-wrap: pretty;
  hyphens: auto;
  overflow-wrap: break-word;
}
.plan__zelle .plan__notiz,
.plan__danach .plan__notiz {
  margin-top: 6px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--grau-auf-hell);
  text-wrap: pretty;
  hyphens: auto;
}
.plan__danach a {
  color: var(--tinte);
  font-weight: 600;
}
.plan__nebensatz {
  color: var(--grau-auf-hell);
}
.plan__balken {
  display: block;
  position: relative;
  background: var(--tinte);
  border-radius: 1px;
}
.plan__zelle--ihr .plan__balken {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--tinte);
}
/* Bau: 3 Wochen fest, bis 10 Wochen je nach Umfang (gestrichelt) */
.plan__schritt--bau .plan__zelle--mein .plan__balken {
  background: transparent;
}
.plan__schritt--bau .plan__zelle--mein .plan__balken::before {
  content: "";
  position: absolute;
  background: var(--tinte);
}
.plan__rest {
  position: absolute;
  border: 2px dashed var(--tinte);
}
.plan__woche {
  display: none;
}

/* ---------- Handy, Tablet, schmaler PC: senkrecht ---------- */
@media (max-width: 1279px) {
  .plan {
    max-width: 760px;
  }
  .plan__bahnen {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--spalt) minmax(0, 1fr);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--linie-hell);
    font-size: 0.9375rem;
    font-weight: 650;
    color: var(--grau-auf-hell);
  }
  .plan__bahn--ihr {
    text-align: right;
  }
  .plan__bahn--mein {
    grid-column: 3;
  }
  .plan__schritte {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
  }
  /* die Fuge als senkrechte Zeitachse */
  .plan__schritte::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50% - var(--achse) / 2);
    width: var(--achse);
    background: var(--gelb);
    box-shadow:
      inset 1px 0 0 rgba(22, 20, 15, 0.35),
      inset -1px 0 0 rgba(22, 20, 15, 0.35);
  }
  .plan__schritt {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--spalt) minmax(0, 1fr);
    grid-template-areas: "name name name" "ihr achse mein";
    row-gap: 4px;
    padding: 8px 0 10px;
  }
  .plan__name {
    grid-area: name;
    justify-self: center;
    position: relative;
    z-index: 1;
    padding: 2px 10px;
    background: var(--grund);
  }
  .plan__zelle {
    position: relative;
    min-width: 0;
  }
  .plan__zelle--ihr {
    grid-area: ihr;
    padding-right: 12px;
    text-align: right;
  }
  .plan__zelle--mein {
    grid-area: mein;
    padding-left: 12px;
  }
  .plan__achse {
    grid-area: achse;
    position: relative;
  }
  .plan__balken {
    position: absolute;
    top: 2px;
    bottom: 2px;
    width: 6px;
    transform-origin: 50% 0;
  }
  .plan__zelle--ihr .plan__balken {
    right: 0;
  }
  .plan__zelle--mein .plan__balken {
    left: 0;
  }
  .plan__schritt--bau .plan__zelle--mein .plan__balken::before {
    left: 0;
    right: 0;
    top: 0;
    height: 30%;
  }
  .plan__rest {
    left: 0;
    right: 0;
    top: 30%;
    bottom: 0;
    border-top: 0;
  }
  /* Wochenteilung auf der Achse: 10 gleiche Felder, Striche bei 0 bis 10 */
  .plan__skala {
    position: absolute;
    left: 3px;
    right: 3px;
    top: 2px;
    bottom: 2px;
  }
  .plan__skala i {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--w) * 10%);
    height: 1px;
    margin-top: -0.5px;
    background: var(--tinte);
  }
  /* Wochen links an der Achse, im leeren Feld „Ihr Teil“ des Baus */
  .plan__woche {
    display: block;
    position: absolute;
    right: calc(100% + 4px);
    font-size: 0.9375rem;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
    transform: translateY(-50%);
  }
  .plan__woche--3 {
    top: calc(2px + 30% * 0.97);
  }
  .plan__woche--10 {
    top: calc(100% - 2px);
  }
  .plan__danach {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--spalt) minmax(0, 1fr);
    grid-template-areas: "achse achse achse" "name name name" "notiz notiz notiz";
    row-gap: 2px;
  }
  .plan__danach .plan__name {
    grid-area: name;
  }
  .plan__danach .plan__achse {
    grid-area: achse;
    justify-self: center;
    width: var(--achse);
    height: 22px;
    border-left: 2px dashed var(--tinte);
    border-right: 2px dashed var(--tinte);
  }
  .plan__danach .plan__notiz {
    grid-area: notiz;
    justify-self: center;
    max-width: 26em;
    text-align: center;
  }
}

/* ---------- PC: waagerecht, Bahnen als Zeilen über und unter der Fuge ---------- */
@media (min-width: 1280px) {
  .plan {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr) 9.5rem;
    grid-template-rows: auto auto 46px auto;
  }
  .plan__bahnen {
    grid-column: 1;
    grid-row: 1 / 5;
    display: grid;
    grid-template-rows: subgrid;
    font-size: 1rem;
    font-weight: 650;
    color: var(--grau-auf-hell);
  }
  .plan__bahn {
    align-self: end;
    padding-bottom: 4px;
  }
  .plan__bahn--ihr {
    grid-row: 2;
  }
  .plan__bahn--mein {
    grid-row: 4;
    align-self: start;
    padding: 4px 0 0;
  }
  .plan::before {
    content: "";
    grid-column: 1 / 3;
    grid-row: 3;
    align-self: start;
    margin-top: 8px;
    height: var(--achse);
    background: var(--gelb);
    box-shadow:
      inset 0 1px 0 rgba(22, 20, 15, 0.35),
      inset 0 -1px 0 rgba(22, 20, 15, 0.35);
  }
  .plan__schritte {
    grid-column: 2;
    grid-row: 1 / 5;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-rows: subgrid;
    grid-template-columns:
      minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1.25fr)
      minmax(0, 1.95fr) minmax(0, 1.05fr) minmax(0, 1fr);
  }
  .plan__schritt {
    grid-row: 1 / 5;
    display: grid;
    grid-template-rows: subgrid;
    padding: 0 12px;
    border-left: 1px solid var(--linie-hell);
    min-width: 0;
  }
  .plan__schritt:last-child {
    border-right: 1px solid var(--linie-hell);
  }
  .plan__name {
    padding-bottom: 14px;
    font-size: 1.125rem;
  }
  /* 1440: Zellen 16 px, Notizen 15 px; Trennung nur noch bei langen Wörtern */
  .plan__zelle p {
    font-size: 1rem;
    line-height: 1.45;
    hyphenate-limit-chars: 10 4 4;
  }
  .plan__zelle .plan__notiz,
  .plan__danach .plan__notiz {
    hyphenate-limit-chars: 10 4 4;
  }
  .plan__zelle {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .plan__zelle--ihr {
    justify-content: flex-end;
    padding-bottom: 12px;
  }
  .plan__zelle--ihr .plan__balken {
    order: 2;
    margin-top: 12px;
  }
  .plan__zelle--mein {
    padding-top: 0;
  }
  .plan__zelle--mein .plan__balken {
    margin-bottom: 12px;
  }
  .plan__balken {
    height: 10px;
    transform-origin: 0 50%;
  }
  .plan__schritt--bau .plan__zelle--mein .plan__balken::before {
    left: 0;
    top: 0;
    bottom: 0;
    width: 30%;
  }
  .plan__rest {
    left: 30%;
    right: 0;
    top: 0;
    bottom: 0;
    border-left: 0;
  }
  .plan__achse {
    position: relative;
  }
  .plan__skala {
    position: absolute;
    left: 0;
    right: 0;
    top: 4px;
    height: 18px;
  }
  .plan__skala i {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--w) * 10%);
    width: 1px;
    margin-left: -0.5px;
    background: var(--tinte);
  }
  .plan__woche {
    display: block;
    position: absolute;
    top: 26px;
    font-size: 0.9375rem;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
  }
  .plan__woche--3 {
    left: 30%;
    transform: translateX(-50%);
  }
  .plan__woche--10 {
    right: 0;
  }
  .plan__danach {
    grid-column: 3;
    grid-row: 1 / 5;
    display: grid;
    grid-template-rows: subgrid;
    padding-left: 12px;
  }
  .plan__danach .plan__name {
    grid-row: 1;
    color: var(--grau-auf-hell);
  }
  .plan__danach .plan__achse {
    grid-row: 3;
    align-self: start;
    margin: 8px 0 0 -12px;
    height: var(--achse);
    border-top: 2px dashed var(--tinte);
    border-bottom: 2px dashed var(--tinte);
  }
  .plan__danach .plan__notiz {
    grid-row: 4;
    margin-top: 0;
  }
}

.plan__extra {
  margin-top: 36px;
  padding: 18px 20px 20px;
  border: 2px dashed rgba(22, 20, 15, 0.55);
}
.plan__extra h3 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.plan__extra ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
}
.plan__extra li {
  position: relative;
  padding-left: 16px;
  font-size: 1rem;
  line-height: 1.45;
}
.plan__extra li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  background: var(--tinte);
}
/* Handy: Zusätze als fließende Aufzählung statt Zeilenliste */
@media (max-width: 699px) {
  .plan__extra {
    padding: 14px 16px 16px;
  }
  .plan__extra ul {
    display: block;
  }
  .plan__extra li {
    display: inline;
    padding: 0;
    font-size: 0.9375rem;
  }
  .plan__extra li::before {
    content: none;
  }
  .plan__extra li:not(:last-child)::after {
    content: ", ";
  }
}
.plan__recht {
  margin-top: 16px;
  max-width: 46em;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--grau-auf-hell);
}
/* Kopf des Plans gestapelt (kein „H2 links, Text rechts“); die Überschrift läuft über die Breite des Plans */
@media (min-width: 1280px) {
  .bauplan h2 {
    max-width: 14em;
  }
  .bauplan__kopf .w-text {
    max-width: 34em;
  }
}

/* Kaufen oder leasen: zwei Fugenbalken (Kaufen: ein Stück am Anfang, danach gestrichelt nur, was Sie buchen;
   Leasen: gleichmäßige Stücke, die nach rechts auslaufen). Ohne Zahl, ohne Maßstab, nicht abzählbar.
   Darunter, was beim Kauf Ihnen gehört, groß. */
.w-eigentum {
  background: var(--tinte);
  color: var(--hell);
}
.w-eigentum__innen {
  display: grid;
  gap: 28px;
  padding: clamp(40px, 7vw, 104px) var(--innen) clamp(44px, 7vw, 104px);
}
.w-eigentum h2 {
  font-size: var(--h-mittel);
  font-weight: var(--gewicht-gross);
  line-height: 1;
  letter-spacing: -0.035em;
  word-spacing: 0.04em;
}
.w-wege {
  margin: 0;
  border-top: 1px solid var(--linie-dunkel);
}
.w-weg {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 22px 0 26px;
  border-bottom: 1px solid var(--linie-dunkel);
}
.w-weg dt {
  font-size: clamp(1.875rem, 1.3rem + 2vw, 3rem);
  font-weight: var(--gewicht-gross);
  line-height: 1;
  letter-spacing: -0.03em;
}
.w-weg__takt {
  color: var(--gelb);
}
.w-weg dd {
  margin: 0;
  min-width: 0;
}
.w-weg__text {
  display: block;
  max-width: 34em;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text-auf-dunkel);
  text-wrap: pretty;
}
.w-fuge {
  position: relative;
  display: block;
  height: 22px;
  margin: 16px 0 14px;
}
.w-fuge__linie {
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  height: 1px;
  background: rgba(241, 241, 238, 0.35);
}
.w-fuge__stueck,
.w-fuge__rest,
.w-fuge__raten {
  position: absolute;
  top: 4px;
  height: 14px;
}
.w-fuge__stueck {
  left: 0;
  width: 30%;
  background: var(--gelb);
  border-radius: 1px;
  transform-origin: 0 50%;
}
.w-fuge__rest {
  left: 30%;
  right: 0;
  border: 2px dashed rgba(241, 241, 238, 0.5);
  border-left: 0;
  border-right: 0;
}
.w-fuge__raten {
  left: 0;
  right: 0;
  -webkit-mask-image: linear-gradient(90deg, black 40%, transparent 96%);
  mask-image: linear-gradient(90deg, black 40%, transparent 96%);
}
/* Ratenstücke: SVG-Linie mit Strichmuster 21 px / 5 px (kein repeating-linear-gradient) */
.w-fuge__raten svg {
  display: block;
  width: 100%;
  height: 14px;
}
.w-fuge__raten line {
  stroke: var(--gelb);
  stroke-width: 14;
  stroke-dasharray: 21 5;
}
.w-besitz > span {
  display: block;
}
.w-besitz__vor {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  color: var(--text-auf-dunkel);
}
.w-besitz__dinge {
  margin-top: 6px;
  max-width: 16em;
  font-size: clamp(1.75rem, 1.05rem + 2.6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.w-besitz__nach {
  margin-top: 14px;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text-auf-dunkel);
}
@media (min-width: 1000px) {
  .w-eigentum__innen {
    gap: 36px;
  }
  .w-weg {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: clamp(16px, 2.4vw, 40px);
    align-items: start;
    padding: 28px 0 30px;
  }
  .w-fuge {
    margin-top: 10px;
  }
  .w-besitz {
    max-width: 52rem;
  }
}
.w-schluss {
  border-top: 1px solid var(--linie-dunkel);
}

/* Schluss */
.w-schluss {
  background: var(--tinte);
  color: var(--hell);
}
.w-schluss__innen {
  padding: clamp(56px, 8vw, 120px) var(--innen);
}
/* Das nächste Blatt: Browserfenster wie bei Erik, Adresszeile „Ihre Website“, Inhalt auf Hell */
.w-schluss__blatt {
  max-width: 880px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--grund);
  outline: 1px solid rgba(22, 20, 15, 0.1);
  outline-offset: -1px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 50px 90px -40px rgba(0, 0, 0, 0.6),
    0 12px 24px -12px rgba(0, 0, 0, 0.3);
}
.w-schluss__leiste {
  height: 40px;
  background: #e3e4e0;
  border-bottom: 1px solid var(--linie-hell);
}
.w-schluss__leiste .rahmen__adresse {
  font-size: 0.875rem;
  color: var(--grau-auf-hell);
}
.w-schluss__inhalt {
  display: grid;
  gap: 24px;
  padding: clamp(28px, 5vw, 72px) clamp(20px, 5vw, 72px) clamp(32px, 5vw, 72px);
}
.w-schluss h2 {
  font-size: var(--h-gross);
  font-weight: var(--gewicht-gross);
  line-height: 0.98;
  letter-spacing: -0.035em;
  word-spacing: 0.05em;
  text-wrap: balance;
  max-width: 11em;
}
.w-schluss__text {
  display: grid;
  justify-items: start;
  gap: 16px;
  max-width: 34em;
}
.w-schluss__lead {
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
}
.w-schluss__leise {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--grau-auf-hell);
}
.w-schluss .knopf {
  margin-top: 8px;
}
.w-schluss__direkt {
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--grau-auf-hell);
}
.w-schluss__direkt a {
  font-weight: 650;
  color: var(--tinte);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
  padding-block: 12px;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.w-schluss__direkt a:active {
  opacity: 0.72;
}

/* Fugen-Öffnung (JS /js/fuge-oeffnen.js): Kanten-Stil gemeinsam in /css/unterseiten.css */
