/* Mitgestaltung portal cards – from mitgestaltung-komponenten-web */
.portal-section {
  --portal-ink: #102f58;
  --portal-gold: #b78426;
  --portal-olive: #516b4d;
  --portal-border: rgba(118, 95, 59, 0.2);
  --portal-shadow: 0 8px 24px rgba(58, 48, 34, 0.08);
  width: min(1440px, 100%);
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 5rem) clamp(0.75rem, 4vw, 1rem);
  color: var(--portal-ink);
  font-family: var(--font-sans, ui-sans-serif, system-ui, sans-serif);
  background:
    radial-gradient(circle at 5% 40%, rgba(171, 146, 105, 0.08), transparent 26rem),
    radial-gradient(circle at 96% 35%, rgba(171, 146, 105, 0.08), transparent 28rem),
    #fffdf9;
}

.portal-section__header {
  text-align: center;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.portal-section__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.8rem, 2vw, 2rem);
  margin: 0;
  color: var(--portal-gold);
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.portal-section__eyebrow span {
  display: block;
  width: clamp(3rem, 8vw, 8rem);
  height: 1px;
  background: rgba(183, 132, 38, 0.55);
}

.portal-section__title {
  margin: 1rem 0 0;
  font-family: var(--font-display, Georgia, "Times New Roman", serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.08;
  color: var(--portal-ink);
}

.portal-section__intro {
  max-width: 48rem;
  margin: 1.25rem auto 0;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.55;
}

.portal-section__intro p + p {
  margin-top: 0.85rem;
}

.portal-section .portal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.portal-section .portal-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.2rem 1.6rem;
  text-align: center;
  border: 1px solid var(--portal-border);
  border-radius: 1rem;
  background: rgba(255, 253, 249, 0.94);
  box-shadow: var(--portal-shadow);
}

.portal-section .portal-card__visual {
  position: relative;
  width: min(100%, 292px);
  aspect-ratio: 320 / 280;
  margin-inline: auto;
}

.portal-section .portal-card__arch,
.portal-section .portal-card__icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.portal-section .portal-card__icon {
  width: 31%;
  height: 31%;
  left: 34.5%;
  top: 36%;
  color: var(--icon-color, var(--portal-olive));
}

.portal-section .portal-card__rule {
  width: 3.4rem;
  height: 1px;
  margin: 0.45rem auto 1rem;
  background: var(--portal-gold);
}

.portal-section .portal-card__title {
  margin: 0 0 1rem;
  font-family: var(--font-display, Georgia, "Times New Roman", serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.3vw, 2.15rem);
  line-height: 1.12;
  color: var(--portal-ink);
}

.portal-section .portal-card__text {
  margin: 0 auto;
  max-width: 27ch;
  color: #17365d;
  font-size: 1.03rem;
  line-height: 1.58;
}

.portal-section .portal-card__link {
  margin-top: auto;
  padding-top: 1.2rem;
  color: #9b6500;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portal-section .portal-card__link:hover {
  text-decoration: underline;
  color: #9b6500;
}

.portal-section .portal-card__link:focus-visible {
  outline: 3px solid var(--portal-ink);
  outline-offset: 4px;
}

.portal-section__statement {
  margin-top: 1.5rem;
  text-align: center;
}

.portal-section__statement-icon {
  width: 2.7rem;
  height: 2.7rem;
  color: var(--portal-gold);
}

.portal-section__statement-content {
  display: grid;
  grid-template-columns: minmax(2rem, 1fr) auto minmax(2rem, 1fr);
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.35rem;
}

.portal-section__statement-content span {
  height: 1px;
  background: rgba(183, 132, 38, 0.55);
}

.portal-section__statement-content p {
  margin: 0;
  font-family: var(--font-display, Georgia, "Times New Roman", serif);
  font-size: clamp(1.25rem, 2.3vw, 2rem);
  line-height: 1.25;
}

.portal-section__cta {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}

@media (max-width: 1100px) {
  .portal-section .portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .portal-section__eyebrow {
    letter-spacing: 0.18em;
  }

  .portal-section__eyebrow span {
    width: 2rem;
  }

  .portal-section .portal-grid {
    grid-template-columns: 1fr;
  }

  .portal-section__statement-content {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .portal-section__statement-content span {
    width: 7rem;
    margin-inline: auto;
  }

  .portal-section__statement-content p br {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .portal-section .portal-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .portal-section .portal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(58, 48, 34, 0.11);
  }
}
