/*
 * Single species profile layout.
 * Loaded only on single fruchttaube posts to keep Astra header and global pages untouched.
 */
body.single-fruchttaube {
  --ftpm-single-max: 1200px;
  --ftpm-single-gutter: clamp(18px, 3vw, 32px);
  --ftpm-single-green: var(--ast-global-color-0, #123b24);
  --ftpm-single-green-deep: #0b2f1b;
  --ftpm-single-green-mid: #174d2f;
  --ftpm-single-gold: var(--ast-global-color-7, #e7c94f);
  --ftpm-single-ink: #13251a;
  --ftpm-single-muted: #56675d;
  --ftpm-single-line: #dce7df;
  --ftpm-single-soft: #f4f8f5;
  background: #fff;
}

body.single-fruchttaube .entry-header,
body.single-fruchttaube .entry-title,
body.single-fruchttaube .ast-single-entry-banner,
body.single-fruchttaube .ast-article-single > .entry-header,
body.single-fruchttaube .ftpm-single-breadcrumb,
body.single-fruchttaube .ftpm-steckbrief-breadcrumb,
body.single-fruchttaube .ftpm-steckbrief-breadcrumb-yoast {
  display: none;
}

body.single-fruchttaube article.ftpm-steckbrief,
body.single-fruchttaube article.ftpm-steckbrief .entry-content {
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}

body.single-fruchttaube .ftpm-steckbrief {
  color: var(--ftpm-single-ink);
  background: linear-gradient(180deg, #f4f8f5 0, #fff 760px);
}

/* Full-bleed hero while the Astra header remains in its normal container. */
body.single-fruchttaube .ftpm-single-hero {
  position: relative;
  width: 100vw;
  min-height: clamp(430px, 44vw, 560px);
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 12% 42%, rgba(231, 201, 79, .1), transparent 30%),
    linear-gradient(112deg, #294a25 0%, #123b24 43%, #0f4328 100%);
}

body.single-fruchttaube .ftpm-single-hero::before,
body.single-fruchttaube .ftpm-single-hero::after,
body.single-fruchttaube .ftpm-single-hero-bands {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

body.single-fruchttaube .ftpm-single-hero::before {
  z-index: 0;
  background: linear-gradient(90deg, rgba(6, 31, 18, .06), transparent 46%, rgba(6, 31, 18, .2));
}

body.single-fruchttaube .ftpm-single-hero::after {
  z-index: 4;
  background: linear-gradient(180deg, transparent 68%, rgba(5, 24, 14, .17));
}

body.single-fruchttaube .ftpm-single-hero-bands {
  z-index: 1;
  opacity: .72;
  background: linear-gradient(108deg, transparent 0 54%, rgba(255,255,255,.06) 54% 61%, transparent 61% 68%, rgba(255,255,255,.04) 68% 75%, transparent 75%);
}

body.single-fruchttaube .ftpm-single-hero-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(430px, 1.08fr);
  align-items: stretch;
  width: min(var(--ftpm-single-max), calc(100% - (2 * var(--ftpm-single-gutter))));
  min-height: inherit;
  margin-inline: auto;
}

body.single-fruchttaube .ftpm-single-hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  min-width: 0;
  min-height: inherit;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(48px, 6vw, 82px) clamp(28px, 5vw, 68px) clamp(48px, 6vw, 82px) 0;
  color: #fff;
}

body.single-fruchttaube .ftpm-single-hero h1 {
  max-width: 650px;
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}

body.single-fruchttaube .ftpm-single-scientific {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255,255,255,.9);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  letter-spacing: .015em;
}


/* Shared Gutenberg/Foundation action contract.
 * Astra owns colour, radius, border, shadow, hover and focus.
 * This module owns only placement and responsive width. */
body.single-fruchttaube .ftpm-single-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

body.single-fruchttaube .ftpm-single-hero-actions > .wp-block-button {
  width: auto;
  margin: 0;
}

body.single-fruchttaube .ftpm-single-hero-media {
  position: relative;
  min-width: 0;
  min-height: inherit;
  margin: 0;
  overflow: hidden;
}

body.single-fruchttaube .ftpm-single-hero-media::before,
body.single-fruchttaube .ftpm-single-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

body.single-fruchttaube .ftpm-single-hero-media::before {
  background: linear-gradient(90deg, var(--ftpm-single-green) 0%, rgba(18,59,36,.82) 9%, rgba(18,59,36,.2) 30%, transparent 50%);
}

body.single-fruchttaube .ftpm-single-hero-media::after {
  background:
    linear-gradient(90deg, transparent 68%, rgba(15,67,40,.45) 100%),
    linear-gradient(180deg, rgba(10,43,25,.18), transparent 26%, transparent 72%, rgba(10,43,25,.28));
}

body.single-fruchttaube .ftpm-single-hero-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 38%;
}

body.single-fruchttaube .ftpm-single-summary-card,
body.single-fruchttaube .ftpm-steckbrief-content-enhanced,
body.single-fruchttaube .ftpm-single-related-cta {
  width: min(var(--ftpm-single-max), calc(100% - (2 * var(--ftpm-single-gutter))));
  margin-inline: auto;
}

