/* Kontakt (post-171) */

/* ---------- Hero #70f957b2 ---------- */
.k-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 600px;
  padding: 0 8%;
  background-color: var(--c-primary);
}
.k-hero-bg, .k-hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.k-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: var(--c-overlay);
  opacity: .5;
}
.k-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: min(100%, 800px);
  margin: 0 auto;
}
.k-hero-title {
  width: 100%;
  font-family: var(--f-heading);
  font-size: 65px;
  font-weight: 600;
  line-height: 1.2em;
  text-align: center;
  color: var(--c-white);
}
.k-hero-box {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 450px;
  max-width: 100%;
}
.k-hero-divider { display: block; width: 100%; border-top: 2px solid #6D6E71; }
.k-hero-text {
  font-family: var(--f-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  color: var(--c-white);
}

/* ---------- Formular #1f1fd1f ---------- */
.k-form-sec { padding: 80px 15px; background-color: var(--c-panel); overflow-x: clip; } /* Karte ragt ≤1024 px wie im Original rechts hinaus (dort body overflow-x: clip) */
.k-form-inner {
  display: flex;
  flex-direction: row;
  gap: 50px;
  width: 100%;
  max-width: min(100%, var(--content-w));
  margin: 0 auto;
}
.k-form-card {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  width: 86.428%;
  min-width: 0;
  margin: 0 100px;
  padding: 30px 50px;
  background-color: var(--c-white);
  border-radius: 10px;
}
.k-form-title {
  align-self: center;
  width: 635px;
  max-width: 100%;
  font-family: var(--f-plex);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2em;
  letter-spacing: -1px;
  text-align: center;
  text-transform: capitalize;
  color: var(--c-primary);
}
.k-form-widget { width: 100%; }

/* ---------- Kontaktdaten #7f7a4e3 ---------- */
.k-contact-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: min(100%, var(--content-w));
  margin: 0 auto;
}
.k-contact-col { display: flex; flex-direction: column; gap: 20px; width: 50%; }
.k-contact-box { width: 543px; max-width: 100%; }

@media (max-width: 1024px) {
  .k-hero { min-height: 500px; padding: 0 5%; }
  .k-hero-title { font-size: 45px; }
  .k-hero-text { line-height: 1.5; }
  .k-form-inner { gap: 20px; }
  .k-form-card { padding: 20px; }
  .k-contact-box .contact-text { line-height: 1.5; }
}

@media (max-width: 767px) {
  .k-hero-inner { max-width: 100%; }
  .k-hero-title { font-size: 28px; line-height: 1.1em; }
  .k-hero-box { width: 100%; }
  .k-hero-text { line-height: 1.4; }
  .k-form-sec { padding: 50px 15px; }
  .k-form-inner { flex-direction: column; }
  .k-form-card { width: 100%; margin: -1px; }
  .k-form-title { font-size: 24px; }
  .k-contact-col { width: 100%; }
  .k-contact-box .contact-text { line-height: 1.4; }
}
