:root {
  --bg: #f7f5ef;
  --surface: #fbfaf6;
  --green: #17382c;
  --green-2: #315246;
  --text: #171a18;
  --muted: #646b67;
  --line: #dcded8;
  --max: 1180px;
}
/* Harmonische Bereichsfarben: gleiche Gestaltung, eigene Orientierung */
.section-projects {
  --section-accent: #315b49;
  --section-soft: #edf3ef;
}

.section-news {
  --section-accent: #506b73;
  --section-soft: #edf2f3;
}

.section-events {
  --section-accent: #8a5b46;
  --section-soft: #f5eee9;
}

.section-page .projects-page-head,
.section-page .news-page-head,
.section-page .events-page-head {
  position: relative;
  padding-left: 18px;
}

.section-page .projects-page-head::before,
.section-page .news-page-head::before,
.section-page .events-page-head::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 3px;
  background: var(--section-accent);
}

.section-page .section-kicker,
.section-page .project-read-more,
.section-page .news-read-more,
.section-page .event-read-more {
  color: var(--section-accent) !important;
}

.section-page .news-page-image,
.section-page .project-card-image,
.section-page .event-list-image {
  border-top: 3px solid var(--section-accent);
  background: var(--section-soft);
}

.section-page .news-detail-image,
.section-page .project-detail-image,
.section-page .event-detail-image {
  border-top: 3px solid var(--section-accent);
}

/* =========================
   Motion and interaction
========================= */

