/*
 Theme Name: Mittwald Divi Child
 Template: Divi
*/

/* =========================================================
   NUCLEAR SE – CLEAN LAYOUT CSS
   Theme-Datei-Editor
   Nur Struktur / Header / Hero / Footer / A11Y / Responsive
   Fonts NICHT hier pflegen
   ========================================================= */


/* =========================================================
   1. BASIS
   ========================================================= */

html,
body{
  margin:0 !important;
  padding:0 !important;
  overflow-x:hidden !important;
  background:#0b0f10;
}

#page-container{
  overflow-x:hidden !important;
}

*,
*::before,
*::after{
  box-sizing:border-box;
}


/* =========================================================
   2. FOKUS / A11Y
   ========================================================= */

a:focus,
button:focus,
[role="button"]:focus{
  outline:none !important;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible{
  outline:3px solid #AEEA71 !important;
  outline-offset:4px !important;
  border-radius:12px !important;
  box-shadow:0 0 0 3px rgba(0,0,0,.30) !important;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible){
  outline:none !important;
  box-shadow:none !important;
}


/* =========================================================
   3. HEADER GLOBAL
   Startseite + Unterseiten gleich aufgebaut
   ========================================================= */

.et-l--header{
  position:fixed !important;
  top:0 !important;
  left:0 !important;
  right:0 !important;
  width:100% !important;
  max-width:100% !important;
  z-index:2147483000 !important;
}

.et-l--header .et_builder_inner_content{
  background:#003316 !important;
  transition:background-color .30s ease, box-shadow .30s ease;
  box-shadow:none !important;
  width:100% !important;
  max-width:100% !important;
}

.et-l--header .et_pb_section,
.et_pb_sticky_module.et_pb_section{
  width:100% !important;
  max-width:100% !important;
  padding:0 !important;
  background:transparent !important;
}

.et-l--header .et_pb_row,
.et_pb_sticky_module .et_pb_row{
  width:100% !important;
  max-width:1180px !important;
  margin:0 auto !important;
  padding:0 22px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  box-sizing:border-box !important;
}

.et-l--header .et_pb_column{
  margin-bottom:0 !important;
  display:flex !important;
  align-items:center !important;
  width:50% !important;
}

.et-l--header .et_pb_column:first-child{
  justify-content:flex-start !important;
}

.et-l--header .et_pb_column:last-child{
  justify-content:flex-end !important;
}

.et-l--header .et_pb_module{
  margin-bottom:0 !important;
}


/* =========================================================
   4. HOME HEADER STATE
   transparent bis Scroll
   ========================================================= */

body.home{
  padding-top:0 !important;
}

body.home .et-l--header.rn-header-transparent .et_builder_inner_content{
  background:transparent !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}

body.home .et-l--header.rn-header-scrolled .et_builder_inner_content{
  background:#003316 !important;
  box-shadow:0 6px 20px rgba(0,0,0,.22) !important;
}


/* =========================================================
   5. UNTERSEITEN HEADER
   ========================================================= */

body:not(.home){
  padding-top:84px !important;
}

body:not(.home) .et-l--header .et_builder_inner_content{
  background:#003316 !important;
  box-shadow:0 6px 20px rgba(0,0,0,.16) !important;
}


/* =========================================================
   7. BURGER
   ========================================================= */

.rn-site-header-actions{
  position:fixed !important;
  top:38px !important;
  right:max(22px, calc((100vw - 1180px) / 2 + 22px)) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  margin:0 !important;
  padding:0 !important;
  z-index:2147483647 !important;
  transform:none !important;
  transition:none !important;
  pointer-events:auto !important;
}

.rn-burger{
  position:relative !important;
  z-index:2147483647 !important;
  width:54px !important;
  height:44px !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  gap:8px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  appearance:none !important;
  -webkit-appearance:none !important;
  cursor:pointer !important;
  transform:none !important;
  pointer-events:auto !important;
}

.rn-burger:hover,
.rn-burger:focus,
.rn-burger:active{
  background:transparent !important;
  box-shadow:none !important;
}

.rn-burger{
  color:#ffffff !important;
}

.rn-burger span{
  display:block !important;
  width:32px !important;
  height:2px !important;
  margin-left:auto !important;
  background:currentColor !important;
  opacity:.95 !important;
  transition:color .18s ease, background-color .18s ease !important;
}

.rn-site-header-actions:hover .rn-burger,
.rn-site-header-actions .rn-burger:hover,
.rn-site-header-actions .rn-burger:focus,
.rn-site-header-actions .rn-burger:focus-visible{
  color:#AEEA71 !important;
}

.rn-burger:focus-visible{
  outline:3px solid #AEEA71 !important;
  outline-offset:6px !important;
  border-radius:14px !important;
}


/* =========================================================
   8. OFFCANVAS GLOBAL
   ========================================================= */

.rn-offcanvas{
  position:fixed !important;
  inset:0 !important;
  background:rgba(0,0,0,.55) !important;
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
  transition:opacity .25s ease !important;
  z-index:2147483646 !important;
  height:100vh !important;
  max-height:100vh !important;
  overflow:hidden !important;
}

.rn-offcanvas.is-open{
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
}

.rn-offcanvas:not(.is-open) .rn-offcanvas-inner{
  pointer-events:none !important;
}

.rn-offcanvas .rn-offcanvas-inner{
  position:absolute !important;
  top:0 !important;
  right:0 !important;
  width:min(520px, 100vw) !important;
  max-width:100% !important;
  height:100vh !important;
  max-height:100vh !important;
  background:#003316 !important;
  padding:28px 22px 40px !important;
  overflow-y:auto !important;
  -webkit-overflow-scrolling:touch !important;
  box-shadow:-20px 0 60px rgba(0,0,0,.35) !important;
  transform:translateX(18px) !important;
  transition:transform .25s ease !important;
}

.rn-offcanvas.is-open .rn-offcanvas-inner{
  transform:translateX(0) !important;
}

.rn-close{
  position:absolute !important;
  top:18px !important;
  right:18px !important;
  width:44px !important;
  height:44px !important;
  border:0 !important;
  background:transparent !important;
  color:#ffffff !important;
  font-size:38px !important;
  line-height:1 !important;
  cursor:pointer !important;
}

.rn-close:hover,
.rn-close:focus-visible{
  color:#AEEA71 !important;
}

html.rn-offcanvas-open,
html.rn-offcanvas-open body{
  overflow:hidden !important;
}


/* =========================================================
   9. OFFCANVAS NAV
   ========================================================= */

.rn-nav-list{
  list-style:none !important;
  margin:0 !important;
  padding:64px 0 0 !important;
}

.rn-nav-list > li{
  list-style:none !important;
  margin:0 !important;
  padding:16px 0 !important;
  border-top:1px solid rgba(255,255,255,.14) !important;
}

.rn-nav-list > li:first-child{
  border-top:0 !important;
}

.rn-nav-list > li > a,
.rn-parent-link{
  display:block !important;
  color:#ffffff !important;
  line-height:1.2 !important;
  text-decoration:none !important;
}

.rn-parent-link:hover,
.rn-parent-link:focus-visible,
.rn-nav-list > li > a:hover,
.rn-nav-list > li > a:focus-visible,
.rn-nav a.is-active,
.rn-parent-link.is-active{
  color:#AEEA71 !important;
}

.rn-services > .rn-parent-link{
  white-space:nowrap !important;
  margin-bottom:12px !important;
}

.rn-sub,
.rn-sub-always{
  list-style:none !important;
  margin:4px 0 0 !important;
  padding:0 !important;
}

.rn-sub-always li{
  list-style:none !important;
  margin:0 !important;
  padding:11px 0 11px 14px !important;
  position:relative !important;
  border-top:0 !important;
}

.rn-sub-always a,
.rn-sub a{
  display:block !important;
  color:rgba(255,255,255,.92) !important;
  text-decoration:none !important;
}

.rn-sub-always a:hover,
.rn-sub-always a:focus-visible,
.rn-sub a:hover,
.rn-sub a:focus-visible,
.rn-sub-always a.is-active,
.rn-sub a.is-active{
  color:#AEEA71 !important;
}


/* =========================================================
   10. STARTSEITEN HERO
   ========================================================= */

body.home .rn-hero-video{
  position:relative !important;
  width:100% !important;
  min-height:100vh !important;
  display:flex !important;
  align-items:flex-start !important;
  padding:132px 0 40px !important;
  overflow:hidden !important;
}

body.home .rn-hero-video .rn-hero-inner{
  position:relative !important;
  z-index:3 !important;
  width:100% !important;
  max-width:1180px !important;
  margin:0 auto !important;
  padding:0 22px !important;
  color:#ffffff !important;
  margin-top:0 !important;
}

body.home .rn-hero-video video{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center 14% !important;
  z-index:0 !important;
  filter:none !important;
}

body.home .rn-hero-video::before{
  content:"" !important;
  position:absolute !important;
  inset:0 !important;
  z-index:1 !important;
  background:linear-gradient(
    90deg,
    rgba(0,0,0,.34) 0%,
    rgba(0,0,0,.16) 36%,
    rgba(0,0,0,.04) 62%,
    rgba(0,0,0,0) 82%
  ) !important;
}

body.home .rn-hero-video::after{
  content:"" !important;
  position:absolute !important;
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  height:24% !important;
  z-index:1 !important;
  background:linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.20) 100%) !important;
}

