.wp-block-shortcode:has(.coop-site),
.wp-block-html:has(.coop-site),
.wp-block-group:has(.coop-site),
.entry-content:has(.coop-site),
.site-main:has(.coop-site),
.wp-site-blocks:has(.coop-site) {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

html:has(.coop-site),
body:has(.coop-site) {
  margin-top: 0 !important;
  overflow-x: hidden !important;
  overflow-x: clip !important;
}

body:has(.coop-site) #wpadminbar {
  display: none !important;
}

body:has(.coop-site) .wp-block-post-title,
body:has(.coop-site) .entry-title,
body:has(.coop-site) .site-header,
body:has(.coop-site) .site-footer,
body:has(.coop-site) header.site-header,
body:has(.coop-site) footer.site-footer,
body:has(.coop-site) .wp-site-blocks > header,
body:has(.coop-site) .wp-site-blocks > footer,
body:has(.coop-site) header.wp-block-template-part,
body:has(.coop-site) footer.wp-block-template-part,
body:has(.coop-site) .wp-block-template-part:has(header),
body:has(.coop-site) .wp-block-template-part:has(footer) {
  display: none !important;
}

.coop-site,
.coop-site * {
  box-sizing: border-box;
}

.coop-site {
  --coop-blue: #233976;
  --coop-paper: #fbfbfa;
  --coop-white: #ffffff;
  --coop-line: rgba(35, 57, 118, 0.16);
  --coop-soft-line: rgba(156, 156, 156, 0.28);
  --coop-text: #1f2947;
  --coop-muted: #66708b;
  --coop-shadow: 0 28px 90px rgba(35, 57, 118, 0.2);
  position: relative;
  left: auto;
  right: auto;
  width: 100% !important;
  max-width: none !important;
  min-height: 100svh;
  margin-left: 0 !important;
  margin-right: 0 !important;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  overflow: hidden;
  color: var(--coop-text);
  background:
    linear-gradient(180deg, var(--coop-blue) 0 18px, transparent 18px calc(100% - 18px), var(--coop-blue) calc(100% - 18px)),
    radial-gradient(circle at 18% 28%, rgba(35, 57, 118, 0.08), transparent 26%),
    var(--coop-paper);
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  font-style: normal;
  line-height: 1.42;
}

.coop-site::before {
  content: "";
  position: absolute;
  width: min(1700px, 145%);
  aspect-ratio: 1040 / 650;
  top: 49svh;
  left: 42%;
  bottom: auto;
  transform: translateX(-50%);
  background: url("assets/co-mark-watermark.svg") center / contain no-repeat;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

.coop-site a {
  color: inherit;
  text-decoration: none;
}

.coop-card {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  max-width: 980px !important;
  overflow: hidden;
  border: 1px solid var(--coop-line);
  border-radius: 8px;
  background: var(--coop-white);
  box-shadow: var(--coop-shadow);
  isolation: isolate;
}

.coop-card::before,
.coop-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background: var(--coop-blue);
  z-index: 2;
}

.coop-card::before { top: 0; }
.coop-card::after { bottom: 0; }
.coop-card-narrow {
  width: min(100%, 720px);
  max-width: 720px !important;
}

.coop-brand-bar {
  min-height: 104px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  padding: 22px clamp(24px, 4vw, 44px) 20px;
  background: var(--coop-blue);
  color: var(--coop-white);
}

.coop-brand-bar-simple {
  display: block;
  min-height: 0;
  padding: 28px clamp(22px, 5vw, 44px);
}

.coop-logo {
  display: inline-flex;
  align-items: center;
  max-width: 380px;
  min-width: 0;
}

.coop-logo img {
  display: block;
  width: min(100%, 340px);
  height: auto;
  border: 0;
}