@keyframes hero-copy-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-art-in {
  from { opacity: 0; transform: translate3d(28px, 12px, 0) scale(0.97); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.site-header {
  transition: background-color 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.site-header.is-scrolled {
  background: rgba(251, 250, 246, 0.88);
  border-color: rgba(23, 56, 44, 0.12);
  box-shadow: 0 10px 30px rgba(23, 56, 44, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav a:not(.nav-cta) {
  position: relative;
}

.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms ease;
}

.nav a:not(.nav-cta):hover::after,
.nav a:not(.nav-cta):focus-visible::after,
.nav a:not(.nav-cta).is-section-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav a:not(.nav-cta).is-section-active {
  color: var(--green);
}

.btn,
.nav-cta,
.submit-button {
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease, color 220ms ease;
}

.btn:hover,
.nav-cta:hover,
.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(23, 56, 44, 0.16);
}

.btn:active,
.nav-cta:active,
.submit-button:active {
  transform: translateY(0) scale(0.98);
}

.hero-copy {
  animation: hero-copy-in 700ms 80ms both cubic-bezier(0.2, 0.75, 0.2, 1);
}

.hero-art {
  animation: hero-art-in 850ms 180ms both cubic-bezier(0.2, 0.75, 0.2, 1);
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms cubic-bezier(0.2, 0.75, 0.2, 1),
              transform 650ms cubic-bezier(0.2, 0.75, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.area,
.event-card,
.news-page-card,
.project-card,
.membership-info article {
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

.area:hover,
.event-card:hover,
.news-page-card:hover,
.project-card:hover,
.membership-info article:hover {
  transform: translateY(-5px);
  border-color: rgba(23, 56, 44, 0.24);
  box-shadow: 0 16px 36px rgba(23, 56, 44, 0.09);
}

.news-page-image,
.project-card-image,
.news-detail-image,
.project-detail-image {
  overflow: hidden;
}

.news-page-image img,
.project-card-image img,
.news-detail-image img,
.project-detail-image img,
.event-list-image img,
.event-detail-image img {
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal { opacity: 1 !important; transform: none !important; }
}

/* =========================
   Base
========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#about,
#areas,
#events,
#news,
#projects {
  scroll-margin-top: 96px;
}

body {
  margin: 0;

  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);

  background: var(--surface);

  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}


/* =========================
   Header
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;

  background: rgba(251, 250, 246, 0.96);

  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 28px;
}


/* =========================
   Logo / Brand
========================= */

.brand {
  display: flex;
  align-items: center;

  gap: 4px;

  white-space: nowrap;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
}

.brand-logo {
  width: 94px;
  height: 94px;

  display: block;
  flex: 0 0 auto;

  object-fit: contain;
}

.footer .brand-logo,
.footer-brand .brand-logo {
  width: 68px;
  height: 68px;
}


/* =========================
   Navigation
========================= */

.nav {
  display: flex;
  align-items: center;

  gap: 14px;

  font-size: 0.84rem;
}

.nav > a[href*="#about"] { order: 1; }

.nav > a[href*="#areas"] { order: 2; }

.nav > a[href="#events"],
.nav > a[href^="events.php"] { order: 4; }

.nav > a[href="#news"],
.nav > a[href^="news.php"] { order: 3; }

.nav > a[href="#projects"],
.nav > a[href^="projects.php"] { order: 5; }

.nav > a[href^="mitgliedschaft.html"] { order: 6; }
.nav > a[href^="kontakt.html"] { order: 7; }

.nav .nav-cta {
  order: 8;
}

.nav a {
  white-space: nowrap;
}

.language-switch {
  order: 9;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 0;
  padding: 3px;
  border: 1px solid #ccd7d1;
  border-radius: 999px;
  background: rgba(255, 255, 255, .52);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.language-switch a {
  min-width: 34px;
  padding: 5px 7px;
  border-radius: 999px;
  color: inherit;
  line-height: 1;
  text-align: center;
}

.language-switch > span {
  display: none;
}

.language-switch a[aria-current="true"] {
  background: var(--green);
  color: #fff;
  text-decoration: none;
}

.content-language-switch {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding-top: 24px;
}

.content-language-switch a {
  padding: 8px 13px;
  border: 1px solid #ccd7d1;
  border-radius: 999px;
  color: #173f32;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}

.content-language-switch a[aria-current="true"] {
  color: #fff;
  border-color: #173f32;
  background: #173f32;
}

.post-language-switch {
  width: fit-content;
  margin: 18px auto 0;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid #d4dbd6;
  border-radius: 10px;
  background: #f1f3ef;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
  font-family: Arial, sans-serif;
  font-size: .76rem;
  font-weight: 700;
}

.post-language-switch a {
  min-width: 78px;
  padding: 8px 12px;
  border-radius: 7px;
  color: #58655f;
  line-height: 1;
  text-align: center;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.post-language-switch a:hover {
  color: var(--green);
}

.post-language-switch a[aria-current="true"] {
  background: var(--surface);
  color: var(--green);
  box-shadow: 0 2px 8px rgba(23, 56, 44, .1);
}

@media (max-width: 620px) {
  .project-detail-header .post-language-switch,
  .news-detail-header .post-language-switch,
  .event-detail-header .post-language-switch {
    margin-left: 0;
  }
}


/* =========================
   Teilen
========================= */

.share-panel {
  margin-top: 42px;
  padding: 24px 0;
  border-top: 1px solid rgba(23, 63, 50, 0.18);
  border-bottom: 1px solid rgba(23, 63, 50, 0.18);
}

.share-panel-title {
  display: block;
  margin-bottom: 14px;
  color: var(--green);
  font-family: Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid rgba(23, 63, 50, 0.22);
  border-radius: 999px;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.share-button:hover,
.share-button:focus-visible,
.share-button.is-copied {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  transform: translateY(-1px);
}

.share-button svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.share-button.share-icon {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  justify-content: center;
  border-color: #d8e0db;
  border-radius: 50%;
  background: #f0f4f1;
  color: #24493c;
}

.share-button.share-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.share-button.share-whatsapp svg {
  width: 19px;
  height: 19px;
}

.share-button.share-telegram svg {
  width: 17px;
  height: 17px;
  transform: translateX(-1px);
}

.share-button.share-facebook svg,
.share-button.share-x svg {
  width: 16px;
  height: 16px;
}

.share-button.share-icon:hover,
.share-button.share-icon:focus-visible {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.share-feedback {
  min-height: 1em;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

@media (max-width: 620px) {
  .share-panel { margin-top: 32px; }
  .share-actions { gap: 8px; }
  .share-button { padding: 9px 11px; }
}

.nav-cta {
  padding: 11px 16px;

  border: 1px solid var(--green);

  background: var(--green);
  color: #fff;
}

.menu-toggle,
.burger {
  display: none;
}


/* =========================
   Hero
========================= */

.hero {
  position: relative;
  overflow: hidden;

  background: var(--bg);

  border-bottom: 1px solid var(--line);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 62px;
  bottom: 62px;
  width: 52px;
  background: url("../bilder/vainakh-side-ornament-medium.png") center / auto 100% no-repeat;
  opacity: 0.2;
  pointer-events: none;
}

.hero::before {
  left: max(12px, calc((100vw - var(--max)) / 2 - 86px));
}

.hero::after {
  right: max(12px, calc((100vw - var(--max)) / 2 - 86px));
  transform: scaleX(-1);
}

.hero-grid {
  position: relative;
  z-index: 1;
}

.hero-grid {
  min-height: 520px;
  padding: 72px 0;

  display: grid;
  grid-template-columns: 0.85fr 1.15fr;

  align-items: center;

  gap: 54px;
}

.hero-copy {
  max-width: 540px;
}

.kicker,
.section-kicker {
  margin: 0 0 12px;

  color: var(--green-2);

  font-size: 0.78rem;
  font-weight: 700;

  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  color: var(--green);

  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero h1 {
  margin: 0;

  font-size: clamp(2.35rem, 3.7vw, 3.5rem);

  line-height: 1.08;
}

.lead {
  max-width: 520px;

  margin: 24px 0 0;

  color: #333834;

  font-size: 1.05rem;
}

.hero-actions {
  display: flex;

  gap: 14px;

  margin-top: 30px;
}

.hero-art {
  align-self: end;
}

.hero-art img {
  width: 100%;
  max-height: 470px;

  object-fit: contain;
  object-position: right bottom;
}


/* =========================
   Buttons
========================= */

.btn {
  min-height: 46px;

  padding: 0 20px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--green);

  font-weight: 600;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--green);
}


/* =========================
   Sections
========================= */

.section {
  padding: 64px 0;

  border-bottom: 1px solid var(--line);
}

.section-soft {
  background: var(--bg);
}

.narrow {
  max-width: 760px;

  margin-inline: auto;
}

.section h2 {
  margin: 0 0 20px;

  font-size: clamp(1.8rem, 2.6vw, 2.45rem);

  line-height: 1.08;
}

.narrow > p:last-child {
  color: var(--muted);

  font-size: 1.08rem;
}

/* =========================
   Über uns
========================= */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: start;
  gap: clamp(54px, 8vw, 110px);
}

.about-intro {
  max-width: 650px;
}

.about-intro h2 {
  max-width: 620px;
  margin-bottom: 24px;
  font-size: clamp(2rem, 3vw, 3rem);
}

.about-text {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.about-link {
  display: inline-block;
  margin-top: 28px;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 700;
}

.about-link:hover {
  text-decoration: underline;
}

.about-facts {
  border-top: 1px solid var(--green);
}

.about-fact {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 18px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}

.about-fact > span {
  padding-top: 2px;
  color: var(--green-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
}

.about-fact strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 400;
}

.about-fact p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .about-facts {
    max-width: 620px;
  }
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 24px;

  margin-bottom: 34px;
}

.text-link {
  color: var(--green);

  font-size: 0.9rem;
}


/* =========================
   Areas
========================= */

.areas-grid {
  display: grid;

  grid-template-columns: repeat(5, 1fr);

  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.area {
  padding: 30px 24px;

  border-right: 1px solid var(--line);
}

.area:last-child {
  border-right: 0;
}

.icon {
  display: block;

  margin-bottom: 22px;

  color: var(--green-2);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.area h3,
.cards h3 {
  margin: 0 0 10px;

  font-size: 1rem;
}

.area p,
.cards p {
  margin: 0;

  color: var(--muted);

  font-size: 0.92rem;
}


/* =========================
   Cards
========================= */

.cards {
  display: grid;

  gap: 18px;
}

.cards.three {
  grid-template-columns: repeat(3, 1fr);
}

.event-card,
.project-card {
  padding: 26px;

  border: 1px solid var(--line);

  background: transparent;
}

.date {
  margin-bottom: 20px !important;

  color: var(--green) !important;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem !important;
}


/* =========================
   Membership
========================= */

.membership {
  background: var(--green);

  color: #fff;
}

.membership .section-kicker,
.membership h2 {
  color: #fff;
}

.membership-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 40px;
}

.membership-inner p {
  max-width: 680px;

  color: #e2e6e3;
}

.membership .btn {
  border-color: #fff;

  background: #fff;

  color: var(--green);
}


/* =========================
   Footer
========================= */

.footer {
  padding: 58px 0 20px;

  background: #f0efe9;
}

.footer-grid {
  display: grid;

  grid-template-columns: 1.5fr repeat(3, 1fr);

  gap: 50px;
}

.footer-grid h3 {
  margin: 0 0 16px;

  font-size: 0.9rem;
}

.footer-grid > div > a:not(.brand) {
  display: block;

  margin: 8px 0;

  color: #3b413d;

  font-size: 0.9rem;
}

.footer-grid > div:nth-child(3) p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.footer-grid > div:nth-child(3) a[href^="mailto:"] {
  width: fit-content;
  margin-bottom: 14px;
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: rgba(23, 63, 50, .32);
  text-underline-offset: 4px;
}

.footer-grid > div:nth-child(3) a[href="kontakt.html"] {
  width: fit-content;
  margin-top: 16px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--green);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
}

.footer-copy {
  color: var(--muted);

  font-size: 0.9rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;

  gap: 20px;

  margin-top: 42px;
  padding-top: 18px;

  border-top: 1px solid var(--line);

  color: var(--muted);

  font-size: 0.82rem;
}


/* =========================
   Tablet
========================= */

@media (max-width: 1280px) {
  .hero::before,
  .hero::after {
    top: 48px;
    bottom: 48px;
    width: 38px;
    opacity: 0.14;
  }

  .burger {
    width: 42px;
    height: 42px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 5px;

    cursor: pointer;
  }

  .burger span {
    width: 24px;
    height: 1px;

    display: block;

    background: var(--green);
  }

  .nav {
    position: absolute;

    top: 76px;
    left: 20px;
    right: 20px;

    display: none;

    flex-direction: column;
    align-items: stretch;

    gap: 0;

    padding: 18px;

    background: var(--surface);

    border: 1px solid var(--line);
  }

  .nav a {
    padding: 12px 0;
  }

  .nav .language-switch {
    order: 9;
    justify-content: flex-end;
    gap: 8px;
    margin: 10px 0 0;
    padding: 14px 0 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    font-size: 0.76rem;
  }

  .nav .language-switch > span {
    display: none;
  }

  .nav .language-switch a {
    min-width: 74px;
    padding: 8px 12px;
    border: 1px solid #ccd7d1;
    border-radius: 999px;
    text-align: center;
  }

  .nav .language-switch a::after {
    display: none;
  }

  .nav .language-switch a[aria-current="true"] {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
    text-decoration: none;
  }

  .nav-cta {
    margin-top: 8px;

    padding: 12px !important;

    text-align: center;
  }

  .menu-toggle:checked ~ .nav {
    display: flex;
  }

  .hero-grid {
    min-height: auto;

    padding-top: 70px;

    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-art {
    width: 100%;

    margin-top: 20px;
  }

  .hero-art img {
    max-height: 360px;

    margin-left: auto;
  }

  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .area {
    border-bottom: 1px solid var(--line);
  }

  .cards.three {
    grid-template-columns: 1fr;
  }

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


/* =========================
   Mobile
========================= */

@media (max-width: 620px) {
  .hero::before {
    display: none;
  }

  .hero::after {
    display: block;
    top: auto;
    right: auto;
    bottom: 20px;
    left: 50%;
    width: min(64vw, 260px);
    height: 44px;
    background: url("../bilder/vainakh-mobile-ornament.png") center / contain no-repeat;
    opacity: 0.32;
    transform: translateX(-50%);
  }

  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand {
    gap: 4px;

    font-size: 1.05rem;
  }

  .brand-logo {
    width: 72px;
    height: 72px;
  }

  .footer .brand-logo,
  .footer-brand .brand-logo {
    width: 56px;
    height: 56px;
  }

  .hero-grid {
    padding-top: 52px;
    padding-bottom: 78px;

    gap: 28px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;

    align-items: stretch;
  }

  .section {
    padding: 60px 0;
  }

  .section-head {
    flex-direction: column;

    align-items: flex-start;

    margin-bottom: 24px;
  }

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

  .area {
    padding: 24px 0;

    border-right: 0;
  }

  .membership-inner {
    flex-direction: column;

    align-items: flex-start;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

/* =========================
   Spenden auf Startseite
========================= */

.donation-section {
  background: var(--bg);
  color: var(--text);
}

.donation-section .section-kicker {
  color: var(--green-2);
}

.donation-section h2 {
  color: var(--green);
}

.donation-section p {
  color: #343936;
}

.donation-section strong {
  color: var(--text);
}

/* =========================================================
   NACHRICHTEN – FINAL
========================================================= */

#news {
  padding: 52px 0;
}

#news .section-head {
  margin-bottom: 26px;
}

#news .news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

#news .news-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--surface);
}

#news .news-grid:has(.news-card:only-child) {
  grid-template-columns: 1fr;
}

#news .news-card:only-child {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(280px, 38%) minmax(0, 1fr);
}

#news .news-card:only-child .news-card-image {
  height: 100%;
  min-height: 220px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

#news .news-card:only-child .news-card-content {
  min-height: 220px;
  padding: 28px 30px;
}

#news .news-card-image {
  width: 100%;
  height: 210px;
  display: block;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

#news .news-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

#news .news-card-content {
  flex: 1;
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
}

#news .news-card h3 {
  margin: 0 0 10px;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.3;
  min-height: 2.6em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#news .news-card h3 a {
  color: inherit;
}

#news .news-card-content > p {
  margin: 0 0 20px;
  color: #4f5652;
  font-size: 0.88rem;
  line-height: 1.55;
  min-height: 4.1em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

#news .news-card-footer {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

#news .news-read-more {
  min-height: 39px;
  width: fit-content;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
  font-size: 0.81rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

#news .news-read-more:hover {
  background: var(--green);
  color: #fff;
}

#news .news-card-footer .news-date {
  margin: 0;
  flex: 0 0 auto;
  color: rgba(49, 82, 70, 0.7);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  font-style: italic;
  font-weight: 400;
  white-space: nowrap;
}

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

  #news .news-card-image {
    height: 220px;
  }
}

@media (max-width: 620px) {
  #news {
    padding: 40px 0;
  }

  #news .news-grid {
    grid-template-columns: 1fr;
  }

  #news .news-card:only-child {
    display: flex;
  }

  #news .news-card:only-child .news-card-image {
    height: 210px;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  #news .news-card:only-child .news-card-content {
    min-height: 0;
    padding: 22px 24px 24px;
  }

  #news .news-card-image {
    height: 240px;
  }

  #news .news-card-content {
    padding: 20px;
  }
}

