/*
 * WORLD GREEN LUNGS — Aktuality
 * Dedicated, reversible archive and article presentation.
 * Version: 1.0.0
 */

/* Astra hands templates a constrained content container. News owns its canvas. */
body.wgl-news-page #content > .ast-container {
  display: block;
  width: 100%;
  max-width: none;
  padding: 0;
}

body.wgl-news-page .site-content,
body.wgl-news-page #primary.wgl-news-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  float: none;
}

body.wgl-news-page .site-content {
  background: #f7f5ec;
}

.wgl-news-main {
  --news-forest: #203b14;
  --news-forest-dark: #13230d;
  --news-leaf: #98ad16;
  --news-leaf-light: #cbd85d;
  --news-earth: #7a3d14;
  --news-cream: #f7f5ec;
  --news-paper: #fffef9;
  --news-ink: #182111;
  --news-muted: #64705d;
  --news-line: rgba(39, 67, 24, 0.14);
  --news-shadow: 0 20px 55px rgba(26, 39, 17, 0.12), 0 5px 15px rgba(26, 39, 17, 0.06);
  color: var(--news-ink);
  overflow: hidden;
}

.wgl-news-container {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* Hero */
.wgl-news-hero,
.wgl-news-single-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgba(196, 216, 75, 0.2), transparent 23rem),
    linear-gradient(118deg, #172d0e 0%, #294918 55%, #5b310f 145%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08), 0 24px 55px rgba(28, 42, 18, 0.16);
}

.wgl-news-hero {
  min-height: clamp(390px, 48vw, 535px);
  display: grid;
  align-items: center;
}

.wgl-news-hero::before,
.wgl-news-single-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.055), transparent 38%),
    repeating-linear-gradient(135deg, transparent 0 35px, rgba(255, 255, 255, 0.018) 36px 37px);
}

.wgl-news-hero-inner {
  padding-block: clamp(82px, 10vw, 130px);
}

.wgl-news-kicker {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 17px;
  color: #dce783;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wgl-news-kicker::before {
  content: "";
  width: 42px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--news-leaf-light), transparent);
}

.wgl-news-main .wgl-news-hero h1,
.wgl-news-main .wgl-news-single-hero h1 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(3.1rem, 7vw, 6.7rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
  text-shadow: 0 5px 24px rgba(4, 12, 2, 0.3);
}

.wgl-news-hero-intro {
  max-width: 730px;
  margin: 27px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.65vw, 1.25rem);
  line-height: 1.75;
  text-wrap: balance;
}

.wgl-news-hero-pattern {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}

.wgl-news-hero-leaf {
  position: absolute;
  right: max(4vw, calc((100vw - 1300px) / 2));
  bottom: -35px;
  width: clamp(230px, 31vw, 460px);
  height: auto;
  opacity: 0.17;
  transform: rotate(-9deg);
  filter: drop-shadow(0 18px 40px rgba(3, 12, 1, 0.2));
}

.wgl-news-hero-leaf path:first-child {
  fill: rgba(210, 225, 106, 0.5);
  stroke: none;
}

.wgl-news-hero-leaf path:last-child {
  fill: none;
  stroke: #f4f7d2;
  stroke-width: 4;
  stroke-linecap: round;
}

.wgl-news-orbit {
  position: absolute;
  border: 1px solid rgba(218, 230, 130, 0.12);
  border-radius: 50%;
}

.wgl-news-orbit-one {
  right: -8vw;
  top: -23vw;
  width: 55vw;
  height: 55vw;
}

.wgl-news-orbit-two {
  right: 9vw;
  top: -9vw;
  width: 31vw;
  height: 31vw;
}

/* Archive heading and grid */
.wgl-news-listing,
.wgl-news-related {
  position: relative;
  background:
    radial-gradient(circle at 4% 10%, rgba(152, 173, 22, 0.09), transparent 24rem),
    radial-gradient(circle at 96% 80%, rgba(122, 61, 20, 0.06), transparent 28rem),
    var(--news-cream);
}

.wgl-news-listing {
  min-height: 450px;
  padding-block: clamp(70px, 8vw, 112px);
}

.wgl-news-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.wgl-news-section-heading > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wgl-news-eyebrow {
  width: 7px;
  height: 39px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--news-leaf-light), var(--news-leaf));
  box-shadow: 0 6px 15px rgba(127, 151, 13, 0.22);
}

