/*
  Brand tokens for Maler Pech, mapped onto the Ambed template's own
  --ambed-* custom properties. Loading this AFTER ambed.css overrides
  the template's color/font tokens without touching ambed.css itself,
  so the template's layout/CSS stays pixel-accurate while the look
  becomes ours.
*/
:root {
  --ambed-font: 'Rubik', sans-serif;

  /* brand colors, derived from logo.svg */
  --ambed-base: #037dc1; /* primary (was #a47c68) */
  --ambed-base-rgb: 3, 125, 193;
  --ambed-accent-red: #d90a3f;
  --ambed-accent-yellow: #ebc323;

  --ambed-black: #0e3047; /* dark text/footer (was #3c3531) */
  --ambed-black-rgb: 14, 48, 71;

  --ambed-gray: #5b6167; /* body copy (was #8b827d) */
  --ambed-gray-rgb: 91, 97, 103;

  --ambed-white: #ffffff;
  --ambed-white-rgb: 255, 255, 255;

  --ambed-primary: #f2f6f9; /* light section bg (was #f2eeeb) */
  --ambed-primary-rgb: 242, 246, 249;

  --ambed-bdr-color: #dde4ea; /* border (was #e2ddda) */
  --ambed-bdr-color-rgb: 221, 228, 234;
}

@font-face {
  font-family: "Francy";
  src: url("/assets/fonts/Francy.otf") format("opentype");
  font-display: swap;
}

.page-wrapper h1,
.page-wrapper h2,
.page-wrapper h3,
.page-wrapper h4,
.page-wrapper h5,
.page-wrapper h6 {
  font-family: "Francy", serif;
  letter-spacing: 0.035em;
}

.page-wrapper .main-slider-three__title {
  line-height: 1.1 !important;
}

.main-slider-three__team {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 20;
  width: min(55vw, 930px);
  height: auto;
  transform-origin: right bottom;
  transition: transform 0.75s ease;
}

.main-slider-three__team:hover {
  transform: scale(1.006);
}

.main-slider-three .image-layer-three,
.main-slider-three .swiper-slide-active .image-layer-three {
  transform: none;
  transition: none;
}

.main-slider-three .container {
  pointer-events: none;
}

.main-slider-three__sub-title,
.main-slider-three__title,
.main-slider-three__btn {
  pointer-events: auto;
}

.page-wrapper h2:not(.main-slider-three__title) {
  letter-spacing: 0.05em;
}

.page-wrapper h3 {
  letter-spacing: 0.05em;
}

/*
  The template's CSS only sets `width: 100%` on these images, not
  `height`. Our <img> tags carry explicit width/height attributes
  (for aspect-ratio/CLS), which the browser maps to a literal
  `height` CSS value when no author rule overrides it — stretching
  the image. `height: auto` restores proportional scaling while
  keeping the width/height attributes as the intrinsic-ratio hint.
*/
.services-one__img img,
.why-choose-one__img img,
.about-two__img-1 img,
.about-two__img-2 img {
  height: auto;
}

/* category teaser (no real photos yet, see ULTRAPLAN Rückfrage-Trigger) */
.category-teaser {
  padding: 60px 0 120px;
}
.category-teaser__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 0;
}
.category-teaser__item {
  padding: 18px 40px;
  background: var(--ambed-primary);
  border: 1px solid var(--ambed-bdr-color);
  border-radius: 6px;
  font-weight: 600;
  color: var(--ambed-black);
}

@media (min-width: 768px) {
  .main-slider-three__title {
    font-size: 76px;
    line-height: 92px;
  }

  .main-slider-three .image-layer-three {
    background-size: 92% auto;
  }
}

@media (max-width: 767px) {
  .main-slider-three__team {
    right: -12%;
    width: 105vw;
  }
}

.feature-three__top {
  top: 0;
}

.feature-three__bottom {
  padding: 60px 0;
}

.page-header {
  margin-top: 0;
}

.main-menu .main-menu__list > li > a > .main-menu-border {
  display: none;
}

.services-three .row > [class*="col-"] {
  display: flex;
}

.services-three .services-one__single {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.services-three .services-one__content {
  flex: 1;
}

.services-one__icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.site-footer {
  background-color: #181a1d;
}

.site-footer-bg {
  display: none;
}

.site-footer__bottom,
.footer-widget__contact-list li .icon {
  background-color: #101113;
}

.footer-widget__about-text,
.footer-widget__explore-list li a,
.footer-widget__explore-list li a::before,
.footer-widget__services-list li a,
.footer-widget__services-list li a::before,
.footer-widget__contact-list li .text h5,
.site-footer__bottom-text {
  color: #b8c0c7;
}

.service-detail--intro {
  padding: 120px 0;
}

.service-detail h1 {
  font-size: 48px;
  line-height: 1.15;
  margin: 14px 0 24px;
}

.service-detail__lead {
  font-size: 20px;
  line-height: 1.6;
}

.service-detail__list {
  margin: 0;
  padding-left: 20px;
}

.service-detail__list li + li {
  margin-top: 8px;
}

.service-detail__btn {
  margin-top: 24px;
}

.service-detail__image {
  width: 100%;
  height: auto;
}

.service-detail__scope {
  padding: 110px 0;
  background: #0e3047;
  color: #dbe6ec;
}

.service-detail__scope h2 {
  margin: 14px 0 22px;
  color: #fff;
  font-size: 38px;
}

.service-detail__scope .section-title__tagline,
.service-detail__scope .service-detail__list li::marker {
  color: #ebc323;
}

.service-detail__scope .service-detail__list {
  padding: 30px 0 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.service-detail__scope .service-detail__list li {
  padding-left: 8px;
}

.service-detail__process {
  padding: 120px 0;
}

.service-detail__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin: 60px 0 0;
  padding: 0;
  list-style: none;
}

.service-detail__steps li {
  border-top: 2px solid var(--ambed-base);
  padding-top: 22px;
}

.service-detail__steps span {
  color: var(--ambed-base);
  font-size: 18px;
  font-weight: 700;
}

.service-detail__steps p {
  margin: 12px 0 0;
}

.service-detail__cta {
  padding: 72px 0;
  background: #181a1d;
  color: #fff;
  text-align: center;
}

.service-detail__cta p {
  margin: 0 0 22px;
  font-size: 24px;
}

.contact-map {
  position: relative;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 560px;
  border: 0;
}

.contact-map__marker {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  justify-items: center;
  transform: translate(-50%, -100%);
}

.contact-map__label {
  margin-bottom: 8px;
  min-width: 190px;
  padding: 13px 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(14, 48, 71, 0.22);
  color: #6b6b6b;
  font-size: 13px;
  line-height: 1.45;
  white-space: nowrap;
  text-align: left;
}

.contact-map__label strong,
.contact-map__label a {
  display: block;
}

.contact-map__label strong {
  margin-bottom: 3px;
  color: #0e3047;
  font-size: 15px;
}

.contact-map__label a {
  color: inherit;
}

.contact-map__label a:hover {
  color: var(--ambed-base);
}

.contact-map__pin {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50% 50% 50% 0;
  background: var(--ambed-base);
  color: #fff;
  font-size: 21px;
  transform: rotate(-45deg);
}

.contact-map__pin > span {
  transform: rotate(45deg);
}

@media (max-width: 991px) {
  .service-detail--intro,
  .service-detail__scope,
  .service-detail__process {
    padding: 80px 0;
  }

  .service-detail__image {
    margin-top: 40px;
  }

  .service-detail__scope .col-lg-5 {
    margin-top: 48px;
  }

  .service-detail__steps {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 42px;
  }
}