/* =========================================================
   NEWS PAGE
========================================================= */

/* =========================================================
   NEWS PAGE
========================================================= */

.news-page {
  padding: 52px 0 72px;
}

.news-page > .container {
  max-width: 1080px;
}


/* Header */

.news-page-head {
  max-width: 620px;
  margin-bottom: 38px;
}

.news-page-head .section-kicker {
  margin-bottom: 8px;
}

.news-page-head h1 {
  margin: 0 0 12px;

  color: var(--green);

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.08;
}

.news-page-head > p:last-child {
  margin: 0;

  color: var(--muted);

  font-size: 0.95rem;
  line-height: 1.6;
}


/* =========================
   News Grid
========================= */

.news-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 36px 28px;
}


/* =========================
   News Card
========================= */

.news-page-card {
  min-width: 0;

  display: flex;
  flex-direction: column;

  border-top: 1px solid var(--line);

  background: transparent;
}


/* Image */

.news-page-image {
  width: 100%;
  height: 230px;

  margin-top: 16px;

  display: block;
  overflow: hidden;

  background: var(--bg);
}

.news-page-image img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
}


/* Content */

.news-page-content {
  flex: 1;

  padding: 18px 0 0;

  display: flex;
  flex-direction: column;
}

.news-page-content h2 {
  max-width: 440px;

  margin: 0 0 10px;

  color: var(--green);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.25;
}

