:root[data-farbwelt='wechsel'] {
  --blau: #db2777; --blau-tief: #b31d61; --blau-zart: #fce8f1; --blau-linie: #f4bcd6; --blau-auf-nacht: #f98fc0;
}
.feld :is(input, select, textarea):focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--blau) 18%, transparent); }

.offen {
  background: #d90000; color: #fff;
  padding: .04em .32em; border-radius: .2em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.offen--schild {
  position: absolute; top: .625rem; right: .625rem; z-index: 5;
  font-size: max(13px, calc(var(--schrift-label) * var(--faktor))); font-weight: 700;
  padding: .35em .7em; border-radius: var(--radius);
}
.offen--legende {
  position: fixed; right: 16px; bottom: 156px; z-index: 9998; margin: 0;
  font: 600 13px/1 system-ui, sans-serif; white-space: nowrap;
  padding: 9px 14px; border-radius: 999px;
  box-shadow: 0 8px 24px rgb(16 24 40 / .18);
}
@media (max-width: 40rem) {
  .offen--legende { bottom: 176px; }
}

.heldfilm { background: var(--nacht); }
.heldfilm__buehne { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.heldfilm__standbild { position: absolute; inset: 0; display: block; }
.heldfilm__standbild img, .heldfilm__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block;
}
.heldfilm__video::-webkit-media-controls-start-playback-button { display: none; -webkit-appearance: none; }
.heldfilm__knopf { display: none; }
.vollbild.heldfilm { justify-content: flex-start; min-height: calc(100svh - 4.5rem * var(--faktor)); }
@media (max-height: 46rem) {
  .vollbild.heldfilm { padding-top: 0; }
}
@media (min-width: 40.0625rem) and (max-aspect-ratio: 4/3) {
  .vollbild.heldfilm { min-height: 0; overflow: visible; background: var(--grund); }
  .heldfilm__buehne { position: relative; inset: auto; width: 100%; aspect-ratio: 16 / 9; background: var(--nacht); }
  .held__leiste { --hell-luft: clamp(1.5rem, 4vh, 3rem); }
}
@media (max-width: 40rem) {
  .vollbild.heldfilm { min-height: 0; overflow: visible; background: var(--grund); }
  .heldfilm__buehne { position: relative; inset: auto; height: calc(100svh - 4.5rem); background: var(--nacht); }
  .heldfilm__standbild img, .heldfilm__video { object-position: 50% 0; }
  .heldfilm__knopf {
    display: inline-flex; position: absolute; left: min(50%, calc(100% - 12rem)); bottom: 1.5rem; z-index: 3;
    transform: translateX(-50%); white-space: nowrap;
  }
}

.held__leiste { position: relative; z-index: 2; margin-top: auto; padding-top: clamp(1.5rem, 3vh, 2.5rem); }
@media (min-width: 40.0625rem) {
  .held__leiste .schrittfeld .streifen__punkt { padding-right: calc(2.5rem * var(--faktor)); }
}
@media (max-width: 40rem) {
  .held__leiste { --hell-luft: clamp(1.5rem, 4vh, 3rem); }
  .held__leiste .schrittfeld { flex-direction: column; align-items: stretch; width: 100%; }
  .held__leiste .schrittfeld .streifen__punkt + .streifen__punkt { border-left: 0; border-top: 1px solid rgb(27 41 70 / .18); }
  .held__leiste .vollbild__leiste .preispille { width: 100%; justify-content: center; white-space: normal; text-align: left; }
}

.schritt__bild {
  position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius-karte); background: var(--linie);
}
.schritt__bild img, .schritt__film { display: block; width: 100%; height: 100%; object-fit: cover; }

.schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.schritt {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.schritt:nth-child(even) .schritt__bild { order: 1; }
.schritt h3,
.nutzen h3 {
  font-family: 'Archivo', 'Archivo Ersatz', sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 800;
  letter-spacing: -.01em; line-height: 1.12; text-transform: uppercase;
  color: var(--titel); margin-bottom: .625rem;
}
.schritt p { color: var(--leise); font-size: var(--schrift-lead); margin: 0; max-width: 46ch; }
@media (max-width: 40rem) {
  .schritt { grid-template-columns: 1fr; gap: 1rem; }
  .schritt:nth-child(even) .schritt__bild { order: 0; }
}

.nutzen {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem); margin-top: clamp(2rem, 4vw, 3rem);
}
.nutzen p { color: var(--leise); font-size: var(--schrift-text); margin: 0; }
@media (max-width: 64rem) {
  .nutzen { grid-template-columns: 1fr; }
}

.rechnung {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem); align-items: start;
  margin-top: clamp(2rem, 4vw, 3rem); padding-top: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--linie);
}
.rechnung__zahl {
  display: block; font-family: 'Archivo', 'Archivo Ersatz', sans-serif;
  font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1;
  color: var(--titel); margin-bottom: .625rem;
}
.rechnung__posten--viel .rechnung__zahl { color: var(--blau); }
.rechnung__posten p { color: var(--leise); font-size: var(--schrift-text); margin: 0; max-width: 34ch; }
.rechnung__statt {
  align-self: center; font-size: var(--schrift-label); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--leise);
}
.rechnung-fazit { color: var(--tinte); font-size: var(--schrift-lead); font-weight: 650; margin-top: clamp(1.5rem, 3vw, 2.25rem); max-width: 60ch; }
@media (max-width: 40rem) {
  .rechnung { grid-template-columns: 1fr; }
  .rechnung__statt { align-self: start; }
}

.plan__tipp {
  display: flex; align-items: center; gap: .625rem;
  width: fit-content; margin-inline: auto; padding: .625rem 1.125rem;
  background: var(--blau-zart); border: 1px solid var(--blau-linie); border-radius: 999px;
  color: var(--blau-tief); font-size: var(--schrift-text); font-weight: 700;
}
.plan__tipp::before {
  content: ''; flex: none; width: .75rem; height: .75rem; border-radius: 50%;
  background: var(--blau); animation: plan-blinken 1.2s ease-in-out infinite;
}
@media (hover: hover) { .plan__tipp-finger { display: none; } }
@media (hover: none) { .plan__tipp-maus { display: none; } }

.plan { position: relative; max-width: calc((100svh / var(--faktor) - 7.5rem) * 16 / 9); margin-inline: auto; }
.plan__feld {
  position: relative;
  background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius-karte);
}
.plan__zeichnung { display: block; width: 100%; height: auto; border-radius: inherit; }

