/* STRATON Experten – Übersicht und Detailseiten
   Eigener Namensraum (ifx-), damit nichts mit dem Theme kollidiert. */

.ifx-wrap { max-width: 1140px; margin: 0 auto; padding: 2rem 1rem 4rem; }
.ifx-page { background: #f4f5f7; }

/* ---------- Übersicht ---------- */
.ifx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.ifx-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e4e7ec;
  overflow: hidden;
}
.ifx-card__media { display: block; line-height: 0; }
.ifx-card__photo { width: 100%; height: 220px; object-fit: cover; display: block; }
.ifx-photo--leer { display: block; background: #0e223c; }
.ifx-card__body { padding: 1rem 1.15rem; flex: 1; }
.ifx-card__name { margin: 0; font-size: 1.15rem; line-height: 1.2; }
.ifx-card__name a { color: #0e223c; text-decoration: none; }
.ifx-card__name a:hover { color: #0a66c2; }
.ifx-card__headline { margin: .3rem 0 0; color: #6b7789; font-size: .92rem; }
.ifx-card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .8rem 1.15rem; border-top: 1px solid #e4e7ec; background: #fafbfc;
}

/* ---------- Merkmale ---------- */
.ifx-facts { display: flex; flex-wrap: wrap; gap: 0; margin: .9rem 0 0; }
.ifx-fact { padding: 0 1rem 0 0; margin-right: 1rem; border-right: 1px solid #e4e7ec; }
.ifx-fact:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.ifx-fact dt {
  margin: 0; font-size: .62rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: #98a2b3;
}
.ifx-fact dd { margin: .12rem 0 0; font-weight: 600; color: #0e223c; font-size: .92rem; }

/* ---------- Schlagworte ---------- */
.ifx-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .9rem; }
.ifx-tag {
  background: #f4f5f7; border: 1px solid #e4e7ec; color: #344054;
  padding: .22rem .55rem; font-size: .78rem; font-weight: 600;
}
.ifx-tag__sub { color: #6b7789; font-weight: 500; }

.ifx-avail { font-size: .82rem; font-weight: 600; color: #059669; }
.ifx-avail--hero { margin: 0 0 .4rem; }

.ifx-btn {
  display: inline-block; background: #0a66c2; color: #fff !important;
  padding: .5rem .95rem; font-weight: 600; font-size: .88rem; text-decoration: none;
  border: 1px solid #0a66c2;
}
.ifx-btn:hover { background: #004182; border-color: #004182; }
.ifx-btn--gross { padding: .7rem 1.4rem; font-size: 1rem; }

.ifx-leer { color: #6b7789; padding: 2rem 0; }

/* ---------- Detailseite ---------- */
.ifx-back { margin: 0 0 1rem; font-size: .9rem; }
.ifx-back a { color: #0a66c2; text-decoration: none; }
.ifx-detail { background: #fff; border: 1px solid #e4e7ec; }

.ifx-hero { display: flex; align-items: stretch; background: #0e223c; color: #fff; }
.ifx-hero__media { flex: 0 0 27%; max-width: 27%; position: relative; background: #0e223c; }
.ifx-hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ifx-hero__main { flex: 1; min-width: 0; padding: 1.9rem 2.1rem; }
.ifx-hero__name { margin: 0; font-size: 2rem; line-height: 1.15; color: #fff; font-weight: 600; }
.ifx-hero__headline { margin: .4rem 0 0; opacity: .85; font-size: 1.05rem; }
.ifx-facts--hero { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,.16); }
.ifx-facts--hero .ifx-fact { border-right-color: rgba(255,255,255,.16); }
.ifx-facts--hero dt { color: rgba(255,255,255,.55); }
.ifx-facts--hero dd { color: #fff; }
.ifx-hero .ifx-avail { color: #7fd8a8; }

.ifx-section { padding: 1.6rem 2.1rem; border-top: 1px solid #e4e7ec; }
.ifx-section h2 {
  margin: 0 0 1rem; font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #98a2b3;
}
.ifx-bio { margin: 0; color: #344054; line-height: 1.65; }

.ifx-group { padding: .7rem 0; border-bottom: 1px solid #eef1f6; }
.ifx-group:last-child { border-bottom: 0; padding-bottom: 0; }
.ifx-group:first-child { padding-top: 0; }
.ifx-group__head { display: flex; align-items: baseline; gap: .75rem; }
.ifx-group__name { font-weight: 700; color: #0e223c; }
.ifx-group__exp { margin-left: auto; font-size: .78rem; font-weight: 600; color: #0a66c2; }

.ifx-row { padding: .7rem 0; border-bottom: 1px solid #eef1f6; }
.ifx-row:last-child { border-bottom: 0; padding-bottom: 0; }
.ifx-row:first-child { padding-top: 0; }
.ifx-row__head { font-weight: 700; color: #0e223c; }
.ifx-row__meta { display: flex; flex-wrap: wrap; gap: .3rem 1.3rem; margin-top: .25rem; font-size: .88rem; color: #344054; }
.ifx-row__lbl { font-size: .62rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #98a2b3; }

.ifx-cta {
  padding: 1.6rem 2.1rem; border-top: 1px solid #e4e7ec; background: #f4f5f7;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.ifx-cta p { margin: 0; color: #6b7789; font-size: .9rem; max-width: 46ch; }

@media (max-width: 720px) {
  .ifx-hero { flex-direction: column; }
  .ifx-hero__media { flex: none; max-width: 100%; height: 260px; }
  .ifx-hero__main, .ifx-section, .ifx-cta { padding-left: 1.2rem; padding-right: 1.2rem; }
  .ifx-hero__name { font-size: 1.6rem; }
}
