/*
Theme Name: Mitteldeutscher Pfarrverein
Theme URI: https://mitteldeutscher-pfarrverein.de/
Author: Mitteldeutscher Pfarrverein
Description: Aufgeräumtes WordPress-Block-Theme für den Mitteldeutschen Pfarrverein mit großer Lutherrose, dem Leitwort „Berufen. Verbunden. Füreinander da.“, Breadcrumbs, barriereärmeren Schriftgrößen und Bordeaux-/Creme-Farbwelt.
Version: 0.14.12
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: mitteldeutscher-pfarrverein
*/

:root {
  --mpv-bordeaux: #8c1d2c;
  --mpv-bordeaux-dark: #6f1622;
  --mpv-cream: #f8f5f0;
  --mpv-paper: #fffdf9;
  --mpv-ink: #242221;
  --mpv-muted: #706b67;
  --mpv-line: #e7dfd7;
  --mpv-radius: 12px;
  --mpv-shadow: 0 14px 35px rgba(39,24,18,.07);
}

html { scroll-behavior: smooth; }
body { text-rendering: optimizeLegibility; }
.wp-site-blocks { overflow: hidden; }

.mpv-header {
  position: relative;
  z-index: 30;
  background: rgba(255,253,249,.98);
  border-bottom: 1px solid rgba(140,29,44,.10);
}

.mpv-header-inner {
  min-height: 205px;
  padding-top: 19px !important;
  padding-bottom: 19px !important;
  display: grid !important;
  grid-template-columns: 180px minmax(360px, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 1.35rem;
  row-gap: .55rem;
  align-items: center;
}

.mpv-brand-mark {
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 1;
  grid-row: 1 / 3;
}

.mpv-brand-mark img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  display: block;
}

.mpv-brand-copy {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  gap: .2rem !important;
}
.mpv-brand-copy .wp-block-site-title {
  margin: 0;
  letter-spacing: .005em;
  text-transform: uppercase;
  font-size: clamp(1.85rem, 2.6vw, 2.45rem) !important;
  line-height: 1.03 !important;
}
.mpv-brand-copy .mpv-tagline {
  margin: .28rem 0 0;
  color: var(--mpv-bordeaux) !important;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem) !important;
  font-weight: 600;
  line-height: 1.25;
}

.mpv-primary-nav {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
}
.mpv-primary-nav .wp-block-navigation-item__content {
  font-size: 1.1rem;
  font-weight: 650;
  line-height: 1.25;
}
.mpv-primary-nav .wp-block-navigation__container { gap: 2rem; }

.mpv-header-cta {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  justify-self: end;
}

.mpv-breadcrumb-wrap {
  width: 100%;
  background: var(--mpv-paper);
  border-top: 1px solid rgba(140,29,44,.06);
  border-bottom: 15px solid var(--mpv-bordeaux);
  margin: 0 0 15px;
}
.mpv-breadcrumbs {
  width: min(100% - 48px, 1200px);
  max-width: 1200px;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
  font-size: 1.05rem;
  color: var(--mpv-muted);
  padding: 1rem 0;
}
.mpv-breadcrumbs a { color: var(--mpv-bordeaux); }
.mpv-breadcrumbs .sep { padding: 0 .55rem; color: #a79c94; }

.mpv-hero {
  min-height: 520px;
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
}
.mpv-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,253,249,.99) 0%, rgba(255,253,249,.96) 44%, rgba(248,245,240,.82) 70%, rgba(248,245,240,.68) 100%);
  z-index: -1;
}
.mpv-hero-copy { max-width: 650px; }
.mpv-kicker {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
  font-weight: 700;
  color: var(--mpv-bordeaux);
}
.mpv-rule {
  width: 42px;
  border-top: 2px solid var(--mpv-bordeaux);
  margin: 1.15rem 0;
}

.mpv-card {
  height: 100%;
  min-width: 0;
  background: var(--mpv-paper);
  border: 1px solid var(--mpv-line);
  border-radius: var(--mpv-radius);
  box-shadow: 0 6px 20px rgba(39,24,18,.03);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}
.mpv-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--mpv-shadow);
  border-color: rgba(140,29,44,.24);
}
.mpv-card h3 { font-size: clamp(1.12rem, 1.4vw, 1.38rem) !important; }
.mpv-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f3ece6;
  color: var(--mpv-bordeaux);
  font-size: 1.3rem;
}
.mpv-service-grid { gap: 1rem !important; }
.mpv-news-card img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  border-radius: var(--mpv-radius) var(--mpv-radius) 0 0;
}

