/* =============================================================
   PlantClue — Cluster Hub Styles (geteilt für alle Cluster)
   Abhängigkeit: mp-main.css
   ============================================================= */

/* ─── Hero ───────────────────────────────────────────────────── */
.mp-hub-hero {
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center 75%;
  padding-bottom: 3rem;
  position: relative;
}

.mp-hub-hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--mp-content-width);
  margin: 0 auto;
  padding: 0 var(--mp-edge-padding);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mp-hub-breadcrumb {
  font-size: 0.85rem;
  color: var(--mp-color-gray-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.mp-hub-breadcrumb a {
  color: var(--mp-color-primary);
  text-decoration: none;
}

.mp-hub-hero__title {
  font-family: var(--mp-font-heading);
  font-size: clamp(2.25rem, 1.728rem + 1.63vw, 3rem);
  font-weight: 700;
  color: var(--mp-color-dark);
  line-height: 1.15;
  margin: 0;
  max-width: 600px;
}

.mp-hub-hero__subtitle {
  font-size: 17px;
  color: var(--mp-color-gray-dark);
  margin: 0;
  max-width: 520px;
}

/* Hero Overlay links-grün wie bei anderen Seiten */
.mp-hub-hero .mp-hero__overlay {
  background: linear-gradient(90deg, var(--mp-color-bg) 40%, rgba(244,248,242,0.1) 70%, rgba(244,248,242,0) 100%);
}

/* ─── Symptom-Finder ─────────────────────────────────────────── */
.mp-hub-finder {
  background: var(--mp-color-surface);
  padding: 4rem var(--mp-edge-padding);
}

.mp-hub-finder__inner {
  max-width: var(--mp-content-width);
  margin: 0 auto;
}

.mp-hub-finder__title {
  font-family: var(--mp-font-heading);
  font-size: clamp(1.5rem, 2vw + 0.5rem, 1.875rem);
  font-weight: 700;
  color: var(--mp-color-dark);
  margin: 0 0 2rem;
}

.mp-hub-finder__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.mp-finder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--mp-color-white);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.mp-finder-card:hover {
  border-color: var(--mp-color-primary);
  transform: translateY(-2px);
}

.mp-finder-card--warning {
  border-color: #e8670a;
}

.mp-finder-card--warning:hover {
  border-color: #e8670a;
}

.mp-finder-card__icon {
  font-size: 2rem;
}

.mp-finder-card strong {
  font-family: var(--mp-font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--mp-color-dark);
  /* Platz fuer 2 Zeilen reservieren — Karten bleiben gleich hoch,
     unabhaengig davon ob die Headline 1 oder 2 Zeilen braucht */
  min-height: 2.6em;
  display: flex;
  align-items: center;
}

.mp-finder-card span {
  font-size: 0.8rem;
  color: var(--mp-color-gray-dark);
  line-height: 1.4;
}

/* ─── Intro + Doc Tipp ───────────────────────────────────────── */
.mp-hub-intro {
  background: var(--mp-color-white);
  padding: 4rem var(--mp-edge-padding);
}

.mp-hub-intro__inner {
  max-width: var(--mp-content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: start;
}

.mp-hub-intro__text h2 {
  font-family: var(--mp-font-heading);
  font-size: clamp(1.5rem, 2vw + 0.5rem, 1.875rem);
  font-weight: 700;
  color: var(--mp-color-dark);
  margin: 0.5rem 0 1rem;
}

.mp-hub-intro__text p {
  font-size: 17px;
  color: var(--mp-color-gray-dark);
  line-height: 1.7;
  margin: 0;
}

.mp-hub-intro__text p + p {
  margin-top: 1.1rem;
}

.mp-hub-intro__tip {
  display: flex;
  gap: 1rem;
  background: var(--mp-color-surface);
  border-radius: 16px;
  padding: 1.5rem;
  align-items: flex-start;
}

.mp-hub-intro__doc {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--mp-color-primary-light);
}

.mp-hub-intro__tip-label {
  display: block;
  font-family: var(--mp-font-body);
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mp-color-primary);
  margin-bottom: 0.4rem;
}

.mp-hub-intro__tip-body p {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--mp-color-dark);
  line-height: 1.6;
  margin: 0;
}

