/* ==========================================================================
   recruitpilot — Stylesheet
   Built on the Dickens Media / adfects design system.
   ========================================================================== */

:root {
  /* Color tokens */
  --bg:           #FFFFFF;
  --text:         #202020;
  --muted:        #646464;
  --muted-2:      #9A9AA3;
  --border:       #E4E7EC;
  --btn-bg:       #1C1D1F;
  --btn-bg-hover: #2D2E31;
  --btn-text:     #FFFFFF;
  --pill-bg:      #FFFFFF;
  --pill-border:  #E4E7EC;
  --frame-bg:     #F5F6F7;
  --mockup-pad:   #ECEEF0;
  --mockup-line:  #E3E3E3;
  --accent:       #155EEF;
  --accent-hover: #2f71f3;
  --accent-soft:  rgba(21, 94, 239, 0.06);

  /* Typography */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-heading: "Libre Baskerville", Georgia, "Times New Roman", serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text);
}
/* Section item / card headings keep the body font (Inter) for readability */
h3, h4, h5, h6 {
  font-family: var(--font);
}

h1 {
  font-size: 56px;
  line-height: 56px;
  letter-spacing: -0.028em;
  max-width: 16ch;
}
h2 {
  font-size: 28px;
  line-height: 36px;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
h3 {
  font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
h4 {
  font-size: 15px;
  letter-spacing: -0.01em;
}

p { color: var(--text); }
.muted { color: var(--muted); }

/* Two-tone heading: muted first line, strong second line */
.t-fade { opacity: 1; }

/* ---------- Layout: Frame ---------- */
.frame {
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: #155EEF;
  color: #FFFFFF;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}
.btn-primary:hover { background: #2f71f3; }

.btn-outline {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  background: var(--frame-bg);
}

.btn-large { padding: 14px 24px; }

.btn-link {
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.15s ease, opacity 0.15s ease;
}
.btn-link:hover { gap: 10px; opacity: 0.85; }

/* ---------- Navigation ---------- */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.top-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.nav-logo-mark { width: 22px; height: 22px; color: var(--text); }
.logo-image-main { height: 22px; width: auto; display: block; }
.compare-rp-card .logo-image-main { height: 14px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-link-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-chevron {
  color: currentColor;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.15s ease;
  flex-shrink: 0;
}
.nav-link-dropdown:hover .nav-chevron {
  opacity: 1;
  transform: translateY(1px);
}

/* Nav dropdown panel (Blog) */
.nav-item-has-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  right: -16px;
  padding-top: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 100;
  pointer-events: none;
}
.nav-item-has-dropdown:hover .nav-dropdown,
.nav-item-has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-item-has-dropdown:hover .nav-link-dropdown .nav-chevron,
.nav-item-has-dropdown:focus-within .nav-link-dropdown .nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-dropdown-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 760px;
  background: #FFFFFF;
  border: 1px solid #ECECEC;
  border-radius: 16px;
  box-shadow:
    0 16px 40px rgba(20, 22, 28, 0.10),
    0 4px 12px rgba(20, 22, 28, 0.05);
  overflow: hidden;
}

.nav-dropdown-left {
  display: flex;
  flex-direction: column;
  padding: 14px;
  gap: 12px;
  border-right: 1px solid #F2F2F2;
  background: #FFFFFF;
}
.nav-dropdown-image {
  width: 100%;
  flex: 1 1 0;
  min-height: 0;
  background: #F4F5F7;
  border: 1px solid #ECEDF0;
  border-radius: 10px;
  overflow: hidden;
}
.nav-dropdown-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nav-dropdown-caption {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.005em;
  flex-shrink: 0;
}
.nav-dropdown-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: -6px;
  font-size: 9.5px;
  font-weight: 400;
  color: #155EEF;
  opacity: 0.7;
  text-decoration: none;
  transition: opacity 0.15s ease, gap 0.2s ease;
  flex-shrink: 0;
}
.nav-dropdown-cta:hover {
  opacity: 1;
  gap: 7px;
}
.nav-dropdown-cta svg {
  flex-shrink: 0;
}

.nav-dropdown-right {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}
/* Continuous horizontal dividers between the 3 blog items
   (z-index: 1 keeps them painted over the item hover background) */
.nav-dropdown-right::before,
.nav-dropdown-right::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1px;
  background: #ECECEC;
  pointer-events: none;
  z-index: 1;
}
.nav-dropdown-right::before { top: calc(100% / 3); }
.nav-dropdown-right::after  { top: calc(200% / 3); }

.nav-dropdown-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s ease;
}
.nav-dropdown-item:hover {
  background: #F7F8FA;
}

/* Double-stroke icon, smaller version of the Erfolgsgarantie pattern */
.nav-dropdown-item-icon-wrap {
  flex-shrink: 0;
  display: inline-block;
  padding: 3px;
  background: #F0F0F2;
  border: 1px solid #EDEDED;
  border-radius: 10px;
}
.nav-dropdown-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.nav-dropdown-item-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.nav-dropdown-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  letter-spacing: -0.005em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nav-dropdown-item-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 400;
  color: #155EEF;
  opacity: 0.7;
  transition: opacity 0.15s ease, gap 0.2s ease;
}
.nav-dropdown-item:hover .nav-dropdown-item-cta {
  opacity: 1;
  gap: 7px;
}
.nav-dropdown-item-cta svg {
  flex-shrink: 0;
}

/* Bereiche dropdown: 2x2 grid of items */
.nav-dropdown-card-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px;
  width: 700px;
}
/* Continuous divider lines that span the full grid (horizontal + vertical) */
.nav-dropdown-card-grid::before {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 1px;
  background: #ECECEC;
  pointer-events: none;
  z-index: 1;
}
.nav-dropdown-card-grid::after {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  width: 1px;
  background: #ECECEC;
  pointer-events: none;
  z-index: 1;
}
.nav-dropdown-grid-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s ease;
}
.nav-dropdown-grid-item:hover {
  background: #F7F8FA;
}
.nav-dropdown-grid-item .nav-dropdown-item-text {
  gap: 1px;
}
.nav-dropdown-subtitle {
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--muted);
  letter-spacing: 0;
}
.nav-cta { margin-left: 8px; }
.nav-cta-group { display: flex; gap: 8px; align-items: center; }

.nav-menu-btn {
  display: none;
  width: 32px; height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  border-radius: 8px;
}
.nav-menu-btn span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-bar.is-open .nav-menu-btn span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-bar.is-open .nav-menu-btn span:nth-child(2) { opacity: 0; }
.nav-bar.is-open .nav-menu-btn span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 48px;
  left: 0;
  right: 0;
  z-index: 40;
  flex-direction: column;
  gap: 4px;
  padding: 8px 20px 20px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.98);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.nav-bar.is-open + .mobile-menu { display: flex; }
