/* ===================================================
   tauerndach / lungau.media – style.css
   OnePager Base (Bootstrap + Swiper + AOS)
=================================================== */

/* ===================================================
   Inhaltsübersicht
   1) Tokens & Bootstrap Mapping
   2) Base & Layout
   3) Typography & Links
   4) Buttons
   5) Topbar & Sticky Menu (clean)
   6) Sections & Abstände
   7) Hero / Swiper
      7.1) Hero Base
      7.2) Hero Animations
      7.3) Hero Overlay Person
   8) Content Modules
      8.1) Einstiegstext / Bild-Text Split
      8.2) Services Grid
      8.3) Bild & Text (Overlay)
      8.4) Einstiegstext – SVG Masking
   9) Footer
  10) AOS (clean, gated via html.aos-on)
  11) Preloader
=================================================== */


/* ===================================================
   1) Tokens & Bootstrap Mapping
=================================================== */

:root{
  scroll-behavior: smooth;

  --topbar-h: 78px;        /* nur für Layout/Abstände */
  --menu-h: 74px;          /* sticky menu height */
  --section-padding-y: 5rem;

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

  --doc-bg: #ffffff;
  --text: #0b0f14;
  --muted: rgba(0,0,0,.7);

  --radius-base: 1.1rem;
  --shadow-base: 0 12px 30px rgba(0,0,0,.08);

  /* Brand Tokens (ziehen Global Settings – mit Fallback) */
  --lm-primary:   var(--color-primary, #042940);
  --lm-secondary: var(--color-secondary, #005C53);
  --lm-accent:    var(--color-accent, #9FC131);

  /* Optional: falls Template Logos als CSS URLs setzt */
  --lm-logo-light: var(--logo-light, none);
  --lm-logo-dark:  var(--logo-dark,  none);
}

/* Bootstrap Theme Mapping (BS5) */
:root{
  --bs-primary: var(--lm-primary);
  --bs-secondary: var(--lm-secondary);
  --bs-warning: var(--lm-accent);

  --bs-body-bg: var(--doc-bg);
  --bs-body-color: var(--text);

  --bs-link-color: var(--lm-primary);
  --bs-link-hover-color: var(--lm-secondary);
}


/* ===================================================
   2) Base & Layout
=================================================== */

*{ box-sizing: border-box; }

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

/* iOS Rubber-Banding: Overscroll-Bereich an der Displayoberkante zeigt
   html-Hintergrund – muss zur Hero-Farbe passen, sonst weißer Streifen */
html{
  background: var(--lm-primary, #042940);
}

body{
  margin: 0;
  background: var(--doc-bg);
  color: var(--text);
}

/* WICHTIG: Topbar ist nicht fixed -> kein body padding-top */
body.is-onepager.has-hero-first,
body.is-onepager.no-hero-first{
  padding-top: 0;
}

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


/* ===================================================
   3) Typography & Links
=================================================== */

body {
	font-family: avenir-next-lt-pro-condensed, sans-serif;
}

h1, h2, h3, h4, h5, h6{
  font-family: avenir-next-lt-pro-condensed, sans-serif;
}

a{
  font-family: avenir-next-lt-pro-condensed, sans-serif;
  font-weight: 200;
  text-transform: uppercase;
}

.richtext {
	font-family: avenir-next-lt-pro-condensed, sans-serif;
	font-size: 1.4rem;
}

/* ===================================================
   Überschriften
=================================================== */
.section-heading__title {
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: .4rem;
}

h1.section-heading__title { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2.section-heading__title { font-size: clamp(2rem,   4vw, 3.5rem); }
h3.section-heading__title { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h4.section-heading__title { font-size: clamp(1.25rem,2vw, 1.75rem); }

.section-heading__sub {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--muted);
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .section-heading__title,
  .section-heading__sub { text-align: center; }
}


.section-heading__sub {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--muted);
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .section-heading__title,
  .section-heading__sub {
    text-align: center;
  }
}

.txt-section + .txt-section {
  padding-top: 0.75rem;
}

.section-heading:has(+ .txt-section) {
  padding-bottom: 0.75rem;
}




/* ===================================================
   4) Buttons
=================================================== */

.btn{
  font-family: "oxanium", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size:0.8rem;
  border-radius: .9rem;

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    filter .18s ease,
    background-color .18s ease,
    border-color .18s ease,
    color .18s ease;
}

/* PRIMARY */
.btn-primary{
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--lm-primary);
  --bs-btn-border-color: var(--lm-primary);

  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--lm-primary);
  --bs-btn-hover-border-color: var(--lm-primary);

  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--lm-primary);
  --bs-btn-active-border-color: var(--lm-primary);

  --bs-btn-focus-shadow-rgb: 0,0,0;

  background-color: var(--lm-primary) !important;
  border-color: var(--lm-primary) !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus{
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0,0,0,.14);
}

.btn-primary:active{
  transform: translateY(0);
  filter: brightness(.98);
  box-shadow: none;
}

/* OUTLINE PRIMARY */
.btn-outline-primary{
  --bs-btn-color: var(--lm-primary);
  --bs-btn-border-color: var(--lm-primary);

  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--lm-primary);
  --bs-btn-hover-border-color: var(--lm-primary);

  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--lm-primary);
  --bs-btn-active-border-color: var(--lm-primary);

  border-color: var(--lm-primary) !important;
  color: var(--lm-primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus{
  color: #fff !important;
  background-color: var(--lm-primary) !important;
  border-color: var(--lm-primary) !important;
}

/* SECONDARY */
.btn-secondary{
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--lm-secondary);
  --bs-btn-border-color: var(--lm-secondary);

  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--lm-secondary);
  --bs-btn-hover-border-color: var(--lm-secondary);

  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--lm-secondary);
  --bs-btn-active-border-color: var(--lm-secondary);

  background-color: var(--lm-secondary) !important;
  border-color: var(--lm-secondary) !important;
  color: #fff !important;
}

