/*
 * SG-safetec – style.css
 * lungau.media
 *
 * Inhaltsübersicht
 * ─────────────────────────────────────────────────────
 *  1)  Base & Variables
 *  2)  Typography & Links
 *  3)  Global Media
 *  4)  Header & Navigation
 *      4.1  Header Base + Layering
 *      4.2  Logo
 *      4.3  Link-Farben (Light / Dark / Nav-Open)
 *      4.4  Link-Stil & Animated Underline
 *      4.5  Desktop Layout
 *      4.6  Desktop Submenu
 *      4.7  Mobile Toggler
 *      4.8  Mobile Panel (.sg-mnav)
 *      4.9  Header Contact
 *  5)  Sections
 *  6)  Hero / Swiper
 *      6.1  Hero Slider Wrapper
 *      6.2  Hero Overlay
 *      6.3  Hero Inner & Content
 *      6.4  Slide Themes (Light / Dark)
 *      6.5  Swiper UI (Buttons, Pagination)
 *      6.6  Content Animation (Anim-In / Anim-Out)
 *      6.7  Overlay-Person
 *  7)  Content Module
 *      7.1  Image/Text Split
 *      7.2  Services Grid
 *      7.3  Bild & Text Modul
 *  8)  Page Entry (Seiteneinstieg)
 *  9)  Footer
 * 10)  Reduced Motion
 * 11)  Overrides
 *      11.1 Buttons
 *      11.2 Kontaktformular (YForm)
 *      11.3 Bootstrap Link-Overrides
 * ─────────────────────────────────────────────────────
 */


/* ─────────────────────────────────────────────────────
   1) Base & Variables
───────────────────────────────────────────────────── */

:root {
  scroll-behavior: smooth;

  --header-h: 88px;
  --section-padding-y: 5rem;

  --font-base: "oxanium", sans-serif;
  --fw-link: 200;

  --radius-0: 0;
  --radius-xs: 4px;
  --radius-sm: 6px;

  --space-0: 0;
  --space-1: .15rem;
  --space-2: .25rem;
  --space-3: .35rem;
  --space-4: .45rem;
  --space-5: .6rem;
  --space-6: .75rem;
  --space-7: .85rem;
  --space-8: 1rem;
  --space-9: 1.4rem;
  --space-10: 1.5rem;
  --space-11: 1.6rem;
  --space-12: 1.8rem;

  --ease: ease;
  --t-fast: .18s;
  --t-med: .25s;
  --t-slow: .28s;

  --z-header: 100000;
  --z-header-content: 100010;
  --z-header-ui: 100020;
  --z-submenu: 100001;
  --z-mnav: 99990;

  --white: #fff;
  --black: #000;

  --text-dark: rgba(0,0,0,.92);
  --text-muted: rgba(0,0,0,.75);
  --text-soft: rgba(0,0,0,.70);
  --text-subtle: rgba(0,0,0,.55);

  --header-bg: rgba(255,255,255,.85);
  --header-bg-solid: rgba(255,255,255,.92);
  --header-shadow: 0 10px 25px rgba(0,0,0,.06);
  --submenu-extend: 240px;

  --underline-h: 2px;
  --underline-radius: 2px;

  --mnav-bg: rgba(255,255,255,.96);
  --mnav-shift: -18px;
  --mnav-pad: 18px;

  --hero-overlay: .35;
  --hero-submenu-gradient-depth: 220px;
  --mobile-nav-h: 0px;

  --field-border: rgba(0,0,0,.14);
  --field-border-soft: rgba(0,0,0,.08);
  --field-bg: rgba(255,255,255,.96);
  --field-pad: 14px;

  --footer-bg: #f7f7f7;
  --footer-pad-y: 3.2rem;

  --svc-card-bg: #e2e2e2;
  --svc-card-bg-hover: #f0f0f0;
  --svc-card-minh: 400px;
  --svc-card-padtop: 80px;

  --page-entry-h: clamp(46vh, 40vh + 12vw, 62vh);
  --page-entry-minh: 420px;
  --page-entry-gradient-depth: clamp(240px, 34vh, 520px);
  --page-entry-gradient-dark: .85;
  --page-entry-gradient-mid: .62;
  --page-entry-gradient-soft: .22;

  --shadow-none: none;
}

html, body {
  height: 100%;
  overflow-x: clip;
}

