/**
 * Mediora Popups - Styles der Weihnachtsvorlagen.
 *
 * Die Vorlagen selbst bestehen aus Core-Bloecken (patterns/*.html). Hier liegt
 * nur das Design, damit der Inhalt im Editor aus normalen Bloecken besteht und
 * trotzdem exakt wie im Entwurf aussieht. Jede Vorlage ist unter .mf-xN
 * gekapselt und kollidiert nicht mit Theme oder Page-Builder.
 *
 * Wird nur geladen, wenn ein Popup die Vorlagen-Klassen nutzt.
 */

/* --------------------------------------------------------------------------
   tpl-01-gutschein-split
   -------------------------------------------------------------------------- */
  .mf-x1,
  .mf-x1 *,
  .mf-x1 *::before,
  .mf-x1 *::after { box-sizing: border-box; }

  .mf-x1 {
    --ink: #1A1A17;
    --muted: #4B463D;
    --cream: #F7F1E6;
    --paper: #FCF8F1;
    --pine: #24382C;
    --gold: #C9A66B;
    --clay: #8F5E37;

    display: grid;
    grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
    background: var(--cream);
    color: var(--ink);
    border-radius: 14px;
    overflow: hidden;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
  }

  .mf-x1__media { position: relative; min-height: 100%; background: #E3DACB; }

  .mf-x1__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .mf-x1__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 17, 13, .12) 0%, rgba(20, 17, 13, 0) 40%, rgba(20, 17, 13, .46) 100%);
  }

  .mf-x1__brand {
    position: absolute;
    top: 18px;
    left: 20px;
    z-index: 1;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .4);
  }

  .mf-x1__badge {
    position: absolute;
    left: 20px;
    bottom: 18px;
    z-index: 1;
    display: grid;
    gap: 1px;
    color: #fff;
    text-shadow: 0 1px 14px rgba(0, 0, 0, .45);
  }

  .mf-x1__badge span:first-child {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    opacity: .9;
  }

  .mf-x1__badge span:last-child {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1.15;
  }

  .mf-x1__body {
    padding: clamp(24px, 3.4vw, 38px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .mf-x1 .mf-x1__eyebrow {
    margin: 0 0 9px !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--clay);
  }

  .mf-x1 .mf-x1__h,
  .mf-x1 h2.mf-x1__h {
    margin: 0 0 10px !important;
    font-family: inherit !important;
    font-size: clamp(22px, 2.4vw, 28px) !important;
    font-weight: 600 !important;
    line-height: 1.18 !important;
    letter-spacing: -.015em !important;
    color: var(--ink) !important;
    text-transform: none !important;
  }

  .mf-x1 .mf-x1__text,
  .mf-x1 p.mf-x1__text {
    margin: 0 0 14px !important;
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--muted);
  }

  .mf-x1 .mf-x1__amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 16px !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .mf-x1 .mf-x1__amounts li {
    margin: 0 !important;
    padding: 4px 12px;
    border: 1px solid rgba(26, 26, 23, .14);
    border-radius: 100px;
    background: var(--paper);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--ink);
  }

  .mf-x1 .mf-x1__bonus {
    margin: 0 0 18px;
    padding: 11px 13px;
    border-left: 3px solid var(--gold);
    border-radius: 8px;
    background: var(--paper);
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
  }

  .mf-x1 .mf-x1__bonus strong { color: var(--ink); font-weight: 600; }

  .mf-x1 .mf-x1__btn .wp-block-button__link,
  .mf-x1 .mf-x1__btn .wp-block-button__link:visited {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 100px;
    background: var(--pine);
    color: var(--cream) !important;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background-color .2s ease;
  }

  .mf-x1 .mf-x1__btn .wp-block-button__link:hover,
  .mf-x1 .mf-x1__btn .wp-block-button__link:focus { background: var(--clay); color: #fff !important; }

  .mf-x1 .mf-x1__btn .wp-block-button__link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

  .mf-x1 .mf-x1__note {
    margin: 9px 0 0 !important;
    font-size: 11.5px;
    line-height: 1.45;
    text-align: center;
    color: var(--muted);
    opacity: .8;
  }

  @media (max-width: 620px) {
    .mf-x1 { grid-template-columns: minmax(0, 1fr); }
    .mf-x1__media { min-height: 0; height: 190px; }
    .mf-x1__media img { object-position: center 55%; }
    .mf-x1__body { padding: 20px 18px 22px; }
    .mf-x1 .mf-x1__h,
    .mf-x1 h2.mf-x1__h { font-size: 21px !important; }
  }

  @media (prefers-reduced-motion: reduce) {
    .mf-x1 .mf-x1__btn .wp-block-button__link { transition: none; }
  }

/* --------------------------------------------------------------------------
   tpl-02-festlich-full
   -------------------------------------------------------------------------- */
  .mf-x2,
  .mf-x2 *,
  .mf-x2 *::before,
  .mf-x2 *::after { box-sizing: border-box; }

  .mf-x2 {
    --cream: #F7F1E6;
    --gold: #D9B77C;

    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(360px, 52vw, 460px);
    border-radius: 14px;
    overflow: hidden;
    background: #17251F;
    color: var(--cream);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
  }

  .mf-x2__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .mf-x2::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(13, 22, 18, .18) 0%, rgba(13, 22, 18, .30) 42%, rgba(13, 22, 18, .86) 100%),
      linear-gradient(90deg, rgba(13, 22, 18, .55) 0%, rgba(13, 22, 18, 0) 62%);
  }

  .mf-x2__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: clamp(24px, 4vw, 40px);
    max-width: 30em;
  }

  .mf-x2 .mf-x2__eyebrow {
    margin: 0 0 10px !important;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--gold);
  }

  .mf-x2 .mf-x2__h,
  .mf-x2 h2.mf-x2__h {
    margin: 0 0 10px !important;
    font-family: inherit !important;
    font-size: clamp(26px, 3.6vw, 36px) !important;
    font-weight: 600 !important;
    line-height: 1.12 !important;
    letter-spacing: -.02em !important;
    color: var(--cream) !important;
    text-transform: none !important;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
  }

  .mf-x2 .mf-x2__text,
  .mf-x2 p.mf-x2__text {
    margin: 0 0 18px !important;
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(247, 241, 230, .88);
    text-shadow: 0 1px 12px rgba(0, 0, 0, .3);
  }

  .mf-x2 .mf-x2__row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .mf-x2 .mf-x2__btn .wp-block-button__link,
  .mf-x2 .mf-x2__btn .wp-block-button__link:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 100px;
    background: var(--cream);
    color: #17251F !important;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background-color .2s ease, color .2s ease;
  }

  .mf-x2 .mf-x2__btn .wp-block-button__link:hover,
  .mf-x2 .mf-x2__btn .wp-block-button__link:focus { background: var(--gold); color: #17251F !important; }

  .mf-x2 .mf-x2__btn .wp-block-button__link:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

  .mf-x2 .mf-x2__meta {
    margin: 0 !important;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(247, 241, 230, .75);
  }

  @media (max-width: 620px) {
    .mf-x2 { min-height: 420px; border-radius: 12px; }
    .mf-x2__img { object-position: center 40%; }
    .mf-x2__inner { padding: 22px 18px 24px; }
    .mf-x2 .mf-x2__h,
    .mf-x2 h2.mf-x2__h { font-size: 25px !important; }
    .mf-x2 .mf-x2__text,
    .mf-x2 p.mf-x2__text { font-size: 14px; }
  }

/* --------------------------------------------------------------------------
   tpl-03-weihnachtskarte
   -------------------------------------------------------------------------- */
  .mf-x3,
  .mf-x3 *,
  .mf-x3 *::before,
  .mf-x3 *::after { box-sizing: border-box; }

  .mf-x3 {
    --ink: #1A1A17;
    --muted: #4B463D;
    --cream: #F7F1E6;
    --paper: #FCF8F1;
    --pine: #24382C;
    --gold: #C9A66B;
    --clay: #8F5E37;

    background: var(--paper);
    color: var(--ink);
    border-radius: 14px;
    overflow: hidden;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    font-size: 15px;
    line-height: 1.55;
    text-align: center;
  }

  .mf-x3__media { position: relative; height: clamp(150px, 30vw, 210px); background: #E3DACB; }

  .mf-x3__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

  .mf-x3__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 17, 13, .22) 0%, rgba(20, 17, 13, 0) 55%);
  }

  .mf-x3__brand {
    position: absolute;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 1;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .45);
  }

  .mf-x3__body { padding: clamp(24px, 4vw, 36px) clamp(22px, 4vw, 34px) clamp(22px, 4vw, 30px); }

  .mf-x3 .mf-x3__eyebrow {
    margin: 0 0 12px !important;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--clay);
  }

  .mf-x3 .mf-x3__h,
  .mf-x3 h2.mf-x3__h {
    margin: 0 auto 12px !important;
    max-width: 17em;
    font-family: inherit !important;
    font-size: clamp(23px, 3vw, 29px) !important;
    font-weight: 600 !important;
    line-height: 1.16 !important;
    letter-spacing: -.018em !important;
    color: var(--ink) !important;
    text-transform: none !important;
  }

  .mf-x3 .mf-x3__text,
  .mf-x3 p.mf-x3__text {
    margin: 0 auto 18px !important;
    max-width: 30em;
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.65;
    color: var(--muted);
  }

  .mf-x3 .mf-x3__rule {
    width: 44px;
    height: 1px;
    margin: 0 auto 18px;
    border: 0;
    background: var(--gold);
  }

  .mf-x3 .mf-x3__btn .wp-block-button__link,
  .mf-x3 .mf-x3__btn .wp-block-button__link:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 100px;
    background: var(--pine);
    color: var(--cream) !important;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background-color .2s ease;
  }

  .mf-x3 .mf-x3__btn .wp-block-button__link:hover,
  .mf-x3 .mf-x3__btn .wp-block-button__link:focus { background: var(--clay); color: #fff !important; }

  .mf-x3 .mf-x3__btn .wp-block-button__link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

  .mf-x3 .mf-x3__signature {
    margin: 18px 0 0 !important;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
    font-style: italic;
  }

  .mf-x3 .mf-x3__note {
    margin: 6px 0 0 !important;
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--muted);
    opacity: .78;
  }

  @media (max-width: 480px) {
    .mf-x3__media { height: 150px; }
    .mf-x3__body { padding: 20px 18px 22px; }
    .mf-x3 .mf-x3__h,
    .mf-x3 h2.mf-x3__h { font-size: 22px !important; }
    .mf-x3 .mf-x3__text,
    .mf-x3 p.mf-x3__text { font-size: 14px; }
  }