.mobile-menu a {
  font-size: 14px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.mobile-menu a:last-of-type { border-bottom: none; }
/* Hide the dropdown chevrons (Bereiche / Blog) in the mobile menu */
.mobile-menu .nav-chevron { display: none; }
/* Demo button: full width, centered, white text, proper padding */
.mobile-menu a.btn {
  color: #FFFFFF;
  align-self: stretch;
  justify-content: center;
  padding: 13px 20px;
  margin-top: 12px;
  border-bottom: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 32px 96px;
  text-align: center;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 420px;
  height: 240px;
  border-radius: 50%;
  background: linear-gradient(
    90deg,
    rgba(255, 160, 171, 0.45) 0%,
    rgba(255, 184, 158, 0.45) 33%,
    rgba(200, 168, 229, 0.45) 66%,
    rgba(168, 181, 255, 0.45) 100%
  );
  filter: blur(80px);
  pointer-events: none;
  transform: translateY(-50%);
  z-index: 0;
  animation: hero-glow 7s ease-in-out infinite;
}
.hero::before { left: -120px; }
.hero::after  {
  right: -120px;
  animation-delay: -3.5s;
  background: linear-gradient(
    90deg,
    rgba(168, 181, 255, 0.45) 0%,
    rgba(200, 168, 229, 0.45) 33%,
    rgba(255, 184, 158, 0.45) 66%,
    rgba(255, 160, 171, 0.45) 100%
  );
}
@keyframes hero-glow {
  0%, 100% {
    opacity: 0.7;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
  }
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, #FFFFFF 1px, transparent 1px),
    linear-gradient(to bottom, #FFFFFF 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}
.hero-pill-icon-wrap {
  display: inline-block;
  padding: 2.5px;
  background: #F0F0F2;
  border: 1px solid #EDEDED;
  border-radius: 7px;
}
.hero-pill-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: 0 1.5px 2.5px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.hero-pill-text {
  display: inline-block;
}
.hero h1 {
  margin: 0 auto;
  max-width: none;
  text-wrap: balance;
  line-height: 1.2;
  padding-bottom: 0.18em;
}
.hero-line {
  overflow: visible;
}
.hero-line {
  display: block;
  background-image: linear-gradient(
    90deg,
    var(--text) 0%,
    var(--text) 43%,
    #FF6B5C 46%,
    #FFB89E 48%,
    #C8A8E5 50%,
    #A8B5FF 52%,
    var(--text) 56%,
    var(--text) 100%
  );
  background-size: 300% 100%;
  background-position: 100% 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hero-shine 5s linear infinite;
}
.hero-line:nth-child(2) {
  animation-delay: 1.5s;
}

@keyframes hero-shine {
  0%   { background-position: 100% 0; }
  30%  { background-position: 0% 0; }
  100% { background-position: 0% 0; }
}
.hero-sub {
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  color: var(--muted);
  max-width: 640px;
  margin: -12px auto 0;
  text-wrap: balance;
}
.hero-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

/* ---------- Section primitives ---------- */
section { padding: 80px 32px 156px; }

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: 0;
}

.process-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 48px;
}
.process-header .process-title { max-width: 22ch; }
.process-header .process-sub {
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  color: var(--muted);
  max-width: 720px;
}

/* Centered header variant */
.process-header.centered {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding-bottom: 56px;
}
.process-header.centered .process-title {
  max-width: 32ch;
  margin: 0 auto;
}
.process-header.centered .process-sub {
  max-width: 760px;
  margin: 0 auto;
}

/* ---------- Logos ticker (Trusted by) ---------- */
.logos-wrap {
  padding: 24px 0 96px;
  text-align: center;
}
.logos-eyebrow {
  display: block;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted-2);
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 28px;
}
.logos-viewport {
  --mask-edge: 80px;
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 var(--mask-edge),
    #000 calc(100% - var(--mask-edge)),
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 var(--mask-edge),
    #000 calc(100% - var(--mask-edge)),
    transparent
  );
}
.logos-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: logos-ticker 36s linear infinite;
}
.logo-cell {
  flex: 0 0 auto;
  padding: 0 36px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0.85;
}
.logo-image {
  height: 30px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
/* Keep WKO + OMR at the original (smaller) size */
.logo-image[src$="OMR.svg"],
.logo-image[src$="WKO.svg"] {
  height: 22px;
}
@keyframes logos-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logos-track { animation: none; }
}

/* ---------- Service sections (alternating feature rows) ---------- */
.service { padding: 80px 32px 156px; }
.service.tight-below { padding-bottom: 88px; }
.service.tight-above { padding-top: 88px; }

#features .process-header.centered { padding-bottom: 120px; }
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: stretch;
}
.service-row.reverse .service-visual { order: -1; }

.service-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  padding: 0;
}
.service-text h2 {
  font-size: 28px;
  line-height: 36px;
  letter-spacing: -0.022em;
  font-weight: 500;
  margin-bottom: 16px;
  max-width: 22ch;
}

.service-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 16px;
}

.service-foot {
  /* line is between title and list now, see .service-foot-title */
}
.service-foot-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: #646464;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #EFEFEF;
}
.service-feat-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.service-feat-list li {
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
}
.service-text p {
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  color: var(--muted);
  max-width: 44ch;
}

/* Benefit items (icon + bold title + short benefit) */
.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.benefit-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
/* Erfolgsgarantie section: tighter gap between subtitle and benefit items */
.territory .service-text { justify-content: flex-start; }
.territory .service-foot { margin-top: 28px; }
/* Center the DACH illustration vertically against the text column */
.territory .service-row { align-items: center; }
.benefit-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.benefit-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 3px;
}
.service-text .benefit-desc {
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
  margin: 0;
  max-width: 40ch;
}

/* Service visual */
.service-visual {
  background: transparent;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1.4 / 1;
}
.service-visual svg,
.service-visual img,
.service-visual video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* Bleed: visual extends into the white side margin beyond .frame (max 1200px) */
.service-row > .service-visual {
  margin-right: max(-200px, min(0px, calc((1200px - 100vw) / 2)));
}
.service-row.reverse > .service-visual {
  margin-right: 0;
  margin-left: max(-200px, min(0px, calc((1200px - 100vw) / 2)));
}

/* ---------- Process grid (Problems) ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 -32px;
}
.process-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.process-card {
  display: flex;
  flex-direction: column;
  padding: 56px 32px;
}

.process-card.has-image {
  padding: 24px 8px 40px;
  text-align: left;
  align-items: stretch;
}
.process-card.has-image .process-card-title {
  margin-bottom: 2px;
}
.process-card.has-image .process-card-desc {
  max-width: none;
}

/* Problems section: title left, subtitle right, top-aligned, reduced padding */
#problems .process-header,
#solution-2 .process-header {
  padding-bottom: 24px;
  align-items: flex-start;
}
#problems .process-header .process-sub,
#solution-2 .process-header .process-sub {
  text-align: right;
}
#problems .process-title,
#solution-2 .process-title {
  max-width: none;
}

/* Problem cards: text indented to align with section title */
.process-card.has-image > .process-card-num,
.process-card.has-image > .process-card-title,
.process-card.has-image > .process-card-desc {
  padding-left: 24px;
}