.news-page-content h2 a {
  color: inherit;
}

.news-page-excerpt {
  max-width: 470px;

  margin: 0 0 20px;

  color: var(--muted);

  font-size: 0.9rem;
  line-height: 1.6;
}


/* Footer row */

.news-page-footer {
  margin-top: auto;
  padding-top: 14px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 28px;
}


/* Weiterlesen */

.news-page-footer .news-read-more {
  padding: 0;

  border: 0;

  background: transparent;

  color: var(--green) !important;

  font-size: 0.84rem;
  font-weight: 600;
}

.news-page-footer .news-read-more::after {
  content: " →";
}

.news-page-footer .news-read-more:hover {
  background: transparent;

  text-decoration: underline;
}


/* Date */

.news-page-footer .news-date {
  margin: 0 8px 0 auto;
  padding-left: 12px;

  color: rgba(49, 82, 70, 0.62);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.77rem;
  font-style: italic;

  white-space: nowrap;
}


/* =========================
   First article
========================= */

.news-page-card:first-child {
  grid-column: 1 / -1;

  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);

  gap: 32px;

  padding-bottom: 36px;

  border-bottom: 1px solid var(--line);
}

.news-page-card:first-child .news-page-image {
  height: 230px;

  margin-top: 16px;
}

.news-page-card:first-child .news-page-content {
  padding-top: 30px;
}

