/* ============================================
   Salesfuchs Custom Styles
   Loaded after Liebling's CSS to override/extend
   ============================================ */

/* --- Desktop Line Break Helper --- */
br.sf-br { display: none; }
@media (min-width: 900px) { br.sf-br { display: inline; } }

/* --- CSS Custom Properties --- */
:root {
  --sf-orange: #ff8400;
  --sf-orange-hover: #e67600;
  --sf-orange-light: rgba(255, 132, 0, 0.1);
  --sf-dark: #1a1a2e;
  --sf-dark-light: #2d2d44;
  --sf-text: #333;
  --sf-text-light: #666;
  --sf-text-muted: #777;
  --sf-bg: #fff;
  --sf-bg-alt: #f8f9fa;
  --sf-bg-dark: #1a1a2e;
  --sf-border: #e5e7eb;
  --sf-radius: 8px;
  --sf-radius-lg: 12px;
  --sf-transition: 0.2s ease;
  --sf-max-width: 1200px;
  --sf-gap: 2rem;
  --sf-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --sf-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --sf-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* --- General Overrides --- */

/* Force light mode — consulting site doesn't need dark mode */
html[data-theme="dark"] {
  --background-color: #fff;
  --primary-foreground-color: #333;
  --secondary-foreground-color: #666;
  --border-color: #e5e7eb;
}

html[data-theme="dark"] body {
  background-color: #fff;
  color: #333;
}

/* ============================================
   HEADER — Consulting Navigation
   ============================================ */

.sf-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--sf-bg);
  transition: box-shadow var(--sf-transition), transform var(--sf-transition);
}

.sf-header.scrolled {
  box-shadow: var(--sf-shadow-md);
}

.sf-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--sf-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
}

.sf-header__logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.sf-header__logo-icon-wrap {
  position: relative;
  display: inline-block;
  height: 36px;
  width: 36px;
  flex-shrink: 0;
}
.sf-header__logo-icon {
  height: 36px;
  width: 36px;
  display: block;
}
.sf-header__logo-icon--anim {
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
}
.sf-header__logo-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.sf-header__logo-link:hover .sf-header__logo-fuchs {
  filter: brightness(1.12);
}
.sf-header__logo-sales {
  font-weight: 700;
  color: var(--sf-dark);
}
.sf-header__logo-fuchs {
  font-weight: 800;
  background: linear-gradient(135deg, #ffb347 0%, #ff8400 50%, #e06000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: filter 0.3s ease;
}

/* Desktop Navigation */
.sf-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sf-nav li a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sf-text);
  text-decoration: none;
  border-radius: var(--sf-radius);
  transition: color var(--sf-transition), background var(--sf-transition);
}

.sf-nav li a:hover {
  color: var(--sf-orange);
  background: var(--sf-orange-light);
}

.sf-nav li a:focus-visible {
  outline: 2px solid var(--sf-orange);
  outline-offset: 2px;
  border-radius: 4px;
}

.sf-nav li.nav-current a,
.sf-nav__link--active {
  color: var(--sf-orange) !important;
  background: var(--sf-orange-light);
}

/* Header actions group */
.sf-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Header CTA button */
.sf-header__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.25rem;
  background: linear-gradient(135deg, #ffab40 0%, var(--sf-orange) 50%, #f07800 100%);
  background-size: 200% 200%;
  background-position: 50% 50%;
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--sf-radius);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(255, 132, 0, 0.2);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), background-position 0.5s ease;
}

.sf-header__cta:hover {
  background-position: 0% 100%;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 132, 0, 0.45), 0 2px 8px rgba(255, 132, 0, 0.25);
}

.sf-header__cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 132, 0, 0.3);
}

/* Mobile hamburger */
.sf-header__mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--sf-text);
}

.sf-header__mobile-toggle svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* Mobile menu overlay */
.sf-mobile-menu {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: var(--sf-bg);
  padding: 1.5rem 2rem;
  flex-direction: column;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.sf-mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.sf-mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.sf-mobile-menu__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  color: var(--sf-text);
  border-radius: 50%;
  transition: background 0.15s ease;
}

.sf-mobile-menu__close:active {
  background: rgba(0,0,0,0.05);
}

.sf-mobile-menu__close svg {
  width: 24px;
  height: 24px;
  display: block;
}

.sf-mobile-menu__nav {
  padding: 0;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}

.sf-mobile-menu__nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 1rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--sf-text);
  text-decoration: none;
  border-radius: 12px;
  transition: background 0.15s ease, color 0.15s ease;
}

.sf-mobile-menu__nav a:active {
  background: rgba(0,0,0,0.04);
}

.sf-mobile-menu__nav a.is-active {
  color: var(--sf-orange);
  background: rgba(232,135,37,0.08);
}

.sf-mobile-menu__cta {
  display: block;
  text-align: center;
  padding: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  background: var(--sf-orange);
  color: #fff !important;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 14px;
  min-height: 52px;
  transition: background 0.18s ease, transform 0.12s ease;
}

.sf-mobile-menu__cta:active {
  background: var(--sf-orange-hover);
  transform: scale(0.98);
}

@media (max-width: 768px) {
  .sf-nav,
  .sf-header__cta {
    display: none;
  }

  .sf-header__actions {
    gap: 0.25rem;
  }

  .sf-header__mobile-toggle {
    display: block;
  }

  .sf-header__inner {
    height: 60px;
  }
}

/* Inter — global font (var(--gh-font-*) enables Ghost custom font support) */
body,
input,
button,
select,
textarea {
  font-family: var(--gh-font-body, 'Inter'), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--gh-font-heading, 'Inter'), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Push body content below fixed header */
body {
  padding-top: 72px;
}

@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }
}

/* Hide Liebling's original header */
.m-header {
  display: none !important;
}

/* ============================================
   FOOTER — 3-Column Professional Footer
   ============================================ */

/* Hide Liebling's original footer */
footer.m-footer {
  display: none !important;
}

.sf-footer {
  background: var(--sf-dark);
  color: #ccc;
  padding: 4rem 0 0;
}

.sf-footer__brand {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sf-footer__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.sf-footer__logo-icon {
  height: 32px;
  width: auto;
}

.sf-footer__logo-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.sf-footer__logo-sales {
  font-weight: 700;
  color: #fff;
}
.sf-footer__logo-fuchs {
  font-weight: 800;
  background: linear-gradient(135deg, #ffb347 0%, #ff8400 50%, #e06000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sf-footer__tagline {
  font-size: 0.9rem;
  color: #777;
  margin: 0;
}

.sf-footer a {
  color: #ccc;
  text-decoration: none;
  transition: color var(--sf-transition);
}

.sf-footer a:hover {
  color: #fff;
}

.sf-footer__inner {
  max-width: var(--sf-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sf-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sf-footer__heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1.25rem;
}

.sf-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sf-footer__links li {
  margin-bottom: 0.6rem;
}

.sf-footer__links li a {
  font-size: 0.95rem;
}

.sf-footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.sf-footer__contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
}

.sf-footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.sf-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background var(--sf-transition);
}

.sf-footer__social a:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.sf-footer__social img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(0.8);
  transition: filter var(--sf-transition);
}

.sf-footer__social a:hover img {
  filter: brightness(0) invert(1);
}

.sf-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-size: 0.85rem;
  color: #777;
}

.sf-footer__bottom a {
  color: #777;
}

.sf-footer__bottom a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .sf-footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sf-footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* ============================================
   BUTTONS — Shared Button Styles
   ============================================ */

.sf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--sf-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
  min-height: 44px;
  outline: none;
}

.sf-btn:focus-visible {
  outline: 2px solid var(--sf-orange);
  outline-offset: 2px;
}

.sf-btn--primary {
  background: linear-gradient(145deg, #ffbe5c 0%, #ff8c00 55%, #e86800 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(255, 132, 0, 0.35), 0 1px 4px rgba(0,0,0,0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.sf-btn--primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 32px rgba(255, 132, 0, 0.52), 0 4px 10px rgba(0,0,0,0.12);
  filter: brightness(1.06);
}

.sf-btn--primary:active {
  transform: translateY(0) scale(1);
  box-shadow: 0 2px 8px rgba(255, 132, 0, 0.25);
  transition-duration: 0.1s;
}

.sf-btn--primary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--sf-orange);
}

.sf-btn--outline {
  background: transparent;
  color: var(--sf-dark);
  border-color: var(--sf-dark);
}

.sf-btn--outline img {
  filter: brightness(0);
  transition: filter 0.1s ease;
}

.sf-btn--outline:hover {
  background: var(--sf-dark);
  color: #fff;
}

.sf-btn--outline:hover img {
  filter: brightness(0) invert(1);
}

.sf-btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.sf-btn--outline-white:hover {
  background: #fff;
  color: var(--sf-dark);
}

.sf-btn--large {
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
}

/* ============================================
   HOMEPAGE — Hero Section
   ============================================ */

.sf-hero {
  position: relative;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  overflow: hidden;
}
.sf-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 0;
}
.sf-hero__bg.is-loaded { opacity: 1; }
.sf-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.88) 0%, rgba(240,240,238,0.82) 100%);
  z-index: 1;
}
.sf-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 940px;
  margin: 0 auto;
}

.sf-hero__title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--sf-dark);
  line-height: 1.25;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

.sf-hero__title .sf-hero__statement {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 0.25rem;
  background-image: linear-gradient(90deg,
    #06060e 0%,
    #1a1a2e var(--sf-title-x, 22%),
    #c95400 calc(var(--sf-title-x, 22%) + 32%),
    #e87200 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sf-hero__subtitle {
  font-size: 1.25rem;
  color: var(--sf-text-light);
  line-height: 1.6;
  margin: 0 0 2rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.sf-hero__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}


.sf-hero__trust {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--sf-text-muted);
  font-weight: 600;
}

.sf-hero__trust span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sf-hero__trust svg {
  width: 16px;
  height: 16px;
  fill: #111111;
}

@media (max-width: 768px) {
  .sf-hero {
    padding: 3.5rem 1.25rem 2.5rem;
  }

  .sf-hero__title {
    font-size: 1.4rem;
  }

  .sf-hero__title .sf-hero__statement {
    font-size: 1.2rem;
    margin-top: 0.5rem;
  }

  .sf-hero__subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 1rem;
  }

  .sf-hero__trust {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}

/* ============================================
   HOMEPAGE — Services Section
   ============================================ */

.sf-section {
  padding: 4rem 1.5rem;
}

.sf-section--alt {
  background: var(--sf-bg-alt);
  border-top: 1px solid var(--sf-border);
  border-bottom: 1px solid var(--sf-border);
}