/* Skeleton bar shimmer */
.skeleton-bar {
  animation: skeleton-shimmer 2.4s ease-in-out infinite;
}
@keyframes skeleton-shimmer {
  0%, 100% { fill: #EFF1F4; }
  50% { fill: #DDE1E5; }
}

/* Blob gradient pulse */
.blob-pulse {
  transform-origin: 160px 152px;
  animation: blob-breathe 5s ease-in-out infinite;
}
@keyframes blob-breathe {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-bar,
  .blob-pulse { animation: none; }
}
.card-image {
  width: 100%;
  background: var(--mockup-pad);
  border-radius: 12px;
  aspect-ratio: 3 / 2;
  margin-bottom: 28px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-image.is-clean,
.card-image.is-tabs {
  background: transparent;
  border-radius: 0;
  position: relative;
}
.card-image.is-tabs {
  -webkit-mask-image:
    linear-gradient(to right, #000 70%, transparent 100%),
    linear-gradient(to bottom, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, #000 70%, transparent 100%),
    linear-gradient(to bottom, #000 70%, transparent 100%);
  mask-composite: intersect;
}

/* Hover swap: tab decoration follows hovered tab */
.tabs-svg .tab { cursor: pointer; }
.tabs-svg .tab-blobs,
.tabs-svg .tab-front {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.tabs-svg .tab-blobs-3,
.tabs-svg .tab-front-3 { opacity: 1; }

.tabs-svg .tab-content {
  opacity: 0.2;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.tabs-svg .tab-content-3 { opacity: 1; }

.tabs-svg:has(.tab-1:hover) .tab-blobs-1,
.tabs-svg:has(.tab-1:hover) .tab-front-1 { opacity: 1; }
.tabs-svg:has(.tab-1:hover) .tab-content-1 { opacity: 1; }
.tabs-svg:has(.tab-1:hover) .tab-blobs-3,
.tabs-svg:has(.tab-1:hover) .tab-front-3 { opacity: 0; }
.tabs-svg:has(.tab-1:hover) .tab-content-3 { opacity: 0.2; }

.tabs-svg:has(.tab-2:hover) .tab-blobs-2,
.tabs-svg:has(.tab-2:hover) .tab-front-2 { opacity: 1; }
.tabs-svg:has(.tab-2:hover) .tab-content-2 { opacity: 1; }
.tabs-svg:has(.tab-2:hover) .tab-blobs-3,
.tabs-svg:has(.tab-2:hover) .tab-front-3 { opacity: 0; }
.tabs-svg:has(.tab-2:hover) .tab-content-3 { opacity: 0.2; }
.card-image.is-clean::before,
.card-image.is-tabs::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(28, 29, 31, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28, 29, 31, 0.06) 1px, transparent 1px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}
.card-image.no-grid::before { display: none; }
.card-image.is-clean > svg,
.card-image.is-tabs > svg {
  position: relative;
  z-index: 1;
}

/* Chat mockup (Problem 3) */
.card-image.is-chat {
  padding: 22px 22px 0;
  align-items: flex-start;
  justify-content: stretch;
}
.chat-mock {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.chat-status {
  font-size: 11px;
  color: #9A9DA3;
  letter-spacing: 0.01em;
  transition: opacity 0.3s ease;
}
.chat-bubbles {
  width: 100%;
  padding-right: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.chat-bubble {
  max-width: min(68%, 26ch);
  width: fit-content;
  padding: 7px 12px;
  background: #FFFFFF;
  border: 1px solid #EDEDED;
  border-radius: 14px 14px 4px 14px;
  box-shadow: 0 2px 6px rgba(28, 29, 31, 0.08), 0 1px 2px rgba(28, 29, 31, 0.05);
  font-size: 12.5px;
  line-height: 1.3;
  font-weight: 500;
  color: #4A4C52;
}
.chat-bubble-alert {
  display: inline-block;
  font-weight: 500;
  background-image: linear-gradient(
    90deg,
    #202020 0%,
    #202020 38%,
    #FF4D47 50%,
    #202020 62%,
    #202020 100%
  );
  background-size: 300% 100%;
  background-position: 100% 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: chat-alert-shine 4.5s ease-in-out infinite;
}
@keyframes chat-alert-shine {
  0%   { background-position: 100% 0; }
  35%  { background-position: 0% 0; }
  70%  { background-position: 0% 0; }
  100% { background-position: 0% 0; }
}
.chat-bubble-last {
  padding: 6px 11px;
  position: relative;
  margin-bottom: 6px;
}
.chat-bubble-last::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 100%;
  height: 22px;
  background: linear-gradient(
    90deg,
    #FFA0AB 0%,
    #FFB89E 33%,
    #C8A8E5 66%,
    #A8B5FF 100%
  );
  opacity: 0.6;
  filter: blur(12px);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.chat-read {
  font-size: 10.5px;
  color: #A8ABB1;
  margin-top: 2px;
  transition: opacity 0.3s ease;
}

/* Reply bubble — hidden by default, appears on hover */
.chat-bubble-reply {
  position: absolute;
  left: 64px;
  bottom: 68px;
  max-width: none;
  width: auto;
  padding: 6px 12px;
  background: #155EEF;
  border: 1px solid #155EEF;
  border-radius: 14px 14px 14px 4px;
  color: #FFFFFF;
  font-size: 15px;
  line-height: 1.1;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(21, 94, 239, 0.22), 0 1px 2px rgba(21, 94, 239, 0.18);
  opacity: 0;
  transform: translateY(14px) scale(0.92);
  transform-origin: bottom left;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
  pointer-events: none;
}

.card-image.is-chat:hover .chat-status,
.card-image.is-chat:hover .chat-read {
  opacity: 0;
}
.card-image.is-chat:hover .chat-bubbles {
  transform: translateY(-12px);
}
.card-image.is-chat:hover .chat-bubble-reply {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 720px) {
  .card-image.is-chat { padding: 18px 18px 0; }
  .chat-bubble { font-size: 12px; max-width: 82%; }
}

/* Front card: lift up + slight rotate on hover */
.card-front {
  transform-origin: 160px 90px;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  cursor: pointer;
}
.card-front:hover {
  transform: translate(0, -8px) rotate(2deg);
}

/* Back cards: interactive on hover - slide out further */
.card-back {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  cursor: pointer;
}
.card-back-left {
  transform: translate(-22px, 0) rotate(-3deg);
}
.card-back-left:hover {
  transform: translate(-48px, 4px) rotate(-7deg);
}
.card-back-right {
  transform: translate(22px, 0) rotate(3deg);
}
.card-back-right:hover {
  transform: translate(48px, 4px) rotate(7deg);
}
.card-image svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- Features split (Solution: tabbed ticker) ---------- */
.features-section { padding: 80px 32px 156px; }
.features-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 72px;
  align-items: start;
}
.features-left {
  display: flex;
  flex-direction: column;
}

.features-progress {
  display: flex;
  gap: 6px;
  margin: 0 0 16px;
}
.progress-dot {
  position: relative;
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  overflow: hidden;
}
.progress-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--text);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}
.progress-dot.is-active::after {
  animation: dot-fill 8s linear forwards;
  animation-play-state: paused;
}
.features-section.ticker-running .progress-dot.is-active::after {
  animation-play-state: running;
}
@keyframes dot-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ===== Outreach illustration — fading colorway pulses through the connector lines ===== */
.ou-flow {
  fill: none;
  stroke: url(#ou-flow-grad);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 18 100;
}
.ou-flow-1 { animation: ou-flow-move 3s linear infinite; }
.ou-flow-2 { animation: ou-flow-move 3s linear infinite; animation-delay: -1s; }
.ou-flow-3 { animation: ou-flow-move 3s linear infinite; animation-delay: -2s; }
@keyframes ou-flow-move {
  from { stroke-dashoffset: 18; }
  to   { stroke-dashoffset: -100; }
}
@media (prefers-reduced-motion: reduce) {
  .ou-flow { animation: none; opacity: 0; }
}


.features-tabs {
  display: flex;
  flex-direction: column;
}
/* Per-tab video — only shown on mobile (stacked layout); hidden on desktop */
.feature-tab-media { display: none; }
.feature-tab {
  position: relative;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  cursor: pointer;
  font: inherit;
  color: var(--muted);
  transition: color 0.2s ease;
}
.feature-tab:first-child {
  border-top: none;
  padding-top: 0;
}
.feature-tab:hover { color: var(--text); }
.feature-tab-title {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
  color: inherit;
  transition: color 0.2s ease;
}
.feature-tab.is-active { color: var(--text); }
.feature-tab.is-active .feature-tab-title { color: var(--text); }
.feature-tab-desc {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}
.feature-tab.is-active .feature-tab-desc {
  max-height: 160px;
  opacity: 1;
  padding-top: 6px;
}
.feature-tab-desc p {
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
  margin: 0;
  max-width: 44ch;
}

/* Image stack (right side) */
.features-right { min-width: 0; }
.features-image-stack {
  display: grid;
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.feature-image {
  grid-area: 1 / 1;
  background: #FFFFFF;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.feature-image.is-active { opacity: 1; }
.feature-image svg,
.feature-image img,
.feature-image video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ---------- Process card text ---------- */
.process-card-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 16px;
}

.process-card-title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.process-card-desc {
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  color: var(--muted);
}

/* ---------- Vergleich (comparison table) ---------- */
.vergleich {
  padding: 80px 32px 80px;
  background: #F8F8F8;
  /* Match inter-section spacing: add white margin around the gray block so the
     gap between the gray fill and the white sections above/below feels like
     the gap between any two regular sections. */
  margin-top: 80px;
  margin-bottom: 80px;
  /* Extend background to viewport edges, keep content within frame */
  margin-left: min(0px, calc((1200px - 100vw) / 2));
  margin-right: min(0px, calc((1200px - 100vw) / 2));
  padding-left: max(20px, calc((100vw - 1200px) / 2 + 32px));
  padding-right: max(20px, calc((100vw - 1200px) / 2 + 32px));
}

.vergleich-quote {
  margin-top: 12px;
  font-size: 13px;
  font-style: italic;
  color: var(--muted-2);
}

.compare-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 0;
  overflow-x: auto;
  position: relative;
}

.compare-table {
  display: flex;
  flex-direction: column;
  min-width: 720px;
  position: relative;
}

/* The floating white "spotlight" for the recruitpilot column */
.compare-table::before {
  content: '';
  position: absolute;
  left: 36%;
  width: 18%;
  top: -8px;
  bottom: -20px;
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.03),
    0 4px 12px rgba(0, 0, 0, 0.03);
  z-index: 0;
  pointer-events: none;
}

.compare-row {
  display: grid;
  grid-template-columns: 36% 18% 11.5% 11.5% 11.5% 11.5%;
  align-items: stretch;
  position: relative;
  z-index: 1;
  border-top: 1px solid #F2F2F4;
}
.compare-row:first-child { border-top: none; }

.compare-cell {
  padding: 18px 12px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.compare-cell:first-child {
  justify-content: flex-start;
  text-align: left;
  font-weight: 500;
  color: var(--text);
  font-size: 14px;
}
.compare-feat {
  padding-left: 24px;
}

/* Header row */
.compare-head {
  border-top: none;
}
.compare-head .compare-cell {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
  padding: 20px 12px;
}

/* recruitpilot column */
.compare-rp {
  position: relative;
}
.compare-head .compare-rp {
  padding: 24px 12px;
}
.compare-rp-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.compare-rp-card svg path {
  fill: var(--text);
}

/* Icon styles — clean checkmark, no circle bg */
.ic-check,
.ic-x,
.ic-dash {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ic-check {
  width: 18px;
  height: 18px;
  position: relative;
}
.ic-check::after {
  content: '';
  display: block;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) translate(1px, -1px);
}
.ic-check.muted::after {
  border-color: rgba(28, 29, 31, 0.22);
}
.ic-x {
  width: 14px;
  height: 14px;
  position: relative;
  opacity: 0.28;
}
.ic-x::before,
.ic-x::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 14px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
}
.ic-x::before { transform: rotate(45deg); }
.ic-x::after  { transform: rotate(-45deg); }
.ic-dash {
  font-size: 16px;
  color: var(--muted-2);
  line-height: 1;
}

/* ---------- Gebietsschutz ---------- */
.territory { padding: 120px 32px 120px; }

.territory-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* No bleed for this section — keep the visual contained */
.territory .service-row > .service-visual,
.territory .service-row.reverse > .service-visual {
  margin-left: 0;
  margin-right: 0;
}

.territory .service-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.territory .service-visual svg {
  width: 78%;
  max-width: 380px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 720px) {
  .territory { padding: 80px 20px; }
}

/* ---------- Erfolgsgarantie ---------- */
.guarantee { padding: 120px 32px 120px; }

.guarantee-inner {
  background: #F8F8F8;
  border: 1px solid #EDEDED;
  border-radius: 24px;
  padding: 56px 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.guarantee-inner::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -100px;
  height: 120px;
  background: linear-gradient(to right, #FFA0AB, #FFB89E, #C8A8E5, #A8B5FF, #FFA0AB);
  background-size: 200% 100%;
  background-position: 0% 0%;
  filter: blur(50px);
  opacity: 0.45;
  border-radius: 50%;
  pointer-events: none;
  animation: guarantee-blur-drift 14s ease-in-out infinite;
}

@keyframes guarantee-blur-drift {
  0%, 100% {
    background-position: 0% 0%;
    transform: translateX(-12px) scale(1);
    opacity: 0.38;
  }
  50% {
    background-position: 100% 0%;
    transform: translateX(12px) scale(1.06);
    opacity: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guarantee-inner::after { animation: none; }
}

.guarantee-col {
  padding: 32px 48px;
  position: relative;
  z-index: 1;
}
.guarantee-col + .guarantee-col {
  border-left: 1px solid #E4E7EC;
}

.guarantee-eyebrow {
  display: inline-block;
  font-family: inherit;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 14px;
}

.guarantee-headline {
  font-size: 28px;
  line-height: 36px;
  letter-spacing: -0.022em;
  font-weight: 500;
  color: var(--text);
  margin: 0;
  max-width: none;
}
.guarantee-headline-muted {
  color: var(--text);
}

.guarantee-icon-wrap {
  display: inline-block;
  padding: 4px;
  background: #F0F0F2;
  border: 1px solid #EDEDED;
  border-radius: 12px;
  margin-bottom: 24px;
}

.guarantee-icon {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.guarantee-item-title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 12px;
}

.guarantee-item-desc {
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 768px) {
  .guarantee { padding: 64px 20px 24px; }
  .guarantee-inner {
    grid-template-columns: 1fr;
    padding: 32px 0;
  }
  .guarantee-col { padding: 24px 28px; }
  .guarantee-col + .guarantee-col {
    border-left: none;
    border-top: 1px solid #E4E7EC;
  }
}

/* ---------- FAQ ---------- */
.faq .process-header { padding-bottom: 32px; }
.faq-list {
  display: flex;
  flex-direction: column;
  max-width: 720px;
  margin: 0 auto;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.15s ease;
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  width: 16px; height: 16px;
  flex-shrink: 0;
  color: var(--muted-2);
  transition: transform 0.2s ease, color 0.15s ease;
}
.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.faq-answer-inner {
  padding: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
  max-width: 56ch;
}

/* ---------- Final CTA ---------- */
.cta-section {
  padding: 24px 32px 156px;
  text-align: center;
}
.cta-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cta-inner .section-eyebrow { margin-bottom: 0; }
.cta-title {
  font-size: 28px;
  line-height: 36px;
  letter-spacing: -0.02em;
  font-weight: 500;
  max-width: 22ch;
}
.cta-sub {
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  color: var(--muted);
  max-width: 600px;
}
.cta-section .btn { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 0 0 56px;
  font-size: 13px;
  color: var(--muted);
  background: linear-gradient(to bottom, #F8F8F8 0%, #FFFFFF 100%);
}
.site-footer .cta-section {
  padding: 96px 32px 96px;
  background: transparent;
}
.site-footer .footer-inner {
  padding-top: 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 72px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.footer-brand p {
  margin-top: 10px;
  color: var(--muted);
  max-width: 36ch;
}
.footer-col h5 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 12px;
  color: var(--muted-2);
  gap: 16px;
  flex-wrap: wrap;
}
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.footer-social a:hover {
  color: var(--text);
  border-color: var(--text);
}

/* ---------- Per-word title animation ---------- */
.anim-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  filter: blur(6px);
  transition:
    opacity 0.45s ease-out,
    transform 0.45s ease-out,
    filter 0.45s ease-out;
}
.anim-words-host.in .anim-word {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ---------- Focus state ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .anim-word { opacity: 1; transform: none; filter: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-line {
    animation: none;
    background: none;
    -webkit-text-fill-color: var(--text);
  }
}

/* ==========================================================================
   Mobile (≤ 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .frame { margin: 0 16px; }

  /* Nav */
  .top-nav { padding: 12px 20px; }
  .nav-links, .nav-cta, .nav-cta-group { display: none; }
  .nav-menu-btn { display: flex; }
  .mobile-menu { padding: 12px 20px 20px; }

  /* Hero */
  .hero { padding: 56px 20px 40px; }
  .hero-inner { gap: 16px; }
  h1 { font-size: 40px; line-height: 44px; }
  /* Hero title: shrink so it stays 2 lines on phones */
  .hero h1 { font-size: clamp(20px, 6vw, 28px); line-height: 1.2; }
  h2 { font-size: 24px; line-height: 30px; }
  .service-text h2 { font-size: 24px; line-height: 30px; }
  .cta-title { font-size: 24px; line-height: 30px; }
  .process-title { font-size: 22px; line-height: 28px; }
  .hero::before,
  .hero::after {
    width: 170px;
    height: 140px;
    filter: blur(45px);
  }
  .hero::before { left: -100px; }
  .hero::after  { right: -100px; }

  /* Section padding */
  section { padding: 64px 20px 24px; }
  .service { padding: 64px 20px 24px; }
  .vergleich { padding: 64px 20px 24px; }

  /* Process header stacks */
  .process-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 32px;
  }
  .process-header.centered {
    align-items: center;
    text-align: center;
    padding-bottom: 40px;
  }

  /* Problem & Solution sections: everything centered on mobile */
  #problems .process-header,
  #solution-2 .process-header {
    align-items: center;
    text-align: center;
  }
  #problems .process-header .process-sub,
  #solution-2 .process-header .process-sub { text-align: center; }
  #problems .process-title,
  #solution-2 .process-title { text-align: center; }
  /* No forced line breaks in these subtitles on mobile */
  #problems .process-sub br,
  #solution-2 .process-sub br { display: none; }
  #problems .process-card.has-image,
  #solution-2 .process-card.has-image {
    padding: 16px 4px 32px;
    text-align: center;
    align-items: center;
  }
  #problems .process-card.has-image > .process-card-num,
  #problems .process-card.has-image > .process-card-title,
  #problems .process-card.has-image > .process-card-desc,
  #solution-2 .process-card.has-image > .process-card-num,
  #solution-2 .process-card.has-image > .process-card-title,
  #solution-2 .process-card.has-image > .process-card-desc {
    padding-left: 0;
  }
  #problems .process-card-desc,
  #solution-2 .process-card-desc { max-width: 40ch; }

  /* Grids collapse */
  .service-row { grid-template-columns: 1fr; gap: 32px; align-items: stretch; }
  .service-row.reverse .service-visual { order: 0; }
  .service-text { gap: 48px; padding: 0; }
  .service-num { margin-bottom: 20px; }
  .service-feat-list { grid-template-columns: 1fr; gap: 12px; }

  /* Erfolgsgarantie section: center title + subtitle, tighten gap to bullets */
  .territory .service-text {
    text-align: center;
    align-items: center;
    gap: 0;
  }
  .territory .service-text-top { align-items: center; }
  .territory .service-text p { margin-left: auto; margin-right: auto; }
  .territory .service-foot { margin-top: 16px; width: 100%; }
  .territory .benefit-list { align-items: center; }
  /* Icon centered above each bullet point */
  .territory .benefit-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .process-grid,
  .process-grid.cols-4 {
    grid-template-columns: 1fr;
    margin: 0;
    gap: 16px;
  }
  .process-card {
    padding: 32px 20px;
  }
  .process-card.has-image {
    padding: 20px 20px 32px;
  }

  /* Features ("Dein nächster Mitarbeiter"): each point shows its own video
     directly under its text, everything centered. */
  .features-section { padding: 64px 20px 24px; }
  .features-split {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .features-right { display: none; }
  .features-progress { display: none; }
  .feature-tab {
    padding: 26px 0 4px;
    text-align: center;
    cursor: default;
    border-top: none;
  }
  .feature-tab:first-child { padding-top: 0; }
  .feature-tab-title { font-size: 18px; color: var(--text); }
  /* Always show each description on mobile */
  .feature-tab-desc { max-height: none; opacity: 1; padding-top: 8px; }
  .feature-tab-desc p { max-width: 42ch; margin: 0 auto; }
  /* Per-point video, stacked right under the text */
  .feature-tab-media {
    display: block;
    margin: 16px 0 8px;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border);
  }
  .feature-tab-media video { width: 100%; height: auto; display: block; }

  /* Trust logo ticker: closer spacing, less aggressive edge fade */
  .logos-wrap { padding: 16px 0 56px; }
  .logos-eyebrow { margin-bottom: 18px; }
  .logos-viewport { --mask-edge: 24px; }
  .logo-cell { padding: 0 16px; gap: 8px; }
  .logo-image { height: 26px; }
  .logo-image[src$="OMR.svg"],
  .logo-image[src$="WKO.svg"] { height: 19px; }

  /* Vergleich on mobile: gray block bleeds to the screen edges */
  .vergleich {
    margin-left: -16px;
    margin-right: -16px;
    margin-top: 48px;
    margin-bottom: 48px;
    padding: 56px 16px 56px;
  }
  .vergleich .process-sub br { display: none; }
  /* allow horizontal scroll, wider columns so headers fit without ugly breaks */
  .compare-wrap { margin: 0 -4px; }
  .compare-table { min-width: 820px; }
  .compare-cell { padding: 14px 8px; font-size: 12px; }
  /* first column entries a touch smaller */
  .compare-cell:first-child { font-size: 12px; }
  .compare-feat { padding-left: 14px; }
  .compare-rp-card { font-size: 11px; padding: 6px 10px; }
  /* comparison column headers: wrap only at spaces (no mid-word break) */
  .compare-head .compare-comp {
    font-size: 11.5px;
    line-height: 1.25;
    padding: 16px 6px;
  }

  /* CTA */
  .cta-section { padding: 64px 20px 64px; }

  /* Footer */
  .site-footer { padding: 40px 0 40px; }
  .footer-inner { padding: 0 20px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Blog page
   ========================================================================== */

/* Hero */
.blog-hero {
  padding: 96px 32px 56px;
  text-align: center;
}
.blog-hero-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.blog-hero-title {
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0;
  max-width: none;
  padding-bottom: 0.1em;
}
.blog-hero-title .hero-line {
  display: block;
  white-space: nowrap;
}
.blog-hero-sub {
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: var(--muted);
  margin: 0;
  max-width: 56ch;
}

/* Featured article */
.blog-featured {
  padding: 24px 32px 88px;
  max-width: 1200px;
  margin: 0 auto;
}
.blog-featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: stretch;
  text-decoration: none;
  color: var(--text);
}
.blog-featured-image {
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  min-height: 0;
  background: #F4F5F7;
  border: 1px solid #ECEDF0;
}
.blog-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-featured-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
}
.blog-featured-title {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}
.blog-featured-desc {
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  color: var(--muted);
  margin: 0;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
  font-size: 13px;
}
.blog-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.blog-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  flex-shrink: 0;
  border: 1px solid #ECEDF0;
  object-fit: cover;
  display: block;
}
.blog-author-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.25;
}
.blog-author-name {
  font-weight: 500;
  color: var(--text);
  font-size: 13px;
}
.blog-author-role {
  font-size: 11.5px;
  color: var(--muted);
}
.blog-meta-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
}
.blog-date {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.blog-meta-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #155EEF;
  font-size: 13px;
  font-weight: 500;
  transition: gap 0.2s ease;
}
.blog-featured-card:hover .blog-meta-cta { gap: 6px; }

/* Tag pill */
.blog-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
  background: #FFFFFF;
  border: 1px solid #E2E3E7;
  border-radius: 6px;
  line-height: 1.3;
}