.news-page-card:first-child .news-page-content h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);

  line-height: 1.12;
}

.news-page-card:first-child .news-page-excerpt {
  font-size: 0.96rem;
}


/* =========================
   Tablet
========================= */

@media (max-width: 900px) {

  .news-page-card:first-child {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .news-page-card:first-child .news-page-image {
    height: 230px;
  }

  .news-page-card:first-child .news-page-content {
    padding-top: 20px;
  }

}


/* =========================
   Smartphone
========================= */

@media (max-width: 620px) {

  .news-page {
    padding: 40px 0 56px;
  }

  .news-page-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .news-page-card:first-child {
    grid-column: auto;

    padding-bottom: 30px;
  }

  .news-page-image,
  .news-page-card:first-child .news-page-image {
    height: 210px;
  }

  .news-page-card:first-child .news-page-content h2 {
    font-size: 1.5rem;
  }

}


/* =========================================================
   NEWS DETAIL
========================================================= */

.news-detail {
  padding: 48px 0 64px;
}

.news-detail-container {
  width: min(calc(100% - 40px), 840px);
  margin: 0 auto;
}

.news-detail-header {
  max-width: 680px;
  margin: 0 auto 28px;

  text-align: center;
}

.news-detail-date {
  margin: 0 0 10px;

  color: var(--green-2);

  font-size: 0.72rem;
  font-weight: 700;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-detail-header h1 {
  margin: 0 0 14px;

  color: var(--green);

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 400;

  line-height: 1.1;
}

.news-detail-lead {
  max-width: 600px;
  margin: 0 auto;

  color: var(--muted);

  font-size: 1rem;
  line-height: 1.6;
}

.news-detail-image {
  width: 100%;
  max-width: 720px;

  margin: 0 auto 32px;

  overflow: hidden;

  border: 1px solid var(--line);

  background: var(--bg);
}

.news-detail-image img {
  width: 100%;
  max-height: 390px;

  display: block;

  object-fit: cover;
}

.news-detail-content {
  max-width: 620px;

  margin: 0 auto;

  color: #2c312e;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.8;
}

.news-detail-back {
  max-width: 620px;

  margin: 40px auto 0;
  padding-top: 18px;

  border-top: 1px solid var(--line);
}

.news-detail-back a {
  color: var(--green);

  font-size: 0.84rem;
  font-weight: 600;
}

.news-detail-back a:hover {
  text-decoration: underline;
}


/* =========================================================
   NEWS RESPONSIVE
========================================================= */

@media (max-width: 620px) {

  .news-page,
  .news-detail {
    padding: 38px 0 54px;
  }

  .news-page-head h1,
  .news-detail-header h1 {
    font-size: 2rem;
  }

  .news-page-image {
    height: 185px;
  }

  .news-detail-container {
    width: min(calc(100% - 28px), 840px);
  }

  .news-detail-header {
    text-align: left;
  }

  .news-detail-lead {
    margin: 0;
  }

  .news-detail-image img {
    max-height: 280px;
  }

}

/* =========================================================
   BRAND / LOGO – FINAL
========================================================= */

.brand {
  gap: 4px;
}

.site-header .brand-logo {
  width: 94px;
  height: 94px;
}

.footer .brand-logo {
  width: 68px;
  height: 68px;
}

@media (max-width: 620px) {
  .brand {
    gap: 4px;
  }

  .site-header .brand-logo {
    width: 72px;
    height: 72px;
  }

  .footer .brand-logo {
    width: 56px;
    height: 56px;
  }
}

/* =========================================================
   PROJECTS
========================================================= */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  overflow: hidden;

  display: flex;
  flex-direction: column;

  border: 1px solid var(--line);

  background: var(--surface);
}

.project-card-image {
  width: 100%;
  height: 220px;

  overflow: hidden;

  background: var(--bg);

  border-bottom: 1px solid var(--line);
}

.project-card-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.project-card-content {
  padding: 20px 22px 22px;
}

.project-card-content h3 {
  margin: 0 0 10px;

  color: var(--green);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.25;
}

.project-card-content p {
  margin: 0;

  color: var(--muted);

  font-size: 0.9rem;
  line-height: 1.55;
}

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

@media (max-width: 620px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card-image {
    height: 210px;
  }
}

/* =========================================================
   PROJECTS PAGE
========================================================= */

.project-card-content h2 {
  margin: 0 0 10px;

  color: var(--green);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 400;

  line-height: 1.25;
}

.project-card-content h2 a {
  color: inherit;
}

.project-read-more {
  display: inline-block;

  margin-top: 18px;

  color: var(--green);

  font-size: 0.84rem;
  font-weight: 600;
}

.project-read-more:hover {
  text-decoration: underline;
}

/* =========================================================
   PROJECT DETAIL
========================================================= */

.project-detail {
  padding: 52px 0 72px;
}

.project-detail-container {
  max-width: 840px;
}

.project-detail-header {
  max-width: 680px;

  margin: 0 auto 30px;

  text-align: center;
}

.project-detail-header h1 {
  margin: 0;

  color: var(--green);

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 400;

  line-height: 1.1;
}

.project-detail-image {
  max-width: 760px;

  margin: 0 auto 36px;

  overflow: hidden;

  border: 1px solid var(--line);
}

.project-detail-image img {
  width: 100%;
  max-height: 430px;

  display: block;

  object-fit: cover;
}

.project-detail-content {
  max-width: 640px;

  margin: 0 auto;

  color: #2c312e;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;

  line-height: 1.8;
}

.project-detail-back {
  max-width: 640px;

  margin: 42px auto 0;
  padding-top: 18px;

  border-top: 1px solid var(--line);
}

.project-detail-back a {
  color: var(--green);

  font-size: 0.85rem;
  font-weight: 600;
}

.project-detail-back a:hover {
  text-decoration: underline;
}

@media (max-width: 620px) {

  .project-detail {
    padding: 40px 0 56px;
  }

  .project-detail-header {
    text-align: left;
  }

  .project-detail-header h1 {
    font-size: 2rem;
  }

  .project-detail-image img {
    max-height: 300px;
  }

}

/* =========================================================
   PROJECT CARDS – REFINED
========================================================= */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  overflow: hidden;

  display: flex;
  flex-direction: column;

  border: 1px solid var(--line);

  background: var(--surface);

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.project-card:hover {
  transform: translateY(-3px);

  border-color: #c8cec9;

  box-shadow:
    0 10px 28px rgba(23, 56, 44, 0.08);
}

.project-card-image {
  width: 100%;
  height: 230px;

  display: block;
  overflow: hidden;

  background: var(--bg);

  border-bottom: 1px solid var(--line);
}

.project-card-image img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition: none;
}