@supports not (overflow-x: clip) {
  html, body { overflow-x: hidden; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main { flex: 1 0 auto; }
.site-footer { margin-top: auto; }

body.is-onepager .site-main > .page-entry:first-of-type {
  margin-top: calc(-1 * var(--header-h));
}


/* ─────────────────────────────────────────────────────
   2) Typography & Links
───────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 { font-family: var(--font-base); }

a {
  font-family: var(--font-base);
  font-weight: var(--fw-link);
}


/* ─────────────────────────────────────────────────────
   3) Global Media
───────────────────────────────────────────────────── */

img,
.img-fluid,
picture,
figure img {
  border-radius: var(--radius-0) !important;
}


/* ─────────────────────────────────────────────────────
   4) Header & Navigation
───────────────────────────────────────────────────── */

/* 4.1 Header Base + Layering */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  isolation: isolate;
  overflow: visible;
  background: var(--header-bg);
  box-shadow: var(--header-shadow);
  transition:
    transform var(--t-slow) var(--ease),
    background-color var(--t-med) var(--ease),
    box-shadow var(--t-med) var(--ease),
    color var(--t-med) var(--ease);
  will-change: transform;
}

.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: none;
  transition:
    opacity var(--t-slow) var(--ease),
    bottom var(--t-slow) var(--ease),
    background var(--t-med) var(--ease);
}

.site-header .container,
.site-header .navbar {
  position: relative;
  z-index: var(--z-header-content);
}

.site-header .sg-nav-toggle,
.site-header .navbar-brand,
.site-header .header-phone {
  position: relative;
  z-index: var(--z-header-ui);
}

.site-header.is-hidden {
  transform: translateY(calc(-1 * var(--header-h)));
}

.site-header::before {
  opacity: 0;
  background: var(--header-bg-solid);
  transition: opacity .22s var(--ease), bottom .22s var(--ease), background var(--t-med) var(--ease);
}

@media (min-width: 992px) {
  .site-header:not(.is-over-hero).submenu-open::before {
    opacity: 1;
    bottom: calc(-1 * var(--submenu-extend));
  }
}

.site-header.is-over-hero {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.site-header::after {
  opacity: 0 !important;
  bottom: 0 !important;
  background: none !important;
}

body.has-hero .site-header.is-over-hero::after {
  opacity: 1 !important;
  bottom: calc(-1 * var(--hero-submenu-gradient-depth, 220px)) !important;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.55) 0%,
    rgba(0,0,0,.55) var(--header-h, 88px),
    rgba(0,0,0,0)   100%
  ) !important;
}

/* 4.2 Logo */

.site-logo {
  height: 60px;
  width: auto;
  display: block;
}

@media (max-width: 991.98px) {
  .site-logo { height: 44px; }
}

/* 4.3 Link-Farben (Light / Dark / Nav-Open) */

.site-header a,
.sg-mnav a {
  color: inherit;
  text-decoration: none;
}

.site-header[data-header-theme="light"] .nav-link,
.site-header[data-header-theme="light"] .nav-sublink,
.site-header[data-header-theme="light"] .header-phone {
  color: var(--color-secondary) !important;
}

.site-header[data-header-theme="dark"] .nav-link,
.site-header[data-header-theme="dark"] .nav-sublink,
.site-header[data-header-theme="dark"] .header-phone {
  color: rgba(255,255,255,.92) !important;
}

.site-header[data-header-theme="dark"] .nav-link:hover,
.site-header[data-header-theme="dark"] .nav-sublink:hover,
.site-header[data-header-theme="dark"] .header-phone:hover {
  color: var(--white) !important;
}

.site-header.nav-open .nav-link,
.site-header.nav-open .nav-sublink,
.site-header.nav-open .header-phone {
  color: var(--color-secondary) !important;
}

/* 4.4 Link-Stil & Animated Underline */

.site-header .nav-link,
.site-header .nav-sublink,
.site-header .header-phone {
  font-size: 1rem;
  font-weight: var(--fw-link);
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.2;
  position: relative;
  display: inline-flex;
  width: auto;
  max-width: 100%;
  align-items: center;
  padding: var(--space-2) var(--space-1) var(--space-3);
  white-space: nowrap;
}

.site-header .nav-link::after,
.site-header .nav-sublink::after,
.site-header .header-phone::after {
  content: "";
  position: absolute;
  left: var(--space-1);
  right: var(--space-1);
  bottom: 0;
  height: var(--underline-h);
  border-radius: var(--underline-radius);
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition: transform var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
}

.site-header .nav-link:hover::after,
.site-header .nav-link.is-active::after,
.site-header .nav-sublink:hover::after,
.site-header .nav-sublink.is-active::after,
.site-header .header-phone:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

/* 4.5 Desktop Layout */

@media (min-width: 992px) {
  .site-header .nav {
    flex-wrap: nowrap;
    white-space: nowrap;
    width: 100%;
    justify-content: space-between;
  }

  .site-header .nav .nav-item {
    flex: 1 1 0;
    display: flex;
    justify-content: center;
  }

  .site-header .navbar .row > .col-lg-4.order-lg-1 {
    display: flex;
    justify-content: flex-end;
  }
}

