/* Kontakt-Seite – angelehnt an andresen-immobilien.de/kontakt/ */

.page-kontakt .kontaktformSec {
  background: #f0efee;
}

.page-kontakt {
  scroll-padding-top: 5rem;
}

#kontakt-formular,
#kontakt-formular-felder {
  scroll-margin-top: 5rem;
}

/* Hero-Bild */
#kontakt-startpic .picBox img {
  width: 100%;
  height: clamp(220px, 35vw, 680px);
  object-fit: cover;
}

/* Titel + Intro */
#kontakt-starttext .outer_wrapper > .title {
  width: 100%;
  max-width: 1440px;
  padding-top: clamp(2rem, 1.17rem + 2.78vw, 4.5rem);
  padding-bottom: clamp(3.75rem, -1.875rem + 18.75vw, 20.625rem);
  margin: 0 auto;
  text-align: center;
}

#kontakt-starttext .outer_wrapper > .title h1 {
  font-family: "Portrait", "freight-display-pro", Georgia, serif;
  font-size: clamp(3.125rem, 1.04rem + 6.94vw, 9.375rem);
  line-height: 0.9;
  font-weight: 300;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #2a2a2a;
}

#kontakt-starttext .outer_wrapper > .txt_copy {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-bottom: clamp(3rem, 2rem + 3vw, 6rem);
  text-align: center;
}

#kontakt-starttext .outer_wrapper > .txt_copy p {
  font-family: "Portrait", "freight-display-pro", Georgia, serif;
  font-size: clamp(1.2rem, 0.9rem + 0.85vw, 2rem);
  line-height: 1.15;
  font-weight: 100;
  letter-spacing: -0.01em;
  color: #2a2a2a;
}

/* Zwei-Spalten-Bereich: Kontaktdaten + Formular */
.kontaktformSec {
  padding-bottom: clamp(4rem, 3rem + 3vw, 6rem);
}

.kontaktformSec .kontakt-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(2.5rem, 2rem + 2vw, 4rem);
  max-width: 1236px;
  margin: 0 auto;
}

/* Linke Spalte – Firmendaten */
.kontakt-info {
  width: 100%;
  font-family: "Portrait", "freight-display-pro", Georgia, serif;
  font-size: clamp(1rem, 0.88rem + 0.45vw, 1.375rem);
  line-height: 1.35;
  font-weight: 100;
  letter-spacing: -0.01em;
  color: #3b3a39;
}

.kontakt-info p {
  margin-bottom: 1.5em;
}

.kontakt-info p:last-child {
  margin-bottom: 0;
}

