:root {
  --text: #1C3445;
  --muted: #516069;
  --bg: #F7F3EA;
  --white: #FFFFFF;
  --brand: #17577A;
  --brand-hover: #0F415D;
  --accent: #91412F;
  --accent-hover: #713020;
  --soft: #DDE9ED;
  --warm: #F1E0D8;
  --line: #BCC7C9;
  --input-line: #768184;
  --focus: #8C4A00;
  --focus-dark: #F7DFA7;
  --error: #98273A;
  --dark: #1C3445;
  --radius: 2px;
  --shadow: 0 18px 46px rgba(28, 52, 69, .12);
  --max: 1210px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}

h1,
h2,
h3 {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.betreiber {
  background: var(--text);
  color: var(--white);
}

.kopf {
  background: rgba(255, 255, 255, .97);
  border-bottom-color: var(--line);
}

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

.marke {
  color: var(--text);
  overflow-wrap: anywhere;
}

.marke small {
  color: #56666F;
  letter-spacing: .12em;
}

.navigation {
  gap: 21px;
}

.navigation a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--text);
}

.navigation a:hover {
  color: var(--brand);
}

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

.einordnung {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: .12em;
}

.bildrahmen {
  margin: 0;
  border: 1px solid rgba(28, 52, 69, .16);
  border-radius: 2px;
  box-shadow: none;
  background: var(--soft);
}

.symbolbild {
  right: 9px;
  bottom: 9px;
  border-radius: 2px;
  background: rgba(18, 37, 49, .82);
  color: var(--white);
  font-weight: 700;
}

.einstieg {
  padding: 34px 0 0;
}

.einstieg-buehne {
  display: grid;
  min-height: 0;
  background: var(--soft);
}

.einstieg-text,
.hauptbild {
  grid-area: 1 / 1;
}

.hauptbild {
  width: 69.5%;
  height: auto;
  min-height: 0;
  aspect-ratio: 8 / 5;
  justify-self: end;
  align-self: center;
}

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

.einstieg-text {
  position: relative;
  z-index: 2;
  align-self: center;
  width: min(52%, 600px);
  margin: 24px 0 24px 24px;
  padding: 30px 34px;
  background: var(--bg);
  border-left: 5px solid var(--accent);
  box-shadow: var(--shadow);
}