.wgl-news-main .wgl-news-section-heading h2 {
  margin: 0;
  color: var(--news-forest-dark);
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.wgl-news-count {
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 48px;
  padding-inline: 13px;
  border: 1px solid rgba(127, 151, 13, 0.2);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--news-forest);
  font-weight: 800;
  box-shadow: 0 7px 20px rgba(26, 39, 17, 0.06);
}

.wgl-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 34px);
}

.wgl-news-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  padding: 0 !important;
  border: 1px solid rgba(39, 67, 24, 0.11);
  border-radius: 25px;
  background: rgba(255, 254, 249, 0.96);
  box-shadow: var(--news-shadow);
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 380ms ease, border-color 220ms ease;
}

.wgl-news-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #dce2ce, #eef0e4);
}

.wgl-news-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 54%, rgba(17, 32, 10, 0.24));
  pointer-events: none;
}

.wgl-news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1), filter 380ms ease;
}

.wgl-news-card-media.is-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 75% 20%, rgba(203, 216, 93, 0.3), transparent 9rem),
    linear-gradient(135deg, #1f3b14, #5b6f13);
}

.wgl-news-card-media.is-placeholder svg {
  width: 44%;
  max-width: 145px;
  opacity: 0.5;
}

.wgl-news-card-media.is-placeholder svg path:first-child {
  fill: rgba(217, 228, 131, 0.35);
}

.wgl-news-card-media.is-placeholder svg path:last-child {
  fill: none;
  stroke: #f2f5d1;
  stroke-width: 4;
  stroke-linecap: round;
}

