/* ══════════════════════════════════════════════════════════════════
   KONTAKT — Standortkarten und Formular
   ══════════════════════════════════════════════════════════════════ */

/* ---- Bürofoto ------------------------------------------------------
   Zieht wie das Gruppenfoto der Teamseite leicht in den Hero hinein.
   Zur Groesse des Zugs siehe die Begruendung in team.css: der alte Wert
   hob den unteren Innenabstand des Heros vollstaendig auf, sodass die drei
   Pillen "Antwort in 24 h", "Buero in Thale" und "Termine nach
   Vereinbarung" direkt auf dem Foto auflagen. */
.bpk__office {
  padding: 0;
  margin-top: clamp(-24px, -1.5vw, -8px);
}

/* Volle Containerbreite. Der frühere Deckel von 1100 liess das Foto auf
   breiten Schirmen weiter innen beginnen als der Text darueber - genau die
   ungleichen Kanten, die beim Scrollen auffallen. Die passende sizes-Angabe
   steht in build/bildflaechen.py. */
.bpk__office-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: clamp(18px, 2vw, 28px);
  background: var(--bp-bg-soft);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.38);
}

.bpk__office-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.bpk__office-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 12, 13, 0.72) 0%, rgba(17, 12, 13, 0.18) 30%, transparent 58%);
  pointer-events: none;
}

.bpk__office-caption {
  position: absolute;
  z-index: 2;
  left: clamp(18px, 3vw, 38px);
  right: clamp(18px, 3vw, 38px);
  bottom: clamp(16px, 2.4vw, 30px);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  color: #ffffff;
}

.bpk__office-caption strong {
  font-size: clamp(16px, 2.1vw, 22px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.bpk__office-caption span {
  font-size: clamp(12.5px, 1.4vw, 14.5px);
  color: rgba(255, 255, 255, 0.82);
}

/* ---- Telefonabschnitt ---------------------------------------------- */
.bpk__call {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.bpk__call-media {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: var(--bp-bg-soft);
  border: 1px solid var(--bp-line);
  box-shadow: var(--bp-shell);
}

.bpk__call-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Bildunterschrift im Telefonfoto. Sie sitzt innerhalb des Rahmens und unter
   dem Bild, nicht darueber: eine Ueberlagerung verdeckt immer irgendein Stueck
   Gesicht, und genau das Gesicht ist hier der Punkt. */
.bpk__call-cap {
  display: block;
  padding: 14px clamp(16px, 2.5vw, 22px) 16px;
  border-top: 1px solid var(--bp-line);
  background: var(--bp-bg);
  font-size: 14px;
  line-height: 1.55;
  color: var(--bp-text-muted);
}

.bpk__call-cap strong {
  font-weight: 700;
  color: var(--bp-text);
}

.bpk__call-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---- Standorte ---------------------------------------------------- */
.bpk__locations {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(18px, 2.5vw, 26px);
  margin-top: clamp(36px, 5vw, 56px);
  align-items: stretch;
}

.bpk__loc {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--bp-line);
  box-shadow: var(--bp-shell);
  transition: transform 0.4s var(--bp-ease), box-shadow 0.4s var(--bp-ease);
}

.bpk__loc:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -28px rgba(133, 14, 21, 0.32);
}

.bpk__loc--featured { border-color: var(--bp-red-line); }

.bpk__loc-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

.bpk__loc-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(135deg, var(--bp-red), var(--bp-red-dark));
}

.bpk__loc-badge--soft {
  color: var(--bp-red);
  background: var(--bp-red-soft);
  border: 1px solid var(--bp-red-line);
}

.bpk__loc-city {
  margin: 0;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.bpk__loc-addr {
  margin: 0;
  font-style: normal;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--bp-text-muted);
}

.bpk__lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bpk__line {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 12px;
  border-top: 1px solid var(--bp-line-light);
}

.bpk__line:first-child { border-top: 0; padding-top: 0; }