.sf-section--warm {
  background: linear-gradient(180deg, #fff9f4 0%, #fff 100%);
  border-top: 1px solid rgba(255, 132, 0, 0.12);
  border-bottom: 1px solid rgba(255, 132, 0, 0.12);
}

.sf-section--dark {
  background: linear-gradient(135deg, var(--sf-dark) 0%, var(--sf-dark-light) 100%);
  border-top: none;
  border-bottom: none;
}

.sf-section--dark .sf-testimonial__quote {
  color: rgba(255,255,255,0.92);
}

.sf-section--dark .sf-testimonial__author {
  color: #fff;
}

.sf-section--dark .sf-testimonial__role {
  color: rgba(255,255,255,0.55);
}

.sf-section__inner {
  max-width: var(--sf-max-width);
  margin: 0 auto;
  width: 100%;
}

.sf-section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.sf-section__title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--sf-dark);
  margin: 0 0 0.75rem;
  text-align: center;
  text-wrap: balance;
  background-image: linear-gradient(90deg,
    #06060e 0%,
    #1a1a2e var(--sf-title-x, 22%),
    #c95400 calc(var(--sf-title-x, 22%) + 32%),
    #e87200 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sf-section__subtitle {
  font-size: 1.1rem;
  color: var(--sf-text-light);
  line-height: 1.6;
  margin: 0 auto;
  max-width: none;
  text-align: center;
}

/* Mobile-only line break — hidden on desktop */
.sf-br-mobile {
  display: none;
}

@media (max-width: 768px) {
  .sf-br-mobile {
    display: inline;
  }
}

.sf-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sf-gap);
}

.sf-service-card {
  background: var(--sf-bg);
  border: 1px solid var(--sf-border);
  border-top: 3px solid var(--sf-orange);
  border-radius: var(--sf-radius-lg);
  padding: 2rem;
  transition: box-shadow var(--sf-transition), transform var(--sf-transition);
}

.sf-service-card:hover {
  box-shadow: 0 8px 32px rgba(255, 132, 0, 0.12), var(--sf-shadow-lg);
  transform: translateY(-3px);
}

.sf-service-card__num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--sf-orange);
  opacity: 0.6;
  line-height: 1;
  margin-bottom: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.sf-service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sf-orange-light);
  border-radius: var(--sf-radius);
  margin-bottom: 1.25rem;
}

.sf-service-card__icon svg {
  width: 24px;
  height: 24px;
  fill: var(--sf-orange);
}

.sf-service-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sf-dark);
  margin: 0 0 0.75rem;
}

.sf-service-card__text {
  font-size: 0.95rem;
  color: var(--sf-text-light);
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.sf-service-card__link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sf-orange);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: opacity var(--sf-transition);
}

.sf-service-card__link:hover {
  gap: 0.6rem;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .sf-services-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   HOMEPAGE — Social Proof / Metrics
   ============================================ */

.sf-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sf-gap);
}

.sf-metric-card {
  background: var(--sf-bg);
  border: 1px solid var(--sf-border);
  border-top: 3px solid var(--sf-orange);
  border-radius: var(--sf-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow var(--sf-transition), transform var(--sf-transition);
}

.sf-metric-card:hover {
  box-shadow: var(--sf-shadow-md);
  transform: translateY(-2px);
}

.sf-metric-card__number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--sf-orange);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.sf-metric-card__label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--sf-dark);
  margin-bottom: 0.3rem;
}

.sf-metric-card__source {
  font-size: 0.85rem;
  color: var(--sf-text-muted);
}

@media (max-width: 768px) {
  .sf-metrics-grid {
    grid-template-columns: 1fr;
  }

  .sf-metric-card__number {
    font-size: 2rem;
  }
}

/* ============================================
   HOMEPAGE — Case Study Snippets
   ============================================ */

.sf-case-snippets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sf-gap);
  margin-top: 2rem;
}

.sf-case-snippet {
  background: var(--sf-bg);
  border: 1px solid var(--sf-border);
  border-top: 3px solid var(--sf-orange);
  border-radius: var(--sf-radius);
  padding: 1.5rem;
}

.sf-case-snippet__client {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sf-orange);
  margin-bottom: 0.5rem;
}

.sf-case-snippet__text {
  font-size: 0.95rem;
  color: var(--sf-text);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.sf-case-snippet__link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sf-dark);
  text-decoration: none;
  transition: color var(--sf-transition);
}

.sf-case-snippet__link:hover {
  color: var(--sf-orange);
}

@media (max-width: 768px) {
  .sf-case-snippets {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   HOMEPAGE — Root Cause Cards
   ============================================ */

.sf-root-causes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sf-gap);
}

.sf-root-cause-card {
  background: var(--sf-bg);
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius-lg);
  padding: 2rem 1.75rem;
  transition: box-shadow var(--sf-transition), transform var(--sf-transition);
}

.sf-root-cause-card:hover {
  box-shadow: var(--sf-shadow-md);
  transform: translateY(-2px);
}

.sf-root-cause-card__icon {
  width: 44px;
  height: 44px;
  background: var(--sf-orange-light);
  border-radius: var(--sf-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--sf-orange);
}

.sf-root-cause-card__icon svg {
  width: 22px;
  height: 22px;
}

.sf-root-cause-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sf-dark);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.sf-root-cause-card__text {
  font-size: 0.95rem;
  color: var(--sf-text-light);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .sf-root-causes {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   HOMEPAGE — Outcome List
   ============================================ */

.sf-outcomes {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 540px;
  margin: 0 auto;
}

.sf-outcome-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  font-size: 1.05rem;
  color: var(--sf-text);
  line-height: 1.5;
}

.sf-outcome-item__check {
  width: 1.4rem;
  height: 1.4rem;
  min-width: 1.4rem;
  color: var(--sf-orange);
  margin-top: 0.15rem;
}

.sf-outcomes__cta {
  text-align: center;
  margin-top: 2rem;
}

/* ============================================
   HOMEPAGE — Testimonial
   ============================================ */

.sf-testimonial {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.sf-testimonial__quote {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--sf-text);
  font-style: italic;
  margin: 0 0 1.5rem;
  position: relative;
  text-wrap: balance;
}

.sf-testimonial__quote::before {
  content: "\201C";
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
  font-style: normal;
}

.sf-testimonial__author {
  font-weight: 700;
  color: var(--sf-dark);
}

.sf-testimonial__role {
  font-size: 0.9rem;
  color: var(--sf-text-muted);
  margin-top: 0.25rem;
}

/* ============================================
   HOMEPAGE — About Teaser
   ============================================ */

.sf-about {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
}

.sf-about__image-wrap {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 6px #fff, 0 0 0 9px var(--sf-orange), 0 12px 32px rgba(0,0,0,0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sf-about__image-wrap:hover {
  transform: scale(1.03);
  box-shadow: 0 0 0 6px #fff, 0 0 0 9px var(--sf-orange), 0 16px 40px rgba(0,0,0,0.20);
}

.sf-about__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 0 !important;
}

.sf-about__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sf-dark);
  margin: 0 0 1rem;
}

.sf-about__content p {
  font-size: 1rem;
  color: var(--sf-text-light);
  line-height: 1.7;
  margin: 0 0 1rem;
  max-width: 68ch;
}

.sf-about__inline-link {
  color: var(--sf-orange);
  text-decoration: none;
  white-space: nowrap;
}

.sf-about__inline-link:hover {
  text-decoration: underline;
}

.sf-about__badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.sf-about__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: var(--sf-bg-alt);
  border: 1px solid var(--sf-border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sf-text);
}

.sf-about__link {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111111;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.sf-about__link:hover {
  gap: 0.6rem;
}

@media (max-width: 768px) {
  .sf-about {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .sf-about__image-wrap {
    margin: 0 auto;
    width: 180px;
    height: 180px;
  }

  .sf-about__badges {
    justify-content: center;
  }
}

/* ============================================
   HOMEPAGE — Blog Teaser
   ============================================ */

.sf-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sf-gap);
}

.sf-blog-card {
  background: var(--sf-bg);
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius-lg);
  overflow: hidden;
  transition: box-shadow var(--sf-transition), transform var(--sf-transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.sf-blog-card:hover {
  box-shadow: var(--sf-shadow-lg);
  transform: translateY(-2px);
}

.sf-blog-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.sf-blog-card__content {
  padding: 1.25rem;
}

.sf-blog-card__tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sf-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.sf-blog-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sf-dark);
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.sf-blog-card__meta {
  font-size: 0.85rem;
  color: var(--sf-text-muted);
}

.sf-blog-more {
  text-align: center;
  margin-top: 2rem;
}

.sf-blog-more a {
  font-size: 1rem;
  font-weight: 700;
  color: #111111;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.sf-blog-more a:hover {
  gap: 0.6rem;
}

@media (max-width: 768px) {
  .sf-blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   HOMEPAGE — CTA Banner
   ============================================ */

.sf-cta-banner {
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, var(--sf-dark) 0%, var(--sf-dark-light) 100%);
  text-align: center;
}

.sf-cta-banner__inner {
  max-width: 700px;
  margin: 0 auto;
}

.sf-cta-banner__title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 1rem;
}

.sf-cta-banner__text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 2rem;
}

.sf-cta-banner .sf-btn--primary {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

/* ============================================
   PAGE TEMPLATES — Leistungen (Services)
   ============================================ */

.sf-page-hero {
  position: relative;
  padding: 4rem 1.5rem 4rem;
  text-align: center;
  background: var(--sf-bg-alt);
  overflow: hidden;
}
.sf-page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 0;
}
.sf-page-hero__bg.is-loaded { opacity: 1; }
.sf-page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(248,249,250,0.93) 0%, rgba(255,255,255,0.90) 100%);
  z-index: 1;
}
.sf-page-hero > .sf-container {
  position: relative;
  z-index: 2;
}

.sf-page-hero__title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--sf-dark);
  margin: 0 0 0.75rem;
}

.sf-page-hero__subtitle {
  font-size: 1.15rem;
  color: var(--sf-text-light);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.6;
}

.sf-service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--sf-border);
}

.sf-service-detail:last-child {
  border-bottom: none;
}

.sf-service-detail.reversed {
  direction: rtl;
}

.sf-service-detail.reversed > * {
  direction: ltr;
}

.sf-service-detail__content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sf-dark);
  margin: 0 0 1rem;
}

.sf-service-detail__content p {
  font-size: 1rem;
  color: var(--sf-text-light);
  line-height: 1.7;
  margin: 0 0 1rem;
}

.sf-service-detail__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.sf-service-detail__addon {
  font-size: 0.9rem;
  color: var(--sf-text-light);
  border-left: 3px solid var(--sf-accent);
  padding-left: 0.75rem;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.sf-service-detail__list li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--sf-text);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.sf-service-detail__list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #111111;
  flex-shrink: 0;
  margin-top: 0.5em;
}

.sf-service-detail__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  background: var(--sf-bg-alt);
  border-radius: var(--sf-radius-lg);
}

.sf-service-detail__visual svg {
  width: 120px;
  height: 120px;
  fill: #111111;
  opacity: 0.15;
}

.sf-service-detail__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--sf-radius-lg);
}