.project-card:hover
.project-card-image img {
  transform: none;
}

.project-card-content {
  flex: 1;

  padding: 22px 22px 24px;

  display: flex;
  flex-direction: column;
}

.project-card-content h3,
.project-card-content h2 {
  margin: 0 0 10px;

  color: var(--green);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 1.2rem;
  font-weight: 400;

  line-height: 1.25;
}

.project-card-content h3 a,
.project-card-content h2 a {
  color: inherit;
}

.project-card-content p {
  margin: 0;

  color: var(--muted);

  font-size: 0.9rem;
  line-height: 1.6;
}

.project-read-more {
  width: fit-content;

  margin-top: 20px;

  color: var(--green);

  font-size: 0.82rem;
  font-weight: 600;

  letter-spacing: 0.01em;
}

.project-read-more:hover {
  text-decoration: underline;
}


/* =========================================================
   PROJECTS PAGE
========================================================= */

.projects-page {
  padding: 54px 0 76px;
}

.projects-page-head {
  max-width: 650px;

  margin-bottom: 38px;
}

.projects-page-head h1 {
  margin: 0 0 12px;

  color: var(--green);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(2rem, 3vw, 2.7rem);

  font-weight: 400;

  line-height: 1.08;
}

.projects-page-head > p:last-child {
  margin: 0;

  color: var(--muted);

  font-size: 0.95rem;
  line-height: 1.6;
}


/* =========================================================
   PROJECT DETAIL – REFINED
========================================================= */

.project-detail {
  padding: 50px 0 72px;
}

.project-detail-container {
  width:
    min(
      calc(100% - 40px),
      860px
    );

  margin: 0 auto;
}

.project-detail-header {
  max-width: 680px;

  margin: 0 auto 30px;

  text-align: center;
}

.project-detail-header h1 {
  margin: 0;

  color: var(--green);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(2rem, 3vw, 2.7rem);

  font-weight: 400;

  line-height: 1.1;
}

.project-detail-image {
  width: 100%;
  max-width: 760px;

  margin: 0 auto 38px;

  overflow: hidden;

  border: 1px solid var(--line);

  background: var(--bg);
}

.project-detail-image img {
  width: 100%;
  max-height: 440px;

  display: block;

  object-fit: cover;
}

.project-detail-content {
  max-width: 640px;

  margin: 0 auto;

  color: #2c312e;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 1rem;
  line-height: 1.82;
}

.project-detail-back {
  max-width: 640px;

  margin: 44px auto 0;
  padding-top: 18px;

  border-top: 1px solid var(--line);
}

.project-detail-back a {
  color: var(--green);

  font-size: 0.84rem;
  font-weight: 600;
}

.project-detail-back a:hover {
  text-decoration: underline;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

  .project-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 620px) {

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

  .project-card-image {
    height: 210px;
  }

  .project-card-content {
    padding: 20px;
  }

  .projects-page {
    padding: 40px 0 56px;
  }

  .projects-page-head h1,
  .project-detail-header h1 {
    font-size: 2rem;
  }

  .project-detail {
    padding: 40px 0 56px;
  }

  .project-detail-container {
    width:
      min(
        calc(100% - 28px),
        860px
      );
  }

  .project-detail-header {
    text-align: left;
  }

  .project-detail-image img {
    max-height: 300px;
  }

}