body.home .rn-hero-video .rn-hero-inner > *{
  max-width:700px !important;
}

body.home .rn-hero-video .rn-tagline{
  display:inline-flex !important;
  align-items:center !important;
  gap:10px !important;
  margin:0 0 14px !important;
  color:rgba(255,255,255,.88) !important;
}

body.home .rn-hero-video .rn-tagline::before{
  content:"" !important;
  width:34px !important;
  height:2px !important;
  background:rgba(255,255,255,.72) !important;
}

body.home .rn-hero-video h1{
  margin:0 0 16px !important;
  color:#ffffff !important;
}

body.home .rn-hero-title span{
  display:block !important;
}

body.home .rn-hero-video .rn-hero-sub{
  margin:0 0 34px !important;
  color:rgba(255,255,255,.92) !important;
}

body.home .rn-hero-video .rn-cta-row{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:14px !important;
  align-items:center !important;
  margin:0 !important;
}


/* =========================================================
   15. RESPONSIVE
   ========================================================= */

@media (max-width:980px){

  .et-l--header .et_pb_row,
  .et_pb_sticky_module .et_pb_row{
    width:100% !important;
    padding:0 18px !important;
  }

  body:not(.home){
    padding-top:84px !important;
  }

  .et-l--header .et_pb_column{
    width:50% !important;
  }

  .rn-site-header-actions{
    top:18px !important;
    right:18px !important;
  }

  .rn-burger{
    width:48px !important;
    height:44px !important;
    gap:7px !important;
  }

  .rn-burger span{
    width:28px !important;
  }

  .rn-offcanvas .rn-offcanvas-inner{
    padding:28px 18px 38px !important;
  }

  body.home .rn-hero-video{
    min-height:100vh !important;
    padding:108px 0 36px !important;
    align-items:flex-start !important;
  }

  body.home .rn-hero-video .rn-hero-inner{
    width:100% !important;
    padding:0 18px !important;
  }

  body:not(.home) .rn-hero-video .rn-hero-inner{
    width:100% !important;
  }
}