.sf-service-detail__figure {
  margin: 0;
  width: 100%;
}
.sf-service-detail__figure .sf-service-detail__visual {
  overflow: hidden;
  background: none;
}
.sf-service-detail__caption {
  font-size: 0.78rem;
  color: var(--sf-text-muted);
  text-align: center;
  padding: 0.5rem 0.25rem 0;
  font-style: italic;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .sf-service-detail {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .sf-service-detail.reversed {
    direction: ltr;
  }

  .sf-service-detail__visual {
    min-height: 150px;
  }

  .sf-page-hero__title {
    font-size: 2rem;
  }
}

/* FAQ Section */
.sf-faq {
  max-width: 700px;
  margin: 0 auto;
}

.sf-faq__item {
  border-bottom: 1px solid var(--sf-border);
  padding: 1.25rem 0;
}

.sf-faq__question {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sf-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0;
}

.sf-faq__question::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--sf-text-muted);
  flex-shrink: 0;
  transition: transform var(--sf-transition);
}

.sf-faq__item.is-open .sf-faq__question::after {
  transform: rotate(45deg);
}

.sf-faq__answer {
  display: none;
  padding-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--sf-text-light);
  line-height: 1.7;
}

.sf-faq__item.is-open .sf-faq__answer {
  display: block;
}

/* ============================================
   PAGE TEMPLATES — Referenzen (References)
   ============================================ */

.sf-ref-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sf-gap);
}

.sf-ref-card {
  background: var(--sf-bg);
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius-lg);
  padding: 2rem;
  transition: box-shadow var(--sf-transition);
}

.sf-ref-card:hover {
  box-shadow: var(--sf-shadow-md);
}

.sf-ref-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.sf-ref-card__company {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sf-dark);
}

.sf-ref-card__industry {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sf-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sf-ref-card__challenge {
  font-size: 0.95rem;
  color: var(--sf-text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.sf-ref-card__result {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--sf-bg-alt);
  border-radius: var(--sf-radius);
  margin-bottom: 1rem;
}

.sf-ref-card__result-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111111;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.sf-ref-card__result-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sf-dark);
}

.sf-ref-card__tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sf-ref-card__tech span {
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  background: var(--sf-bg-alt);
  border-radius: 999px;
  color: var(--sf-text-muted);
  font-weight: 600;
}

.sf-section--logos {
  padding: 1.25rem 0 1.5rem;
  border-bottom: 1px solid var(--sf-border);
}

.sf-logos__label {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sf-text-light);
  margin-bottom: 1rem;
}

.sf-client-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: nowrap;
  padding: 0.5rem 1rem;
  overflow: hidden;
}

.sf-client-logos__img {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.sf-client-logos__img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@media (max-width: 768px) {
  .sf-client-logos {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .sf-client-logos__img {
    height: 22px;
  }
}

@media (max-width: 768px) {
  .sf-ref-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PAGE TEMPLATES — Kontakt (Contact)
   ============================================ */

/* Booking CTA — centered hero-like block */
.sf-contact-booking {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: var(--sf-bg-alt);
  border-radius: var(--sf-radius-lg);
  border: 1px solid var(--sf-border);
}

.sf-contact-booking__icon {
  color: #111111;
  margin-bottom: 1.5rem;
}

.sf-contact-booking__icon svg {
  width: 48px;
  height: 48px;
}

.sf-contact-booking__title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--sf-dark);
  margin: 0 0 0.75rem;
}

.sf-contact-booking__desc {
  font-size: 1.05rem;
  color: var(--sf-text-light);
  line-height: 1.7;
  margin: 0 0 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.sf-contact-booking__note {
  font-size: 0.85rem;
  color: var(--sf-text-muted);
  margin: 1.25rem 0 0;
}

/* Grid: steps + contact info */
.sf-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Steps */
.sf-contact-expect h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sf-dark);
  margin: 0 0 1.5rem;
}

.sf-contact-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sf-contact-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.sf-contact-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: #111111;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.sf-contact-step strong {
  display: block;
  font-size: 1.05rem;
  color: var(--sf-dark);
  margin-bottom: 0.25rem;
}

.sf-contact-step p {
  font-size: 0.95rem;
  color: var(--sf-text-light);
  line-height: 1.6;
  margin: 0;
}

/* Contact info card */
.sf-contact-info {
  background: var(--sf-bg-alt);
  border-radius: var(--sf-radius-lg);
  border: 1px solid var(--sf-border);
  padding: 2rem;
}

.sf-contact-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sf-dark);
  margin: 0 0 0.5rem;
}

.sf-contact-info > p {
  font-size: 0.95rem;
  color: var(--sf-text-light);
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.sf-contact-info__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--sf-text);
}

.sf-contact-info__item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: #111111;
}

.sf-contact-info__item a {
  color: var(--sf-text);
  text-decoration: none;
}

.sf-contact-info__item a:hover {
  color: #111111;
  text-decoration: underline;
}

.sf-contact-info__response {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--sf-border);
  font-size: 0.85rem;
  color: var(--sf-text-muted);
}

.sf-contact-info__response svg {
  fill: #111111;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .sf-contact-booking {
    padding: 2rem 1.5rem;
  }

  .sf-contact-booking__title {
    font-size: 1.4rem;
  }

  .sf-contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   POST TEMPLATE — Article layout
   ============================================ */

.sf-post-header {
  padding: 2.5rem 0 1rem;
  text-align: center;
}

.sf-post-header__inner {
  max-width: 800px;
  margin: 0 auto;
}

.sf-post-header__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--sf-text-muted);
  margin-top: 1.25rem;
}

.sf-post-header__sep {
  color: #999;
}

/* Updated date: single-line "Aktualisiert am..." when edited >60 days after publish */
.sf-post-date--updated {
  font-weight: 500;
}

.sf-post-header__title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--sf-dark);
  line-height: 1.2;
  margin: 0 0 1rem;
  text-wrap: balance;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.sf-post-header__excerpt {
  font-size: 1.1rem;
  color: var(--sf-text-light);
  line-height: 1.7;
  margin: 0 auto;
  max-width: 860px;
  text-wrap: balance;
}

/* Feature image */
.sf-post-feature {
  margin-bottom: 2.5rem;
}

.sf-post-feature__figure {
  margin: 0;
}

.sf-post-feature__image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--sf-radius-lg);
}

.sf-post-feature__caption {
  font-size: 0.8rem;
  color: var(--sf-text-muted);
  text-align: center;
  margin-top: 0.75rem;
}

/* Article body */
.sf-post-content {
  padding-bottom: 2rem;
}

.sf-post-content__body {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #1a1a1a;
}

.sf-post-content__body h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sf-dark);
  margin: 2.5rem 0 1rem;
}

.sf-post-content__body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sf-dark);
  margin: 2rem 0 0.75rem;
}

.sf-post-content__body p {
  margin: 0 0 1.5rem;
}

.sf-post-content__body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--sf-radius);
  margin: 1.5rem 0;
}

.sf-post-content__body a {
  color: var(--sf-orange);
  text-decoration: underline;
  text-decoration-color: rgba(255, 132, 0, 0.4);
  text-underline-offset: 2px;
  transition: color var(--sf-transition), text-decoration-color var(--sf-transition);
}

.sf-post-content__body a:hover {
  color: var(--sf-orange-hover);
  text-decoration-color: var(--sf-orange-hover);
}

.sf-post-content__body blockquote {
  border-left: 3px solid #111111;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--sf-text-light);
}

.sf-post-content__body ul,
.sf-post-content__body ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

.sf-post-content__body li {
  margin-bottom: 0.5rem;
}

.sf-post-content__body code {
  background: var(--sf-bg-alt);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.sf-pre-wrap {
  position: relative;
  margin: 1.5rem 0;
}

.sf-post-content__body pre {
  background: var(--sf-dark);
  color: #e5e7eb;
  padding: 1.5rem 1.5rem 1.5rem 1.5rem;
  padding-top: 2.75rem;
  border-radius: var(--sf-radius);
  overflow-x: hidden;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

.sf-post-content__body pre code {
  background: none;
  padding: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Copy button */
.sf-copy-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 5px;
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  line-height: 1;
}

.sf-copy-btn:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.sf-copy-btn--copied {
  color: #4ade80;
  border-color: rgba(74,222,128,0.3);
}

/* Tables */
.sf-post-content__body table,
.sf-page-content__body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0 2rem;
  font-size: 0.92rem;
  line-height: 1.5;
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius-lg);
  overflow: hidden;
}

.sf-post-content__body thead,
.sf-page-content__body thead {
  background: var(--sf-dark);
  color: #fff;
}

.sf-post-content__body thead th,
.sf-page-content__body thead th {
  padding: 0.85rem 1.15rem;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.sf-post-content__body tbody tr,
.sf-page-content__body tbody tr {
  transition: background var(--sf-transition);
}

.sf-post-content__body tbody tr:nth-child(even),
.sf-page-content__body tbody tr:nth-child(even) {
  background: var(--sf-bg-alt);
}

.sf-post-content__body tbody tr:hover,
.sf-page-content__body tbody tr:hover {
  background: rgba(255, 132, 0, 0.08);
}

.sf-post-content__body td,
.sf-page-content__body td {
  padding: 0.75rem 1.15rem;
  border-bottom: 1px solid var(--sf-border);
  color: var(--sf-text);
  vertical-align: top;
}

.sf-post-content__body tbody tr:last-child td,
.sf-page-content__body tbody tr:last-child td {
  border-bottom: none;
}

.sf-post-content__body td:first-child,
.sf-page-content__body td:first-child {
  font-weight: 600;
  color: var(--sf-dark);
}

/* Mobile: horizontal scroll for wide tables */
@media (max-width: 600px) {
  .sf-post-content__body table,
  .sf-page-content__body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sf-post-content__body thead th,
  .sf-page-content__body thead th,
  .sf-post-content__body td,
  .sf-page-content__body td {
    padding: 0.65rem 0.85rem;
    white-space: nowrap;
  }
}

/* Horizontal Rules */
.sf-post-content__body hr,
.sf-page-content__body hr {
  border: none;
  border-top: 1px solid var(--sf-border);
  margin: 2.5rem auto;
  position: relative;
  max-width: 100%;
}

.sf-post-content__body hr::after,
.sf-page-content__body hr::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111111;
  box-shadow: 0 0 0 6px var(--sf-bg);
}

/* Headings h4–h6 */
.sf-post-content__body h4,
.sf-page-content__body h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sf-dark);
  margin: 1.75rem 0 0.6rem;
}

.sf-post-content__body h5,
.sf-page-content__body h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sf-dark);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 1.5rem 0 0.5rem;
}

.sf-post-content__body h6,
.sf-page-content__body h6 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sf-text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 1.5rem 0 0.5rem;
}

