/* .ags-shell {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
} */

/* Grey band: GP padding breakout keeps content aligned; ::before paints full-viewport background */
.ags-related-area {
  position: relative;
  isolation: isolate;
  background: transparent;
  box-sizing: border-box;
}

.ags-related-area::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  transform: translateX(-50%);
  background: var(--loods-grijs-superlicht, #e9efef);
}

.one-container #content > .site-main > .ags-related-area {
  margin-left: -40px;
  margin-right: -40px;
  width: calc(100% + 80px);
  max-width: 100%;
}

.ags-archive-band.ags-related-area {
  padding: 1.75rem 0 2.5rem;
}

@media (max-width: 768px) {
  .one-container #content > .site-main > .ags-related-area {
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
  }
}

.ags-archive-header {
  margin-bottom: 1.2rem;
}

.ags-archive-title {
  margin: 0 0 0.45rem;
}

.ags-archive-description {
  color: #586473;
}

.ags-archive-sections {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.ags-archive-section-title {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
  line-height: 1.2;
}

.ags-archive-section-title a {
  color: inherit;
  text-decoration: none;
}

.ags-archive-section-title a:hover,
.ags-archive-section-title a:focus {
  text-decoration: underline;
}

.ags-archive-section-description {
  margin: 0 0 1rem;
  color: #586473;
  max-width: 65ch;
}

/* Service cards: horizontal layout (text left, image right) */
.ags-service-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e3e8ee;
  border-radius: 2px;
  background: #ffffff;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ags-service-card:hover,
.ags-service-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(32, 42, 54, 0.1);
}

.ags-service-card-link {
  display: flex;
  flex: 1;
  width: 100%;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.ags-service-card-inner {
  display: flex;
  flex: 1;
  width: 100%;
  flex-direction: row;
  align-items: stretch;
  min-height: 180px;
}

.ags-service-card-body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 1.15rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ags-service-card-title {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 700;
  color: #1a1a1a;
}

.ags-service-card-points {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  flex: 1 1 auto;
}

.ags-service-card-points li {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  line-height: 1.4;
  color: #4f5f6f;
  padding-left: 1rem;
  position: relative;
}

.ags-service-card-points li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #4f5f6f;
}

.ags-service-card-button {
  display: inline-block;
  margin-top: auto;
  padding: 0.45rem 1rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  background: var(--accent-2, #0b5a6f);
  color: #fff;
}

.ags-service-card-media {
  flex: 0 0 38%;
  max-width: 42%;
  align-self: stretch;
  min-height: 100%;
  background: #f4f7fb;
  overflow: hidden;
}

.ags-service-card-media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
}

.ags-single {
  margin: 0 0 2.5rem;
}

.ags-single-hero {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 0;
}

.ags-single-hero-image img {
  width: 100%;
  height: clamp(220px, 30vw, 330px);
  object-fit: cover;
  display: block;
}

.ags-single-content {
  min-width: 0;
}

.ags-single-header {
  padding: 2.5rem 0;
}

.ags-single-title {
  margin: 0;
  line-height: 1.1;
}

.ags-single-intro > :first-child {
  margin-top: 0;
}

.ags-sidebar {
  margin-top: 40px;
  position: sticky;
  top: 1rem;
  align-self: start;
}

.ags-kort-card {
  margin: 0;
  padding: 30px;
  background: #f5f8fa url("https://wendbaargroeien.com/wp-content/uploads/ag-background.svg") center / cover no-repeat;
  border-radius: 0;
}

.ags-kort-title {
  margin: 0 0 30px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
}

.ags-kort-list {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.ags-kort-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 0 0.45rem;
  font-weight: 600;
  line-height: 1.45;
}