/* 4.6 Desktop Submenu */

.site-header .nav-item.has-sub { position: relative; }

.site-header .nav-sub {
  list-style: none;
  margin: 0;
  padding: var(--space-5);
  position: absolute;
  left: var(--space-1);
  top: calc(100% + var(--space-4));
  z-index: var(--z-submenu);
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}

.site-header .nav-sub li { list-style: none; margin: 0; padding: 0; }

.site-header[data-header-theme="light"] .nav-sub {
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 14px 36px rgba(0,0,0,.12);
}

.site-header[data-header-theme="dark"] .nav-sub,
.site-header.is-over-hero .nav-sub {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.site-header .nav-item.has-sub:hover > .nav-sub,
.site-header .nav-item.has-sub:focus-within > .nav-sub,
.site-header .nav-item.has-sub.sub-open > .nav-sub {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (min-width: 992px) {
  .site-header:not(.is-over-hero) .nav-sub {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: var(--space-3) 0 0;
    min-width: 240px;
  }
}

.site-header .nav-sub .nav-sublink {
  font-size: .92rem;
  letter-spacing: .01em;
  opacity: .82;
  padding-left: var(--space-1);
  padding-right: var(--space-1);
}

.site-header .nav-sub .nav-sublink:hover { opacity: 1; }

.site-header[data-header-theme="dark"] .nav-sub .nav-sublink {
  color: rgba(255,255,255,.92) !important;
}

.site-header[data-header-theme="dark"] .nav-sub .nav-sublink:hover {
  color: var(--white) !important;
}

/* 4.7 Mobile Toggler */

.sg-nav-toggle {
  width: 20px;
  height: 20px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.sg-nav-toggle__line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: .7px;
  transition: transform var(--t-med) var(--ease), opacity .2s var(--ease), background-color .2s var(--ease);
}

.sg-nav-toggle__line:nth-child(1) { top: 3px; }
.sg-nav-toggle__line:nth-child(2) { top: 9px; }
.sg-nav-toggle__line:nth-child(3) { top: 15px; }

.sg-nav-toggle.is-active .sg-nav-toggle__line:nth-child(1) { transform: translateY(6px) rotate(-45deg); }
.sg-nav-toggle.is-active .sg-nav-toggle__line:nth-child(2) { opacity: 0; }
.sg-nav-toggle.is-active .sg-nav-toggle__line:nth-child(3) { transform: translateY(-6px) rotate(45deg); }

.site-header[data-header-theme="light"]:not(.is-over-hero):not(.nav-open) .sg-nav-toggle__line {
  background-color: rgba(0,0,0,.6);
}

.site-header[data-header-theme="dark"]:not(.nav-open) .sg-nav-toggle__line,
.site-header.is-over-hero:not(.nav-open) .sg-nav-toggle__line {
  background-color: rgba(255,255,255,.85);
}

.site-header.nav-open .sg-nav-toggle__line {
  background-color: rgba(0,0,0,.6);
}

@media (min-width: 992px) {
  .sg-nav-toggle { display: none !important; }
}

/* 4.8 Mobile Panel (.sg-mnav) */

.sg-mnav {
  position: fixed !important;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(100dvh - var(--header-h));
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  z-index: var(--z-mnav);
  background: var(--mnav-bg);
  transform: translateY(var(--mnav-shift));
  opacity: 0;
  pointer-events: none;
  transition: transform var(--t-slow) var(--ease), opacity .22s var(--ease);
}

.site-header.nav-open .sg-mnav {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sg-mnav__inner {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--mnav-pad);
  text-align: center;
  -webkit-overflow-scrolling: touch;
}

.sg-mnav__list,
.sg-mnav__sub {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sg-mnav__list li,
.sg-mnav__sub li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sg-mnav__item { margin: 0 0 12px; }

.sg-mnav__link,
.sg-mnav__sublink {
  font-size: 1rem;
  font-weight: var(--fw-link);
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--color-secondary) !important;
  position: relative;
  display: inline-flex;
  width: auto;
  max-width: 100%;
  align-items: center;
  padding: 10px 0 12px;
}

.sg-mnav__sub { margin-top: 4px; }

.sg-mnav__sublink {
  font-size: .92rem;
  letter-spacing: .01em;
  opacity: .78;
}

.sg-mnav__sublink:hover { opacity: 1; }

.sg-mnav__link::after,
.sg-mnav__sublink::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--underline-h);
  border-radius: var(--underline-radius);
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
}

.sg-mnav__link:hover::after,
.sg-mnav__sublink:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

body.sg-nav-open { overflow: hidden; }

/* 4.9 Header Contact */