/* Article grid */
.blog-grid-wrap {
  padding: 24px 32px 120px;
  max-width: 1200px;
  margin: 0 auto;
}
.blog-grid-wrap .process-header.centered { padding-bottom: 56px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
}

/* Card visual: a stylised pastel-gradient pattern as placeholder for missing
   per-article images. Each variant uses different colors from the palette. */
.blog-card-visual {
  aspect-ratio: 16 / 9;
  background: #F4F5F7;
  border: 1px solid #ECEDF0;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.blog-visual-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right,  rgba(28,29,31,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28,29,31,0.06) 1px, transparent 1px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
  pointer-events: none;
}
.blog-visual-pattern::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -22%;
  width: 78%;
  height: 70%;
  transform: translateX(-50%);
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.55;
}
.blog-visual-1::after { background: linear-gradient(90deg, #FFA0AB, #FFB89E); }
.blog-visual-2::after { background: linear-gradient(90deg, #FFB89E, #C8A8E5); }
.blog-visual-3::after { background: linear-gradient(90deg, #C8A8E5, #A8B5FF); }
.blog-visual-4::after { background: linear-gradient(90deg, #A8B5FF, #FFA0AB); }
.blog-visual-5::after { background: linear-gradient(90deg, #FFC5AB, #D5BBEF); }
.blog-visual-6::after { background: linear-gradient(90deg, #B5C0FF, #FFB5BC); }

.blog-card-body {
  padding: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}
.blog-card-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-desc {
  font-size: 13.5px;
  font-weight: 400;
  line-height: 21px;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  padding-top: 6px;
}
.blog-card-meta .blog-tag {
  margin-left: auto;
  font-size: 10.5px;
  padding: 2px 8px;
}
.blog-card-avatar {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid #ECEDF0;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.blog-card-author { color: var(--text); font-weight: 500; }
.blog-card-dot {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #C8CCD2;
}
.blog-card-date { color: var(--muted); }

/* "Current" page link styling (Blog navlink active) */
.nav-link-dropdown.is-current { color: var(--text); }
.nav-link-dropdown.is-current .nav-chevron { opacity: 1; }

/* Responsive */
@media (max-width: 980px) {
  .blog-featured-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 20px;
  }
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 18px; }
}
@media (max-width: 640px) {
  .blog-hero { padding: 72px 20px 40px; }
  .blog-featured { padding: 16px 20px 56px; }
  /* Clean symmetric padding (no extra card padding) so the featured card
     lines up with the article grid below */
  .blog-featured-card { padding: 0; gap: 20px; }
  .blog-grid-wrap { padding: 16px 20px 80px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-featured-body { padding: 0; }
  .blog-meta { flex-wrap: wrap; gap: 12px; }
  .blog-meta-cta { margin-left: 0; }
}

/* ==========================================================================
   Article page (single blog post)
   ========================================================================== */

.article-page {
  padding-top: 0;
}

.article-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 32px 96px;
}

.article-header {
  max-width: 1100px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 8px;
  transition: color 0.15s ease, gap 0.2s ease;
}
.article-back:hover { color: var(--text); gap: 8px; }

.article-tag { margin: 0; }

.article-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0;
  max-width: 22ch;
  text-wrap: balance;
  padding-bottom: 0.1em;
}

.article-lede {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  max-width: 60ch;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.article-meta-item { color: var(--muted); }

.article-cover {
  max-width: 1100px;
  margin: 0 auto 64px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #ECEDF0;
  aspect-ratio: 21 / 9;
  background: #F4F5F7;
}
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 64px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: flex-start;
}

/* TOC */
.article-toc {
  position: sticky;
  top: 96px;
}
.article-toc-inner {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #FBFBFC;
}
.article-toc-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.article-toc ol {
  list-style: none;
  counter-reset: toc;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-toc ol li {
  counter-increment: toc;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.article-toc ol li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted-2);
  padding-top: 1px;
  flex-shrink: 0;
}
.article-toc ol li a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
  transition: color 0.15s ease;
}
.article-toc ol li a:hover { color: var(--text); }

/* Body */
.article-body {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
}
.article-body > * + * { margin-top: 1.1em; }

.article-body h2 {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 64px;
  margin-bottom: 0.5em;
  scroll-margin-top: 96px;
  max-width: none;
}
.article-body h3 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-top: 36px;
  margin-bottom: 0.4em;
}
.article-body h2:first-child,
.article-body h3:first-child { margin-top: 0; }

.article-body p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
}
.article-body p strong { color: var(--text); font-weight: 600; }
.article-body p em { font-style: italic; }

.article-body ul,
.article-body ol {
  padding-left: 1.4em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}
.article-body li::marker { color: var(--muted-2); }
.article-body li strong { font-weight: 600; }

/* Inline callout */
.article-callout {
  background: #F8F8F8;
  border: 1px solid #EDEDED;
  border-left: 3px solid #155EEF;
  border-radius: 10px;
  padding: 18px 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  margin-top: 1.4em;
}
.article-callout strong { color: var(--text); font-weight: 600; }

/* Inline CTA card */
.article-cta-inline {
  background: #FAFBFC;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  margin-top: 2em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.article-cta-inline h4 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}
.article-cta-inline p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.article-cta-inline .btn { margin-top: 6px; }

/* FAQ accordion */
.article-faq {
  display: flex;
  flex-direction: column;
  margin-top: 1.2em;
  border-top: 1px solid var(--border);
}
.article-faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.article-faq-item summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.article-faq-item summary::-webkit-details-marker { display: none; }
.article-faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--muted-2);
  transition: transform 0.2s ease, color 0.15s ease;
  flex-shrink: 0;
}
.article-faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--text);
}
.article-faq-item p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 980px) {
  .article-layout { grid-template-columns: 1fr; gap: 32px; }
  .article-toc {
    position: static;
    margin-bottom: 0;
  }
  .article-cover { aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .article-wrap { padding: 32px 20px 64px; }
  .article-title {
    font-size: 25px;
    line-height: 1.22;
    max-width: none;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .article-cover { margin-bottom: 40px; }
  .article-body { font-size: 15.5px; }
  .article-body h2 { font-size: 22px; margin-top: 44px; }
  .article-body h3 { font-size: 17px; margin-top: 28px; }
}

/* ==========================================================================
   Bereiche page
   ========================================================================== */

.bereiche-hero {
  padding: 96px 32px 56px;
  text-align: center;
}
.bereiche-hero-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.bereiche-hero-title {
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0;
  max-width: none;
  padding-bottom: 0.1em;
}
.bereiche-hero-title .hero-line {
  display: block;
  white-space: nowrap;
}
.bereiche-hero-sub {
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: var(--muted);
  margin: 0;
  max-width: 60ch;
}

/* Stacked layout — 4 sections one below the other */
.bereiche-grid-section {
  padding: 48px 32px 120px;
}
.bereiche-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
  max-width: 880px;
  margin: 0 auto;
}
.bereiche-grid-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-margin-top: 96px;
}

/* Heading row: icon + (num, title, subtitle) side-by-side, vertically centered */
.bereiche-item-head {
  display: flex;
  align-items: center;
  gap: 20px;
}
.bereiche-item-head-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

/* Double-stroke icon (same pattern as Erfolgsgarantie) */
.bereiche-icon-wrap {
  display: inline-block;
  padding: 4px;
  background: #F0F0F2;
  border: 1px solid #EDEDED;
  border-radius: 12px;
  flex-shrink: 0;
}
.bereiche-icon {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.bereiche-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.bereiche-h2 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.022em;
  font-weight: 500;
  color: var(--text);
  margin: 0;
  max-width: none;
  padding-bottom: 0.05em;
}
.bereiche-subtitle {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  margin: 0;
  letter-spacing: -0.005em;
}
.bereiche-desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: var(--muted);
  margin: 6px 0 0;
  max-width: none;
}
.bereiche-foot { margin-top: 14px; }
.bereiche-foot-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: #646464;
  padding-bottom: 14px;
  margin: 0 0 14px;
  border-bottom: 1px solid #EFEFEF;
}
.bereiche-feat-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bereiche-feat-list li {
  font-size: 14px;
  line-height: 22px;
  color: var(--muted);
}

/* Per-Bereich CTA link */
.bereiche-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 500;
  color: #155EEF;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.15s ease;
  align-self: flex-start;
}
.bereiche-cta:hover { gap: 9px; color: #0E4BB8; }
.bereiche-cta svg { flex-shrink: 0; }

@media (max-width: 880px) {
  .bereiche-grid { gap: 64px; }
  .bereiche-grid-section { padding: 40px 24px 96px; }
}
@media (max-width: 640px) {
  .bereiche-hero { padding: 72px 20px 40px; }
  .bereiche-grid-section { padding: 32px 20px 80px; }
  .bereiche-h2 { font-size: 22px; }
  .bereiche-feat-list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Individual Bereich page
   ========================================================================== */

.bereich-page { padding-top: 0; }

/* Hero */
.bereich-hero { padding: 56px 32px 64px; }
.bereich-hero-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.bereich-hero .article-back {
  align-self: center;
  margin-bottom: 8px;
}
.bereich-hero-icon { align-self: center; margin: 4px 0 4px; }
.bereich-eyebrow {
  display: inline-block;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  text-transform: none;
  margin-bottom: 12px;
}
.bereich-h1 {
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.028em;
  font-weight: 500;
  color: var(--text);
  margin: 0;
  max-width: none;
  padding-bottom: 0.08em;
}
.bereich-h1 .hero-line { display: block; }
.bereich-subtitle {
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: var(--muted);
  margin: 0;
  max-width: 56ch;
}
.bereich-hero-actions {
  display: inline-flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Intro */
.bereich-intro { padding: 56px 32px; }
.bereich-intro-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.bereich-intro-title {
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.022em;
  font-weight: 500;
  color: var(--text);
  margin: 0;
  max-width: 28ch;
}
.bereich-intro-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: var(--muted);
  margin: 0;
  max-width: 70ch;
}

/* Features (2x3 grid) */
.bereich-features-section { padding: 56px 32px; }
.bereich-features-inner { max-width: 1200px; margin: 0 auto; }
.bereich-section-title {
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.022em;
  font-weight: 500;
  color: var(--text);
  margin: 0 auto 36px;
  max-width: 28ch;
  text-align: center;
}
.bereich-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
.bereich-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.bereich-feature .bereiche-icon-wrap {
  margin-bottom: 4px;
  align-self: center;
}
.bereich-feature .bereiche-icon { width: 36px; height: 36px; border-radius: 8px; }
.bereich-feature-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  margin: 0;
}
.bereich-feature-desc {
  font-size: 14px;
  line-height: 22px;
  color: var(--muted);
  margin: 0;
}

/* Use case */
.bereich-usecase-section {
  padding: 56px 32px;
}
.bereich-usecase-inner {
  max-width: 1200px;
  margin: 0 auto;
  background: #F8F8F8;
  border: 1px solid #EDEDED;
  border-radius: 20px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.bereich-usecase-kicker {
  display: inline-block;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0;
  color: var(--muted);
  text-transform: none;
}
.bereich-usecase-title {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.018em;
  font-weight: 500;
  color: var(--text);
  margin: 0;
}
.bereich-usecase-text {
  font-size: 15.5px;
  line-height: 25px;
  color: var(--muted);
  margin: 0;
  max-width: 90ch;
}

/* Other Bereiche grid */
.bereich-other-section { padding: 64px 32px 96px; }
.bereich-other-inner { max-width: 1200px; margin: 0 auto; }
.bereich-other-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bereich-other-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #FFFFFF;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.bereich-other-card:hover {
  border-color: #C8CCD2;
  background: #FBFBFC;
}
.bereich-other-card .bereiche-icon-wrap { margin: 0; padding: 3px; border-radius: 10px; }
.bereich-other-card .bereiche-icon { width: 30px; height: 30px; border-radius: 7px; }
.bereich-other-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.bereich-other-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.bereich-other-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}
.bereich-other-arrow {
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.15s ease;
}
.bereich-other-card:hover .bereich-other-arrow {
  color: var(--text);
  transform: translateX(2px);
}

