/* Handlungsaufforderung am Ende von Reviews und Plattform-Vorstellungen
   (components/PlatformCta.tsx). Farben aus der Theme-Palette: Akzent #FFB424,
   Dunkelblau #2C5669, Textfarbe wie die Beitragstypografie. */

.platform-cta {
  --cta-accent: #ffb424;
  --cta-ink: #19333f;
  --cta-surface: #edf5ff;
  --cta-surface-2: #ffffff;
  --cta-rule: #d5e3f2;
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  overflow: hidden;
  margin: 2.5em 0 2em;
  padding: 22px 28px 22px 22px;
  border: 1px solid var(--cta-rule);
  border-radius: 16px;
  background: linear-gradient(155deg, var(--cta-surface-2), var(--cta-surface));
  box-shadow: 0 1px 2px rgba(25, 51, 63, 0.05), 0 10px 28px -20px rgba(25, 51, 63, 0.4);
}
/* Akzentleiste links, wie beim Inhaltsverzeichnis */
.platform-cta::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--cta-accent);
}

.platform-cta-person {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 72px;
}

/* ".entry-content-html img" (blog-post.css) setzt sonst height:auto und macht
   aus dem runden Foto ein Oval — das Präfix hebt die Spezifität darüber. */
.entry-content-html .platform-cta-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: #d7ecec;
  box-shadow: 0 0 0 3px var(--cta-surface-2), 0 4px 14px -6px rgba(25, 51, 63, 0.45);
}

.platform-cta-name {
  color: var(--cta-ink);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.platform-cta-body {
  min-width: 0;
  flex: 1 1 auto;
}

.platform-cta-heading {
  margin: 0 0 6px;
  color: var(--cta-ink);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.platform-cta-note {
  margin: 0 0 16px;
  color: var(--cta-ink);
  font-size: 1rem;
  line-height: 1.55;
}

.platform-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 12px 26px;
  border-radius: 10px;
  background: var(--cta-accent);
  color: var(--cta-ink);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.platform-cta-button::after {
  content: "→";
  font-weight: 700;
}
.platform-cta-button:hover,
.platform-cta-button:focus {
  background: #ffc85e;
  color: var(--cta-ink);
  text-decoration: none;
  box-shadow: 0 6px 18px -8px rgba(25, 51, 63, 0.55);
  transform: translateY(-1px);
}
.platform-cta-button:focus-visible {
  outline: 2px solid var(--cta-ink);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .platform-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 18px 18px;
  }
  .platform-cta-person {
    width: 88px;
  }
  .entry-content-html .platform-cta-avatar {
    width: 56px;
    height: 56px;
  }
  .platform-cta-button {
    width: 100%;
    justify-content: center;
  }
}

/* ---------------------------------------------------------------------------
   Kompakter Plattform-Button unter dem Inhaltsverzeichnis
   (lib/platform-cta.ts: tocCtaHtml). Er steht an zwei Stellen in derselben
   Optik: im mitscrollenden Sidebar-Widget (.ez-toc-widget-box, ab 1081px) und
   in der Inline-Box im Beitragstext (#ez-toc-container, darunter) — dort
   scrollt er nicht mit, steht aber genauso direkt unter dem Verzeichnis.
   Jede Regel führt die Inline-Variante mit `#ez-toc-container` doppelt: das
   Plugin-CSS (ez-toc/screen.min.css) setzt Farbe, Anzeige und Unterstreichung
   über `#ez-toc-container a` — eine reine Klassenregel käme dagegen nicht an.
   Farben wie der große CTA am Textende, nur kleiner und über die volle Breite.
   --------------------------------------------------------------------------- */
.toc-cta {
  --cta-accent: #ffb424;
  --cta-ink: #19333f;
  --cta-rule: #e3e9f0;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--cta-rule);
}

.toc-cta-button,
#ez-toc-container .toc-cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  padding: 11px 18px;
  border-radius: 10px;
  background: var(--cta-accent);
  color: var(--cta-ink);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.toc-cta-button::after,
#ez-toc-container .toc-cta-button::after {
  content: "→";
  font-weight: 700;
}
.toc-cta-button:hover,
.toc-cta-button:focus,
#ez-toc-container .toc-cta-button:hover,
#ez-toc-container .toc-cta-button:focus {
  background: #ffc85e;
  color: var(--cta-ink);
  text-decoration: none;
  box-shadow: 0 6px 18px -8px rgba(25, 51, 63, 0.55);
  transform: translateY(-1px);
}
.toc-cta-button:focus-visible,
#ez-toc-container .toc-cta-button:focus-visible {
  outline: 2px solid var(--cta-ink);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
   Fußnote am Seitenende, die das Sternchen an den Werbelinks erklärt
   (components/PlatformCta.tsx: AffiliateFootnote).
   --------------------------------------------------------------------------- */
.affiliate-footnote {
  margin: 2em 0 0;
  padding-top: 12px;
  border-top: 1px solid #e3e9f0;
  color: #4a6472;
  font-size: 0.82rem;
  line-height: 1.5;
}