.bpk__line-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--bp-text-light);
}

.bpk__line-tel {
  font-size: clamp(15px, 1.7vw, 17px);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--bp-text);
  text-decoration: none;
  transition: color 0.25s var(--bp-ease);
}

.bpk__line-tel:hover { color: var(--bp-red); }

.bpk__loc-mail {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--bp-line-light);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bp-red);
  text-decoration: none;
  word-break: break-word;
}

.bpk__loc-mail:hover { text-decoration: underline; }

/* ---- Formularbereich ------------------------------------------------ */
.bpk__form-wrap {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(20px, 3vw, 32px);
  align-items: stretch;
}

/* ---- Linke Spalte ---------------------------------------------------- */
.bpk__aside {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(26px, 3.5vw, 40px);
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--bp-red), var(--bp-red-dark));
  box-shadow: 0 30px 70px -28px rgba(133, 14, 21, 0.5);
}

.bpk__aside::before {
  content: '';
  position: absolute;
  top: -170px;
  right: -130px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.bpk__aside > * { position: relative; z-index: 1; }

.bpk__aside-title {
  margin: 0;
  font-size: clamp(21px, 2.8vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.bpk__aside-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
}

.bpk__aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.bpk__aside-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.94);
}

.bpk__aside-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.bpk__aside-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: auto 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
}

.bpk__aside-note svg { flex-shrink: 0; width: 16px; height: 16px; margin-top: 1px; }

.bpk__aside-note a { color: #ffffff; text-decoration: underline; }

/* ---- Formular --------------------------------------------------------- */
.bpk__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(26px, 3.5vw, 40px);
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--bp-line);
  box-shadow: var(--bp-shell);
}

.bpk__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.bpk__field { display: flex; flex-direction: column; gap: 7px; }

.bpk__label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bp-text-light);
}

.bpk__input {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--bp-line);
  background: var(--bp-bg-softer);
  font-family: inherit;
  font-size: 15px;
  color: var(--bp-text);
  transition: border-color 0.25s var(--bp-ease), box-shadow 0.25s var(--bp-ease), background 0.25s var(--bp-ease);
}

.bpk__input::placeholder { color: var(--bp-text-light); }

.bpk__input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--bp-red);
  box-shadow: 0 0 0 3px var(--bp-red-line);
}

.bpk__textarea { resize: vertical; min-height: 130px; line-height: 1.65; }

.bpk__consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--bp-text-muted);
  cursor: pointer;
}

.bpk__consent input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--bp-red);
  cursor: pointer;
}

.bpk__consent a { color: var(--bp-red); font-weight: 600; }

.bpk__submit { align-self: flex-start; margin-top: 4px; }

/* Leer, bis kontakt.js nach dem Absenden einen Hinweis hineinschreibt. */
.bpk__status { margin: 0; font-size: 14px; font-weight: 600; color: var(--bp-red); }
.bpk__status:empty { display: none; }

.bpk__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 4px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--bp-line-light);
  font-size: 12px;
  font-weight: 600;
  color: var(--bp-text-light);
}

.bpk__trust span { display: inline-flex; align-items: center; gap: 7px; }

/* ---- CTA ---------------------------------------------------------------- */
.bpk__cta-wrap { padding: var(--bp-section-y) 0; }

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .bpk__locations { grid-template-columns: 1fr 1fr; }
  .bpk__loc--featured { grid-column: span 2; }
}

@media (max-width: 900px) {
  .bpk__form-wrap { grid-template-columns: 1fr; }
  .bpk__call { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .bpk__office { margin-top: clamp(-16px, -1.5vw, -6px); }
  .bpk__office-frame img { aspect-ratio: 4 / 3; }

  .bpk__locations { grid-template-columns: 1fr; }
  .bpk__loc--featured { grid-column: auto; }

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

  .bpk__submit { align-self: stretch; justify-content: center; }
}

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