/* --------------------------------------------------------------------------
   tpl-04-adventskalender
   -------------------------------------------------------------------------- */
  .mf-x4,
  .mf-x4 *,
  .mf-x4 *::before,
  .mf-x4 *::after { box-sizing: border-box; }

  .mf-x4 {
    --ink: #1A1A17;
    --muted: #4B463D;
    --cream: #F7F1E6;
    --paper: #FCF8F1;
    --pine: #24382C;
    --gold: #C9A66B;
    --clay: #8F5E37;

    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    background: var(--cream);
    color: var(--ink);
    border-radius: 14px;
    overflow: hidden;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
  }

  .mf-x4__media { position: relative; min-height: 100%; background: #E3DACB; }

  .mf-x4__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

  .mf-x4__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 17, 13, .10) 0%, rgba(20, 17, 13, 0) 45%, rgba(20, 17, 13, .40) 100%);
  }

  .mf-x4__brand {
    position: absolute;
    top: 18px;
    left: 20px;
    z-index: 1;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .4);
  }

  .mf-x4__body { padding: clamp(22px, 3.4vw, 34px); }

  .mf-x4 .mf-x4__eyebrow {
    margin: 0 0 8px !important;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--clay);
  }

  .mf-x4 .mf-x4__h,
  .mf-x4 h2.mf-x4__h {
    margin: 0 0 10px !important;
    font-family: inherit !important;
    font-size: clamp(21px, 2.6vw, 26px) !important;
    font-weight: 600 !important;
    line-height: 1.18 !important;
    letter-spacing: -.015em !important;
    color: var(--ink) !important;
    text-transform: none !important;
  }

  .mf-x4 .mf-x4__text,
  .mf-x4 p.mf-x4__text {
    margin: 0 0 16px !important;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--muted);
  }

  /* ---------- 24 Türchen ---------- */
  .mf-x4 .mf-x4__doors {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    margin: 0 0 18px;
  }

  .mf-x4 .mf-x4__doors span {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(26, 26, 23, .12);
    border-radius: 5px;
    background: var(--paper);
    font-size: 12px;
    font-weight: 600;
    color: rgba(26, 26, 23, .5);
  }

  .mf-x4 .mf-x4__doors span.is-today,
  .mf-x4 .mf-x4__doors span:last-child {
    border-color: transparent;
    background: var(--pine);
    color: var(--gold);
  }

  .mf-x4 .mf-x4__btn .wp-block-button__link,
  .mf-x4 .mf-x4__btn .wp-block-button__link:visited {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    border-radius: 100px;
    background: var(--pine);
    color: var(--cream) !important;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background-color .2s ease;
  }

  .mf-x4 .mf-x4__btn .wp-block-button__link:hover,
  .mf-x4 .mf-x4__btn .wp-block-button__link:focus { background: var(--clay); color: #fff !important; }

  .mf-x4 .mf-x4__btn .wp-block-button__link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

  .mf-x4 .mf-x4__note {
    margin: 9px 0 0 !important;
    font-size: 11.5px;
    line-height: 1.45;
    text-align: center;
    color: var(--muted);
    opacity: .8;
  }

  @media (max-width: 620px) {
    .mf-x4 { grid-template-columns: minmax(0, 1fr); }
    .mf-x4__media { min-height: 0; height: 170px; }
    .mf-x4__body { padding: 20px 18px 22px; }
    .mf-x4 .mf-x4__h,
    .mf-x4 h2.mf-x4__h { font-size: 21px !important; }
  }

/* --------------------------------------------------------------------------
   tpl-05-last-minute
   -------------------------------------------------------------------------- */
  .mf-x5,
  .mf-x5 *,
  .mf-x5 *::before,
  .mf-x5 *::after { box-sizing: border-box; }

  .mf-x5 {
    --ink: #1A1A17;
    --muted: #4B463D;
    --cream: #F7F1E6;
    --paper: #FCF8F1;
    --pine: #24382C;
    --gold: #C9A66B;
    --clay: #8F5E37;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 40%);
    background: var(--paper);
    color: var(--ink);
    border-radius: 14px;
    overflow: hidden;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
  }

  .mf-x5__body { padding: clamp(24px, 3.6vw, 36px); display: flex; flex-direction: column; justify-content: center; }

  .mf-x5 .mf-x5__date {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    margin: 0 0 14px;
    padding: 6px 14px;
    border: 1px solid rgba(143, 94, 55, .32);
    border-radius: 100px;
    background: var(--cream);
    color: var(--clay);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
  }

  .mf-x5 .mf-x5__date strong {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--ink);
  }

  .mf-x5 .mf-x5__h,
  .mf-x5 h2.mf-x5__h {
    margin: 0 0 10px !important;
    font-family: inherit !important;
    font-size: clamp(22px, 2.6vw, 28px) !important;
    font-weight: 600 !important;
    line-height: 1.16 !important;
    letter-spacing: -.018em !important;
    color: var(--ink) !important;
    text-transform: none !important;
  }

  .mf-x5 .mf-x5__text,
  .mf-x5 p.mf-x5__text {
    margin: 0 0 14px !important;
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--muted);
  }

  .mf-x5 .mf-x5__list {
    display: grid;
    gap: 5px;
    margin: 0 0 18px !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .mf-x5 .mf-x5__list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 !important;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
  }

  .mf-x5 .mf-x5__list svg { flex: 0 0 auto; margin-top: 2px; color: var(--pine); }

  .mf-x5 .mf-x5__btn .wp-block-button__link,
  .mf-x5 .mf-x5__btn .wp-block-button__link:visited {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 100px;
    background: var(--pine);
    color: var(--cream) !important;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background-color .2s ease;
  }

  .mf-x5 .mf-x5__btn .wp-block-button__link:hover,
  .mf-x5 .mf-x5__btn .wp-block-button__link:focus { background: var(--clay); color: #fff !important; }

  .mf-x5 .mf-x5__btn .wp-block-button__link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

  .mf-x5 .mf-x5__note {
    margin: 9px 0 0 !important;
    font-size: 11.5px;
    line-height: 1.45;
    text-align: center;
    color: var(--muted);
    opacity: .8;
  }

  .mf-x5__media { position: relative; min-height: 100%; background: #E3DACB; }

  .mf-x5__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

  .mf-x5__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(252, 248, 241, .35) 0%, rgba(252, 248, 241, 0) 40%);
  }

  .mf-x5__stamp {
    position: absolute;
    z-index: 1;
    right: 16px;
    bottom: 16px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(252, 248, 241, .92);
    color: var(--clay);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.25;
    box-shadow: 0 8px 20px rgba(20, 17, 13, .22);
  }

  @media (max-width: 620px) {
    .mf-x5 { grid-template-columns: minmax(0, 1fr); }
    .mf-x5__body { padding: 20px 18px 22px; }
    .mf-x5__media { min-height: 0; height: 150px; order: -1; }
    .mf-x5__media::after { background: linear-gradient(180deg, rgba(252, 248, 241, 0) 55%, rgba(252, 248, 241, .35) 100%); }
    .mf-x5__stamp { width: 54px; height: 54px; right: 12px; bottom: 12px; font-size: 9px; }
  }

