/*
 * Ruhige, helle Fenster fuer Rechtsbereiche und Standorte.
 * Texte, Ziele und die vorhandenen runden Rechtsbereichs-Icons bleiben
 * unveraendert; diese Datei gestaltet ausschliesslich Flaechen und Abstaende.
 */
.topic-section,
.offices-section {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  width: min(1320px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
  padding: clamp(68px, 7vw, 96px) clamp(34px, 4.5vw, 64px);
  background:
    radial-gradient(circle at 7% 9%, rgba(239, 117, 0, .09), transparent 23%),
    linear-gradient(135deg, #f8fafb 0%, #eef3f6 58%, #f7f9fa 100%);
  border: 1px solid rgba(6, 63, 91, .12);
  border-radius: 32px;
  box-shadow: 0 24px 64px rgba(3, 44, 66, .11);
  overflow: hidden;
}

.offices-section {
  margin-top: clamp(28px, 4vw, 52px);
  margin-bottom: clamp(18px, 2.4vw, 30px);
}

.topic-section {
  margin-top: clamp(18px, 2.4vw, 30px);
  margin-bottom: clamp(28px, 4vw, 52px);
}

.topic-section::before,
.offices-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -126px;
  left: -112px;
  width: 280px;
  height: 280px;
  background: rgba(239, 117, 0, .055);
  border-radius: 50%;
  filter: blur(5px);
  pointer-events: none;
}

.topic-section .section-heading,
.offices-section .offices-heading {
  margin-bottom: clamp(34px, 4vw, 50px);
}

.topic-section .topic-grid,
.offices-section .offices-grid {
  gap: 16px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.topic-section .topic-card,
.topic-section .topic-card:nth-child(2),
.offices-section .office-card,
.offices-section .office-card:nth-child(2) {
  box-sizing: border-box;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(6, 63, 91, .12);
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(3, 44, 66, .075);
}

.topic-section .topic-card,
.topic-section .topic-card:nth-child(2) {
  min-height: 275px;
  border-right: 1px solid rgba(6, 63, 91, .12);
  border-bottom: 1px solid rgba(6, 63, 91, .12);
  transition:
    background .18s,
    border-color .18s,
    box-shadow .18s,
    transform .18s;
}

.topic-section .topic-card:hover,
.topic-section .topic-card:focus-visible {
  color: inherit;
  background: rgba(255, 255, 255, .97);
  border-color: rgba(239, 117, 0, .38);
  box-shadow: 0 18px 44px rgba(3, 44, 66, .12);
  transform: translateY(-2px);
}

.topic-section .topic-card:hover > img,
.topic-section .topic-card:focus-visible > img {
  opacity: .10;
  transform: scale(1.035);
}

.topic-section .topic-card:hover strong,
.topic-section .topic-card:focus-visible strong {
  color: var(--navy);
}

.topic-section .topic-card:hover small,
.topic-section .topic-card:focus-visible small {
  color: var(--muted);
}

.topic-section .topic-card:focus-visible {
  outline: 3px solid rgba(239, 117, 0, .28);
  outline-offset: 3px;
}

.offices-section .office-card,
.offices-section .office-card:nth-child(2) {
  position: relative;
  min-height: 238px;
  padding: 30px;
  border-right: 1px solid rgba(6, 63, 91, .12);
  border-bottom: 1px solid rgba(6, 63, 91, .12);
  overflow: hidden;
}

.offices-section .office-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  width: 42px;
  height: 3px;
  background: var(--orange);
  border-radius: 0 0 999px 999px;
  box-shadow: 0 7px 18px rgba(239, 117, 0, .17);
}

@media (max-width: 1120px) {
  .topic-section,
  .offices-section {
    width: calc(100% - 40px);
    padding: 58px 32px;
    border-radius: 28px;
  }

  .topic-section .topic-grid,
  .offices-section .offices-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .topic-section .topic-card,
  .topic-section .topic-card:nth-child(2),
  .offices-section .office-card,
  .offices-section .office-card:nth-child(2) {
    border-right: 1px solid rgba(6, 63, 91, .12);
    border-bottom: 1px solid rgba(6, 63, 91, .12);
  }
}

@media (max-width: 720px) {
  .topic-section,
  .offices-section {
    width: calc(100% - 24px);
    padding: 44px 14px 16px;
    border-radius: 22px;
  }

  .offices-section {
    margin-top: 24px;
    margin-bottom: 14px;
  }

  .topic-section {
    margin-top: 14px;
    margin-bottom: 24px;
  }

  .topic-section .section-heading,
  .offices-section .offices-heading {
    margin-right: 8px;
    margin-bottom: 30px;
    margin-left: 8px;
  }

  .topic-section .topic-grid,
  .offices-section .offices-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .topic-section .topic-card,
  .topic-section .topic-card:nth-child(2) {
    min-height: 220px;
    padding: 26px;
    border-radius: 18px;
  }

  .offices-section .office-card,
  .offices-section .office-card:nth-child(2) {
    min-height: 0;
    padding: 26px 24px;
    border-radius: 18px;
  }

  .offices-section .office-card::before {
    left: 24px;
    width: 38px;
  }
}

@media (max-width: 380px) {
  .topic-section,
  .offices-section {
    width: calc(100% - 18px);
    padding-right: 10px;
    padding-left: 10px;
  }

  .topic-section .topic-card,
  .topic-section .topic-card:nth-child(2) {
    padding: 22px;
  }
}
