/* Compact, coordinated service-page calls to action. */
body.cleaco-service-page-ui .hero-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: .65rem !important;
  width: min(100%, 480px);
}
body.cleaco-service-page-ui .hero-actions > a.button {
  box-sizing: border-box;
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 46px;
  margin: 0 !important;
  padding: .65rem .8rem !important;
  border: 1px solid #279c9d !important;
  border-radius: 11px !important;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
body.cleaco-service-page-ui .hero-actions > a.cleaco-service-cta-contact {
  background: #279c9d !important;
  color: #fff !important;
  box-shadow: 0 5px 14px rgba(39, 156, 157, .18);
}
body.cleaco-service-page-ui .hero-actions > a.cleaco-service-cta-packages {
  background: #eef7f5 !important;
  color: #173b3d !important;
}
body.cleaco-service-page-ui .hero-actions > a.button:hover,
body.cleaco-service-page-ui .hero-actions > a.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(20, 70, 64, .14);
}
body.cleaco-service-page-ui .hero-actions > a.cleaco-service-cta-packages:hover,
body.cleaco-service-page-ui .hero-actions > a.cleaco-service-cta-packages:focus-visible {
  background: #dcefeb !important;
}

/* The whole homepage service tile acts like its existing detail link. */
#leistungen .service-grid > .service-card.cleaco-service-card-clickable { cursor: pointer; }
#leistungen .service-grid > .service-card.cleaco-service-card-clickable:focus-within { outline: 3px solid rgba(39, 156, 157, .4); outline-offset: 3px; }