body.single-fruchttaube .ftpm-single-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .8fr);
  gap: clamp(28px, 5vw, 64px);
  margin-top: clamp(38px, 6vw, 72px);
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid var(--ftpm-single-line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(18,59,36,.08);
}

body.single-fruchttaube .ftpm-single-summary-eyebrow {
  margin: 0 0 14px;
  color: var(--ftpm-single-green);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

body.single-fruchttaube .ftpm-single-summary-copy p:not(.ftpm-single-summary-eyebrow) {
  margin: 0;
  color: #34483b;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.75;
}

body.single-fruchttaube .ftpm-single-quickfacts {
  display: grid;
  margin: 0;
  border: 1px solid var(--ftpm-single-line);
  border-radius: 18px;
  background: #f8fbf9;
  overflow: hidden;
}

body.single-fruchttaube .ftpm-single-quickfacts > div {
  padding: 16px 18px;
  border-bottom: 1px solid var(--ftpm-single-line);
}

body.single-fruchttaube .ftpm-single-quickfacts > div:last-child { border-bottom: 0; }
body.single-fruchttaube .ftpm-single-quickfacts dt {
  margin: 0 0 5px;
  color: #728178;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .075em;
  text-transform: uppercase;
}
body.single-fruchttaube .ftpm-single-quickfacts dd {
  margin: 0;
  color: var(--ftpm-single-ink);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.45;
}

body.single-fruchttaube .ftpm-steckbrief-content-enhanced {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: clamp(34px, 5vw, 62px);
  padding: 0;
}

body.single-fruchttaube .ftpm-steckbrief-description-lead { margin-top: 26px; }

body.single-fruchttaube .ftpm-single-section-nav {
  position: sticky;
  top: 18px;
  z-index: 9;
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(18,59,36,.14);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 30px rgba(18,59,36,.08);
  backdrop-filter: blur(12px);
}
body.admin-bar.single-fruchttaube .ftpm-single-section-nav { top: 50px; }
body.single-fruchttaube .ftpm-single-section-nav > span {
  padding: 7px 12px;
  color: var(--ftpm-single-green);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}
body.single-fruchttaube .ftpm-single-section-nav a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  color: #345342;
  font-size: .87rem;
  font-weight: 750;
  text-decoration: none;
}
body.single-fruchttaube .ftpm-single-section-nav a:hover,
body.single-fruchttaube .ftpm-single-section-nav a:focus-visible {
  color: var(--ftpm-single-green);
  background: var(--ftpm-single-soft);
}

body.single-fruchttaube .ftpm-content-section,
body.single-fruchttaube .ftpm-content-section-description,
body.single-fruchttaube .ftpm-content-section-gallery,
body.single-fruchttaube .ftpm-content-section-sources,
body.single-fruchttaube .ftpm-content-section-image-credits {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--ftpm-single-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(18,59,36,.055);
  overflow: hidden;
}

body.single-fruchttaube .ftpm-content-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--ftpm-single-gold), var(--ftpm-single-green));
}

body.single-fruchttaube .ftpm-content-section--wide,
body.single-fruchttaube .ftpm-content-section-profile,
body.single-fruchttaube .ftpm-content-section-gallery,
body.single-fruchttaube .ftpm-content-section-sources,
body.single-fruchttaube .ftpm-content-section-image-credits,
body.single-fruchttaube .ftpm-single-related-cta {
  grid-column: 1 / -1;
}

body.single-fruchttaube .ftpm-content-section > h2:first-child {
  margin: 0 0 20px;
  color: var(--ftpm-single-green-deep);
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  line-height: 1.13;
  letter-spacing: -.025em;
  text-wrap: balance;
}
body.single-fruchttaube .ftpm-content-section p,
body.single-fruchttaube .ftpm-content-section li {
  color: #34483b;
  font-size: 1.03rem;
  line-height: 1.72;
}

