/*
 * IFP Content MetaFields Manager – Frontend Output
 * Safe base styles for dynamic lists and Elementor-style icon lists.
 */

.ifp-cmm-frontend-dynamic-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ifp-cmm-frontend-dynamic-list-item {
  display: flex;
  align-items: center;
  gap: 0.55em;
  min-width: 0;
}

.ifp-cmm-frontend-dynamic-list-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 1;
}

.ifp-cmm-frontend-dynamic-list-icon i {
  display: inline-block;
  line-height: 1;
}

.ifp-cmm-frontend-dynamic-list-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ifp-cmm-frontend-dynamic-list.elementor-icon-list-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ifp-cmm-frontend-dynamic-list .elementor-icon-list-item {
  display: flex;
  align-items: center;
}


/* IFP Query Builder Elementor Widget */
.ifp-cmm-query-results {
  display: grid;
  gap: 24px;
}

.ifp-cmm-query-results--cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ifp-cmm-query-results--list {
  grid-template-columns: 1fr;
}

.ifp-cmm-query-result {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #fff;
  overflow: hidden;
}

.ifp-cmm-query-results--list .ifp-cmm-query-result {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  align-items: stretch;
}

.ifp-cmm-query-result-image {
  min-width: 0;
  background: rgba(148, 163, 184, 0.08);
}

.ifp-cmm-query-result-image a {
  display: block;
}

.ifp-cmm-query-result-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.ifp-cmm-query-results--cards .ifp-cmm-query-result-image img {
  aspect-ratio: 16 / 9;
}

.ifp-cmm-query-results--list .ifp-cmm-query-result-image img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.ifp-cmm-query-result-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 18px;
}

.ifp-cmm-query-result-date {
  font-size: 0.86em;
  opacity: 0.75;
}

.ifp-cmm-query-result-title {
  margin: 0;
  line-height: 1.2;
}

.ifp-cmm-query-result-title a {
  color: inherit;
  text-decoration: none;
}

.ifp-cmm-query-result-title a:hover,
.ifp-cmm-query-result-title a:focus {
  text-decoration: underline;
}

.ifp-cmm-query-result-excerpt {
  line-height: 1.55;
}

.ifp-cmm-query-result-meta-list {
  display: grid;
  gap: 7px;
  margin-top: 4px;
}

.ifp-cmm-query-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  font-size: 0.92em;
}

.ifp-cmm-query-result-meta-key {
  font-weight: 700;
  opacity: 0.78;
}

.ifp-cmm-query-result-meta-value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ifp-cmm-query-result-button {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 0.72em 1.05em;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1;
  background: #1d4ed8;
  color: #fff;
}

.ifp-cmm-query-results-empty {
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.08);
}

@media (max-width: 900px) {
  .ifp-cmm-query-results--cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ifp-cmm-query-results--list .ifp-cmm-query-result {
    grid-template-columns: 1fr;
  }

  .ifp-cmm-query-results--list .ifp-cmm-query-result-image img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 640px) {
  .ifp-cmm-query-results--cards {
    grid-template-columns: 1fr;
  }
}


.ifp-cmm-query-results--compact {
  grid-template-columns: 1fr;
  gap: 12px;
}

.ifp-cmm-query-results--compact .ifp-cmm-query-result {
  border-radius: 12px;
}

.ifp-cmm-query-results--compact .ifp-cmm-query-result-image {
  display: none;
}

.ifp-cmm-query-results--compact .ifp-cmm-query-result-body {
  padding: 14px 16px;
  gap: 7px;
}

.ifp-cmm-query-results--media_left {
  grid-template-columns: 1fr;
}

.ifp-cmm-query-results--media_left .ifp-cmm-query-result {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
  align-items: stretch;
}

.ifp-cmm-query-results--media_left .ifp-cmm-query-result-image img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.ifp-cmm-query-result-author {
  font-size: 0.86em;
  opacity: 0.75;
}

.ifp-cmm-query-result-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 2px;
}

.ifp-cmm-query-result-term {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.22em 0.58em;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  font-size: 0.82em;
  line-height: 1.35;
}

.ifp-cmm-query-result-meta-list--chips,
.ifp-cmm-query-result-meta-list--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ifp-cmm-query-result-meta-list--chips .ifp-cmm-query-result-meta {
  padding: 0.35em 0.65em;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
}

.ifp-cmm-query-result-meta-list--inline .ifp-cmm-query-result-meta:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  opacity: 0.55;
}

@media (max-width: 900px) {
  .ifp-cmm-query-results--media_left .ifp-cmm-query-result {
    grid-template-columns: 1fr;
  }

  .ifp-cmm-query-results--media_left .ifp-cmm-query-result-image img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}


/* IFP Query Builder Elementor Widget – Output Presets v0.7.57 */
.ifp-cmm-query-results-preset--editorial .ifp-cmm-query-result {
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.ifp-cmm-query-results-preset--editorial .ifp-cmm-query-result-body {
  gap: 12px;
  padding: 22px;
}

.ifp-cmm-query-results-preset--directory .ifp-cmm-query-result {
  border-radius: 16px;
}

.ifp-cmm-query-results-preset--directory .ifp-cmm-query-result-body {
  justify-content: center;
}

.ifp-cmm-query-results-preset--minimal {
  gap: 10px;
}

.ifp-cmm-query-results-preset--minimal .ifp-cmm-query-result {
  border-radius: 12px;
  border-color: rgba(148, 163, 184, 0.22);
}

.ifp-cmm-query-results-preset--minimal .ifp-cmm-query-result-body {
  padding: 12px 14px;
}

.ifp-cmm-query-results-preset--minimal .ifp-cmm-query-result-title {
  font-size: 1rem;
}


/* IFP CMM Repeater frontend output */
.ifp-cmm-repeater {
  margin: 1.25em 0;
}

.ifp-cmm-repeater-table {
  width: 100%;
  border-collapse: collapse;
}

.ifp-cmm-repeater-table th,
.ifp-cmm-repeater-table td {
  padding: 0.7em 0.85em;
  border: 1px solid rgba(148, 163, 184, 0.35);
  vertical-align: top;
  text-align: left;
}

.ifp-cmm-repeater-table th {
  font-weight: 700;
  background: rgba(148, 163, 184, 0.12);
}

.ifp-cmm-repeater--list {
  display: grid;
  gap: 0.75em;
  padding: 0;
  list-style: none;
}

.ifp-cmm-repeater--cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1em;
}

.ifp-cmm-repeater-item {
  min-width: 0;
  padding: 1em;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  background: #fff;
}

.ifp-cmm-repeater-cell {
  display: grid;
  gap: 0.2em;
  min-width: 0;
  margin-bottom: 0.65em;
}

.ifp-cmm-repeater-cell:last-child {
  margin-bottom: 0;
}

.ifp-cmm-repeater-cell-label {
  font-size: 0.82em;
  font-weight: 700;
  opacity: 0.72;
}

.ifp-cmm-repeater-cell-value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ifp-cmm-repeater-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.ifp-cmm-repeater-color-swatch {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.4em;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  vertical-align: -0.12em;
}

.ifp-cmm-repeater-plain-row {
  margin-bottom: 0.45em;
}

@media (max-width: 900px) {
  .ifp-cmm-repeater--cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .ifp-cmm-repeater--cards {
    grid-template-columns: 1fr;
  }

  .ifp-cmm-repeater-table thead {
    display: none;
  }

  .ifp-cmm-repeater-table,
  .ifp-cmm-repeater-table tbody,
  .ifp-cmm-repeater-table tr,
  .ifp-cmm-repeater-table td {
    display: block;
    width: 100%;
  }

  .ifp-cmm-repeater-table tr {
    margin-bottom: 0.85em;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    overflow: hidden;
  }

  .ifp-cmm-repeater-table td {
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  }

  .ifp-cmm-repeater-table td:last-child {
    border-bottom: 0;
  }

  .ifp-cmm-repeater-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.2em;
    font-size: 0.82em;
    font-weight: 700;
    opacity: 0.72;
  }
}


/* v0.7.77 – Universal Icon MetaField frontend output */
.ifp-cmm-frontend-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.ifp-cmm-frontend-icon--svg svg,
.ifp-cmm-frontend-value--icon svg {
  display: block;
  max-width: 1.5em;
  max-height: 1.5em;
}

.ifp-cmm-frontend-value--icon img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}


/* v0.7.80 – Plugin-eigene CPT Template-Fallbacks */

/* v0.7.84 – Polished plugin fallback templates */
.ifp-cmm-template {
  box-sizing: border-box;
  width: min(1180px, calc(100% - 32px));
  margin: clamp(28px, 5vw, 64px) auto;
  color: inherit;
}

.ifp-cmm-template *,
.ifp-cmm-template *::before,
.ifp-cmm-template *::after {
  box-sizing: border-box;
}

.ifp-cmm-template a {
  color: inherit;
}

.ifp-cmm-template-header {
  margin: 0 0 clamp(20px, 3vw, 34px);
}

.ifp-cmm-template-header--archive {
  display: grid;
  gap: 4px;
}

.ifp-cmm-template-eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
}

.ifp-cmm-template-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.ifp-cmm-template-shell {
  width: min(900px, 100%);
  margin: 0 auto;
}

.ifp-cmm-template-entry {
  display: grid;
  gap: clamp(22px, 4vw, 44px);
}

.ifp-cmm-template-single--cards .ifp-cmm-template-shell,
.ifp-cmm-template-single--details .ifp-cmm-template-shell {
  padding: clamp(20px, 4vw, 42px);
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 28px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 24px 80px rgba(15, 23, 42, .08);
}

.ifp-cmm-template-media {
  overflow: hidden;
  margin: 0;
  background: rgba(148, 163, 184, .12);
}

.ifp-cmm-template-media img {
  display: block;
  width: 100%;
  height: auto;
}

.ifp-cmm-template-media--single {
  width: min(980px, 100%);
  margin: 0 auto;
  border-radius: 30px;
  box-shadow: 0 22px 70px rgba(15, 23, 42, .10);
}