.einstieg h1 {
  max-width: 500px;
  margin: 0 0 18px;
  font-size: clamp(42px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.einstieg-text > p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
}

.hauptwege {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 25px;
}

.knopf {
  min-height: 50px;
  border-radius: 4px;
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

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

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

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

.hauptwege .knopf {
  padding-inline: 17px;
  font-size: 15px;
}

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

.mitarbeit-weg:hover,
.textweg:hover {
  color: var(--accent-hover);
}

.adresslinie {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.adresslinie span {
  padding: 18px 24px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.adresslinie span:last-child {
  border-right: 0;
}

.adresslinie strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
}

.gebietsrahmen {
  padding: 72px 0 84px;
}

.gebiet-innen {
  display: grid;
  grid-template-columns: .44fr 1fr 1.08fr;
  gap: 42px;
  align-items: start;
}

.gebiet-innen .einordnung {
  margin-top: 8px;
}

.gebiet-innen h2 {
  margin: 0;
  font-size: clamp(29px, 3vw, 39px);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.gebiet-innen p {
  margin: 4px 0 0;
  color: var(--muted);
}

.eigentum {
  padding: 94px 0 102px;
  background: var(--soft);
}

.eigentum-kopf {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 76px;
  align-items: end;
  margin-bottom: 46px;
}

.eigentum h2,
.hauszusammenhang h2,
.hausarten h2,
.kaeufer h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: -.04em;
}

.eigentum-kopf p {
  margin: 0 0 16px;
  color: var(--muted);
}

.eigentum-raster {
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  gap: 62px;
  align-items: center;
}

.situationszeilen {
  border-top: 1px solid #A8B8BD;
}

.situationszeilen article {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 24px;
  padding: 21px 0;
  border-bottom: 1px solid #A8B8BD;
}

.situationszeilen h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.28;
}

.situationszeilen p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.eigentuemerbild {
  aspect-ratio: 7 / 5;
}

.eigentuemerbild img {
  object-position: 46% 52%;
}

.hauszusammenhang {
  padding: 98px 0;
  background: var(--white);
}

.stadtgruenbild {
  aspect-ratio: 20 / 9;
}

.stadtgruenbild img {
  object-position: 50% 50%;
}

.zusammenhang-kopf {
  display: grid;
  grid-template-columns: .45fr 1fr 1fr;
  gap: 42px;
  align-items: start;
  padding: 44px 0 37px;
  border-bottom: 1px solid var(--line);
}

.zusammenhang-kopf .einordnung {
  margin-top: 8px;
}

.zusammenhang-kopf p {
  margin: 4px 0 0;
  color: var(--muted);
}

.ebenen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.ebenen article {
  padding: 32px 32px 4px 0;
  border-right: 1px solid var(--line);
}

.ebenen article + article {
  padding-left: 32px;
}

.ebenen article:last-child {
  padding-right: 0;
  border-right: 0;
}

.ebenen span {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
}

.ebenen h3 {
  margin: 0 0 10px;
  font-size: 23px;
  line-height: 1.2;
}

.ebenen p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.hausarten {
  padding: 92px 0;
  background: var(--bg);
}

.hausarten-raster {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 86px;
  align-items: start;
}

.hausarten-kopf {
  position: sticky;
  top: 118px;
}

.hausarten-kopf p {
  margin: 20px 0 0;
  color: var(--muted);
}

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

.hausarten-zeilen article {
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.hausarten-zeilen h3 {
  margin: 0 0 5px;
  color: var(--brand);
  font-size: 24px;
}

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

.kaeufer {
  padding: 96px 0;
  background: var(--warm);
}

.kaeufer-raster {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 68px;
  align-items: center;
}

.kaeufer-text {
  order: 2;
}

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

.kaeufer-text .knopf {
  width: auto;
  margin-top: 25px;
}

.kaeuferbild {
  aspect-ratio: 7 / 5;
}

.kaeuferbild img {
  object-position: 52% 52%;
}

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

.awz-hinweis-raster {
  display: grid;
  grid-template-columns: .45fr .9fr 1.15fr;
  gap: 38px;
  align-items: center;
}

.awz-hinweis .einordnung {
  margin: 0;
  color: var(--focus-dark);
}

.awz-hinweis h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.14;
}

.awz-hinweis p {
  margin: 0;
  color: #F4F8FA;
}

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

.formular-raster {
  grid-template-columns: .68fr 1.32fr;
  gap: 68px;
}

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

.formular-einleitung h2 {
  margin: 0 0 16px;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 43px;
  letter-spacing: -.04em;
}

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

.formular {
  padding: 34px;
  border: 1px solid #AAB9BE;
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(28, 52, 69, .08);
}

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

.auswahl label:has(input:checked) {
  border-color: var(--brand);
  background: #E8F0F3;
  box-shadow: inset 0 0 0 1px var(--brand);
}

.auswahl label::before {
  border-color: #5B696F;
}

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

.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: 4px;
  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(152, 39, 58, .18);
}

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

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

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

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

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

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

.kontakt {
  padding: 58px 0 66px;
  background: var(--warm);
}

.kontakt-innen {
  align-items: center;
}

.kontakt h2 {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 34px;
  letter-spacing: -.03em;
}

.kontakt-name {
  font-weight: 700;
}

.kontaktdaten {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  min-width: 330px;
  font-style: normal;
}

.kontaktdaten a {
  display: grid;
  grid-template-columns: 58px 1fr;
  min-height: 44px;
  align-items: center;
  border-bottom: 1px solid rgba(28, 52, 69, .25);
  color: var(--text);
  text-decoration: none;
}

.kontaktdaten a:hover {
  color: var(--brand);
}

.kontaktdaten span {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

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

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

.footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.bildhinweis {
  color: #E4EDF1;
}

.bildhinweis a {
  display: inline;
  min-height: 0;
}

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

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

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

@media (max-width: 1050px) {
  .navigation {
    gap: 15px;
  }

  .navigation a {
    font-size: 14px;
  }

  .einstieg-text {
    width: min(58%, 570px);
    margin-left: 20px;
    padding: 27px 30px;
  }

  .hauptbild {
    width: 82%;
  }

  .einstieg h1 {
    font-size: 43px;
  }

  .eigentum-raster,
  .kaeufer-raster {
    gap: 46px;
  }

  .situationszeilen article {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .hausarten-raster {
    gap: 58px;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 88px;
  }

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

  .menue-schalter {
    display: block;
  }

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

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

  .navigation a {
    min-height: 44px;
    padding-inline: 8px;
    font-size: 16px;
  }

  .einstieg {
    padding-top: 28px;
  }

  .einstieg-buehne {
    display: flex;
    height: auto;
    min-height: 0;
    flex-direction: column;
  }

  .einstieg-text {
    order: 1;
    width: auto;
    margin: 0;
    padding: 0 0 28px;
    border-left: 0;
    box-shadow: none;
  }

  .einstieg h1 {
    max-width: 680px;
    font-size: clamp(36px, 7vw, 48px);
  }

  .hauptbild {
    order: 2;
    width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: 8 / 5;
    justify-self: stretch;
  }

  .hauptbild img {
    object-position: 62% 48%;
  }

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

  .adresslinie span {
    padding: 14px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .adresslinie span:last-child {
    border-bottom: 0;
  }

  .gebiet-innen,
  .eigentum-kopf,
  .eigentum-raster,
  .zusammenhang-kopf,
  .hausarten-raster,
  .kaeufer-raster,
  .awz-hinweis-raster,
  .formular-raster {
    grid-template-columns: 1fr;
  }

  .gebiet-innen,
  .zusammenhang-kopf {
    gap: 12px;
  }

  .eigentum-kopf,
  .eigentum-raster,
  .kaeufer-raster {
    gap: 34px;
  }

  .gebietsrahmen {
    padding: 58px 0 64px;
  }

  .eigentum,
  .hauszusammenhang,
  .hausarten,
  .kaeufer,
  .formular-bereich {
    padding: 64px 0;
  }

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

  .eigentuemerbild {
    order: -1;
  }

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

  .stadtgruenbild img {
    object-position: 52% 50%;
  }

  .zusammenhang-kopf {
    padding-top: 34px;
  }

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

  .ebenen article,
  .ebenen article + article {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ebenen article:last-child {
    border-bottom: 0;
  }

  .hausarten-kopf {
    position: static;
  }

  .kaeufer-text {
    order: 1;
  }

  .kaeuferbild {
    order: 2;
  }

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

  .awz-hinweis-raster {
    gap: 12px;
  }

  .awz-hinweis h2 {
    font-size: 29px;
  }

  .formular-einleitung h2 {
    font-size: 38px;
  }

  .kontakt-innen,
  .footer-innen {
    align-items: flex-start;
    flex-direction: column;
  }

  .kontaktdaten {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .einstieg h1 {
    font-size: 36px;
  }

  .hauptwege {
    display: grid;
  }

  .hauptwege .knopf,
  .hauptwege .mitarbeit-weg,
  .kaeufer-text .knopf {
    width: 100%;
  }

  .gebietsrahmen,
  .eigentum,
  .hauszusammenhang,
  .hausarten,
  .kaeufer,
  .formular-bereich {
    padding-block: 56px;
  }

  .eigentum h2,
  .hauszusammenhang h2,
  .hausarten h2,
  .kaeufer h2 {
    font-size: 31px;
  }

  .stadtgruenbild {
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: clamp(170px, 50vw, 225px);
    aspect-ratio: auto;
  }

  .stadtgruenbild img {
    position: absolute;
    inset: 0;
  }

  .formular {
    padding: 24px 16px;
  }

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

  .auswahl label {
    min-height: 52px;
  }

  .freiwillig-innen {
    grid-template-columns: 1fr;
  }

  .kontakt h2 {
    font-size: 29px;
  }
}

@media (max-width: 360px) {
  .marke {
    max-width: 190px;
    font-size: 15px;
  }

  .marke small {
    font-size: 9px;
  }

  .einstieg h1 {
    font-size: 34px;
    overflow-wrap: normal;
    hyphens: none;
  }

  .eigentum h2,
  .hauszusammenhang h2,
  .hausarten h2,
  .kaeufer h2,
  .awz-hinweis h2,
  .kontakt h2 {
    font-size: 27px;
    overflow-wrap: normal;
    hyphens: none;
  }

  .formular-einleitung h2 {
    font-size: 36px;
  }

  .kontaktdaten a,
  .zustimmung,
  .bildhinweis {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .knopf {
    transition: none;
  }
}