/* Simplify and strengthen the four stages in the homepage parser story. */
.hero .hero-sequence-cv > .hero-sequence-label,
.hero .hero-sequence-software > .hero-sequence-label,
.hero .hero-sequence-email > .hero-sequence-label { display: none !important; }
.hero .hero-sequence-cv .hero-sequence-cv-heading h3 { font-size: 25px !important; }
.hero .hero-sequence-software .hero-sequence-software-visual h3 { font-size: 24px !important; line-height: 1.2; }
.hero .hero-sequence-ranking > .hero-sequence-label { display: block; margin: 0 0 .25rem; color: #14353a; font-size: 23px; line-height: 1.15; font-weight: 750; letter-spacing: 0; }
@media (max-width: 700px) {
  body.cleaco-service-page-ui .hero-actions { gap: .5rem !important; }
  body.cleaco-service-page-ui .hero-actions > a.button { min-height: 46px; padding-inline: .55rem !important; font-size: .82rem; }
  .hero .hero-sequence-cv .hero-sequence-cv-heading h3 { font-size: 22px !important; }
  .hero .hero-sequence-software .hero-sequence-software-visual h3 { font-size: 20px !important; }
  .hero .hero-sequence-ranking > .hero-sequence-label { font-size: 20px; }
}

/* Shared, card-based story on all service detail pages. */
body.cleaco-service-page-ui .cleaco-service-story-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  width: min(100% - 2rem, 1120px);
  margin: clamp(1.5rem, 4vw, 3rem) auto;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid #dce8e4;
  border-radius: 24px;
  background: linear-gradient(140deg, #f5faf8 0%, #ffffff 62%, #eff7f5 100%);
  box-shadow: 0 16px 38px rgba(20, 53, 58, .07);
}
body.cleaco-service-page-ui .cleaco-service-story-card > .section { margin: 0; padding: clamp(1rem, 2.2vw, 1.5rem); border: 1px solid rgba(214, 229, 223, .9); border-radius: 17px; background: rgba(255,255,255,.88); }
body.cleaco-service-page-ui .cleaco-service-story-card > .section:first-child { grid-column: 1 / -1; border-top: 3px solid #279c9d; }
body.cleaco-service-page-ui .cleaco-service-story-card .section-kicker { margin-bottom: .45rem; color: #278b8b; font-size: .74rem; font-weight: 800; letter-spacing: .12em; }
body.cleaco-service-page-ui .cleaco-service-story-card .section-title { margin: 0 0 .75rem; color: #173b3d; line-height: 1.18; }
body.cleaco-service-page-ui .cleaco-service-story-card p { line-height: 1.65; }
body.cleaco-service-page-ui .cleaco-service-story-card ul { display: grid; gap: .6rem; padding-left: 1.15rem; }
body.cleaco-service-page-ui #cleaco-service-package-offers { display: flex; flex-direction: column; }
body.cleaco-service-page-ui #cleaco-service-package-offers > .container { display: flex; flex-direction: column; }
body.cleaco-service-page-ui #cleaco-service-package-offers .cleaco-service-package-grid { order: 1; }
body.cleaco-service-page-ui #cleaco-service-package-offers .cleaco-journey-discounts:not(.cleaco-booking-disclosure) { order: 2; margin: 1.15rem 0 1rem; }
body.cleaco-service-page-ui #cleaco-service-package-offers .cleaco-service-package-note { order: 3; }
body.cleaco-service-page-ui #cleaco-service-package-offers .cleaco-booking-disclosure { order: 4; }
@media (max-width: 760px) {
  body.cleaco-service-page-ui .cleaco-service-story-card { grid-template-columns: minmax(0, 1fr); width: min(100% - 1.25rem, 1120px); padding: .75rem; border-radius: 19px; }
  body.cleaco-service-page-ui .cleaco-service-story-card > .section:first-child { grid-column: auto; }
}

/* Blog cards: retain the clean editorial layout and make the article CTA clear. */
body.cleaco-blog-page-ui .internal-hero .internal-lede { display: none !important; }
body.cleaco-blog-page-ui .blog-card.cleaco-blog-card-clickable { position: relative; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
body.cleaco-blog-page-ui .blog-card.cleaco-blog-card-clickable:hover,
body.cleaco-blog-page-ui .blog-card.cleaco-blog-card-clickable:focus-within { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(20, 53, 58, .12); }
body.cleaco-blog-page-ui .blog-card .text-link { display: flex; width: fit-content; min-height: 42px; align-items: center; justify-content: center; margin: 1rem 0 0 auto; padding: .55rem 1rem; border: 1px solid #279c9d; border-radius: 11px; background: #279c9d; color: #fff; font-size: .9rem; font-weight: 700; line-height: 1.15; text-decoration: none; }
body.cleaco-blog-page-ui .blog-card .text-link:hover,
body.cleaco-blog-page-ui .blog-card .text-link:focus-visible { background: #176f72; color: #fff; }

/* Keep the blog heading and first article row together on common desktop screens. */
@media (min-width: 900px) {
  body.cleaco-blog-page-ui .internal-hero { padding-block: clamp(1.25rem, 2.5vh, 2rem) !important; }
  body.cleaco-blog-page-ui .internal-hero h1 { margin-block: .15rem .35rem; font-size: clamp(2.25rem, 3.4vw, 3rem); line-height: 1.08; }
  body.cleaco-blog-page-ui .blog-grid { margin-top: 0; gap: 1rem; }
  body.cleaco-blog-page-ui .blog-grid > .blog-card:nth-child(-n+3) { padding: clamp(1rem, 1.5vw, 1.4rem); }
  body.cleaco-blog-page-ui .blog-grid > .blog-card:nth-child(-n+3) img { max-height: 190px; object-fit: cover; }
}

/* Move the contact content up by removing the explanatory line that was cut. */
body.cleaco-contact-page-ui .internal-hero .internal-lede { display: none !important; }
body.cleaco-contact-page-ui .internal-hero { padding-block: clamp(1.5rem, 3vw, 2.2rem) !important; }
body.cleaco-contact-page-ui .internal-hero h1 { margin-bottom: 0; }
body.cleaco-contact-page-ui .contact-section { padding-top: clamp(1rem, 2vw, 1.5rem); }

/* Keep the service finder between the service cards and the trust section. */
body.cleaco-leistungen-page-ui #bedarf-finden { margin-block: clamp(.8rem, 1.7vw, 1.35rem); }
body.cleaco-leistungen-page-ui #cleaco-trust-title { scroll-margin-top: 1rem; }

/* A small ranking mark replaces the arrow in the header's Parser-Check item. */
#primary-navigation .cleaco-parser-nav-link { display: inline-flex; align-items: center; gap: .38rem; }
#primary-navigation .cleaco-parser-nav-icon { width: 1rem; height: 1rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#primary-navigation a[href*="/leistungen/"] { transition: outline-color .18s ease, color .18s ease, background-color .18s ease; }
#primary-navigation a[href*="/leistungen/"]:hover,
#primary-navigation a[href*="/leistungen/"]:focus-visible { outline: 1.5px solid rgba(255,255,255,.92); outline-offset: 4px; border-radius: 999px; }

/* Compact Google review proof on the Bewerbungscoaching example page. */
body.cleaco-service-page-ui .cleaco-google-rating,
body.cleaco-leistungen-page-ui .cleaco-google-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(100% - 2rem, 1120px);
  margin: clamp(1rem, 2.5vw, 1.75rem) auto;
  padding: clamp(1rem, 2.4vw, 1.4rem) clamp(1.1rem, 3vw, 1.8rem);
  border: 1px solid #dce8e4;
  border-radius: 18px;
  background: #f5faf8;
}
body.cleaco-service-page-ui .cleaco-google-rating-copy h2,
body.cleaco-leistungen-page-ui .cleaco-google-rating-copy h2 { margin: .08rem 0 .3rem; color: #173b3d; font-size: 1.12rem; line-height: 1.25; }
body.cleaco-service-page-ui .cleaco-google-rating-kicker,
body.cleaco-leistungen-page-ui .cleaco-google-rating-kicker { margin: 0; color: #278b8b; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
body.cleaco-service-page-ui .cleaco-google-rating-summary,
body.cleaco-leistungen-page-ui .cleaco-google-rating-summary { display: flex; align-items: center; flex-wrap: wrap; gap: .42rem; margin: 0; color: #173b3d; font-size: .94rem; }
body.cleaco-service-page-ui .cleaco-google-rating-stars,
body.cleaco-leistungen-page-ui .cleaco-google-rating-stars { color: #e2a52b; font-size: 1.05rem; letter-spacing: .06em; }
body.cleaco-service-page-ui .cleaco-google-rating-date,
body.cleaco-leistungen-page-ui .cleaco-google-rating-date { margin: .18rem 0 0; color: #667678; font-size: .72rem; }
body.cleaco-service-page-ui .cleaco-google-rating-link,
body.cleaco-leistungen-page-ui .cleaco-google-rating-link { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: .5rem; min-height: 42px; padding: .6rem .95rem; border: 1px solid #279c9d; border-radius: 11px; background: #fff; color: #173b3d; font-size: .88rem; font-weight: 700; text-decoration: none; }
body.cleaco-service-page-ui .cleaco-google-rating-link:hover,
body.cleaco-service-page-ui .cleaco-google-rating-link:focus-visible,
body.cleaco-leistungen-page-ui .cleaco-google-rating-link:hover,
body.cleaco-leistungen-page-ui .cleaco-google-rating-link:focus-visible { background: #279c9d; color: #fff; }
@media (max-width: 700px) {
  body.cleaco-service-page-ui .cleaco-google-rating,
  body.cleaco-leistungen-page-ui .cleaco-google-rating { width: min(100% - 1.25rem, 1120px); align-items: flex-start; flex-direction: column; gap: .8rem; border-radius: 15px; }
  body.cleaco-service-page-ui .cleaco-google-rating-link,
  body.cleaco-leistungen-page-ui .cleaco-google-rating-link { width: 100%; }
}