@media (max-width:420px){

  body.home .rn-hero-video{
    padding:96px 0 30px !important;
  }
}


/* =========================================================
   RN HEADER LOGO – FINAL CLEAN
   gilt für Startseite und Unterseiten
   ========================================================= */

.et-l--header .et_pb_row{
  min-height:96px !important;
  align-items:center !important;
}

.et-l--header .et_pb_column:first-child{
  display:flex !important;
  align-items:center !important;
}

.et-l--header .et_pb_column:first-child .et_pb_image img{
  display:block !important;
  width:auto !important;
  height:78px !important;
  max-width:none !important;
  max-height:none !important;
  margin:0 !important;
  transform:translateY(2px) !important;
}

.et-l--header .et_pb_column:last-child{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
}

.et-l--header .rn-site-header-actions{
  display:flex !important;
  align-items:center !important;
}

.et-l--header .rn-burger{
  transform:translateY(2px) !important;
}

@media (max-width:980px){
  .et-l--header .et_pb_row{
    min-height:88px !important;
    padding:0 18px !important;
  }

  .et-l--header .et_pb_column:first-child .et_pb_image img{
    height:64px !important;
    transform:translateY(1px) !important;
  }

  .et-l--header .rn-burger{
    transform:translateY(1px) !important;
  }
}

@media (max-width:480px){
  .et-l--header .et_pb_row{
    min-height:82px !important;
  }

  .et-l--header .et_pb_column:first-child .et_pb_image img{
    height:58px !important;
  }
}

/* =========================================================
   RN HEADER LOGO – CODE MODUL
   ========================================================= */

.rn-header-logo{
  display:flex !important;
  align-items:center !important;
  line-height:0 !important;
}

.rn-header-logo a{
  display:inline-flex !important;
  align-items:center !important;
  text-decoration:none !important;
}

.rn-header-logo img{
  display:block !important;
  width:204px !important;
  height:auto !important;
  max-width:none !important;
  transform:translateY(1px) !important;
}

@media (max-width:980px){
  .rn-header-logo img{
    width:164px !important;
  }
}

@media (max-width:480px){
  .rn-header-logo img{
    width:140px !important;
  }
}


/* =========================================
   NUCLEAR SE – STARTSEITE TYPO + HERO + MENÜ FIX
   Referenz = Unterseiten
   ========================================= */

/* 1) Keine zu aggressive Gewichts-Plattbügler auf der Startseite */
body.home .et-l--header a,
body.home .et-l--header span,
body.home .et-l--header div,
body.home .rn-offcanvas a,
body.home .rn-offcanvas span,
body.home .rn-offcanvas div,
body.home .rn-hero h1,
body.home .rn-hero p,
body.home .rn-hero .et_pb_text,
body.home .rn-hero .et_pb_text_inner{
  font-family:'Open Sans Local', Arial, sans-serif !important;
}