.mpv-membership-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #7a1926, #991f31);
  color: white;
}
.mpv-membership-band::after {
  content: "";
  position: absolute;
  right: 4%;
  top: 50%;
  width: 280px;
  height: 280px;
  transform: translateY(-50%);
  background: url('assets/images/lutherrose-footer.png') center/contain no-repeat;
  opacity: .11;
  pointer-events: none;
}
.mpv-membership-band > * { position: relative; z-index: 1; }
.mpv-membership-band a { color: inherit; }

.mpv-footer {
  border-top: 1px solid var(--mpv-line);
  background: #f4f0eb;
}
.mpv-footer-brand { gap: .9rem; }
.mpv-footer-logo { width: 82px; height: 82px; object-fit: contain; }
.mpv-footer-credit {
  background: var(--mpv-bordeaux-dark);
  color: white;
  font-size: .78rem;
}
.mpv-smallcaps {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .72rem;
  font-weight: 700;
}

.wp-block-button__link { transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(140,29,44,.15); }


/* Lesbarkeit: bewusst etwas größere Kleinschriften für eine altersgemischte Leserschaft. */
.mpv-card p,
.mpv-news-card p,
.mpv-membership-band p,
.mpv-footer p,
.mpv-footer li,
.mpv-footer a {
  font-size: 1rem !important;
  line-height: 1.5 !important;
}
.mpv-card .wp-block-read-more,
.mpv-news-card .wp-block-read-more,
.mpv-smallcaps {
  font-size: .9rem !important;
}
.mpv-hero-copy > p:not(.mpv-kicker) {
  font-size: 1.15rem !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
}
@media (max-width: 1100px) {
  .mpv-header-inner {
    min-height: 175px;
    grid-template-columns: 140px minmax(300px, 1fr) auto;
  }
  .mpv-brand-mark, .mpv-brand-mark img { width: 140px; height: 140px; }
  .mpv-brand-copy .wp-block-site-title { font-size: 1.75rem !important; }
  .mpv-brand-copy .mpv-tagline { font-size: 1.05rem !important; }
  .mpv-primary-nav .wp-block-navigation__container { gap: 1.25rem; }
  .mpv-primary-nav .wp-block-navigation-item__content { font-size: 1rem; }
}

@media (max-width: 781px) {
  .mpv-header-inner {
    min-height: auto;
    padding-block: 16px !important;
    grid-template-columns: 92px 1fr auto;
    grid-template-rows: auto auto;
    column-gap: .8rem;
  }
  .mpv-brand-mark, .mpv-brand-mark img { width: 92px; height: 92px; }
  .mpv-brand-copy .wp-block-site-title { font-size: 1.3rem !important; }
  .mpv-brand-copy .mpv-tagline { font-size: .9rem !important; }
  .mpv-primary-nav { grid-column: 2 / 4; width: 100%; }
  .mpv-header-cta { display: none; }
  .mpv-primary-nav .wp-block-navigation-item__content { font-size: 1.05rem; }
  .mpv-hero { min-height: auto; padding-block: 4rem !important; }
  .mpv-hero::before { background: rgba(255,253,249,.96); }
  .mpv-membership-band::after { width: 200px; height: 200px; right: -55px; }
}

@media (max-width: 520px) {
  .mpv-header-inner {
    grid-template-columns: 74px 1fr;
    grid-template-rows: auto auto;
  }
  .mpv-brand-mark, .mpv-brand-mark img { width: 74px; height: 74px; }
  .mpv-brand-copy .wp-block-site-title { font-size: 1.08rem !important; }
  .mpv-brand-copy .mpv-tagline { font-size: .8rem !important; }
  .mpv-primary-nav { grid-column: 1 / 3; }
  .mpv-breadcrumbs { font-size: .95rem; }
}

@media (max-width: 700px) {
  .mpv-breadcrumbs {
    width: calc(100% - 32px);
    padding: .9rem 0;
  }
}




/* === 0.12.1 Typografie === */
/* Normale Seitenüberschrift: semantisch H1, optisch bewusst zurückhaltend */
.wp-block-post-title,
main h1:not(.mpv-hero h1) {
  font-size: 1.8rem !important;
  line-height: 1.18 !important;
}

