/* ============================================================
   DAVINCI CTA Buttons — Frontend-Styles
   Übernommen und angepasst aus dem ihrteam24-Kontakt-CTA-Katalog.
   Präfix: stb- (Steuerberater Tabak) statt hc-
   ============================================================ */

:root{
  --stb-primary:#2877A6;
  --stb-deep:#03346D;
  --stb-accent:#0796D6;
  --stb-soft:#EFFAFF;
  --stb-ink:#1a2a3e;
  --stb-mute:#2F2F2F;
  --stb-line:#e3edf3;
  --stb-radius:16px;
  --stb-shadow:0 12px 40px rgba(3,52,109,0.10);
}

/* ---------- Pill-Button (Primary) ---------- */
.stb-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:none;
  cursor:pointer;
  font-family:inherit;
  font-weight:700;
  text-decoration:none !important;
  border-radius:999px;
  transition:transform .22s, box-shadow .22s, background .22s;
}
.stb-btn-primary{
  background:linear-gradient(135deg, var(--stb-deep), var(--stb-primary));
  color:#fff !important;
  padding:15px 30px;
  font-size:17px;
  box-shadow:0 10px 28px rgba(3,52,109,.30);
  min-height:52px;
}
.stb-btn-primary:hover{
  transform:translateY(-3px);
  box-shadow:0 16px 38px rgba(7,150,214,.45);
  background:linear-gradient(135deg, var(--stb-deep), var(--stb-accent));
}
.stb-cta-pin{ width:1.05em; height:1.05em; vertical-align:-.18em; }

/* ---------- Inline-CTA (kleiner Block nach Intro) ---------- */
.stb-cta-inline{
  background:var(--stb-soft);
  border:1px solid rgba(7,150,214,.20);
  border-left:4px solid var(--stb-accent);
  border-radius:12px;
  padding:24px 24px 22px;
  margin:28px 0;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.stb-cta-inline .stb-cta-headline{
  display:block;
  font-size:19px;
  font-weight:800;
  color:var(--stb-deep) !important;
  margin:0 0 16px;
  line-height:1.35;
  text-align:center;
}
.stb-cta-inline .stb-cta-checks{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px 20px;
  margin:14px 0 0;
  font-size:14px;
  color:#3a5570 !important;
}
.stb-cta-inline .stb-cta-checks span::before{
  content:"✓";
  color:var(--stb-accent);
  font-weight:800;
  margin-right:6px;
}

/* ---------- Full-Width-CTA-Block (mittig im Artikel) ---------- */
/* WICHTIG: !important — Elementor/Theme überschreibt sonst color mit dunkler Textfarbe. */
.stb-cta-block{
  background:linear-gradient(135deg, var(--stb-deep), var(--stb-primary)) !important;
  border-radius:20px;
  padding:34px 28px;
  text-align:center;
  color:#fff !important;
  margin:38px 0;
  box-shadow:var(--stb-shadow);
}
.stb-cta-block h3,
.stb-cta-block > h3{
  font-size:23px !important;
  font-weight:800 !important;
  margin:0 0 12px !important;
  color:#ffffff !important;
  line-height:1.3 !important;
  text-shadow:0 1px 2px rgba(0,0,0,.15);
}
.stb-cta-block p,
.stb-cta-block > p{
  margin:0 0 22px !important;
  font-size:16px !important;
  color:#ffffff !important;
  line-height:1.6 !important;
  opacity:.96;
}
.stb-cta-block .stb-btn-primary{
  background:#ffffff !important;
  color:var(--stb-deep) !important;
  background-image:none !important;
}
.stb-cta-block .stb-btn-primary:hover{
  background:#eaf6ff !important;
  color:var(--stb-deep) !important;
  box-shadow:0 16px 38px rgba(0,0,0,.20);
}
.stb-cta-block .stb-btn-primary svg{
  color:var(--stb-deep) !important;
}
.stb-cta-sub{
  display:block;
  margin-top:14px !important;
  font-size:13.5px !important;
  color:#ffffff !important;
  opacity:.94;
  letter-spacing:.02em;
}

/* ---------- Modal (Overlay + Dialog + Lazy-iframe) ---------- */
.stb-modal{
  position:fixed; inset:0;
  background:rgba(3,52,109,.72);
  z-index:2147483647;  /* max int32 — über Usercentrics-Cookie-Banner */
  display:none;
  align-items:center; justify-content:center;
  padding:20px;
}
.stb-modal.is-open{ display:flex; }
.stb-modal-dialog{
  background:#fff;
  border-radius:16px;
  width:100%;
  max-width:660px;
  height:min(78vh, 700px);
  position:relative;
  overflow:hidden;
  box-shadow:0 30px 80px rgba(0,0,0,.35);
  animation:stbFadeUp .24s ease-out;
}
@keyframes stbFadeUp{
  from{ opacity:0; transform:translateY(20px); }
  to  { opacity:1; transform:translateY(0); }
}
.stb-modal-close{
  position:absolute;
  top:10px; right:12px;
  width:38px; height:38px;
  background:rgba(255,255,255,.85);
  border:none;
  border-radius:50%;
  cursor:pointer;
  font-size:22px; line-height:1;
  color:var(--stb-deep);
  z-index:2;
  transition:background .18s;
}
.stb-modal-close:hover{ background:#fff; }
.stb-modal-dialog iframe{
  width:100%; height:100%;
  border:0; display:block;
}

/* ---------- Responsive ---------- */
@media (max-width:640px){
  .stb-cta-block{ padding:26px 20px; }
  .stb-cta-block h3{ font-size:20px; }
  .stb-cta-inline{ padding:18px 20px; }
  .stb-btn-primary{ padding:14px 24px; font-size:16px; }
  /* Mobile-Modal: kompakt, mittig, kürzer als vorher */
  .stb-modal{ padding:12px; align-items:center; }
  .stb-modal-dialog{
    border-radius:14px;
    height:min(85vh, 560px);
    max-width:100%;
  }
}
