/* =============================================================
   MeinePlantage — 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__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;
}

/* ─── 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-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;
}

/* ─── Verwandte Cluster ──────────────────────────────────────── */
.mp-hub-related {
  background: var(--mp-color-surface);
  padding: 4rem var(--mp-edge-padding);
}

.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);
}

/* ─── 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; }
}

@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://meineplantage.de/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://meineplantage.de/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://meineplantage.de/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://meineplantage.de/wp-content/uploads/2026/06/wurzeln-hero.webp');
  background-position: 65% 80%;
}

.mp-hero--anfaenger {
  background-image: url('https://meineplantage.de/wp-content/uploads/2026/06/anfaenger-hero.webp');
  background-position: 100% 80%;
  background-size: 75%;
}

.mp-hero--indoor {
  background-image: url('https://meineplantage.de/wp-content/uploads/2026/06/indoor-hero.webp');
  background-position: 100% 80%;
  background-size: 75%;
}

.mp-hero--licht {
  background-image: url('https://meineplantage.de/wp-content/uploads/2026/06/licht-hero.webp');
  background-position: 100% 80%;
  background-size: 75%;
}

.mp-hero--erde {
  background-image: url('https://meineplantage.de/wp-content/uploads/2026/06/erde-hero.webp');
  background-position: 100% 80%;
  background-size: 75%;
}

.mp-hero--wasser {
  background-image: url('https://meineplantage.de/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://meineplantage.de/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://meineplantage.de/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://meineplantage.de/wp-content/uploads/2026/06/ernte-trocknung-hero.webp');
  background-position: 100% 80%;
  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/
 *
 * Checkliste für neuen Hub:
 *
 * 1. CSS-Klasse hier ergänzen:
 *    .mp-hero--[slug] {
 *      background-image: url('https://meineplantage.de/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 beiden Zeilen ergänzen
 *    - is_mp_page: alle Seiten die überhaupt mp-CSS laden
 *    - is_page([123, 131, 147, NEU]): nur Cluster-Hub-CSS
 *
 * 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
 *
 * Bildposition testen: Preview öffnen, background-position anpassen bis
 * der wichtigste Bildinhalt neben dem Text sichtbar ist.
 * ─────────────────────────────────────────────────────────────
 */
