/*
Theme Name: Sal.A IT
Theme URI: https://sal-a.de/
Author: Sal.A IT Services GmbH
Description: Schlankes Block-Theme als Prototyp für den Relaunch der Sal.A IT Website. Inhalte, Bilder und Logos sind im WordPress Site Editor austauschbar.
Version: 30.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: sala-it
*/

:root {
  --sala-navy: #031d35;
  --sala-navy-2: #062b4d;
  --sala-blue: #2e6f9e;
  --sala-yellow: #e8b85b;
  --sala-yellow-bright: #ffc400;
  --sala-ink: #092957;
  --sala-light: #f5f7fb;
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

.sala-header {
  position: relative;
  z-index: 30;
  width: 100%;
  min-height: 104px;
  box-sizing: border-box;
  background: #fff !important;
  color: var(--sala-navy) !important;
  border-bottom: 1px solid #e7ebf0;
  box-shadow: 0 7px 22px rgba(3,29,53,.08);
}
.sala-header > .wp-block-group,
.sala-header .sala-brand,
.sala-header .wp-block-navigation,
.sala-header .wp-block-buttons {
  align-items: center;
}
.sala-header .sala-brand { flex-shrink: 0; }
.sala-header .wp-block-site-logo {
  width: 150px !important;
  max-width: 150px !important;
  flex: 0 0 150px;
  margin: 0;
}
.sala-header .wp-block-site-logo img,
.sala-header img.custom-logo {
  width: 150px !important;
  max-width: 150px !important;
  height: auto !important;
  max-height: 72px;
  object-fit: contain;
}
/* Alte, bereits im Site Editor gespeicherte Header dürfen den Website-Titel
   noch enthalten. V6 blendet ihn deshalb zusätzlich per CSS aus. */
.sala-header .wp-block-site-title { display: none !important; }
.sala-header .wp-block-navigation {
  margin-left: auto;
  margin-right: auto;
  color: var(--sala-navy) !important;
}
.sala-header .wp-block-navigation-item__content,
.sala-header .wp-block-navigation-item__content:visited {
  color: var(--sala-navy) !important;
  text-decoration: none;
  font-weight: 650;
}
.sala-header .wp-block-navigation-item__content:hover,
.sala-header .wp-block-navigation-item__content:focus {
  color: #bd8e00 !important;
}
.sala-header .wp-block-navigation__responsive-container-open,
.sala-header .wp-block-navigation__responsive-container-close {
  color: var(--sala-navy) !important;
}
.sala-header .wp-block-navigation__responsive-container.is-menu-open {
  background: #fff !important;
  color: var(--sala-navy) !important;
}
.sala-support-button { flex-shrink: 0; }

.sala-hero {
  min-height: 720px;
  display: flex;
  align-items: center;
  background-position: center right;
  background-size: cover;
}
.sala-hero::before {
  background: linear-gradient(90deg, rgba(2,23,42,.96) 0%, rgba(2,23,42,.88) 35%, rgba(2,23,42,.30) 66%, rgba(2,23,42,.08) 100%) !important;
  opacity: 1 !important;
}
.sala-hero .wp-block-cover__inner-container { width: 100%; }
.sala-hero-copy { max-width: 560px; }
.sala-hero h1 { letter-spacing: -0.035em; }
.sala-accent { color: var(--sala-yellow-bright); }
.sala-rule { width: 68px; height: 2px; background: var(--sala-yellow-bright); margin: 30px 0; }

.sala-button-primary .wp-block-button__link,
.sala-support-button .wp-block-button__link {
  transition: transform .18s ease, filter .18s ease;
}
.sala-button-primary .wp-block-button__link:hover,
.sala-support-button .wp-block-button__link:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.sala-trust { box-shadow: inset 0 1px 0 rgba(0,0,0,.04); }
.sala-logo-card {
  min-height: 122px;
  border: 1px solid #e6e9ee;
  box-shadow: 0 8px 28px rgba(4,31,58,.07);
  border-radius: 7px;
}
.sala-logo-card { padding: 18px 10px; }
.sala-logo-image { margin: 0 !important; width: 100%; text-align: center; }
.sala-logo-card .wp-block-image img { max-height: 62px; max-width: 150px; width: auto; object-fit: contain; }
.sala-trust-rule { width: 56px !important; margin: 0 auto 34px !important; border: 0 !important; height: 2px !important; }
.sala-logo-placeholder {
  font-weight: 700;
  color: #23446b;
  letter-spacing: -.02em;
}
.sala-quote { max-width: 780px; margin-left: auto !important; margin-right: auto !important; }
.sala-quote::before, .sala-quote::after { color: var(--sala-yellow-bright); font-size: 3.8rem; line-height: .7; font-weight: 800; vertical-align: middle; }
.sala-quote::before { content: '“'; margin-right: 18px; }
.sala-quote::after { content: '”'; margin-left: 18px; }

.sala-footer { position: relative; overflow: hidden; }
.sala-footer::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  left: -110px;
  bottom: 40px;
  background-image: radial-gradient(circle, rgba(255,196,0,.32) 1.2px, transparent 1.3px);
  background-size: 12px 12px;
  pointer-events: none;
}
.sala-footer a { color: inherit; text-decoration: none; }
.sala-footer a:hover { text-decoration: underline; }