/* Highlighted text (<mark>) */
.sf-post-content__body mark,
.sf-page-content__body mark {
  background: rgba(255, 132, 0, 0.15);
  color: inherit;
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

/* Figures & Captions */
.sf-post-content__body figure,
.sf-page-content__body figure {
  margin: 2rem 0;
  padding: 0;
}

.sf-post-content__body figcaption,
.sf-page-content__body figcaption {
  font-size: 0.8rem;
  color: var(--sf-text-muted);
  text-align: center;
  margin-top: 0.6rem;
  line-height: 1.5;
}

/* Image Card — wide & full width breakouts */
.sf-post-content__body .kg-image-card,
.sf-page-content__body .kg-image-card {
  margin: 2rem 0;
}

.sf-post-content__body .kg-image-card img,
.sf-page-content__body .kg-image-card img {
  border-radius: var(--sf-radius);
  margin: 0;
}

.sf-post-content__body .kg-width-wide,
.sf-page-content__body .kg-width-wide {
  margin-left: calc(-120px + 50%);
  margin-right: calc(-120px + 50%);
  width: calc(100% + 240px);
  max-width: 960px;
}

.sf-post-content__body .kg-width-full,
.sf-page-content__body .kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: none;
}

.sf-post-content__body .kg-width-full img,
.sf-page-content__body .kg-width-full img {
  border-radius: 0;
  width: 100%;
}

@media (max-width: 960px) {
  .sf-post-content__body .kg-width-wide,
  .sf-page-content__body .kg-width-wide {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    width: calc(100% + 3rem);
  }
}

/* Callout Card */
.sf-post-content__body .kg-callout-card,
.sf-page-content__body .kg-callout-card {
  display: flex;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: var(--sf-radius-lg);
  border: 1px solid var(--sf-border);
}

.sf-post-content__body .kg-callout-card-grey,
.sf-page-content__body .kg-callout-card-grey {
  background: var(--sf-bg-alt);
  border-color: var(--sf-border);
}

.sf-post-content__body .kg-callout-card-white,
.sf-page-content__body .kg-callout-card-white {
  background: var(--sf-bg);
  border-color: var(--sf-border);
}

.sf-post-content__body .kg-callout-card-blue,
.sf-page-content__body .kg-callout-card-blue {
  background: #eef4ff;
  border-color: #c5d9f8;
}

.sf-post-content__body .kg-callout-card-green,
.sf-page-content__body .kg-callout-card-green {
  background: #eefbf3;
  border-color: #b8e6ca;
}

.sf-post-content__body .kg-callout-card-yellow,
.sf-page-content__body .kg-callout-card-yellow {
  background: #fefbe8;
  border-color: #f2e4a0;
}

.sf-post-content__body .kg-callout-card-red,
.sf-page-content__body .kg-callout-card-red {
  background: #fef2f2;
  border-color: #f5c5c5;
}

.sf-post-content__body .kg-callout-card-pink,
.sf-page-content__body .kg-callout-card-pink {
  background: #fef2f8;
  border-color: #f5c5df;
}

.sf-post-content__body .kg-callout-card-purple,
.sf-page-content__body .kg-callout-card-purple {
  background: #f5f0ff;
  border-color: #d5c5f5;
}

.sf-post-content__body .kg-callout-card-accent,
.sf-page-content__body .kg-callout-card-accent {
  background: var(--sf-orange-light);
  border-color: rgba(255, 132, 0, 0.25);
}

.sf-post-content__body .kg-callout-emoji,
.sf-page-content__body .kg-callout-emoji {
  font-size: 1.3rem;
  line-height: 1;
  padding-right: 1rem;
  flex-shrink: 0;
}

.sf-post-content__body .kg-callout-text,
.sf-page-content__body .kg-callout-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--sf-text);
}

.sf-post-content__body .kg-callout-text a,
.sf-page-content__body .kg-callout-text a {
  color: var(--sf-orange);
  text-decoration: underline;
}

/* File Card */
.sf-post-content__body .kg-file-card,
.sf-page-content__body .kg-file-card {
  margin: 1.5rem 0;
}

.sf-post-content__body .kg-file-card-container,
.sf-page-content__body .kg-file-card-container {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius-lg);
  background: var(--sf-bg);
  transition: box-shadow var(--sf-transition), transform var(--sf-transition);
}

.sf-post-content__body .kg-file-card-container:hover,
.sf-page-content__body .kg-file-card-container:hover {
  box-shadow: var(--sf-shadow-md);
  transform: translateY(-1px);
}

.sf-post-content__body .kg-file-card-title,
.sf-page-content__body .kg-file-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sf-dark);
}

.sf-post-content__body .kg-file-card-caption,
.sf-page-content__body .kg-file-card-caption {
  font-size: 0.8rem;
  color: var(--sf-text-muted);
}

.sf-post-content__body .kg-file-card-metadata,
.sf-page-content__body .kg-file-card-metadata {
  font-size: 0.75rem;
  color: var(--sf-text-muted);
}

.sf-post-content__body .kg-file-card-icon,
.sf-page-content__body .kg-file-card-icon {
  color: #111111;
}

/* Toggle / Accordion Card — must beat Ghost's cards.min.css (loaded after custom.css) */
.gh-content .kg-toggle-card.kg-toggle-card,
.sf-post-content__body .kg-toggle-card.kg-toggle-card,
.sf-page-content__body .kg-toggle-card.kg-toggle-card {
  margin: 0.75rem 0 !important;
  background: var(--sf-bg-alt) !important;
  border: none !important;
  border-left: 3px solid transparent !important;
  border-radius: var(--sf-radius) !important;
  padding: 0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}

.sf-post-content__body .kg-toggle-card:hover,
.sf-page-content__body .kg-toggle-card:hover {
  border-left-color: var(--sf-orange) !important;
  box-shadow: 0 2px 8px rgba(255, 132, 0, 0.08) !important;
  transform: translateX(2px);
}

.gh-content .kg-toggle-heading.kg-toggle-heading,
.sf-post-content__body .kg-toggle-heading.kg-toggle-heading,
.sf-page-content__body .kg-toggle-heading.kg-toggle-heading {
  padding: 1.35rem 1rem 0.1rem !important;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between;
  min-height: 0 !important;
  gap: 0.5rem !important;
}

.gh-content .kg-toggle-card h4.kg-toggle-heading-text,
.sf-post-content__body .kg-toggle-card h4.kg-toggle-heading-text,
.sf-page-content__body .kg-toggle-card h4.kg-toggle-heading-text {
  font-size: 0.95rem !important;
  font-weight: 600;
  color: var(--sf-dark);
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
  text-align: left;
}

.gh-content .kg-toggle-card-icon.kg-toggle-card-icon,
.sf-post-content__body .kg-toggle-card-icon.kg-toggle-card-icon,
.sf-page-content__body .kg-toggle-card-icon.kg-toggle-card-icon {
  color: var(--sf-text-muted);
  flex-shrink: 0;
  align-self: center !important;
  margin: 0 !important;
  height: auto !important;
  transition: transform var(--sf-transition), color var(--sf-transition);
}

.sf-post-content__body .kg-toggle-card:hover .kg-toggle-card-icon,
.sf-page-content__body .kg-toggle-card:hover .kg-toggle-card-icon {
  color: var(--sf-orange);
}

.sf-post-content__body .kg-toggle-content,
.sf-page-content__body .kg-toggle-content {
  padding: 0 1.25rem 1.1rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--sf-text-light);
}

/* Video Card */
.sf-post-content__body .kg-video-card,
.sf-page-content__body .kg-video-card {
  margin: 2rem 0;
  border-radius: var(--sf-radius-lg);
  overflow: hidden;
}

/* Audio Card */
.sf-post-content__body .kg-audio-card,
.sf-page-content__body .kg-audio-card {
  margin: 1.5rem 0;
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius-lg);
}

.sf-post-content__body .kg-audio-card .kg-audio-play-icon svg,
.sf-post-content__body .kg-audio-card .kg-audio-pause-icon svg,
.sf-page-content__body .kg-audio-card .kg-audio-play-icon svg,
.sf-page-content__body .kg-audio-card .kg-audio-pause-icon svg {
  fill: #111111;
}

.sf-post-content__body .kg-audio-card .kg-audio-seek-slider::before,
.sf-page-content__body .kg-audio-card .kg-audio-seek-slider::before {
  background-color: #111111;
}

/* Embed Card (YouTube, Twitter, etc.) */
.sf-post-content__body .kg-embed-card,
.sf-page-content__body .kg-embed-card {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sf-post-content__body .kg-embed-card iframe,
.sf-page-content__body .kg-embed-card iframe {
  border-radius: var(--sf-radius);
}

.sf-post-content__body .kg-embed-card figcaption,
.sf-page-content__body .kg-embed-card figcaption {
  margin-top: 0.75rem;
}

/* Product Card */
.sf-post-content__body .kg-product-card,
.sf-page-content__body .kg-product-card {
  margin: 2rem 0;
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius-lg);
  padding: 1.5rem;
}

.sf-post-content__body .kg-product-card .kg-product-card-title,
.sf-page-content__body .kg-product-card .kg-product-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sf-dark);
  padding-top: 0;
}

.sf-post-content__body .kg-product-card .kg-product-card-description,
.sf-page-content__body .kg-product-card .kg-product-card-description {
  font-size: 0.95rem;
  color: var(--sf-text-light);
  line-height: 1.6;
}

.sf-post-content__body .kg-product-card .kg-product-card-button,
.sf-page-content__body .kg-product-card .kg-product-card-button {
  background: #111111 !important;
  color: #fff !important;
  border-radius: var(--sf-radius) !important;
  font-weight: 700;
}

/* Header Card */
.sf-post-content__body .kg-header-card,
.sf-page-content__body .kg-header-card {
  margin: 2rem 0;
  border-radius: var(--sf-radius-lg);
}

.sf-post-content__body .kg-header-card .kg-header-card-button,
.sf-page-content__body .kg-header-card .kg-header-card-button {
  font-weight: 700;
  border-radius: var(--sf-radius) !important;
}

/* Tags + Share row wrapper (now outside article, after CTA) */
.sf-post-meta-wrap {
  padding: 0;
}

/* Tags + Share row */
.sf-post-meta-row {
  max-width: 720px;
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--sf-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Tags */
.sf-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sf-post-tags__item {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--sf-text-light);
  background: var(--sf-bg-alt);
  text-decoration: none;
  transition: all var(--sf-transition);
}

.sf-post-tags__item:hover {
  color: #111111;
  background: var(--sf-border);
}

/* Share */
.sf-post-share {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sf-post-share__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sf-text-muted);
}

.sf-post-share__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sf-bg-alt);
  color: var(--sf-text-light);
  border: none;
  cursor: pointer;
  transition: all var(--sf-transition);
  position: relative;
}

.sf-post-share__link:hover {
  background: var(--sf-border);
  color: #111111;
}

.sf-post-share__tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--sf-dark);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

.sf-post-share__copy.copied .sf-post-share__tooltip {
  display: block;
}

/* Post CTA banner */
.sf-post-cta-section {
  padding: 1.5rem 0 2rem;
}

.sf-post-cta-banner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--sf-radius-lg);
  background: var(--sf-dark);
  overflow: hidden;
}

.sf-post-cta-banner__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 10% 50%, rgba(255, 132, 0, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 90% 30%, rgba(255, 154, 31, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.sf-post-cta-banner__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 2.5rem;
  gap: 0.6rem;
}

.sf-post-cta-banner__icon {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 10px rgba(255, 132, 0, 0.4));
}

.sf-post-cta-banner__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}