/* =========================================================
   EVENTS – PUBLIC
========================================================= */

.event-card {
  display: flex;
  flex-direction: column;
}

#events .event-card-image {
  width: calc(100% + 52px);
  height: 210px;
  margin: -26px -26px 22px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

#events .event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  transition: none;
}

#events .event-card-description {
  display: -webkit-box;
  min-height: 4.65em;
  margin-bottom: 16px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

#events .event-card-meta {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

#events .event-card .event-read-more {
  margin-top: auto;
  padding-top: 16px;
}

.event-card h3 a {
  color: inherit;
}

.event-read-more {
  width: fit-content;
  margin-top: 18px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 600;
}

.event-read-more:hover {
  text-decoration: underline;
}

.events-page {
  padding: 54px 0 76px;
}

.events-page-head {
  max-width: 650px;
  margin-bottom: 38px;
}

.events-page-head h1 {
  margin: 0 0 12px;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 400;
  line-height: 1.08;
}

.events-page-head > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.events-list {
  border-top: 1px solid var(--line);
}

.event-list-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 34px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.event-list-card.has-image {
  grid-template-columns: 230px 120px minmax(0, 1fr);
}

.event-list-date {
  padding-right: 24px;
  border-right: 1px solid var(--line);
}

.event-list-day {
  display: block;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.5rem;
  line-height: 1;
}

.event-list-month {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.event-list-content {
  max-width: 720px;
}

.event-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 8px;
  color: var(--green-2);
  font-size: 0.78rem;
  font-weight: 600;
}

.event-list-content h2 {
  margin: 0 0 8px;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 400;
  line-height: 1.2;
}

.event-list-content h2 a {
  color: inherit;
}

.event-list-content > p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.events-empty {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.event-detail {
  padding: 50px 0 72px;
}

.event-detail-container {
  width: min(calc(100% - 40px), 820px);
  margin: 0 auto;
}

.event-detail-header {
  max-width: 680px;
  margin: 0 auto 30px;
  text-align: center;
}

.event-detail-date {
  margin: 0 0 8px;
  color: var(--green-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-detail-header h1 {
  margin: 0;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 400;
  line-height: 1.1;
}

.event-detail-facts {
  max-width: 680px;
  margin: 0 auto 38px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.event-detail-facts > div {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.event-detail-facts > div:last-child {
  border-right: 0;
}

.event-detail-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-detail-facts strong {
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 600;
}

.event-detail-content {
  max-width: 640px;
  margin: 0 auto;
  color: #2c312e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.82;
}

.event-detail-image {
  max-width: 680px;
  margin: 0 auto 30px;
}

.event-detail-image img {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.event-detail-image figcaption,
.news-detail-image figcaption,
.project-detail-image figcaption {
  padding: 8px 12px 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
  text-align: left;
}

.event-list-image {
  align-self: stretch;
  width: 230px;
  height: 230px;
  overflow: hidden;
}

.event-list-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-detail-back {
  max-width: 640px;
  margin: 44px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.event-detail-back a {
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 600;
}

.event-detail-back a:hover {
  text-decoration: underline;
}

@media (max-width: 620px) {
  .events-page {
    padding: 40px 0 56px;
  }

  .events-page-head h1,
  .event-detail-header h1 {
    font-size: 2rem;
  }

  .event-list-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
    padding: 24px 0;
  }

  .event-list-card.has-image {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .event-list-card.has-image .event-list-image {
    grid-column: 1 / -1;
    width: 100%;
    height: 210px;
  }

  .event-list-date {
    padding-right: 14px;
  }

  .event-list-day {
    font-size: 2rem;
  }

  .event-detail {
    padding: 40px 0 56px;
  }

  .event-detail-container {
    width: min(calc(100% - 28px), 820px);
  }

  .event-detail-header {
    text-align: left;
  }

  .event-detail-facts {
    grid-template-columns: 1fr;
  }

  .event-detail-facts > div {
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .event-detail-facts > div:last-child {
    border-bottom: 0;
  }
}

/* =========================================================
   EDITORIAL POST CARDS
========================================================= */

.project-card,
#events .event-card,
#news .news-card,
.news-page-card,
.event-list-card {
  --card-accent: #7f9c86;
  --card-tint: #f4f7f3;
  position: relative;
  overflow: hidden;
  border: 1px solid #d9dfda;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(23, 56, 44, .045);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

#events .event-card,
.event-list-card {
  --card-accent: #b2945e;
  --card-tint: #faf6ed;
}

#news .news-card,
.news-page-card {
  --card-accent: #708f92;
  --card-tint: #f1f6f6;
}

.project-card::after,
#events .event-card::after,
#news .news-card::after,
.news-page-card::after,
.event-list-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 72px;
  height: 4px;
  border-radius: 0 0 4px 0;
  background: var(--card-accent);
  pointer-events: none;
}

.project-card:hover,
#events .event-card:hover,
#news .news-card:hover,
.news-page-card:hover,
.event-list-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--card-accent) 45%, #d9dfda);
  box-shadow: 0 16px 34px rgba(23, 56, 44, .09);
}

.project-card-image,
#events .event-card-image,
#news .news-card-image,
.news-page-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #e0e4e1;
  background: var(--card-tint);
}

.project-card-image img,
#events .event-card-image img,
#news .news-card-image img,
.news-page-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;
}

.project-card-content,
#news .news-card-content,
.news-page-content {
  flex: 1;
  min-height: 0;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
}

.project-card-content h2,
.project-card-content h3,
#news .news-card h3,
.news-page-content h2 {
  min-height: 2.5em;
  max-width: none;
  margin: 0 0 10px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  font-weight: 400;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-card-content > p,
#news .news-card-content > p,
.news-page-excerpt {
  min-height: 4.5em;
  max-width: none;
  margin: 0 0 18px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.project-read-more,
#events .event-read-more,
#news .news-read-more,
.news-page-footer .news-read-more {
  margin-top: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green) !important;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
}

.project-read-more:hover,
#events .event-read-more:hover,
#news .news-read-more:hover,
.news-page-footer .news-read-more:hover {
  background: transparent;
  color: var(--green) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#events .event-card {
  padding: 0 22px 20px;
  background: linear-gradient(to bottom, var(--card-tint) 0, var(--surface) 92px);
}

#events .event-card-image {
  width: calc(100% + 44px);
  margin: 0 -22px 18px;
}

#events .event-card .date {
  margin: 0 0 12px !important;
  color: #876f43 !important;
  font-size: 1.05rem !important;
}

#events .event-card h3 {
  min-height: 2.5em;
  margin: 0 0 10px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#events .event-card-description {
  min-height: 4.5em;
  margin: 0 0 14px;
  line-height: 1.5;
}

#events .event-card-meta {
  min-height: 1.35em;
  margin-top: auto;
  padding-top: 2px;
}

.news-page-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.news-page-card,
.news-page-card:first-child {
  grid-column: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 1px solid #d9dfda;
}

.news-page-card:first-child .news-page-image,
.news-page-card:first-child .news-page-content {
  height: auto;
  margin: 0;
  padding: 22px 22px 20px;
}

.news-page-card:first-child .news-page-image {
  aspect-ratio: 16 / 10;
  padding: 0;
}

.news-page-card:first-child .news-page-content h2 {
  font-size: 1.22rem;
  line-height: 1.25;
}

.news-page-card:first-child .news-page-excerpt {
  font-size: .88rem;
}

.news-page-footer,
#news .news-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #e5e8e6;
}