.header-contact {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: color .25s ease, opacity .25s ease;
  font-size: 1rem;
}

.header-contact i { font-size: 1.2rem; }

.site-header[data-header-theme="light"] .header-contact { color: #111; }
.site-header[data-header-theme="dark"] .header-contact { color: #fff; }
.header-contact:hover { opacity: 0.7; }


/* ─────────────────────────────────────────────────────
   5) Sections
───────────────────────────────────────────────────── */

.section { padding: var(--section-padding-y) 0; }


/* ─────────────────────────────────────────────────────
   6) Hero / Swiper
───────────────────────────────────────────────────── */

/* 6.1 Hero Slider Wrapper */

.hero--slider {
  padding: 0;
  margin-top: calc(-1 * var(--header-h));
  position: relative;
  z-index: 0;
}

.hero--slider .hero-swiper,
.hero--slider .swiper-wrapper,
.hero--slider .swiper-slide {
  height: 100vh;
  min-height: max(calc(var(--header-h) + var(--mobile-nav-h, 0px) + 120px), 80vh);
}

.hero-slide {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 6.2 Hero Overlay */

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: rgba(0,0,0,var(--hero-overlay));
}

@media (max-width: 767.98px) {
  .hero-overlay {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    height: clamp(120px, 22vh, 220px);
    background: linear-gradient(
      to top,
      rgba(0,0,0,.88) 0%,
      rgba(0,0,0,.55) 55%,
      rgba(0,0,0,0)   100%
    );
  }
}

/* 6.3 Hero Inner & Content */

.hero-inner {
  position: relative;
  z-index: 3;
  min-height: 100%;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 720px;
  transform: translateY(6vh);
  position: relative;
  z-index: 3;
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: -2rem -8rem -2rem -100vw;
  background: linear-gradient(
    to right,
    rgba(0,0,0,.52) 0%,
    rgba(0,0,0,.52) calc(100% - 8rem),
    rgba(0,0,0,0)   100%
  );
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 767.98px) {
  .hero-content { transform: translateY(5vh); }

  .hero-content::before {
    inset: -1.5rem -5rem -1.5rem -100vw;
    background: linear-gradient(
      to right,
      rgba(0,0,0,.52) 0%,
      rgba(0,0,0,.52) calc(100% - 5rem),
      rgba(0,0,0,0)   100%
    );
  }
}

.hero-title {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  margin: 0 0 20px;
}

.hero-text {
  font-size: 1.05rem;
  opacity: .95;
}

.hero-slide .hero-title,
.hero-slide .hero-text,
.hero-slide .btn {
  transition:
    color var(--t-med) var(--ease),
    background-color var(--t-med) var(--ease),
    border-color var(--t-med) var(--ease),
    opacity var(--t-med) var(--ease);
}

/* 6.4 Slide Themes (Light / Dark) */

.hero-slide[data-slide-theme="light"] .hero-title,
.hero-slide[data-slide-theme="light"] .hero-text {
  color: var(--text-dark);
  text-shadow: 0 10px 28px rgba(255,255,255,.55);
}

.hero-slide[data-slide-theme="dark"] .hero-title,
.hero-slide[data-slide-theme="dark"] .hero-text {
  color: rgba(255,255,255,.96);
  text-shadow: 0 10px 28px rgba(0,0,0,.45);
}

.hero-slide[data-slide-theme="dark"] .hero-title,
.hero[data-header-theme="dark"] .hero-title {
  text-shadow:
    0 2px 12px rgba(0,0,0,.65),
    0 0 34px rgba(0,0,0,.42),
    0 0 70px rgba(0,0,0,.25);
}

/* 6.5 Swiper UI (Buttons, Pagination) */

.hero--slider .swiper-button-prev,
.hero--slider .swiper-button-next,
.hero--slider .swiper-pagination {
  z-index: 5;
}

.hero--slider .swiper-button-prev,
.hero--slider .swiper-button-next {
  transition: color var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
  opacity: .85;
}

.hero--slider .swiper-button-prev:hover,
.hero--slider .swiper-button-next:hover {
  opacity: 1;
}

.site-header[data-header-theme="light"] ~ main .hero--slider .swiper-button-prev,
.site-header[data-header-theme="light"] ~ main .hero--slider .swiper-button-next {
  color: var(--color-secondary);
}

.site-header[data-header-theme="dark"] ~ main .hero--slider .swiper-button-prev,
.site-header[data-header-theme="dark"] ~ main .hero--slider .swiper-button-next {
  color: rgba(255,255,255,.95);
}

.hero--slider .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  opacity: .4;
  transition:
    background-color var(--t-med) var(--ease),
    opacity var(--t-med) var(--ease),
    transform var(--t-med) var(--ease);
}

.site-header[data-header-theme="light"] ~ main .hero--slider .swiper-pagination-bullet {
  background-color: var(--color-secondary);
}

.site-header[data-header-theme="dark"] ~ main .hero--slider .swiper-pagination-bullet {
  background-color: rgba(255,255,255,.9);
}

.hero--slider .swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(1.15);
}

