/*
 * Moderne Darstellung der vier Rechtsbereichs-Buttons.
 * HTML, Texte, Linkziele und die vorhandenen weissen Rund-Icons bleiben
 * unveraendert; diese Datei gestaltet ausschliesslich die Kartenflaechen.
 */

.topic-section .topic-grid {
  align-items: stretch;
  gap: clamp(14px, 1.55vw, 20px);
}

.topic-section .topic-card,
.topic-section .topic-card:nth-child(2) {
  isolation: isolate;
  min-height: 286px;
  padding: 32px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .99) 0%, rgba(248, 250, 252, .98) 58%, rgba(239, 244, 247, .98) 100%);
  border: 1px solid rgba(6, 63, 91, .14);
  border-radius: 24px;
  box-shadow:
    0 18px 42px rgba(3, 44, 66, .085),
    inset 0 1px 0 rgba(255, 255, 255, .96);
  transition:
    background .22s ease,
    border-color .22s ease,
    box-shadow .22s ease,
    transform .22s ease;
}

/* Feine orangefarbene Signatur wie in den uebrigen hellen Fenstern. */
.topic-section .topic-card::before {
  content: "";
  position: absolute;
  z-index: 4;
  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);
  pointer-events: none;
}

/* Ein sehr dezenter Lichtkreis fasst das bestehende Rund-Icon optisch ein. */
.topic-section .topic-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -94px;
  right: -78px;
  width: 188px;
  height: 188px;
  background: radial-gradient(circle, rgba(6, 63, 91, .075) 0%, rgba(6, 63, 91, .025) 48%, transparent 70%);
  border: 1px solid rgba(6, 63, 91, .045);
  border-radius: 50%;
  pointer-events: none;
}

.topic-section .topic-card > img {
  z-index: 0;
  opacity: .045;
  filter: grayscale(1) saturate(.65) contrast(.9);
  transform: scale(1.015);
  transform-origin: center;
  transition: opacity .25s ease, transform .32s ease;
}

.topic-section .topic-card > .topic-copy {
  z-index: 2;
  justify-content: flex-end;
  padding-top: 88px;
}

.topic-section .topic-copy strong {
  color: var(--navy-deep);
  letter-spacing: -.022em;
  line-height: 1.12;
}

.topic-section .topic-copy small {
  max-width: 240px;
  margin-top: 11px;
  color: var(--muted);
  line-height: 1.52;
}

@media (hover: hover) {
  .topic-section .topic-card:hover {
    color: inherit;
    background:
      linear-gradient(145deg, #ffffff 0%, #fbfcfd 58%, #f3f7f9 100%);
    border-color: rgba(239, 117, 0, .38);
    box-shadow:
      0 24px 54px rgba(3, 44, 66, .13),
      inset 0 1px 0 #ffffff;
    transform: translateY(-4px);
  }

  .topic-section .topic-card:hover > img {
    opacity: .065;
    transform: scale(1.045);
  }

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

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

.topic-section .topic-card:focus-visible {
  color: inherit;
  background:
    linear-gradient(145deg, #ffffff 0%, #fbfcfd 58%, #f3f7f9 100%);
  border-color: rgba(239, 117, 0, .48);
  outline: 3px solid rgba(239, 117, 0, .25);
  outline-offset: 4px;
  box-shadow:
    0 24px 54px rgba(3, 44, 66, .13),
    inset 0 1px 0 #ffffff;
  transform: translateY(-3px);
}

.topic-section .topic-card:focus-visible > img {
  opacity: .065;
  transform: scale(1.045);
}

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

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

@media (max-width: 1120px) {
  .topic-section .topic-card,
  .topic-section .topic-card:nth-child(2) {
    min-height: 252px;
    padding: 30px;
    border-radius: 22px;
  }

  .topic-section .topic-card::before {
    left: 30px;
    width: 42px;
  }
}

@media (max-width: 720px) {
  .topic-section .topic-grid {
    gap: 13px;
  }

  .topic-section .topic-card,
  .topic-section .topic-card:nth-child(2) {
    min-height: 204px;
    padding: 24px;
    border-radius: 19px;
    box-shadow:
      0 12px 30px rgba(3, 44, 66, .08),
      inset 0 1px 0 rgba(255, 255, 255, .96);
  }

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

  .topic-section .topic-card::after {
    top: -98px;
    right: -88px;
    width: 180px;
    height: 180px;
  }

  .topic-section .topic-card > .topic-copy {
    padding-top: 70px;
  }

  .topic-section .topic-copy small {
    max-width: min(100%, 280px);
    margin-top: 8px;
    line-height: 1.46;
  }
}

@media (max-width: 380px) {
  .topic-section .topic-card,
  .topic-section .topic-card:nth-child(2) {
    min-height: 196px;
    padding: 22px;
  }

  .topic-section .topic-card::before {
    left: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topic-section .topic-card,
  .topic-section .topic-card > img {
    transition: none;
  }
}