/* ─── FAQ ─────────────────────────────────────────────────────── */
.mp-hub-faq {
  background: var(--mp-color-surface);
  padding: 4rem var(--mp-edge-padding);
}

.mp-hub-faq__inner {
  max-width: var(--mp-content-width);
  margin: 0 auto;
}

.mp-hub-faq__title {
  font-family: var(--mp-font-heading);
  font-size: clamp(1.5rem, 2vw + 0.5rem, 1.875rem);
  font-weight: 700;
  color: var(--mp-color-dark);
  margin: 0.5rem 0 2rem;
}

.mp-hub-faq__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
}

.mp-hub-faq__item h3 {
  font-family: var(--mp-font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mp-color-dark);
  margin: 0 0 0.5rem;
}

.mp-hub-faq__item p {
  font-size: 0.95rem;
  color: var(--mp-color-gray-dark);
  line-height: 1.65;
  margin: 0;
}

/* ─── Artikel-Grid ───────────────────────────────────────────── */
.mp-hub-articles {
  background: var(--mp-color-bg);
  padding: 4rem var(--mp-edge-padding);
}

.mp-hub-articles__inner {
  max-width: var(--mp-content-width);
  margin: 0 auto;
}

.mp-hub-articles__title {
  font-family: var(--mp-font-heading);
  font-size: clamp(1.5rem, 2vw + 0.5rem, 1.875rem);
  font-weight: 700;
  color: var(--mp-color-dark);
  margin: 0.5rem 0 2rem;
}

.mp-hub-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.mp-hub-article-card {
  background: var(--mp-color-white);
  border: 1px solid var(--mp-color-surface);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: var(--mp-shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mp-hub-article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.mp-hub-article-card--coming {
  opacity: 0.6;
  pointer-events: none;
}

.mp-hub-article-card__img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--mp-color-surface);
}

.mp-hub-article-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mp-hub-article-card__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--mp-color-gray-dark);
}

.mp-hub-article-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--mp-font-heading);
}

.mp-hub-article-card__badge--urgent {
  background: #e8670a;
  color: #fff;
}

.mp-hub-article-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.mp-hub-article-card__body h3 {
  font-family: var(--mp-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--mp-color-dark);
  margin: 0;
  line-height: 1.3;
}

.mp-hub-article-card__body p {
  font-size: 0.875rem;
  color: var(--mp-color-gray-dark);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.mp-hub-article-card__cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mp-color-primary);
  margin-top: 0.5rem;
}

/* ─── Hub-Tabs (z.B. Nährstoffmangel/-überschuss) ───────────────
   HTML-Muster:
   <div class="mp-hub-tabs">
     <button class="mp-hub-tabs__btn mp-hub-tabs__btn--active" data-target-bucket="a">A</button>
     <button class="mp-hub-tabs__btn" data-target-bucket="b">B</button>
   </div>
   <div id="[panels-id]">
     <div class="mp-hub-articles__grid mp-visible" data-bucket="a">...</div>
     <div class="mp-hub-articles__grid" data-bucket="b">...</div>
   </div>
   JS: MpUI.showBucket('[panels-id]', bucket) + Active-Klasse auf Button setzen
   ─────────────────────────────────────────────────────────────── */
.mp-hub-tabs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: -0.5rem 0 2rem;
}

.mp-hub-tabs__btn {
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--mp-color-primary-light);
  background: var(--mp-color-white);
  color: var(--mp-color-dark);
  font-family: var(--mp-font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mp-hub-tabs__btn:hover {
  border-color: var(--mp-color-primary);
}

.mp-hub-tabs__btn--active {
  background: var(--mp-color-primary);
  border-color: var(--mp-color-primary);
  color: var(--mp-color-white);
}

.mp-hub-articles__grid[data-bucket] { display: none; }
.mp-hub-articles__grid[data-bucket].mp-visible { display: grid; }

/* ─── Verwandte Cluster ──────────────────────────────────────── */
.mp-hub-related {
  background: var(--mp-color-surface);
  padding: 4rem var(--mp-edge-padding);
}

/* Alternierender Hintergrund für Seiten mit mehreren aufeinanderfolgenden Related-Sektionen (z.B. Themen-Übersicht) */
.mp-hub-related--alt {
  background: var(--mp-color-white);
}

/* Karten brauchen auf weißem Sektions-Hintergrund einen eigenen Farbton, sonst weiß auf weiß ohne Kontrast */
.mp-hub-related--alt .mp-hub-related-card {
  background: var(--mp-color-surface);
}

.mp-hub-related__inner {
  max-width: var(--mp-content-width);
  margin: 0 auto;
}

.mp-hub-related__title {
  font-family: var(--mp-font-heading);
  font-size: clamp(1.5rem, 2vw + 0.5rem, 1.875rem);
  font-weight: 700;
  color: var(--mp-color-dark);
  margin: 0.5rem 0 2rem;
}

.mp-hub-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.mp-hub-related-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem 1.5rem;
  background: var(--mp-color-white);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  border-left: 4px solid var(--mp-color-primary);
  transition: transform 0.2s ease;
}