/* --------------------------------------------------------------------------
   tpl-06-team
   -------------------------------------------------------------------------- */
  .mf-x6,
  .mf-x6 *,
  .mf-x6 *::before,
  .mf-x6 *::after { box-sizing: border-box; }

  .mf-x6 {
    --ink: #1A1A17;
    --muted: #4B463D;
    --cream: #F7F1E6;
    --paper: #FCF8F1;
    --pine: #24382C;
    --gold: #C9A66B;
    --clay: #8F5E37;

    background: var(--cream);
    color: var(--ink);
    border-radius: 14px;
    overflow: hidden;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
  }

  .mf-x6__media { position: relative; height: clamp(150px, 32vw, 200px); background: #E3DACB; }

  .mf-x6__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

  .mf-x6__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 17, 13, .14) 0%, rgba(20, 17, 13, 0) 50%, rgba(247, 241, 230, .35) 100%);
  }

  .mf-x6__brand {
    position: absolute;
    top: 16px;
    left: 20px;
    z-index: 1;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .4);
  }

  .mf-x6__body { padding: clamp(22px, 4vw, 32px); }

  .mf-x6 .mf-x6__eyebrow {
    margin: 0 0 8px !important;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--clay);
  }

  .mf-x6 .mf-x6__h,
  .mf-x6 h2.mf-x6__h {
    margin: 0 0 10px !important;
    font-family: inherit !important;
    font-size: clamp(21px, 2.8vw, 26px) !important;
    font-weight: 600 !important;
    line-height: 1.18 !important;
    letter-spacing: -.015em !important;
    color: var(--ink) !important;
    text-transform: none !important;
  }

  .mf-x6 .mf-x6__text,
  .mf-x6 p.mf-x6__text {
    margin: 0 0 16px !important;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--muted);
  }

  .mf-x6 .mf-x6__perks {
    display: grid;
    gap: 10px;
    margin: 0 0 20px !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .mf-x6 .mf-x6__perks li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 !important;
    padding: 10px 12px;
    border-radius: 9px;
    background: var(--paper);
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
  }

  .mf-x6 .mf-x6__perks svg { flex: 0 0 auto; margin-top: 2px; color: var(--pine); }

  .mf-x6 .mf-x6__perks strong { display: block; color: var(--ink); font-weight: 600; }

  .mf-x6 .mf-x6__actions { display: grid; gap: 8px; }

  .mf-x6 .mf-x6__btn .wp-block-button__link,
  .mf-x6 .mf-x6__btn .wp-block-button__link:visited {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 100px;
    background: var(--pine);
    color: var(--cream) !important;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background-color .2s ease;
  }

  .mf-x6 .mf-x6__btn .wp-block-button__link:hover,
  .mf-x6 .mf-x6__btn .wp-block-button__link:focus { background: var(--clay); color: #fff !important; }

  .mf-x6 .mf-x6__btn .wp-block-button__link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

  .mf-x6 .mf-x6__link {
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--clay) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .mf-x6 .mf-x6__note {
    margin: 9px 0 0 !important;
    font-size: 11.5px;
    line-height: 1.45;
    text-align: center;
    color: var(--muted);
    opacity: .8;
  }

  @media (max-width: 480px) {
    .mf-x6__media { height: 150px; }
    .mf-x6__body { padding: 20px 18px 22px; }
    .mf-x6 .mf-x6__h,
    .mf-x6 h2.mf-x6__h { font-size: 21px !important; }
  }

/* --------------------------------------------------------------------------
   tpl-07-auszeit
   -------------------------------------------------------------------------- */
  .mf-x7,
  .mf-x7 *,
  .mf-x7 *::before,
  .mf-x7 *::after { box-sizing: border-box; }

  .mf-x7 {
    --ink: #1A1A17;
    --muted: #4B463D;
    --cream: #F7F1E6;
    --paper: #FCF8F1;
    --pine: #24382C;
    --gold: #C9A66B;
    --clay: #8F5E37;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 42%);
    background: var(--cream);
    color: var(--ink);
    border-radius: 14px;
    overflow: hidden;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
  }

  .mf-x7__body { padding: clamp(24px, 3.6vw, 36px); display: flex; flex-direction: column; justify-content: center; }

  .mf-x7 .mf-x7__eyebrow {
    margin: 0 0 8px !important;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--clay);
  }

  .mf-x7 .mf-x7__h,
  .mf-x7 h2.mf-x7__h {
    margin: 0 0 10px !important;
    font-family: inherit !important;
    font-size: clamp(22px, 2.7vw, 28px) !important;
    font-weight: 600 !important;
    line-height: 1.18 !important;
    letter-spacing: -.018em !important;
    color: var(--ink) !important;
    text-transform: none !important;
  }

  .mf-x7 .mf-x7__text,
  .mf-x7 p.mf-x7__text {
    margin: 0 0 16px !important;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--muted);
  }

  .mf-x7 .mf-x7__options {
    display: grid;
    margin: 0 0 18px !important;
    padding: 0 !important;
    list-style: none !important;
    border-top: 1px solid rgba(26, 26, 23, .12);
  }

  .mf-x7 .mf-x7__options li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin: 0 !important;
    padding: 10px 2px;
    border-bottom: 1px solid rgba(26, 26, 23, .12);
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--muted);
  }

  .mf-x7 .mf-x7__options strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
  }

  .mf-x7 .mf-x7__options em {
    display: block;
    font-size: 11.5px;
    font-style: normal;
    color: var(--muted);
    opacity: .85;
  }

  .mf-x7 .mf-x7__price {
    flex: 0 0 auto;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--ink);
  }

  .mf-x7 .mf-x7__btn .wp-block-button__link,
  .mf-x7 .mf-x7__btn .wp-block-button__link:visited {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 100px;
    background: var(--pine);
    color: var(--cream) !important;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background-color .2s ease;
  }

  .mf-x7 .mf-x7__btn .wp-block-button__link:hover,
  .mf-x7 .mf-x7__btn .wp-block-button__link:focus { background: var(--clay); color: #fff !important; }

  .mf-x7 .mf-x7__btn .wp-block-button__link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

  .mf-x7 .mf-x7__note {
    margin: 9px 0 0 !important;
    font-size: 11.5px;
    line-height: 1.45;
    text-align: center;
    color: var(--muted);
    opacity: .8;
  }

  .mf-x7__media { position: relative; min-height: 100%; background: #DCE0D2; }

  .mf-x7__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

  .mf-x7__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(270deg, rgba(20, 17, 13, 0) 55%, rgba(247, 241, 230, .30) 100%);
  }

  .mf-x7__badge {
    position: absolute;
    z-index: 1;
    left: 16px;
    bottom: 16px;
    padding: 7px 13px;
    border-radius: 100px;
    background: rgba(252, 248, 241, .92);
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    box-shadow: 0 8px 20px rgba(20, 17, 13, .18);
  }

  @media (max-width: 620px) {
    .mf-x7 { grid-template-columns: minmax(0, 1fr); }
    .mf-x7__media { min-height: 0; height: 170px; order: -1; }
    .mf-x7__media::after { background: linear-gradient(180deg, rgba(247, 241, 230, 0) 60%, rgba(247, 241, 230, .35) 100%); }
    .mf-x7__body { padding: 20px 18px 22px; }
    .mf-x7 .mf-x7__h,
    .mf-x7 h2.mf-x7__h { font-size: 22px !important; }
  }

/* --------------------------------------------------------------------------
   tpl-08-oeffnungszeiten
   -------------------------------------------------------------------------- */
  .mf-x8,
  .mf-x8 *,
  .mf-x8 *::before,
  .mf-x8 *::after { box-sizing: border-box; }

  .mf-x8 {
    --ink: #1A1A17;
    --muted: #4B463D;
    --cream: #F7F1E6;
    --paper: #FCF8F1;
    --pine: #24382C;
    --gold: #C9A66B;
    --clay: #8F5E37;

    background: var(--paper);
    color: var(--ink);
    border-radius: 14px;
    overflow: hidden;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
  }

  .mf-x8__media { position: relative; height: clamp(130px, 26vw, 180px); background: #E3DACB; }

  .mf-x8__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

  .mf-x8__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 17, 13, .20) 0%, rgba(20, 17, 13, 0) 55%, rgba(252, 248, 241, .30) 100%);
  }

  .mf-x8__brand {
    position: absolute;
    top: 15px;
    left: 20px;
    z-index: 1;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .4);
  }

  .mf-x8__body { padding: clamp(22px, 4vw, 32px); }

  .mf-x8 .mf-x8__eyebrow {
    margin: 0 0 8px !important;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--clay);
  }

  .mf-x8 .mf-x8__h,
  .mf-x8 h2.mf-x8__h {
    margin: 0 0 12px !important;
    font-family: inherit !important;
    font-size: clamp(21px, 2.6vw, 26px) !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: -.015em !important;
    color: var(--ink) !important;
    text-transform: none !important;
  }

  .mf-x8 .mf-x8__hours {
    display: grid;
    margin: 0 0 16px !important;
    padding: 0 !important;
    list-style: none !important;
    border-top: 1px solid rgba(26, 26, 23, .12);
  }

  .mf-x8 .mf-x8__hours li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 0 !important;
    padding: 9px 2px;
    border-bottom: 1px solid rgba(26, 26, 23, .12);
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--muted);
  }

  .mf-x8 .mf-x8__hours strong { font-weight: 600; color: var(--ink); }

  .mf-x8 .mf-x8__hours .is-closed { color: var(--clay); font-weight: 600; }

  .mf-x8 .mf-x8__text,
  .mf-x8 p.mf-x8__text {
    margin: 0 0 14px !important;
    font-size: 13px;
    line-height: 1.55;
    color: var(--muted);
  }

  .mf-x8 .mf-x8__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--pine) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .mf-x8 .mf-x8__note {
    margin: 12px 0 0 !important;
    padding-top: 12px;
    border-top: 1px solid rgba(26, 26, 23, .10);
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--muted);
    opacity: .8;
  }

  @media (max-width: 480px) {
    .mf-x8__media { height: 130px; }
    .mf-x8__body { padding: 18px 16px 20px; }
    .mf-x8 .mf-x8__h,
    .mf-x8 h2.mf-x8__h { font-size: 21px !important; }
    .mf-x8 .mf-x8__hours li { font-size: 13px; }
  }