/* 2) Startseiten-Menü exakt näher an Unterseiten */
body.home .et-l--header .et_pb_menu .et-menu > li > a,
body.home .et-l--header .et_pb_menu .et-menu-nav > ul > li > a,
body.home .rn-site-header a,
body.home .rn-parent-link{
  font-family:'Open Sans Local', Arial, sans-serif !important;
  font-size:16px !important;
  font-weight:600 !important;
  line-height:1.25 !important;
  letter-spacing:0.01em !important;
  text-transform:none !important;
}

/* 3) Offcanvas Startseite an Unterseiten angleichen */
body.home .rn-offcanvas a,
body.home .rn-nav a,
body.home .rn-parent-link,
body.home .rn-sub a{
  font-family:'Open Sans Local', Arial, sans-serif !important;
  font-weight:600 !important;
  line-height:1.3 !important;
  letter-spacing:0.01em !important;
  text-transform:none !important;
}

/* 4) Hero Headline ruhiger und wie Unterseiten */
body.home .et_pb_fullwidth_header h1,
body.home .rn-hero h1,
body.home .et_pb_section_0 h1{
  font-family:'Open Sans Local', Arial, sans-serif !important;
  font-size:clamp(36px,4.2vw,54px) !important;
  font-weight:400 !important;
  line-height:1.14 !important;
  letter-spacing:-0.012em !important;
  margin-bottom:0.28em !important;
  text-transform:none !important;
}

/* 5) Hero Text kompakter und eleganter */
body.home .et_pb_fullwidth_header p,
body.home .rn-hero p,
body.home .rn-hero .et_pb_text_inner p{
  font-family:'Open Sans Local', Arial, sans-serif !important;
  font-size:19px !important;
  font-weight:400 !important;
  line-height:1.55 !important;
  letter-spacing:0 !important;
  margin-bottom:0.55em !important;
  max-width:34em !important;
}

/* 6) Hero Buttons sauber */
body.home .et_pb_fullwidth_header .et_pb_button,
body.home .rn-hero .et_pb_button,
body.home .rn-btn{
  font-family:'Open Sans Local', Arial, sans-serif !important;
  font-size:16px !important;
  font-weight:400 !important;
  line-height:1.2 !important;
  letter-spacing:0.01em !important;
}

/* 7) Falls Divi auf der Startseite Module künstlich fetter rendert */
body.home .et_pb_module h1,
body.home .et_pb_module h2,
body.home .et_pb_module h3{
  font-family:'Open Sans Local', Arial, sans-serif !important;
}

body.home .et_pb_module h2{
  font-weight:400 !important;
  line-height:1.18 !important;
  letter-spacing:-0.01em !important;
}

body.home .et_pb_module h3{
  font-weight:500 !important;
  line-height:1.22 !important;
  letter-spacing:-0.005em !important;
}

/* 8) Mobile – Startseite näher an Unterseiten */
@media (max-width:980px){

  body.home .et-l--header .et_pb_menu .et-menu > li > a,
  body.home .et-l--header .et_pb_menu .et-menu-nav > ul > li > a,
  body.home .rn-site-header a,
  body.home .rn-parent-link{
    font-size:15px !important;
    line-height:1.2 !important;
  }

  body.home .et_pb_fullwidth_header h1,
  body.home .rn-hero h1,
  body.home .et_pb_section_0 h1{
    font-size:clamp(30px,8vw,40px) !important;
    line-height:1.08 !important;
    letter-spacing:-0.01em !important;
    margin-bottom:0.22em !important;
  }

  body.home .et_pb_fullwidth_header p,
  body.home .rn-hero p,
  body.home .rn-hero .et_pb_text_inner p{
    font-size:17px !important;
    line-height:1.5 !important;
    margin-bottom:0.5em !important;
    max-width:none !important;
  }

  body.home .rn-offcanvas a,
  body.home .rn-nav a,
  body.home .rn-parent-link,
  body.home .rn-sub a{
    line-height:1.28 !important;
  }
}

/* =========================================================
   RN FOOTER – MINIMAL FIX ONLY
   ========================================================= */

.et-l--footer a,
.et-l--footer a:link,
.et-l--footer a:visited,
.et-l--footer a:hover,
.et-l--footer a:active,
.et-l--footer a:focus{
  text-decoration:none !important;
  border-bottom:0 !important;
  box-shadow:none !important;
}

.et-l--footer a:hover,
.et-l--footer a:focus-visible{
  color:#AEEA71 !important;
}

.et-l--footer .footer-col-left,
.et-l--footer .footer-col-left .et_pb_text_inner,
.et-l--footer .footer-col-left p,
.et-l--footer .footer-col-left a{
  font-size:16px !important;
  line-height:1.34 !important;
  font-weight:400 !important;
}

