/* Übernommen aus igw-mieterportal src/site/feinschliff.css@925ee81 (Teil 1 von 2) (0036 W8). Regeln wörtlich;
 * angepasst: mit Biome formatiert und nach Regel 4 geteilt (Reihenfolge unverändert). */
/* Feinschliff nach dem Review vom 17.10.2026 */
/* Architekten-Ansichten statt Fotos auf der Startseite */
.ansicht {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7% 6% 5%;
  background: #eef1ef;
}
.ansicht svg {
  width: 100%;
  height: auto;
  color: var(--schiefer);
  overflow: visible;
}
.ansicht :is(rect, path, line, circle) {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linejoin: round;
}
.ansicht .boden {
  stroke-width: 2.2;
}
.ansicht .mass {
  stroke: var(--grauwacke);
  stroke-width: 1;
}
.ansicht .neu {
  fill: rgba(178, 195, 189, 0.55);
  stroke: var(--salbei-tief);
}
.ansicht .glas {
  fill: #f6f7f5;
}
.ansicht .geplant {
  stroke: var(--salbei-tief);
  stroke-dasharray: 6 5;
}
.ansicht .neu.geplant {
  fill: rgba(178, 195, 189, 0.25);
}
.ansicht text {
  font-family: var(--zeichen);
  font-size: 15px;
  fill: var(--grauwacke);
}
.ansicht {
  transition: background-color 0.5s ease;
}
.knopf-dunkel {
  background: var(--schiefer);
  color: var(--kalk);
}
.knopf-dunkel:hover {
  background: var(--salbei-tief);
}
/* Linien zeichnen sich einmal, wenn die Ansicht erscheint (nur mit Skript und ohne reduzierte Bewegung) */
.ansicht.bereit :is(rect, path, line, circle):not(.geplant) {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.ansicht.bereit .neu,
.ansicht.bereit .geplant,
.ansicht.bereit text,
.ansicht.bereit .glas {
  fill-opacity: 0;
  opacity: 0;
}
.ansicht.gezeichnet :is(rect, path, line, circle):not(.geplant) {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 2.2s cubic-bezier(0.6, 0, 0.2, 1);
}
.ansicht.gezeichnet .neu,
.ansicht.gezeichnet .geplant,
.ansicht.gezeichnet text,
.ansicht.gezeichnet .glas {
  fill-opacity: 1;
  opacity: 1;
  transition:
    opacity 0.8s ease 1.4s,
    fill-opacity 0.8s ease 1.4s;
}
/* Fortschritt durch die vier Akte */
.akt-leiste {
  position: fixed;
  right: var(--rand-r);
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: grid;
  gap: 14px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.5s ease,
    visibility 0s linear 0.5s;
}
.akt-leiste.sichtbar {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.5s ease;
}
.akt-leiste a {
  display: grid;
  grid-template-columns: auto 2px;
  gap: 14px;
  align-items: center;
  justify-items: end;
  text-decoration: none;
  font-family: var(--zeichen);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: rgba(233, 236, 234, 0.45);
  transition: color 0.3s ease;
}
.akt-leiste a::after {
  content: "";
  width: 2px;
  height: 28px;
  background: rgba(233, 236, 234, 0.22);
  transition:
    background-color 0.3s ease,
    height 0.3s ease;
}
.akt-leiste a[aria-current="step"] {
  color: var(--kalk);
}
.akt-leiste a[aria-current="step"]::after {
  background: var(--salbei);
  height: 44px;
}
.akt-leiste a:last-child[aria-current="step"]::after {
  background: var(--licht);
}
@media (max-width: 860px) {
  .akt-leiste {
    top: calc(76px + env(safe-area-inset-top, 0px));
    right: auto;
    left: var(--rand);
    transform: none;
    grid-auto-flow: column;
    gap: 8px;
  }
  .akt-leiste a {
    grid-template-columns: 1fr;
    font-size: 0;
    gap: 0;
  }
  .akt-leiste a::after {
    width: 28px;
    height: 2px;
  }
  .akt-leiste a[aria-current="step"]::after {
    width: 44px;
    height: 2px;
  }
}
/* Große Bilder erscheinen einmal mit dem Bauzaun-Wischen */
.enthuellen {
  clip-path: inset(0 0 0 0);
}
.enthuellen.bereit {
  clip-path: inset(0 100% 0 0);
}
.enthuellen.bereit.sichtbar {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.6s cubic-bezier(0.65, 0, 0.2, 1);
}
@media (prefers-reduced-motion: reduce) {
  .ansicht.bereit :is(rect, path, line, circle):not(.geplant) {
    stroke-dashoffset: 0;
  }
  .ansicht.bereit .neu,
  .ansicht.bereit .geplant,
  .ansicht.bereit text,
  .ansicht.bereit .glas {
    opacity: 1;
    fill-opacity: 1;
  }
  .enthuellen.bereit {
    clip-path: inset(0 0 0 0);
  }
}
/* Fuß mit Kontakt nach Thema */
/* Formulare im Stil der Webseite */
.formular {
  display: grid;
  gap: 40px;
}
.formular fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  border-top: 1px solid var(--schiefer);
  padding-top: 22px;
  min-width: 0;
}
.formular legend {
  padding: 0;
  margin-bottom: 4px;
  font-weight: 500;
  font-size: 19px;
  font-variation-settings: "wdth" 110;
  float: left;
  width: 100%;
}
.formular legend + * {
  clear: both;
}
.feld {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.feld label,
.feld-titel {
  font-size: 15px;
  color: var(--grauwacke);
}
.feld input[type="text"],
.feld input[type="email"],
.feld input[type="tel"],
.feld textarea {
  font: inherit;
  font-size: 17px;
  color: var(--schiefer);
  background: #ffffff;
  border: 1px solid rgba(44, 44, 44, 0.28);
  border-radius: 0;
  padding: 12px 14px;
  width: 100%;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.feld textarea {
  resize: vertical;
  min-height: 140px;
}
.feld input:focus,
.feld textarea:focus {
  outline: none;
  border-color: var(--salbei-tief);
  box-shadow: 0 0 0 3px rgba(95, 122, 110, 0.25);
}
.feld [aria-invalid="true"] {
  border-color: #a4452f;
}
.feld-schmal {
  max-width: 280px;
}
.feld-paar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 600px) {
  .feld-paar {
    grid-template-columns: minmax(0, 1fr);
  }
}
.feld-hilfe,
.optional {
  font-size: 14px;
  color: var(--grauwacke);
  margin: -8px 0 0;
}
.optional {
  margin: 0;
  font-weight: 400;
}
.wahl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wahl label {
  position: relative;
}
.wahl input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.wahl span {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid rgba(44, 44, 44, 0.28);
  font-size: 15px;
  color: var(--schiefer);
  background: #ffffff;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.wahl input:checked + span {
  background: var(--schiefer);
  color: var(--kalk);
  border-color: var(--schiefer);
}
.wahl input:focus-visible + span {
  outline: 2px solid var(--salbei-tief);
  outline-offset: 2px;
}
.datei {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px dashed rgba(44, 44, 44, 0.35);
  background: #ffffff;
  cursor: pointer;
}