.ifp-cmm-template-media--single img {
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.ifp-cmm-template-media--single.ifp-cmm-template-media--align-left {
  margin-left: 0;
  margin-right: auto;
}

.ifp-cmm-template-media--single.ifp-cmm-template-media--align-center {
  margin-left: auto;
  margin-right: auto;
}

.ifp-cmm-template-media--single.ifp-cmm-template-media--align-right {
  margin-left: auto;
  margin-right: 0;
}

.ifp-cmm-template-media--single.ifp-cmm-template-media--align-left,
.ifp-cmm-template-media--single.ifp-cmm-template-media--align-right {
  width: min(680px, 100%);
}

.ifp-cmm-template-media--single.ifp-cmm-template-media--align-left img,
.ifp-cmm-template-media--single.ifp-cmm-template-media--align-right img {
  aspect-ratio: 4 / 3;
}

.ifp-cmm-template-content {
  margin: 0 0 clamp(22px, 4vw, 40px);
  line-height: 1.75;
}

.ifp-cmm-template-content > *:first-child {
  margin-top: 0;
}

.ifp-cmm-template-content > *:last-child {
  margin-bottom: 0;
}

.ifp-cmm-template-fields,
.ifp-cmm-template-card__fields {
  display: grid;
  gap: 12px;
}

.ifp-cmm-template-fields--cards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.ifp-cmm-template-fields--details {
  grid-template-columns: 1fr;
}

.ifp-cmm-template-field {
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid rgba(148, 163, 184, .26);
  border-radius: 16px;
  background: rgba(248, 250, 252, .72);
}

.ifp-cmm-template-field__label {
  display: block;
  margin: 0 0 5px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
}

.ifp-cmm-template-field__value {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.ifp-cmm-template-field__value :where(img, svg, video, audio) {
  max-width: 100%;
  height: auto;
}

.ifp-cmm-template-archive .ifp-cmm-template-header {
  width: min(980px, 100%);
}

.ifp-cmm-template-loop {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

.ifp-cmm-template-loop--cards {
  grid-template-columns: repeat(var(--ifp-cmm-archive-columns, 3), minmax(0, 1fr));
}

.ifp-cmm-template-loop--list {
  grid-template-columns: 1fr;
}

.ifp-cmm-template-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 22px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 48px rgba(15, 23, 42, .07);
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ifp-cmm-template-card--linked:hover,
.ifp-cmm-template-card--linked:focus {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, .36);
  box-shadow: 0 22px 62px rgba(15, 23, 42, .12);
  text-decoration: none;
}

.ifp-cmm-template-card__thumb {
  border-radius: 0;
}

.ifp-cmm-template-card__thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.ifp-cmm-template-card__body {
  display: grid;
  gap: 12px;
  padding: clamp(16px, 2vw, 22px);
}

.ifp-cmm-template-card__title {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ifp-cmm-template-card__title a {
  text-decoration: none;
}

.ifp-cmm-template-card__title a:hover,
.ifp-cmm-template-card__title a:focus {
  text-decoration: underline;
}

.ifp-cmm-template-card__excerpt {
  color: #475569;
  line-height: 1.6;
}

.ifp-cmm-template-card__excerpt > * {
  margin-top: 0;
  margin-bottom: 0;
}

.ifp-cmm-template-card__fields {
  gap: 9px;
  margin-top: 2px;
}

.ifp-cmm-template-card__fields .ifp-cmm-template-field {
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(248, 250, 252, .9);
}

.ifp-cmm-template-loop--list .ifp-cmm-template-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  align-items: stretch;
}

.ifp-cmm-template-loop--list .ifp-cmm-template-card--no-thumb {
  grid-template-columns: 1fr;
}

.ifp-cmm-template-loop--list .ifp-cmm-template-card__thumb img {
  height: 100%;
  min-height: 220px;
  aspect-ratio: auto;
}

.ifp-cmm-template-loop--list .ifp-cmm-template-card__fields {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.ifp-cmm-template-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, .30);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 50px rgba(15, 23, 42, .07);
}

.ifp-cmm-template-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  margin: 0;
}

.ifp-cmm-template-table th,
.ifp-cmm-template-table td {
  padding: 13px 15px;
  border-bottom: 1px solid rgba(148, 163, 184, .22);
  text-align: left;
  vertical-align: top;
}

.ifp-cmm-template-table th {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #475569;
  background: #f8fafc;
}

.ifp-cmm-template-table tr:last-child td {
  border-bottom: 0;
}

.ifp-cmm-template-table__thumb {
  width: 86px;
}

.ifp-cmm-template-table__thumb img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
}

.ifp-cmm-template-table__title {
  font-weight: 700;
}

.ifp-cmm-template-pagination,
.ifp-cmm-template-empty {
  margin-top: 28px;
}

.ifp-cmm-template-empty {
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 16px;
  background: rgba(248, 250, 252, .82);
}