body.single-fruchttaube .ftpm-content-section table {
  width: 100%;
  margin: 0;
  border: 1px solid var(--ftpm-single-line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  overflow: hidden;
}
body.single-fruchttaube .ftpm-content-section table th,
body.single-fruchttaube .ftpm-content-section table td {
  padding: 15px 18px;
  border-color: var(--ftpm-single-line);
  vertical-align: top;
}
body.single-fruchttaube .ftpm-content-section table th,
body.single-fruchttaube .ftpm-content-section table td:first-child {
  width: 31%;
  color: var(--ftpm-single-green-deep);
  background: var(--ftpm-single-soft);
  font-weight: 800;
}

body.single-fruchttaube .ftpm-content-section-sources .wp-block-buttons,
body.single-fruchttaube .ftpm-content-section-sources .ftpm-source-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
body.single-fruchttaube .ftpm-content-section-sources a {
  border-color: rgba(18,59,36,.2);
  border-radius: 999px;
  color: var(--ftpm-single-green);
  font-weight: 800;
}

body.single-fruchttaube .ftpm-content-section-gallery .wp-block-gallery,
body.single-fruchttaube .ftpm-content-section-gallery .blocks-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
body.single-fruchttaube .ftpm-content-section-gallery figure,
body.single-fruchttaube .ftpm-content-section-gallery img {
  border-radius: 16px;
}
body.single-fruchttaube .ftpm-content-section-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

body.single-fruchttaube .ftpm-single-related-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: 26px;
  margin-bottom: 64px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(120deg, var(--ftpm-single-green-deep), var(--ftpm-single-green-mid));
}
body.single-fruchttaube .ftpm-single-related-cta h2 { color: #fff; }
body.single-fruchttaube .ftpm-single-related-cta p { color: rgba(255,255,255,.82); }
body.single-fruchttaube .ftpm-single-related-cta > a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  color: #102c1b;
  background: var(--ftpm-single-gold);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  body.single-fruchttaube .ftpm-single-hero-shell {
    grid-template-columns: minmax(0, 1fr) minmax(330px, .85fr);
  }
  body.single-fruchttaube .ftpm-single-hero-inner { padding-right: 28px; }
  body.single-fruchttaube .ftpm-single-hero h1 { font-size: clamp(2.7rem, 6vw, 4.2rem); }
  body.single-fruchttaube .ftpm-single-summary-card { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body.single-fruchttaube .ftpm-single-hero { min-height: 620px; }
  body.single-fruchttaube .ftpm-single-hero-shell {
    grid-template-columns: 1fr;
    width: 100%;
  }
  body.single-fruchttaube .ftpm-single-hero-inner {
    justify-content: flex-end;
    min-height: 620px;
    padding: 250px 22px 40px;
    background: linear-gradient(180deg, transparent 24%, rgba(7,35,20,.78) 58%, rgba(7,35,20,.97) 100%);
  }
  body.single-fruchttaube .ftpm-single-hero-media {
    position: absolute;
    inset: 0;
    min-height: 620px;
  }
  body.single-fruchttaube .ftpm-single-hero-media::before {
    background: linear-gradient(180deg, rgba(18,59,36,.12), transparent 32%, rgba(18,59,36,.2) 54%, var(--ftpm-single-green) 100%);
  }
  body.single-fruchttaube .ftpm-single-hero-media::after {
    background: linear-gradient(90deg, rgba(18,59,36,.22), transparent 22%, transparent 78%, rgba(18,59,36,.22));
  }
  body.single-fruchttaube .ftpm-single-hero-image { object-position: center top; }
  body.single-fruchttaube .ftpm-single-summary-card,
  body.single-fruchttaube .ftpm-steckbrief-content-enhanced,
  body.single-fruchttaube .ftpm-single-related-cta {
    width: calc(100% - 28px);
  }
  body.single-fruchttaube .ftpm-steckbrief-content-enhanced { grid-template-columns: 1fr; }
  body.single-fruchttaube .ftpm-single-section-nav {
    position: static;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  body.single-fruchttaube .ftpm-single-section-nav > span { display: none; }
  body.single-fruchttaube .ftpm-single-section-nav a { flex: 0 0 auto; }
  body.single-fruchttaube .ftpm-single-related-cta { grid-template-columns: 1fr; }
  body.single-fruchttaube .ftpm-single-related-cta > a { justify-self: start; }
}

@media (max-width: 640px) {
  body.single-fruchttaube .ftpm-single-summary-card,
  body.single-fruchttaube .ftpm-content-section,
  body.single-fruchttaube .ftpm-content-section-description,
  body.single-fruchttaube .ftpm-content-section-gallery,
  body.single-fruchttaube .ftpm-content-section-sources,
  body.single-fruchttaube .ftpm-content-section-image-credits {
    padding: 25px 22px;
    border-radius: 20px;
  }
  body.single-fruchttaube .ftpm-content-section table,
  body.single-fruchttaube .ftpm-content-section table tbody,
  body.single-fruchttaube .ftpm-content-section table tr,
  body.single-fruchttaube .ftpm-content-section table th,
  body.single-fruchttaube .ftpm-content-section table td {
    display: block;
    width: 100%;
  }
  body.single-fruchttaube .ftpm-content-section table tr { border-bottom: 1px solid var(--ftpm-single-line); }
  body.single-fruchttaube .ftpm-content-section table tr:last-child { border-bottom: 0; }
  body.single-fruchttaube .ftpm-content-section table th,
  body.single-fruchttaube .ftpm-content-section table td { border: 0; }
  body.single-fruchttaube .ftpm-content-section table th,
  body.single-fruchttaube .ftpm-content-section table td:first-child { padding-bottom: 6px; }
  body.single-fruchttaube .ftpm-content-section table td { padding-top: 6px; }
  body.single-fruchttaube .ftpm-content-section-gallery .wp-block-gallery,
  body.single-fruchttaube .ftpm-content-section-gallery .blocks-gallery-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body.single-fruchttaube .ftpm-single-hero-actions { width:100%; flex-direction:column; align-items:stretch; }
  body.single-fruchttaube .ftpm-single-hero-actions > .wp-block-button,
  body.single-fruchttaube .ftpm-single-hero-actions > .wp-block-button .wp-block-button__link { width:100%; text-align:center; }
}