.sf-post-cta-banner .sf-btn--primary {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #ffab40 0%, var(--sf-orange) 50%, #f07800 100%) !important;
  box-shadow: 0 2px 8px rgba(255, 132, 0, 0.3) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
}

.sf-post-cta-banner .sf-btn--primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(255, 132, 0, 0.45) !important;
  filter: brightness(1.06);
}

/* Author box */
.sf-post-author {
  padding: 2rem 0 3rem;
}

.sf-post-author__card {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 2.5rem;
  background: var(--sf-bg-alt);
  border-radius: var(--sf-radius-lg);
}

.sf-post-author__avatar-link {
  display: block;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 50%;
}

.sf-post-author__avatar-link:hover {
  transform: scale(1.03);
}

.sf-post-author__avatar-link:hover .sf-post-author__avatar {
  box-shadow: 0 0 0 6px #fff, 0 0 0 9px var(--sf-orange), 0 16px 40px rgba(0,0,0,0.20);
}

.sf-post-author__avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #fff, 0 0 0 8px var(--sf-orange), 0 8px 24px rgba(0,0,0,0.12);
  object-fit: cover;
  object-position: center 10%;
  transition: box-shadow 0.2s ease;
  display: block;
}

.sf-post-author__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sf-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.25rem;
}

.sf-post-author__name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sf-dark);
  margin: 0 0 0.5rem;
}

.sf-post-author__bio {
  font-size: 0.9rem;
  color: var(--sf-text-light);
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.sf-post-author__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
}

.sf-post-author__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sf-orange);
  background: rgba(255, 132, 0, 0.08);
  border: 1px solid rgba(255, 132, 0, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  letter-spacing: 0.01em;
}

.sf-post-author__links {
  display: flex;
  gap: 1rem;
}

.sf-post-author__links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: #111111;
  text-decoration: none;
}

.sf-post-author__links a:hover {
  text-decoration: underline;
}

/* Related posts */
.sf-post-related {
  padding: 3rem 0;
  background: var(--sf-bg-alt);
}

.sf-post-related__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sf-dark);
  margin: 0 0 1.5rem;
}

/* Comments */
.sf-post-comments {
  padding: 2rem 0 3rem;
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .sf-post-header {
    padding: 1.5rem 0 1rem;
  }

  .sf-post-header__title {
    font-size: 1.8rem;
  }

  .sf-post-cta-banner__inner {
    padding: 1.5rem 1.25rem;
  }

  .sf-post-cta-banner__title {
    font-size: 1.25rem;
  }

  .sf-post-author__card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .sf-post-author__badges {
    justify-content: center;
  }

  .sf-post-author__links {
    justify-content: center;
  }
}

/* ============================================
   HOMEPAGE — Qualify Section ("Richtig für Sie?")
   ============================================ */

.sf-qualify {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 860px;
  margin: 0 auto;
}

.sf-qualify__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--sf-bg);
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--sf-text);
}

.sf-qualify__check {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--sf-orange);
  margin-top: 0.1rem;
}

@media (max-width: 768px) {
  .sf-qualify {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   HOMEPAGE — Before/After ("Kennen Sie das?")
   ============================================ */

.sf-before-after {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.sf-before-after__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  background: var(--sf-bg);
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  padding: 1.25rem 1.75rem;
}

.sf-before-after__problem {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--sf-text-light);
  line-height: 1.4;
}

.sf-before-after__problem svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  color: #999;
  margin-top: 0.1rem;
}

.sf-before-after__arrow {
  font-size: 1.25rem;
  color: var(--sf-orange);
  font-weight: 700;
  padding: 0 0.25rem;
}

.sf-before-after__solution {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sf-text);
  line-height: 1.4;
}

.sf-before-after__solution svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  color: #111111;
  margin-top: 0.1rem;
}

@media (max-width: 768px) {
  .sf-before-after__row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .sf-before-after__arrow {
    display: none;
  }

  .sf-before-after__problem {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--sf-border);
  }
}

/* ============================================
   HOMEPAGE — Pain Points ("Kennen Sie das?")
   ============================================ */

.sf-pain-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

.sf-pain-point {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem;
  background: var(--sf-bg);
  border-radius: var(--sf-radius);
  border: 1px solid var(--sf-border);
}

.sf-pain-point__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--sf-orange);
}

.sf-pain-point__text {
  font-size: 0.95rem;
  color: var(--sf-text);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .sf-pain-points {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   HOMEPAGE — Process Section
   ============================================ */

.sf-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: process-step;
}

.sf-process__step {
  text-align: center;
  position: relative;
  counter-increment: process-step;
}

.sf-process__number {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: none;
  background: var(--sf-orange);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  flex-shrink: 0;
}

.sf-process__step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sf-dark);
  margin: 0 0 0.5rem;
}

.sf-process__time {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sf-text-muted);
  margin-top: 0.2rem;
}

.sf-process__step p {
  font-size: 0.9rem;
  color: var(--sf-text-light);
  line-height: 1.5;
  margin: 0;
}

.sf-process__note {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sf-text-light);
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  .sf-process {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ============================================
   KONTAKT — Calendly Embed
   ============================================ */

.sf-calendly-embed {
  min-height: 650px;
  border-radius: var(--sf-radius-lg);
  overflow: hidden;
}

.sf-calendly-embed iframe {
  width: 100%;
  min-height: 650px;
  border: none;
}

/* ============================================
   PAGE.HBS — Generic page layout
   ============================================ */

.sf-page-content {
  padding: 0 0 4rem;
}

.sf-page-content__body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--sf-text);
}

.sf-page-content__body h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--sf-dark);
  margin: 2rem 0 1rem;
}

.sf-page-content__body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sf-dark);
  margin: 2.5rem 0 1rem;
}

.sf-page-content__body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sf-dark);
  margin: 2rem 0 0.75rem;
}

.sf-page-content__body p {
  margin: 0 0 1.5rem;
}

.sf-page-content__body a {
  color: #111111;
  text-decoration: underline;
}

.sf-page-content__body a:hover {
  color: #333;
}

.sf-page-content__body ul,
.sf-page-content__body ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

.sf-page-content__body li {
  margin-bottom: 0.5rem;
}

.sf-page-feature {
  margin: 0 0 2.5rem;
}

.sf-page-feature__image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--sf-radius-lg);
}

.sf-page-feature__caption {
  font-size: 0.8rem;
  color: var(--sf-text-muted);
  text-align: center;
  margin-top: 0.75rem;
}

/* Hide Liebling's default page layout when our custom templates load */
.page-template .main-wrap > .m-hero,
.page-template .main-wrap > article {
  /* Don't hide - page.hbs still needs these for the about page fallback */
}

/* ============================================
   UTILITIES
   ============================================ */

.sf-container {
  max-width: var(--sf-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sf-text-center {
  text-align: center;
}

.sf-mt-1 { margin-top: 0.5rem; }
.sf-mt-2 { margin-top: 1rem; }
.sf-mt-3 { margin-top: 1.5rem; }
.sf-mt-4 { margin-top: 2rem; }
.sf-mb-1 { margin-bottom: 0.5rem; }
.sf-mb-2 { margin-bottom: 1rem; }
.sf-mb-3 { margin-bottom: 1.5rem; }
.sf-mb-4 { margin-bottom: 2rem; }

/* ============================================
   OVERRIDES — Fix Liebling conflicts
   ============================================ */

/* On homepage, hide Liebling's hero section */
.home-template .m-hero,
.home-template .m-hero__content {
  display: none !important;
}

/* On homepage, hide Liebling's content area */
.home-template .main-wrap > .l-content {
  display: none !important;
}

/* Ensure our custom homepage sections show */
.home-template .sf-hero,
.home-template .sf-section,
.home-template .sf-cta-banner {
  display: block;
}

/* Hide Liebling's old layout on post pages (we use sf-post) */
.post-template .main-wrap {
  display: none !important;
}

/* Hide Liebling's old layout on pages with custom templates */
.page-template .main-wrap {
  display: none !important;
}

/* Show our custom layout */
.sf-post,
.sf-page,
.page-template main:not(.main-wrap) {
  display: block !important;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* ============================================
   ANIMATIONS — Scroll-triggered reveals
   ============================================ */

/* Fade in from below */
.sf-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.sf-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.sf-reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.sf-reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.sf-reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.sf-reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.2s; }
.sf-reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.3s; }

.sf-reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Fade in from left */
.sf-reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.sf-reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Fade in from right */
.sf-reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.sf-reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale in */
.sf-reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.sf-reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Animated counter number */
.sf-metric-card__number[data-count] {
  transition: none;
}

/* Subtle pulse on CTA buttons — composited (opacity only, no box-shadow repaint) */
@keyframes sf-pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

.sf-cta-banner .sf-btn--primary {
  position: relative;
}

.sf-cta-banner .sf-btn--primary::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: radial-gradient(ellipse at center, rgba(255, 132, 0, 0.55) 0%, transparent 70%);
  opacity: 0.25;
  animation: sf-pulse 3s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

/* Gradient line accent under section titles */
.sf-section__title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #ff8400 0%, #e06000 100%);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.sf-section__header .sf-section__title::after {
  margin: 0.75rem auto 0;
}

/* ============================================
   PAGE TEMPLATE — Über mich (About / Julian)
   ============================================ */

.sf-about-hero {
  padding: 6rem 0 3rem;
}

.sf-about-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--sf-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sf-about-hero__image-wrap {
  position: relative;
}

.sf-about-hero__image {
  width: 100%;
  border-radius: var(--sf-radius-lg);
  object-fit: cover;
  object-position: 70% center;
  aspect-ratio: 4/5;
  box-shadow: var(--sf-shadow-lg);
}

.sf-about-hero__image-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--sf-bg-alt);
  border-radius: var(--sf-radius-lg);
}

.sf-about-hero__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sf-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem;
}

.sf-about-hero__title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--sf-dark);
  margin: 0 0 1rem;
  line-height: 1.15;
}

.sf-about-hero__intro {
  font-size: 1.1rem;
  color: var(--sf-text-light);
  line-height: 1.7;
  margin: 0 0 1.5rem;
}

.sf-about-hero__certs {
  margin-bottom: 2rem;
}

.sf-about-hero__cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--sf-bg-alt);
  border: 1px solid var(--sf-border);
  color: var(--sf-text);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 100px;
}

.sf-about-hero__cert-badge svg {
  fill: #111111;
}

.sf-about-hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Workspace image */
.sf-about-workspace {
  margin-top: 2rem;
  border-radius: var(--sf-radius-lg);
  overflow: hidden;
}

.sf-about-workspace__image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  border-radius: var(--sf-radius-lg);
}

/* What I Do — 3 cards */
.sf-about-what {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.sf-about-what__card {
  padding: 2rem;
  background: var(--sf-bg);
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius-lg);
  transition: box-shadow var(--sf-transition), transform var(--sf-transition);
}

.sf-about-what__card:hover {
  box-shadow: var(--sf-shadow-md);
  transform: translateY(-2px);
}

.sf-about-what__icon {
  color: #111111;
  margin-bottom: 1rem;
}