.ags-kort-list li::before {
  content: "";
  color: #0d445b;
  width: 0.9rem;
  height: 0.9rem;
  margin-top: 0.24rem;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='currentColor' d='M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='currentColor' d='M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ags-kort-empty {
  margin: 0 0 1rem;
}

.ags-kort-contact {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.75rem;
}

.ags-kort-contact-title {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
}

.ags-kort-contact-avatar-wrap {
  margin: 0;
}

.ags-kort-contact-avatar {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

.ags-kort-contact-actions {
  display: grid;
  gap: 0.6rem;
}

.ags-kort-contact-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  text-decoration: none;
  background: #0d445b;
  color: #fff;
  border-radius: 25px;
  border: 0;
  font-size: 18px;
  line-height: 32px;
  font-weight: 400;
  padding: 5px 15px;
}

.ags-kort-contact-button::before {
  content: "";
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  background-color: currentColor;
}

.ags-kort-contact-button[href^="tel:"]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M1.5 4.5a3 3 0 013-3h1.372c.86 0 1.61.586 1.819 1.42l1.105 4.423a1.875 1.875 0 01-.694 1.955l-1.293.97c-.135.101-.164.249-.126.352a11.285 11.285 0 006.697 6.697c.103.038.25.009.352-.126l.97-1.293a1.875 1.875 0 011.955-.694l4.423 1.105c.834.209 1.42.959 1.42 1.82V19.5a3 3 0 01-3 3h-2.25C8.552 22.5 1.5 15.448 1.5 6.75V4.5z' clip-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M1.5 4.5a3 3 0 013-3h1.372c.86 0 1.61.586 1.819 1.42l1.105 4.423a1.875 1.875 0 01-.694 1.955l-1.293.97c-.135.101-.164.249-.126.352a11.285 11.285 0 006.697 6.697c.103.038.25.009.352-.126l.97-1.293a1.875 1.875 0 011.955-.694l4.423 1.105c.834.209 1.42.959 1.42 1.82V19.5a3 3 0 01-3 3h-2.25C8.552 22.5 1.5 15.448 1.5 6.75V4.5z' clip-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ags-kort-contact-button[href^="mailto:"]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M1.5 8.67v8.58a3 3 0 003 3h15a3 3 0 003-3V8.67l-8.928 5.493a3 3 0 01-3.144 0L1.5 8.67z'/%3E%3Cpath fill='currentColor' d='M22.5 6.908V6.75a3 3 0 00-3-3h-15a3 3 0 00-3 3v.158l9.714 5.978a1.5 1.5 0 001.572 0L22.5 6.908z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M1.5 8.67v8.58a3 3 0 003 3h15a3 3 0 003-3V8.67l-8.928 5.493a3 3 0 01-3.144 0L1.5 8.67z'/%3E%3Cpath fill='currentColor' d='M22.5 6.908V6.75a3 3 0 00-3-3h-15a3 3 0 00-3 3v.158l9.714 5.978a1.5 1.5 0 001.572 0L22.5 6.908z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ags-kort-contact-button:hover,
.ags-kort-contact-button:focus {
  color: #fff;
  background: #0a3550;
}

.ags-testimonials {
  margin-top: 0.9rem;
  padding: 0;
}

.ags-testimonials-title {
  margin: 0 0 0.75rem;
  font-size: 1.08rem;
  font-weight: 600;
}

.ags-testimonials-list {
  display: grid;
  gap: 0.7rem;
}

.ags-testimonial-card {
  border-radius: 10px;
  border: 1px solid #dce3ea;
  background: #fff;
  padding: 0.75rem 0.85rem;
}

.ags-testimonial-text {
  margin: 0;
  font-size: 0.95rem;
  color: #2f3d4a;
}

.ags-testimonial-person {
  margin-top: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.ags-testimonial-avatar-wrap {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;
}

.ags-testimonial-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ags-testimonial-name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2f3d4a;
}

.ags-testimonial-role-line {
  margin: 0.1rem 0 0;
  font-size: 0.81rem;
  color: #516171;
}

.ags-related-services {
  margin-top: 1.7rem;
}

.ags-related-title {
  margin: 0 0 0.9rem;
}

@media (max-width: 900px) {
  .ags-single {
    margin-top: 1rem;
  }

  .ags-single-hero-image img {
    height: clamp(180px, 52vw, 250px);
  }

  .ags-single-header {
    padding: 1.4rem 0 1rem;
  }

  .ags-sidebar {
    margin-top: 0;
    position: static;
    top: auto;
  }

  .ags-kort-card {
    padding: 0 0 1rem;
  }

  .ags-testimonials {
    margin-top: 0.25rem;
    padding: 0 0 1rem;
  }

  .ags-service-card-inner {
    flex-direction: column-reverse;
    min-height: 0;
  }

  .ags-service-card-link {
    min-height: 0;
  }

  .ags-service-card-media {
    flex: 0 0 auto;
    max-width: none;
    width: 100%;
    align-self: auto;
    min-height: 160px;
  }

  .ags-service-card-media img {
    min-height: 160px;
  }
}