.mp-hub-related-card:hover {
  transform: translateX(4px);
}

.mp-hub-related-card strong {
  font-family: var(--mp-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--mp-color-dark);
}

.mp-hub-related-card span {
  font-size: 0.85rem;
  color: var(--mp-color-gray-dark);
}

/* ─── Lexikon (/lexikon/, seit 2026-09-26) ─────────────────────
   A-Z-Navigation + Begriffsliste; Anker je Begriff (#stomata), auf die Beitraege automatisch verlinken
   (MP-Agent lexikon.py). Karten nach Karten-Design-System: heller Rand statt Schatten-Glow. */
.mp-lexikon {
  background: var(--mp-color-bg);
  padding: 3rem var(--mp-edge-padding) 4rem;
}

.mp-lexikon__inner {
  max-width: var(--mp-content-width);
  margin: 0 auto;
}

.mp-lexikon__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.mp-lexikon__nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--mp-radius-button);
  background: var(--mp-color-white);
  border: 1px solid var(--mp-color-surface);
  color: var(--mp-color-primary);
  font-family: var(--mp-font-heading);
  font-weight: 700;
  text-decoration: none;
}

.mp-lexikon__nav-link:hover {
  background: var(--mp-color-primary);
  color: var(--mp-color-white);
}

.mp-lexikon__gruppe {
  margin-bottom: 2.5rem;
  scroll-margin-top: 110px;
}

.mp-lexikon__buchstabe {
  font-family: var(--mp-font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--mp-color-primary);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--mp-color-surface);
}

.mp-lexikon__liste {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 0;
}

.mp-lexikon__eintrag {
  background: var(--mp-color-white);
  border: 1px solid var(--mp-color-surface);
  border-left: 4px solid var(--mp-color-primary);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  scroll-margin-top: 110px;
}

.mp-lexikon__eintrag:target {
  border-color: var(--mp-color-primary-light);
  border-left-color: var(--mp-color-primary-light);
  background: var(--mp-color-surface);
}

.mp-lexikon__begriff {
  font-family: var(--mp-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--mp-color-dark);
  margin: 0 0 0.5rem;
}

.mp-lexikon__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--mp-color-gray-dark);
}

.mp-lexikon__mehr {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 600;
  color: var(--mp-color-primary);
  text-decoration: none;
  white-space: nowrap;
}