.sf-about-what__card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sf-dark);
  margin: 0 0 0.5rem;
}

.sf-about-what__card p {
  font-size: 0.95rem;
  color: var(--sf-text-light);
  line-height: 1.6;
  margin: 0;
}

/* Approach — 3 items */
.sf-about-approach {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.sf-about-approach__item {
  padding: 2rem;
  background: var(--sf-bg);
  border-radius: var(--sf-radius-lg);
  border: 1px solid var(--sf-border);
}

.sf-about-approach__num {
  display: inline-block;
  font-size: 2rem;
  font-weight: 800;
  color: #111111;
  opacity: 0.3;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.sf-about-approach__item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sf-dark);
  margin: 0 0 0.5rem;
}

.sf-about-approach__item p {
  font-size: 0.95rem;
  color: var(--sf-text-light);
  line-height: 1.6;
  margin: 0;
}


@media (max-width: 768px) {
  .sf-about-hero {
    padding: 3rem 1.25rem 2rem;
  }

  .sf-about-hero__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sf-about-hero__image-wrap {
    text-align: center;
  }

  .sf-about-hero__image {
    display: block;
    max-width: 280px;
    margin: 0 auto;
  }

  .sf-about-hero__title {
    font-size: 2rem;
  }

  .sf-about-what {
    grid-template-columns: 1fr;
  }

  .sf-about-approach {
    grid-template-columns: 1fr;
  }

  .sf-cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   ABOUT — Story Section (Warum Salesfuchs)
   ============================================ */

.sf-about-story .sf-about-workspace {
  margin-bottom: 3rem;
}

.sf-about-story .sf-about-workspace__image {
  border-radius: var(--sf-radius-lg);
  opacity: 0.75;
}

.sf-about-story__grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 3rem;
  align-items: start;
}

.sf-about-story__divider {
  background: rgba(255, 255, 255, 0.15);
  align-self: stretch;
}

.sf-about-story__block {
  padding: 0.5rem 0;
  min-width: 0;
}

.sf-about-story__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.sf-about-story__label--muted {
  color: rgba(255, 255, 255, 0.45);
}

.sf-about-story__label--orange {
  color: var(--sf-orange);
}

.sf-about-story__headline {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 0 0 1rem;
}

.sf-about-story__text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 768px) {
  .sf-about-story__grid {
    display: block;
  }

  .sf-about-story__block {
    margin-bottom: 2rem;
  }

  .sf-about-story__divider {
    display: none;
  }
}

/* ============================================
   ABOUT — Certifications
   ============================================ */

.sf-creds__viewer {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  margin-top: 2.5rem;
}

.sf-cert-frame {
  flex: 0 0 auto;
  width: min(520px, 54vw);
}

.sf-creds__image-display {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  background: transparent;
  border-radius: 6px;
  overflow: hidden;
}

.sf-cert-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 0 24px 64px rgba(0, 0, 0, 0.10), 0 2px 6px rgba(0, 0, 0, 0.04);
}

.sf-cert-img--active {
  opacity: 1;
}

/* Cert pills */
.sf-cert-pills {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1 1 auto;
  max-width: 420px;
}

.sf-cert-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sf-cert-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  background: #fff;
  border: 1px solid var(--sf-border);
  border-radius: 999px;
  font-size: 0.775rem;
  font-family: inherit;
  color: var(--sf-text);
  cursor: default;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

/* Salesforce — blue */
.sf-cert-pill--sf:hover,
.sf-cert-pill--sf.sf-cert-pill--active {
  border-color: #0176d3;
  color: #0176d3;
  background: rgba(1, 118, 211, 0.06);
}

/* Airtable — purple */
.sf-cert-pill--airtable:hover,
.sf-cert-pill--airtable.sf-cert-pill--active {
  border-color: #6b5fcf;
  color: #6b5fcf;
  background: rgba(107, 95, 207, 0.06);
}

/* Other — green */
.sf-cert-pill--other:hover,
.sf-cert-pill--other.sf-cert-pill--active {
  border-color: #1a7f4e;
  color: #1a7f4e;
  background: rgba(26, 127, 78, 0.06);
}

@media (max-width: 768px) {
  .sf-creds__viewer {
    flex-direction: column;
    align-items: stretch;
  }

  .sf-cert-frame {
    width: 100%;
  }

  .sf-cert-pills {
    max-width: 100%;
  }
}

/* ============================================
   ABOUT — Standalone Testimonial
   ============================================ */

.sf-testimonial.sf-reveal {
  padding: 3rem 1.5rem;
  background: #fff;
  max-width: none;
  margin: 0;
  text-align: center;
}

.sf-testimonial.sf-reveal .sf-testimonial__quote {
  margin: 0 auto;
  max-width: 780px;
  text-align: center;
  font-style: normal;
}
.sf-testimonial.sf-reveal .sf-testimonial__quote::before { display: none; }

.sf-testimonial__logo {
  display: block;
  height: 28px;
  width: auto;
  margin: 0 auto 1.75rem;
  opacity: 0.7;
}

.sf-testimonial__text {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--sf-dark);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.sf-testimonial__footer {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sf-testimonial__author {
  font-weight: 700;
  color: var(--sf-dark);
  font-size: 0.95rem;
}

.sf-testimonial__role {
  font-size: 0.85rem;
  color: #888;
}

/* ============================================
   BLOG — Hero, Featured Post, Grid, Pagination
   ============================================ */

.sf-blog-hero {
  padding: 3.5rem 0 1.5rem;
  text-align: center;
  background: var(--sf-bg-alt);
}

.sf-blog-hero__title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--sf-dark);
  margin: 0 0 0.75rem;
}

.sf-blog-hero__desc {
  font-size: 1.1rem;
  color: var(--sf-text-light);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

/* Blog search bar — triggers Sodo Search overlay */
.sf-blog-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto 2rem;
  padding: 0.75rem 1.25rem;
  background: var(--sf-bg);
  border: 1px solid var(--sf-border);
  border-radius: 100px;
  cursor: pointer;
  transition: border-color var(--sf-transition), box-shadow var(--sf-transition);
}

.sf-blog-search:hover {
  border-color: #111111;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.sf-blog-search svg {
  flex-shrink: 0;
  color: var(--sf-text-muted);
  transition: color var(--sf-transition);
}

.sf-blog-search:hover svg {
  color: #111111;
}

.sf-blog-search span {
  font-size: 0.95rem;
  color: var(--sf-text-muted);
}

@media (max-width: 768px) {
  .sf-blog-search {
    max-width: 100%;
    min-height: 48px;
  }
}

/* Author hero avatar */
.sf-author-hero__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  border: 3px solid var(--sf-border);
}

.sf-author-hero__links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.sf-blog-hero__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.sf-tag-pill {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--sf-text-light);
  background: var(--sf-bg);
  border: 1px solid var(--sf-border);
  text-decoration: none;
  transition: all var(--sf-transition);
}

.sf-tag-pill:hover,
.sf-tag-pill.is-active,
.sf-tag-pill--active {
  color: #111111;
  border-color: #111111;
  background: var(--sf-bg);
}

/* Featured post */
.sf-blog-featured {
  padding: 3rem 0;
}

.sf-blog-featured__card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--sf-bg);
  border-radius: var(--sf-radius-lg);
  overflow: hidden;
  border: 1px solid var(--sf-border);
  transition: box-shadow var(--sf-transition);
}

.sf-blog-featured__card:hover {
  box-shadow: var(--sf-shadow-md);
}

.sf-blog-featured__image-link {
  display: block;
  overflow: hidden;
  position: relative;
}

.sf-blog-featured__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/10;
  transition: transform 0.4s ease;
}

.sf-blog-featured__card:hover .sf-blog-featured__image {
  transform: scale(1.03);
}

.sf-blog-featured__content {
  padding: 2rem 2rem 2rem 0;
}

.sf-blog-featured__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sf-text-muted);
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.sf-blog-featured__tag:hover {
  text-decoration: underline;
}

.sf-blog-featured__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sf-dark);
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.sf-blog-featured__title a {
  color: inherit;
  text-decoration: none;
}

.sf-blog-featured__title a:hover {
  color: #111111;
  text-decoration: underline;
}

.sf-blog-featured__excerpt {
  font-size: 1rem;
  color: var(--sf-text-light);
  line-height: 1.7;
  margin: 0 0 1rem;
}

.sf-blog-featured__meta {
  font-size: 0.85rem;
  color: var(--sf-text-muted);
  display: flex;
  gap: 0.5rem;
}

/* Post card grid */
.sf-blog-grid-section {
  padding: 3rem 0;
}

.sf-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.sf-post-card {
  background: var(--sf-bg);
  border: 1px solid var(--sf-border);
  display: flex;
  flex-direction: column;
  border-radius: var(--sf-radius-lg);
  overflow: hidden;
  transition: box-shadow var(--sf-transition), transform var(--sf-transition);
}

.sf-post-card:hover {
  box-shadow: var(--sf-shadow-md);
  transform: translateY(-3px);
}

.sf-post-card__image-link {
  display: block;
  overflow: hidden;
  position: relative;
}

/* Featured star badge overlay */
.sf-post-card__featured-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.85);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
}

.sf-post-card__featured-badge--large {
  width: 36px;
  height: 36px;
}

.sf-post-card__image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sf-post-card:hover .sf-post-card__image {
  transform: scale(1.05);
}

.sf-post-card__body {
  padding: 1rem 1.25rem 1.25rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Glass pill tag overlay on card image */
.sf-post-card__tag-pill {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.sf-post-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sf-dark);
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.sf-post-card__title a {
  color: inherit;
  text-decoration: none;
}

.sf-post-card__title a:hover {
  color: #111111;
  text-decoration: underline;
}

.sf-post-card__excerpt {
  font-size: 0.9rem;
  color: var(--sf-text-light);
  line-height: 1.6;
  margin: 0 0 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sf-post-card__meta {
  font-size: 0.8rem;
  color: var(--sf-text-muted);
  display: flex;
  gap: 0.4rem;
  justify-content: center;
}

/* Blog empty state */
.sf-blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
}

.sf-blog-empty h3 {
  font-size: 1.3rem;
  color: var(--sf-dark);
  margin: 0 0 0.5rem;
}

.sf-blog-empty p {
  color: var(--sf-text-light);
  margin: 0;
}

/* Pagination */
.sf-blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--sf-border);
}

.sf-blog-pagination__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111111;
  text-decoration: none;
  transition: opacity var(--sf-transition);
}

.sf-blog-pagination__link:hover {
  opacity: 0.8;
}

.sf-blog-pagination__info {
  font-size: 0.85rem;
  color: var(--sf-text-muted);
}