.coop-specialty {
  display: inline-grid;
  justify-items: end;
  gap: 4px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.coop-specialty span:last-child {
  color: var(--coop-white);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.coop-content {
  padding: clamp(20px, 3.2vw, 34px) clamp(26px, 4vw, 44px) 28px;
}

.coop-imprint-content {
  padding: clamp(24px, 5vw, 44px);
}

.coop-intro {
  max-width: none;
}

.coop-company {
  display: block !important;
  width: 100% !important;
  padding-top: 2px;
}

.coop-kicker,
.coop-label {
  margin: 0;
  color: var(--coop-muted);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.coop-label {
  margin-bottom: 9px;
  font-size: 0.72rem;
}

.coop-site h1 {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0;
  color: var(--coop-blue);
  font-family: CocoGothic, "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  font-size: clamp(20px, 1.65vw, 27px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
  text-align: center !important;
  text-wrap: balance;
}

.coop-title-part {
  white-space: nowrap;
}

.coop-imprint h1 {
  margin-bottom: 24px;
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1;
}

.coop-competencies {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(3, auto) !important;
  grid-auto-flow: column !important;
  column-gap: clamp(34px, 5.5vw, 64px) !important;
  row-gap: 9px;
  justify-content: center;
  width: min(100%, 720px) !important;
  max-width: 100% !important;
  margin: clamp(22px, 2.8vw, 28px) auto 0 !important;
  padding: 0;
  list-style: none;
  color: #2f3956;
  font-size: clamp(0.96rem, 1.15vw, 1.06rem);
  font-weight: 500;
  line-height: 1.32;
}

.coop-competencies li {
  position: relative;
  padding-left: 18px;
}

.coop-competencies li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coop-blue);
}

.coop-person {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 104px;
  padding: 16px 18px;
  border: 1px solid var(--coop-soft-line);
  border-radius: 8px;
  background: rgba(251, 251, 250, 0.82);
}

.coop-avatar {
  width: 82px;
  height: 82px;
  overflow: hidden;
  border: 2px solid var(--coop-blue);
  border-radius: 50%;
  background: var(--coop-blue);
}

.coop-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.coop-person-name {
  margin: 0;
  color: var(--coop-blue);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  font-weight: 600;
  line-height: 1.08;
}

.coop-person-role {
  margin: 5px 0 0;
  color: var(--coop-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.coop-divider {
  height: 1px;
  margin: clamp(18px, 2.8vw, 26px) 0;
  background: var(--coop-blue);
  opacity: 0.92;
}

.coop-contact-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(330px, 1.1fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: stretch;
}

.coop-contact-list {
  min-width: 0;
  display: grid;
  gap: 12px;
  align-content: center;
}

.coop-contact-row {
  display: grid;
  grid-template-columns: 58px max-content;
  gap: 12px;
  color: var(--coop-blue);
  font-size: clamp(1.04rem, 1.25vw, 1.18rem);
  font-weight: 400;
}

.coop-contact-row span:first-child {
  color: var(--coop-muted);
  font-weight: 500;
}

.coop-contact-row span:last-child { overflow-wrap: normal; }

[data-coop-contact-text="phone"] { white-space: nowrap; }

.coop-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: clamp(18px, 3vw, 24px);
}

.coop-actions-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.coop-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--coop-line);
  border-radius: 8px;
  background: var(--coop-paper);
  color: var(--coop-blue);
  font-size: 0.92rem;
  font-weight: 500;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.coop-action-primary {
  border-color: var(--coop-blue);
  background: var(--coop-blue);
  color: var(--coop-white) !important;
}

.coop-action-primary:visited,
.coop-action-primary:hover,
.coop-action-primary:focus-visible {
  color: var(--coop-white) !important;
}

.coop-action:hover,
.coop-action:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.coop-action:not(.coop-action-primary):hover,
.coop-action:not(.coop-action-primary):focus-visible {
  border-color: var(--coop-blue);
  background: rgba(35, 57, 118, 0.06);
}

.coop-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.coop-web-strip {
  display: block;
  margin: 24px calc(clamp(26px, 4vw, 44px) * -1) 0;
  padding: 11px clamp(26px, 4vw, 44px) 15px;
  background: var(--coop-blue);
  color: var(--coop-white) !important;
  text-align: center;
  font-family: CocoGothic, "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1.04rem, 2.3vw, 1.56rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.coop-web-strip:visited,
.coop-web-strip:hover,
.coop-web-strip:focus-visible {
  color: var(--coop-white) !important;
}

.coop-section {
  display: grid;
  gap: 10px;
  padding: 22px 0;
  border-top: 1px solid var(--coop-blue);
}

.coop-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.coop-value {
  margin: 0;
  color: var(--coop-blue);
  font-size: clamp(1.02rem, 2vw, 1.26rem);
  font-weight: 400;
}

.coop-value span { display: block; }

@media (max-width: 560px) {
  .coop-site { align-items: start; }
  .coop-brand-bar,
  .coop-contact-grid { grid-template-columns: 1fr; }
  .coop-brand-bar { min-height: 0; gap: 16px; }
  .coop-specialty { justify-items: start; white-space: normal; }
  .coop-company { grid-template-columns: 1fr; }
  .coop-competencies {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
    width: 100%;
  }
  .coop-title-part { white-space: normal; }
  .coop-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coop-site::before {
    width: 140%;
    top: 50svh;
    left: 42%;
    bottom: auto;
  }
}

@media (max-width: 460px) {
  .coop-site { padding: 14px; }
  .coop-card,
  .coop-card-narrow {
    width: 100%;
  }
  .coop-content,
  .coop-brand-bar,
  .coop-imprint-content { padding-inline: 18px; }
  .coop-logo img { width: 100%; }
  .coop-person { grid-template-columns: 58px minmax(0, 1fr); }
  .coop-avatar { width: 58px; height: 58px; }
  .coop-actions,
  .coop-actions-two { grid-template-columns: 1fr; }
  .coop-contact-row { grid-template-columns: 1fr; gap: 0; }
}