.news-page-footer .news-date,
#news .news-card-footer .news-date {
  margin-right: 0;
  padding-left: 10px;
  color: #6f7e78;
  font-style: normal;
}

.events-list {
  display: grid;
  gap: 18px;
  border-top: 0;
}

.event-list-card,
.event-list-card.has-image {
  grid-template-columns: 220px 92px minmax(0, 1fr);
  gap: 24px;
  padding: 0 24px 0 0;
  border-bottom: 1px solid #d9dfda;
}

.event-list-image {
  width: 220px;
  height: 100%;
  min-height: 210px;
}

.event-list-date {
  align-self: center;
  padding-right: 20px;
  border-color: #e1ded5;
}

.event-list-content {
  align-self: center;
  max-width: none;
  padding: 24px 0;
}

.event-list-content > p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

@media (max-width: 720px) {
  .event-list-card,
  .event-list-card.has-image {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 18px;
    padding: 0 18px 0 0;
  }

  .event-list-card.has-image .event-list-image {
    grid-column: 1 / -1;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 620px) {
  .news-page-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-card:has(.project-card-image),
  #news .news-card,
  .news-page-card,
  .news-page-card:first-child {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .project-card-image,
  #news .news-card-image,
  #news .news-card:only-child .news-card-image,
  .news-page-image,
  .news-page-card:first-child .news-page-image {
    height: 100%;
    min-height: 154px;
    aspect-ratio: auto;
    border-right: 1px solid #e0e4e1;
    border-bottom: 0;
  }

  .project-card-content,
  #news .news-card-content,
  #news .news-card:only-child .news-card-content,
  .news-page-content,
  .news-page-card:first-child .news-page-content {
    min-height: 154px;
    padding: 15px;
  }

  .project-card-content h2,
  .project-card-content h3,
  #news .news-card h3,
  .news-page-content h2,
  .news-page-card:first-child .news-page-content h2 {
    min-height: 0;
    margin-bottom: 7px;
    font-size: 1rem;
  }

  .project-card-content > p,
  #news .news-card-content > p,
  .news-page-excerpt,
  .news-page-card:first-child .news-page-excerpt {
    min-height: 0;
    margin-bottom: 10px;
    font-size: .78rem;
    -webkit-line-clamp: 2;
  }

  .news-page-footer,
  #news .news-card-footer {
    gap: 8px;
    padding-top: 9px;
  }

  .news-page-footer .news-date,
  #news .news-card-footer .news-date {
    font-size: .68rem;
  }
}
/* Кнопки действий в карточках на главной странице */
#events .event-card .event-read-more,
#news .news-card .news-read-more,
#projects .project-card .project-read-more {
  width: fit-content;
  min-height: 39px;
  margin-top: auto;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green);
  border-radius: 0;
  background: transparent;
  color: var(--green) !important;
  font-size: .81rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

#events .event-card .event-read-more:hover,
#events .event-card .event-read-more:focus-visible,
#news .news-card .news-read-more:hover,
#news .news-card .news-read-more:focus-visible,
#projects .project-card .project-read-more:hover,
#projects .project-card .project-read-more:focus-visible {
  border-color: var(--green);
  background: var(--green);
  color: #fff !important;
  text-decoration: none;
}