.kontakt-info__hours-label {
  display: inline-block;
  margin-bottom: 0.15em;
  font-family: "Untitled", "freight-sans-pro", Arial, sans-serif;
  font-size: clamp(0.6875rem, 0.64rem + 0.17vw, 0.8125rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(59, 58, 57, 0.7);
}

.kontakt-info a {
  font-family: inherit;
  border-bottom: 1px solid rgba(59, 58, 57, 0.35);
  transition: opacity 0.2s;
}

.kontakt-info a:hover {
  opacity: 0.7;
}

/* Rechte Spalte – Formular */
.kontakt-form {
  width: 100%;
}

.kontakt-form .form {
  width: 100%;
}

.kontakt-form .fullLine,
.kontakt-form .halfLine {
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 20px;
}

.kontakt-form .halfLine {
  width: 100%;
}

.kontakt-form .fullLine > .halfLine {
  width: 100%;
}

.kontakt-form .fielddesc {
  display: block;
  width: 100%;
  margin-bottom: 6px;
  font-family: "Untitled", "freight-sans-pro", Arial, sans-serif;
  font-size: clamp(0.6875rem, 0.64rem + 0.17vw, 0.8125rem);
  line-height: 1;
  font-weight: 400;
  color: #3b3a39;
}

.kontakt-form input[type="text"],
.kontakt-form input[type="email"],
.kontakt-form input[type="tel"],
.kontakt-form textarea {
  width: 100%;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid #3b3a39;
  background: transparent;
  font-family: "Untitled", "freight-sans-pro", Arial, sans-serif;
  font-size: clamp(0.8125rem, 0.78rem + 0.12vw, 0.9375rem);
  color: #3b3a39;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.kontakt-form input:focus,
.kontakt-form textarea:focus {
  outline: none;
  border-bottom-color: #1a1a1a;
}

.kontakt-form textarea {
  min-height: 100px;
  resize: vertical;
}

.kontakt-form .emailWdh {
  display: none !important;
}

.kontakt-form .ptop {
  padding-top: 20px;
}

.kontakt-form .bottomBox {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(12px, 1rem + 0.5vw, 24px);
  width: 100%;
}

.kontakt-form .sendBox {
  flex-shrink: 0;
}

.kontakt-form .sendBox input[type="submit"] {
  border: 0;
  cursor: pointer;
  padding: clamp(0.625rem, 0.45rem + 0.6vw, 0.875rem) clamp(1.75rem, 1.2rem + 1.5vw, 3rem);
  border-radius: 999px;
  font-family: "Untitled", "freight-sans-pro", Arial, sans-serif;
  font-size: clamp(0.6875rem, 0.64rem + 0.17vw, 0.8125rem);
  line-height: 1;
  font-weight: 700;
  font-synthesis: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #b4b0ac;
  color: #3b3a39;
  transition: opacity 0.2s;
}

.kontakt-form .sendBox input[type="submit"]:hover {
  opacity: 0.85;
}

.kontakt-form .dsBox {
  flex: 1;
  min-width: 180px;
}

.kontakt-form .dsBox .chText {
  margin-bottom: 8px;
  font-family: "Untitled", "freight-sans-pro", Arial, sans-serif;
  font-size: clamp(0.5625rem, 0.53rem + 0.12vw, 0.6875rem);
  line-height: 1.4;
  color: rgba(59, 58, 57, 0.5);
}

.kontakt-form .dsBox > div:last-child {
  font-family: "Untitled", "freight-sans-pro", Arial, sans-serif;
  font-size: clamp(0.5625rem, 0.53rem + 0.12vw, 0.6875rem);
  color: rgba(59, 58, 57, 0.5);
}

.kontakt-form .form-msg {
  margin-bottom: 24px;
  padding: 16px 20px;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.kontakt-form .form-msg.success {
  background: rgba(59, 58, 57, 0.08);
  color: #3b3a39;
}

.kontakt-form .form-msg.error {
  background: rgba(180, 60, 60, 0.08);
  color: #8a3030;
}

/* Desktop: zwei Spalten nebeneinander */
@media (min-width: 760px) {
  .kontakt-info {
    width: 38%;
    padding-top: 4px;
  }

  .kontakt-form {
    width: 55%;
  }

  .kontakt-form .fullLine > .halfLine {
    width: 48%;
  }
}

@media (min-width: 1020px) {
  .kontakt-info {
    width: 34%;
  }

  .kontakt-form {
    width: 58%;
  }
}

/* Karte */
#kontakt-karte .map_container {
  position: relative;
  height: 40vh;
  min-height: 450px;
}

#kontakt-karte #kontakt-map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

#kontakt-karte .leaflet-container {
  width: 100%;
  height: 100%;
  background: #e8e6e3;
  font-family: "Untitled", "freight-sans-pro", Arial, sans-serif;
}

#kontakt-karte .leaflet-tile-pane {
  filter: grayscale(100%);
}

#kontakt-karte .leaflet-control-zoom a {
  color: #3b3a39;
}

#kontakt-karte .kontakt-map-marker-wrap {
  background: none;
  border: 0;
  overflow: visible !important;
}

#kontakt-karte .kontakt-map-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: max-content;
  overflow: visible;
}

#kontakt-karte .kontakt-map-pin-icon {
  display: block;
  width: 54px;
  height: 70px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

#kontakt-karte .kontakt-map-label {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  color: #3b3a39;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
  padding: 14px 18px;
  font-family: "Untitled", "freight-sans-pro", Arial, sans-serif;
  font-size: clamp(0.8125rem, 0.75rem + 0.22vw, 0.9375rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-align: left;
  white-space: nowrap;
}

#kontakt-karte .kontakt-map-label__name {
  font-weight: 700;
  color: #2a2a2a;
}

#kontakt-karte .kontakt-map-label__address {
  font-weight: 400;
  color: rgba(59, 58, 57, 0.72);
}

#kontakt-karte .kontakt-map-label-arrow {
  display: block;
  width: 0;
  height: 0;
  margin-top: -1px;
  margin-bottom: 4px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 10px solid #fff;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.08));
}