/* --------------------------------------------------------------------------
   tpl-09-rabattcode
   -------------------------------------------------------------------------- */
  .mf-x9,
  .mf-x9 *,
  .mf-x9 *::before,
  .mf-x9 *::after { box-sizing: border-box; }

  .mf-x9 {
    --ink: #12100C;
    --cream: #F6EFE4;
    --muted: #C9BFAE;
    --gold: #D9B77C;

    display: grid;
    grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
    background: var(--ink);
    color: var(--cream);
    border-radius: 14px;
    overflow: hidden;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
  }

  .mf-x9__media { position: relative; min-height: 100%; background: #1D1A14; }

  .mf-x9__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; }

  .mf-x9__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(18, 16, 12, 0) 55%, rgba(18, 16, 12, .85) 100%);
  }

  .mf-x9__discount {
    position: absolute;
    z-index: 1;
    left: 18px;
    bottom: 18px;
    display: grid;
    gap: 0;
    color: var(--cream);
    text-shadow: 0 2px 16px rgba(0, 0, 0, .5);
  }

  .mf-x9__discount span:first-child {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
  }

  .mf-x9__discount span:last-child {
    font-size: clamp(34px, 6vw, 42px);
    font-weight: 600;
    letter-spacing: -.03em;
    line-height: 1;
  }

  .mf-x9__body { padding: clamp(22px, 3.4vw, 32px); }

  .mf-x9 .mf-x9__h,
  .mf-x9 h2.mf-x9__h {
    margin: 0 0 10px !important;
    font-family: inherit !important;
    font-size: clamp(21px, 2.6vw, 26px) !important;
    font-weight: 600 !important;
    line-height: 1.18 !important;
    letter-spacing: -.015em !important;
    color: var(--cream) !important;
    text-transform: none !important;
  }

  .mf-x9 .mf-x9__text,
  .mf-x9 p.mf-x9__text {
    margin: 0 0 14px !important;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--muted);
  }

  .mf-x9 .mf-x9__code {
    display: grid;
    gap: 8px;
    margin: 0 0 14px !important;
    padding: 13px;
    border: 1px dashed rgba(217, 183, 124, .55);
    border-radius: 11px;
    background: rgba(246, 239, 228, .05);
    text-align: center;
  }

  .mf-x9 .mf-x9__code-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .mf-x9 .mf-x9__code-val {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: clamp(22px, 5vw, 27px);
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.2;
    color: var(--gold);
    user-select: all;
    -webkit-user-select: all;
  }

  .mf-x9 .mf-x9__copy .wp-block-button__link {
    justify-self: center;
    margin: 0;
    padding: 7px 15px;
    border: 1px solid rgba(246, 239, 228, .26);
    border-radius: 100px;
    background: transparent;
    color: var(--cream);
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease;
  }

  .mf-x9 .mf-x9__copy .wp-block-button__link:hover,
  .mf-x9 .mf-x9__copy .wp-block-button__link:focus { border-color: var(--gold); color: var(--gold); }

  .mf-x9 .mf-x9__copy .wp-block-button__link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

  .mf-x9 .mf-x9__conditions {
    margin: 0 0 14px !important;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--muted);
    opacity: .85;
  }

  .mf-x9 .mf-x9__btn .wp-block-button__link,
  .mf-x9 .mf-x9__btn .wp-block-button__link:visited {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    border-radius: 100px;
    background: var(--cream);
    color: var(--ink) !important;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background-color .2s ease;
  }

  .mf-x9 .mf-x9__btn .wp-block-button__link:hover,
  .mf-x9 .mf-x9__btn .wp-block-button__link:focus { background: var(--gold); color: var(--ink) !important; }

  .mf-x9 .mf-x9__btn .wp-block-button__link:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

  @media (max-width: 620px) {
    .mf-x9 { grid-template-columns: minmax(0, 1fr); }
    .mf-x9__media { min-height: 0; height: 150px; }
    .mf-x9__media::after { background: linear-gradient(180deg, rgba(18, 16, 12, 0) 45%, rgba(18, 16, 12, .95) 100%); }
    .mf-x9__body { padding: 18px 16px 20px; }
    .mf-x9 .mf-x9__h,
    .mf-x9 h2.mf-x9__h { font-size: 21px !important; }
  }