/* 6.6 Content Animation (Anim-In / Anim-Out) */

.hero--slider .hero-slide .hero-title,
.hero--slider .hero-slide .hero-text,
.hero--slider .hero-slide .hero-actions {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  will-change: opacity, transform;
}

.hero--slider .hero-slide .hero-title  { transition-delay: .06s; }
.hero--slider .hero-slide .hero-text   { transition-delay: .18s; }
.hero--slider .hero-slide .hero-actions { transition-delay: .30s; }

.hero--slider .hero-slide.is-anim-in .hero-title,
.hero--slider .hero-slide.is-anim-in .hero-text,
.hero--slider .hero-slide.is-anim-in .hero-actions {
  opacity: 1;
  transform: translateX(0);
}

.hero--slider .hero-slide.is-anim-out .hero-title,
.hero--slider .hero-slide.is-anim-out .hero-text,
.hero--slider .hero-slide.is-anim-out .hero-actions {
  transition-duration: .22s;
  transition-delay: 0s;
  opacity: 0;
  transform: translateX(-18px);
}

.hero-parallax-scene { display: none !important; }

/* 6.7 Overlay-Person */

.hero-overlay-person {
  position: absolute;
  right: 5vw;
  bottom: 0;
  width: auto;
  max-width: min(900px, 60vw);
  height: 88vh;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom right;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transform: translateX(60px);
  transition:
    opacity .65s var(--ease),
    transform .65s var(--ease);
  will-change: transform, opacity;
  filter: drop-shadow(0 18px 32px rgba(0,0,0,.28));
}

.hero-slide.is-anim-in .hero-overlay-person {
  opacity: 1;
  transform: translateX(0);
}

.hero-slide.is-anim-out .hero-overlay-person {
  opacity: 0;
  transform: translateX(40px);
  transition-duration: .3s;
  transition-delay: 0s;
}

@media (max-width: 991px) {
  .hero-overlay-person {
    right: -4vw;
    max-width: min(560px, 86vw);
    height: 70vh;
  }
}


/* ─────────────────────────────────────────────────────
   7) Content Module
───────────────────────────────────────────────────── */

/* 7.1 Image/Text Split */

