:root {
  --text: #2b2926;
  --muted: #625d57;
  --bg: #fffdf8;
  --brand: #684330;
  --brand-hover: #513125;
  --sky: #e7eff1;
  --peach: #f6e7d8;
  --sun: #f2cd66;
  --focus: #8c5500;
  --dark: #2e3840;
  --focus-dark: #ffe2a3;
  --input-line: #77716b;
  --error: #9b2335;
  --white: #ffffff;
  --line: #d8d0c7;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --shadow: 0 16px 42px rgba(46, 56, 64, 0.1);
  --max: 1200px;
}

html {
  scroll-padding-top: 92px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.62;
}

figure {
  margin: 0;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

.betreiber {
  padding: 7px 18px;
  background: var(--dark);
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.015em;
}

.kopf {
  background: rgba(255, 253, 248, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.kopf-innen {
  min-height: 70px;
}

.marke {
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.marke small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: none;
}

.navigation {
  gap: 22px;
}

.navigation a {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-decoration-color: var(--sun);
  text-decoration-thickness: 3px;
}

.menue-schalter {
  min-height: 44px;
  border: 1px solid var(--input-line);
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
}

.lichtband {
  position: relative;
  height: 142px;
  overflow: hidden;
  border-bottom: 5px solid var(--sun);
  background: var(--sky);
}

.lichtband img {
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
}

.bildrahmen {
  margin: 0;
  border: 1px solid rgba(104, 67, 48, 0.2);
  border-radius: var(--radius);
  box-shadow: none;
}

.bildrahmen::after {
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: var(--sun);
  content: "";
  pointer-events: none;
}

.bildrahmen img {
  object-fit: cover;
}

.symbolbild {
  right: 8px;
  bottom: 8px;
  z-index: 2;
  border-radius: 5px;
  background: rgba(43, 41, 38, 0.86);
  color: var(--white);
  font-size: 11px;
}

.einordnung {
  margin-bottom: 12px;
  color: var(--focus);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: none;
}

.passungs-hero {
  padding: 48px 0 40px;
}

.hero-raster {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(440px, 1.12fr);
  gap: 52px;
  align-items: center;
}

.hero-text h1 {
  max-width: 690px;
  margin: 0 0 20px;
  font-family: var(--sans);
  font-size: clamp(44px, 4.25vw, 52px);
  line-height: 1.07;
  letter-spacing: -0.038em;
}

.hero-text p {
  max-width: 650px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 18px;
}

.hero-text p:first-of-type {
  color: var(--brand);
  font-size: 19px;
}

.hero-hauptbild {
  height: 340px;
}

.hero-hauptbild img {
  height: 100%;
  object-position: 52% 52%;
}

.passungslinie {
  display: grid;
  grid-template-columns: 78px minmax(0, 720px);
  gap: 22px;
  align-items: start;
  margin: 30px 0 0;
  padding: 22px 0 2px;
  border-top: 1px solid var(--line);
}

.passungslinie span {
  width: 78px;
  height: 6px;
  margin-top: 9px;
  background: var(--sun);
}

.passungslinie p {
  margin: 0;
  color: var(--muted);
}

.wegzeile {
  display: grid;
  grid-template-columns: minmax(220px, 1.05fr) minmax(210px, 0.95fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.knopf {
  min-height: 50px;
  border: 1px solid var(--brand);
  border-radius: 10px;
  background: var(--brand);
  color: var(--white);
  font-weight: 750;
}

.knopf:hover {
  border-color: var(--brand-hover);
  background: var(--brand-hover);
}

.knopf-sekundaer {
  background: transparent;
  color: var(--brand);
}

.knopf-sekundaer:hover {
  color: var(--white);
}

.mitarbeit-weg,
.textweg {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 750;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.eigentuemer {
  padding: 82px 0 90px;
  background: var(--sky);
}

.eigentum-kopf {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 64px;
  align-items: end;
}

.eigentum-kopf h2,
.vertiefung-text h2,
.wohnhaeuser h2,
.kaeufer h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(32px, 3.5vw, 40px);
  line-height: 1.13;
  letter-spacing: -0.03em;
}

.eigentum-kopf > p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.lebenslagen {
  margin-top: 42px;
  border-top: 1px solid rgba(104, 67, 48, 0.28);
}

.lebenslagen article {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 40px;
  padding: 21px 0;
  border-bottom: 1px solid rgba(104, 67, 48, 0.28);
}

.lebenslagen h3,
.lebenslagen p {
  margin: 0;
}

.lebenslagen h3 {
  font-size: 20px;
}

.lebenslagen p {
  color: var(--muted);
}

.eigentum-vertiefung {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 58px;
  align-items: center;
  margin-top: 70px;
}

.eigentuemerbild {
  aspect-ratio: 7 / 5;
  max-width: 700px;
}

.eigentuemerbild img {
  height: 100%;
  object-position: 50% 50%;
}

.vertiefung-text p {
  margin: 18px 0 0;
  color: var(--muted);
}

.vertiefung-text .textweg {
  margin-top: 16px;
}

.wohnhaeuser {
  padding: 82px 0;
  background: var(--bg);
}

.wohnhaeuser-raster {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  gap: 72px;
  align-items: start;
}

.wohnhaeuser-raster > div:first-child > p {
  color: var(--muted);
}

.hausarten {
  border-top: 1px solid var(--line);
}

.hausarten article {
  display: grid;
  grid-template-columns: minmax(190px, 0.65fr) minmax(0, 1.35fr);
  gap: 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.hausarten h3,
.hausarten p {
  margin: 0;
}

.hausarten h3 {
  color: var(--brand);
  font-size: 19px;
}

.hausarten p {
  color: var(--muted);
}

.kaeufer {
  padding: 76px 0;
  background: var(--peach);
}

.kaeufer-raster {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
}

.kaeufer-text p {
  margin: 18px 0 0;
  color: var(--muted);
}

.kaeufer-text .knopf {
  margin-top: 22px;
}

.kaeuferbild {
  aspect-ratio: 7 / 5;
  max-width: 700px;
}

.kaeuferbild img {
  height: 100%;
  object-position: 56% 50%;
}

.awz-band {
  padding: 48px 0;
  background: var(--dark);
  color: var(--white);
}

.awz-raster {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: center;
}

.awz-band .einordnung {
  color: var(--focus-dark);
}

.awz-band h2 {
  max-width: 470px;
  margin: 0;
  font-size: 30px;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.awz-band ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.awz-band li {
  min-height: 82px;
  padding: 8px 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.awz-band strong,
.awz-band span {
  display: block;
}

.awz-band strong {
  color: var(--focus-dark);
  font-size: 21px;
}

.awz-band span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.formular-bereich {
  padding: 82px 0;
  background: var(--bg);
  color: var(--text);
}

.formular-raster {
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 64px;
}

.formular-einleitung {
  position: sticky;
  top: 116px;
}

.formular-bereich .einordnung {
  color: var(--focus);
}

.formular-einleitung h2 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 40px;
}

.formular-einleitung p {
  color: var(--muted);
}

.formular {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow);
}

.honigfeld {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.auswahl label {
  min-height: 68px;
  border-color: var(--input-line);
  border-radius: 10px;
}

.auswahl label::before {
  border-color: var(--input-line);
}

.auswahl label:has(input:checked) {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 9%, var(--white));
  box-shadow: inset 0 0 0 1px var(--brand);
}

.auswahl label:has(input:checked)::before {
  border-color: var(--brand);
}

.auswahl label:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.feld {
  margin: 0 0 7px;
}

.eingabe {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  padding: 13px 14px;
  border: 1px solid var(--input-line);
  border-radius: 9px;
  background: var(--white);
  color: var(--text);
}

textarea.eingabe {
  min-height: 160px;
  resize: vertical;
}

.eingabe::placeholder {
  color: var(--muted);
  opacity: 1;
}

.eingabe[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 2px rgba(155, 35, 53, 0.18);
}

.freiwillig {
  border-color: var(--line);
}

.freiwillig summary {
  min-height: 50px;
}

.zustimmung {
  border-radius: 6px;
}

.zustimmung:has(input[aria-invalid="true"]) {
  box-shadow: 0 0 0 2px var(--error);
}

.zustimmung a {
  color: var(--brand);
  font-weight: 750;
}

.formular .knopf {
  border: 1px solid var(--brand);
  background: var(--brand);
}

.formular .knopf:hover {
  border-color: var(--brand-hover);
  background: var(--brand-hover);
}

.formular-fehler {
  color: var(--error);
}

.vertraulichkeit {
  color: var(--muted);
}

.kontakt {
  padding: 50px 0 56px;
  background: var(--brand);
  color: var(--white);
}

.kontakt .einordnung {
  color: var(--focus-dark);
}

.kontakt h2 {
  color: var(--white);
  font-size: 32px;
}

.kontakt-name {
  color: rgba(255, 255, 255, 0.88);
}

.kontaktdaten {
  font-style: normal;
}

.kontaktdaten a {
  display: grid;
  gap: 2px;
  color: var(--white);
  overflow-wrap: anywhere;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.kontaktdaten a span {
  color: var(--focus-dark);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer {
  background: var(--dark);
  color: var(--white);
}

.footer-innen {
  flex-wrap: wrap;
}

.footer a {
  color: var(--white);
}

.bildhinweis {
  color: rgba(255, 255, 255, 0.84);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.awz-band :focus-visible,
.kontakt :focus-visible,
.footer :focus-visible {
  outline-color: var(--focus-dark);
}

@media (max-width: 900px) {
  .kopf-innen {
    position: relative;
    min-height: 66px;
  }

  .menue-schalter {
    display: block;
  }

  .navigation {
    display: none;
    position: absolute;
    top: 100%;
    right: -14px;
    left: -14px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 14px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    box-shadow: var(--shadow);
  }

  .navigation[data-offen="true"] {
    display: flex;
  }

  .navigation a {
    display: flex;
    min-height: 44px;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }

  .navigation a:last-child {
    border-bottom: 0;
  }

  .lichtband {
    height: 112px;
  }

  .lichtband img {
    object-position: 52% 48%;
  }

  .passungs-hero {
    padding-top: 34px;
  }

  .hero-raster,
  .eigentum-kopf,
  .eigentum-vertiefung,
  .wohnhaeuser-raster,
  .kaeufer-raster,
  .awz-raster,
  .formular-raster {
    grid-template-columns: 1fr;
  }

  .hero-raster {
    gap: 24px;
  }

  .hero-text h1 {
    font-size: clamp(34px, 8.4vw, 42px);
  }

  .hero-hauptbild {
    height: clamp(210px, 45vw, 290px);
  }

  .hero-hauptbild img {
    object-position: 56% 50%;
  }

  .passungslinie {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    margin-top: 24px;
  }

  .passungslinie span {
    width: 48px;
  }

  .wegzeile {
    grid-template-columns: 1fr;
  }

  .wegzeile .knopf,
  .wegzeile .mitarbeit-weg {
    width: 100%;
  }

  .mitarbeit-weg {
    justify-content: center;
  }

  .eigentuemer,
  .wohnhaeuser,
  .kaeufer,
  .formular-bereich {
    padding-block: 60px;
  }

  .eigentum-kopf,
  .eigentum-vertiefung,
  .wohnhaeuser-raster,
  .kaeufer-raster {
    gap: 32px;
  }

  .lebenslagen article,
  .hausarten article {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .eigentum-vertiefung {
    margin-top: 48px;
  }

  .eigentuemerbild,
  .kaeuferbild {
    width: 100%;
    max-width: 700px;
    aspect-ratio: 7 / 5;
    height: auto;
  }

  .eigentuemerbild img {
    object-position: 53% 48%;
  }

  .kaeufer-raster .kaeufer-text {
    order: 1;
  }

  .kaeufer-raster .kaeuferbild {
    order: 2;
  }

  .kaeuferbild img {
    object-position: 58% 48%;
  }

  .awz-raster {
    gap: 26px;
  }

  .awz-band ul {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .awz-band li {
    padding-inline: 14px;
  }

  .formular-einleitung {
    position: static;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 17px;
  }

  .lichtband {
    height: 98px;
  }

  .passungs-hero {
    padding-bottom: 34px;
  }

  .hero-hauptbild {
    height: 220px;
  }

  .passungslinie {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .passungslinie span {
    width: 70px;
  }

  .eigentum-kopf h2,
  .vertiefung-text h2,
  .wohnhaeuser h2,
  .kaeufer h2 {
    font-size: 29px;
  }

  .awz-band ul {
    grid-template-columns: 1fr;
  }

  .awz-band li {
    min-height: 0;
    padding: 13px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    border-left: 0;
  }

  .formular {
    padding-inline: 16px;
  }
}

@media (max-width: 360px) {
  h1,
  h2 {
    overflow-wrap: normal;
    hyphens: none;
  }

  .hero-text h1 {
    font-size: 32px;
    overflow-wrap: normal;
    hyphens: none;
  }

  .awz-band h2 {
    font-size: 25px;
    overflow-wrap: normal;
    hyphens: none;
  }

  .kontakt h2 {
    font-size: 27px;
    overflow-wrap: normal;
    hyphens: none;
  }

  .marke {
    max-width: 185px;
    font-size: 18px;
  }
}

@media (max-width: 340px) {
  .kopf-innen {
    gap: 7px;
  }

  .menue-schalter {
    padding-inline: 9px;
  }

  .formular {
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
