/* Marktplatz — seitenspezifische Ergänzungen (Hub-Zahlen, Hub-Kartenlisten, Logo-Flächen).
   Nur kleine Zusätze — alles andere kommt aus dem PAGE-KIT in style.css. */

/* Zahlen im dunklen Page-Hero (Hub) */
.mp-hero-stats { display: flex; gap: clamp(28px, 4vw, 56px); }
.mp-hero-stats .num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px); font-weight: 500; line-height: 1;
  letter-spacing: -0.03em; color: #fff;
}
.mp-hero-stats .lbl { margin-top: 10px; font-size: 14px; color: rgba(255,255,255,0.6); letter-spacing: 0.02em; }

/* Kompakte Top-3-Listen in den Hub-Karten */
.mp-mini-list { list-style: none; margin: 24px 0 28px; padding: 0; }
.mp-mini-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-onW);
  font-size: 15px; color: var(--ink);
}
.mp-mini-list li:last-child { border-bottom: 0; }
.mp-mini-list .loc { margin-left: auto; font-size: 13px; color: var(--muted); flex-shrink: 0; }

/* Dunkle CTA-Karte (Hub, Karte 03) */
.mp-card-ink { background: var(--ink); border-color: var(--ink); }
.mp-card-ink .card__title { color: #fff; }
.mp-card-ink .card__desc { color: rgba(255,255,255,0.75); }
.mp-card-ink .card__foot { border-top-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.6); }

/* Firmen-Logo-Fläche mit Initialen (Unternehmens-Verzeichnis) */
.card .img-ph.mp-logo { height: 160px; }

/* Bild-Variante der Karten-Logofläche (Datei-Logo, Paket B): helle Fläche,
   Logo vollständig sichtbar (object-fit: contain), kein Farbton-Hintergrund. */
.card .img-ph.mp-logo.mp-logo--img {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 26px;
}
.mp-logo--img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Kartentitel im Unternehmens-Verzeichnis etwas kompakter */
.card-grid--4 .card__title { font-size: 20px; }

/* T9 — „Gast-Eintrag"-Label: dezent unter den Meta-Angaben der Karte */
.mp-card-tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }

/* T9 — Fusshinweis auf der Profilseite: Eintrag ohne ASI-Mitgliedschaft */
.mp-guest-note {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}
.mp-logo span {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 500;
  letter-spacing: -0.02em; text-transform: none;
}

/* =====================================================================
   P4e — Detailseiten (Unternehmer-Profil, Stellen-Detail, Anzeigen-Detail)
   ===================================================================== */

/* Schlanker Detail-Hero (nur Breadcrumbs) */
.page-hero--tight { padding-bottom: 0; }

/* Gemeinsamer vertikaler Rhythmus in den schmalen Body-Spalten */
.mp-block { margin-top: 56px; }
.mp-block:first-child { margin-top: 0; }
.mp-count { color: var(--muted); font-weight: 400; font-size: 0.62em; }

/* --- Unternehmer-Profil: 3-spaltiger Kopf (N1) -------------------------- */
/* Logo-Spalte breit reserviert — auch für Querformat-Logos; Textblock rückt
   mit großzügigem Abstand nach rechts, die CTA-Spalte ganz außen. */
.mp-profile-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(28px, 3.5vw, 52px);
  align-items: center;
  margin-top: 32px;
}
/* Breite Logo-Fläche (~232×132) — Geometrie hier höher spezifiziert, damit sie
   die generische .img-ph { width:100% } des Initialen-Fallbacks überstimmt. */
.mp-profile-head .mp-profile-logo {
  width: 232px;
  aspect-ratio: 232 / 132;
  border-radius: var(--r-4);
  flex-shrink: 0;
  overflow: hidden;
}
/* Bild-Variante: dezente helle Fläche + Rahmen, Logo vollständig sichtbar. */
.mp-profile-logo--img {
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px 18px;
}
.mp-profile-logo--img img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  display: block;
}
/* Initialen-Fallback zentriert in derselben breiten Geometrie. */
.mp-profile-logo span {
  font-family: var(--font-display);
  font-size: 44px; font-weight: 500;
  letter-spacing: -0.02em; text-transform: none;
}
.mp-profile-main { min-width: 0; }
.mp-profile-cta {
  display: flex; flex-direction: column; gap: 12px;
  align-items: stretch;
}
.mp-profile-cta .btn { white-space: nowrap; text-align: center; }

