/* Integrations-Seiten (/integration/<partner>/): je Verwaltungssoftware eine
   Landingpage „KI-Telefon für …“ mit gleichem Aufbau. Die Bausteine kommen aus
   redesign.css; hier liegen Logo-Kacheln, Schritte, Beispielkarte, Kanäle und
   die Partner-Links (Präfix ig-). Die Übersicht /integration/ hat eigenes CSS. */

/* ===== Seitenkopf: Cambioo + Partner als ruhige weiße Logo-Kacheln ===== */
.ig-pair {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 2.25rem;
}

.ig-tile {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 184px;
  height: 96px;
  padding: 1rem 1.5rem;
  border-radius: 22px;
  background: var(--c-bg, #fff);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.04),
    0 24px 50px -32px rgba(30, 41, 59, 0.4);
}

.ig-tile img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 44px;
  object-fit: contain;
}

/* Das Cambioo-SVG hat viel Rand, das IGEL-Logo füllt nur die Mitte seines
   quadratischen Bildes, Domizil+ ist hoch und DoNexus sehr breit. */
.ig-tile img.ig-logo-cambioo {
  height: 80px;
  margin-block: -18px;
}

.ig-tile img.ig-logo-square {
  height: 96px;
  margin-block: -26px;
}

.ig-tile img.ig-logo-tall {
  height: 64px;
  margin-block: -10px;
}

.ig-tile img.ig-logo-small {
  height: 34px;
}

.ig-tile img.ig-logo-flat {
  height: 28px;
}

/* Partner ohne Logodatei: der Name als ruhige Schriftmarke */
.ig-wordmark {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-ink, #1e293b);
  white-space: nowrap;
}

.ig-plus {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-bg, #fff);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.18);
  color: #ea580c;
}

.ig-crumb a {
  color: inherit;
  text-decoration: none;
}

.ig-crumb a:hover {
  color: #c2410c;
}

/* Erstgespräch und Live-Nummer, darunter drei Fakten */
.rd-pagehead .ig-head-actions .btn-primary {
  min-height: 52px;
  padding: 0 1.6rem;
  font-size: 1rem;
}

.ig-live {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0 1.4rem 0 0.35rem;
  border-radius: 999px;
  background: var(--c-bg, #fff);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.06),
    0 14px 30px -18px rgba(30, 41, 59, 0.45);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-ink, #1e293b);
  text-decoration: none;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.ig-live:hover {
  box-shadow:
    0 0 0 1px rgba(249, 115, 22, 0.35),
    0 18px 34px -18px rgba(249, 115, 22, 0.45);
  transform: translateY(-2px);
}

.ig-live-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff1e6;
  color: #c2410c;
}

.ig-live-label {
  white-space: nowrap;
}

.ig-live-number {
  font-weight: 500;
  color: var(--c-ink-4, #64748b);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ig-head-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.75rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--c-ink-3, #475569);
}

.ig-head-facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.ig-head-facts svg {
  color: #ea580c;
}

/* Zentrierte Überschriften brechen ausgewogen um, der Partnername bleibt
   nicht allein in der zweiten Zeile. */
.rd-center .rd-title,
.rd-cta .rd-title {
  text-wrap: balance;
}

/* ===== So arbeitet das KI-Telefon: Schritte links, Beispielkarte rechts ===== */
.ig-flow {
  margin-top: 3.5rem;
}

.ig-steps {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ig-step;
}

.ig-steps li {
  position: relative;
  padding-left: 3.5rem;
  counter-increment: ig-step;
}

.ig-steps li::before {
  content: counter(ig-step);
  position: absolute;
  top: -0.15rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.2);
  font-size: 0.95rem;
  font-weight: 700;
  color: #c2410c;
}

/* Feine Linie von Schritt zu Schritt */
.ig-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.6rem;
  bottom: -1.5rem;
  left: 1.2rem;
  width: 1px;
  background: #fed7aa;
}

.ig-steps h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--c-ink, #1e293b);
}

.ig-steps p {
  margin: 0.35rem 0 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--c-ink-4, #64748b);
}

/* Link zur Telefon-Seite, bündig mit dem Text der Schritte */
.rd-link.ig-steps-link {
  margin-top: 2rem;
  margin-left: 3.5rem;
}

/* Rahmen mit weichem Pastell und einer weißen Beispielkarte (wie /telefon/) */
.rd-visual.ig-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  box-sizing: border-box;
  min-height: 460px;
  padding: 3rem 2.5rem;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 100%),
    linear-gradient(135deg, #ffe6d5 0%, #fdf2ea 45%, #eef0fd 100%);
}

.ig-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 420px;
  padding: 1.1rem 1.2rem 1.15rem;
  border-radius: 18px;
  background: var(--c-bg, #fff);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.04),
    0 22px 44px -26px rgba(30, 41, 59, 0.5);
  color: var(--c-ink, #0f172a);
  text-align: left;
}

.ig-card-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.ig-dot {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff1e6;
  color: #c2410c;
}

.ig-card-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--c-ink-4, #64748b);
}

.ig-card-name b {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--c-ink, #0f172a);
}