@media (max-width: 880px) {
  .bereich-features { grid-template-columns: repeat(2, 1fr); }
  .bereich-other-grid { grid-template-columns: 1fr; }
  .bereich-usecase-inner { padding: 32px 24px; }
}
@media (max-width: 640px) {
  .bereich-hero { padding: 40px 20px 48px; }
  .bereich-intro,
  .bereich-features-section,
  .bereich-usecase-section,
  .bereich-other-section { padding-left: 20px; padding-right: 20px; }
  .bereich-features { grid-template-columns: 1fr; }
  .bereich-section-title { font-size: 24px; }
}

/* ==========================================================================
   Mobile refinements — consolidated patches for all pages at narrow viewports
   ========================================================================== */

@media (max-width: 720px) {
  /* Allow nowrap-locked hero lines to wrap so they never overflow narrow viewports */
  .blog-hero-title .hero-line,
  .bereiche-hero-title .hero-line,
  .bereich-h1 .hero-line {
    white-space: normal;
  }

  /* Bereiche overview page: stack icon above text, center everything */
  .bereiche-grid-section { padding: 32px 20px 64px; }
  .bereiche-grid-item { text-align: center; }
  .bereiche-item-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .bereiche-item-head-text { align-items: center; }
  .bereiche-grid-item .bereiche-icon { width: 40px; height: 40px; border-radius: 8px; }
  .bereiche-h2 { font-size: 22px; line-height: 1.22; padding-bottom: 0; }
  .bereiche-subtitle { font-size: 13.5px; }
  .bereiche-desc { font-size: 15px; line-height: 24px; }
  .bereiche-feat-list li { text-align: center; }
  .bereiche-cta { align-self: center; }

  /* Individual Bereich page hero — stack buttons full-width */
  .bereich-hero { padding: 32px 20px 40px; }
  .bereich-hero-inner { gap: 14px; }
  .bereich-h1 { font-size: 32px; line-height: 1.15; }
  .bereich-subtitle { font-size: 15px; line-height: 24px; }
  .bereich-hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    gap: 10px;
  }
  .bereich-hero-actions .btn { width: 100%; }

  /* Intro section */
  .bereich-intro { padding: 32px 20px; }
  .bereich-intro-title { font-size: 22px; max-width: none; }
  .bereich-intro-text { font-size: 15px; line-height: 24px; }

  /* Features section */
  .bereich-features-section { padding: 40px 20px; }
  .bereich-section-title { font-size: 22px; margin-bottom: 24px; }

  /* Use-case card */
  .bereich-usecase-section { padding: 32px 20px; }
  .bereich-usecase-inner { padding: 28px 20px; border-radius: 14px; }
  .bereich-usecase-title { font-size: 19px; }
  .bereich-usecase-text { font-size: 14.5px; line-height: 23px; }

  /* Other bereiche cards */
  .bereich-other-section { padding: 40px 20px 72px; }

  /* Blog index page */
  .blog-hero { padding: 56px 20px 32px; }
  .blog-hero-sub { font-size: 15px; line-height: 24px; }
  .blog-grid-wrap { padding: 8px 20px 64px; }
  .blog-card-meta { font-size: 11px; gap: 6px; }
  .blog-card-meta .blog-tag { padding: 2px 7px; font-size: 10px; }

  /* Featured card mobile */
  .blog-featured { padding: 16px 20px 48px; }
  .blog-featured-title { font-size: 21px; overflow-wrap: break-word; hyphens: auto; }
  .blog-featured-desc { font-size: 14.5px; line-height: 23px; }
  .blog-meta { gap: 10px; font-size: 12px; }
  .blog-meta-divider { display: none; }
  .blog-meta-cta { font-size: 12px; }

  /* Article single page */
  .article-wrap { padding: 24px 20px 64px; }
  .article-meta { gap: 10px; font-size: 12px; }
  .article-meta .blog-meta-divider { display: none; }
  .article-toc-inner { padding: 16px; }
  .article-toc ol li a { font-size: 12.5px; }
  .article-body { font-size: 15.5px; line-height: 1.6; }
  .article-callout { padding: 16px 18px; font-size: 14px; }
  .article-cta-inline { padding: 22px; }
  .article-cta-inline h4 { font-size: 16px; }
  .article-faq-item summary { font-size: 15px; gap: 12px; }
  .article-faq-item p { font-size: 14px; }

  /* Bereiche hero */
  .bereiche-hero { padding: 56px 20px 32px; }
  .bereiche-hero-sub { font-size: 15px; line-height: 24px; }
}