.sala-section-kicker { text-transform: uppercase; letter-spacing: .11em; font-size: .78rem; font-weight: 700; }
.sala-content-card { border: 1px solid #e7ebf0; border-radius: 12px; box-shadow: 0 10px 28px rgba(4,31,58,.06); }

@media (max-width: 1050px) {
  .sala-header { min-height: 88px; }
  .sala-header .wp-block-navigation { margin-left: auto; margin-right: 0; }
  .sala-header .sala-support-button { display: none; }
}

@media (max-width: 900px) {
  .sala-header { background: #fff !important; }
  .sala-header .wp-block-site-logo,
  .sala-header .wp-block-site-logo img,
  .sala-header img.custom-logo { width: 125px !important; max-width: 125px !important; }
  .sala-header .wp-block-site-logo { flex-basis: 125px; }
  .sala-hero { min-height: 650px; }
  .sala-hero::before { background: rgba(2,23,42,.82) !important; }
  .sala-hero-copy { max-width: 100%; }
}


/* V8: ausschließlich Abstand zwischen Header und Hero entfernen */
header.wp-block-template-part,
header.wp-block-template-part + *,
.wp-site-blocks > header + *,
.wp-site-blocks > .wp-block-template-part:first-child + * {
    margin-block-start: 0 !important;
}
.wp-site-blocks {
    padding-top: 0 !important;
}

/* V9 – Unterseiten-System. Startseitenregeln aus V8 bleiben unverändert. */
.sala-subhero { margin-block-start: 0 !important; }
.sala-card {
  border: 1px solid rgba(46,111,158,.18);
  border-radius: 12px;
  padding: 28px;
  background: #fff;
}
.sala-card h3 { margin-top: 0; }
.sala-placeholder-image {
  min-height: 260px;
  background: #eef4f8;
  border-radius: 10px;
  overflow: hidden;
}
@media (max-width: 781px) {
  .sala-subhero { padding-top: 44px !important; padding-bottom: 44px !important; }
}

/* V10 – editierbare Produktübersicht */
.sala-overview-hero .wp-block-post-title { color:#fff !important; }
.sala-products-lead{max-width:780px;margin-left:auto;margin-right:auto;color:#40536a;line-height:1.65}
.sala-product-grid{max-width:1180px;margin-left:auto!important;margin-right:auto!important;padding-left:24px;padding-right:24px}
.sala-product-card{position:relative;display:flex;flex-direction:column;min-height:430px;padding:34px 30px;border:1px solid #dfe7ee;border-radius:10px;background:#fff;box-shadow:0 8px 24px rgba(5,38,66,.05)}
.sala-product-card h3{font-size:2rem;margin:0 0 18px;color:#123765}.sala-product-go h3{color:#158d8c}.sala-product-corf h3{color:#463b92}
.sala-product-card>p:not(.sala-more){min-height:58px}.sala-product-card ul{border-top:1px solid #e4e9ee;padding-top:20px;padding-left:22px;line-height:1.9}.sala-product-card .sala-more{margin-top:auto;font-weight:700}.sala-product-card .sala-more a{text-decoration:none}.sala-product-go .sala-more a{color:#158d8c}.sala-product-corf .sala-more a{color:#463b92}
.sala-benefits{background:#f4f7fa}.sala-benefit-grid{margin-top:34px}.sala-benefit-grid>.wp-block-column{padding:10px 34px}.sala-benefit-grid>.wp-block-column+ .wp-block-column{border-left:1px solid #d9e1e8}.sala-benefit-grid h3{font-size:1.2rem}
.sala-products-cta{background:#eef4f8}.sala-products-cta h2{margin-bottom:8px}.sala-yellow-button .wp-block-button__link{background:#ffc400!important;color:#052642!important;font-weight:700;border-radius:7px;padding:16px 26px}
@media(max-width:781px){.sala-product-card{min-height:0}.sala-benefit-grid>.wp-block-column+ .wp-block-column{border-left:0;border-top:1px solid #d9e1e8;padding-top:28px}.sala-products-cta .wp-block-buttons{justify-content:flex-start!important}}

/* V11 – editierbare Cover-Heros für T2, T3 und T4. T1 war bereits ein Cover-Block. */
.sala-editable-cover { margin-block-start: 0 !important; }
.sala-editable-cover .wp-block-post-title,
.sala-editable-cover .sala-kicker { color: #fff !important; }
.sala-editable-cover .wp-block-cover__inner-container { width: 100%; }

/* V12 – individuelle Hero-Bilder pro Unterseite.
   Der Cover-Block liegt im Seiteninhalt, nicht mehr im gemeinsam genutzten Template. */
.sala-overview-main,
.sala-content-main,
.sala-functional-main { margin-block-start: 0 !important; }
.sala-page-hero { margin-block-start: 0 !important; }
.sala-page-hero .wp-block-cover__inner-container { width: 100%; }
.sala-page-hero .wp-block-post-title { color: #fff !important; }

/* V28 – Textbreite aus dem zusätzlich gepflegten CSS übernommen. */
.sala-page-hero .wp-block-post-title,
.sala-page-hero p {
  max-width: 350px;
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* V16 – nur Unterseiten-Heros ohne Abdunklungsfilter.
   Der Startseiten-Hero bleibt vollständig auf dem Stand von V14. */
.sala-page-hero .wp-block-cover__background {
  opacity: 0 !important;
  background: transparent !important;
}


/* V17 – Unterseiten-Hero typografisch wie Startseite */
.sala-page-hero .wp-block-post-title {
  font-size: clamp(2.1rem, 4vw, 3.75rem) !important;
  font-weight: 700 !important;
  line-height: 1.12 !important;
}
.sala-page-hero .wp-block-post-title + p,
.sala-page-hero .wp-block-group > p {
  font-size: 1.08rem !important;
  line-height: 1.8 !important;
}


/* V19 – Einheitliches Sal.A Button-System
   Primär: Gelb / Navy. Sekundär: Navy / Weiß.
   Header-Supportbutton und Outline-Buttons bleiben bewusst unverändert. */
.wp-block-button:not(.sala-support-button):not(.is-style-outline) .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 48px;
  padding: .82rem 1.35rem !important;
  border: 2px solid var(--sala-yellow-bright, #ffc400) !important;
  border-radius: 7px !important;
  background: var(--sala-yellow-bright, #ffc400) !important;
  color: var(--sala-navy, #031d35) !important;
  font-weight: 700 !important;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.wp-block-button:not(.sala-support-button):not(.is-style-outline) .wp-block-button__link:hover,
.wp-block-button:not(.sala-support-button):not(.is-style-outline) .wp-block-button__link:focus-visible {
  background: var(--sala-navy, #031d35) !important;
  border-color: var(--sala-navy, #031d35) !important;
  color: var(--sala-yellow-bright, #ffc400) !important;
}

/* Pfeil für neue Standardbuttons. Bei älteren Theme-Buttons ist der Pfeil teils bereits Textbestandteil. */
.wp-block-button:not(.sala-support-button):not(.is-style-outline):not(.sala-button-primary):not(.sala-yellow-button) .wp-block-button__link::after {
  content: "→";
  font-size: 1.35em;
  line-height: .8;
  font-weight: 500;
  transition: transform .2s ease;
}
.wp-block-button:not(.sala-support-button):not(.is-style-outline):not(.sala-button-primary):not(.sala-yellow-button) .wp-block-button__link:hover::after,
.wp-block-button:not(.sala-support-button):not(.is-style-outline):not(.sala-button-primary):not(.sala-yellow-button) .wp-block-button__link:focus-visible::after {
  transform: translateX(3px);
}

/* Sekundärstil – im Editor als „Sal.A Dunkel“ auswählbar. */
.wp-block-button.is-style-sala-dark .wp-block-button__link {
  background: var(--sala-navy, #031d35) !important;
  border-color: var(--sala-navy, #031d35) !important;
  color: #fff !important;
}
.wp-block-button.is-style-sala-dark .wp-block-button__link:hover,
.wp-block-button.is-style-sala-dark .wp-block-button__link:focus-visible {
  background: var(--sala-yellow-bright, #ffc400) !important;
  border-color: var(--sala-yellow-bright, #ffc400) !important;
  color: var(--sala-navy, #031d35) !important;
}

/* WPForms-Absende-Buttons im gleichen Primärdesign. */
.wpforms-container .wpforms-form button[type="submit"],
.wpforms-container .wpforms-form .wpforms-submit,
.wpforms-container-full .wpforms-form button[type="submit"],
.wpforms-container-full button[type="submit"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 48px !important;
  padding: .82rem 1.35rem !important;
  border: 2px solid var(--sala-yellow-bright, #ffc400) !important;
  border-radius: 7px !important;
  background: var(--sala-yellow-bright, #ffc400) !important;
  color: var(--sala-navy, #031d35) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease !important;
}
.wpforms-container .wpforms-form button[type="submit"]:hover,
.wpforms-container .wpforms-form button[type="submit"]:focus-visible,
.wpforms-container .wpforms-form .wpforms-submit:hover,
.wpforms-container .wpforms-form .wpforms-submit:focus-visible,
.wpforms-container-full .wpforms-form button[type="submit"]:hover,
.wpforms-container-full .wpforms-form button[type="submit"]:focus-visible,
.wpforms-container-full button[type="submit"]:hover,
.wpforms-container-full button[type="submit"]:focus-visible {
  background: var(--sala-navy, #031d35) !important;
  border-color: var(--sala-navy, #031d35) !important;
  color: var(--sala-yellow-bright, #ffc400) !important;
}


/* V20 – Impressum: kompakte, zweispaltige Rechtsinformationen.
   Wirkt nur auf den Spaltenblock mit der Klasse "sala-impressum". */
.wp-block-columns.sala-impressum {
  align-items: flex-start !important;
  column-gap: clamp(3rem, 6vw, 6.5rem) !important;
  row-gap: 2.5rem !important;
  padding-top: clamp(2.5rem, 4vw, 4rem);
  padding-bottom: clamp(3rem, 5vw, 5rem);
}

.sala-impressum > .wp-block-column {
  min-width: 0;
}

/* WordPress-Blockabstände innerhalb des Impressums vereinheitlichen. */
.sala-impressum > .wp-block-column > * {
  margin-block-start: 0;
  margin-block-end: 0;
}

/* Abschnittsüberschriften – ruhig, klar und mit durchgehender Trennlinie. */
.sala-impressum h2,
.sala-impressum h3 {
  margin-top: 2.35rem !important;
  margin-bottom: .9rem !important;
  padding-bottom: .7rem;
  border-bottom: 1px solid #d9dee5;
  color: var(--sala-navy, #031d35);
  font-size: clamp(1.12rem, 1.35vw, 1.3rem) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.sala-impressum > .wp-block-column > h2:first-child,
.sala-impressum > .wp-block-column > h3:first-child {
  margin-top: 0 !important;
}

/* Fließtext kompakter als auf Marketingseiten. */
.sala-impressum p {
  margin: 0 0 .3rem !important;
  color: var(--sala-ink, #092957);
  font-size: 1rem;
  line-height: 1.62;
}

/* Ein Absatz direkt vor der nächsten Überschrift braucht keinen Extra-Abstand. */
.sala-impressum p + h2,
.sala-impressum p + h3,
.sala-impressum ul + h2,
.sala-impressum ul + h3 {
  margin-top: 2.35rem !important;
}

.sala-impressum a {
  color: var(--sala-blue, #2e6f9e);
  text-underline-offset: .14em;
}
.sala-impressum a:hover,
.sala-impressum a:focus-visible {
  color: var(--sala-navy, #031d35);
}

/* Falls noch ein Separator-Block übrig bleibt, wird er unauffällig und breit. */
.sala-impressum .wp-block-separator {
  width: 100% !important;
  max-width: none !important;
  margin: 1.75rem 0 !important;
  border-color: #d9dee5 !important;
  opacity: 1;
}

@media (max-width: 781px) {
  .wp-block-columns.sala-impressum {
    column-gap: 0 !important;
    row-gap: 2rem !important;
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

  .sala-impressum h2,
  .sala-impressum h3,
  .sala-impressum p + h2,
  .sala-impressum p + h3,
  .sala-impressum ul + h2,
  .sala-impressum ul + h3 {
    margin-top: 2rem !important;
  }

  .sala-impressum > .wp-block-column > h2:first-child,
  .sala-impressum > .wp-block-column > h3:first-child {
    margin-top: 0 !important;
  }
}

/* V28 – verbindliches Pattern-System nach den freigegebenen Wireframes. */
.sala-pattern {
  box-sizing: border-box;
  margin-block-start: 0 !important;
}
.sala-pattern > .wp-block-group__inner-container,
.sala-pattern-inner {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}
.sala-pattern h2 {
  margin-top: 0;
  margin-bottom: 24px;
  letter-spacing: -.025em;
}
.sala-pattern p { line-height: 1.7; }

.sala-pattern-intro {
  padding: clamp(76px, 7vw, 96px) 0;
  background: #fff;
}
.sala-pattern-intro .sala-pattern-inner {
  max-width: 820px;
  text-align: center;
}
.sala-pattern-intro h2,
.sala-pattern-intro p {
  margin-left: auto;
  margin-right: auto;
}
.sala-pattern-intro p:last-child { margin-bottom: 0; }

.sala-pattern-features {
  padding: clamp(80px, 7vw, 104px) 0;
  background: var(--sala-light);
}
.sala-pattern-features-grid {
  gap: 0 !important;
  margin-top: 40px;
}
.sala-pattern-feature {
  padding: 0 clamp(22px, 3vw, 38px);
}
.sala-pattern-feature:first-child { padding-left: 0; }
.sala-pattern-feature:last-child { padding-right: 0; }
.sala-pattern-feature + .sala-pattern-feature { border-left: 1px solid #d6e0e8; }
.sala-pattern-feature h3 { margin: 0 0 14px; }

.sala-pattern-text-image {
  padding: clamp(96px, 8vw, 120px) 0;
  background: #fff;
}
.sala-pattern-text-image-grid {
  gap: clamp(48px, 7vw, 96px) !important;
  align-items: center !important;
}
.sala-pattern-text-image-copy > *:first-child { margin-top: 0; }
.sala-pattern-text-image-copy > *:last-child { margin-bottom: 0; }
.sala-pattern-text-image-visual {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: #eef3f7;
}
.sala-pattern-text-image-visual:has(img[src=""]) {
  background: #eef3f7 url("assets/images/image-placeholder.svg") center / cover no-repeat;
}
.sala-pattern-text-image-visual img[src=""] { visibility: hidden; }
.sala-pattern-text-image-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.sala-pattern-text-image-visual img[src*="image-placeholder.svg"] {
  object-fit: cover;
}

.sala-pattern-benefits {
  padding: clamp(88px, 8vw, 112px) 0;
  background: var(--sala-navy);
  color: #fff;
}
.sala-pattern-benefits h2,
.sala-pattern-benefits h3,
.sala-pattern-benefits p { color: #fff !important; }
.sala-pattern-benefits-grid {
  gap: 0 !important;
  margin-top: 44px;
}
.sala-pattern-benefit { padding: 0 clamp(22px, 3vw, 38px); }
.sala-pattern-benefit:first-child { padding-left: 0; }
.sala-pattern-benefit:last-child { padding-right: 0; }
.sala-pattern-benefit + .sala-pattern-benefit { border-left: 1px solid rgba(255,255,255,.24); }
.sala-pattern-benefit::before {
  content: '';
  display: block;
  width: 42px;
  height: 3px;
  margin-bottom: 22px;
  background: var(--sala-yellow-bright);
}

.sala-pattern-faq {
  padding: clamp(88px, 8vw, 112px) 0;
  background: #eef5fa;
}
.sala-pattern-faq .sala-pattern-inner { max-width: 1180px; }
.sala-pattern-faq-list {
  max-width: 960px;
  margin-top: 38px;
  margin-left: 0;
  margin-right: auto;
}
.sala-pattern-faq details {
  border-top: 1px solid #c9d7e2;
  padding: 0;
}
.sala-pattern-faq details:last-child { border-bottom: 1px solid #c9d7e2; }
.sala-pattern-faq summary {
  position: relative;
  padding: 22px 42px 22px 0;
  color: var(--sala-navy);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.sala-pattern-faq summary::-webkit-details-marker { display: none; }
.sala-pattern-faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sala-navy);
  font-size: 1.35rem;
  font-weight: 400;
}
.sala-pattern-faq details[open] summary::after { content: '−'; }
.sala-pattern-faq details > :not(summary) {
  max-width: 790px;
  margin: 0 0 24px;
}

.sala-pattern-modules {
  padding: clamp(88px, 8vw, 112px) 0 clamp(64px, 6vw, 80px);
  background: #fff;
}
.sala-pattern-modules-grid { gap: 0 !important; margin-top: 44px; }
.sala-pattern-module { padding: 0 clamp(20px, 2.5vw, 30px); }
.sala-pattern-module:first-child { padding-left: 0; }
.sala-pattern-module:last-child { padding-right: 0; }
.sala-pattern-module + .sala-pattern-module { border-left: 1px solid #d6e0e8; }
.sala-pattern-module h3 { margin-top: 0; }

.sala-pattern-cta {
  padding: clamp(72px, 7vw, 88px) 0;
  background: #fff;
  text-align: center;
}
.sala-pattern-modules + .sala-pattern-cta {
  padding-top: clamp(32px, 4vw, 48px);
}
.sala-pattern-cta .sala-pattern-inner { max-width: 820px; }
.sala-pattern-cta .wp-block-buttons {
  justify-content: center;
  margin-top: 32px;
}

@media (max-width: 781px) {
  .sala-pattern > .wp-block-group__inner-container,
  .sala-pattern-inner { width: min(calc(100% - 32px), 1180px); }
  .sala-pattern-intro,
  .sala-pattern-features,
  .sala-pattern-text-image,
  .sala-pattern-benefits,
  .sala-pattern-faq,
  .sala-pattern-modules,
  .sala-pattern-cta { padding-top: 64px; padding-bottom: 68px; }
  .sala-pattern-modules { padding-bottom: 48px; }
  .sala-pattern-modules + .sala-pattern-cta { padding-top: 28px; }
  .sala-pattern-text-image-grid { gap: 38px !important; }
  .sala-pattern-features-grid,
  .sala-pattern-benefits-grid,
  .sala-pattern-modules-grid { gap: 0 !important; }
  .sala-pattern-feature,
  .sala-pattern-benefit,
  .sala-pattern-module { padding: 28px 0; }
  .sala-pattern-feature:first-child,
  .sala-pattern-benefit:first-child,
  .sala-pattern-module:first-child { padding-top: 0; }
  .sala-pattern-feature:last-child,
  .sala-pattern-benefit:last-child,
  .sala-pattern-module:last-child { padding-bottom: 0; }
  .sala-pattern-feature + .sala-pattern-feature,
  .sala-pattern-benefit + .sala-pattern-benefit,
  .sala-pattern-module + .sala-pattern-module {
    border-left: 0;
    border-top: 1px solid #d6e0e8;
  }
  .sala-pattern-benefit + .sala-pattern-benefit { border-top-color: rgba(255,255,255,.24); }
}


/* V21 – Wiederverwendbare Produktdetailseite (KV365, GO365, CoRF)
   Harmonische Abstände und responsive Struktur auf Basis des freigegebenen Mockups. */
.sala-pd-section {
  padding: clamp(64px, 6vw, 88px) clamp(24px, 5vw, 68px);
  margin-block-start: 0 !important;
}
.sala-pd-section h2 {
  margin-top: 0;
  margin-bottom: 30px;
  font-size: clamp(1.75rem, 2.6vw, 2.45rem);
  letter-spacing: -.025em;
}
.sala-pd-section h3 {
  margin-top: 16px;
  margin-bottom: 14px;
  font-size: 1.05rem;
  line-height: 1.3;
}
.sala-pd-section p {
  line-height: 1.7;
}
.sala-pd-intro-grid {
  column-gap: clamp(36px, 5vw, 76px);
}
.sala-pd-intro .wp-block-column > p + p {
  margin-top: 20px;
}
.sala-pd-audience-grid {
  column-gap: 0;
  align-items: stretch;
}
.sala-pd-mini-card {
  padding: 8px 22px 12px;
}
.sala-pd-mini-card + .sala-pd-mini-card {
  border-left: 1px solid #dfe6ed;
}
.sala-pd-icon {
  margin: 0 0 10px !important;
  color: var(--sala-blue);
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1;
}
.sala-pd-more {
  margin-top: 28px !important;
  font-weight: 700;
}
.sala-pd-more a {
  color: var(--sala-ink);
  text-decoration: none;
}
.sala-pd-more a:hover { text-decoration: underline; }
.sala-pd-benefits {
  background: #f5f8fb;
}
.sala-pd-benefits-grid {
  column-gap: clamp(40px, 6vw, 90px);
}
.sala-pd-checklist {
  list-style: none;
  padding-left: 0;
  margin: 8px 0 0;
}
.sala-pd-checklist li {
  position: relative;
  padding-left: 30px;
  margin: 0 0 14px;
  line-height: 1.55;
}
.sala-pd-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--sala-yellow-bright);
  font-weight: 800;
}
.sala-pd-image-placeholder {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #b9c8d6;
  border-radius: 12px;
  background: rgba(255,255,255,.65);
  color: #64798d;
  padding: 32px;
}
.sala-pd-modules {
  padding-top: clamp(72px, 7vw, 98px);
  padding-bottom: clamp(76px, 7vw, 104px);
}
.sala-pd-modules > h2 {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 48px;
}
.sala-pd-module-grid {
  column-gap: 0;
  align-items: stretch;
  margin-top: 0;
}
.sala-pd-module {
  padding: 4px 24px 18px;
}
.sala-pd-module + .sala-pd-module {
  border-left: 1px solid #dfe6ed;
}
.sala-pd-module p:last-child {
  margin-bottom: 0;
}
.sala-pd-module-link {
  margin-top: 38px !important;
}
.sala-pd-cta-wrap {
  padding: 0 clamp(24px,5vw,68px) clamp(58px,6vw,82px);
  margin-block-start: 0 !important;
}
.sala-pd-cta {
  background: linear-gradient(90deg, var(--sala-navy) 0%, var(--sala-navy-2) 100%);
  border-radius: 12px;
  padding: clamp(30px,4vw,46px) clamp(30px,4.5vw,58px);
  overflow: hidden;
  position: relative;
}
.sala-pd-cta::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  right: -38px;
  top: -40px;
  background-image: radial-gradient(circle, rgba(255,255,255,.18) 2px, transparent 2.2px);
  background-size: 15px 15px;
  pointer-events: none;
}
.sala-pd-cta h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem,2.4vw,2.25rem);
}
.sala-pd-cta p { margin: 0; }
.sala-pd-cta .wp-block-buttons { position: relative; z-index: 1; }

@media (max-width: 1000px) {
  .sala-pd-audience-grid,
  .sala-pd-module-grid { flex-wrap: wrap !important; }
  .sala-pd-audience-grid > .wp-block-column,
  .sala-pd-module-grid > .wp-block-column { flex-basis: 50% !important; }
  .sala-pd-mini-card,
  .sala-pd-module { border-left: 0 !important; border-top: 1px solid #dfe6ed; padding-top: 26px; }
  .sala-pd-audience-grid > .wp-block-column:nth-child(-n+2),
  .sala-pd-module-grid > .wp-block-column:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 781px) {
  .sala-pd-section { padding-top: 54px; padding-bottom: 58px; }
  .sala-pd-intro-grid,
  .sala-pd-benefits-grid { row-gap: 42px; }
  .sala-pd-audience-grid > .wp-block-column,
  .sala-pd-module-grid > .wp-block-column { flex-basis: 100% !important; }
  .sala-pd-audience-grid > .wp-block-column:nth-child(2),
  .sala-pd-module-grid > .wp-block-column:nth-child(2) { border-top: 1px solid #dfe6ed; }
  .sala-pd-mini-card,
  .sala-pd-module { padding-left: 6px; padding-right: 6px; }
  .sala-pd-cta .wp-block-buttons { justify-content: flex-start !important; margin-top: 20px; }
}

/* V27 – Branchenlösungen: ruhiger Seitenrhythmus + editierbare Cover-Headlines */
/* Die Übersichtsseite behält einen vollbreiten Hero; breite Inhaltsbausteine erhalten
   anschließend einen verlässlichen Seitenabstand wie in den Produktdetailseiten. */
.sala-overview-main .wp-block-post-content > .wp-block-columns.alignwide,
.sala-overview-main > .wp-block-columns.alignwide,
.sala-industries {
  box-sizing: border-box;
  width: calc(100% - clamp(48px, 6vw, 104px)) !important;
  max-width: 1440px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Beim Text+Bild-Baustein direkt vor den Branchen den unnötig großen Weißraum reduzieren. */
.sala-overview-main .wp-block-post-content > .wp-block-columns.alignwide.are-vertically-aligned-center,
.sala-overview-main > .wp-block-columns.alignwide.are-vertically-aligned-center {
  padding-bottom: clamp(24px, 3vw, 42px) !important;
}

.sala-industries {
  padding-top: clamp(28px, 3vw, 44px);
  padding-bottom: clamp(58px, 6vw, 86px);
}
.sala-industries-grid { align-items: stretch; }
.sala-industry-card { min-width: 0; }

/* V26-Bestand: normale Bildblöcke bleiben vollständig kompatibel. */
.sala-industry-image {
  margin: 0 0 28px;
  overflow: hidden;
  border-radius: 10px;
  background: #eef2f6;
}
.sala-industry-image img {
  display: block;
  width: 100%;
  min-height: 250px;
}

/* V27-Neueinfügung: Bild als Cover, Headline bleibt im Editor frei änderbar. */
.sala-industry-cover {
  min-height: clamp(250px, 24vw, 330px);
  margin: 0 0 26px;
  overflow: hidden;
  border-radius: 10px;
}
.sala-industry-cover .wp-block-cover__background { opacity: .28; }
.sala-industry-cover .wp-block-cover__inner-container {
  width: 100%;
  box-sizing: border-box;
  padding: clamp(22px, 3vw, 36px);
  align-self: flex-end;
}
.sala-industry-cover h3 {
  max-width: 90%;
  margin: 0;
  color: #fff !important;
  font-size: clamp(1.45rem, 2vw, 1.95rem);
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(3,29,53,.42);
}

/* Überschrift unter dem Bild bleibt nur für bereits eingefügte V26-Bausteine relevant. */
.sala-industry-card > h3 {
  margin: 0 0 14px;
  color: var(--sala-navy);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1.2;
}
.sala-industry-lead {
  max-width: 570px;
  margin: 0 0 20px;
  line-height: 1.65;
}
.sala-industry-tags {
  margin: 0 0 22px;
  color: var(--sala-blue);
  font-size: .93rem;
  font-weight: 650;
  line-height: 1.7;
}
.sala-industry-link { margin: 0; font-weight: 700; }
.sala-industry-link a { text-decoration: none; }
.sala-industry-link a:hover { text-decoration: underline; }

@media (max-width: 781px) {
  .sala-overview-main .wp-block-post-content > .wp-block-columns.alignwide,
  .sala-overview-main > .wp-block-columns.alignwide,
  .sala-industries {
    width: calc(100% - 32px) !important;
  }
  .sala-industries { padding-top: 22px; padding-bottom: 58px; }
  .sala-industries-grid { row-gap: 46px; }
  .sala-industry-image img { min-height: 210px; }
  .sala-industry-cover { min-height: 230px; }
}