/* --- Kontakt-Karte 2×2 ------------------------------------------------- */
.mp-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 24px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  overflow: hidden;
}
.mp-contact {
  background: #fff;
  padding: 20px 22px;
  min-width: 0;
}
.mp-contact__label {
  font-family: var(--font-mono, monospace);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.mp-contact__value {
  font-size: 16px; color: var(--ink); word-break: break-word;
  text-decoration: none;
}
a.mp-contact__value:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Angebots-Liste */
.mp-angebot { list-style: none; margin: 24px 0 0; padding: 0; }
.mp-angebot li {
  position: relative; padding: 10px 0 10px 26px;
  border-bottom: 1px solid var(--line-onW);
  font-size: 16px; color: var(--ink-soft);
}
.mp-angebot li:last-child { border-bottom: 0; }
.mp-angebot li::before {
  content: '→'; position: absolute; left: 0; color: var(--blue); font-weight: 600;
}

/* --- Stellen-Detail: "Wer sucht"-Block --------------------------------- */
.mp-whosearching {
  background: var(--bg-sand);
  border-radius: var(--r-4);
  padding: clamp(24px, 3vw, 32px);
}
.mp-whosearching__head { display: flex; align-items: center; gap: 16px; }
.mp-whosearching__name {
  font-family: var(--font-display); font-size: 22px; font-weight: 500;
  letter-spacing: -0.01em; color: var(--ink); margin-top: 2px;
}
.mp-whosearching__meta { font-size: 14px; color: var(--muted); margin-top: 2px; }
.mp-whosearching__desc { margin: 18px 0 20px; color: var(--ink-soft); font-size: 17px; line-height: 1.55; }

/* Aufgaben/Profil-Checklisten */
.mp-checklist { list-style: none; margin: 22px 0 0; padding: 0; }
.mp-checklist li {
  position: relative; padding: 12px 0 12px 32px;
  border-bottom: 1px solid var(--line-onW);
  font-size: 17px; line-height: 1.5; color: var(--ink-soft);
}
.mp-checklist li:last-child { border-bottom: 0; }
.mp-checklist li::before {
  content: '✓'; position: absolute; left: 0; top: 12px;
  color: var(--blue); font-weight: 700;
}

/* Bewerbungs-Abschluss */
.mp-apply {
  margin-top: 48px;
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
  padding: clamp(24px, 3vw, 32px);
  background: var(--bg-sand); border-radius: var(--r-4);
}
.mp-apply__contact { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.5; max-width: 60ch; }
.mp-apply__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Ausgeloggt: Hinweis auf den Seiten-Zugang (direkt bewerben statt mailto). */
.mp-apply__hint { margin: 12px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 60ch; }
.mp-apply__hint a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.mp-apply__sep { color: var(--muted-sof); margin: 0 6px; }

/* Eingeloggt: Bewerbungsformular direkt in der Apply-Box (gestapelt, volle Breite). */
.mp-apply--form { flex-direction: column; align-items: stretch; gap: 20px; }
.mp-apply__intro { }
.mp-apply__lead { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.55; }
.mp-apply__lead + .mp-apply__contact { margin-top: 8px; }
.mp-bewerbung { margin: 0; }
.mp-bewerbung__foot { margin-top: 20px; }
.mp-bewerbung__error {
  display: flex; align-items: center; gap: 10px;
  margin-top: 18px; padding: 12px 16px;
  background: #fff; border: 1px solid var(--live); border-left-width: 3px;
  border-radius: var(--r-4); color: var(--ink); font-size: 14.5px; line-height: 1.45;
}
.mp-bewerbung__error[hidden] { display: none; }
.mp-bewerbung__error span[aria-hidden] {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%;
  background: var(--live); color: #fff; font-weight: 700; font-size: 14px; line-height: 1;
}
.mp-bewerbung__success { text-align: center; padding: 8px 4px 4px; }
.mp-bewerbung__success[hidden] { display: none; }
.mp-bewerbung__successIcon {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--moss); color: #fff;
}
.mp-bewerbung__successIcon svg { width: 26px; height: 26px; }
.mp-bewerbung__success p { max-width: 52ch; margin: 0 auto; color: var(--ink-soft); font-size: 16px; line-height: 1.6; }

/* --- Kleinanzeigen-Detail: 2-spaltig ----------------------------------- */
.mp-ad-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.mp-ad-gallery__main { height: clamp(280px, 40vw, 420px); }
.mp-ad-gallery__main span { font-size: 15px; }
.mp-ad-body { min-width: 0; }
.mp-ad-price {
  font-family: var(--font-display); font-size: 28px; font-weight: 500;
  letter-spacing: -0.01em; color: var(--blue); margin-top: 16px;
}
.mp-ad-meta { margin-top: 12px; font-size: 14px; color: var(--muted); }
.mp-ad-seller {
  display: flex; align-items: center; gap: 14px;
  margin-top: 32px; padding: 18px 20px;
  background: var(--bg-sand); border-radius: var(--r-4);
}
.mp-ad-seller__name { font-weight: 600; color: var(--ink); }
.mp-ad-seller__role { font-size: 14px; color: var(--muted); margin-top: 2px; }
.mp-ad-cta { margin-top: 28px; width: 100%; text-align: center; }

/* =====================================================================
   Responsive — Detailseiten brechen sauber auf schmale Viewports um
   ===================================================================== */
@media (max-width: 860px) {
  .mp-ad-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .mp-profile-head {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 20px;
  }
  .mp-profile-cta { flex-direction: row; flex-wrap: wrap; width: 100%; }
  .mp-profile-cta .btn { flex: 1 1 auto; }
  .mp-apply { flex-direction: column; align-items: stretch; }
  .mp-apply__actions .btn { width: 100%; text-align: center; }
}
/* Schmale Viewports: Logo oben, linksbündig, auf ~200px begrenzt (kein Quetschen). */
@media (max-width: 560px) {
  .mp-profile-head .mp-profile-logo { width: min(200px, 64vw); }
}
@media (max-width: 520px) {
  .mp-contact-grid { grid-template-columns: 1fr; }
  .mp-hero-stats { flex-wrap: wrap; gap: 24px 40px; }
}
