body {
  background: var(--surface);
}

/* Hero – wie auf den anderen Unterseiten */
.history-hero {
  position: relative;
  min-height: clamp(540px, 75vh, 760px);
  display: flex;
  align-items: center;
  padding: clamp(7rem, 14vh, 10rem) 5% clamp(5rem, 8vh, 7rem);
  background: #f5f6f8;
  overflow: hidden;
}
.history-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: end;
}
.block-line-wrapper {
  position: relative;
  display: block;
}
.block-line {
  position: relative;
  display: block;
}
.block-revealer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  will-change: transform;
  z-index: 1;
}
.history-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #111111;
  margin: 0;
}
.history-hero-sub {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.85;
  color: #777777;
  margin: 0;
}

.contact-section {
  background: #f5f6f8;
  padding: clamp(1.5rem, 3vh, 2.5rem) 5% clamp(4.5rem, 9vh, 6.5rem);
}

.contact-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

/* Abschnittstitel – wie „Standort" */
.contact-col-title,
.contact-map__title {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #2a2520;
}

.contact-col-title::before,
.contact-map__title::before {
  content: "";
  flex: 0 0 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand);
}

.contact-col-title::after,
.contact-map__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dfe1e5;
}

.contact-required-note {
  margin: 0 0 1.25rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #6b7280;
}

/* Formular + Kontaktangaben */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

/* Globale .contact-form-wrap-Karte aus styles.css aufheben */
.contact-form-wrap {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.contact-form {
  margin: 0;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  min-width: 0;
}

.field label {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: #2a2520;
}

.field label .req {
  color: var(--brand);
}

.field input,
.field textarea {
  width: 100%;
  height: 52px;
  padding: 0 1rem;
  border: 1px solid #cfd3d9;
  border-radius: 10px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #111111;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.field textarea {
  height: auto;
  min-height: 180px;
  padding: 0.85rem 1rem;
  line-height: 1.6;
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: #aeb3ba;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--brand);
  background: transparent;
  box-shadow: none;
}

/* Autofill ohne farbigen Hintergrund */
.field input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #f5f6f8 inset;
  -webkit-text-fill-color: #111111;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a3a9b0;
}

.contact-actions {
  margin-top: 0.5rem;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  height: 52px;
  padding: 0 1.75rem;
  border: none;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-submit i {
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.contact-submit:hover {
  background: var(--brand-deep);
}

.contact-submit:hover i {
  transform: translateX(3px);
}

.contact-submit:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.contact-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.contact-status {
  margin: 0.85rem 0 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #b00020;
}

.contact-status:empty {
  display: none;
}

.contact-status.is-pending {
  color: #6b7280;
}

/* Kontaktangaben */
.location-details {
  border-top: 1px solid #dfe1e5;
}

.location-block {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid #dfe1e5;
}

.location-block__icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.location-block h4 {
  margin: 0.35rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: #111111;
}

.location-block p,
.location-block li {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4a4540;
}

.location-block a {
  color: #111111;
  text-decoration: none;
  transition: color 0.2s ease;
}

.location-block a:hover {
  color: var(--brand);
}

.location-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Karte */
.contact-map {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
}

.contact-map__title {
  margin-bottom: 1.5rem;
}

.map-embed {
  display: block;
  width: 100%;
  height: clamp(280px, 40vw, 440px);
  border: 1px solid #dfe1e5;
  border-radius: 12px;
}

@media (max-width: 900px) {
  .history-hero-inner,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 561px) and (max-width: 900px) {
  .location-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
  }
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