.et-l--footer .rn-footer-list h4{
  margin:0 0 0.30em 0 !important;
}

.et-l--footer .rn-footer-list ul{
  margin:0 !important;
  padding-left:1.1em !important;
  list-style:square !important;
}

.et-l--footer .rn-footer-list ul li{
  margin:0 0 0.18em 0 !important;
  line-height:1.18 !important;
}

.et-l--footer .rn-footer-list ul li a{
  color:#ffffff !important;
  text-decoration:none !important;
  border-bottom:0 !important;
  box-shadow:none !important;
}

.et-l--footer .rn-footer-list-right ul li a{
  white-space:nowrap !important;
}

@media (max-width:980px){
  .et-l--footer .rn-footer-list-right ul li a{
    white-space:normal !important;
  }
}

/* =========================================================
   RN FOOTER – HOVER FIX (nur einzelne Zeile)
   ========================================================= */

/* Standard */
.et-l--footer .rn-footer-list ul li a{
  color:#ffffff !important;
  transition:color 0.2s ease;
}

/* Hover NUR auf einzelne Zeile */
.et-l--footer .rn-footer-list ul li:hover a{
  color:#AEEA71 !important;
}

/* Optional: Marker ebenfalls nur pro Zeile */
.et-l--footer .rn-footer-list ul li:hover::marker{
  color:#AEEA71 !important;
}

.et-l--footer .rn-footer-list ul li a{
  display:inline-block;
  transition:all 0.2s ease;
}

.et-l--footer .rn-footer-list ul li:hover a{
  transform:translateX(2px);
}

/* =========================================================
   RN FOOTER – HOVER FIX (weiß + nur eine Zeile aktiv)
   ========================================================= */

/* Standard: alles weiß */
.et-l--footer .rn-footer-list ul li,
.et-l--footer .rn-footer-list ul li a,
.et-l--footer .rn-footer-list ul li::marker{
  color:#ffffff !important;
}

/* WICHTIG: verhindert globalen Hover-Effekt */
.et-l--footer .rn-footer-list ul:hover li,
.et-l--footer .rn-footer-list ul:hover li a,
.et-l--footer .rn-footer-list ul:hover li::marker{
  color:#ffffff !important;
}

/* NUR die aktuelle Zeile */
.et-l--footer .rn-footer-list ul li:hover,
.et-l--footer .rn-footer-list ul li:hover a,
.et-l--footer .rn-footer-list ul li:hover::marker{
  color:#AEEA71 !important;
}


/* =========================================
   RN LINKS – UNTERSTRICHE unsichtbar FINAL
   ========================================= */

/* Standard-Links im Content */
.et_pb_text a,
.et_pb_text_inner a,
.entry-content a,
.rn-service-visuals a,
.rn-alt-section a{
  text-decoration:underline !important;
  text-underline-offset:0.16em !important;
  text-decoration-thickness:1px !important;
}

/* Hover */
.et_pb_text a:hover,
.et_pb_text_inner a:hover,
.entry-content a:hover,
.rn-service-visuals a:hover,
.rn-alt-section a:hover{
  text-decoration:underline !important;
}

/* Buttons und CTA-Links ausdrücklich ohne Unterstrich */
.rn-btn,
.rn-btn:hover,
.et_pb_button,
.et_pb_button:hover,
a.et_pb_button,
a.et_pb_button:hover,
.rn-cta-row a,
.rn-cta-row a:hover{
  text-decoration:none !important;
}

/* Menü / Offcanvas ohne Unterstrich */
.et-menu a,
.et_mobile_menu a,
.rn-offcanvas a,
.rn-nav a,
.rn-parent-link{
  text-decoration:none !important;
}

/* =========================================
   RN OFFCANVAS TYPO – FINAL FIX
   ========================================= */

/* Basis Schrift */
.rn-offcanvas{
  font-family:'Open Sans Local', Arial, sans-serif !important;
}

/* Hauptpunkte */
.rn-nav-list > li > a{
  font-size:18px !important;
  font-weight:400 !important;
  line-height:1.35 !important;
  letter-spacing:0.2px !important;
  display:block !important;
  padding:6px 0 !important;
}

/* Unterpunkte (Leistungen) */
.rn-sub a{
  font-size:16px !important;
  font-weight:400 !important;
  line-height:1.4 !important;
  opacity:0.92 !important;
  display:block !important;
  padding:4px 0 !important;
}

/* Bereich "Unsere Leistungen" Titel */
.rn-services > .rn-parent-link{
  font-size:18px !important;
  font-weight:600 !important;
  margin-bottom:6px !important;
  display:block !important;
}

/* Abstand zwischen Blöcken */
.rn-nav-list > li{
  margin-bottom:12px !important;
  padding-bottom:10px !important;
}

