/*
Theme Name: Smart Warm
Author: Smart Warm GmbH
Description: Responsives Gutenberg-Block-Theme für einen Smart-Warm-Onepager.
Version: 1.6.7
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: smart-warm
*/

:root {
  --sw-shadow: 0 18px 44px rgba(18, 59, 74, 0.12);
  --sw-soft-line: rgba(38, 50, 56, 0.13);
}

html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sw-service-card { transition: none; }
}
body { background: #fff; color: #263238; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
.sw-page { overflow: hidden; background: #fff; }
.sw-page p { text-wrap: pretty; }
.sw-page a { text-underline-offset: .18em; }
.sw-page a:focus-visible { outline: 3px solid #F28B3C; outline-offset: 3px; }

.sw-header {
  position: relative;
  z-index: 5;
  padding: 8px 24px;
  border-bottom: 1px solid var(--sw-soft-line);
  background: #fff;
}
.sw-header__inner { gap: 24px; min-height: 78px; }
.sw-logo { position: relative; width: 150px; height: 82px; margin: 0; overflow: hidden; flex: 0 0 auto; }
.sw-logo img { position: absolute; top: 50%; left: 50%; width: 165%; max-width: none; height: auto; transform: translate(-50%, -50%); }
.sw-nav { flex: 1 1 auto; }
.sw-nav .wp-block-navigation__container { gap: clamp(16px, 2.3vw, 34px); }
.sw-nav .wp-block-navigation-item__content { color: #59666B; font-size: .9rem; font-weight: 500; }
.sw-nav .wp-block-navigation-item__content:hover { color: #F28B3C; }
.sw-header__cta { margin: 0; flex: 0 0 auto; }
.sw-header__cta .wp-block-button__link { padding: .72rem 1.05rem; font-size: .86rem; }

.sw-hero {
  padding: clamp(54px, 7vw, 100px) 24px clamp(60px, 7vw, 96px);
  background: #fff;
}
.sw-hero__inner { gap: clamp(36px, 6vw, 88px); }
.sw-hero__copy { max-width: 590px; }
.sw-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: #123B4A;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}
.sw-kicker::before { width: 20px; height: 2px; background: #F28B3C; content: ""; }
.sw-display {
  max-width: 680px;
  margin: 0 0 22px;
  color: #263238;
  font-size: clamp(3.25rem, 6.4vw, 6.15rem);
  font-weight: 400;
  letter-spacing: -.075em;
  line-height: .97;
}
.sw-display .sw-type-strong,
.sw-section__title .sw-type-strong {
  color: #123B4A;
  font-weight: 700;
}
.sw-display .sw-type-light { font-weight: 400; }
.sw-hero__intro { max-width: 490px; margin-bottom: 27px; color: #59666B; font-size: clamp(1rem, 1.35vw, 1.15rem); line-height: 1.7; }
.sw-hero__actions { gap: 12px; }
.sw-hero__actions .wp-block-button__link { min-height: 48px; padding: .9rem 1.3rem; }
.sw-hero__actions .is-style-outline .wp-block-button__link { border: 1px solid #123B4A; color: #123B4A; background: transparent; }
.sw-hero__actions .is-style-outline .wp-block-button__link:hover { background: #F5F3EE; }

.sw-hero-carousel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.sw-hero-carousel__stage {
  position: relative;
  width: 100%;
  max-width: none;
  height: clamp(280px, 33vw, 420px);
  overflow: hidden;
  border-radius: 16px 112px 16px 16px;
  background: #F5F3EE;
  box-shadow: var(--sw-shadow);
}
.sw-hero-carousel__gallery {
  position: absolute;
  inset: 0;
  display: block !important;
  height: 100%;
  margin: 0;
}
.sw-hero-carousel__gallery .sw-hero-carousel__slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100%;
  max-width: none;
  margin: 0 !important;
}
.sw-hero-carousel:not(.is-enhanced) .sw-hero-carousel__gallery .sw-hero-carousel__slide:not(:first-child) { display: none; }
.sw-hero-carousel.is-enhanced .sw-hero-carousel__slide[hidden] { display: none !important; }
.sw-hero-carousel__slide img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}
.sw-hero-carousel__slide figcaption {
  position: absolute;
  z-index: 1;
  right: 16px;
  bottom: 16px;
  left: 16px;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 10px 13px;
  border-radius: 7px;
  color: #fff;
  background: rgba(18, 59, 74, .88);
  font-size: .8rem;
  font-weight: 600;
}
.sw-hero-carousel__controls {
  position: relative;
  display: flex;
  align-self: stretch;
  width: 100%;
  max-width: none;
  margin: 0 !important;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-height: 26px;
}
.sw-hero-carousel__controls button {
  display: grid;
  width: 26px;
  height: 26px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.sw-hero-carousel__controls button::before {
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  border: 2px solid #F28B3C;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform .18s ease, background-color .18s ease;
}
.sw-hero-carousel__controls button[aria-current="true"]::before { background: #123B4A; }
.sw-hero-carousel__controls button:hover::before { transform: scale(1.2); }
.sw-hero-carousel__controls button:focus-visible { outline: 2px solid #123B4A; outline-offset: 1px; }
.sw-hero-carousel__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sw-section { padding: clamp(62px, 8vw, 104px) 24px; }
.sw-section__head { margin-bottom: 34px; }
.sw-company .sw-section__head { margin-bottom: 84px; }
.sw-section__head--editorial > * { margin-block-start: 0; }
.sw-section__head--editorial { position: relative; box-sizing: border-box; min-height: 190px; padding-right: clamp(250px, 33vw, 475px); }
.sw-section__head--editorial .sw-kicker { margin-bottom: 14px; }
.sw-section__title { max-width: 760px; margin: 0; color: #263238; font-size: clamp(2rem, 3.3vw, 3.2rem); font-weight: 400; letter-spacing: -.055em; line-height: 1.05; }
.sw-section__intro { max-width: 630px; margin: 18px 0 0 !important; padding-left: 16px; border-left: 2px solid #F28B3C; color: #59666B; font-size: 1rem; line-height: 1.75; }
.sw-company .sw-section__head--editorial::after,
.sw-services-section .sw-section__head--editorial::after { position: absolute; top: 50%; right: calc(50% - 50vw); display: block; box-sizing: border-box; width: clamp(270px, 35vw, 520px); height: clamp(112px, 13vw, 180px); border: 2px solid #F28B3C; border-right: 0; border-radius: 999px 0 0 999px; background-color: #F28B3C; background-position: center, left center; background-repeat: no-repeat; background-size: 100% 100%, cover; content: ""; transform: translateY(-50%); }
.sw-company .sw-section__head--editorial::after { background-image: linear-gradient(90deg, rgba(242,139,60,0) 0%, rgba(242,139,60,0) 28%, rgba(242,139,60,.18) 50%, rgba(242,139,60,.7) 78%, #F28B3C 100%), url("assets/images/unternehmen-berater-modell.jpg"); }
.sw-services-section .sw-section__head--editorial::after { background-image: linear-gradient(90deg, rgba(242,139,60,0) 0%, rgba(242,139,60,0) 28%, rgba(242,139,60,.18) 50%, rgba(242,139,60,.7) 78%, #F28B3C 100%), url("assets/images/dienstleistungen-techniker-messgeraet.jpg"); }
.sw-company-subcategories { align-items: stretch; gap: 14px; margin: 0 auto; }
.sw-company-subcategory { height: 100%; padding: 25px; border: 0; border-radius: 10px; background: #fff; }
.sw-company-subcategory > * { margin-block-start: 0; }
.sw-company-subcategory__title { display: flex; align-items: center; gap: 10px; margin: 0 0 18px !important; color: #123B4A; font-size: 1.3rem; font-weight: 650; letter-spacing: -.03em; }
.sw-company-subcategory__title::before { display: block; flex: 0 0 20px; width: 20px; height: 2px; background: #F28B3C; content: ""; }
.sw-philosophy__values { align-items: stretch; gap: 14px; margin: 0; }
.sw-philosophy__values > .wp-block-column { flex: 1 1 0; min-width: 0; }
.sw-philosophy__item { padding: 0; border: 0; }
.sw-philosophy__item p { margin: 0; color: #59666B; font-size: 1rem; line-height: 1.75; }
.sw-philosophy__item .sw-philosophy__label { margin-bottom: 8px; color: #F28B3C; font-size: clamp(2rem, 3.3vw, 3.2rem); font-weight: 700; letter-spacing: -.055em; line-height: 1.05; }
.sw-philosophy__item .sw-philosophy__label strong { font-weight: 700; }
.sw-philosophy__item--smart .sw-philosophy__label { color: #123B4A; }
.sw-philosophy__item--smart .sw-philosophy__label strong { font-weight: 300; }
.sw-philosophy__copy { margin: 18px 0 0 !important; padding: 0; border: 0; color: #59666B; font-size: 1rem; line-height: 1.75; }
.sw-company-subcategory > .sw-company-service-list { display: flex; width: 100% !important; max-width: none !important; flex-direction: column; align-items: stretch; gap: 16px; margin-right: 0 !important; margin-left: 0 !important; text-align: left; }
.sw-company-subcategory .sw-company-service-list > .sw-company-service-item { width: 100%; max-width: none; margin: 0 !important; text-align: left; }
.sw-company-service-item { padding: 0; border: 0; }
.sw-company-service-item > * { width: 100%; max-width: none; margin-block-start: 0; margin-right: 0 !important; margin-left: 0 !important; text-align: left; }
.sw-company-service-item__title { margin: 0 0 4px !important; color: #F28B3C; font-size: .82rem; font-weight: 700; letter-spacing: .06em; }
.sw-company-service-item p { margin: 0; color: #59666B; font-size: 1rem; line-height: 1.75; }
.sw-company-mission { margin: 18px 0 0 !important; padding: 0; border: 0; color: #59666B; font-size: 1rem; line-height: 1.75; }
.sw-services-section { padding-top: 20px; }
.sw-services-section .sw-services-head { margin-bottom: 84px; }
.sw-service-grid { gap: 14px; }
.sw-service-card { height: 100%; padding: 25px; border: 1px solid var(--sw-soft-line); border-radius: 10px; background: #fff; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.sw-service-card:hover { transform: translateY(-3px); border-color: rgba(18,59,74,.3); box-shadow: 0 12px 30px rgba(18,59,74,.08); }
.sw-service-number { margin: 0 0 14px; color: #F28B3C; font-size: .82rem; font-weight: 700; letter-spacing: .12em; }
.sw-service-title { margin: 0 0 9px; color: #263238; font-size: 1.15rem; font-weight: 650; letter-spacing: -.025em; }
.sw-service-card > p:not(.sw-service-number) { margin: 0 0 12px; color: #59666B; font-size: .9rem; line-height: 1.6; }
.sw-service-card .sw-service-card__lead { color: #123B4A; font-size: 1rem; font-weight: 650; }
.sw-service-card .sw-service-subheading { margin: 20px 0 8px; color: #263238; font-size: .93rem; font-weight: 700; }
.sw-service-card .sw-service-list { margin: 0 0 14px; padding-left: 1.2rem; color: #59666B; font-size: .88rem; line-height: 1.55; }
.sw-service-card .sw-service-list li + li { margin-top: 6px; }
.sw-service-card .sw-service-list--benefits { padding-left: 0; list-style: none; }
.sw-service-card .sw-service-list--benefits li { display: flex; align-items: flex-start; gap: 9px; padding: 0; }
.sw-service-card .sw-service-list--benefits .sw-benefit-icon { display: block; width: 1.1rem; height: 1.1rem; flex: 0 0 1.1rem; margin-top: .12rem; object-fit: contain; }

.sw-contact {
  box-sizing: border-box;
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  color: #fff;
  background: #123B4A;
}
.sw-contact.wp-block-group.has-global-padding { padding-right: 0; padding-left: 0; }
.sw-contact__panel {
  box-sizing: border-box;
  flex: 0 0 auto;
  width: min(calc(100% - 48px), 1200px);
  max-width: none;
  margin: auto;
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(28px, 5vw, 58px);
  border-radius: 0;
  color: #fff;
  background: transparent;
}
.sw-contact__panel.wp-block-columns { align-items: flex-start; }
.sw-contact__panel > .wp-block-column { display: flex; flex-direction: column; justify-content: flex-start; }
.sw-contact__content { flex: 1 1 55%; }
.sw-contact__info { flex: 0 1 45%; padding-top: calc(.76rem * 1.4 + 18px); }
.sw-contact .sw-kicker { color: #F5F3EE; }
.sw-contact__title { max-width: 620px; margin: 0 0 11px; color: #fff; font-size: clamp(1.9rem, 3.6vw, 3.3rem); font-weight: 400; letter-spacing: -.05em; line-height: 1.04; }
.sw-contact__title .sw-type-strong { color: #F28B3C; font-weight: 700; }
.sw-contact__copy { max-width: 540px; margin: 0; color: rgba(255,255,255,.82); font-size: .98rem; line-height: 1.65; }
.sw-contact__details { display: grid; gap: 10px; margin: 0 0 18px; color: rgba(255,255,255,.82); font-size: .98rem; line-height: 1.65; }
.sw-contact__details p { margin: 0; }
.sw-contact__details strong { color: #F28B3C; font-weight: 700; }
.sw-contact__details a { color: #fff; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sw-contact__info .wp-block-button__link { padding: 1rem 1.35rem; color: #123B4A; background: #F5F3EE; }
.sw-contact__info .wp-block-button__link:hover { background: #fff; }
.sw-contact__legal { box-sizing: border-box; width: min(calc(100% - 48px), 1200px); margin: 0 auto; padding: 20px 0 24px; border-top: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.68); }
.sw-contact__legal-inner { gap: 12px; }
.sw-contact__legal p { margin: 0; font-size: .82rem; }
.sw-contact__legal a { color: #F5F3EE; }
.sw-main + .sw-footer { box-sizing: border-box; margin: 0; padding: 20px max(24px, calc((100vw - 1200px) / 2)) 24px; border-top: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.68); background: #123B4A; }
.sw-main + .sw-footer .sw-footer__inner { width: 100%; max-width: none; gap: 12px; margin: 0 auto; }
.sw-main + .sw-footer p { margin: 0; font-size: .82rem; }
.sw-main + .sw-footer a { color: #F5F3EE; }

@media (max-width: 900px) {
  .sw-header__inner { gap: 16px; min-height: 72px; }
  .sw-header__cta { display: none; }
  .sw-nav { justify-content: flex-end; }
  .sw-section__head { align-items: start; }
  .sw-section__head--editorial { min-height: 165px; padding-right: clamp(250px, 33vw, 297px); }
  .sw-company .sw-section__head,
  .sw-services-section .sw-services-head { margin-bottom: 60px; }
  .sw-company-subcategories { flex-direction: column; }
  .sw-company .sw-section__head--editorial::after,
  .sw-services-section .sw-section__head--editorial::after { width: clamp(270px, 35vw, 315px); height: clamp(104px, 13vw, 117px); }
}
@media (max-width: 781px) {
  .sw-header { padding: 7px 18px; }
  .sw-logo { width: 132px; height: 72px; }
  .sw-hero { padding: 48px 18px 58px; }
  .sw-hero__inner { gap: 30px; }
  .sw-hero-carousel__stage { height: 260px; border-top-right-radius: 78px; }
  .sw-section { padding: 58px 18px; }
  .sw-section__head--editorial { min-height: 0; padding-right: 0; }
  .sw-company .sw-section__head--editorial::after,
  .sw-services-section .sw-section__head--editorial::after { position: relative; top: auto; right: auto; width: clamp(220px, 58vw, 390px); height: clamp(94px, 20vw, 150px); margin-top: 12px; margin-right: calc(50% - 50vw); margin-left: auto; transform: none; }
  .sw-section__head { gap: 12px; }
  .sw-company .sw-section__head,
  .sw-services-section .sw-services-head { margin-bottom: 36px; }
  .sw-services-section { padding-top: 8px; }
  .sw-contact { min-height: 0; padding: 0; }
  .sw-contact__panel { width: calc(100% - 36px); padding: 28px 22px; }
  .sw-contact__panel.wp-block-columns { align-items: stretch; }
  .sw-contact__info { padding-top: 0; }
  .sw-contact__legal { width: calc(100% - 36px); padding: 18px 0 22px; }
  .sw-main + .sw-footer { padding: 18px 18px 22px; }
}
@media (max-width: 520px) {
  .sw-header__inner { min-height: 64px; }
  .sw-logo { width: 116px; height: 64px; }
  .sw-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
  .sw-nav .wp-block-navigation__responsive-container-open { display: flex; color: #123B4A; }
  .sw-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 24px; background: #fff; }
  .sw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start; }
  .sw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start; gap: 8px; }
  .sw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { padding: 10px 0; font-size: 1.05rem; }
  .sw-hero { padding: 42px 18px 48px; }
  .sw-display { font-size: clamp(3rem, 14vw, 4.4rem); }
  .sw-hero__intro { font-size: .98rem; }
  .sw-hero-carousel__stage { height: 220px; }
  .sw-hero-carousel__controls { min-height: 24px; }
  .sw-hero-carousel__controls button { width: 24px; height: 24px; }
  .sw-hero-carousel__controls button::before { width: 14px; height: 14px; }
  .sw-hero-carousel__slide figcaption { right: 12px; bottom: 12px; left: 12px; max-width: calc(100% - 24px); padding: 8px 9px; font-size: .68rem; }
  .sw-section { padding: 48px 18px; }
  .sw-company .sw-section__head--editorial::after,
  .sw-services-section .sw-section__head--editorial::after { width: clamp(220px, 68vw, 300px); height: 90px; }
  .sw-section__head { margin-bottom: 22px; }
  .sw-service-card, .sw-company-subcategory { padding: 18px; }
  .sw-contact__panel { gap: 23px; padding: 25px 18px; }
  .sw-contact__title { font-size: 2rem; }
  .sw-contact__info .wp-block-button, .sw-contact__info .wp-block-button__link { width: 100%; text-align: center; }
  .sw-contact__legal-inner { align-items: flex-start; flex-direction: column; }
  .sw-main + .sw-footer .sw-footer__inner { align-items: flex-start; flex-direction: column; }
}
