/*
  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 the Pech logo */
  --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;
}

/*
  Das Pech-Logo ist deutlich breiter als das Template-Logo (2.7:1 statt 3.5:1).
  Die Logo-Schräge im Header wird verbreitert, damit das Logo größer laufen kann;
  die obere Kontaktleiste rückt um denselben Betrag mit.
*/
.main-menu-three__logo-box {
  width: min(340px, 62vw);
}

/*
  ponytail: fluid statt Breakpoint — auf schmalen Phones schrumpft das Logo mit,
  sonst stößt es an den Burger-Button. Die 80 % halten das Logo innerhalb der
  Clip-Path-Schräge der Logo-Box (die unten rechts 16 % wegschneidet).
*/
.main-menu-three__logo img {
  width: 80%;
  height: auto;
}

/* Template-Default ist 10px 0 50px — der Leerraum unter dem Logo macht die
   ganze Navigationsleiste unnötig hoch. */
.main-menu-three__logo {
  padding: 10px 0 18px;
}

.main-header-three__top-inner {
  padding-left: 475px;
}

.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 .image-layer-three,
.main-slider-three .swiper-slide-active .image-layer-three {
  transform: none;
  transition: none;
}

/* Ambed-Default-Fade um 200px nach rechts (weiter ins Bild) verschoben,
   Farbwerte 1:1 aus ambed.css uebernommen. */
.main-slider-three .image-layer-three::before {
  background: linear-gradient(270deg,
    rgba(242, 238, 235, 0) 0%,
    rgba(242, 238, 235, 0) calc(40% - 200px),
    rgba(242, 238, 235, 0.795956) calc(69% - 200px),
    #f2eeeb calc(100% - 200px),
    #f2eeeb 100%);
}

.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;
}

.services-three .services-one__img {
  aspect-ratio: 370 / 432;
}

.services-three .services-one__img > img {
  height: 100%;
  object-fit: cover;
}

.about-two__img-1 {
  height: 448px;
  overflow: hidden;
}

.about-two__img-1 img {
  height: 100%;
  object-fit: cover;
}

.about-two__img-2 img {
  width: 400px;
  height: 448px;
  object-fit: cover;
  object-position: left center;
}

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

}

.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 {
  height: 560px;
}

.contact-map__pin {
  width: 34px;
  height: 34px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #067dc1;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.3);
  transform: rotate(-45deg);
}

.leaflet-popup-content {
  margin: 14px 16px;
  color: #6b6b6b;
  font-size: 13px;
  line-height: 1.45;
}

.leaflet-popup-content strong,
.leaflet-popup-content a {
  display: block;
}

.leaflet-popup-content strong {
  margin-bottom: 3px;
  color: #0e3047;
  font-size: 15px;
}

.leaflet-popup-content a {
  color: inherit;
}

.leaflet-popup-content a:hover {
  color: var(--ambed-base);
}

@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;
  }
}

/* Kontaktformular: Honeypot, Zustimmung, Statusmeldung */
.contact-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 6px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ambed-gray);
  cursor: pointer;
}

.contact-form__consent input {
  margin-top: 4px;
  flex: 0 0 auto;
  accent-color: var(--ambed-base);
}

.contact-form__status {
  margin-top: 16px;
  min-height: 24px;
  font-size: 16px;
}

.contact-form__status.is-ok {
  color: #1b7a3d;
}

.contact-form__status.is-error {
  color: #c22c2c;
}

/* Die Leistungssektion hat im Template 240px Auslauf nach unten — dort folgte
   ein ueberlappender Block, den es hier nicht gibt. Zusammen mit dem Abstand des
   Partner-Teasers klaffte eine Luecke von rund 360px. */
.services-three {
  padding-bottom: 120px;
}

/* Partner-Teaser (steht anstelle des frueheren Impressionen-Bereichs) */
.partner-teaser {
  padding: 120px 0;
  background: var(--ambed-primary);
}

.partner-teaser__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 760px;
  margin: 50px auto 0;
  padding: 56px 40px;
  background: var(--ambed-white);
  border: 1px solid var(--ambed-bdr-color);
  border-radius: 8px;
  text-align: center;
}

.partner-teaser__logo {
  width: min(300px, 70%);
  height: auto;
}

.partner-teaser__text {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
}

@media (max-width: 767px) {
  .partner-teaser {
    padding: 80px 0;
  }

  .partner-teaser__card {
    padding: 40px 24px;
  }
}

/* Rechtstexte: Impressum, Datenschutz */
.legal-page {
  padding: 120px 0;
}

.legal-page__content {
  color: var(--ambed-gray);
  font-size: 17px;
  line-height: 1.8;
}

.legal-page__content h2 {
  margin: 48px 0 18px;
  font-size: 28px;
  line-height: 1.3;
}

.legal-page__content h3 {
  margin: 34px 0 14px;
  font-size: 21px;
  line-height: 1.4;
}

.legal-page__content h4 {
  margin: 26px 0 10px;
  font-size: 18px;
  line-height: 1.5;
}

.legal-page__content > h2:first-child,
.legal-page__content > p:first-child {
  margin-top: 0;
}

.legal-page__content p {
  margin-bottom: 18px;
}

.legal-page__content ul {
  margin: 0 0 18px 22px;
  list-style: disc;
}

.legal-page__content li {
  margin-bottom: 10px;
}

.legal-page__content a {
  color: var(--ambed-base);
  word-break: break-word;
}

@media (max-width: 767px) {
  .legal-page {
    padding: 80px 0;
  }

  .legal-page__content {
    font-size: 16px;
  }

  .legal-page__content h2 {
    font-size: 24px;
  }
}

/* Footer-Bottom: Copyright links, redcat-Credit rechts (Vorbild textilrebellen) */
.site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 20px;
  text-align: left;
}

.site-footer__credit img {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin: 0 3px;
  vertical-align: -2px;
  filter: brightness(0) invert(1);
}