.imgtext-split__image {
  min-height: 55vh;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.imgtext-split__content {
  min-height: 55vh;
  display: flex;
  align-items: center;
}

@media (min-width: 992px) {
  .imgtext-split__image  { min-height: 70vh; }
  .imgtext-split__content { min-height: 70vh; }
}

.imgtext-split__content-inner {
  width: 100%;
  max-width: 640px;
}

.imgtext-split__title {
  margin: 0 0 .75rem;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  position: relative;
  z-index: var(--z-header-ui);
}

.imgtext-split__sub {
  margin: 0 0 1rem;
  font-weight: 700;
  color: var(--color-secondary);
}

.imgtext-split__text { color: var(--text-muted); }
.imgtext-split__actions { margin-top: var(--space-9); }

/* 7.2 Services Grid */

.services.services--grid { background: transparent; }

.services.services--grid .row {
  --bs-gutter-x: 0.2rem;
  --bs-gutter-y: 0.2rem;
}

.services.services--grid .section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.services.services--grid .section-lead {
  font-size: 1.1rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.services.services--grid .service-card {
  border-radius: var(--radius-0);
  background: var(--svc-card-bg);
  border: 0;
  box-shadow: var(--shadow-none);
  transition: background-color var(--t-med) var(--ease);
  width: 100%;
  min-height: var(--svc-card-minh);
}

.services.services--grid .service-card:hover { background: var(--svc-card-bg-hover); }
.services.services--grid .service-card__body  { padding-top: var(--svc-card-padtop); }

.services.services--grid .service-title {
  line-height: 1.25;
  margin-bottom: 2rem;
}

.services.services--grid .service-title span { display: block; }

.services.services--grid .service-title__line2 {
  font-weight: 500;
  opacity: .85;
  min-height: 1.25em;
}

/* 7.3 Bild & Text Modul */

.image-text-title { margin: 0 0 var(--space-8); }

.image-text-title-line {
  display: block;
  line-height: 1.05;
}

.image-text-subline {
  font-weight: 700;
  opacity: .92;
}

@media (min-width: 992px) {
  .image-text--img-left .image-text-content          { text-align: left; }
  .image-text:not(.image-text--img-left) .image-text-content { text-align: right; }
}

@media (max-width: 991.98px) {
  .image-text-content,
  .image-text-title-line,
  .image-text-subline,
  .image-text-content .richtext { text-align: center; }
}

.image-text-content .richtext ul,
.image-text-content .richtext ol {
  padding-left: 1.25em;
  margin: .75rem 0 0;
}

@media (min-width: 992px) {
  .image-text:not(.image-text--img-left) .image-text-content .richtext ul,
  .image-text:not(.image-text--img-left) .image-text-content .richtext ol {
    display: inline-block;
    width: auto;
    max-width: 100%;
    text-align: left;
    margin-left: auto;
    margin-right: 0;
  }
}

@media (max-width: 991.98px) {
  .image-text-content .richtext ul,
  .image-text-content .richtext ol {
    display: inline-block;
    width: auto;
    max-width: 100%;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
  }
}

.image-text--has-overlay .image-text-media {
  position: relative;
  overflow: visible;
}

.image-text-media-bg {
  position: relative;
  width: 100%;
  min-height: var(--imgtext-media-minh, 550px);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: visible;
  border-radius: var(--radius-0);
}

@media (max-width: 991px) {
  .image-text-media-bg { min-height: var(--imgtext-media-minh-md, 320px); }
}

@media (max-width: 991.98px) {
  .image-text-media-bg {
    aspect-ratio: var(--imgtext-media-ar, 4 / 3);
    height: auto;
  }
}

.image-text-overlay {
  position: absolute;
  bottom: 0;
  top: auto;
  height: var(--imgtext-overlay-h, 108%);
  width: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  display: block;
  pointer-events: none;
  z-index: 2;
}

.image-text--img-left .image-text-overlay               { left: var(--imgtext-overlay-x, -8%); right: auto; }
.image-text:not(.image-text--img-left) .image-text-overlay { right: var(--imgtext-overlay-x, -8%); left: auto; }

@media (max-width: 991px) {
  .image-text-overlay { height: var(--imgtext-overlay-h-md, 104%); }
  .image-text--img-left .image-text-overlay               { left: var(--imgtext-overlay-x-md, -4%); }
  .image-text:not(.image-text--img-left) .image-text-overlay { right: var(--imgtext-overlay-x-md, -4%); }
}

.image-text--aos .image-text-overlay {
  will-change: transform, opacity;
  animation: none;
  opacity: 1;
  transform: translate3d(0,0,0);
}

html.aos-ready .image-text--aos .image-text-overlay.aos-init:not(.aos-animate) { opacity: 0; }

html.aos-ready .image-text--aos .image-text-overlay.aos-init:not(.aos-animate)[data-aos="fade-left"]  { transform: translate3d(80px, 0, 0); }
html.aos-ready .image-text--aos .image-text-overlay.aos-init:not(.aos-animate)[data-aos="fade-right"] { transform: translate3d(-80px, 0, 0); }

html.aos-ready .image-text--aos .image-text-overlay.aos-animate {
  transform: translate3d(0,0,0);
  opacity: 1;
}

@media (max-width: 420px) {
  .image-text-overlay { height: var(--imgtext-overlay-h-xs, 96%); }
  .image-text--img-left .image-text-overlay               { left: var(--imgtext-overlay-x-xs, 0); }
  .image-text:not(.image-text--img-left) .image-text-overlay { right: var(--imgtext-overlay-x-xs, 0); }
}

@media (max-width: 991.98px) {
  .image-text:not(.image-text--has-overlay) .image-text-media {
    position: relative;
    overflow: hidden;
  }

  .image-text:not(.image-text--has-overlay) .image-text-media::before {
    content: "";
    display: block;
    padding-top: var(--imgtext-placeholder-ratio, 75%);
  }

  .image-text:not(.image-text--has-overlay) .image-text-media > img.img-fluid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}


/* ─────────────────────────────────────────────────────
   8) Page Entry (Seiteneinstieg)
───────────────────────────────────────────────────── */

.page-entry { width: 100%; }

.page-entry__image {
  position: relative;
  width: 100%;
  height: var(--page-entry-h);
  min-height: var(--page-entry-minh);
  overflow: hidden;
}

.page-entry__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
}

.page-entry__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.page-entry__overlay::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--page-entry-gradient-depth);
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,var(--page-entry-gradient-dark)) 0%,
    rgba(0,0,0,var(--page-entry-gradient-mid))  40%,
    rgba(0,0,0,var(--page-entry-gradient-soft)) 72%,
    rgba(0,0,0,0) 100%
  );
}

.page-entry__overlay::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(160px, 22vh, 280px);
  background: linear-gradient(
    to top,
    rgba(0,0,0,.72) 0%,
    rgba(0,0,0,.72) 35%,
    rgba(0,0,0,.45) 60%,
    rgba(0,0,0,0)   100%
  );
}