@media (max-width: 1100px) {
  .ifp-cmm-template-loop--cards {
    grid-template-columns: repeat(min(var(--ifp-cmm-archive-columns, 3), 2), minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ifp-cmm-template {
    width: min(100% - 20px, 1180px);
    margin: 24px auto;
  }

  .ifp-cmm-template-single--cards .ifp-cmm-template-shell,
  .ifp-cmm-template-single--details .ifp-cmm-template-shell {
    padding: 18px;
    border-radius: 20px;
  }

  .ifp-cmm-template-media--single {
    border-radius: 20px;
  }

  .ifp-cmm-template-media--single img {
    aspect-ratio: 4 / 3;
  }

  .ifp-cmm-template-loop--cards,
  .ifp-cmm-template-loop--list {
    grid-template-columns: 1fr;
  }

  .ifp-cmm-template-loop--list .ifp-cmm-template-card {
    grid-template-columns: 1fr;
  }

  .ifp-cmm-template-loop--list .ifp-cmm-template-card__thumb img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}



/* v0.7.84 – Template polish: widths, skins, field display modes and CTA */
.ifp-cmm-template--width-narrow { width: min(860px, calc(100% - 32px)); }
.ifp-cmm-template--width-normal { width: min(1180px, calc(100% - 32px)); }
.ifp-cmm-template--width-wide { width: min(1440px, calc(100% - 32px)); }
.ifp-cmm-template--width-full { width: calc(100% - 32px); }

.ifp-cmm-template--skin-clean .ifp-cmm-template-shell,
.ifp-cmm-template--skin-clean .ifp-cmm-template-card,
.ifp-cmm-template--skin-clean .ifp-cmm-template-table-wrap,
.ifp-cmm-template--skin-clean .ifp-cmm-template-field {
  box-shadow: none;
  background: transparent;
}

.ifp-cmm-template--skin-clean .ifp-cmm-template-shell {
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}

.ifp-cmm-template--skin-bordered .ifp-cmm-template-shell,
.ifp-cmm-template--skin-bordered .ifp-cmm-template-card,
.ifp-cmm-template--skin-bordered .ifp-cmm-template-field,
.ifp-cmm-template--skin-bordered .ifp-cmm-template-table-wrap {
  box-shadow: none;
  border-color: rgba(15, 23, 42, .18);
}

.ifp-cmm-template--skin-compact {
  margin-top: clamp(18px, 3vw, 40px);
  margin-bottom: clamp(18px, 3vw, 40px);
}

.ifp-cmm-template--skin-compact .ifp-cmm-template-shell,
.ifp-cmm-template--skin-compact .ifp-cmm-template-card__body {
  padding: clamp(14px, 2vw, 22px);
}

.ifp-cmm-template--skin-compact .ifp-cmm-template-entry,
.ifp-cmm-template--skin-compact .ifp-cmm-template-loop {
  gap: 14px;
}

.ifp-cmm-template--fields-rows .ifp-cmm-template-fields,
.ifp-cmm-template--fields-rows .ifp-cmm-template-card__fields {
  grid-template-columns: 1fr;
}

.ifp-cmm-template--fields-rows .ifp-cmm-template-field {
  display: grid;
  grid-template-columns: minmax(120px, .28fr) minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.ifp-cmm-template--fields-rows .ifp-cmm-template-field__label {
  margin: .15em 0 0;
}

.ifp-cmm-template--fields-inline .ifp-cmm-template-fields,
.ifp-cmm-template--fields-inline .ifp-cmm-template-card__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ifp-cmm-template--fields-inline .ifp-cmm-template-field {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
}

.ifp-cmm-template--fields-inline .ifp-cmm-template-field__label {
  margin: 0;
  font-size: .72rem;
}

.ifp-cmm-template--fields-minimal .ifp-cmm-template-field {
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}

.ifp-cmm-template--fields-minimal .ifp-cmm-template-field__label {
  text-transform: none;
  letter-spacing: 0;
  font-size: .9rem;
  color: inherit;
  opacity: .72;
}

.ifp-cmm-template-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  line-height: 1.2;
}

.ifp-cmm-template-button:hover,
.ifp-cmm-template-button:focus {
  background: #1d4ed8;
  color: #fff !important;
}

.ifp-cmm-template-card__actions {
  margin: 4px 0 0;
}

.ifp-cmm-template-card__actions:last-child {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .ifp-cmm-template--width-narrow,
  .ifp-cmm-template--width-normal,
  .ifp-cmm-template--width-wide,
  .ifp-cmm-template--width-full {
    width: min(100% - 20px, 1180px);
  }

  .ifp-cmm-template--fields-rows .ifp-cmm-template-field {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}


/* v0.7.86 robust plugin templates */
.ifp-cmm-template-loop--list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.ifp-cmm-template-loop--list .ifp-cmm-template-card {
  display: grid;
  grid-template-columns: minmax(160px, 260px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}
.ifp-cmm-template-loop--list .ifp-cmm-template-card--no-thumb {
  grid-template-columns: 1fr;
}
.ifp-cmm-template-loop--cards {
  display: grid;
  grid-template-columns: repeat(var(--ifp-cmm-archive-columns, 3), minmax(0, 1fr));
  gap: 22px;
}
.ifp-cmm-template-archive--table .ifp-cmm-template-table-wrap {
  overflow-x: auto;
}
.ifp-cmm-template-archive--table .ifp-cmm-template-table {
  width: 100%;
  border-collapse: collapse;
}
.ifp-cmm-template-archive--table .ifp-cmm-template-table th,
.ifp-cmm-template-archive--table .ifp-cmm-template-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15,23,42,.12);
  vertical-align: top;
}
.ifp-cmm-template-content--assigned-page {
  width: 100%;
}
.ifp-cmm-template--skin-clean .ifp-cmm-template-shell,
.ifp-cmm-template--skin-clean .ifp-cmm-template-card {
  box-shadow: none;
  border-color: rgba(15,23,42,.1);
}
.ifp-cmm-template--skin-compact .ifp-cmm-template-card__body,
.ifp-cmm-template--skin-compact .ifp-cmm-template-shell {
  padding: 18px;
}
@media (max-width: 900px) {
  .ifp-cmm-template-loop--cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ifp-cmm-template-loop--list .ifp-cmm-template-card {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .ifp-cmm-template-loop--cards {
    grid-template-columns: 1fr;
  }
}


/* v0.7.87 – Template color variables */
.ifp-cmm-template {
  --ifp-cmm-template-primary: var(--ifp-cmm-template-primary, #2563eb);
  --ifp-cmm-template-secondary: var(--ifp-cmm-template-secondary, #0f172a);
  --ifp-cmm-template-accent: var(--ifp-cmm-template-accent, #f59e0b);
  --ifp-cmm-template-background: var(--ifp-cmm-template-background, #ffffff);
}

.ifp-cmm-template--scheme-calm {
  --ifp-cmm-template-primary: #0f766e;
  --ifp-cmm-template-secondary: #164e63;
  --ifp-cmm-template-accent: #38bdf8;
  --ifp-cmm-template-background: #ecfeff;
}

.ifp-cmm-template--scheme-warm {
  --ifp-cmm-template-primary: #c2410c;
  --ifp-cmm-template-secondary: #7c2d12;
  --ifp-cmm-template-accent: #f59e0b;
  --ifp-cmm-template-background: #fff7ed;
}

.ifp-cmm-template--scheme-fresh {
  --ifp-cmm-template-primary: #16a34a;
  --ifp-cmm-template-secondary: #14532d;
  --ifp-cmm-template-accent: #84cc16;
  --ifp-cmm-template-background: #f0fdf4;
}

.ifp-cmm-template--scheme-bold {
  --ifp-cmm-template-primary: #7c3aed;
  --ifp-cmm-template-secondary: #111827;
  --ifp-cmm-template-accent: #ec4899;
  --ifp-cmm-template-background: #faf5ff;
}

.ifp-cmm-template {
  background: var(--ifp-cmm-template-background, transparent);
}

.ifp-cmm-template .ifp-cmm-template-eyebrow,
.ifp-cmm-template .ifp-cmm-template-field__label {
  color: var(--ifp-cmm-template-primary, #2563eb);
}

.ifp-cmm-template .ifp-cmm-template-title,
.ifp-cmm-template .ifp-cmm-template-field__value {
  color: var(--ifp-cmm-template-secondary, #0f172a);
}

.ifp-cmm-template .ifp-cmm-template-button {
  background: var(--ifp-cmm-template-primary, #2563eb);
  color: #fff;
}

.ifp-cmm-template .ifp-cmm-template-field {
  border-color: color-mix(in srgb, var(--ifp-cmm-template-primary, #2563eb) 18%, #e2e8f0);
}


/* v0.7.90 – Template color and archive card controls */
.ifp-cmm-template {
  --ifp-cmm-template-surface: #ffffff;
  --ifp-cmm-template-card: #ffffff;
  --ifp-cmm-template-text: var(--ifp-cmm-template-secondary, #0f172a);
  --ifp-cmm-template-muted: #64748b;
  --ifp-cmm-template-border: #e2e8f0;
  --ifp-cmm-template-radius: 22px;
  --ifp-cmm-template-image-ratio: 16 / 10;
  --ifp-cmm-archive-card-min-height: auto;
  color: var(--ifp-cmm-template-text, #0f172a);
}

.ifp-cmm-template-header,
.ifp-cmm-template-content,
.ifp-cmm-template-card__excerpt {
  color: var(--ifp-cmm-template-text, #0f172a);
}

.ifp-cmm-template .ifp-cmm-template-eyebrow,
.ifp-cmm-template .ifp-cmm-template-field__label,
.ifp-cmm-template-card__excerpt {
  color: var(--ifp-cmm-template-muted, #64748b);
}

.ifp-cmm-template-single--cards .ifp-cmm-template-shell,
.ifp-cmm-template-single--details .ifp-cmm-template-shell {
  background: var(--ifp-cmm-template-surface, #ffffff);
  border-color: var(--ifp-cmm-template-border, rgba(148, 163, 184, .28));
  border-radius: calc(var(--ifp-cmm-template-radius, 22px) + 6px);
}

.ifp-cmm-template-field {
  background: color-mix(in srgb, var(--ifp-cmm-template-surface, #ffffff) 84%, var(--ifp-cmm-template-background, #f8fafc));
  border-color: var(--ifp-cmm-template-border, rgba(148, 163, 184, .28));
  border-radius: max(8px, calc(var(--ifp-cmm-template-radius, 22px) - 6px));
}

.ifp-cmm-template-card,
.ifp-cmm-template-table-wrap,
.ifp-cmm-template-empty {
  background: var(--ifp-cmm-template-card, #ffffff);
  border-color: var(--ifp-cmm-template-border, rgba(148, 163, 184, .28));
  border-radius: var(--ifp-cmm-template-radius, 22px);
}

.ifp-cmm-template-card__thumb img,
.ifp-cmm-template-preview-image img {
  aspect-ratio: var(--ifp-cmm-template-image-ratio, 16 / 10);
  object-fit: cover;
}

.ifp-cmm-template--ratio-auto .ifp-cmm-template-card__thumb img,
.ifp-cmm-template--ratio-auto .ifp-cmm-template-preview-image img {
  aspect-ratio: auto;
  height: auto;
}

.ifp-cmm-template--shadow-none .ifp-cmm-template-shell,
.ifp-cmm-template--shadow-none .ifp-cmm-template-card,
.ifp-cmm-template--shadow-none .ifp-cmm-template-table-wrap,
.ifp-cmm-template--shadow-none .ifp-cmm-template-media--single {
  box-shadow: none;
}

.ifp-cmm-template--shadow-soft .ifp-cmm-template-shell,
.ifp-cmm-template--shadow-soft .ifp-cmm-template-card,
.ifp-cmm-template--shadow-soft .ifp-cmm-template-table-wrap {
  box-shadow: 0 14px 42px rgba(15, 23, 42, .07);
}

.ifp-cmm-template--shadow-medium .ifp-cmm-template-shell,
.ifp-cmm-template--shadow-medium .ifp-cmm-template-card,
.ifp-cmm-template--shadow-medium .ifp-cmm-template-table-wrap {
  box-shadow: 0 20px 62px rgba(15, 23, 42, .12);
}

.ifp-cmm-template--shadow-strong .ifp-cmm-template-shell,
.ifp-cmm-template--shadow-strong .ifp-cmm-template-card,
.ifp-cmm-template--shadow-strong .ifp-cmm-template-table-wrap {
  box-shadow: 0 28px 86px rgba(15, 23, 42, .18);
}

.ifp-cmm-template-archive--equal-cards .ifp-cmm-template-loop--cards {
  align-items: stretch;
}

.ifp-cmm-template-archive--equal-cards .ifp-cmm-template-card {
  height: 100%;
  min-height: var(--ifp-cmm-archive-card-min-height, auto);
}

.ifp-cmm-template-archive--equal-cards .ifp-cmm-template-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.ifp-cmm-template-archive--equal-cards .ifp-cmm-template-card__fields {
  flex: 1 1 auto;
}

.ifp-cmm-template-archive--equal-cards .ifp-cmm-template-card__actions,
.ifp-cmm-template-archive--equal-cards .ifp-cmm-template-button {
  margin-top: auto;
}

.ifp-cmm-template-table th {
  background: color-mix(in srgb, var(--ifp-cmm-template-card, #ffffff) 82%, var(--ifp-cmm-template-background, #f8fafc));
  color: var(--ifp-cmm-template-muted, #64748b);
}

.ifp-cmm-template-button:hover,
.ifp-cmm-template-button:focus {
  background: var(--ifp-cmm-template-accent, #f59e0b);
}


/* v0.7.91 – Archive filters, pagination and related posts */
.ifp-cmm-template {
  background: var(--ifp-cmm-template-background, #f8fafc);
}

.ifp-cmm-template-card,
.ifp-cmm-template-table-wrap,
.ifp-cmm-template-related-card {
  background: var(--ifp-cmm-template-card, #fff);
  border-color: var(--ifp-cmm-template-border, #e2e8f0);
}

.ifp-cmm-template-field {
  border-color: color-mix(in srgb, var(--ifp-cmm-template-border, #e2e8f0) 80%, transparent);
}

.ifp-cmm-template-archive-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

.ifp-cmm-template--filters-sidebar .ifp-cmm-template-archive-layout,
.ifp-cmm-template--filters-mixed .ifp-cmm-template-archive-layout {
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
}

.ifp-cmm-template-archive-main {
  min-width: 0;
}

.ifp-cmm-template-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin: 0 0 22px;
  padding: 14px;
  border-radius: var(--ifp-cmm-template-radius, 22px);
  background: color-mix(in srgb, var(--ifp-cmm-template-card, #fff) 92%, var(--ifp-cmm-template-primary, #2563eb) 8%);
}

.ifp-cmm-template-filters--sidebar {
  position: sticky;
  top: 24px;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
}

.ifp-cmm-template-filters--bordered,
.ifp-cmm-template-pagination--bordered {
  border: 1px solid var(--ifp-cmm-template-border, #e2e8f0);
}

.ifp-cmm-template-filters--style-clean {
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}

.ifp-cmm-template-filters--style-bordered {
  background: transparent;
  border: 1px solid var(--ifp-cmm-template-border, #e2e8f0);
}

.ifp-cmm-template-filters--style-compact {
  padding: 8px;
  border-radius: 12px;
  gap: 8px;
}

.ifp-cmm-template-filters label {
  display: grid;
  gap: 5px;
  min-width: 170px;
  color: var(--ifp-cmm-template-muted, #64748b);
  font-weight: 700;
  font-size: .82rem;
}

.ifp-cmm-template-filters input,
.ifp-cmm-template-filters select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--ifp-cmm-template-border, #e2e8f0);
  border-radius: 12px;
  padding: 7px 10px;
  background: #fff;
  color: var(--ifp-cmm-template-text, #0f172a);
}

.ifp-cmm-template-filters__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ifp-cmm-template-filter-reset {
  color: var(--ifp-cmm-template-muted, #64748b);
  text-decoration: none;
}

.ifp-cmm-template-pagination {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  padding: 12px;
  border-radius: var(--ifp-cmm-template-radius, 22px);
}

.ifp-cmm-template--pagination-left .ifp-cmm-template-pagination { justify-content: flex-start; }
.ifp-cmm-template--pagination-center .ifp-cmm-template-pagination { justify-content: center; }
.ifp-cmm-template--pagination-right .ifp-cmm-template-pagination { justify-content: flex-end; }

.ifp-cmm-template-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ifp-cmm-template-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--ifp-cmm-template-border, #e2e8f0);
  background: var(--ifp-cmm-template-card, #fff);
  color: var(--ifp-cmm-template-text, #0f172a);
  text-decoration: none;
}

.ifp-cmm-template--pagination-style-clean .page-numbers {
  border-color: transparent;
  background: transparent;
}

.ifp-cmm-template--pagination-style-compact .page-numbers {
  min-width: 30px;
  min-height: 30px;
  padding: 4px 8px;
}

.ifp-cmm-template-pagination .page-numbers.current {
  background: var(--ifp-cmm-template-primary, #2563eb);
  color: #fff;
  border-color: var(--ifp-cmm-template-primary, #2563eb);
}

.ifp-cmm-template-related {
  margin-top: clamp(28px, 5vw, 54px);
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--ifp-cmm-template-border, #e2e8f0);
  border-radius: var(--ifp-cmm-template-radius, 22px);
  background: color-mix(in srgb, var(--ifp-cmm-template-card, #fff) 88%, var(--ifp-cmm-template-primary, #2563eb) 12%);
}

.ifp-cmm-template-related__title {
  margin: 0 0 16px;
  color: var(--ifp-cmm-template-text, #0f172a);
}

.ifp-cmm-template-related__items {
  display: grid;
  gap: 16px;
}

.ifp-cmm-template-related--cards .ifp-cmm-template-related__items {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ifp-cmm-template-related--compact .ifp-cmm-template-related__items,
.ifp-cmm-template-related--list .ifp-cmm-template-related__items {
  grid-template-columns: 1fr;
}

.ifp-cmm-template-related-card {
  display: grid;
  grid-template-columns: minmax(100px, .32fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--ifp-cmm-template-border, #e2e8f0);
  border-radius: calc(var(--ifp-cmm-template-radius, 22px) * .75);
}

.ifp-cmm-template-related--cards .ifp-cmm-template-related-card {
  grid-template-columns: 1fr;
}

.ifp-cmm-template-related-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
}

.ifp-cmm-template-related-card__body {
  padding: 14px;
}

.ifp-cmm-template-related-card h3 {
  margin: 0 0 8px;
}

.ifp-cmm-template-related-card p {
  margin: 0;
  color: var(--ifp-cmm-template-muted, #64748b);
}

@media (max-width: 900px) {
  .ifp-cmm-template--filters-sidebar .ifp-cmm-template-archive-layout,
  .ifp-cmm-template--filters-mixed .ifp-cmm-template-archive-layout {
    grid-template-columns: 1fr;
  }

  .ifp-cmm-template-filters--sidebar {
    position: static;
  }

  .ifp-cmm-template-related--cards .ifp-cmm-template-related__items {
    grid-template-columns: 1fr;
  }
}


/* v0.7.92 – Template preview/runtime parity fix
   Vorschau und echte Plugin-Templates nutzen dieselben Layoutklassen und CSS-Variablen. */
.ifp-cmm-template,
.ifp-cmm-template-preview-render {
  background: var(--ifp-cmm-template-background, #f8fafc) !important;
  color: var(--ifp-cmm-template-text, #0f172a) !important;
}

.ifp-cmm-template .ifp-cmm-template-shell,
.ifp-cmm-template-preview-render .ifp-cmm-template-shell,
.ifp-cmm-template-single .ifp-cmm-template-content,
.ifp-cmm-template-preview-render.ifp-cmm-template-single .ifp-cmm-template-content {
  background: var(--ifp-cmm-template-surface, #ffffff);
  color: var(--ifp-cmm-template-text, #0f172a);
  border-color: var(--ifp-cmm-template-border, #e2e8f0);
  border-radius: var(--ifp-cmm-template-radius, 22px);
}

.ifp-cmm-template .ifp-cmm-template-title,
.ifp-cmm-template-preview-render .ifp-cmm-template-title,
.ifp-cmm-template .ifp-cmm-template-card__title,
.ifp-cmm-template-preview-render .ifp-cmm-template-card__title,
.ifp-cmm-template .ifp-cmm-template-field__value,
.ifp-cmm-template-preview-render .ifp-cmm-template-field__value {
  color: var(--ifp-cmm-template-text, #0f172a) !important;
}

.ifp-cmm-template .ifp-cmm-template-eyebrow,
.ifp-cmm-template-preview-render .ifp-cmm-template-eyebrow,
.ifp-cmm-template .ifp-cmm-template-field__label,
.ifp-cmm-template-preview-render .ifp-cmm-template-field__label {
  color: var(--ifp-cmm-template-primary, #2563eb) !important;
}

.ifp-cmm-template .ifp-cmm-template-content,
.ifp-cmm-template-preview-render .ifp-cmm-template-content,
.ifp-cmm-template .ifp-cmm-template-excerpt,
.ifp-cmm-template-preview-render .ifp-cmm-template-excerpt,
.ifp-cmm-template .ifp-cmm-template-card__excerpt,
.ifp-cmm-template-preview-render .ifp-cmm-template-card__excerpt {
  color: var(--ifp-cmm-template-muted, #64748b) !important;
}

.ifp-cmm-template .ifp-cmm-template-card,
.ifp-cmm-template-preview-render .ifp-cmm-template-card {
  background: var(--ifp-cmm-template-card, #ffffff) !important;
  color: var(--ifp-cmm-template-text, #0f172a);
  border-color: var(--ifp-cmm-template-border, #e2e8f0) !important;
  border-radius: var(--ifp-cmm-template-radius, 22px) !important;
}

.ifp-cmm-template .ifp-cmm-template-field,
.ifp-cmm-template-preview-render .ifp-cmm-template-field {
  background: color-mix(in srgb, var(--ifp-cmm-template-card, #ffffff) 86%, var(--ifp-cmm-template-background, #f8fafc));
  border-color: var(--ifp-cmm-template-border, #e2e8f0) !important;
  color: var(--ifp-cmm-template-text, #0f172a);
}

.ifp-cmm-template .ifp-cmm-template-button,
.ifp-cmm-template-preview-render .ifp-cmm-template-button,
.ifp-cmm-template .ifp-cmm-template-filters button,
.ifp-cmm-template-preview-render .ifp-cmm-template-filters button {
  background: var(--ifp-cmm-template-primary, #2563eb) !important;
  color: #fff !important;
  border-color: var(--ifp-cmm-template-primary, #2563eb) !important;
}

.ifp-cmm-template .ifp-cmm-template-loop,
.ifp-cmm-template-preview-render .ifp-cmm-template-loop {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
}

.ifp-cmm-template .ifp-cmm-template-loop--cards,
.ifp-cmm-template-preview-render .ifp-cmm-template-loop--cards {
  grid-template-columns: repeat(var(--ifp-cmm-archive-columns, 3), minmax(0, 1fr)) !important;
  align-items: stretch;
}

.ifp-cmm-template .ifp-cmm-template-loop--list,
.ifp-cmm-template-preview-render .ifp-cmm-template-loop--list {
  grid-template-columns: 1fr !important;
}

.ifp-cmm-template-archive--equal-cards .ifp-cmm-template-loop--cards .ifp-cmm-template-card,
.ifp-cmm-template-preview-render.ifp-cmm-template-archive--equal-cards .ifp-cmm-template-loop--cards .ifp-cmm-template-card {
  height: 100%;
  min-height: var(--ifp-cmm-archive-card-min-height, auto);
}

.ifp-cmm-template-preview-render .ifp-cmm-template-loop--list .ifp-cmm-template-card,
.ifp-cmm-template .ifp-cmm-template-loop--list .ifp-cmm-template-card {
  display: grid;
  grid-template-columns: minmax(190px, .34fr) minmax(0, 1fr);
}

.ifp-cmm-template-preview-render .ifp-cmm-template-loop--list .ifp-cmm-template-card .ifp-cmm-template-preview-image,
.ifp-cmm-template .ifp-cmm-template-loop--list .ifp-cmm-template-card .ifp-cmm-template-card__thumb img {
  height: 100%;
  min-height: 180px;
}

.ifp-cmm-template-preview-render .ifp-cmm-template-preview-image,
.ifp-cmm-template .ifp-cmm-template-card__thumb img {
  aspect-ratio: var(--ifp-cmm-template-image-ratio, 16 / 10);
  object-fit: cover;
}

.ifp-cmm-template .ifp-cmm-template-filters,
.ifp-cmm-template-preview-render .ifp-cmm-template-filters,
.ifp-cmm-template .ifp-cmm-template-pagination-wrap,
.ifp-cmm-template-preview-render .ifp-cmm-template-pagination-wrap {
  background: color-mix(in srgb, var(--ifp-cmm-template-card, #ffffff) 92%, var(--ifp-cmm-template-background, #f8fafc));
  color: var(--ifp-cmm-template-text, #0f172a);
  border-color: var(--ifp-cmm-template-border, #e2e8f0) !important;
  border-radius: var(--ifp-cmm-template-radius, 22px);
}

.ifp-cmm-template .ifp-cmm-template-table-wrap,
.ifp-cmm-template-preview-render .ifp-cmm-template-table-wrap {
  background: var(--ifp-cmm-template-card, #ffffff);
  border-color: var(--ifp-cmm-template-border, #e2e8f0) !important;
}

.ifp-cmm-template .ifp-cmm-template-table th,
.ifp-cmm-template-preview-render .ifp-cmm-template-table th {
  background: color-mix(in srgb, var(--ifp-cmm-template-primary, #2563eb) 10%, var(--ifp-cmm-template-card, #ffffff));
  color: var(--ifp-cmm-template-text, #0f172a);
}

.ifp-cmm-template .ifp-cmm-template-table th,
.ifp-cmm-template .ifp-cmm-template-table td,
.ifp-cmm-template-preview-render .ifp-cmm-template-table th,
.ifp-cmm-template-preview-render .ifp-cmm-template-table td {
  border-color: var(--ifp-cmm-template-border, #e2e8f0) !important;
}

@media (max-width: 900px) {
  .ifp-cmm-template .ifp-cmm-template-loop--cards,
  .ifp-cmm-template-preview-render .ifp-cmm-template-loop--cards {
    grid-template-columns: 1fr !important;
  }

  .ifp-cmm-template-preview-render .ifp-cmm-template-loop--list .ifp-cmm-template-card,
  .ifp-cmm-template .ifp-cmm-template-loop--list .ifp-cmm-template-card {
    grid-template-columns: 1fr;
  }
}


/* v0.7.93 – Template filter/pagination design variables */
.ifp-cmm-template .ifp-cmm-template-filters {
  gap: var(--ifp-cmm-template-filter-gap, 12px);
  background: var(--ifp-cmm-template-filter-bg, var(--ifp-cmm-template-surface, #fff));
  color: var(--ifp-cmm-template-filter-text, var(--ifp-cmm-template-text, #0f172a));
  border-color: var(--ifp-cmm-template-filter-border, var(--ifp-cmm-template-border, #e2e8f0)) !important;
  border-radius: var(--ifp-cmm-template-filter-radius, 14px);
}

.ifp-cmm-template .ifp-cmm-template-filters label span,
.ifp-cmm-template .ifp-cmm-template-filters input,
.ifp-cmm-template .ifp-cmm-template-filters select {
  color: var(--ifp-cmm-template-filter-text, var(--ifp-cmm-template-text, #0f172a));
}

.ifp-cmm-template .ifp-cmm-template-filters--shadow-soft {
  box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
}
.ifp-cmm-template .ifp-cmm-template-filters--shadow-medium {
  box-shadow: 0 14px 34px rgba(15, 23, 42, .12);
}
.ifp-cmm-template .ifp-cmm-template-filters--shadow-strong {
  box-shadow: 0 20px 46px rgba(15, 23, 42, .18);
}

.ifp-cmm-template .ifp-cmm-template-pagination-wrap {
  display: flex;
  justify-content: center;
  background: transparent;
  border: 0;
}

.ifp-cmm-template--pagination-left .ifp-cmm-template-pagination-wrap {
  justify-content: flex-start;
}
.ifp-cmm-template--pagination-right .ifp-cmm-template-pagination-wrap {
  justify-content: flex-end;
}

.ifp-cmm-template .ifp-cmm-template-pagination {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--ifp-cmm-template-pagination-gap, 6px);
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
}

.ifp-cmm-template .ifp-cmm-template-pagination--bordered {
  padding: 10px;
  border: 1px solid var(--ifp-cmm-template-pagination-border, var(--ifp-cmm-template-border, #e2e8f0));
  border-radius: calc(var(--ifp-cmm-template-pagination-radius, 999px) + 10px);
  background: color-mix(in srgb, var(--ifp-cmm-template-pagination-bg, #fff) 86%, var(--ifp-cmm-template-background, #f8fafc));
}

.ifp-cmm-template .ifp-cmm-template-pagination .page-numbers {
  min-width: var(--ifp-cmm-template-pagination-size, 38px);
  min-height: var(--ifp-cmm-template-pagination-size, 38px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ifp-cmm-template-pagination-radius, 999px);
  border: 1px solid var(--ifp-cmm-template-pagination-border, var(--ifp-cmm-template-border, #e2e8f0));
  background: var(--ifp-cmm-template-pagination-bg, #fff);
  color: var(--ifp-cmm-template-pagination-text, var(--ifp-cmm-template-text, #0f172a));
  text-decoration: none;
  box-sizing: border-box;
}

.ifp-cmm-template .ifp-cmm-template-pagination .page-numbers.current {
  background: var(--ifp-cmm-template-pagination-active-bg, var(--ifp-cmm-template-primary, #2563eb));
  border-color: var(--ifp-cmm-template-pagination-active-bg, var(--ifp-cmm-template-primary, #2563eb));
  color: var(--ifp-cmm-template-pagination-active-text, #fff);
}


/* v0.7.93 override: WordPress pagination nav-links inherit designer values */
.ifp-cmm-template .ifp-cmm-template-pagination .nav-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--ifp-cmm-template-pagination-gap, 6px);
  align-items: center;
  justify-content: center;
}

.ifp-cmm-template .ifp-cmm-template-pagination .page-numbers {
  min-width: var(--ifp-cmm-template-pagination-size, 38px) !important;
  min-height: var(--ifp-cmm-template-pagination-size, 38px) !important;
  border-radius: var(--ifp-cmm-template-pagination-radius, 999px) !important;
  border-color: var(--ifp-cmm-template-pagination-border, var(--ifp-cmm-template-border, #e2e8f0)) !important;
  background: var(--ifp-cmm-template-pagination-bg, #fff) !important;
  color: var(--ifp-cmm-template-pagination-text, var(--ifp-cmm-template-text, #0f172a)) !important;
}

.ifp-cmm-template .ifp-cmm-template-pagination .page-numbers.current {
  background: var(--ifp-cmm-template-pagination-active-bg, var(--ifp-cmm-template-primary, #2563eb)) !important;
  border-color: var(--ifp-cmm-template-pagination-active-bg, var(--ifp-cmm-template-primary, #2563eb)) !important;
  color: var(--ifp-cmm-template-pagination-active-text, #fff) !important;
}


.ifp-cmm-template-media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 1rem;
    border: 1px dashed var(--ifp-cmm-template-border, #cbd5e1);
    border-radius: var(--ifp-cmm-template-radius, 18px);
    background: color-mix(in srgb, var(--ifp-cmm-template-surface, #ffffff) 82%, var(--ifp-cmm-template-primary, #2563eb) 18%);
    color: var(--ifp-cmm-template-muted, #64748b);
    font-size: .9rem;
    text-align: center;
}


/* v0.7.138 – Dynamic Accordion shortcode + Elementor widget */
.ifp-cmm-accordion {
  --ifp-cmm-accordion-accent: #2271b1;
  --ifp-cmm-accordion-text: #0f172a;
  --ifp-cmm-accordion-muted: #475569;
  --ifp-cmm-accordion-border: #dce4ef;
  --ifp-cmm-accordion-bg: #ffffff;
  --ifp-cmm-accordion-bg-soft: #f8fbff;
  display: grid;
  gap: 16px;
  color: var(--ifp-cmm-accordion-text);
  font: inherit;
}

.ifp-cmm-accordion * {
  box-sizing: border-box;
}

.ifp-cmm-accordion-title {
  margin: 0;
  color: var(--ifp-cmm-accordion-text);
  font: inherit;
  font-size: clamp(1.1rem, 1rem + .4vw, 1.4rem);
  font-weight: 700;
  line-height: 1.2;
}

.ifp-cmm-accordion-list {
  display: grid;
  gap: 14px;
}

.ifp-cmm-accordion-item {
  border: 1px solid var(--ifp-cmm-accordion-border);
  border-radius: 18px;
  background: var(--ifp-cmm-accordion-bg);
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .05);
}

.ifp-cmm-accordion-item[open] {
  background: linear-gradient(180deg, var(--ifp-cmm-accordion-bg-soft) 0%, var(--ifp-cmm-accordion-bg) 100%);
  border-color: rgba(34, 113, 177, .35);
}

.ifp-cmm-accordion-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  cursor: pointer;
  padding: 18px 20px;
  color: var(--ifp-cmm-accordion-text);
  font: inherit;
}

.ifp-cmm-accordion-summary::-webkit-details-marker {
  display: none;
}

.ifp-cmm-accordion-summary-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.ifp-cmm-accordion-badge {
  flex: 0 0 auto;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(34, 113, 177, .1);
  color: var(--ifp-cmm-accordion-accent);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1;
}

.ifp-cmm-accordion-headline {
  margin: 0;
  color: var(--ifp-cmm-accordion-text);
  font: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
}

.ifp-cmm-accordion-toggle {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(34, 113, 177, .2);
  background: #fff;
  color: var(--ifp-cmm-accordion-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.ifp-cmm-accordion-item[open] .ifp-cmm-accordion-toggle {
  transform: rotate(45deg);
  background: rgba(34, 113, 177, .08);
  border-color: rgba(34, 113, 177, .35);
}

.ifp-cmm-accordion-content {
  padding: 0 20px 20px;
  color: var(--ifp-cmm-accordion-muted);
  line-height: 1.72;
}

.ifp-cmm-accordion-content > :first-child {
  margin-top: 0;
}

.ifp-cmm-accordion-content > :last-child {
  margin-bottom: 0;
}

.ifp-cmm-accordion-content h2,
.ifp-cmm-accordion-content h3,
.ifp-cmm-accordion-content h4 {
  color: var(--ifp-cmm-accordion-text);
  line-height: 1.3;
}

.ifp-cmm-accordion-content ul,
.ifp-cmm-accordion-content ol {
  padding-left: 1.2em;
}

.ifp-cmm-accordion-empty {
  padding: 14px 16px;
  border: 1px dashed rgba(148, 163, 184, .5);
  border-radius: 12px;
  color: #64748b;
  background: #f8fafc;
}

@media (max-width: 782px) {
  .ifp-cmm-accordion-summary {
    padding: 16px;
  }

  .ifp-cmm-accordion-content {
    padding: 0 16px 16px;
  }

  .ifp-cmm-accordion-summary-main {
    gap: 12px;
  }

  .ifp-cmm-accordion-toggle {
    width: 30px;
    height: 30px;
  }
}


/* v0.7.139 – Frontend-Editor Accordion-Feld */
.ifp-cmm-frontend-edit-accordion-control {
  display: grid;
  gap: 12px;
}
.ifp-cmm-frontend-edit-accordion-control__head,
.ifp-cmm-frontend-edit-accordion-control__row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ifp-cmm-frontend-edit-accordion-control__rows {
  display: grid;
  gap: 12px;
}
.ifp-cmm-frontend-edit-accordion-control__row {
  border: 1px solid rgba(15, 23, 42, .14);
  border-radius: 12px;
  padding: 12px;
  background: rgba(248, 250, 252, .9);
  display: grid;
  gap: 10px;
}
.ifp-cmm-frontend-edit-accordion-control__label {
  display: grid;
  gap: 5px;
  font-weight: 600;
}
.ifp-cmm-frontend-edit-accordion-control__label input,
.ifp-cmm-frontend-edit-accordion-control__label textarea {
  width: 100%;
  font-weight: 400;
}


/* v0.7.140 – Accordion Elementor templates and extended styling controls */
.ifp-cmm-accordion {
  width: 100%;
}

.ifp-cmm-accordion-toggle-open {
  display: none;
}

.ifp-cmm-accordion-item[open] .ifp-cmm-accordion-toggle {
  transform: none;
}

.ifp-cmm-accordion-item[open] .ifp-cmm-accordion-toggle-closed {
  display: none;
}

.ifp-cmm-accordion-item[open] .ifp-cmm-accordion-toggle-open {
  display: inline;
}

.ifp-cmm-accordion-template--cards .ifp-cmm-accordion-item {
  border: 0;
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .10);
}

.ifp-cmm-accordion-template--cards .ifp-cmm-accordion-summary {
  padding: 22px 24px;
}

.ifp-cmm-accordion-template--cards .ifp-cmm-accordion-content {
  padding: 0 24px 24px;
}

.ifp-cmm-accordion-template--minimal .ifp-cmm-accordion-list {
  gap: 0;
}

.ifp-cmm-accordion-template--minimal .ifp-cmm-accordion-item {
  border-width: 0 0 1px;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.ifp-cmm-accordion-template--minimal .ifp-cmm-accordion-item[open] {
  background: transparent;
}

.ifp-cmm-accordion-template--minimal .ifp-cmm-accordion-summary {
  padding-left: 0;
  padding-right: 0;
}

.ifp-cmm-accordion-template--minimal .ifp-cmm-accordion-content {
  padding-left: 0;
  padding-right: 0;
}

.ifp-cmm-accordion-template--numbered {
  counter-reset: ifp-cmm-accordion-counter;
}

.ifp-cmm-accordion-template--numbered .ifp-cmm-accordion-badge {
  counter-increment: ifp-cmm-accordion-counter;
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--ifp-cmm-accordion-accent);
  color: #fff;
}

.ifp-cmm-accordion-template--boxed {
  padding: 22px;
  border: 1px solid var(--ifp-cmm-accordion-border);
  border-radius: 26px;
  background: var(--ifp-cmm-accordion-bg-soft);
}

.ifp-cmm-accordion-template--faq .ifp-cmm-accordion-badge {
  font-size: 0;
}

.ifp-cmm-accordion-template--faq .ifp-cmm-accordion-badge::before {
  content: "?";
  font-size: 1rem;
}

.ifp-cmm-accordion-template--faq .ifp-cmm-accordion-item {
  border-radius: 14px;
  box-shadow: none;
}

.ifp-cmm-accordion-template--timeline .ifp-cmm-accordion-list {
  position: relative;
  padding-left: 22px;
}

.ifp-cmm-accordion-template--timeline .ifp-cmm-accordion-list::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  width: 2px;
  background: var(--ifp-cmm-accordion-border);
}

.ifp-cmm-accordion-template--timeline .ifp-cmm-accordion-item {
  position: relative;
  border-radius: 16px;
}

.ifp-cmm-accordion-template--timeline .ifp-cmm-accordion-item::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -20px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--ifp-cmm-accordion-accent);
  box-shadow: 0 0 0 4px #fff;
}

.ifp-cmm-accordion-template--gradient {
  --ifp-cmm-accordion-bg-soft: rgba(34, 113, 177, .08);
}

.ifp-cmm-accordion-template--gradient .ifp-cmm-accordion-item {
  border: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(34, 113, 177, .14), rgba(255, 255, 255, .94));
  box-shadow: 0 18px 46px rgba(15, 23, 42, .10);
}

.ifp-cmm-accordion-template--gradient .ifp-cmm-accordion-item[open] {
  background: linear-gradient(135deg, rgba(34, 113, 177, .24), rgba(255, 255, 255, .98));
}

.ifp-cmm-accordion-template--gradient .ifp-cmm-accordion-toggle {
  border: 0;
  background: var(--ifp-cmm-accordion-accent);
  color: #fff;
}

.ifp-cmm-accordion-summary {
  border-bottom: 1px solid transparent;
}



/* v0.7.141 – allow separate Elementor styling for accordion header/content boxes */
.ifp-cmm-accordion-summary,
.ifp-cmm-accordion-content {
  background-clip: padding-box;
}

.ifp-cmm-accordion-content {
  min-width: 0;
  overflow-wrap: anywhere;
}


/* v0.7.190.42: IFP gallery output */
.ifp-cmm-gallery {
  --ifp-cmm-gallery-columns: 3;
  --ifp-cmm-gallery-columns-tablet: 2;
  --ifp-cmm-gallery-columns-mobile: 1;
  --ifp-cmm-gallery-gap: 16px;
}

.ifp-cmm-gallery--grid {
  display: grid;
  grid-template-columns: repeat(var(--ifp-cmm-gallery-columns), minmax(0, 1fr));
  gap: var(--ifp-cmm-gallery-gap);
}

.ifp-cmm-gallery__item {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: inherit;
}

.ifp-cmm-gallery__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.ifp-cmm-gallery__image,
.ifp-cmm-frontend-gallery-image.ifp-cmm-gallery__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.ifp-cmm-gallery__caption {
  margin-top: .45em;
  font-size: .92em;
  line-height: 1.35;
  opacity: .78;
}

@media (max-width: 1024px) {
  .ifp-cmm-gallery--grid {
    grid-template-columns: repeat(var(--ifp-cmm-gallery-columns-tablet), minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .ifp-cmm-gallery--grid {
    grid-template-columns: repeat(var(--ifp-cmm-gallery-columns-mobile), minmax(0, 1fr));
  }
}


/* v0.7.190.43: Galerie Lightbox / Modal Overlay */
.ifp-cmm-gallery__link {
  cursor: zoom-in;
}

.ifp-cmm-gallery-lightbox-is-open {
  overflow: hidden;
}

.ifp-cmm-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
}

.ifp-cmm-gallery-lightbox.is-open {
  display: flex;
}

.ifp-cmm-gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, .86);
  backdrop-filter: blur(3px);
}

.ifp-cmm-gallery-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  width: min(1440px, 100%);
  max-height: 94vh;
  gap: 14px;
}

.ifp-cmm-gallery-lightbox__figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  min-width: 0;
  width: min(1280px, calc(100vw - 160px));
  height: min(86vh, 920px);
  margin: 0;
  text-align: center;
}

.ifp-cmm-gallery-lightbox__image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
  background: #0f172a;
}

.ifp-cmm-gallery-lightbox__caption {
  margin-top: 12px;
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.5;
}

.ifp-cmm-gallery-lightbox__caption[hidden] {
  display: none;
}

.ifp-cmm-gallery-lightbox__close,
.ifp-cmm-gallery-lightbox__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}

.ifp-cmm-gallery-lightbox__close:hover,
.ifp-cmm-gallery-lightbox__nav:hover,
.ifp-cmm-gallery-lightbox__close:focus,
.ifp-cmm-gallery-lightbox__nav:focus {
  background: rgba(255, 255, 255, .24);
  outline: 2px solid rgba(255, 255, 255, .28);
  outline-offset: 3px;
}

.ifp-cmm-gallery-lightbox__close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  font-size: 28px;
  line-height: 1;
}

.ifp-cmm-gallery-lightbox__nav {
  width: 48px;
  height: 48px;
  font-size: 46px;
  line-height: 1;
}

.ifp-cmm-gallery-lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: -32px;
  transform: translateX(-50%);
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1;
}

.ifp-cmm-gallery-lightbox--single .ifp-cmm-gallery-lightbox__nav,
.ifp-cmm-gallery-lightbox--single .ifp-cmm-gallery-lightbox__counter {
  display: none;
}

@media (max-width: 767px) {
  .ifp-cmm-gallery-lightbox {
    padding: 14px;
  }

  .ifp-cmm-gallery-lightbox__dialog {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ifp-cmm-gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 42px;
    height: 42px;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, .62);
  }

  .ifp-cmm-gallery-lightbox__nav--prev {
    left: 8px;
  }

  .ifp-cmm-gallery-lightbox__nav--next {
    right: 8px;
  }

  .ifp-cmm-gallery-lightbox__close {
    top: 8px;
    right: 8px;
  }

  .ifp-cmm-gallery-lightbox__figure {
    width: calc(100vw - 28px);
    height: 82vh;
  }

  .ifp-cmm-gallery-lightbox__image {
    max-height: 100% !important;
  }

  .ifp-cmm-gallery-lightbox__counter {
    bottom: 8px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .62);
  }
}


.ifp-cmm-image-lightbox-link {
  display: inline-block;
  max-width: 100%;
  cursor: zoom-in;
}

.ifp-cmm-image-lightbox-link img {
  display: block;
}

/* v0.7.190.45: Lightbox-Bilder werden bildschirmfüllend im verfügbaren Modal-Raum dargestellt. */


/* v0.10.29 – direkte Elementor-Ausgabe echter Taxonomiebegriffe. */
.ifp-cmm-taxonomy-terms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.ifp-cmm-taxonomy-term-item {
  min-width: 0;
}
.ifp-cmm-taxonomy-term-item__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .09);
  transition: transform .2s ease, box-shadow .2s ease;
}
a.ifp-cmm-taxonomy-term-item__inner:hover,
a.ifp-cmm-taxonomy-term-item__inner:focus-visible {
  color: inherit;
  text-decoration: none;
  transform: translateY(-2px);
}
.ifp-cmm-taxonomy-term-item__image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: rgba(0, 0, 0, .04);
}
.ifp-cmm-taxonomy-term-item__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ifp-cmm-taxonomy-term-item__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: .65rem;
  padding: 1.25rem;
}
.ifp-cmm-taxonomy-term-item__title {
  margin: 0;
  color: inherit;
}
.ifp-cmm-taxonomy-term-item__description > :first-child {
  margin-top: 0;
}
.ifp-cmm-taxonomy-term-item__description > :last-child {
  margin-bottom: 0;
}
.ifp-cmm-taxonomy-term-item__count {
  font-size: .9em;
  opacity: .75;
}
.ifp-cmm-taxonomy-term-item__meta-list {
  display: grid;
  gap: .35rem;
  margin: .25rem 0 0;
}
.ifp-cmm-taxonomy-term-item__meta {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: .65rem;
  align-items: baseline;
}
.ifp-cmm-taxonomy-term-item__meta dt {
  font-weight: 600;
}
.ifp-cmm-taxonomy-term-item__meta dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
.ifp-cmm-taxonomy-terms-empty,
.ifp-cmm-elementor-widget-notice {
  padding: 1rem;
  border: 1px dashed currentColor;
  border-radius: 4px;
  opacity: .8;
}
@media (max-width: 767px) {
  .ifp-cmm-taxonomy-terms-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* v0.10.36 – flexible video repeater output */
.ifp-cmm-video-repeater {
    --ifp-cmm-video-columns: 3;
    --ifp-cmm-video-columns-tablet: 2;
    --ifp-cmm-video-columns-mobile: 1;
    --ifp-cmm-video-gap: 24px;
    --ifp-cmm-video-list-media-width: 42%;
    --ifp-cmm-video-list-gap: 24px;
    --ifp-cmm-video-overlay-panel-width: 100%;
    --ifp-cmm-video-overlay-duration: 280ms;
    --ifp-cmm-video-overlay-media-scale: 1;
    --ifp-cmm-video-controls-safe-area: 56px;
    width: 100%;
}

.ifp-cmm-video-repeater__items {
    display: grid;
    grid-template-columns: repeat(var(--ifp-cmm-video-columns), minmax(0, 1fr));
    gap: var(--ifp-cmm-video-gap);
}

.ifp-cmm-video-repeater__item {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #fff;
}

.ifp-cmm-video-repeater__media {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    background: #111;
}

.ifp-cmm-video-repeater__media--16-9 {
    aspect-ratio: 16 / 9;
}

.ifp-cmm-video-repeater__media--4-3 {
    aspect-ratio: 4 / 3;
}

.ifp-cmm-video-repeater__media--1-1 {
    aspect-ratio: 1 / 1;
}

.ifp-cmm-video-repeater__media--9-16 {
    aspect-ratio: 9 / 16;
}

.ifp-cmm-video-repeater__media--auto {
    aspect-ratio: auto;
}

.ifp-cmm-video-repeater__video,
.ifp-cmm-video-repeater__embed,
.ifp-cmm-video-repeater__oembed,
.ifp-cmm-video-repeater__oembed iframe,
.ifp-cmm-video-repeater__fallback-link,
.ifp-cmm-video-repeater__fallback-link img {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.ifp-cmm-video-repeater__video,
.ifp-cmm-video-repeater__embed,
.ifp-cmm-video-repeater__oembed iframe,
.ifp-cmm-video-repeater__fallback-link img {
    object-fit: cover;
}

.ifp-cmm-video-repeater__oembed > * {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}

.ifp-cmm-video-repeater__fallback-link {
    position: relative;
    color: #fff;
    text-decoration: none;
}

.ifp-cmm-video-repeater__fallback-link span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: .65em 1em;
    border-radius: 999px;
    background: rgba(0, 0, 0, .72);
    color: #fff;
    white-space: nowrap;
}

.ifp-cmm-video-repeater__fallback-link--text {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.ifp-cmm-video-repeater__duration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 4;
    padding: .28em .52em;
    border-radius: 4px;
    background: rgba(0, 0, 0, .78);
    color: #fff;
    font-size: .78em;
    line-height: 1;
}

.ifp-cmm-video-repeater__content {
    position: relative;
    z-index: 2;
    min-width: 0;
    padding: 18px;
}

.ifp-cmm-video-repeater__content-inner {
    min-width: 0;
}

.ifp-cmm-video-repeater__title {
    margin: 0 0 .5em;
}

.ifp-cmm-video-repeater__title:last-child {
    margin-bottom: 0;
}

.ifp-cmm-video-repeater__description {
    margin: 0;
}

.ifp-cmm-video-repeater__description:empty {
    display: none;
}

.ifp-cmm-video-repeater__description > :first-child {
    margin-top: 0;
}

.ifp-cmm-video-repeater__description > :last-child {
    margin-bottom: 0;
}

.ifp-cmm-video-repeater__caption {
    margin-top: .75em;
    font-size: .88em;
    opacity: .72;
}

.ifp-cmm-video-repeater__caption:first-child,
.ifp-cmm-video-repeater__title + .ifp-cmm-video-repeater__caption {
    margin-top: 0;
}

.ifp-cmm-video-repeater__caption + .ifp-cmm-video-repeater__title,
.ifp-cmm-video-repeater__description + .ifp-cmm-video-repeater__title,
.ifp-cmm-video-repeater__caption + .ifp-cmm-video-repeater__description {
    margin-top: .75em;
}

.ifp-cmm-video-repeater__extras {
    display: grid;
    gap: .45em;
    margin: 1em 0 0;
}

.ifp-cmm-video-repeater__extras:first-child {
    margin-top: 0;
}

.ifp-cmm-video-repeater__extra {
    display: grid;
    grid-template-columns: minmax(90px, auto) minmax(0, 1fr);
    gap: .65em;
}

.ifp-cmm-video-repeater__extra dt,
.ifp-cmm-video-repeater__extra dd {
    margin: 0;
}

.ifp-cmm-video-repeater__extra dt {
    font-weight: 600;
}

.ifp-cmm-video-repeater__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.1em;
    padding: .72em 1.15em;
    border: 1px solid currentColor;
    border-radius: 4px;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.ifp-cmm-video-repeater__button:first-child {
    margin-top: 0;
}

.ifp-cmm-video-repeater__button:hover,
.ifp-cmm-video-repeater__button:focus {
    transform: translateY(-1px);
}

/* Full-width stacked output. */
.ifp-cmm-video-repeater--featured .ifp-cmm-video-repeater__items {
    grid-template-columns: minmax(0, 1fr);
}

.ifp-cmm-video-repeater--featured .ifp-cmm-video-repeater__content {
    padding-left: 0;
    padding-right: 0;
}

/* Flexible side-by-side layouts. */
.ifp-cmm-video-repeater--list .ifp-cmm-video-repeater__items,
.ifp-cmm-video-repeater--list-right .ifp-cmm-video-repeater__items,
.ifp-cmm-video-repeater--list-alternating .ifp-cmm-video-repeater__items {
    grid-template-columns: minmax(0, 1fr);
}

.ifp-cmm-video-repeater--list .ifp-cmm-video-repeater__item,
.ifp-cmm-video-repeater--list-right .ifp-cmm-video-repeater__item,
.ifp-cmm-video-repeater--list-alternating .ifp-cmm-video-repeater__item {
    display: grid;
    grid-template-columns:
        minmax(0, var(--ifp-cmm-video-list-media-width))
        minmax(0, 1fr);
    column-gap: var(--ifp-cmm-video-list-gap);
    align-items: stretch;
}

.ifp-cmm-video-repeater--list-right .ifp-cmm-video-repeater__item,
.ifp-cmm-video-repeater--list-alternating .ifp-cmm-video-repeater__item--even {
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, var(--ifp-cmm-video-list-media-width));
}

.ifp-cmm-video-repeater--list-right .ifp-cmm-video-repeater__media {
    grid-column: 2;
    grid-row: 1;
}

.ifp-cmm-video-repeater--list-right .ifp-cmm-video-repeater__content {
    grid-column: 1;
    grid-row: 1;
}

.ifp-cmm-video-repeater--list-alternating .ifp-cmm-video-repeater__item--even .ifp-cmm-video-repeater__media {
    grid-column: 2;
    grid-row: 1;
}

.ifp-cmm-video-repeater--list-alternating .ifp-cmm-video-repeater__item--even .ifp-cmm-video-repeater__content {
    grid-column: 1;
    grid-row: 1;
}

.ifp-cmm-video-repeater--list .ifp-cmm-video-repeater__item--media-only,
.ifp-cmm-video-repeater--list-right .ifp-cmm-video-repeater__item--media-only,
.ifp-cmm-video-repeater--list-alternating .ifp-cmm-video-repeater__item--media-only {
    display: block;
}

/* Overlay layouts. Empty text never creates an overlay wrapper. */
.ifp-cmm-video-repeater--overlay-base .ifp-cmm-video-repeater__item {
    isolation: isolate;
}

.ifp-cmm-video-repeater--overlay-base .ifp-cmm-video-repeater__media {
    z-index: 1;
    transition: transform var(--ifp-cmm-video-overlay-duration) ease;
}

.ifp-cmm-video-repeater--overlay-base .ifp-cmm-video-repeater__item--has-content:hover .ifp-cmm-video-repeater__media,
.ifp-cmm-video-repeater--overlay-base .ifp-cmm-video-repeater__item--has-content:focus-within .ifp-cmm-video-repeater__media {
    transform: scale(var(--ifp-cmm-video-overlay-media-scale));
}

.ifp-cmm-video-repeater--overlay-base .ifp-cmm-video-repeater__content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    padding: 0;
    color: #fff;
    pointer-events: none;
    overflow: hidden;
}

.ifp-cmm-video-repeater--overlay-base .ifp-cmm-video-repeater__content-inner {
    width: 100%;
    min-width: 0;
    max-height: 100%;
    padding: 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
    pointer-events: auto;
    scrollbar-width: thin;
}

.ifp-cmm-video-repeater--overlay-base .ifp-cmm-video-repeater__button,
.ifp-cmm-video-repeater--overlay-base .ifp-cmm-video-repeater__content a {
    pointer-events: auto;
}

/*
 * Overlay interaction safety:
 * - In the recommended mode, headings/descriptions do not intercept pointer
 *   events. The underlying HTML5/YouTube/Vimeo player remains clickable.
 * - Explicit links and buttons stay interactive.
 * - The optional controls-safe class leaves the player's lower control strip
 *   visually and functionally unobstructed.
 */
.ifp-cmm-video-repeater--overlay-interaction-video .ifp-cmm-video-repeater__content-inner {
    pointer-events: none;
    overflow-y: hidden;
}

.ifp-cmm-video-repeater--overlay-interaction-video .ifp-cmm-video-repeater__content a,
.ifp-cmm-video-repeater--overlay-interaction-video .ifp-cmm-video-repeater__content button,
.ifp-cmm-video-repeater--overlay-interaction-video .ifp-cmm-video-repeater__content [role="button"] {
    pointer-events: auto;
}

.ifp-cmm-video-repeater--protect-controls .ifp-cmm-video-repeater__item--controls-safe .ifp-cmm-video-repeater__content {
    bottom: var(--ifp-cmm-video-controls-safe-area);
}

.ifp-cmm-video-repeater--protect-controls .ifp-cmm-video-repeater__item--controls-safe .ifp-cmm-video-repeater__duration {
    bottom: calc(10px + var(--ifp-cmm-video-controls-safe-area));
}


.ifp-cmm-video-repeater--overlay-base .ifp-cmm-video-repeater__title,
.ifp-cmm-video-repeater--overlay-base .ifp-cmm-video-repeater__description,
.ifp-cmm-video-repeater--overlay-base .ifp-cmm-video-repeater__caption,
.ifp-cmm-video-repeater--overlay-base .ifp-cmm-video-repeater__extra dt,
.ifp-cmm-video-repeater--overlay-base .ifp-cmm-video-repeater__extra dd {
    color: inherit;
}

.ifp-cmm-video-repeater--overlay-full .ifp-cmm-video-repeater__content {
    background: rgba(0, 0, 0, .56);
}

.ifp-cmm-video-repeater--overlay-panel .ifp-cmm-video-repeater__content-inner {
    max-width: var(--ifp-cmm-video-overlay-panel-width);
    background: rgba(0, 0, 0, .68);
}

.ifp-cmm-video-repeater--overlay-position-top .ifp-cmm-video-repeater__content {
    justify-content: flex-start;
}

.ifp-cmm-video-repeater--overlay-position-center .ifp-cmm-video-repeater__content {
    justify-content: center;
}

.ifp-cmm-video-repeater--overlay-position-bottom .ifp-cmm-video-repeater__content {
    justify-content: flex-end;
}

.ifp-cmm-video-repeater--overlay-horizontal-stretch .ifp-cmm-video-repeater__content {
    align-items: stretch;
}

.ifp-cmm-video-repeater--overlay-horizontal-left .ifp-cmm-video-repeater__content {
    align-items: flex-start;
}

.ifp-cmm-video-repeater--overlay-horizontal-center .ifp-cmm-video-repeater__content {
    align-items: center;
}

.ifp-cmm-video-repeater--overlay-horizontal-right .ifp-cmm-video-repeater__content {
    align-items: flex-end;
}

.ifp-cmm-video-repeater--overlay-hover .ifp-cmm-video-repeater__item--has-content .ifp-cmm-video-repeater__content {
    opacity: 0;
    visibility: hidden;
    transition:
        opacity var(--ifp-cmm-video-overlay-duration) ease,
        visibility var(--ifp-cmm-video-overlay-duration) ease,
        transform var(--ifp-cmm-video-overlay-duration) ease;
}

.ifp-cmm-video-repeater--overlay-hover.ifp-cmm-video-repeater--overlay-effect-slide-up .ifp-cmm-video-repeater__item--has-content .ifp-cmm-video-repeater__content {
    transform: translateY(18px);
}

.ifp-cmm-video-repeater--overlay-hover.ifp-cmm-video-repeater--overlay-effect-slide-down .ifp-cmm-video-repeater__item--has-content .ifp-cmm-video-repeater__content {
    transform: translateY(-18px);
}

.ifp-cmm-video-repeater--overlay-hover.ifp-cmm-video-repeater--overlay-effect-scale .ifp-cmm-video-repeater__item--has-content .ifp-cmm-video-repeater__content {
    transform: scale(.97);
}

.ifp-cmm-video-repeater--overlay-hover .ifp-cmm-video-repeater__item--has-content:hover .ifp-cmm-video-repeater__content,
.ifp-cmm-video-repeater--overlay-hover .ifp-cmm-video-repeater__item--has-content:focus .ifp-cmm-video-repeater__content,
.ifp-cmm-video-repeater--overlay-hover .ifp-cmm-video-repeater__item--has-content:focus-within .ifp-cmm-video-repeater__content {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.ifp-cmm-video-repeater__empty {
    padding: 1em;
    border: 1px dashed currentColor;
    opacity: .75;
}

@media (max-width: 1024px) {
    .ifp-cmm-video-repeater__items {
        grid-template-columns: repeat(var(--ifp-cmm-video-columns-tablet), minmax(0, 1fr));
    }

    .ifp-cmm-video-repeater--list .ifp-cmm-video-repeater__items,
    .ifp-cmm-video-repeater--list-right .ifp-cmm-video-repeater__items,
    .ifp-cmm-video-repeater--list-alternating .ifp-cmm-video-repeater__items,
    .ifp-cmm-video-repeater--featured .ifp-cmm-video-repeater__items {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .ifp-cmm-video-repeater__items {
        grid-template-columns: repeat(var(--ifp-cmm-video-columns-mobile), minmax(0, 1fr));
    }

    .ifp-cmm-video-repeater--list .ifp-cmm-video-repeater__item,
    .ifp-cmm-video-repeater--list-right .ifp-cmm-video-repeater__item,
    .ifp-cmm-video-repeater--list-alternating .ifp-cmm-video-repeater__item {
        grid-template-columns: minmax(0, 1fr);
        row-gap: var(--ifp-cmm-video-list-gap);
    }

    .ifp-cmm-video-repeater--list .ifp-cmm-video-repeater__media,
    .ifp-cmm-video-repeater--list-right .ifp-cmm-video-repeater__media,
    .ifp-cmm-video-repeater--list-alternating .ifp-cmm-video-repeater__media,
    .ifp-cmm-video-repeater--list-alternating .ifp-cmm-video-repeater__item--even .ifp-cmm-video-repeater__media {
        grid-column: 1;
        grid-row: 1;
    }

    .ifp-cmm-video-repeater--list .ifp-cmm-video-repeater__content,
    .ifp-cmm-video-repeater--list-right .ifp-cmm-video-repeater__content,
    .ifp-cmm-video-repeater--list-alternating .ifp-cmm-video-repeater__content,
    .ifp-cmm-video-repeater--list-alternating .ifp-cmm-video-repeater__item--even .ifp-cmm-video-repeater__content {
        grid-column: 1;
        grid-row: 2;
    }

    .ifp-cmm-video-repeater--mobile-text-first .ifp-cmm-video-repeater__media,
    .ifp-cmm-video-repeater--mobile-text-first .ifp-cmm-video-repeater__item--even .ifp-cmm-video-repeater__media {
        grid-row: 2;
    }

    .ifp-cmm-video-repeater--mobile-text-first .ifp-cmm-video-repeater__content,
    .ifp-cmm-video-repeater--mobile-text-first .ifp-cmm-video-repeater__item--even .ifp-cmm-video-repeater__content {
        grid-row: 1;
    }

    .ifp-cmm-video-repeater__extra {
        grid-template-columns: minmax(0, 1fr);
        gap: .1em;
    }
}

@media (hover: none), (pointer: coarse) {
    .ifp-cmm-video-repeater--overlay-hover .ifp-cmm-video-repeater__item--has-content .ifp-cmm-video-repeater__content {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ifp-cmm-video-repeater--overlay-base .ifp-cmm-video-repeater__media,
    .ifp-cmm-video-repeater--overlay-hover .ifp-cmm-video-repeater__content {
        transition: none;
    }
}