@media (max-width: 480px) {
  /* Extra-narrow — smallest phones */
  .bereiche-hero-title,
  .blog-hero-title { font-size: 28px; line-height: 1.18; }
  .bereich-h1 { font-size: 28px; }

  /* Bereiche overview: stack icon ABOVE text, centered */
  .bereiche-item-head {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  /* Article cover image — taller crop reads better at narrow width */
  .article-cover { aspect-ratio: 4 / 3; }
}


/* ==========================================================================
   Trust bar (DSGVO / DACH / SSL) — inside CTA section, below the demo button
   ========================================================================== */
.trust-bar {
  padding: 0;
  margin-top: 32px;
  border-bottom: none;
  margin-bottom: 0;
}
.trust-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 18px 28px;
}
.trust-label {
  white-space: normal;
  line-height: 1.25;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.trust-label-2 { opacity: 0.5; }
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.trust-icon-wrap {
  display: inline-block;
  padding: 3px;
  background: #F0F0F2;
  border: 1px solid #EDEDED;
  border-radius: 8px;
  flex-shrink: 0;
}
.trust-icon {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: 0 1.5px 2px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.trust-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
}
.trust-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
}

@media (max-width: 720px) {
  .trust-bar { margin-top: 24px; }
  /* 2 items in the first row, 1 in the second */
  .trust-bar-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px 18px;
  }
  /* Icon above the label so the 2-line text keeps its two lines */
  .trust-item {
    flex: 0 0 42%;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  .trust-label { align-items: center; text-align: center; }
  .trust-divider { display: none; }
}