.plan__wand { fill: var(--titel); }
.plan__papier { fill: var(--karte); }
.plan__raster { fill: none; stroke: var(--linie); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.plan__duenn { fill: none; stroke: var(--titel); stroke-width: 1.25px; vector-effect: non-scaling-stroke; }
.plan__duenn--leise { stroke-opacity: .45; }
.plan__blatt { stroke: var(--titel); stroke-width: 2.5px; vector-effect: non-scaling-stroke; }

.plan__name,
.plan__flaeche,
.plan__mass,
.plan__zusatz { font-family: 'Inter', sans-serif; }
.plan__name {
  font-size: 22px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  text-anchor: middle; fill: var(--titel);
}
.plan__flaeche { font-size: 20px; text-anchor: middle; fill: var(--leise); }
.plan__mass { font-size: 20px; text-anchor: middle; fill: var(--leise); }
.plan__nord { font-weight: 700; fill: var(--titel); }
.plan__titel {
  font-family: 'Archivo', 'Archivo Ersatz', sans-serif;
  font-size: 34px; font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; fill: var(--titel);
}
.plan__zusatz { font-size: 22px; fill: var(--leise); }
.plan__name--frei { paint-order: stroke; stroke: var(--karte); stroke-width: 8px; }

.plan__punkt {
  position: absolute; z-index: 1;
  display: grid; place-items: center;
  width: 3.5rem; height: 3.5rem; padding: 0; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer;
  transform: translate(-50%, -50%);
}
.plan__punkt--1 { left: 29.74%; top: 63%; }
.plan__punkt--2 { left: 38.7%; top: 25%; }
.plan__punkt--3 { left: 56.82%; top: 63%; }
.plan__punkt--4 { left: 76.77%; top: 63%; }
.plan__punkt::before {
  content: ''; position: absolute; inset: .625rem; border-radius: 50%;
  border: 2px solid var(--blau); pointer-events: none;
  animation: plan-welle 1.2s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .plan__punkt::before { transform: scale(1.4); opacity: .6; }
  .heldfilm__video { display: none; }
}
.plan__kern {
  position: relative; display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--blau); color: #fff;
  font-family: 'Archivo', 'Archivo Ersatz', sans-serif; font-size: var(--schrift-text); font-weight: 800; line-height: 1;
  box-shadow: 0 0 0 3px #fff, 0 6px 16px rgb(16 24 40 / .28);
  animation: plan-blinken 1.2s ease-in-out infinite;
}
.plan__punkt--2::before, .plan__punkt--2 .plan__kern { animation-delay: .3s; }
.plan__punkt--3::before, .plan__punkt--3 .plan__kern { animation-delay: .6s; }
.plan__punkt--4::before, .plan__punkt--4 .plan__kern { animation-delay: .9s; }
.plan__punkt--gesehen::before, .plan__punkt--gesehen .plan__kern { animation: none; }
.plan__punkt--aktiv::before { opacity: 0; }
.plan__punkt--aktiv .plan__kern { background: var(--blau-tief); transform: scale(1.15); }
.plan__punkt:focus-visible { outline: 3px solid var(--blau-tief); outline-offset: 0; }
@keyframes plan-blinken {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
@keyframes plan-welle {
  0% { transform: scale(1); opacity: .85; }
  100% { transform: scale(2); opacity: 0; }
}

.plan__raum {
  position: absolute; z-index: 2; top: 5%; left: 42%; width: 46%; margin: 0;
  aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--linie); border-radius: var(--radius-karte);
  box-shadow: 0 20px 50px rgb(16 24 40 / .35);
  opacity: 0; visibility: hidden; transform: scale(.9); pointer-events: none;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.22, .61, .36, 1), visibility 180ms;
}
.plan__raum--1 { transform-origin: 0 100%; }
.plan__raum--2 { transform-origin: 0 40%; }
.plan__raum--3 { transform-origin: 32% 100%; }
.plan__raum--4 { transform-origin: 75% 100%; }
.plan__raum--offen { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.plan__raum img { display: block; width: 100%; height: 100%; object-fit: cover; }
.plan__raum figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 2.5rem 1rem .75rem;
  background: linear-gradient(to top, rgb(6 12 24 / .78), rgb(6 12 24 / 0));
  color: #fff; font-size: var(--schrift-lead); font-weight: 700;
}

@media (max-width: 64rem) {
  .plan__name { font-size: 30px; }
  .plan__flaeche, .plan__mass, .plan__zusatz { font-size: 26px; }
}
@media (max-width: 40rem) {
  .plan { display: grid; gap: .75rem; max-width: none; }
  .plan__feld { grid-area: 1 / 1; }
  .plan__beiwerk, .plan__name, .plan__flaeche { display: none; }
  .plan__punkt { width: 2.75rem; height: 2.75rem; }
  .plan__punkt::before { inset: .5rem; }
  .plan__kern { width: 1.75rem; height: 1.75rem; font-size: .8125rem; }
  .plan__raum {
    position: relative; top: auto; left: auto; width: 100%; grid-area: 2 / 1;
    transform: none; box-shadow: none; pointer-events: auto;
  }
}
@media (hover: none) and (max-height: 30rem) {
  .plan__beiwerk, .plan__name, .plan__flaeche { display: none; }
}
@media (forced-colors: active) {
  .plan__feld { forced-color-adjust: none; }
}

@media (min-width: 62.0625rem) {
  #anfrageformular .formular--schlank { grid-template-rows: auto auto 1fr auto; }
}
#anfrageformular .vergleich img { height: auto; aspect-ratio: 16 / 9; }
