/* =============================================================
   MeinePlantage — Main Styles (gemeinsam für alle mp-Seiten)
   Geladen auf: alle Seiten mit mp-* Komponenten
   ============================================================= */

/* ─── CSS Custom Properties ─────────────────────────────────── */
:root {
  --mp-color-primary:       #2e5e2e;
  --mp-color-primary-light: #7fbf3f;
  --mp-color-dark:          #1e1e1e;
  --mp-color-black:         #000000;
  --mp-color-gray-dark:     #4a4a4a;
  --mp-color-gray-mid:      #7a7a7a;
  --mp-color-surface:       #eaf3e5;
  --mp-color-bg:            #f4f8f2;
  --mp-color-white:         #ffffff;
  --mp-font-body:           'Inter', sans-serif;
  --mp-font-heading:        'Poppins', sans-serif;
  --mp-radius-card:         8px;
  --mp-radius-image:        30px;
  --mp-radius-button:       6px;
  --mp-shadow-card:         0 0 6px 5px var(--mp-color-surface);
  --mp-shadow-hover:        0 0 60px 5px rgba(0,0,0,0.2);
  --mp-content-width:       1290px;
  --mp-edge-padding:        1.5rem;
  --mp-spacing-xs:          1rem;
  --mp-spacing-sm:          1.5rem;
  --mp-spacing-md:          2rem;
  --mp-spacing-lg:          3rem;
  --mp-spacing-xl:          4rem;
  --mp-spacing-xxl:         5rem;
}

/* ─── Kadence Container — Overflow Fix ───────────────────────── */
/* Verhindert dass Kadence-Container Full-Bleed-Sections abschneidet */
.entry-content-wrap,
.entry-content.single-content,
.wp-block-html.alignfull {
  overflow: visible !important;
}

/* ─── Full-Bleed Utility ─────────────────────────────────────── */
/* Bricht aus dem zentrierten .site-container (max-width: 1290px) aus.
   Formel: 50% (halbe Container-Breite) − 50vw (halbe Viewport-Breite)
   = exakter Offset zum linken Viewport-Rand. */
/* ─── Kadence Heading Reset — Abstände über gap geregelt, kein margin nötig ── */
[class*="mp-"] h1,
[class*="mp-"] h2,
[class*="mp-"] h3,
[class*="mp-"] h4,
[class*="mp-"] h5,
[class*="mp-"] h6 {
  margin: 0 !important;
}

/* ─── Section headers — kleine Luft nach oben ─────────────────── */
[class*="mp-"] h2 {
  margin-top: 0.4rem !important;
}

.mp-full-bleed {
  position:     relative;
  margin-left:  calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  width:        100vw !important;
  max-width:    none !important;
}

/* ─── Label ──────────────────────────────────────────────────── */
.mp-label {
  display: block;
  font-family: var(--mp-font-body);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--mp-color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.mp-label--spaced { letter-spacing: 0.12em; font-size: 0.7rem; }

/* ─── Button ─────────────────────────────────────────────────── */
.mp-button {
  display: inline-block;
  align-self: flex-start;
  padding: 0.6em 1.4em;
  background: var(--mp-color-primary);
  color: var(--mp-color-white);
  font-family: var(--mp-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--mp-radius-button);
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.mp-button:hover,
.mp-button:focus {
  background: var(--mp-color-primary-light);
  color: var(--mp-color-white);
  box-shadow: 0 15px 25px -7px rgba(0,0,0,0.15);
}

.mp-button--secondary {
  background: transparent;
  color: var(--mp-color-primary);
  border: 2px solid var(--mp-color-primary);
}

.mp-button--secondary:hover,
.mp-button--secondary:focus {
  background: var(--mp-color-primary);
  color: var(--mp-color-white);
}

.mp-cta-pdf__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Hero Base ──────────────────────────────────────────────── */
/* Hintergrundbild wird in der jeweiligen Page-CSS definiert */
.mp-hero {
  min-height: 480px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.mp-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--mp-color-bg) 41%, rgba(244,248,242,0) 100%);
}

.mp-hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--mp-content-width);
  margin: 0 auto;
  padding: var(--mp-spacing-xxl) var(--mp-edge-padding);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* ─── Hero: ab 1000px kein Hintergrundbild — nur Hintergrundfarbe ── */
@media (max-width: 1000px) {
  .mp-hero,
  .mp-hub-hero {
    background-image: none !important;
    background-color: var(--mp-color-bg);
    min-height: auto;
  }

  .mp-hero__overlay,
  .mp-hub-hero .mp-hero__overlay {
    display: none;
  }
}

.mp-hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--mp-spacing-xs);
}

.mp-hero__title {
  /* Exakt Kadence global-kb-font-size-xl */
  font-size: clamp(2.25rem, 1.728rem + 1.63vw, 3rem);
  font-weight: 700;
  color: var(--mp-color-dark);
  font-family: var(--mp-font-heading);
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.mp-hero__subtitle {
  /* Exakt Kadence Subtitle-Stil: Body-Größe, dunkle Farbe, kein max-width */
  font-size: 17px;
  color: var(--mp-color-dark);
  font-family: var(--mp-font-body);
  line-height: 1.6;
}

/* ─── Responsive Base ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .mp-hero__inner {
    grid-template-columns: 1fr;
  }
  .mp-hero__overlay {
    background: linear-gradient(180deg, var(--mp-color-bg) 53%, rgba(244,248,242,0) 100%);
  }
  .mp-hero__title,
  .mp-hero__subtitle {
    text-align: center;
    max-width: 100%;
  }
}

/* ─── Image Placeholder ──────────────────────────────────────── */
.mp-image-placeholder {
  border: 2px dashed var(--mp-color-primary-light);
  border-radius: 8px;
  background: #f6fbf0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mp-image-placeholder__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mp-color-primary);
  margin: 0;
}
.mp-image-placeholder__desc {
  font-size: 0.9rem;
  color: var(--mp-color-gray-dark);
  margin: 0;
  font-style: italic;
}


/* ─── Logo shrink — verhindert dass Burger-Menü bei <420px verschwindet ── */
@media (max-width: 480px) {
  .custom-logo {
    max-width: 140px !important;
    height: auto !important;
    width: auto !important;
  }
}