/* Hero-H1 bleibt größer als eine normale Seitenüberschrift */
.mpv-hero h1,
.mpv-hero .wp-block-heading {
  font-size: clamp(1.9rem, 2.9vw, 2.975rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.02em;
}

/* Einheitliches SVG-Icon-System */
.mpv-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mpv-bordeaux);
  margin-bottom: .65rem;
}
.mpv-icon svg {
  width: 34px;
  height: 34px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1000px) {
  .wp-block-post-title,
  main h1:not(.mpv-hero h1) {
    font-size: 1.6em !important;
  }
}

@media (max-width: 700px) {
  .wp-block-post-title,
  main h1:not(.mpv-hero h1) {
    font-size: 1.4rem !important;
  }

  .mpv-hero h1,
  .mpv-hero .wp-block-heading {
    font-size: clamp(1.65rem, 6.3vw, 2.1rem) !important;
    line-height: 1.06 !important;
  }
}

/* 0.12.3: Wortmarke */
.mpv-brand-copy .wp-block-site-title { font-weight: 600 !important; }


/* 0.12.4: Vereinsname ab Tablet einzeilig halten */
@media (min-width: 700px) {
  .mpv-brand-copy .wp-block-site-title,
  .mpv-brand-copy .wp-block-site-title a {
    white-space: nowrap !important;
  }
}







.mpv-brand-mark {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: center !important;
}