.mp-lexikon__mehr:hover {
  text-decoration: underline;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .mp-hub-articles__grid { grid-template-columns: repeat(2, 1fr); }
  .mp-hub-finder__grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .mp-hub-intro__inner   { grid-template-columns: 1fr; }
  .mp-hub-related__grid  { grid-template-columns: 1fr; }
  .mp-hub-faq__list      { grid-template-columns: 1fr; }
  .mp-lexikon__liste     { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .mp-hub-articles__grid { grid-template-columns: 1fr; }
  .mp-hub-finder__grid   { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Outdoor Hub ────────────────────────────────────────────── */
.mp-hero--outdoor {
  background-image: url('https://plantclue.com/wp-content/uploads/2026/06/cannabis-outdoor-anbau-grundlagen.webp');
  background-position: 65% 90%;
}

/* ─── Schädlinge Hub (ID 147) ───────────────────────────────── */
.mp-hero--schaedlinge {
  background-image: url('https://plantclue.com/wp-content/uploads/2026/06/cannabis-schaedlinge-krankheiten-hub-hero.webp');
  background-position: 100% 50%;
}

/* ─── Nährstoffe Hub (ID 131) ────────────────────────────────── */
.mp-hero--naehrstoffe {
  background-image: url('https://plantclue.com/wp-content/uploads/2026/06/cannabis-naehrstoffe-duengung-grundlagen.webp');
  background-position: 65% 90%;
}

/* ─── Wurzeln Hub (ID 1089) ──────────────────────────────────── */
.mp-hero--wurzeln {
  background-image: url('https://plantclue.com/wp-content/uploads/2026/06/wurzeln-hero.webp');
  background-position: 65% 80%;
}

.mp-hero--anfaenger {
  background-image: url('https://plantclue.com/wp-content/uploads/2026/06/anfaenger-hero.webp');
  background-position: 100% 80%;
  background-size: 75%;
}

.mp-hero--indoor {
  background-image: url('https://plantclue.com/wp-content/uploads/2026/06/indoor-hero.webp');
  background-position: 100% 80%;
  background-size: 75%;
}

.mp-hero--licht {
  background-image: url('https://plantclue.com/wp-content/uploads/2026/06/licht-hero.webp');
  background-position: 100% 80%;
  background-size: 75%;
}

.mp-hero--erde {
  background-image: url('https://plantclue.com/wp-content/uploads/2026/06/erde-hero.webp');
  background-position: 100% 80%;
  background-size: 75%;
}

.mp-hero--wasser {
  background-image: url('https://plantclue.com/wp-content/uploads/2026/06/wasser-hero.webp');
  background-position: 100% 80%;
  background-size: 75%;
}

/* ─── Klima Hub (ID 1325) — PLATZHALTER, Hero-Bild folgt via create-heropic.js ─── */
.mp-hero--klima {
  background-image: url('https://plantclue.com/wp-content/uploads/2026/06/klima-hero.webp');
  background-position: 100% 80%;
  background-size: 75%;
}

/* ─── Equipment Hub (ID 135) — PLATZHALTER, Hero-Bild folgt via create-heropic.js ─── */
.mp-hero--equipment {
  background-image: url('https://plantclue.com/wp-content/uploads/2026/06/equipment-hero.webp');
  background-position: 100% 80%;
  background-size: 75%;
}

/* ─── Ernte & Trocknung Hub (/ernte-trocknung/) — PLATZHALTER, Hero-Bild folgt via create-heropic.js ─── */
.mp-hero--ernte-trocknung {
  background-image: url('https://plantclue.com/wp-content/uploads/2026/06/ernte-trocknung-hero.webp');
  background-position: 100% 80%;
  background-size: 75%;
}

.mp-hero--pilzkrankheiten {
  background-image: url('https://plantclue.com/wp-content/uploads/2026/06/pilzkrankheiten-hero-1.webp');
  background-position: 100% 80%;
  background-size: 75%;
}

.mp-hero--techniken {
  background-image: url('https://plantclue.com/wp-content/uploads/2026/06/techniken-hero.webp');
  background-position: 100% 80%;
  background-size: 75%;
}

.mp-hero--rechner {
  background-image: url('https://plantclue.com/wp-content/uploads/2026/06/cannabis-anbau-rechner-hero.webp');
  background-position: 100% 60%;
  background-size: 75%;
}

/* ─── Sorten Hub (/wissen/sorten/) ───────────────────────────── */
.mp-hero--sorten {
  background-image: url('https://plantclue.com/wp-content/uploads/2026/07/sorten-hero.webp');
  background-position: 100% 80%;
  background-size: 75%;
}

/* ─── Sonstige Symptome Hub (ID 3731) — PLATZHALTER, Hero-Bild folgt via /picture hero ─── */
.mp-hero--sonstige-symptome {
  background-image: url('https://plantclue.com/wp-content/uploads/2026/09/sonstige-symptome-hero.webp');
  background-position: 100% 80%;
  background-size: 75%;
}

/* ─── Themen-Übersicht (Hub-of-Hubs, noch keine WP-ID) ─── */
.mp-hero--themen {
  background-image: url('https://plantclue.com/wp-content/uploads/2026/09/cannabis-anbau-themen-hero.webp');
  background-position: 100% 60%;
  background-size: 75%;
}

/* ─── Lexikon (/lexikon/) — vorerst Lupen-Motiv des Sonstige-Symptome-Hubs, eigenes Hero-Bild folgt via /picture hero ─── */
.mp-hero--lexikon {
  background-image: url('https://plantclue.com/wp-content/uploads/2026/09/cannabis-lexikon-hero.webp');
  background-position: 100% 80%;
  background-size: 75%;
}

/* ─── Wachstumsphasen-Hubs: Keimung & Sämling / Wachstum / Blüte (ID 4109/4110/4111) ─── */
.mp-hero--keimung-saemling {
  background-image: url('https://plantclue.com/wp-content/uploads/2026/09/keimung-saemling-hub-hero.webp');
  background-position: 80% 50%;
  background-size: 75%;
}

.mp-hero--wachstum {
  background-image: url('https://plantclue.com/wp-content/uploads/2026/09/wachstum-hub-hero.webp');
  background-position: 80% 50%;
  background-size: 75%;
}

.mp-hero--bluete {
  background-image: url('https://plantclue.com/wp-content/uploads/2026/09/bluete-hub-hero.webp');
  background-position: 80% 50%;
  background-size: 75%;
}

/*
 * ── NEUE HUB-SEITE HINZUFÜGEN ────────────────────────────────
 *
 * Bestehende Hubs:
 *   .mp-hero--outdoor          → ID 123, /anbau-guide/outdoor/
 *   .mp-hero--naehrstoffe      → ID 131, /wissen/naehrstoffe/
 *   .mp-hero--schaedlinge      → ID 147, /diagnose/schaedlinge/
 *   .mp-hero--techniken        → ID 1062, /anbau-guide/techniken/
 *   .mp-hero--wurzeln          → ID 1089, /diagnose/wurzeln/
 *   .mp-hero--klima            → ID 1325, /diagnose/klima/ (Platzhalter, Hero-Bild fehlt noch)
 *   .mp-hero--equipment        → ID 135, /wissen/equipment/
 *   .mp-hero--pilzkrankheiten  → ID 1517, /diagnose/pilzkrankheiten/ (Platzhalter, Hero-Bild fehlt noch)
 *   .mp-hero--rechner          → /rechner/
 *   .mp-hero--sorten           → ID 2426, /wissen/sorten/
 *   .mp-hero--sonstige-symptome → ID 3731, /diagnose/sonstige-symptome/
 *   .mp-hero--keimung-saemling → ID 4109, /anbau-guide/keimung-saemling/
 *   .mp-hero--wachstum         → ID 4110, /anbau-guide/wachstum/
 *   .mp-hero--bluete           → ID 4111, /anbau-guide/bluete/
 *   .mp-hero--lexikon          → /lexikon/ (Glossar, Hero-Bild vorerst geliehen)
 *
 * Checkliste für neuen Hub:
 *
 * 1. CSS-Klasse hier ergänzen:
 *    .mp-hero--[slug] {
 *      background-image: url('https://plantclue.com/wp-content/.../bild.webp');
 *      background-position: X% Y%;
 *      ← Hero-Bild: photorealistisch, 1792x1024, linkes Drittel dunkel für Text
 *    }
 *
 * 2. HTML: [slug].html anlegen (Kopie von schaedlinge.html, struktur identisch)
 *    - Breadcrumb, Hero-Klasse, Finder-Cards, Intro+Doc-Tipp, Artikel-Grid, Related
 *    - Artikel-Cards: <img> mit loading="lazy" + alt-Text (kein Platzhalter-div!)
 *    - Badges optional: mp-hub-article-card__badge--urgent
 *
 * 3. mp-page-styles.php: is_page([ID]) in DREI Zeilen ergänzen (nicht nur zwei!)
 *    - is_mp_page (Gatekeeper, ganz oben in der Funktion): ohne diese Zeile läuft
 *      die Seite komplett ohne mp-CSS, auch wenn die anderen beiden Zeilen stimmen
 *    - wpautop/wptexturize-Array (ganz oben in der Datei): sonst zerstört WordPress
 *      das rohe HTML durch Auto-Paragraphing
 *    - is_page([123, 131, 147, NEU]): nur Cluster-Hub-CSS
 *    Immer erst die Live-Version des mu-plugins per SSH laden und diffen, nie blind
 *    überschreiben (siehe rules_and_access.md, Live-Only-Edits-Historie)
 *
 * 4. Deploy-Skript: update-[slug]-page.js (Kopie von update-schaedlinge-page.js)
 *    - WP-ID, Titel und HTML-Dateiname anpassen
 *
 * 5. CSS + Hub deployen:
 *    scp mp-cluster-hub-styles.css root@62.238.22.34:/var/www/meineplantage/wp-content/uploads/
 *    node update-[slug]-page.js
 *
 * 6. mp-design-system.md: CSS-Tabelle, Seiten-Tabelle, Architektur, Changelog
 *
 * 7. create-heropic.js: PAGE_MAP um die neue ID ergänzen (KEINE dynamische
 *    Slug-Auflösung trotz anderslautender Doku in create.md) — sonst bricht
 *    `/create heropic [ID]` beim ersten Versuch mit "Unbekannte Page-ID" ab.
 *
 * Bildposition testen: Preview öffnen, background-position anpassen bis
 * der wichtigste Bildinhalt neben dem Text sichtbar ist.
 * ─────────────────────────────────────────────────────────────
 */

/* ─── Schritt-Anleitung + Checkliste (.mp-hub-steps) ─────────────
   Seit 2026-09-27, erster Einsatz Hub 147 (Inhalte aus Post 794 übernommen).
   Weiße Sektion; nummerierte Schritt-Karten im Raster, darunter optionale Checkliste. */
.mp-hub-steps {
  background: var(--mp-color-white);
  padding: 4rem var(--mp-edge-padding);
}

.mp-hub-steps__inner {
  max-width: var(--mp-content-width);
  margin: 0 auto;
}

.mp-hub-steps__title {
  font-family: var(--mp-font-heading);
  font-size: clamp(1.5rem, 2vw + 0.5rem, 1.875rem);
  font-weight: 700;
  color: var(--mp-color-dark);
  margin: 0.5rem 0 1rem;
}

.mp-hub-steps__intro {
  font-size: 17px;
  color: var(--mp-color-gray-dark);
  line-height: 1.7;
  margin: 0 0 2rem;
  max-width: 860px;
}

.mp-hub-steps__list {
  list-style: none;
  counter-reset: mp-schritt;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.mp-hub-steps__item {
  counter-increment: mp-schritt;
  background: var(--mp-color-bg);
  border: 1px solid var(--mp-color-surface);
  border-radius: var(--mp-radius-card);
  padding: 1.5rem;
}

.mp-hub-steps__item::before {
  content: counter(mp-schritt);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--mp-color-primary);
  color: var(--mp-color-white);
  font-family: var(--mp-font-heading);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.mp-hub-steps__item h3,
.mp-hub-steps__check h3 {
  font-family: var(--mp-font-heading);
  font-size: 1.05rem;
  color: var(--mp-color-dark);
  margin: 0 0 0.5rem;
}

.mp-hub-steps__item p {
  font-size: 0.95rem;
  color: var(--mp-color-gray-dark);
  line-height: 1.65;
  margin: 0;
}

.mp-hub-steps__check {
  background: var(--mp-color-surface);
  border-radius: var(--mp-radius-card);
  padding: 1.5rem 2rem;
}

.mp-hub-steps__check ul {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  column-gap: 3rem;
}

.mp-hub-steps__check li {
  color: var(--mp-color-gray-dark);
  line-height: 1.6;
  margin-bottom: 0.4rem;
  break-inside: avoid;
}

.mp-hub-steps a,
.mp-hub-table a {
  color: var(--mp-color-primary);
}

/* ─── Schnell-Tabelle (.mp-hub-table) ────────────────────────────
   Seit 2026-09-27, erster Einsatz Hub 147. Sektion auf Seitenhintergrund, Tabelle in weißer Karte,
   auf schmalen Bildschirmen horizontal scrollbar (__scroll), die Seite selbst scrollt nie seitlich. */
.mp-hub-table {
  background: var(--mp-color-bg);
  padding: 4rem var(--mp-edge-padding);
}

.mp-hub-table__inner {
  max-width: var(--mp-content-width);
  margin: 0 auto;
}

.mp-hub-table__title {
  font-family: var(--mp-font-heading);
  font-size: clamp(1.5rem, 2vw + 0.5rem, 1.875rem);
  font-weight: 700;
  color: var(--mp-color-dark);
  margin: 0.5rem 0 1rem;
}

.mp-hub-table__intro,
.mp-hub-table__note {
  font-size: 17px;
  color: var(--mp-color-gray-dark);
  line-height: 1.7;
  margin: 0 0 1.5rem;
  max-width: 860px;
}

.mp-hub-table__note {
  font-size: 0.95rem;
  margin: 1.5rem 0 0;
}

.mp-hub-table__scroll {
  overflow-x: auto;
  background: var(--mp-color-white);
  border: 1px solid var(--mp-color-surface);
  border-radius: var(--mp-radius-card);
}

.mp-hub-table__table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.mp-hub-table__table th,
.mp-hub-table__table td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--mp-color-surface);
  color: var(--mp-color-gray-dark);
  line-height: 1.5;
}

.mp-hub-table__table thead th {
  font-family: var(--mp-font-heading);
  font-weight: 700;
  color: var(--mp-color-dark);
  background: var(--mp-color-surface);
}

.mp-hub-table__table tbody th {
  font-family: var(--mp-font-heading);
  font-weight: 600;
  white-space: nowrap;
}

.mp-hub-table__table tbody tr:last-child th,
.mp-hub-table__table tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 1024px) {
  .mp-hub-steps__list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .mp-hub-steps__list { grid-template-columns: 1fr; }
  .mp-hub-steps__check { padding: 1.25rem; }
  .mp-hub-steps__check ul { columns: 1; }
}


/* ─── Hero mit Formular (Landingpage 380, seit 2026-10-02) ───────── */
/* Text links, Lead-Magnet-Formular rechts im Hero (kein Anker-Klick). */
.mp-hero--indoor-pdf {
  background-image: url('https://plantclue.com/wp-content/uploads/2026/09/cannabis-pflanze-sonnenlicht.webp');
  background-position: center 40%;
}

.mp-hub-hero--formular {
  min-height: 0;
  align-items: center;
  padding: 3.5rem 0;
}

.mp-hub-hero--formular .mp-hub-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: center;
}

