.mietbogen-page {
  background: #F7F5F2;
  color: #152F38;
}

.mietbogen-container {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
}

.mietbogen-hero {
  padding: clamp(72px, 9vw, 128px) 0 56px;
  background:
    linear-gradient(rgba(21, 47, 56, 0.78), rgba(21, 47, 56, 0.78)),
    url("../images/vermietung/hannover/vermietung-hero-immobilienmakler-vermietung-von-eigentumswohnungen-und-hausern.webp") center/cover;
  color: #fff;
}

.mietbogen-hero__inner {
  max-width: 820px;
}

.mietbogen-lang {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 30px;
}

.mietbogen-lang button {
  min-width: 44px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(21, 47, 56, 0.18);
  border-radius: 4px;
  background: #fff;
  color: #152F38;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.mietbogen-lang button.is-active,
.mietbogen-lang button:hover {
  border-color: #C29A6B;
  background: #C29A6B;
  color: #152F38;
}

.mietbogen-eyebrow {
  margin: 0 0 14px;
  color: #C29A6B;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mietbogen-hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1.12;
  overflow-wrap: normal;
  hyphens: none;
}

.mietbogen-hero p:last-child {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  line-height: 1.7;
}

.mietbogen-section {
  padding: clamp(44px, 7vw, 86px) 0;
}

.mietbogen-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.mietbogen-sidebar,
.mietbogen-form {
  border: 1px solid rgba(21, 47, 56, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(21, 47, 56, 0.08);
}

.mietbogen-sidebar {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.mietbogen-sidebar__title {
  margin: 0 0 18px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.mietbogen-sidebar__note {
  margin: 22px 0 0;
  color: #5a6d73;
  font-size: 0.95rem;
  line-height: 1.6;
}

.mietbogen-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: mietstep;
}

.mietbogen-steps li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #5a6d73;
  font-weight: 700;
}

.mietbogen-steps li::before {
  counter-increment: mietstep;
  content: counter(mietstep);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F7F5F2;
  color: #152F38;
}

.mietbogen-steps li.is-active {
  color: #152F38;
}

.mietbogen-steps li.is-active::before,
.mietbogen-steps li.is-complete::before {
  background: #A67C52;
  color: #fff;
}

.mietbogen-form {
  padding: clamp(24px, 4vw, 42px);
}

.mietbogen-form__head {
  margin-bottom: 28px;
}

.mietbogen-form__head h2 {
  margin: 0 0 10px;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
}

.mietbogen-form__head p {
  margin: 0;
  color: #5a6d73;
}

.mietbogen-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.mietbogen-step legend {
  margin-bottom: 24px;
  font-family: "Montserrat", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.mietbogen-step__hint {
  margin: -10px 0 24px;
  color: #5a6d73;
  line-height: 1.6;
}

.mietbogen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mietbogen-form label {
  display: block;
  color: #152F38;
  font-weight: 700;
}

.mietbogen-form label > span {
  display: inline;
}

.mietbogen-form input,
.mietbogen-form select,
.mietbogen-form textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(21, 47, 56, 0.18);
  border-radius: 6px;
  background: #fff;
  color: #152F38;
  font: inherit;
}

.mietbogen-form input::placeholder,
.mietbogen-form textarea::placeholder {
  color: rgba(21, 47, 56, 0.2);
  opacity: 1;
}

.mietbogen-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.mietbogen-form textarea {
  min-height: 130px;
  resize: vertical;
}

.mietbogen-full,
.mietbogen-consents {
  margin-bottom: 22px;
}

.mietbogen-consents {
  display: grid;
  gap: 14px;
}

.mietbogen-consents label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 500;
  line-height: 1.55;
}

.mietbogen-consents input {
  width: auto;
  min-height: auto;
  margin-top: 5px;
}

.mietbogen-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 30px;
}

.mietbogen-actions .btn[hidden] {
  display: none;
}

@media (max-width: 860px) {
  .mietbogen-layout,
  .mietbogen-grid {
    grid-template-columns: 1fr;
  }

  .mietbogen-sidebar {
    position: static;
  }

  .mietbogen-actions {
    flex-direction: column-reverse;
  }

  .mietbogen-actions .btn {
    width: 100%;
  }
}