@media (max-width: 768px) {
  .sf-blog-hero__title {
    font-size: 1.6rem;
  }

  .sf-blog-featured__card {
    grid-template-columns: 1fr;
  }

  .sf-blog-featured__content {
    padding: 1.5rem;
  }

  .sf-blog-featured__title {
    font-size: 1.3rem;
  }

  .sf-blog-grid {
    grid-template-columns: 1fr;
  }

  .sf-blog-pagination {
    gap: 1rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .sf-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   GHOST CARDS — Bookmark Card
   ============================================ */

.sf-post-content__body .kg-bookmark-card,
.sf-page-content__body .kg-bookmark-card {
  background: var(--sf-bg);
  margin: 2rem 0 !important;
  padding: 0 !important;
  width: 100%;
}

.sf-post-content__body .kg-bookmark-container,
.sf-page-content__body .kg-bookmark-container {
  display: flex;
  min-height: 148px;
  color: var(--sf-text);
  text-decoration: none !important;
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius-lg);
  overflow: hidden;
  transition: box-shadow var(--sf-transition), transform var(--sf-transition);
}

.sf-post-content__body .kg-bookmark-container:hover,
.sf-page-content__body .kg-bookmark-container:hover {
  box-shadow: var(--sf-shadow-md);
  transform: translateY(-2px);
}

.sf-post-content__body .kg-bookmark-content,
.sf-page-content__body .kg-bookmark-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 1.25rem;
}

.sf-post-content__body .kg-bookmark-title,
.sf-page-content__body .kg-bookmark-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sf-dark);
  line-height: 1.35;
}

.sf-post-content__body .kg-bookmark-description,
.sf-page-content__body .kg-bookmark-description {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--sf-text-light);
  line-height: 1.5;
  margin-top: 0.5rem;
  max-height: 3rem;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
}

.sf-post-content__body .kg-bookmark-metadata,
.sf-page-content__body .kg-bookmark-metadata {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--sf-text-muted);
  margin-top: auto;
  padding-top: 0.75rem;
}

.sf-post-content__body .kg-bookmark-icon,
.sf-page-content__body .kg-bookmark-icon {
  width: 20px !important;
  height: 20px !important;
  margin-right: 0.5rem !important;
  margin-bottom: 0 !important;
  border-radius: 3px;
}

.sf-post-content__body .kg-bookmark-author,
.sf-page-content__body .kg-bookmark-author {
  color: var(--sf-text-muted);
}

.sf-post-content__body .kg-bookmark-author::after,
.sf-page-content__body .kg-bookmark-author::after {
  content: "\2022";
  margin: 0 0.4rem;
}

.sf-post-content__body .kg-bookmark-publisher,
.sf-page-content__body .kg-bookmark-publisher {
  color: var(--sf-text);
  font-weight: 600;
}

.sf-post-content__body .kg-bookmark-thumbnail,
.sf-page-content__body .kg-bookmark-thumbnail {
  position: relative;
  min-width: 200px;
  max-width: 35%;
  overflow: hidden;
}

.sf-post-content__body .kg-bookmark-thumbnail img,
.sf-page-content__body .kg-bookmark-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  margin: 0 !important;
  border-radius: 0 !important;
}

/* Bookmark card — mobile: stack vertically */
@media (max-width: 600px) {
  .sf-post-content__body .kg-bookmark-container,
  .sf-page-content__body .kg-bookmark-container {
    flex-direction: column;
  }

  .sf-post-content__body .kg-bookmark-thumbnail,
  .sf-page-content__body .kg-bookmark-thumbnail {
    min-width: 100%;
    max-width: 100%;
    min-height: 160px;
    order: -1;
  }

  .sf-post-content__body .kg-bookmark-thumbnail img,
  .sf-page-content__body .kg-bookmark-thumbnail img {
    border-radius: var(--sf-radius-lg) var(--sf-radius-lg) 0 0 !important;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sf-reveal,
  .sf-reveal-stagger > *,
  .sf-reveal-left,
  .sf-reveal-right,
  .sf-reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .sf-cta-banner .sf-btn--primary {
    animation: none;
  }
}

/* ============================================
   404 ERROR PAGE
   ============================================ */

.sf-error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 4rem 1.5rem;
}

.sf-error-page__code {
  display: block;
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--sf-fire-start), var(--sf-fire-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.sf-error-page__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--sf-dark);
  margin: 0 0 1rem;
}

.sf-error-page__text {
  font-size: 1.1rem;
  color: var(--sf-text-light);
  margin: 0 0 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.sf-error-page__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Tablet breakpoint — 3-col grids become 2-col (769–1024px only) */
@media (min-width: 769px) and (max-width: 1024px) {
  .sf-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sf-about-what {
    grid-template-columns: repeat(2, 1fr);
  }

  .sf-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sf-blog-featured__card {
    grid-template-columns: 1fr 1fr;
  }

  .sf-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .sf-about-hero__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .sf-error-page__code {
    font-size: 5rem;
  }

  .sf-error-page__title {
    font-size: 1.5rem;
  }

  .sf-section__title {
    font-size: 1.6rem;
  }
}

/* ============================================
   MOBILE REFINEMENTS — Spacing, Touch, Safety
   ============================================ */

/* --- 768px: Mobile section spacing --- */
@media (max-width: 768px) {
  .sf-section {
    padding: 3.5rem 1.25rem;
  }

  .sf-section__header {
    margin-bottom: 2.5rem;
  }

  .sf-cta-banner {
    padding: 3.5rem 1.25rem;
  }

  .sf-cta-banner__title {
    font-size: 1.5rem;
  }

  .sf-page-hero {
    padding: 3.5rem 1.25rem 2.5rem;
  }

  /* Touch targets — min 44-48px */
  .sf-faq__question {
    min-height: 48px;
    padding: 0.75rem 0;
  }

  .sf-service-card__link {
    min-height: 44px;
    padding: 0.5rem 0;
  }

  .sf-footer__links li a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Blog card image: proportional instead of fixed 200px */
  .sf-blog-card__image {
    height: auto;
    aspect-ratio: 16/10;
  }

  /* Homepage: root cause cards — ensure single column */
  .sf-root-causes {
    grid-template-columns: 1fr;
  }

  /* Homepage: outcomes max-width aufheben */
  .sf-outcomes {
    max-width: 100%;
  }

  /* Homepage: process steps horizontal layout for single item */
  .sf-process__step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 1rem;
    text-align: left;
  }

  .sf-process__number {
    margin: 0;
    grid-row: 1 / 3;
    align-self: start;
  }

  /* Homepage: hero buttons stack on mobile */
  .sf-hero__buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .sf-hero__buttons .sf-btn {
    width: 100%;
    justify-content: center;
  }

  /* Testimonial in dark section: padding */
  .sf-section--dark .sf-testimonial {
    padding: 0;
  }

  /* Safe area insets for notched phones */
  .sf-mobile-menu {
    padding: max(1.5rem, env(safe-area-inset-top)) max(2rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(2rem, env(safe-area-inset-left));
  }

  .sf-footer__bottom {
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }
}

/* --- 480px: Small phone refinements --- */
@media (max-width: 480px) {
  .sf-about-hero__actions {
    flex-direction: column;
  }

  .sf-about-hero__actions .sf-btn {
    width: 100%;
    justify-content: center;
  }

  .sf-about-hero__title {
    font-size: 1.75rem;
  }

  .sf-about-story__headline {
    font-size: 1.2rem;
  }

  .sf-cert-pill {
    font-size: 0.72rem;
  }

  .sf-hero__subtitle {
    font-size: 1rem;
  }

  .sf-outcome-item {
    font-size: 0.95rem;
  }

  .sf-root-cause-card {
    padding: 1.25rem;
  }

  .sf-hero__title {
    font-size: 1.3rem;
  }

  .sf-hero__title .sf-hero__statement {
    font-size: 1.15rem;
  }

  .sf-hero__buttons {
    flex-direction: column;
  }

  .sf-hero__buttons .sf-btn {
    width: 100%;
  }

  .sf-section__title {
    font-size: 1.4rem;
  }

  .sf-metric-card__number {
    font-size: 1.75rem;
  }

  .sf-contact-booking__title {
    font-size: 1.3rem;
  }

  .sf-cta-banner__title {
    font-size: 1.3rem;
  }

  .sf-page-hero__title {
    font-size: 1.6rem;
  }
}

/* --- Touch devices: prevent sticky hover states --- */
@media (hover: none) {
  .sf-service-card:hover,
  .sf-about-what__card:hover {
    transform: none;
    box-shadow: none;
  }

  .sf-blog-card:hover,
  .sf-post-card:hover {
    transform: none;
  }

  .sf-ref-card:hover {
    box-shadow: none;
  }
}

/* Mobile menu: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sf-mobile-menu {
    transition: none;
  }
}

/* ============================================
   HOMEPAGE — Sticky Mobile CTA
   ============================================ */

.sf-sticky-cta {
  display: none;
}

@media (max-width: 768px) {
  .sf-sticky-cta {
    display: block;
    position: fixed;
    bottom: calc(1.25rem + env(safe-area-inset-bottom));
    right: 1.25rem;
    left: auto;
    z-index: 100;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    transform: translateY(80px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
  }

  .sf-sticky-cta.is-visible {
    transform: translateY(0);
    opacity: 1;
  }

  .sf-sticky-cta__btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    background: var(--sf-orange);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(232,135,37,0.35), 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  .sf-sticky-cta__btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 12px rgba(232,135,37,0.3), 0 1px 4px rgba(0,0,0,0.08);
  }
}

/* ============================================
   ARTICLE IMPROVEMENTS
   ============================================ */

/* Article tables — comparison tables */
.gh-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
}

.gh-content table thead tr {
  background: #111111;
  color: #fff;
}

.gh-content table thead th {
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.gh-content table tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.15s ease;
}

.gh-content table tbody tr:last-child {
  border-bottom: none;
}

.gh-content table tbody tr:hover {
  background: rgba(255, 132, 0, 0.08);
}

.gh-content table tbody td {
  padding: 0.875rem 1.25rem;
  color: #333;
  vertical-align: top;
}

.gh-content table tbody td:first-child {
  font-weight: 600;
  color: #111;
}

@media (max-width: 768px) {
  .gh-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Reading progress bar */
.sf-reading-progress-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1001;
  pointer-events: none;
}

.sf-reading-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #FFB300, #E84000);
  transition: width 0.1s linear;
}


/* Hide progress bar on homepage */
.home-template .sf-reading-progress-wrap {
  display: none;
}

/* Article heading hierarchy */
.gh-content h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #111111;
  margin: 2.5rem 0 1rem;
  padding-left: 0.875rem;
  border-left: 3px solid #111111;
  line-height: 1.3;
  scroll-margin-top: 7rem;
}

.gh-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 2rem 0 0.75rem;
  line-height: 1.35;
}

.gh-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 1.5rem 0 0.5rem;
}

.gh-content p {
  margin-bottom: 1.25rem;
}

.gh-content ul, .gh-content ol {
  margin: 0 0 1.25rem 1.5rem;
  line-height: 1.7;
}

.gh-content li {
  margin-bottom: 0.4rem;
}

/* Ghost callout blocks */
.gh-content .kg-callout-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fafaf8;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #111111;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.gh-content .kg-callout-card-yellow {
  background: #fffbf0;
  border-left-color: #FFB300;
}