/* Accent (optional Utility) */
.btn-accent{
  background: var(--lm-accent);
  border-color: var(--lm-accent);
  color: #000;
}
.btn-accent:hover{ filter: brightness(1.05); }


/* ===================================================
   5) Topbar & Sticky Menu (CLEAN, ohne Hide/Scroll JS)
=================================================== */

/* ---------- TOPBAR (liegt über dem Hero, scrollt mit) ----------
   HTML: <header class="topbar" id="topbar" ...> steht VOR dem Hero.
   Wir ziehen die Topbar optisch in den Hero, ohne fixed.
*/
.topbar{
  position: relative;            /* scrollt mit */
  z-index: 120000;

  height: var(--topbar-h);
  display: flex;
  align-items: center;

  background: transparent;
  box-shadow: none;
}

/* Damit die Topbar "über" dem Hero sitzt: wir ziehen sie in den Hero rein */
body.has-hero-first .topbar{
  margin-bottom: calc(-1 * var(--topbar-h));
  pointer-events: auto;
}

/* Container/Row */
.topbar-row{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.topbar-brand{
  justify-self: center;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding-top:70px;
}

.topbar-logo{
  height: 100px;
  width: auto;
  display: block;
}

.topbar-slot{
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
}

.topbar-slot--left{ justify-content: flex-start; }
.topbar-slot--right{ justify-content: flex-end; }

.topbar-link{
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 200;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: opacity .2s ease, transform .2s ease;
}

.topbar-link:hover{
  opacity: 1;
  transform: translateY(-1px);
  text-decoration: none;
}

.topbar-ico{
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar-txt{
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Theme: dark = helle Schrift */
.topbar[data-theme="dark"]{
  color: rgba(255,255,255,.92);
}
.topbar[data-theme="dark"] .topbar-link{ color: rgba(255,255,255,.92); }
.topbar[data-theme="dark"] .topbar-link:hover{ color: #fff; }

/* Theme: light = dunkle Schrift */
.topbar[data-theme="light"]{
  color: rgba(0,0,0,.82);
}
.topbar[data-theme="light"] .topbar-link{ color: rgba(0,0,0,.82); }
.topbar[data-theme="light"] .topbar-link:hover{ color: rgba(0,0,0,1); }

@media (max-width: 991.98px){
  :root{ --topbar-h: 70px; }
  .topbar-logo{ height: 46px; }
  .topbar-txt{ display: none; } /* mobile: nur icons */
}

/* ---------- MENU (steht am Content-Start, wird sticky) ---------- */
.site-menu-sentinel{
  height: 1px;
}

/* Menü sticky am Viewport-Top (kein Topbar-Offset mehr nötig) */
.site-menu{
  position: sticky;
  top: 0;
  z-index: 110000;

  height: var(--menu-h);
  display: flex;
  align-items: center;

  background: rgba(255,255,255,0.85);
  box-shadow: 0 10px 25px rgba(0,0,0,.06);

  transition: box-shadow .25s ease, background-color .25s ease;
}

/* Optional: wenn es sticky ist, wirkt der Shadow etwas stärker
   (ohne JS: wir nutzen :has nicht – daher dauerhaft dezent, aber ok)
*/
.site-menu.is-stuck{
  box-shadow: 0 16px 45px rgba(0,0,0,.10);
}

.site-menu-row{
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

/* Layout Varianten */
.site-menu.is-align-left .site-menu-row{ justify-content: flex-start; }
.site-menu.is-align-center .site-menu-row{ justify-content: center; }
.site-menu.is-align-right .site-menu-row{ justify-content: flex-end; }

.site-menu.is-align-center .site-menu-nav,
.site-menu.is-align-right .site-menu-nav{
  justify-content: flex-start;
}

.site-menu-brand{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}

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

.site-menu-nav{
  list-style: none;
  padding: 0;
  margin: 0;

  display: flex;
  align-items: center;
  gap: .9rem;

  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

.site-menu-nav a{
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 200;
  color: var(--lm-secondary);
  padding: .35rem .35rem;
  white-space: nowrap;
  transition: opacity .2s ease, color .2s ease;
}

/* animated underline */
.site-menu-nav a::after{
  content:"";
  position: absolute;
  left: .35rem;
  right: .35rem;
  bottom: .05rem;
  height: 3px;
  border-radius: 99px;
  background: var(--lm-accent);

  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;

  transition: transform .28s ease, opacity .28s ease;
}

.site-menu-nav a:hover::after{
  transform: scaleX(1);
  opacity: 1;
}

/* Scroll Indicator */
.site-menu-nav a::after{
  content:"";
  position: absolute;
  left: .35rem;
  right: .35rem;
  bottom: .1rem;
  height: 3px;
  border-radius: 99px;
  background: var(--lm-accent);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
}

.site-menu-nav a.is-active::after{
  transform: scaleX(1);
  opacity: 1;
}

@media (max-width: 991.98px){
  :root{ --menu-h: 68px; }
  .site-menu-logo{ height: 38px; }

  .site-menu-nav{
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .site-menu-nav::-webkit-scrollbar{ display:none; }
}


/* ===================================================
   6) Sections & Abstände
=================================================== */

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

.section + .section{
  margin-top: .75rem;
}

@media (min-width: 992px){
  .section + .section{ margin-top: 1rem; }
}


/* ===================================================
   7) Hero / Swiper
=================================================== */

/* 7.1 Hero Base */
.hero--slider{
  padding: 0;
  margin-top: 0; /* Topbar ist nicht fixed -> kein negatives margin nötig */
  position: relative;
  z-index: 0;
}



.hero--slider .hero-swiper,
.hero--slider .swiper-wrapper,
.hero--slider .swiper-slide{
  height: 100vh;
  min-height: 100vh;
}

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

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

.hero-inner{
  position: relative;
  z-index: 2;
  min-height: 100vh;

  display: flex;
  align-items: stretch;
}

.hero-content{
  max-width: 720px;
  color: #fff;
  text-shadow: 0 8px 28px rgba(0,0,0,.35);
  transform: none;
}

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

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

@media (max-width: 991.98px){
	.hero-text {
	font-size:1.5rem;
	}
}

/* Controls */
.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 .25s ease, opacity .25s ease;
  opacity: .85;
}

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

.hero--slider .swiper-pagination-bullet{
  width: 10px;
  height: 10px;
  opacity: .4;
  transition: background-color .25s ease, opacity .25s ease, transform .25s ease;
}

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

/* Parallax optional deaktiviert */
.hero-parallax-scene{ display: none !important; }


/* 7.2 Hero Animations */
.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 ease, transform .55s 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);
}


/* 7.3 Hero Overlay Person */
.hero--slider .hero-inner{
  --hero-inner-pad-y: 3rem;
  position: relative;
}

.hero-slide .hero-layout{
  flex: 1;
  min-height: 100%;
  position: static;
  align-items: stretch !important;
}

.hero-slide .hero-caption{
  display: flex;
  align-items: center;
	z-index:999;
}

.hero-slide .hero-caption .hero-content{
  margin-top: 60VH;
  position: relative;
  z-index: 3;
}

.hero-slide .hero-caption .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: 991.98px){
  .hero-slide .hero-caption .hero-content::before{
    inset: -2rem -4rem -2rem -100vw;
  }
}

.hero-slide .hero-visual{
  position: relative;
  height: 100%;
}

/* Desktop: Overlay-Person – Oberkante knapp unter Caption-Text, unten abschneidbar */
@media (min-width: 992px){
  .hero-slide{
    overflow: hidden;
  }

  .hero-slide .hero-visual{
    position: static !important;
  }

  .hero-slide .hero-overlay-person{
    position: absolute;
    right: 0;
    bottom: 0;
    height: auto;
    max-width: 1680px;

    display: block;
    pointer-events: none;
    user-select: none;
    z-index: 3;
  }
}

/* Mobile */
@media (max-width: 991.98px){
  .hero-slide.has-overlay-person .hero-caption{
    padding-bottom: clamp(120px, 18vh, 200px);
    position: relative;
    z-index: 2;
  }

  .hero-slide.has-overlay-person .hero-visual{
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(85vw, 480px);
    height: auto;
    z-index: 3;
    pointer-events: none;
  }

  .hero-slide.has-overlay-person .hero-overlay-person{
    position: static;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: bottom;
    display: block;
  }
}

/* Grey Overlay Disable */
.hero-slide.no-grey-overlay{ --hero-overlay: 0 !important; }
.hero-slide.no-grey-overlay .hero-overlay{ display:none !important; opacity:0 !important; }
.hero-slide.no-grey-overlay::before,
.hero-slide.no-grey-overlay::after{ content:none !important; display:none !important; opacity:0 !important; }


/* ===================================================
   8) Content Modules
=================================================== */

/* 8.1 Einstiegstext / Bild-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);
}

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

.imgtext-split__text{
  color: rgba(0,0,0,.75);
	font-size:3rem;
}

@media (max-width: 992px){
  .imgtext-split__text{ 
	 font-size:2rem; 
	  margin:0 20px;
	}
	.imgtext-split__content{
		min-height:0;
	}
}


/* 8.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: 0;
  background: #e2e2e2;
  border: 0;
  box-shadow: none;
  transition: background-color .25s ease;
  width: 100%;
  min-height: 400px;
}

.services.services--grid .service-card:hover{ background: #f0f0f0; }
.services.services--grid .service-card__body{ padding-top: 80px; }

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

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

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

.service-title__line1, .service-title__line2 {
	font-size:2rem;
	text-transform:uppercase;
	font-weight:800 !important;
}


/* 8.3 Bild & Text (Overlay) */
.image-text-title{ margin: 0 0 1rem; }

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

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

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

.image-text-media-bg{
  position: relative;
  width: 100%;
  min-height: 420px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: visible;
  border-radius: 0;
}

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

.image-text-overlay{
  position: absolute;
  bottom: 0;
  top: auto;
  height: 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: -8%; right: auto; }
.image-text:not(.image-text--img-left) .image-text-overlay{ right: -8%; left: auto; }

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


/* 8.4 Einstiegstext – SVG Masking (nicht beschnitten) */
.imgtext-split__image--masked{
  min-height: 320px;
  height: 100%;
  position: relative;
  overflow: hidden;
  width:45vw;
  margin:0px auto;
}

@media (max-width: 991px){
	.imgtext-split__image--masked{
  		width:95vw;
	}
}

.imgtext-split__mask-bg{
  position: absolute;
  inset: 0;
  background: var(--doc-bg);
}

.imgtext-split__masked-image{
  position: absolute;
  inset: 0;

  background-image: var(--img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.imgtext-split__image--masked.has-mask .imgtext-split__masked-image{
  -webkit-mask-image: var(--mask);
  mask-image: var(--mask);

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  -webkit-mask-position: center;
  mask-position: center;

  -webkit-mask-size: contain;
  mask-size: contain;

  mask-mode: alpha;
}

.section.imgtext-split--masked[data-img-pos="right"]
.imgtext-split__image--masked.has-mask
.imgtext-split__masked-image{
  transform: scaleX(-1);
  transform-origin: center;
}


/* ===================================================
   8.4 Liste (lm-list)
=================================================== */
.lm-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lm-list li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .3rem 0;
  font-family: avenir-next-lt-pro-condensed, sans-serif;
  font-size: 1.4rem;
  line-height: 1.4;
}

.lm-list li::before {
  content: '';
  flex-shrink: 0;
  display: block;
  width:  1.3em;
  height: 1em;
  margin-top: .1em;
  background-color: var(--lm-primary);
  -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2MDAuMyA0NzEiPjxwb2x5Z29uIHBvaW50cz0iMjUwLjYgMTQxLjcgMTIxLjEgMzYyLjggMCAzNjIuOCAxODguMSAzMy4yIDE4OC4xIDMzLjIgMjUwLjYgMTQxLjciLz48cG9seWdvbiBwb2ludHM9IjI2OC43IDE3My42IDE1Ny40IDM2Mi44IDM3Ny44IDM2Mi44IDI2OC43IDE3My42Ii8+PHBvbHlnb24gcG9pbnRzPSI0NzYuNyA0NzEgNjAwLjMgNDcxIDMyOC44IDAgMjA1IDAgNDc2LjcgNDcxIi8+PC9zdmc+");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-position: center;
  mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2MDAuMyA0NzEiPjxwb2x5Z29uIHBvaW50cz0iMjUwLjYgMTQxLjcgMTIxLjEgMzYyLjggMCAzNjIuOCAxODguMSAzMy4yIDE4OC4xIDMzLjIgMjUwLjYgMTQxLjciLz48cG9seWdvbiBwb2ludHM9IjI2OC43IDE3My42IDE1Ny40IDM2Mi44IDM3Ny44IDM2Mi44IDI2OC43IDE3My42Ii8+PHBvbHlnb24gcG9pbnRzPSI0NzYuNyA0NzEgNjAwLjMgNDcxIDMyOC44IDAgMjA1IDAgNDc2LjcgNDcxIi8+PC9zdmc+");
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center;
}




/* ===================================================
   9) Footer
=================================================== */

.site-footer{
  background: var(--lm-primary);
  position: relative;
  overflow: visible;
}

.site-footer__inner{
  position: relative;
  padding-top: 2.25rem; /* Platz für das überstehende Logo */
}

/* Logo ragt nach oben raus */
.site-footer__logo{
  position: absolute;
  top: -42px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  text-decoration: none;
}

.site-footer__logo img{
  width: 78%;
  height: auto;
  display: block;
}

.site-footer__coltitle{
  font-family: "oxanium", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .95rem;
  margin-bottom: .75rem;
  color: var(--lm-secondary);
}

.site-footer__brand{
  font-family: "oxanium", sans-serif;
}

.site-footer__links{
  display: grid;
  gap: .45rem;
}

.site-footer__link{
  font-family: "oxanium", sans-serif;
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: .02em;

  color: rgba(0,0,0,.78);
  text-decoration: none;

  transition: opacity .2s ease, transform .2s ease;
}

.site-footer__link:hover{
  opacity: 1;
  transform: translateY(-1px);
  color: rgba(0,0,0,1);
  text-decoration: none;
}

.site-footer__copy{
  font-size: .95rem;
}

.ft_left {
  text-align:left !important;
}

.ft_center {
  text-align:center !important;
}

.ft_right {
  text-align:right !important;
}

@media (max-width: 575.98px){
  .site-footer__inner{ padding-top: 2.75rem; }
  .site-footer__logo{
    top: -38px;
    width: 108px;
    height: 108px;
  }
}

/* ===================================================
   10) Scroll-Animationen (via lm-scroll-anim.js)
   - Transitions + Transforms werden direkt als Inline-Styles
     vom Script gesetzt → kein Konflikt mit CSS-Kaskade
   - CSS hier nur: will-change Hint + Reduced-Motion Fallback
=================================================== */

html.has-aos [data-aos] {
  will-change: opacity, transform;
}

/* Reduced Motion: Animationen deaktivieren */
@media (prefers-reduced-motion: reduce) {
  html.has-aos [data-aos].aos-init {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ===================================================
   11) Preloader
=================================================== */

html.lm-loading{
  overflow: hidden;
}

.lm-preloader{
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: grid;
  place-items: center;

  background: rgba(255,255,255,.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  opacity: 1;
  visibility: visible;
  transition: opacity .35s ease, visibility .35s ease;
}

.lm-preloader__inner{
  display: grid;
  gap: .8rem;
  place-items: center;
  text-align: center;
  color: #111;
  font-family: "oxanium", sans-serif;
}

.lm-preloader__spinner{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 3px solid rgba(0,0,0,.16);
  border-top-color: rgba(0,0,0,.72);
  animation: lmSpin .8s linear infinite;
}

@keyframes lmSpin{ to { transform: rotate(360deg); } }

.lm-preloader__text{
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .9rem;
  color: rgba(0,0,0,.6);
}

/* Wenn JS fertig ist */
body.lm-loaded .lm-preloader{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Reduced Motion (nur für Hero-Transition) */
@media (prefers-reduced-motion: reduce){
  .hero--slider .hero-slide .hero-title,
  .hero--slider .hero-slide .hero-text,
  .hero--slider .hero-slide .hero-actions{
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ===================================================
   Site Menu – klickbar & oben (Fix: Clicks gingen "ins Leere")
=================================================== */

.site-menu{
  position: sticky;
  top: 0;
  z-index: 9999;              /* wichtig: über Hero/Overlays */
  pointer-events: auto;
}

.site-menu *{
  pointer-events: auto;       /* falls irgendwo pointer-events:none gesetzt wurde */
}

.site-menu-row{
  position: relative;
  z-index: 1;
}

.site-menu-nav{
  position: relative;
  z-index: 2;
}

.site-menu-nav a{
  position: relative;
  z-index: 3;
  cursor: pointer;
  pointer-events: auto;
}

/* falls irgendein Overlay/Sentinel drüber liegt */
.site-menu-sentinel{
  position: relative;
  z-index: 0;
  pointer-events: none;
}

/* Hero ohne Hintergrundbild – sichtbarer Text */
.hero--no-bg .hero-overlay { display: none; }
.hero--no-bg .hero-content { color: var(--lm-secondary, #333333); text-shadow: none; }

/* ===================================================
   Page Entry
=================================================== */
.page-entry {
  position: relative;
  width: 100%;
  margin-top: calc(-1 * var(--menu-h)); /* zieht sich unter Sticky-Nav */
}

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

/* Overlay: Dual-Gradient (oben für Nav-Bereich, unten für Titel) */
.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%
  );
	display:none;
}

.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;
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
  font-weight: 400;
  text-transform: uppercase;
}

.page-entry__title--light {
  color: #fff;
}

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


@media (max-width: 768px) {
  .page-entry__image {
    height: 40vh;
  }

  .richtext {
    text-align: center;
  }
}

/* ===================================================
   Impressum
=================================================== */
.section-impressum {
  padding-top: calc(var(--menu-h, 70px) + 3rem);
  padding-bottom: 3rem;
}

.section-impressum__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.impressum-block {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0,0,0,.1);
}

.impressum-block:last-child {
  border-bottom: none;
}

.impressum-block__heading {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--lm-primary);
  margin-bottom: .75rem;
}

.impressum-block p {
  margin-bottom: .4rem;
  line-height: 1.6;
}

.impressum-block a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===================================================
   Datenschutz – Subheadings & Liste
=================================================== */
.impressum-block__subheading {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.25rem 0 .4rem;
  color: var(--lm-primary, var(--color-primary));
}

.impressum-list {
  margin: .5rem 0 .75rem 1.5rem;
  line-height: 1.7;
}

/* ===================================================
   Mobile Optimierungen
=================================================== */

/* ---------------------------------------------------
   Hero: Person-Visual größer + hinter Caption
--------------------------------------------------- */
@media (max-width: 991.98px) {
  .hero-slide.has-overlay-person .hero-caption {
    padding-bottom: 0;
  }

  .hero-slide.has-overlay-person .hero-visual {
    position: absolute;
    bottom: 106px;
    left: 0;
    right: 0;
    width: 100%;
    height: 70vh;
    max-height: 70vh;
    z-index: 1;           /* hinter Caption (z-index 2) */
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }

  .hero-slide.has-overlay-person .hero-overlay-person {
    position: static !important;
    width: auto;
    height: 100%;
    max-height: 70vh;
    object-fit: contain;
    object-position: bottom center;
    display: block;
	  max-width:140vw;
  }
}

/* LG (992px–1199px): Person-Visual ebenfalls zentriert */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-slide.has-overlay-person .hero-visual {
    position: absolute !important;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 70vh;
    max-height: 70vh;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }
  .hero-slide.has-overlay-person .hero-overlay-person {
    position: static !important;
    width: auto;
    height: 100%;
    max-height: 70vh;
    object-fit: contain;
    object-position: bottom center;
    display: block;
  }
}

/* ---------------------------------------------------
   Textausrichtung: Mobile Zentrierung (einspaltig)
--------------------------------------------------- */
@media (max-width: 767.98px) {
  .section-heading__title,
  .section-heading__subline,
  .image-text-title,
  .image-text-title-line,
  .image-text-subline {
    text-align: center;
  }

  /* Liste zentriert ausrichten, Bullet-Items links */
  .section-list {
    text-align: center;
  }
  .section-list .lm-list {
    display: inline-flex;
    flex-direction: column;
    text-align: left;
  }
}

/* ---------------------------------------------------
   Footer: Mobile – alles zentriert
--------------------------------------------------- */
@media (max-width: 767.98px) {
  /* Alle Footer-Spalten zentrieren (überschreibt ft_left/ft_right) */
  .site-footer .ft-left,
  .site-footer .ft_left,
  .site-footer .ft_right {
    text-align: center !important;
  }

  /* Social-Links: 3-spaltig nebeneinander */
  .site-footer__links--social {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  /* Rechtliches-Links: 2-spaltig nebeneinander */
  .site-footer__links--legal {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
  }
}

/* Desktop: Rechtliches rechts ausrichten */
@media (min-width: 768px) {
  .site-footer__links--legal {
    justify-items: end;
    text-align: right;
  }
}

/* Footer Adresse */
.site-footer__addr {
  margin-bottom: .2rem;
  line-height: 1.5;
  font-family: "oxanium", sans-serif;
  font-weight: 200;
  font-size: .9rem;
}

/* ===================================================
   Hero: Mobile 75vh + iPhone Safe Area (Dynamic Island)
=================================================== */

@media (max-width: 991.98px) {
  .hero--slider .hero-swiper,
  .hero--slider .swiper-wrapper,
  .hero--slider .swiper-slide {
    height: 75vh;
    min-height: 75vh;
  }
  .hero-inner {
    min-height: 75vh;
  }

  .hero-slide .hero-caption .hero-content {
    margin-top: 30vh;  
  }
  .hero-slide.has-overlay-person .hero-visual {
    height: 72vh;      
    max-height: 72vh;
  }
  .hero-slide.has-overlay-person .hero-overlay-person {
    max-height: 72vh;
  }
}

/* iPhone Safe Area: Topbar-Inhalt unter Dynamic Island / Notch */
@supports (padding: env(safe-area-inset-top)) {
  body.has-hero-first .topbar {
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
    margin-bottom: calc(-1 * var(--topbar-h) - env(safe-area-inset-top, 0px));
  }
}

/* ===================================================
   Footer: einheitliche Schriftgroesse
=================================================== */
.site-footer__link,
.site-footer__brand {
  font-size: .9rem;
}

/* ===================================================
   Hero: Mehr erfahren-Button kleiner
=================================================== */
.hero-actions .btn {
  font-size: .82rem;
  padding: .35rem .85rem;
}