/* ==========================================================================
   Demo booking page (demo.html)
   ========================================================================== */

.demo-page {
  overflow: hidden;
  height: 100vh;
  background: #FFFFFF;
  padding: 10px;
}
.demo-page .nav-bar,
.demo-page .mobile-menu,
.demo-page .site-footer { display: none; }

.demo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-height: calc(100vh - 20px);
  height: calc(100vh - 20px);
}

/* ===== LEFT panel (gray contained card) ===== */
.demo-left {
  position: relative;
  background: #F8F8F8;
  color: var(--text);
  border: 1px solid #F2F2F2;
  border-radius: 18px;
  padding: 48px 44px 62px 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.demo-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
}
/* Animated pastel blobs across the entire gray panel */
.demo-blob {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  filter: blur(clamp(40px, 7vmin, 90px));
  opacity: 0.4;
  border-radius: 50%;
}
/* Blob positions: spread diagonally from top-left to bottom-right */
.demo-blob-1 {
  top: -10%;
  left: -15%;
  width: 40%;
  height: 32%;
  background: linear-gradient(135deg, #FFA0AB, #FFB89E);
  animation: demo-blob-1 9s ease-in-out infinite;
}
.demo-blob-2 {
  top: 22%;
  left: 32%;
  width: 42%;
  height: 35%;
  background: linear-gradient(135deg, #FFB89E, #C8A8E5);
  animation: demo-blob-2 12s ease-in-out infinite;
  animation-delay: -4s;
}
.demo-blob-3 {
  top: 45%;
  left: 50%;
  width: 40%;
  height: 33%;
  background: linear-gradient(135deg, #C8A8E5, #A8B5FF);
  animation: demo-blob-3 11s ease-in-out infinite;
  animation-delay: -8s;
}
.demo-blob-4 {
  bottom: -10%;
  right: -12%;
  width: 46%;
  height: 38%;
  background: linear-gradient(135deg, #A8B5FF, #FFA0AB);
  animation: demo-blob-4 8s ease-in-out infinite;
  animation-delay: -2s;
}
.demo-blob-5 {
  bottom: -12%;
  left: -15%;
  width: 36%;
  height: 32%;
  background: linear-gradient(135deg, #FF6B5C, #C8A8E5);
  animation: demo-blob-5 10s ease-in-out infinite;
  animation-delay: -6s;
}

@keyframes demo-blob-1 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    border-radius: 60% 40% 55% 45% / 55% 45% 55% 45%;
  }
  33% {
    transform: translate(80px, 60px) rotate(12deg) scale(1.18);
    border-radius: 45% 55% 40% 60% / 50% 60% 40% 50%;
  }
  66% {
    transform: translate(130px, 20px) rotate(-8deg) scale(1.3);
    border-radius: 55% 45% 60% 40% / 45% 55% 55% 45%;
  }
}
@keyframes demo-blob-2 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    border-radius: 50%;
  }
  33% {
    transform: translate(-90px, 80px) rotate(-15deg) scale(0.88);
    border-radius: 40% 60% 55% 45% / 60% 40% 60% 40%;
  }
  66% {
    transform: translate(-140px, -50px) rotate(20deg) scale(1.2);
    border-radius: 55% 45% 50% 50% / 50% 50% 55% 45%;
  }
}
@keyframes demo-blob-3 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    border-radius: 50% 50% 60% 40%;
  }
  33% {
    transform: translate(70px, -60px) rotate(10deg) scale(1.15);
    border-radius: 60% 40% 45% 55% / 55% 50% 50% 45%;
  }
  66% {
    transform: translate(140px, -100px) rotate(-12deg) scale(0.95);
    border-radius: 40% 60% 50% 50% / 50% 40% 60% 50%;
  }
}
@keyframes demo-blob-4 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    border-radius: 55% 45% 60% 40% / 60% 50% 50% 40%;
  }
  33% {
    transform: translate(-70px, 110px) rotate(22deg) scale(1.3);
    border-radius: 40% 60% 45% 55% / 45% 55% 55% 45%;
  }
  66% {
    transform: translate(50px, 140px) rotate(-18deg) scale(1.1);
    border-radius: 60% 40% 55% 45% / 55% 60% 40% 45%;
  }
}
@keyframes demo-blob-5 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    border-radius: 50% 50% 55% 45% / 55% 50% 50% 45%;
  }
  33% {
    transform: translate(60px, -40px) rotate(-12deg) scale(1.15);
    border-radius: 55% 45% 50% 50% / 50% 60% 40% 50%;
  }
  66% {
    transform: translate(-60px, -80px) rotate(15deg) scale(0.92);
    border-radius: 45% 55% 55% 45% / 60% 40% 60% 40%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-blob { animation: none; }
}

