/* Kooperationen – Gemeinsam mehr bewirken */
.cooperations {
  --coop-ink: #0b2f5f;
  --coop-gold: #b68018;
  --coop-olive: #52663c;
  --coop-stone: #777268;
  --coop-line: rgba(126, 95, 41, 0.22);
  --coop-shadow: 0 10px 28px rgba(48, 40, 28, 0.08);
  width: min(1440px, 100%);
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 5rem) clamp(0.75rem, 4vw, 1rem);
  text-align: center;
  color: var(--coop-ink);
  font-family: var(--font-sans, ui-sans-serif, system-ui, sans-serif);
  background:
    radial-gradient(circle at 10% 20%, rgba(181, 151, 100, 0.07), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(181, 151, 100, 0.07), transparent 28%),
    #fffdf9;
}

.cooperations__intro {
  max-width: 48rem;
  margin: 0 auto 1.6rem;
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  line-height: 1.55;
}

.cooperations__ornament {
  color: var(--coop-gold);
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.cooperations__eyebrow {
  margin: 0;
  color: var(--coop-gold);
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.cooperations__eyebrow::before,
.cooperations__eyebrow::after {
  content: "";
  display: inline-block;
  width: clamp(3rem, 9vw, 8rem);
  height: 1px;
  margin: 0 1.4rem 0.35em;
  background: rgba(182, 128, 24, 0.55);
}

.cooperations__title {
  margin: 1rem 0 0.9rem;
  font-family: var(--font-display, Georgia, "Times New Roman", serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 1.05;
  color: var(--coop-ink);
}

.cooperations__divider {
  width: 11rem;
  height: 1.25rem;
  margin: 0 auto 1.6rem;
  position: relative;
}

.cooperations__divider::before,
.cooperations__divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 45%;
  height: 1px;
  background: rgba(182, 128, 24, 0.55);
}

.cooperations__divider::before {
  left: 0;
}

.cooperations__divider::after {
  right: 0;
}

.cooperations__divider span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.65rem;
  height: 0.65rem;
  border: 2px solid var(--coop-gold);
  transform: translate(-50%, -50%) rotate(45deg);
  background: #fffdf9;
}

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

.cooperation-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.5rem 1.25rem 1.2rem;
  border: 1px solid var(--coop-line);
  border-radius: 1rem;
  background: rgba(255, 253, 248, 0.93);
  box-shadow: var(--coop-shadow);
}

.cooperations .coop-portal {
  position: relative;
  width: min(100%, 290px);
  aspect-ratio: 320 / 280;
  margin: 0 auto;
}

.cooperations .coop-portal__arch,
.cooperations .coop-portal__icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cooperations .coop-portal__icon {
  width: 30%;
  height: 30%;
  inset: 37% auto auto 35%;
}

.cooperations .coop-portal__icon--olive {
  color: var(--coop-olive);
}

.cooperations .coop-portal__icon--blue {
  color: var(--coop-ink);
}

.cooperations .coop-portal__icon--stone {
  color: var(--coop-stone);
}

.cooperation-card__rule {
  width: 7rem;
  height: 1rem;
  margin: 0.4rem auto 0.6rem;
  position: relative;
}

.cooperation-card__rule::before,
.cooperation-card__rule::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 43%;
  height: 1px;
  background: rgba(182, 128, 24, 0.6);
}

.cooperation-card__rule::before {
  left: 0;
}

.cooperation-card__rule::after {
  right: 0;
}

.cooperation-card__rule span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 2px solid var(--coop-gold);
  background: white;
}

.cooperation-card h3 {
  margin: 0.25rem 0 0.8rem;
  font-family: var(--font-display, Georgia, "Times New Roman", serif);
  font-weight: 400;
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  line-height: 1.05;
  color: var(--coop-ink);
}

.cooperation-card p {
  margin: 0 auto;
  max-width: 29ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #16345e;
}

.cooperations .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 1.4rem;
  color: #9e6700;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.cooperations .text-link:hover {
  text-decoration: underline;
  color: #9e6700;
}

.cooperations .text-link:focus-visible,
.cooperations .button:focus-visible {
  outline: 3px solid #0b2f5f;
  outline-offset: 4px;
}

.cooperations__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.4rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--coop-line);
  border-radius: 1rem;
  background: rgba(255, 253, 248, 0.95);
  box-shadow: var(--coop-shadow);
}

.cooperations__cta-copy {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  text-align: left;
}

.cooperations__cta-copy p {
  margin: 0;
  font-family: var(--font-display, Georgia, "Times New Roman", serif);
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  line-height: 1.2;
}

.cooperations__cta-icon {
  width: 3.5rem;
  height: 3.5rem;
  flex: 0 0 auto;
  color: var(--coop-gold);
}

.cooperations .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 3.8rem;
  padding: 0.9rem 1.4rem;
  border-radius: 0.45rem;
  background: var(--coop-ink);
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.cooperations .button:hover {
  filter: brightness(1.08);
  color: white;
}

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

@media (max-width: 700px) {
  .cooperations__eyebrow::before,
  .cooperations__eyebrow::after {
    width: 2rem;
    margin-inline: 0.6rem;
  }

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

  .cooperation-card {
    padding-inline: 1rem;
  }

  .cooperations__cta {
    align-items: stretch;
    flex-direction: column;
  }

  .cooperations__cta-copy {
    align-items: flex-start;
  }

  .cooperations .button {
    width: 100%;
    white-space: normal;
  }
}

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

  .cooperation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(48, 40, 28, 0.11);
  }
}