.ig-pill {
  flex-shrink: 0;
  margin-left: auto;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #fff7ed;
  font-size: 0.72rem;
  font-weight: 600;
  color: #c2410c;
  white-space: nowrap;
}

.ig-facts {
  margin: 0.9rem 0 0;
}

.ig-facts div {
  display: grid;
  grid-template-columns: 6.6rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-top: 1px solid #f1f5f9;
  font-size: 0.86rem;
  line-height: 1.45;
}

.ig-facts dt {
  color: var(--c-ink-4, #64748b);
}

.ig-facts dd {
  margin: 0;
  font-weight: 500;
  color: var(--c-ink, #1e293b);
}

.ig-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #047857;
}

/* Woher die Karte kommt: Anruf → Cambioo → Partner */
.ig-route {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-ink-3, #475569);
}

.ig-route svg {
  color: #f97316;
}

/* ===== Anbindung im Detail ===== */
.ig-detail .rd-card {
  padding: 2rem;
}

.ig-detail .rd-checks {
  margin-top: 0.25rem;
}

.ig-detail-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ig-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: auto 0 0;
  padding: 0.6rem 0 0;
  list-style: none;
}

.ig-badges li {
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.09);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--c-ink-3, #475569);
}

/* Vier Funktionskarten: lange Komposita dürfen umbrechen */
.ig-features h3 {
  font-size: 1.1rem;
  overflow-wrap: break-word;
  hyphens: auto;
}

.ig-features a {
  font-weight: 600;
  color: #c2410c;
  text-decoration: none;
}

.ig-features a:hover {
  text-decoration: underline;
}

/* ===== E-Mail und WhatsApp ===== */
.ig-channels .rd-card {
  padding: 2rem;
}

.ig-channels .rd-checks {
  margin-top: 0.25rem;
}

.ig-channel-tag {
  align-self: flex-start;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: #ecfdf5;
  font-size: 0.78rem;
  font-weight: 600;
  color: #047857;
}

.ig-channels .rd-more {
  padding-top: 0.75rem;
}

.ig-note {
  max-width: 44rem;
  margin: 2.5rem auto 0;
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
  color: var(--c-ink-3, #475569);
}

/* ===== Über den Partner: Überschrift neben dem Text ===== */
.ig-text {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 4rem;
}

.ig-text-body p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--c-ink-3, #475569);
}

.ig-text-body p + p {
  margin-top: 1.25rem;
}

.ig-text-body a {
  font-weight: 600;
  color: #c2410c;
  text-decoration: none;
}

.ig-text-body a:hover {
  text-decoration: underline;
}

/* ===== Weitere Integrationen: Partner als Pillen ===== */
.rd-section.ig-others-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.ig-others {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  max-width: 820px;
  margin: 2.25rem auto 0;
  padding: 0;
  list-style: none;
}

.ig-others a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: var(--c-bg, #fff);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--c-ink, #1e293b);
  text-decoration: none;
  transition:
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.ig-others a:hover {
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.45);
  color: #c2410c;
}

.ig-others .ig-others-all {
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.2);
  color: #c2410c;
}

@media (max-width: 1000px) {
  .ig-text {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }
}

@media (max-width: 768px) {
  .ig-pair {
    gap: 0.6rem;
    margin-bottom: 1.75rem;
  }

  .ig-tile {
    width: 136px;
    height: 76px;
    padding: 0.8rem 1rem;
    border-radius: 18px;
  }

  .ig-tile img {
    height: 32px;
  }

  .ig-tile img.ig-logo-cambioo {
    height: 60px;
    margin-block: -14px;
  }

  .ig-tile img.ig-logo-square {
    height: 72px;
    margin-block: -20px;
  }

  .ig-tile img.ig-logo-tall {
    height: 48px;
    margin-block: -8px;
  }

  .ig-tile img.ig-logo-small {
    height: 26px;
  }

  .ig-tile img.ig-logo-flat {
    height: 20px;
  }

  .ig-wordmark {
    font-size: 1.1rem;
  }

  .ig-plus {
    width: 28px;
    height: 28px;
  }

  .rd-visual.ig-visual {
    min-height: 0;
    padding: 2rem 1.1rem;
  }

  .ig-detail .rd-card,
  .ig-channels .rd-card {
    padding: 1.5rem;
  }

  .ig-text-body p {
    font-size: 1rem;
  }

  .rd-section.ig-others-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

@media (max-width: 480px) {
  .ig-live {
    gap: 0.5rem;
    padding: 0 1rem 0 0.3rem;
  }

  .ig-live-icon {
    width: 34px;
    height: 34px;
  }

  .ig-head-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ig-head-actions .btn-primary,
  .ig-head-actions .ig-live {
    justify-content: center;
  }

  .ig-head-facts {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .ig-facts div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.1rem;
  }

  .ig-steps li {
    padding-left: 3rem;
  }

  .rd-link.ig-steps-link {
    margin-left: 3rem;
  }
}

@media (max-width: 374px) {
  .ig-live {
    flex-wrap: wrap;
    gap: 0 0.5rem;
    padding: 0.55rem 1rem;
  }

  .ig-live-icon {
    display: none;
  }
}