/* White dot-grid overlay on top of the gradients */
.demo-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.6) 1px,
    transparent 1.4px
  );
  background-size: 22px 22px;
  background-position: 11px 11px;
  pointer-events: none;
  z-index: 1;
}

.demo-left > * { position: relative; z-index: 2; }
.demo-left > .demo-blob { position: absolute; z-index: 0; }

/* Highlighted dot-grid rectangles: each box-shadow is a 22×22 filled cell.
   Base element at (0,0) = grid origin; dots are at multiples of 22px.
   Each shadow offset (col×22, row×22) places corners exactly on dots. */
.demo-left::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  background: transparent;
  pointer-events: none;
  z-index: 1;
  box-shadow:
     22px  66px 0 0 rgba(255,255,255,0.4),
    264px 198px 0 0 rgba(255,255,255,0.4),
    616px 132px 0 0 rgba(255,255,255,0.4),
    440px 308px 0 0 rgba(255,255,255,0.4),
    638px 352px 0 0 rgba(255,255,255,0.4),
     44px 528px 0 0 rgba(255,255,255,0.4),
    352px 440px 0 0 rgba(255,255,255,0.4),
     88px 704px 0 0 rgba(255,255,255,0.4),
    528px 660px 0 0 rgba(255,255,255,0.4),
    330px 748px 0 0 rgba(255,255,255,0.4),
    220px 836px 0 0 rgba(255,255,255,0.4),
    660px 880px 0 0 rgba(255,255,255,0.4);
}

.demo-logo {
  position: absolute;
  top: 24px;
  left: 28px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 16px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.demo-logo svg { color: var(--text); }


.demo-h1 {
  font-size: clamp(24px, 2.9vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0;
  max-width: none;
  padding-bottom: 0.1em;
}
.demo-h1-line {
  display: block;
}
.demo-h1-line.is-muted { color: rgba(28, 29, 31, 0.32); }
.demo-h1-line.is-white { color: var(--text); }
.demo-h1-line.is-accent {
  background: linear-gradient(
    90deg,
    #FF6B5C 0%,
    #FFB89E 28%,
    #C8A8E5 56%,
    #A8B5FF 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Testimonial: frosted-glass card sitting on top of the animated gradients */
.demo-testimonial {
  position: relative;
  padding: 22px 24px 20px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid #FFFFFF;
  border-radius: 14px;
  margin: 0;
  max-width: 520px;
  box-shadow: 0 1px 2px rgba(28, 29, 31, 0.04);
}
.demo-quote-mark {
  position: absolute;
  top: 20px;
  right: 20px;
  color: rgba(28, 29, 31, 0.16);
}
.demo-testimonial blockquote {
  font-size: 15px;
  line-height: 23px;
  color: var(--text);
  margin: 0 0 16px;
  font-weight: 400;
  text-align: left;
}
.demo-testimonial-author {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: 0;
}
.demo-testimonial-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.demo-testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.3;
}
.demo-testimonial-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
}
.demo-testimonial-role {
  font-size: 12px;
  color: var(--muted);
}

/* Trust ticker — absolute so demo-main centers in the full panel height */
.demo-trust {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  z-index: 2;
  margin: 0;
  padding-top: 0;
  border-top: none;
}
.demo-trust .logos-viewport {
  --mask-edge: 60px;
  padding: 8px 0;
}
.demo-trust .logos-track {
  /* slower than the landing-page ticker because the viewport is narrower */
  animation-duration: 28s;
}
.demo-trust .logo-cell {
  padding: 0 28px;
  opacity: 0.95;
}
.demo-trust .logo-image {
  height: 22px;
}
/* WKO + OMR still rendered slightly smaller, matching landing page */
.demo-trust .logo-image[src$="WKO.svg"],
.demo-trust .logo-image[src$="OMR.svg"] {
  height: 18px;
}

/* ===== RIGHT panel (white, form) ===== */
.demo-right {
  position: relative;
  background: #FFFFFF;
  padding: 48px 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}
.demo-form-wrap {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
}

.demo-form-intro {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.demo-avatars {
  display: inline-flex;
}
.demo-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid #FFFFFF;
  display: inline-block;
}
.demo-avatar + .demo-avatar { margin-left: -10px; }
.demo-avatar-1 { background: radial-gradient(circle at 30% 30%, #FFB89E, #C8A8E5); }
.demo-avatar-2 { background: radial-gradient(circle at 30% 30%, #A8B5FF, #155EEF); }
.demo-avatar-3 { background: radial-gradient(circle at 30% 30%, #FFA0AB, #FFB89E); }
.demo-avatar-4 { background: radial-gradient(circle at 30% 30%, #C8A8E5, #A8B5FF); }

.demo-form-kicker {
  font-size: 13px;
  color: var(--muted);
}

.demo-form-title {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 10px;
}
.demo-form-sub {
  font-size: 14.5px;
  line-height: 22px;
  color: var(--muted);
  margin: 0 0 28px;
}

/* Form fields */
.demo-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.demo-form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.demo-form-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
}
.demo-required { color: #FF6B5C; margin-left: 1px; }
.demo-optional {
  color: var(--muted-2);
  font-weight: 400;
}
.demo-form-field input {
  width: 100%;
  padding: 9px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.demo-form-field input::placeholder { color: #B5B9C0; }
.demo-form-field input:hover { border-color: #C8CCD2; }
.demo-form-field input:focus {
  border-color: #155EEF;
  box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.12);
}

.demo-form-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}

/* Phone input (with clickable country-code dropdown) */
.demo-phone-input {
  display: flex;
  align-items: stretch;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.demo-phone-input:focus-within {
  border-color: #155EEF;
  box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.12);
}
.demo-phone-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-right: 1px solid var(--border);
  background: #FBFBFC;
  flex-shrink: 0;
}
.demo-phone-select select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  padding: 9px 14px 9px 6px;
  cursor: pointer;
  outline: none;
  text-align: right;
}
.demo-phone-select select:focus { outline: none; }
.demo-phone-chevron {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.demo-phone-input input {
  flex: 1;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 9px 12px;
  min-width: 0;
}
.demo-phone-input input:hover,
.demo-phone-input input:focus { border-color: transparent; box-shadow: none; }

/* Input with leading icon (company website) */
.demo-input-with-icon {
  position: relative;
}
.demo-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  pointer-events: none;
}
.demo-input-with-icon input {
  padding-left: 36px;
}

/* Submit */
.demo-submit {
  margin-top: 10px;
  width: 100%;
  justify-content: center;
}

/* Cal.com embed (shown after form submission) */
#demo-cal-embed[hidden] { display: none; }
#demo-cal-embed {
  width: 100%;
  height: 100%;
  min-height: 640px;
  display: flex;
}
#demo-cal-iframe {
  width: 100%;
  height: 100%;
  min-height: 640px;
  border: 0;
  border-radius: 14px;
  background: #FFFFFF;
}
.demo-submit.is-disabled {
  background: #E5E7EB;
  color: #9CA3AF;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  cursor: not-allowed;
  pointer-events: none;
}
.demo-submit.is-disabled:hover { background: #E5E7EB; }

.demo-login {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.demo-login a {
  color: #155EEF;
  font-weight: 500;
}
.demo-login a:hover { color: #0E4BB8; }

/* Mobile */
@media (max-width: 900px) {
  .demo-page { height: auto; overflow: auto; }
  .demo-layout {
    grid-template-columns: 1fr;
    min-height: auto;
    height: auto;
  }
  .demo-left {
    padding: 36px 28px 32px;
    gap: 24px;
  }
  .demo-h1 { font-size: 28px; }
  .demo-testimonial { max-width: none; }
  .demo-trust { margin-top: 0; gap: 20px; }
  .demo-right { padding: 40px 28px 56px; }
  .demo-form-row { grid-template-columns: 1fr; }
  .demo-close { top: 16px; right: 16px; }
}
@media (max-width: 480px) {
  .demo-left { padding: 28px 20px 28px; }
  .demo-right { padding: 32px 20px 48px; }
  .demo-trust-logos { gap: 18px; }
  .demo-trust-logo { height: 18px; }
}
