/* Contact pages: a shared, content-driven layout for IT, EN and DE. */
.contact-hub.section {
  padding-block: clamp(32px, 5vw, 64px);
}

/* Keep focused controls and heading anchors below the sticky navigation. */
.contact-hub a,
.contact-hub iframe,
.contact-hub [id] {
  scroll-margin-top: calc(var(--site-header-height, 90px) + 20px);
  scroll-margin-bottom: 20px;
}

.contact-hub .contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: stretch;
}

.contact-hub .contact-panel,
.contact-hub .contact-location {
  min-width: 0;
  border: 1px solid #e4d9ca;
  border-radius: 22px;
  background: var(--paper-strong);
  box-shadow: 0 14px 40px rgba(74, 43, 24, .06);
}

.contact-hub .contact-panel {
  padding: clamp(20px, 2.4vw, 32px);
}

.contact-hub .eyebrow {
  margin-bottom: 12px;
  font-size: .7rem;
  letter-spacing: .13em;
}

.contact-hub .eyebrow::before {
  width: 26px;
}

.contact-hub h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.25rem);
  font-weight: 500;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.contact-hub .contact-intro {
  margin: 12px 0 24px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.contact-hub .contact-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-hub .contact-method {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 78px;
  padding: 15px;
  border: 1px solid #e8dfd2;
  border-radius: 12px;
  background: #fffdf9;
  transition: border-color .18s ease, background-color .18s ease;
}

.contact-hub .contact-method--phone {
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 9px;
  row-gap: 12px;
}

.contact-hub .contact-method--wide {
  grid-column: 1 / -1;
}

.contact-hub .contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1e9dd;
  color: var(--wood);
}

.contact-hub .contact-method--phone .contact-icon {
  width: 32px;
  height: 32px;
}

.contact-hub svg {
  display: block;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-hub .contact-method--phone svg {
  width: 18px;
  height: 18px;
}

.contact-hub .contact-label {
  display: block;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.contact-hub .contact-value {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.contact-hub .contact-method--phone .contact-value {
  grid-column: 1 / -1;
  margin: 0;
}

.contact-hub .contact-arrow {
  width: 18px;
  height: 18px;
  color: var(--wood);
}

.contact-hub .contact-method--whatsapp {
  background: #f0f7ef;
  border-color: #d4e3d2;
}

.contact-hub .contact-method--whatsapp .contact-icon {
  color: #fff;
  background: #256441;
}

.contact-hub .contact-method--whatsapp .contact-label,
.contact-hub .contact-method--whatsapp .contact-value,
.contact-hub .contact-method--whatsapp .contact-arrow {
  color: #235737;
}

.contact-hub .contact-booking {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.contact-hub .contact-booking-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--wood);
}

.contact-hub .contact-booking h3 {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.contact-hub .contact-booking p {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.contact-hub .contact-booking-button {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 48px;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--wood-dark);
  box-shadow: none;
  font-size: .9rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  transition: background-color .18s ease;
}

.contact-hub .contact-location {
  display: flex;
  flex-direction: column;
  background: #f3eee5;
}

.contact-hub .contact-location-head {
  padding: clamp(20px, 2.4vw, 32px);
}

.contact-hub .contact-location h2 {
  font-size: clamp(1.6rem, 2.2vw, 2rem);
}

.contact-hub .contact-address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  color: #665749;
  font-size: .9rem;
  font-style: normal;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.contact-hub .contact-address svg {
  margin-top: 2px;
  color: var(--wood);
}

.contact-hub .contact-map {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-height: 320px;
  border: 0;
  border-block: 1px solid #e4d9ca;
  background: #e5e9dd;
}

.contact-hub .contact-directions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  margin: 6px;
  padding: 12px 22px;
  border-radius: 0 0 16px 16px;
  color: var(--wood-dark);
  transition: background-color .18s ease;
}

.contact-hub .contact-directions strong,
.contact-hub .contact-directions small {
  display: block;
  overflow-wrap: anywhere;
}

.contact-hub .contact-directions strong {
  font-size: .95rem;
  font-weight: 650;
}

.contact-hub .contact-directions small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .78rem;
}

.contact-hub .contact-directions > .contact-icon {
  border: 1px solid #d9c9b6;
  background: transparent;
}

.contact-hub .contact-registration {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  margin: 18px 4px 0;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.contact-hub .contact-registration strong {
  color: #5b4c3f;
  font-weight: 600;
}

/* Long registration codes must also reflow when visitors enlarge the text. */
.footer-location .footer-meta {
  grid-template-columns: minmax(0, 1fr);
  overflow-wrap: anywhere;
}

@media (hover: hover) {
  .contact-hub .contact-method:hover {
    border-color: #b99e7e;
    background: #f7f0e5;
  }

  .contact-hub .contact-method--whatsapp:hover {
    border-color: #76a480;
    background: #e5f1e3;
  }

  .contact-hub .contact-booking-button:hover {
    background: var(--red);
  }

  .contact-hub .contact-directions:hover {
    background: #eae1d3;
  }
}

@media (max-width: 960px) {
  .contact-hub .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .contact-hub .contact-map {
    flex: none;
    height: clamp(320px, 50vw, 420px);
  }
}

@media (max-width: 540px) {
  .contact-hub .contact-methods {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-hub .contact-method--phone {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 3px 10px;
  }

  .contact-hub .contact-method--phone .contact-icon {
    grid-row: 1 / 3;
  }

  .contact-hub .contact-method--phone .contact-value {
    grid-column: 2;
  }

  .contact-hub .contact-method--wide {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 12px;
  }

  .contact-hub .contact-method--wide .contact-icon {
    width: 32px;
    height: 32px;
  }

  .contact-hub .contact-method--wide .contact-arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .contact-hub a {
    transition: none;
  }
}