.gh-content .kg-callout-card-red {
  background: #fff8f8;
  border-left-color: #E84000;
}

.gh-content .kg-callout-card-green {
  background: #f0faf5;
  border-left-color: #16a34a;
}

.gh-content .kg-callout-emoji {
  font-size: 1.25rem;
  line-height: 1.5;
  flex-shrink: 0;
}

.gh-content .kg-callout-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1a1a1a;
}

/* Pull quote / blockquote */
.gh-content blockquote {
  border-left: 3px solid #111111;
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  font-size: 1.1rem;
  font-style: italic;
  color: #333;
  line-height: 1.65;
}

/* Sticky article CTA — desktop only */
.sf-article-cta {
  display: none;
}

@media (min-width: 769px) {
  .sf-article-cta {
    display: block;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 90;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
  }

  .sf-article-cta.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .sf-article-cta__btn {
    display: block;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #ffab40 0%, var(--sf-orange) 50%, #f07800 100%);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    white-space: nowrap;
    transition: background 0.18s ease;
  }

  .sf-article-cta__btn:hover {
    background: var(--sf-orange-hover);
    box-shadow: 0 4px 16px rgba(255, 132, 0, 0.4);
  }
}

/* --- Contact Reveal (Bot Protection) --- */
:root {
  --sf-reveal: #7e95ae; /* slate-blue — distinct but unobtrusive */
}
.sf-contact-reveal-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.sf-contact-reveal-btn {
  background: transparent;
  border: 1px solid rgba(126, 149, 174, 0.4);
  color: var(--sf-reveal);
  padding: 0.2rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8125rem;
  font-family: inherit;
  letter-spacing: 0.01em;
  transition: var(--sf-transition);
  white-space: nowrap;
}
.sf-contact-reveal-btn:hover {
  background: rgba(126, 149, 174, 0.1);
  border-color: var(--sf-reveal);
  color: var(--sf-reveal);
}
.sf-contact-value {
  color: var(--sf-text);
  font-size: inherit;
  user-select: all;
}
.sf-contact-copy {
  background: transparent;
  border: 1px solid rgba(126, 149, 174, 0.3);
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.75rem;
  font-family: inherit;
  color: var(--sf-reveal);
  opacity: 0.7;
  transition: var(--sf-transition);
}
.sf-contact-copy:hover {
  opacity: 1;
  border-color: var(--sf-reveal);
}

/* Footer overrides — dark background */
.sf-footer .sf-contact-reveal-btn {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.4);
}
.sf-footer .sf-contact-reveal-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.65);
}
.sf-footer .sf-contact-value {
  color: #fff;
}
.sf-footer .sf-contact-copy {
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.35);
}
.sf-footer .sf-contact-copy:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.sf-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.sf-breadcrumb a {
  color: var(--sf-text-muted);
  text-decoration: none;
  transition: color var(--sf-transition);
}

.sf-breadcrumb a:hover {
  color: var(--sf-orange);
}

.sf-breadcrumb__sep {
  color: #999;
  font-size: 0.9em;
}

/* ============================================
   TOC SIDEBAR (Desktop only)
   ============================================ */

.sf-toc {
  display: none;
}

@media (min-width: 1280px) {
  .sf-toc {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    left: calc(50% + 24rem);
    width: 220px;
    max-height: 60vh;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 50;
  }

  .sf-toc.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .sf-toc.is-hidden {
    opacity: 0;
    pointer-events: none;
  }

  .sf-toc__heading {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--sf-text-muted);
    opacity: 0.5;
    margin: 0 0 0.5rem 10px;
    padding: 0;
  }

  .sf-toc__nav {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .sf-toc__link {
    display: block;
    padding: 6px 0 6px 10px;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--sf-text-muted);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
  }

  .sf-toc__link:hover {
    color: var(--sf-text);
    border-left-color: rgba(255, 132, 0, 0.3);
  }

  .sf-toc__link.is-active {
    color: var(--sf-orange);
    border-left-color: var(--sf-orange);
    font-weight: 500;
  }
}

@media (min-width: 1440px) {
  .sf-toc { left: calc(50% + 26rem); width: 240px; }
}

@media (min-width: 1600px) {
  .sf-toc { left: calc(50% + 28rem); width: 260px; }
}

@media (min-width: 1800px) {
  .sf-toc { left: calc(50% + 30rem); width: 280px; }
}

/* ============================================
   LESETIPPS — Curated articles on /blog/
   ============================================ */
.sf-lesetipps { padding: 2rem 0 0; }
.sf-lesetipps__title {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--sf-text-muted); margin-bottom: 1rem; font-weight: 600;
}
.sf-lesetipps__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.sf-lesetipps__card {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 1rem 1rem 1rem 1.25rem;
  border-left: 3px solid var(--sf-orange);
  background: var(--sf-bg-alt); border-radius: 0 var(--sf-radius) var(--sf-radius) 0;
  text-decoration: none; color: inherit;
  transition: background 0.2s, transform 0.2s;
}
.sf-lesetipps__card:hover {
  background: rgba(255, 132, 0, 0.06); transform: translateX(3px);
}
.sf-lesetipps__tag {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--sf-orange); font-weight: 600;
}
.sf-lesetipps__heading {
  font-size: 0.95rem; font-weight: 600; line-height: 1.35;
  color: var(--sf-dark);
}
.sf-lesetipps__meta {
  font-size: 0.75rem; color: var(--sf-text-muted);
}
@media (max-width: 768px) {
  .sf-lesetipps__grid { grid-template-columns: 1fr; }
}

/* ============================================
   LEAD MAGNET — Inline CTA in articles
   ============================================ */
.sf-lead-magnet { padding: 0 0 2rem; }
.sf-lead-magnet__card {
  display: flex; align-items: center; gap: 2rem;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
  border: 1px solid rgba(255, 132, 0, 0.2);
  border-radius: var(--sf-radius);
}
.sf-lead-magnet__content { flex: 1; }
.sf-lead-magnet__badge {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--sf-orange); background: rgba(255, 132, 0, 0.1);
  padding: 0.2rem 0.6rem; border-radius: 99px; margin-bottom: 0.5rem;
}
.sf-lead-magnet__title { font-size: 1.25rem; font-weight: 700; margin: 0.5rem 0; }
.sf-lead-magnet__text { font-size: 0.9rem; color: var(--sf-text-muted); margin: 0; }
.sf-lead-magnet__form {
  display: flex; flex-direction: column; gap: 0.5rem; min-width: 280px;
}
.sf-lead-magnet__form input[type="email"] {
  padding: 0.7rem 1rem; border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius); font-size: 0.9rem;
}
.sf-lead-magnet__form input[type="email"]:focus {
  outline: none; border-color: var(--sf-orange);
  box-shadow: 0 0 0 3px rgba(255, 132, 0, 0.1);
}
.sf-lead-magnet__hint { font-size: 0.75rem; color: var(--sf-text-muted); margin: 0; }
.sf-lead-magnet__success { color: var(--sf-orange); font-weight: 600; font-size: 0.9rem; }
.sf-lead-magnet__error { color: #e53e3e; font-size: 0.85rem; }

@media (max-width: 768px) {
  .sf-lead-magnet__card { flex-direction: column; padding: 1.5rem; }
  .sf-lead-magnet__form { min-width: 100%; }
}

/* ============================================
   CRM READINESS QUIZ — Homepage interactive
   ============================================ */
.sf-quiz__card {
  max-width: 640px; margin: 0 auto;
  background: var(--sf-bg-alt); border-radius: var(--sf-radius-lg);
  padding: 2.5rem; text-align: center;
}
.sf-quiz__badge {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--sf-orange); background: rgba(255, 132, 0, 0.1);
  padding: 0.2rem 0.6rem; border-radius: 99px;
}
.sf-quiz__title { font-size: 1.5rem; font-weight: 700; margin: 0.75rem 0 0.25rem; }
.sf-quiz__subtitle { font-size: 0.9rem; color: var(--sf-text-muted); margin: 0; }
.sf-quiz__progress {
  height: 4px; background: var(--sf-border); border-radius: 99px;
  margin: 1.5rem 0; overflow: hidden;
}
.sf-quiz__progress-bar {
  height: 100%; width: 0; background: var(--sf-orange);
  border-radius: 99px; transition: width 0.4s ease;
}
.sf-quiz__question {
  font-size: 1.05rem; font-weight: 600; margin: 1.5rem 0 1rem;
  color: var(--sf-dark); min-height: 2.5em;
}
.sf-quiz__answers {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
}
.sf-quiz__answer-btn {
  padding: 0.6rem 1.2rem; border: 1px solid var(--sf-border);
  border-radius: 99px; background: #fff; cursor: pointer;
  font-size: 0.9rem; transition: all 0.2s; color: var(--sf-text);
}
.sf-quiz__answer-btn:hover {
  border-color: var(--sf-orange); color: var(--sf-orange);
}
.sf-quiz__answer-btn.is-selected {
  background: var(--sf-orange); color: #fff; border-color: var(--sf-orange);
}
.sf-quiz__score {
  font-size: 3rem; font-weight: 800; color: var(--sf-orange);
  margin-bottom: 0.5rem;
}
.sf-quiz__result-title { font-size: 1.25rem; font-weight: 700; margin: 0 0 0.5rem; }
.sf-quiz__result-text { font-size: 0.9rem; color: var(--sf-text-muted); margin: 0 0 1.5rem; max-width: 360px; margin-left: auto; margin-right: auto; }
.sf-quiz__restart {
  display: block; margin: 1rem auto 0;
  background: none; border: none; color: #aaa;
  cursor: pointer; text-decoration: none;
  font-size: 0.85rem;
}
.sf-quiz__restart:hover { color: var(--sf-orange); }

@media (max-width: 768px) {
  .sf-quiz__card { padding: 1.5rem; }
  .sf-quiz__title { font-size: 1.25rem; }
  .sf-quiz__answer-btn { font-size: 0.85rem; padding: 0.5rem 1rem; }
}


/* Prism.js overrides */
pre[class*="language-"] { margin: 0 0 1.5em !important; }
code { text-shadow: none !important; }
.token.operator { background: none !important; }
:not(pre) > code[class*="language-"], pre[class*="language-"] { background: #20262E !important; }

/* FAQ Toggle Cards */
.kg-toggle-card {
  background: #fafafa;
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  margin-bottom: 0.5em;
  overflow: hidden;
  padding: 0 !important;
}
.kg-toggle-heading {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  padding: 1em 1.25em;
  list-style: none;
  user-select: none;
  -webkit-user-select: none;
}
.kg-toggle-heading-text {
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  text-align: center;
  flex: 1;
  margin: 0 !important;
}
.kg-toggle-icon {
  background: rgba(0,0,0,0.06);
  border-radius: 50%;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s;
}
.kg-toggle-card[open] .kg-toggle-icon,
.kg-toggle-card.is-expanded .kg-toggle-icon {
  transform: rotate(180deg);
}
.kg-toggle-content {
  padding: 0 1.25em 1.25em !important;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #48484a;
}
.kg-toggle-content p:last-child { margin-bottom: 0; }