/* Divider Linien feiner */
.rn-nav-list > li:not(:last-child){
  border-bottom:1px solid rgba(255,255,255,0.12) !important;
}

/* Hover */
.rn-offcanvas a:hover{
  color:#AEEA71 !important;
}

/* Active State */
.rn-offcanvas a.is-active{
  color:#AEEA71 !important;
  font-weight:600 !important;
}

/* =========================================
   FIX: doppelte Linien entfernen
   ========================================= */

/* Divi eigene Linien killen */
.rn-offcanvas .et_pb_menu li,
.rn-offcanvas .menu li{
  border:none !important;
}

/* sicherstellen: nur unsere Linie bleibt */
.rn-nav-list > li{
  border-top:none !important;
}

/* =========================================
   FIX: Anchor Offset wegen nicht ansteuerbares Menü
   ========================================= */

:target{
  scroll-margin-top:120px !important;
}

/* =========================================
   CLEAN HEADER / BURGER FIX – FINAL
   ========================================= */

/* Header sauber über Content, aber nicht über die WP-Adminbar */
.et-l--header{
  z-index:1000 !important;
}

/* Burger sauber positioniert */
.rn-site-header-actions{
  position:fixed !important;
  top:38px !important;
  right:max(22px, calc((100vw - 1180px) / 2 + 22px)) !important;
  z-index:1100 !important;
  pointer-events:auto !important;
}

/* Burger selbst */
.rn-burger{
  position:relative !important;
  z-index:1100 !important;
  pointer-events:auto !important;
}

/* Offcanvas über Content, aber unter Burger */
.rn-offcanvas{
  z-index:1090 !important;
}

#rn-offcanvas{
  position:fixed !important;
  inset:0 !important;
  z-index:1090 !important;
  pointer-events:none !important;
}

#rn-offcanvas.is-open,
#rn-offcanvas[aria-hidden="false"]{
  pointer-events:auto !important;
}

/* Hero darf keine Klicks fressen */
body:not(.home) .rn-hero-video video,
body:not(.home) .rn-hero-video::after{
  pointer-events:none !important;
}

/* Mobile */
@media (max-width:980px){
  .rn-site-header-actions{
    top:18px !important;
    right:18px !important;
  }
}

/* FINAL BURGER HOVER – UNTERSEITEN */
.rn-burger.is-hovered{
  color:#AEEA71 !important;
}

.rn-burger.is-hovered span{
  background:#AEEA71 !important;
}

/* ALLE BUTTONS SCHRIFT NICHT FETT */
.rn-btn,
.et_pb_button{
  font-weight:400 !important;
}

/* =========================================
   RN FOOTER – Bulletpoints fix
   ========================================= */

/* Nur Footer-Listen */
footer .et_pb_text ul{
  margin:0 !important;
  padding-left:18px !important; /* wichtig für sauberen Textstart */
}

/* Listenelemente */
footer .et_pb_text li{
  display:list-item !important;
  line-height:1.5 !important;
  margin-bottom:6px !important;
}

/* WICHTIG: Text sauber umbrechen lassen */
footer .et_pb_text li span,
footer .et_pb_text li a{
  display:inline !important;
}

/* =========================================================
   NUCLEAR SE – HERO SYSTEM (UNTERSEITEN FINAL)
   ========================================================= */

/* HERO CONTAINER */
body:not(.home) #page-container .rn-hero-video{
  position:relative !important;
  width:100% !important;
  min-height:560px !important;
  height:560px !important;
  display:flex !important;
  align-items:stretch !important;
  padding:0 !important;
  overflow:hidden !important;
}

/* VIDEO */
body:not(.home) .rn-hero-video video{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center top !important;
  z-index:0 !important;
  pointer-events:none !important;
}

/* OVERLAY */
body:not(.home) .rn-hero-video:after{
  content:"" !important;
  position:absolute !important;
  inset:0 !important;
  z-index:1 !important;
  background:linear-gradient(
    90deg,
    rgba(0,0,0,0.58) 0%,
    rgba(0,0,0,0.34) 40%,
    rgba(0,0,0,0.14) 65%,
    rgba(0,0,0,0.00) 80%
  ) !important;
}

/* HERO INNER */
body:not(.home) .rn-hero-video .rn-hero-inner{
  position:relative !important;
  z-index:3 !important;
  width:100% !important;
  max-width:1180px !important;
  margin:0 auto !important;
  padding:146px 22px 46px 46px !important;
  min-height:560px !important;
  color:#fff !important;
  box-sizing:border-box !important;
}

/* TEXTBREITE */
body:not(.home) .rn-hero-video .rn-hero-inner > *{
  max-width:700px !important;
}