.page-entry__title-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(18px, 3vw, 34px);
  z-index: 2;
}

.page-entry__title { margin: 0; }

.page-entry__title--light { color: var(--text-dark); }

.page-entry__title--dark {
  color: var(--white);
  text-shadow:
    0 2px 10px rgba(0,0,0,.65),
    0 0 26px rgba(0,0,0,.55);
}


/* ─────────────────────────────────────────────────────
   9) Footer
───────────────────────────────────────────────────── */

.site-footer {
  background: var(--footer-bg);
  padding: var(--footer-pad-y) 0;
}

.footer-block {
  display: flex;
  flex-direction: column;
  gap: var(--footer-gap, .9rem);
}

.footer-block--right {
  align-items: flex-end;
  text-align: right;
}

.footer-title {
  font-family: var(--font-base);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--color-accent);
}

.footer-address {
  color: var(--text-muted);
  line-height: 1.45;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--footer-contact-gap, .55rem);
  margin-top: .2rem;
}

.footer-contact__item {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--color-secondary);
  text-decoration: none;
  font-family: var(--font-base);
  font-weight: var(--fw-link);
  letter-spacing: .02em;
  line-height: 1.2;
  position: relative;
  width: fit-content;
}

.footer-logo img {
  height: var(--footer-logo-h, 70px);
  width: auto;
  display: block;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--footer-links-gap, .55rem);
  margin-top: .15rem;
}

.footer-link {
  color: var(--color-secondary);
  text-decoration: none;
  font-family: var(--font-base);
  font-weight: var(--fw-link);
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.2;
  position: relative;
  display: inline-flex;
  width: auto;
  padding: var(--space-2) var(--space-1) var(--space-3);
}

.footer-link::after,
.footer-contact__item::after {
  content: "";
  position: absolute;
  left: var(--space-1);
  right: var(--space-1);
  bottom: 0;
  height: var(--underline-h);
  border-radius: var(--underline-radius);
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition: transform var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
}

.footer-link:hover::after,
.footer-contact__item:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.footer-copy {
  margin-top: .9rem;
  color: var(--text-subtle);
  font-size: .95rem;
}

@media (max-width: 991.98px) {
  .footer-block--right {
    align-items: flex-start;
    text-align: left;
  }

  .footer-logo img { height: var(--footer-logo-h-md, 62px); }
}


/* ─────────────────────────────────────────────────────
   10) Reduced Motion
───────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .hero--slider .hero-slide .hero-title,
  .hero--slider .hero-slide .hero-text,
  .hero--slider .hero-slide .hero-actions,
  .image-text--aos .image-text-overlay {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .hero-overlay-person {
    transition: none !important;
    transform: translateX(0) !important;
    opacity: 1 !important;
  }
}


/* ─────────────────────────────────────────────────────
   11) Overrides
───────────────────────────────────────────────────── */

/* 11.1 Buttons */