/* --------------------------------------------------------------------------
   tpl-10-story
   -------------------------------------------------------------------------- */
  .mf-x10,
  .mf-x10 *,
  .mf-x10 *::before,
  .mf-x10 *::after { box-sizing: border-box; }

  .mf-x10 {
    --cream: #F7F1E6;
    --gold: #D9B77C;

    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 520px;
    border-radius: 14px;
    overflow: hidden;
    background: #17251F;
    color: var(--cream);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
  }

  .mf-x10__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

  .mf-x10::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 22, 18, .10) 0%, rgba(13, 22, 18, .18) 40%, rgba(13, 22, 18, .88) 100%);
  }

  .mf-x10__inner {
    position: relative;
    z-index: 1;
    padding: clamp(24px, 5vw, 36px);
    width: 100%;
  }

  .mf-x10 .mf-x10__eyebrow {
    margin: 0 0 10px !important;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--gold);
  }

  .mf-x10 .mf-x10__h,
  .mf-x10 h2.mf-x10__h {
    margin: 0 0 10px !important;
    font-family: inherit !important;
    font-size: clamp(27px, 5vw, 34px) !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    letter-spacing: -.025em !important;
    color: var(--cream) !important;
    text-transform: none !important;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .4);
  }

  .mf-x10 .mf-x10__text,
  .mf-x10 p.mf-x10__text {
    margin: 0 0 18px !important;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(247, 241, 230, .88);
    text-shadow: 0 1px 12px rgba(0, 0, 0, .3);
  }

  .mf-x10 .mf-x10__btn .wp-block-button__link,
  .mf-x10 .mf-x10__btn .wp-block-button__link:visited {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 100px;
    background: var(--cream);
    color: #17251F !important;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background-color .2s ease;
  }

  .mf-x10 .mf-x10__btn .wp-block-button__link:hover,
  .mf-x10 .mf-x10__btn .wp-block-button__link:focus { background: var(--gold); color: #17251F !important; }

  .mf-x10 .mf-x10__btn .wp-block-button__link:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

  .mf-x10 .mf-x10__note {
    margin: 10px 0 0 !important;
    font-size: 11.5px;
    line-height: 1.45;
    text-align: center;
    color: rgba(247, 241, 230, .72);
  }

  @media (max-width: 480px) {
    .mf-x10 { min-height: 440px; border-radius: 12px; }
    .mf-x10__inner { padding: 20px 18px 22px; }
    .mf-x10 .mf-x10__h,
    .mf-x10 h2.mf-x10__h { font-size: 26px !important; }
    .mf-x10 .mf-x10__text,
    .mf-x10 p.mf-x10__text { font-size: 13.5px; }
  }


/* ==========================================================================
   Core-Block-Kompatibilitaet
   Die Vorlagen sind Block-Markup; diese Regeln uebertragen das Design der
   Vorlagen auf die Block-Wrapper, damit Frontend und Editor gleich aussehen.
   ========================================================================== */

.mfp-tpl { margin: 0; }

/* Abstaende kommen aus dem Design, nicht aus dem Block-Layout. */
.mfp-tpl > * + *,
.mfp-tpl .wp-block-group > * + * { margin-block-start: 0; }

/* Bilder fuellen ihre Box wie im urspruenglichen Markup. */
.mfp-tpl .wp-block-image { margin: 0; }
.mfp-tpl .wp-block-image img { display: block; border-radius: 0; }

/* Feste Bildhoehen: das Bild sitzt im Figure-Wrapper. */
.mf-x3__media figure,
.mf-x6__media figure,
.mf-x8__media figure { position: absolute; inset: 0; height: 100%; }

/* Vollflaechige Bilder ohne eigenen Wrapper. */
.mf-x2__img img,
.mf-x10__img img { width: 100%; height: 100%; object-fit: cover; }

/* Buttons: Optik sitzt am Link, Abstaende am Block. */
.mfp-tpl .wp-block-buttons { margin: 0; }
.mfp-tpl .wp-block-button { margin: 0; width: 100%; }
.mfp-tpl .wp-block-button__link { font-family: inherit; box-shadow: none; }
.mfp-tpl .wp-block-button[class*="__btn"] .wp-block-button__link::after {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

/* Inline-Buttons bleiben so breit wie ihr Text. */
.mf-x2 .mf-x2__btn,
.mf-x3 .mf-x3__btn { width: auto; }
.mf-x2 .mf-x2__btn .wp-block-button__link,
.mf-x3 .mf-x3__btn .wp-block-button__link { width: auto; }
.mf-x3 .wp-block-buttons { justify-content: center; }

/* Textlinks in Absaetzen. */
.mf-x6 .mf-x6__link-row,
.mf-x8 .mf-x8__link-row { margin: 0 !important; padding: 0; }

/* Haekchen als CSS-Icon statt Inline-SVG. */
.mf-x5__list li::before,
.mf-x6__perks li::before {
  content: "\2713";
  flex: 0 0 auto;
  margin-top: 1px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--pine);
}

/* Rabattcode-Box: Absaetze ohne Abstaende, Kopier-Button zentriert. */
.mf-x9 .mf-x9__code p { margin: 0; }
.mf-x9 .mf-x9__copy-row { justify-self: center; }
.mf-x9 .mf-x9__copy { width: auto; }
.mf-x9 .mf-x9__copy .wp-block-button__link { width: auto; }

/* Overlay-Texte sitzen absolut und brauchen keine Absatz-Abstaende. */
.mfp-tpl .mf-x1__brand,
.mfp-tpl .mf-x1__badge,
.mfp-tpl .mf-x3__brand,
.mfp-tpl .mf-x4__brand,
.mfp-tpl .mf-x5__stamp,
.mfp-tpl .mf-x6__brand,
.mfp-tpl .mf-x7__badge,
.mfp-tpl .mf-x8__brand,
.mfp-tpl .mf-x9__discount { margin: 0; }