.wgl-news-date-badge {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 16px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 99px;
  background: rgba(20, 36, 13, 0.76);
  color: #fff;
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.2;
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.wgl-news-card-body {
  display: flex;
  width: 100%;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(22px, 3vw, 30px);
}

.wgl-news-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 13px;
  color: #7a856f;
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.wgl-news-main .wgl-news-card h3 {
  margin: 0 0 13px;
  font-size: clamp(1.22rem, 2vw, 1.55rem);
  line-height: 1.3;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.wgl-news-card h3 a {
  color: var(--news-forest-dark);
  text-decoration: none;
}

.wgl-news-card-body > p {
  margin: 0 0 23px;
  color: var(--news-muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

.wgl-news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  color: var(--news-earth) !important;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none !important;
}

.wgl-news-arrow {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: rgba(152, 173, 22, 0.13);
  color: var(--news-forest);
  font-size: 1rem;
  transition: transform 250ms ease, background-color 250ms ease;
}

/* Compact Facebook + Instagram + TikTok controls on archive cards. */
.wgl-news-card .wgl-news-card-share {
  width: 100%;
  margin: 21px 0 0 !important;
  padding: 17px 0 0 !important;
  border: 0 !important;
  border-top: 1px solid rgba(39, 67, 24, 0.1) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.wgl-news-card-share > strong {
  margin-bottom: 9px !important;
  color: var(--news-muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.wgl-news-card-share .wgl-news-share-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.wgl-news-card-share :is(.wgl-social-primary, .wgl-share-instagram, .wgl-share-tiktok) {
  justify-content: center;
  min-width: 0;
  min-height: 39px;
  padding: 8px 10px;
  border-radius: 999px !important;
  color: #fff !important;
  font-size: 0.7rem;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: 0 7px 16px rgba(23, 36, 15, 0.12);
  transition: transform 220ms ease, filter 220ms ease, box-shadow 220ms ease;
}

.wgl-news-card-share .wgl-social-primary {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: #1877f2 !important;
  box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.18), 0 7px 16px rgba(23, 36, 15, 0.12);
}

.wgl-news-card-share .wgl-social-primary .wgl-brand-one-icon {
  width: 20px;
  height: 20px;
}

.wgl-news-card-share .wgl-share-instagram {
  background: linear-gradient(115deg, #833ab4, #e1306c 55%, #f77737);
}

.wgl-news-card-share .wgl-share-tiktok {
  background: #111;
}

.wgl-news-card-share :is(.wgl-social-primary, .wgl-share-instagram, .wgl-share-tiktok) svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.wgl-news-card-share .wgl-share-status {
  margin-top: 8px;
  color: var(--news-muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

/* Pagination and empty state */
.wgl-news-pagination {
  margin-top: 48px;
}

.wgl-news-pagination .page-numbers {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wgl-news-pagination a,
.wgl-news-pagination span {
  display: grid;
  place-items: center;
  min-width: 43px;
  height: 43px;
  padding: 0 12px;
  border: 1px solid var(--news-line);
  border-radius: 50px;
  background: #fff;
  color: var(--news-forest);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

.wgl-news-pagination .current {
  border-color: var(--news-leaf);
  background: var(--news-leaf);
  color: #fff;
}

.wgl-news-empty {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 32px;
  border: 1px solid var(--news-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--news-shadow);
}

.wgl-news-empty svg {
  width: 54px;
  flex: 0 0 auto;
  fill: rgba(152, 173, 22, 0.22);
  stroke: var(--news-forest);
  stroke-width: 2;
}

.wgl-news-empty p {
  margin: 0;
}

/* Single hero */
.wgl-news-single-hero {
  min-height: clamp(430px, 53vw, 620px);
  display: grid;
  align-items: end;
}

.wgl-news-single-backdrop,
.wgl-news-single-overlay {
  position: absolute;
  inset: 0;
}

.wgl-news-single-backdrop {
  z-index: -2;
  background-position: center;
  background-size: cover;
  filter: saturate(0.85) contrast(1.03);
  transform: scale(1.015);
}

.wgl-news-single-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 29, 8, 0.96) 0%, rgba(22, 43, 12, 0.84) 54%, rgba(26, 30, 12, 0.48) 100%),
    linear-gradient(0deg, rgba(9, 18, 5, 0.65), transparent 58%);
}

.wgl-news-single-hero:not(.has-image) .wgl-news-single-overlay {
  background:
    radial-gradient(circle at 78% 20%, rgba(196, 216, 75, 0.2), transparent 22rem),
    linear-gradient(118deg, #172d0e 0%, #294918 62%, #5b310f 145%);
}

.wgl-news-single-hero-inner {
  padding-block: clamp(50px, 8vw, 91px);
}

.wgl-news-back {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: clamp(44px, 7vw, 78px);
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 0.76rem;
  font-weight: 750;
  text-decoration: none !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 220ms ease, transform 260ms ease;
}

.wgl-news-main .wgl-news-single-hero h1 {
  max-width: 990px;
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  line-height: 1.05;
}

.wgl-news-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 27px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.79rem;
  font-weight: 650;
}

.wgl-news-single-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wgl-news-single-meta svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #dce783;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Single article */
.wgl-news-article-stage {
  position: relative;
  padding: 0 0 clamp(72px, 9vw, 118px);
  background:
    radial-gradient(circle at 10% 15%, rgba(152, 173, 22, 0.08), transparent 25rem),
    radial-gradient(circle at 90% 75%, rgba(122, 61, 20, 0.055), transparent 29rem),
    var(--news-cream);
}

.wgl-news-article-layout {
  display: flex;
  justify-content: center;
}

.wgl-news-article-card {
  position: relative;
  z-index: 3;
  width: min(880px, 100%);
  margin-top: -39px;
  overflow: hidden;
  border: 1px solid rgba(39, 67, 24, 0.1);
  border-radius: 27px;
  background: var(--news-paper);
  box-shadow: 0 28px 76px rgba(26, 39, 17, 0.14), 0 7px 20px rgba(26, 39, 17, 0.06);
}

.wgl-news-article-accent {
  height: 7px;
  background: linear-gradient(90deg, var(--news-earth), var(--news-leaf) 56%, var(--news-leaf-light));
}

.wgl-news-content {
  padding: clamp(30px, 6vw, 70px);
  color: #2d3528;
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  line-height: 1.85;
}

.wgl-news-content > *:first-child {
  margin-top: 0;
}

.wgl-news-content > *:last-child {
  margin-bottom: 0;
}

.wgl-news-content p,
.wgl-news-content ul,
.wgl-news-content ol {
  margin-block: 0 1.45em;
}

.wgl-news-main .wgl-news-content h2 {
  margin: 1.8em 0 0.65em;
  color: var(--news-forest-dark);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.wgl-news-main .wgl-news-content h3 {
  margin: 1.65em 0 0.6em;
  color: var(--news-forest);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.wgl-news-content .wgl-news-lead {
  margin-bottom: 1.55em;
  padding: 4px 0 4px 22px;
  border-left: 5px solid var(--news-leaf);
  color: var(--news-forest);
  font-size: 1.16em;
  line-height: 1.72;
}

.wgl-news-content a:not(.wgl-social-primary) {
  color: var(--news-earth);
  text-decoration-color: rgba(122, 61, 20, 0.34);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.wgl-news-content :is(.wp-block-image, .wp-block-gallery, figure) {
  margin-block: clamp(28px, 5vw, 45px);
}

.wgl-news-content img {
  height: auto;
  border-radius: 19px;
  box-shadow: 0 17px 43px rgba(26, 39, 17, 0.14);
}

.wgl-news-content blockquote {
  margin: 2em 0;
  padding: 24px 28px;
  border: 0;
  border-radius: 18px;
  background: rgba(152, 173, 22, 0.1);
  color: var(--news-forest);
  font-size: 1.08em;
}

.wgl-news-content .wgl-news-share {
  margin: clamp(35px, 6vw, 58px) 0 0 !important;
  padding: clamp(20px, 4vw, 29px) !important;
  border: 1px solid rgba(127, 151, 13, 0.16) !important;
  border-radius: 19px !important;
  background:
    radial-gradient(circle at 92% 8%, rgba(180, 198, 58, 0.15), transparent 10rem),
    #f7faf3 !important;
  box-shadow: 0 10px 28px rgba(26, 39, 17, 0.07) !important;
}

.wgl-news-content .wgl-news-share > strong {
  color: var(--news-forest-dark);
}

/* Related cards */
.wgl-news-related {
  padding-block: clamp(70px, 8vw, 108px);
  border-top: 1px solid rgba(39, 67, 24, 0.08);
}

.wgl-news-related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wgl-news-related-card .wgl-news-card-media {
  aspect-ratio: 16 / 8.5;
}

.wgl-news-related-card .wgl-news-card-body {
  padding: 22px 24px 25px;
}

.wgl-news-main .wgl-news-related-card h3 {
  font-size: 1.15rem;
}

/* Interaction */
@media (hover: hover) and (pointer: fine) {
  .wgl-news-card:hover {
    transform: translateY(-8px);
    border-color: rgba(127, 151, 13, 0.27);
    box-shadow: 0 29px 68px rgba(26, 39, 17, 0.17), 0 8px 19px rgba(26, 39, 17, 0.07);
  }

  .wgl-news-card:hover .wgl-news-card-media img {
    transform: scale(1.055);
    filter: saturate(1.05) contrast(1.02);
  }

  .wgl-news-card:hover .wgl-news-arrow {
    transform: translateX(4px);
    background: rgba(152, 173, 22, 0.23);
  }

  .wgl-news-card-share :is(.wgl-social-primary, .wgl-share-instagram, .wgl-share-tiktok):hover {
    transform: translateY(-2px);
    filter: brightness(1.06) saturate(1.05);
    box-shadow: 0 11px 22px rgba(23, 36, 15, 0.17);
  }

  .wgl-news-card h3 a:hover,
  .wgl-news-read-more:hover {
    color: var(--news-leaf) !important;
  }

  .wgl-news-back:hover {
    transform: translateX(-3px);
    background: rgba(255, 255, 255, 0.14);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .wgl-news-grid,
  .wgl-news-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wgl-news-hero-leaf {
    right: -55px;
    opacity: 0.12;
  }
}

@media (max-width: 620px) {
  .wgl-news-container {
    width: min(100% - 30px, 1180px);
  }

  .wgl-news-hero {
    min-height: 385px;
  }

  .wgl-news-hero-inner {
    padding-block: 72px;
  }

  .wgl-news-main .wgl-news-hero h1 {
    font-size: clamp(2.7rem, 16vw, 4rem);
  }

  .wgl-news-hero-intro {
    margin-top: 21px;
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .wgl-news-grid,
  .wgl-news-related-grid {
    grid-template-columns: 1fr;
  }

  .wgl-news-section-heading {
    align-items: center;
  }

  .wgl-news-eyebrow {
    height: 33px;
  }

  .wgl-news-card {
    border-radius: 21px;
  }

  .wgl-news-single-hero {
    min-height: 470px;
  }

  .wgl-news-single-hero-inner {
    padding-block: 34px 70px;
  }

  .wgl-news-back {
    margin-bottom: 56px;
  }

  .wgl-news-main .wgl-news-single-hero h1 {
    font-size: clamp(2.2rem, 12vw, 3.3rem);
  }

  .wgl-news-single-meta {
    flex-direction: column;
    gap: 9px;
  }

  .wgl-news-article-card {
    margin-top: -27px;
    border-radius: 21px;
  }

  .wgl-news-content {
    padding: 31px 22px 35px;
    font-size: 1rem;
    line-height: 1.75;
  }

  .wgl-news-content img {
    border-radius: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wgl-news-card,
  .wgl-news-card-media img,
  .wgl-news-arrow,
  .wgl-news-back {
    transition: none !important;
  }
}