.btn,
.btn:focus,
.btn:active,
.btn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.btn-primary {
  --bs-btn-color: var(--btn-text, #000);
  --bs-btn-bg: var(--color-primary);
  --bs-btn-border-color: var(--color-primary);
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: var(--btn-text, #000) !important;
  border-radius: var(--btn-radius, var(--radius-sm));
  box-shadow: var(--shadow-none) !important;
}

.btn-primary:hover {
  background-color: color-mix(in srgb, var(--color-primary) 88%, #000 12%) !important;
  border-color: color-mix(in srgb, var(--color-primary) 88%, #000 12%) !important;
  color: var(--btn-text, #000) !important;
}

.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
  background-color: color-mix(in srgb, var(--color-primary) 78%, #000 22%) !important;
  border-color: color-mix(in srgb, var(--color-primary) 78%, #000 22%) !important;
  color: var(--btn-text, #000) !important;
}

.btn-primary:disabled,
.btn-primary.disabled {
  background-color: color-mix(in srgb, var(--color-primary) 55%, var(--white) 45%) !important;
  border-color: color-mix(in srgb, var(--color-primary) 55%, var(--white) 45%) !important;
  color: rgba(0,0,0,.45) !important;
  opacity: 1 !important;
}

a.btn-primary { color: var(--btn-text, #000) !important; }

/* 11.2 Kontaktformular (YForm) */

button.mav-pillbtn,
.yform .mav-pillbtn,
.yform button[type="submit"] {
  appearance: none;
  border: 0;
  border-radius: var(--btn-radius, var(--radius-sm));
  background-color: var(--color-primary);
  color: var(--btn-text, #000);
  font-family: var(--font-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: var(--btn-pad-y, .75rem) var(--btn-pad-x, 1.6rem);
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background-color var(--t-med) var(--ease),
    color var(--t-med) var(--ease),
    transform var(--t-fast) var(--ease);
}

button.mav-pillbtn:hover,
.yform button[type="submit"]:hover {
  background-color: color-mix(in srgb, var(--color-primary) 85%, #000);
  transform: translateY(-1px);
}

button.mav-pillbtn:active { transform: translateY(0); }

button.mav-pillbtn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(0,0,0,.25),
    0 0 0 4px color-mix(in srgb, var(--color-primary) 45%, transparent);
}

button.mav-pillbtn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.contact-form {
  padding: calc(var(--section-padding-y) * 1.1) 0;
}

.contact-form .section-title {
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.contact-form .section-lead {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form__wrap {
  margin-top: var(--space-10);
  background: var(--field-bg);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-none);
  padding: clamp(18px, 3vw, 34px);
}

#rex-yform .rex-yform {
  display: grid;
  gap: var(--form-gap, 18px);
}

#rex-yform .form-group {
  margin: 0;
  display: grid;
  gap: var(--form-label-gap, 8px);
}

#rex-yform label.control-label {
  font-family: var(--font-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: var(--form-label-size, .85rem);
  color: var(--text-soft);
}

#rex-yform .form-control {
  width: 100%;
  border-radius: var(--radius-xs);
  border: 1px solid var(--field-border);
  background: var(--white);
  padding: var(--field-pad);
  font-size: 1rem;
  box-shadow: none !important;
  outline: none;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

#rex-yform textarea.form-control {
  min-height: var(--form-textarea-minh, 180px);
  resize: vertical;
}

#rex-yform .form-control:focus {
  border-color: color-mix(in srgb, var(--color-primary) 65%, rgba(0,0,0,.25));
  box-shadow: 0 0 0 var(--focus-ring, 3px) color-mix(in srgb, var(--color-primary) 30%, transparent) !important;
}

#rex-yform .formcheckbox {
  margin-top: var(--form-check-mt, 8px);
  padding: var(--form-check-pad, 14px);
  border-radius: var(--radius-xs);
  border: 1px solid var(--field-border-soft);
  background: rgba(0,0,0,.03);
}

#rex-yform .formcheckbox > label {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-family: var(--font-base);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: var(--form-label-size, .85rem);
  color: rgba(0,0,0,.75);
  margin: 0;
}

#rex-yform .formcheckbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

#rex-yform .help-block {
  margin: 8px 0 0;
  font-size: var(--form-help-size, .85rem);
  color: var(--text-subtle);
}

#rex-yform button.mav-pillbtn {
  justify-self: end;
  margin-top: var(--form-btn-mt, 8px);
}

@media (max-width: 575.98px) {
  #rex-yform button.mav-pillbtn {
    width: 100%;
    justify-self: stretch;
  }
}

#rex-yform input:-webkit-autofill {
  -webkit-text-fill-color: #000;
  transition: background-color 9999s ease-in-out 0s;
}

#rex-yform .has-error .form-control,
#rex-yform .is-invalid {
  border-color: rgba(180,0,0,.45);
  box-shadow: 0 0 0 var(--focus-ring, 3px) rgba(180,0,0,.12) !important;
}

/* 11.3 Bootstrap Link-Overrides */

.site-footer a,
.site-footer a:visited,
.site-footer a:hover,
.site-footer a:focus,
.site-footer a:active {
  color: inherit !important;
  text-decoration: none !important;
}

.site-footer .footer-link,
.site-footer .footer-contact__item {
  color: var(--color-secondary) !important;
  text-decoration: none !important;
}

.section .richtext a,
.section .richtext a:visited {
  color: var(--color-secondary) !important;
  text-decoration: none !important;
}

.section .richtext a:hover,
.site-footer .footer-link:hover,
.site-footer .footer-contact__item:hover {
  color: color-mix(in srgb, var(--color-secondary) 70%, #000) !important;
}

.section .richtext a,
.site-footer .footer-link,
.site-footer .footer-contact__item {
  position: relative;
  display: inline-flex;
  width: fit-content;
  padding: var(--space-2) var(--space-1) var(--space-3);
}

.section .richtext a::after,
.site-footer .footer-link::after,
.site-footer .footer-contact__item::after {
  content: "";
  position: absolute;
  left: var(--space-1);
  right: var(--space-1);
  bottom: 0;
  height: var(--underline-h);
  border-radius: var(--underline-radius);
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition: transform var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
}

.section .richtext a:hover::after,
.site-footer .footer-link:hover::after,
.site-footer .footer-contact__item:hover::after {
  transform: scaleX(1);
  opacity: 1;
}