.mp-hub-hero__text {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mp-hub-hero__vorteile {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: var(--mp-color-dark);
  font-size: 16px;
}

.mp-hub-hero__vorteile li {
  position: relative;
  padding-left: 1.6rem;
}

.mp-hub-hero__vorteile li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--mp-color-primary);
  font-weight: 700;
}

.mp-hub-hero__formular .mp-leadmagnet--bereit {
  box-shadow: 0 10px 30px rgba(30, 30, 30, 0.12);
}

.mp-hub-hero--formular .mp-hero__overlay {
  background: linear-gradient(90deg, var(--mp-color-bg) 45%, rgba(244,248,242,0.75) 70%, rgba(244,248,242,0.55) 100%);
}

/* ─── PDF-Vorschau (Landingpage 380) ─────────────────────────────── */
.mp-hub-vorschau {
  background: var(--mp-color-white);
  padding: 4rem var(--mp-edge-padding);
}

.mp-hub-vorschau__inner {
  max-width: var(--mp-content-width);
  margin: 0 auto;
}

.mp-hub-vorschau__title {
  font-family: var(--mp-font-heading);
  font-size: clamp(1.5rem, 2vw + 0.5rem, 1.875rem);
  font-weight: 700;
  color: var(--mp-color-dark);
  margin: 0 0 2rem;
}

.mp-hub-vorschau__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.mp-hub-vorschau__seite {
  margin: 0;
  text-align: center;
}

.mp-hub-vorschau__seite img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--mp-color-surface);
  border-radius: 6px;
  box-shadow: var(--mp-shadow-card);
}

.mp-hub-vorschau__seite figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--mp-color-gray-dark);
}

@media (max-width: 900px) {
  .mp-hub-hero--formular .mp-hub-hero__inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .mp-hub-hero--formular .mp-hero__overlay {
    background: linear-gradient(180deg, var(--mp-color-bg) 55%, rgba(244,248,242,0.85) 100%);
  }
}

@media (max-width: 640px) {
  .mp-hub-hero--formular { padding: 2rem 0; }
  .mp-hub-vorschau__grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
}

/* Kadence-Absatzabstand im Hero mit Formular neutralisieren (Seite 380) */
.mp-hub-hero--formular .mp-hub-hero__subtitle { margin: 0; }
.mp-hub-hero--formular .mp-hub-breadcrumb { flex-wrap: wrap; }
.mp-hub-hero--formular .mp-hub-breadcrumb a,
.mp-hub-hero--formular .mp-hub-breadcrumb span { white-space: nowrap; }