/* TAGLINE */
body:not(.home) .rn-hero-video .rn-tagline{
  display:inline-flex !important;
  align-items:center !important;
  gap:10px !important;
  margin:0 0 14px !important;
  color:rgba(255,255,255,.88) !important;
  font-size:14px !important;
  letter-spacing:.08em !important;
  text-transform:uppercase !important;
  font-weight:700 !important;
}

body:not(.home) .rn-hero-video .rn-tagline:before{
  content:"" !important;
  width:34px !important;
  height:2px !important;
  background:rgba(255,255,255,.72) !important;
}

/* H1 */
body:not(.home) .rn-hero-video h1,
body:not(.home) .rn-hero-video .rn-h1{
  color:#ffffff !important;
  font-size:42px !important;
  line-height:1.08 !important;
  font-weight:400 !important;
  letter-spacing:-0.01em !important;
  margin:0 0 14px !important;
  padding:0 !important;
  max-width:760px !important;
}

body:not(.home) .rn-hero-video .rn-h1-line{
  display:block !important;
}

@media (min-width:981px){
  body:not(.home) .rn-hero-video .rn-h1-line:first-child,
  body:not(.home) .rn-hero-video .rn-h1-line:last-child{
    white-space:nowrap !important;
  }
}

body:not(.home) .rn-hero-video .rn-h1-line{
  display:block !important;
}

/* TEASER */
body:not(.home) .rn-hero-video .rn-hero-sub{
  font-size:18px !important;
  line-height:1.48 !important;
  color:rgba(255,255,255,.92) !important;
  margin:0 0 22px !important;
  max-width:760px !important;
}

/* CTA */
body:not(.home) .rn-hero-video .rn-cta-row{
  display:flex !important;
  gap:14px !important;
  flex-wrap:wrap !important;
  align-items:center !important;
}

/* BUTTON */
body:not(.home) .rn-btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:52px !important;
  padding:14px 22px !important;
  border-radius:999px !important;
  background:#003316 !important;
  color:#fff !important;
  text-decoration:none !important;
  border:0 !important;
  font-weight:600 !important;
  letter-spacing:0.01em !important;
}

body:not(.home) .rn-btn:hover{
  color:#aeea71 !important;
}

/* =========================================================
   FLACHE LAPTOPS
   ========================================================= */

@media (min-width:981px) and (max-height:820px){
  body:not(.home) #page-container .rn-hero-video{
    min-height:520px !important;
    height:520px !important;
  }

  body:not(.home) .rn-hero-video .rn-hero-inner{
    min-height:520px !important;
    padding:132px 22px 40px 46px !important;
  }

  body:not(.home) .rn-hero-video h1,
  body:not(.home) .rn-hero-video .rn-h1{
    font-size:42px !important;
  }
}

/* =========================================================
   TABLET
   ========================================================= */
@media (max-width:980px){
  body:not(.home) .rn-hero-video{
    min-height:560px !important;
    height:auto !important;
  }

  body:not(.home) .rn-hero-video .rn-hero-inner{
    min-height:560px !important;
    padding:118px 18px 34px 24px !important;
  }

  body:not(.home) .rn-hero-video .rn-tagline{
    font-size:10px !important;
    letter-spacing:.06em !important;
    margin:0 0 10px !important;
  }

  body:not(.home) .rn-hero-video .rn-tagline:before{
    width:24px !important;
  }

body:not(.home) .rn-hero-video h1,
body:not(.home) .rn-hero-video .rn-h1{
  font-size:30px !important;
  line-height:1.08 !important;
  max-width:560px !important;
  margin:0 0 10px !important;
}

  body:not(.home) .rn-hero-video .rn-h1-line{
    white-space:normal !important;
  }

  body:not(.home) .rn-hero-video .rn-hero-sub{
    font-size:15px !important;
    line-height:1.44 !important;
    max-width:500px !important;
    margin:0 0 16px !important;
  }

  body:not(.home) .rn-hero-video .rn-btn{
    min-height:44px !important;
    padding:11px 18px !important;
    font-size:14px !important;
  }
}