.mpv-brand-stack {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mpv-brand-copy {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mpv-primary-nav {
  width: 100% !important;
  margin: .72rem 0 0 0 !important;
  padding: 0 !important;
}

.mpv-primary-nav .wp-block-navigation__responsive-container,
.mpv-primary-nav .wp-block-navigation__responsive-container-content,
.mpv-primary-nav .wp-block-navigation__container {
  margin-left: 0 !important;
  padding-left: 0 !important;
  justify-content: flex-start !important;
}

.mpv-header-cta {
  grid-column: 3 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: end !important;
}

@media (max-width: 1100px) and (min-width: 782px) {
  .mpv-header-inner {
    grid-template-columns: 140px minmax(0, 1fr) auto !important;
  }
}

@media (max-width: 781px) {
  .mpv-header-inner {
    grid-template-columns: 92px minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
  }
  .mpv-brand-mark {
    grid-column: 1 !important;
  }
  .mpv-brand-stack {
    grid-column: 2 !important;
  }
  .mpv-header-cta {
    display: none !important;
  }
}

@media (max-width: 520px) {
  .mpv-header-inner {
    grid-template-columns: 74px minmax(0, 1fr) !important;
  }
  .mpv-primary-nav {
    margin-top: .55rem !important;
  }
}


/* =========================================================
   0.13 – Canonical Header
   ========================================================= */
.mpv-header {
  background: var(--mpv-paper);
  padding-top: 1.35rem;
  padding-bottom: 1.35rem;
}

.mpv-header-inner {
  display: grid !important;
  grid-template-columns: 180px minmax(0, 1fr) auto !important;
  grid-template-areas:
    "logo brand cta"
    "logo nav   cta";
  column-gap: 1.4rem !important;
  row-gap: .55rem !important;
  align-items: center !important;
}

.mpv-brand-mark {
  grid-area: logo;
  align-self: center;
}

.mpv-brand-mark img {
  display: block;
  width: 180px;
  height: auto;
  max-width: 100%;
}

.mpv-brand-copy {
  grid-area: brand;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}

.mpv-brand-copy .wp-block-site-title {
  margin: 0 !important;
  font-family: var(--wp--preset--font-family--serif);
  font-weight: 600 !important;
  font-size: clamp(1.85rem, 2.6vw, 2.45rem) !important;
  line-height: 1.03 !important;
  letter-spacing: .005em;
  text-transform: uppercase;
}

@media (min-width: 700px) {
  .mpv-brand-copy .wp-block-site-title,
  .mpv-brand-copy .wp-block-site-title a {
    white-space: nowrap !important;
  }
}

.mpv-tagline {
  margin: .28rem 0 0 0 !important;
  font-size: 1.12rem;
  line-height: 1.35;
  color: var(--mpv-muted);
}

.mpv-primary-nav {
  grid-area: nav;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  justify-self: stretch;
}

.mpv-primary-nav .wp-block-navigation__responsive-container,
.mpv-primary-nav .wp-block-navigation__responsive-container-content,
.mpv-primary-nav .wp-block-navigation__container {
  margin-left: 0 !important;
  padding-left: 0 !important;
  justify-content: flex-start !important;
}

.mpv-primary-nav .wp-block-navigation-item__content {
  font-size: 1.08rem;
  font-weight: 600;
}

.mpv-header-cta {
  grid-area: cta;
  align-self: center;
  justify-self: end;
  margin: 0 !important;
}

@media (max-width: 1100px) and (min-width: 782px) {
  .mpv-header-inner {
    grid-template-columns: 145px minmax(0, 1fr) auto !important;
  }
  .mpv-brand-mark img {
    width: 145px;
  }
}

@media (max-width: 781px) {
  .mpv-header {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .mpv-header-inner {
    grid-template-columns: 96px minmax(0, 1fr) !important;
    grid-template-areas:
      "logo brand"
      "logo nav";
    column-gap: 1rem !important;
    row-gap: .45rem !important;
    align-items: start !important;
  }

  .mpv-brand-mark img {
    width: 96px;
  }

  .mpv-header-cta {
    display: none !important;
  }

  .mpv-brand-copy .wp-block-site-title {
    font-size: 1.55rem !important;
    white-space: normal !important;
  }

  .mpv-tagline {
    font-size: 1rem;
  }
}

@media (max-width: 520px) {
  .mpv-header-inner {
    grid-template-columns: 74px minmax(0, 1fr) !important;
  }
  .mpv-brand-mark img {
    width: 74px;
  }
  .mpv-brand-copy .wp-block-site-title {
    font-size: 1.3rem !important;
  }
  .mpv-primary-nav .wp-block-navigation-item__content {
    font-size: 1rem;
  }
}

/* Breadcrumbs */
.mpv-breadcrumb-wrap {
  width: 100%;
  background: var(--mpv-paper);
  border-top: 1px solid rgba(140,29,44,.06);
  border-bottom: 15px solid var(--mpv-bordeaux);
  margin: 0 0 15px;
}

.mpv-breadcrumbs {
  width: min(100% - 48px, 1200px);
  max-width: 1200px;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
  font-size: 1.05rem;
  color: var(--mpv-muted);
  padding: 1rem 0;
}

@media (max-width: 700px) {
  .mpv-breadcrumbs {
    width: calc(100% - 32px);
    padding: .9rem 0;
  }
}

/* Normal page H1 and hero H1 */
.wp-block-post-title,
main h1:not(.mpv-hero h1) {
  font-size: 1.8rem !important;
  line-height: 1.18 !important;
}

.mpv-hero h1,
.mpv-hero .wp-block-heading {
  font-size: clamp(1.9rem, 2.9vw, 2.975rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.02em;
}

@media (max-width: 1000px) {
  .wp-block-post-title,
  main h1:not(.mpv-hero h1) {
    font-size: 1.6em !important;
  }
}

@media (max-width: 700px) {
  .wp-block-post-title,
  main h1:not(.mpv-hero h1) {
    font-size: 1.4rem !important;
  }

  .mpv-hero h1,
  .mpv-hero .wp-block-heading {
    font-size: clamp(1.65rem, 6.3vw, 2.1rem) !important;
    line-height: 1.06 !important;
  }
}


/* =========================================================
   0.14 – Hero mit eigenem Foto aus Luthers Taufkirche
   ========================================================= */
.mpv-hero {
  min-height: 0 !important;
  display: block !important;
  padding: 0 !important;
  position: relative;
  overflow: hidden;
}

.mpv-hero::before {
  display: none !important;
}

.mpv-hero-inner {
  display: grid !important;
  grid-template-columns: minmax(0, 42%) minmax(0, 58%) !important;
  align-items: stretch !important;
  gap: 0 !important;
  width: min(100% - 48px, 1200px) !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.mpv-hero-copy {
  max-width: none !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 3.25rem 3.5rem 0 !important;
  box-sizing: border-box;
}

.mpv-hero-photo {
  margin: 10px 0 0 0 !important;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.mpv-hero-photo img {
  width: 100%;
  height: 430px;
  flex: 1 1 auto;
  display: block;
  object-fit: cover;
  object-position: center 56%;
  border-radius: 2px;
}

.mpv-hero-photo figcaption {
  margin: .48rem 0 .7rem;
  font-size: .82rem;
  line-height: 1.35;
  color: var(--mpv-muted);
  text-align: right;
}

@media (max-width: 900px) {
  .mpv-hero-inner {
    grid-template-columns: 1fr !important;
  }

  .mpv-hero-copy {
    padding: 2.6rem 0 2rem !important;
    max-width: 680px !important;
  }

  .mpv-hero-photo {
    margin-top: 0 !important;
    min-height: 0;
  }

  .mpv-hero-photo img {
    height: auto;
    max-height: 520px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .mpv-hero-photo figcaption {
    text-align: left;
  }
}

@media (max-width: 700px) {
  .mpv-hero-inner {
    width: calc(100% - 32px) !important;
  }

  .mpv-hero-copy {
    padding-top: 2rem !important;
  }

  .mpv-hero-photo img {
    aspect-ratio: 3 / 2;
  }

  .mpv-hero-photo figcaption {
    font-size: .78rem;
  }
}


/* =========================================================
   0.14 – überarbeitete Fassung nach Redaktionsfeedback
   ========================================================= */

/* Header: etwas kompakter, warm getönt, aber ruhig */
.mpv-header {
  background:
    linear-gradient(180deg, rgba(248,245,240,.98), rgba(250,247,243,.98)) !important;
  border-bottom: 1px solid rgba(140,29,44,.08);
}

@media (min-width: 1101px) {
  .mpv-header-inner {
    grid-template-columns: 150px minmax(0, 1fr) auto !important;
  }
  .mpv-brand-mark img {
    width: 150px !important;
  }
}

@media (max-width: 1100px) and (min-width: 782px) {
  .mpv-header-inner {
    grid-template-columns: 130px minmax(0, 1fr) auto !important;
  }
  .mpv-brand-mark img {
    width: 130px !important;
  }
}

/* Hero: große Überschrift zentriert über beiden Spalten */
.mpv-hero {
  padding: 2.4rem 0 0 !important;
}

.mpv-hero-title-wrap {
  width: min(100% - 48px, 1200px);
  margin: 0 auto 1.55rem;
  text-align: center;
}

.mpv-hero-title-wrap h1 {
  margin: 0 auto !important;
  max-width: 900px;
  font-size: clamp(2.1rem, 3.2vw, 3.25rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.02em;
}

.mpv-hero-title-wrap .mpv-rule {
  margin: .95rem auto 0;
}

.mpv-hero-inner {
  grid-template-columns: minmax(0, 40%) minmax(0, 60%) !important;
  align-items: center !important;
}

.mpv-hero-copy {
  padding: 2.15rem 3rem 2.5rem 0 !important;
}

.mpv-hero-copy .has-large-font-size {
  font-size: 1.12rem !important;
  line-height: 1.58 !important;
}

.mpv-hero-photo {
  margin-top: 10px !important;
}

@media (max-width: 900px) {
  .mpv-hero-title-wrap {
    width: calc(100% - 32px);
    margin-bottom: 1rem;
  }
  .mpv-hero-title-wrap h1 {
    font-size: clamp(1.95rem, 6vw, 2.6rem) !important;
  }
  .mpv-hero-inner {
    grid-template-columns: 1fr !important;
  }
  .mpv-hero-copy {
    padding: 1.5rem 0 1.8rem !important;
  }
}

/* Formulare/Downloads als besonders nützlicher Schnellzugriff */
.mpv-service-card.mpv-download-card {
  border-color: rgba(140,29,44,.30) !important;
  background: rgba(140,29,44,.035) !important;
}

.mpv-service-card.mpv-download-card .mpv-icon {
  background: rgba(140,29,44,.10);
  border-radius: 999px;
}

.mpv-service-card.mpv-download-card h3,
.mpv-service-card.mpv-download-card .wp-block-heading {
  color: var(--mpv-bordeaux);
}


/* 0.14.1 – kompakter Header und transparente Lutherrose */
@media (min-width: 782px) {
  .mpv-header {
    padding-top: .45rem !important;
    padding-bottom: .45rem !important;
  }

  .mpv-header-inner {
    row-gap: .25rem !important;
  }

  .mpv-tagline {
    margin-top: .15rem !important;
  }
}


/* 0.14.2 – weichere Übergänge am Startbild */
.mpv-hero-photo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Desktop: das Foto läuft links weich in den cremefarbenen Hero aus */
@media (min-width: 901px) {
  .mpv-hero-photo::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0 auto 0 0;
    width: 52px;
    pointer-events: none;
    background: linear-gradient(
      90deg,
      var(--wp--preset--color--cream, #f7f3ed) 0%,
      rgba(247,243,237,.72) 30%,
      rgba(247,243,237,0) 100%
    );
  }

  .mpv-hero-photo img {
    transform: scale(1.005);
  }
}

/* Tablet/Smartphone: weicher Übergang vom Textbereich nach unten ins Bild */
@media (max-width: 900px) {
  .mpv-hero-photo::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0 0 auto 0;
    height: 42px;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      var(--wp--preset--color--cream, #f7f3ed) 0%,
      rgba(247,243,237,.68) 32%,
      rgba(247,243,237,0) 100%
    );
  }
}


/* =========================================================
   0.14.3 – sichtbare Korrekturen
   ========================================================= */

/* Header wirklich niedriger: Desktop-Logo 120px statt 150px */
@media (min-width: 1101px) {
  .mpv-header {
    padding-top: .28rem !important;
    padding-bottom: .28rem !important;
  }

  .mpv-header-inner {
    grid-template-columns: 120px minmax(0, 1fr) auto !important;
    row-gap: .18rem !important;
  }

  .mpv-brand-mark img {
    width: 120px !important;
  }

  .mpv-tagline {
    margin-top: .10rem !important;
  }
}

/* Tablet ebenfalls kompakter */
@media (max-width: 1100px) and (min-width: 782px) {
  .mpv-header-inner {
    grid-template-columns: 115px minmax(0, 1fr) auto !important;
  }

  .mpv-brand-mark img {
    width: 115px !important;
  }
}

/* Hero-Foto: nur noch ein sehr dezenter Übergang an der linken Kante */
@media (min-width: 901px) {
  .mpv-hero-photo::before {
    width: 24px !important;
    background: linear-gradient(
      90deg,
      rgba(247,243,237,.42) 0%,
      rgba(247,243,237,.18) 38%,
      rgba(247,243,237,0) 100%
    ) !important;
  }

  .mpv-hero-photo img {
    transform: none !important;
  }
}

/* Mobil ebenfalls dezenter */
@media (max-width: 900px) {
  .mpv-hero-photo::before {
    height: 22px !important;
    background: linear-gradient(
      180deg,
      rgba(247,243,237,.38) 0%,
      rgba(247,243,237,.14) 40%,
      rgba(247,243,237,0) 100%
    ) !important;
  }
}


/* =========================================================
   0.14.4 – Logo wieder 150px, Header selbst kompakter
   ========================================================= */
@media (min-width: 1101px) {
  .mpv-header {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .mpv-header-inner {
    grid-template-columns: 150px minmax(0, 1fr) auto !important;
    row-gap: 0 !important;
    min-height: 150px !important;
    align-items: center !important;
  }

  .mpv-brand-mark {
    height: 150px !important;
    display: flex !important;
    align-items: center !important;
  }

  .mpv-brand-mark img {
    width: 150px !important;
    height: 150px !important;
    object-fit: contain !important;
  }

  .mpv-brand-copy {
    align-self: end !important;
    padding-bottom: .12rem !important;
  }

  .mpv-primary-nav {
    align-self: start !important;
    margin-top: .08rem !important;
  }

  .mpv-tagline {
    margin-top: .08rem !important;
  }
}

@media (max-width: 1100px) and (min-width: 782px) {
  .mpv-header {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .mpv-header-inner {
    grid-template-columns: 150px minmax(0, 1fr) auto !important;
    row-gap: 0 !important;
    min-height: 150px !important;
  }

  .mpv-brand-mark img {
    width: 150px !important;
    height: 150px !important;
    object-fit: contain !important;
  }
}

/* Dynamisches Pfarrerblatt-Cover */
.mpv-issue-cover { display:flex; justify-content:center; align-items:center; }
.mpv-issue-cover-image { display:block; width:auto; max-width:100%; height:auto; max-height:480px; object-fit:contain; box-shadow:0 7px 22px rgba(0,0,0,.12); }
.mpv-issue-cover a { display:inline-block; max-width:100%; }
.mpv-issue-empty { text-align:center; padding:2rem .75rem; color:var(--mpv-muted); }
.mpv-issue-empty strong { color:var(--mpv-bordeaux); font-size:1.3rem; }

/* Header wordmark retains typography without changing the legal site title. */
.mpv-brand-copy .mpv-header-title a { color: inherit; text-decoration: none; font-weight: 600; font-family: Georgia, "Times New Roman", serif; }