@media (min-width:981px) and (max-width:1180px){
  body:not(.home) .rn-hero-video .rn-h1{
    max-width:720px !important;
  }

  body:not(.home) .rn-hero-video .rn-hero-sub{
    max-width:680px !important;
  }
}
@media (min-width:981px) and (max-width:1180px){
  body:not(.home) .rn-hero-video .rn-h1{
    max-width:620px !important;
  }

  body:not(.home) .rn-hero-video .rn-hero-sub{
    max-width:620px !important;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width:767px){
  body:not(.home) .rn-hero-video{
    min-height:500px !important;
    height:auto !important;
  }

  body:not(.home) .rn-hero-video .rn-hero-inner{
    min-height:500px !important;
    padding:104px 16px 30px 22px !important;
  }

  body:not(.home) .rn-hero-video .rn-tagline{
    font-size:9px !important;
    letter-spacing:.05em !important;
    margin:0 0 8px !important;
  }

  body:not(.home) .rn-hero-video .rn-tagline:before{
    width:22px !important;
  }

  body:not(.home) .rn-hero-video h1,
  body:not(.home) .rn-hero-video .rn-h1{
    font-size:24px !important;
    line-height:1.10 !important;
    max-width:270px !important;
    margin:0 0 10px !important;
  }

  body:not(.home) .rn-hero-video .rn-h1-line{
    white-space:normal !important;
  }

  body:not(.home) .rn-hero-video .rn-hero-sub{
    font-size:13px !important;
    line-height:1.38 !important;
    max-width:280px !important;
    margin:0 0 14px !important;
  }

  body:not(.home) .rn-hero-video .rn-btn{
    min-height:40px !important;
    padding:10px 16px !important;
    font-size:13px !important;
  }
}

@media (max-width:420px){
  body:not(.home) .rn-hero-video{
    min-height:470px !important;
  }

  body:not(.home) .rn-hero-video .rn-hero-inner{
    min-height:470px !important;
    padding:96px 14px 26px 20px !important;
  }

  body:not(.home) .rn-hero-video h1,
  body:not(.home) .rn-hero-video .rn-h1{
    font-size:22px !important;
    max-width:240px !important;
  }

  body:not(.home) .rn-hero-video .rn-hero-sub{
    max-width:250px !important;
  }
}

/* =========================================
   DIVI ICON FONT – ETMODULES HARD FIX
   ========================================= */

@font-face{
  font-family:'ETmodules';
  src:url('/wp-content/themes/Divi/core/admin/fonts/modules/all/modules.woff') format('woff');
  font-weight:400;
  font-style:normal;
  font-display:block;
}

.et-pb-icon,
.et_pb_scroll_top,
.et_pb_scroll_top.et-pb-icon,
.et_overlay:before,
.et_pb_member_social_links a:before{
  font-family:'ETmodules' !important;
  font-style:normal !important;
  font-weight:400 !important;
  font-variant:normal !important;
  text-transform:none !important;
  line-height:1 !important;
  speak:none !important;
  -webkit-font-smoothing:antialiased !important;
  -moz-osx-font-smoothing:grayscale !important;
}

/* =========================================
   NUCLEAR SE – CONTENT BULLETS FINAL
   wie in den gecodeten RN-Modulen
   ========================================= */

/* Normale Textmodule im Content */
.et_pb_text_inner ul,
.et_pb_text ul{
  list-style:none !important;
  margin:0 0 1.2em 0 !important;
  padding-left:0 !important;
}

/* Listenelemente */
.et_pb_text_inner ul li,
.et_pb_text ul li{
  list-style:none !important;
  position:relative !important;
  padding-left:20px !important;
  margin:0 0 10px 0 !important;
  line-height:1.5 !important;
}

/* Quadratischer Bullet – passend zu RN-Modulen */
.et_pb_text_inner ul li::before,
.et_pb_text ul li::before{
  content:"" !important;
  position:absolute !important;
  left:0 !important;
  top:0.72em !important;
  width:8px !important;
  height:8px !important;
  background:#003316 !important;
  transform:translateY(-50%) !important;
  border-radius:0 !important;
}

/* Verschachtelte Listen */
.et_pb_text_inner ul ul,
.et_pb_text ul ul{
  margin-top:8px !important;
  margin-bottom:0 !important;
}

/* Spans im LI sauber inline lassen */
.et_pb_text_inner ul li span,
.et_pb_text ul li span{
  display:inline !important;
}

/* =========================================
   AUSNAHMEN – Footer und Offcanvas nicht anfassen
   ========================================= */

.et-l--footer .et_pb_text ul,
footer .et_pb_text ul,
.rn-offcanvas ul,
.rn-nav-list,
.rn-sub,
.rn-sub-always{
  list-style:initial !important;
  padding-left:18px !important;
}

.et-l--footer .et_pb_text ul li,
footer .et_pb_text ul li,
.rn-offcanvas ul li,
.rn-nav-list li,
.rn-sub li,
.rn-sub-always li{
  position:static !important;
  padding-left:0 !important;
}

.et-l--footer .et_pb_text ul li::before,
footer .et_pb_text ul li::before,
.rn-offcanvas ul li::before,
.rn-nav-list li::before,
.rn-sub li::before,
.rn-sub-always li::before{
  content:none !important;
}

/* Links im Text ohne Unterstreichung */
.et_pb_text a {
  text-decoration: none !important;
}

/* Optional: Unterstreichung nur beim Hover */
.et_pb_text a:hover {
  text-decoration: underline !important;
}