/*
 Theme Name:     Mittwald Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Nutzen Sie das Child Theme um Änderungen am Divi Theme vorzunehmen. Sie können dazu den <a href="/wp-admin/theme-editor.php">Theme-Editor</a> benutzen.
 Author:         Mittwald CM Service GmbH & Co.KG
 Author URI:     https://www.mittwald.de/
 Template:       Divi
 Version:        1.0.0
*/


/* =Theme customization starts here
------------------------------------------------------- */
/* ================================
   RN HOME HEADER: scrollt mit (NICHT sticky)
   + Overlay Look über dem Hero
   ================================ */

/* Header wieder normal im Flow */
body.home:not(.et-fb) .et-l--header{
  position: relative !important;   /* <-- KEY */
  top:auto !important;
  left:auto !important;
  right:auto !important;
  width:100% !important;
  z-index:999999 !important; /* FIX: war 50 */
}

/* Overlay-Optik */
body.home:not(.et-fb) .et-l--header .et_builder_inner_content{
  background: rgba(0,0,0,.28) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Row: Container + Flex */
body.home:not(.et-fb) .et-l--header .et_pb_row{
  max-width:1080px !important;
  margin:0 auto !important;
  padding:0 24px !important;
  min-height:84px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
}


/* Desktop-Menü aus, Burger an */
/* (DIVI-BURGER HOME REGELN GELÖSCHT WIE GEWÜNSCHT)
body.home:not(.et-fb) .et-l--header .et_pb_menu__menu{ display:none !important; }
body.home:not(.et-fb) .et-l--header .et_mobile_nav_menu{
  display:flex !important;
  margin-left:auto !important;
}
body.home:not(.et-fb) .et-l--header .mobile_menu_bar:before{
  color:#fff !important;
  font-size:34px !important;
}
*/

/* HERO “unter den Header ziehen”, Overlay-Look */
body.home .rn-hero-video{
  margin-top:-84px !important;     /* Headerhöhe */
}
body.home .rn-hero-video .rn-hero-inner{
  max-width:1080px !important;
  margin:0 auto !important;
  padding-left:24px !important;
  padding-right:24px !important;
  padding-top:110px !important;    /* 84px + Luft */
}

/* Mobile */
@media (max-width:980px){

  body.home:not(.et-fb) .et-l--header .et_pb_row{
    padding:0 18px !important;
    min-height:84px !important;
  }


  /* (DIVI-BURGER HOME REGEL GELÖSCHT WIE GEWÜNSCHT)
  body.home:not(.et-fb) .et-l--header .mobile_menu_bar:before{
    font-size:32px !important;
  }
  */

  body.home .rn-hero-video{
    margin-top:-78px !important;
  }

  /* ✅ nur EIN Mobile-Padding-top hier */
  body.home .rn-hero-video .rn-hero-inner{
    padding-left:18px !important;
    padding-right:18px !important;
    padding-top:96px !important;
  }
}



/* =========================================
   RN HOME: Divi Sticky wirklich AUS
   (weil et_pb_row_sticky / *_sticky aktiv ist)
   ========================================= */

body.home .et_pb_row_sticky,
body.home .et_pb_section_sticky,
body.home .et_pb_module.et_pb_sticky,
body.home .et_pb_sticky,
body.home [class*="_sticky"]{
  position: relative !important;   /* nimmt Sticky/Fixed den Effekt */
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}

/* Falls Divi einen Sticky-Platzhalter setzt */
body.home .et_pb_sticky_placeholder{
  display:none !important;
  height:0 !important;
}

/* RN HEADER – MSC State */
body.home:not(.et-fb) .et-l--header{
  transition: background-color .35s ease, box-shadow .35s ease;
}
body.home:not(.et-fb) .et-l--header.rn-header-transparent{
  background: transparent !important;
  box-shadow:none !important;
}
body.home:not(.et-fb) .et-l--header.rn-header-scrolled{
  position:fixed !important;
  top:0 !important; left:0 !important; right:0 !important;
  background:#003316 !important;
  box-shadow:0 6px 20px rgba(0,0,0,.25) !important;
}

/* ===== FEINSCHLIFF 1: Startzustand wirklich 100% transparent ===== */
body.home:not(.et-fb) .et-l--header.rn-header-transparent .et_builder_inner_content{
  background: transparent !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}
/* Scroll-State: Grün wirklich “durchgehend” */
body.home:not(.et-fb) .et-l--header.rn-header-scrolled .et_builder_inner_content{
  background: #003316 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ===== FIX: Kein weißer Spalt / Hero startet ganz oben ===== */
html, body{ margin:0 !important; padding:0 !important; }

/* Falls Divi oben Padding setzt */
body.home #page-container{ padding-top:0 !important; }

/* Header im transparenten Zustand als Overlay (wie MSC) */
body.home:not(.et-fb) .et-l--header.rn-header-transparent{
  position:absolute !important;
  top:0 !important; left:0 !important; right:0 !important;
  width:100% !important;
}

/* iOS/Notch-Safety (verhindert „oben weiß“ beim Overscroll) */
html{ background:#0b0f10 !important; }

/* =========================================================
   RN Unterseiten HERO – Desktop bündig wie Divi Row (80% / 1080px)
   ========================================================= */

/* Code-Modul / Wrapper darf nicht “innen” paddings addieren */
body:not(.home) .et_pb_code .et_pb_code_inner{
  padding:0 !important;
}

/* Hero-Container exakt wie Divi Row */
@media (min-width:981px){
  body:not(.home) .rn-hero-video .rn-hero-inner{
    width:80% !important;         /* Divi Row Standard */
    max-width:1080px !important;  /* wie Content */
    margin:0 auto !important;
    padding:0 !important;         /* kein Extra-Gutter */
    text-align:left !important;
  }

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

/* RN Unterseiten HERO – Mobile/iPad bündig (Override gegen Inline-Hero-CSS) */
@media (max-width:980px){
  body:not(.home) .rn-hero-video .rn-hero-inner{
    width:100% !important;
    max-width:1080px !important;
    margin:0 auto !important;

    /* wichtig: killt z.B. padding-left:62px aus Hero 2 */
    padding-left:18px !important;
    padding-right:18px !important;

    text-align:left !important;
  }
}



/*
=========================================================
RN HERO – Abstand unter Overlay-Header herstellen
DEAKTIVIERT – verursacht Doppel-Padding & Verschiebungen
=========================================================

@media (min-width:981px){
  body.home .rn-hero-video .rn-hero-inner{
    padding-top:120px !important;
  }
}

*/



/* =========================================================
   RN HEADER (alle seiten - außer Startseite) – Burger + Offcanvas
   Scoped: nur NICHT Startseite, damit Home-Fixes bleiben
   ========================================================= */

body:not(.home) .et-l--header{
  position: relative !important;
  z-index: 9999 !important;
}

/* Header-Hintergrund (wie Screenshot) */
body:not(.home) header.et-l.et-l--header,
body:not(.home) .et-l--header .et_builder_inner_content{
  background: #003316 !important;
}

/* Logo + Header-Row auf Unterseiten wie Content schmal ziehen */
body:not(.home):not(.et-fb) .et-l--header .et_pb_row{
  max-width:1080px !important;
  width:80% !important;
  margin:0 auto !important;
  padding:0 24px !important;
  min-height:84px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
}

/* Mobile */
@media (max-width:980px){
  body:not(.home):not(.et-fb) .et-l--header .et_pb_row{
    width:100% !important;
    padding:0 18px !important;
    min-height:84px !important;
  }
}


/* Burger rechts – Unterseiten sauber wie Startseite */
body:not(.home) .rn-site-header-actions{
  position: relative !important;
  display:flex !important;
  justify-content:flex-end !important;
  align-items:center !important;
}

body:not(.home) .rn-burger{
  width:54px !important;
  height:44px !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  appearance:none !important;
  -webkit-appearance:none !important;
  border-radius:0 !important;
  cursor:pointer !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  gap:8px !important;
  padding:0 !important;
  transform: translateY(-10px) !important;
}

body:not(.home) .rn-burger:hover,
body:not(.home) .rn-burger:focus,
body:not(.home) .rn-burger:active{
  background:transparent !important;
  box-shadow:none !important;
}


body:not(.home) .rn-burger span{
  display:block;
  width:32px;
  height:2px;
  background:#ffffff;
  opacity:.95;
  margin-left:auto;
}

/* Offcanvas overlay */
body:not(.home) .rn-offcanvas{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.55);
  opacity:0;
  pointer-events:none;
  transition: opacity .25s ease;
  z-index: 99999;
}

body:not(.home) .rn-offcanvas.is-open{
  opacity:1;
  pointer-events:auto;
}

/* panel */
body:not(.home) .rn-offcanvas-inner{
  position:absolute;
  top:0; right:0;
  width:min(520px, 92vw);
  height:100vh;
  background:#003316;
  padding:28px 26px;
  transform: translateX(18px);
  transition: transform .25s ease;
  box-shadow: -20px 0 60px rgba(0,0,0,.35);
}

body:not(.home) .rn-offcanvas.is-open .rn-offcanvas-inner{
  transform: translateX(0);
}

/* Close */
body:not(.home) .rn-close{
  position:absolute;
  top:18px;
  right:18px;
  width:44px;
  height:44px;
  border:0;
  background:transparent;
  color:#fff;
  font-size:34px;
  line-height:1;
  cursor:pointer;
  opacity:.95;
}

/* Typo */
body:not(.home) .rn-nav,
body:not(.home) .rn-nav a,
body:not(.home) .rn-subtoggle{
  font-family:"Open Sans", sans-serif !important;
  letter-spacing:.08em;
}

/* Hauptpunkte: gleiche Schriftgröße wie Unterpunkte (dein Wunsch) */
body:not(.home) .rn-nav-list{
  list-style:none;
  padding:64px 0 0;
  margin:0;
}

body:not(.home) .rn-nav-list > li{
  border-bottom: 1px solid rgba(255,255,255,.14);
}

body:not(.home) .rn-nav-list > li > a,
body:not(.home) .rn-subtoggle{
  display:flex;
  width:100%;
  justify-content:space-between;
  align-items:center;
  padding:18px 0;
  color:#fff !important;
  text-decoration:none !important;
  font-size:18px !important;
  font-weight:700 !important;
  text-transform:uppercase;
  background:transparent;
  border:0;
  cursor:pointer;
  mix-blend-mode: hard-light;
}

/* Unterpunkte – gleiche Größe, etwas weniger Gewicht */
body:not(.home) .rn-sub{
  list-style:none;
  padding:0 0 10px;
  margin:0;
  display:none;
}

body:not(.home) .has-children.is-open .rn-sub{
  display:block;
}

body:not(.home) .rn-sub a{
  display:block;
  padding:12px 0 12px 0;
  color:rgba(255,255,255,.92) !important;
  text-decoration:none !important;
  font-size:18px !important;
  font-weight:600 !important;
  text-transform:uppercase;
  mix-blend-mode: hard-light;
}

body:not(.home) .rn-sub a:hover{
  opacity:.9;
}

/* Caret */
body:not(.home) .rn-caret{
  font-size:14px;
  opacity:.9;
}

/* Scroll Lock wenn offen */
html.rn-offcanvas-open,
html.rn-offcanvas-open body{
  overflow:hidden !important;
}


/* =========================================================
   RN HERO FULLWIDTH – NUR UNTERSEITEN, NICHT THEME BUILDER
   ========================================================= */
body:not(.home):not(.et-fb) #page-container .rn-hero-video{
  position: relative !important;
  width: 100vw !important;
  max-width: 100vw !important;

  left: 50% !important;
  right: auto !important;
  margin-left: -50vw !important;
  margin-right: 0 !important;
}

/* Sicherheitsgurt */
body:not(.et-fb) #page-container{
  overflow-x: hidden !important;
}



/* =========================================================
   RN HOME – FIX: Bilder im CONTENT (nicht Header) immer sichtbar
   ========================================================= */

body.home #main-content .et_pb_image,
body.home #main-content .et_pb_image .et_pb_image_wrap,
body.home #main-content .et_pb_image img{
  display:block !important;
  opacity:1 !important;
  visibility:visible !important;
  filter:none !important;
  transform:none !important;
  animation:none !important;
}

body.home #main-content .et_pb_image.et-waypoint,
body.home #main-content .et_pb_image.et_pb_animation_off,
body.home #main-content .et_pb_image.et_pb_animation_on{
  opacity:1 !important;
  visibility:visible !important;
  transform:none !important;
}

body.home #main-content .et_pb_image .et_pb_image_wrap{
  min-height:240px;
}

body.home #main-content .et_pb_image img{
  transition:none !important;
}


/* =========================================================
   RN – Links komplett ohne Underline (inkl. Pseudo-Elemente)
   ========================================================= */

a,
a *{
  text-decoration: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
  text-shadow: none !important;
  filter: none !important;
}

a::before,
a::after,
a *::before,
a *::after{
  background: none !important;
  box-shadow: none !important;
  border: 0 !important;
  text-decoration: none !important;
  opacity: 0 !important;
  height: 0 !important;
}

a:hover,
a:focus{
  text-decoration: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
  outline: none;
}


/* =========================================================
   RN NAV TYPO FIX – NICHT BOLD + kleiner
   ========================================================= */

body.home #rn-offcanvas .rn-nav a,
body.home #rn-offcanvas .rn-subtoggle,
body:not(.home) .rn-offcanvas .rn-nav a,
body:not(.home) .rn-offcanvas .rn-subtoggle,
body:not(.home) .rn-offcanvas .rn-sub a{
  font-family:"Open Sans", sans-serif !important;
  font-weight:500 !important;
  font-size:16px !important;
  letter-spacing:.08em !important;
  text-transform:uppercase !important;
  line-height:1.25 !important;
}

body.home #rn-offcanvas .rn-sub a{
  font-weight:500 !important;
  font-size:16px !important;
  letter-spacing:.08em !important;
}

body.home #rn-offcanvas .rn-sub a,
body:not(.home) .rn-offcanvas .rn-sub a{
  font-weight:500 !important;
}

@media (max-width:980px){
  body.home #rn-offcanvas .rn-nav a,
  body.home #rn-offcanvas .rn-subtoggle,
  body.home #rn-offcanvas .rn-sub a,
  body:not(.home) .rn-offcanvas .rn-nav a,
  body:not(.home) .rn-offcanvas .rn-subtoggle,
  body:not(.home) .rn-offcanvas .rn-sub a{
    font-size:15px !important;
    letter-spacing:.07em !important;
  }
}

body.home #page-container #rn-offcanvas.rn-offcanvas .rn-nav a,
body.home #page-container #rn-offcanvas.rn-offcanvas .rn-subtoggle,
body.home #page-container #rn-offcanvas.rn-offcanvas .rn-sub a{
  font-family:"Open Sans", sans-serif !important;
  font-weight:500 !important;
  font-size:16px !important;
  letter-spacing:.08em !important;
  text-transform:uppercase !important;
  line-height:1.25 !important;
}

@media (max-width:980px){
  body.home #page-container #rn-offcanvas.rn-offcanvas .rn-nav a,
  body.home #page-container #rn-offcanvas.rn-offcanvas .rn-subtoggle,
  body.home #page-container #rn-offcanvas.rn-offcanvas .rn-sub a{
    font-size:15px !important;
    letter-spacing:.07em !important;
  }
}


/* =========================================================
   RN A11Y – Sichtbarer Keyboard-Fokus (Tab-Kästchen)
   ========================================================= */

.et-l--header a:focus,
.et-l--header button:focus,
.et-l--header [role="button"]:focus{
  outline: none !important;
}

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

.et-l--header a:focus:not(:focus-visible),
.et-l--header button:focus:not(:focus-visible),
.et-l--header [role="button"]:focus:not(:focus-visible){
  outline: none !important;
}

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


/* ==========================================
   RN GLOBAL LISTEN – quadratische Marker
   ========================================== */

body:not(.et-fb) .entry-content ul,
body:not(.et-fb) .et_pb_text ul,
body:not(.et-fb) .et_pb_post_content ul,
body:not(.et-fb) .et_pb_column ul{
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

body:not(.et-fb) .et-menu ul,
body:not(.et-fb) ul.et-menu,
body:not(.et-fb) .menu ul,
body:not(.et-fb) ul.menu,
body:not(.et-fb) .sub-menu{
  list-style: initial !important;
  padding-left: initial !important;
  margin-left: initial !important;
}

body:not(.et-fb) .entry-content ul li,
body:not(.et-fb) .et_pb_text ul li,
body:not(.et-fb) .et_pb_post_content ul li,
body:not(.et-fb) .et_pb_column ul li{
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}

body:not(.et-fb) .entry-content ul li::before,
body:not(.et-fb) .et_pb_text ul li::before,
body:not(.et-fb) .et_pb_post_content ul li::before,
body:not(.et-fb) .et_pb_column ul li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: #003316;
  transform: translateY(-50%);
}


/* ================================
   RN OFFCANVAS – Leistungen als Link + Bulletliste
   ================================ */

.rn-parent-link{
  display:block;
  padding:16px 0 12px;
  color:#fff;
  text-decoration:none;
  letter-spacing:.08em;
  text-transform:uppercase;
  position:relative;
}

.rn-parent-link::after{
  content:"";
  display:block;
  margin-top:12px;
  height:1px;
  width:100%;
  background:rgba(255,255,255,.14);
}

.rn-services .rn-sub-always{
  display:block;
  margin:10px 0 14px;
  padding:0 0 0 18px;
  list-style:disc;
}

.rn-services .rn-sub-always li{
  margin:10px 0;
}

.rn-services .rn-sub-always a{
  color:rgba(255,255,255,.92);
  text-decoration:none;
  letter-spacing:.06em;
  text-transform:uppercase;
  font-size:14px;
}

.rn-parent-link:hover,
.rn-parent-link.is-active,
.rn-services .rn-sub-always a:hover,
.rn-services .rn-sub-always a.is-active{
  color:#AEEA71 !important;
}

#rn-offcanvas .rn-nav .rn-nav-list > li > a{
  color:#fff;
  text-decoration:none;
  letter-spacing:.08em;
  text-transform:uppercase;
}

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

#rn-offcanvas .rn-parent-link:hover,
#rn-offcanvas .rn-parent-link.is-active{
  color:#AEEA71 !important;
}

.rn-services > .rn-sub.rn-sub-always{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  max-height:none !important;
  height:auto !important;
  overflow:visible !important;
}

.rn-services > .rn-sub.rn-sub-always li{
  display:list-item !important;
}

/* FIX A: Offcanvas darf scrollen (global) */
.rn-offcanvas{
  height:100vh;
  max-height:100vh;
  overflow:hidden;
}
.rn-offcanvas .rn-offcanvas-inner{
  height:100vh;
  max-height:100vh;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  padding-bottom:40px;
}

.rn-h1-line{ display:block; }

.rn-alt-card{
  box-shadow: 24px 16px 34px rgba(0,0,0,0.14) !important;
}
.rn-alt-card:hover{
  box-shadow: 28px 20px 40px rgba(0,0,0,0.16) !important;
}
.rn-alt-card::before{
  background: linear-gradient(180deg, #d8dcdf, #b9bec2) !important;
}
.rn-alt-card::before{
  left: auto !important;
  right: 0 !important;
}

.rn-alt-sticky ul{
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.rn-alt-sticky li{
  position: relative;
  padding-left: 18px !important;
}


/* (BLOCK "RN HOME – FINAL FIX: Divi Burger ..." GELÖSCHT WIE GEWÜNSCHT) */


/* RN HOME – FIX: Burger über Header-Blur/Overlay (Stacking Context) */
body.home:not(.et-fb) .et-l--header .et_builder_inner_content{
  position: relative !important;
  z-index: 1 !important;
}

body.home:not(.et-fb) .et-l--header .et_builder_inner_content .rn-site-header-actions,
body.home:not(.et-fb) .et-l--header .et_builder_inner_content .rn-burger{
  position: relative !important;
  z-index: 9999 !important;
}

body.home:not(.et-fb) .et-l--header::before,
body.home:not(.et-fb) .et-l--header::after,
body.home:not(.et-fb) .et-l--header .et_builder_inner_content::before,
body.home:not(.et-fb) .et-l--header .et_builder_inner_content::after{
  pointer-events: none !important;
}

/* ===============================
   RN HOME – Burger sauber im Grid - auskommentiert. Wird durch den RB HOME NEU ersetzt
   ===============================

body.home .rn-site-header-actions{
  position: fixed !important;
  top: calc(env(safe-area-inset-top, 0px) + 22px) !important;
  z-index: 2147483647 !important;
  padding: 0 !important;
  pointer-events: auto !important;
}

@media (min-width: 981px){
  body.home .rn-site-header-actions{
    right: calc((100vw - 1080px) / 2 + 24px) !important;
  }
}

@media (max-width: 980px){
  body.home .rn-site-header-actions{
    right: 18px !important;
    top: calc(env(safe-area-inset-top, 0px) + 18px) !important;
  }
}
*/



/* =========================================================
   RN HOME – LOGO Fix (responsive zur Content-Kante)
   Voraussetzung: Bildmodul hat CSS-Klasse "rn-home-logo"
   ========================================================= */

/* Desktop (>=981): an 1080px Container + 24px Row-Padding ausrichten */
@media (min-width: 981px){
  body.home .rn-home-logo{
    position: fixed !important;
    top: 0px !important;
    left: calc((100vw - 1080px) / 2 + 20px) !important;  /* ✅ wie Divi-Row-Kante */
    z-index: 2147483647 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* iPad / Tablet (481–980): etwas weiter rechts (clean) */
@media (min-width: 481px) and (max-width: 980px){
  body.home .rn-home-logo{
    position: fixed !important;
    top: 14px !important;
    left: 55px !important; /* ✅ iPad mehr rechts */
    z-index: 2147483647 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* Phone (<=480): wie bisher kompakt */
@media (max-width: 480px){
  body.home .rn-home-logo{
    position: fixed !important;
    top: 14px !important;
    left: 25px !important;
    z-index: 2147483647 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}


/* RN HOME – Headerhöhe erhöhen (Desktop) */
body.home:not(.et-fb) .et-l--header .et_pb_row{
  min-height: 90px !important;
}

/* RN HOME – Headerhöhe erhöhen (Mobile/iPad) */
@media (max-width: 980px){
  body.home:not(.et-fb) .et-l--header .et_pb_row{
    min-height: 110px !important;  /* ggf. 112/116 wenn Logo noch “drüber” steht */
  }
}

/* RN FIX: Headerhöhe vereinheitlichen (Override statt auskommentieren) */
body.home:not(.et-fb) .et-l--header .et_pb_row{
  min-height: 84px !important;
}

@media (max-width: 980px){
  body.home:not(.et-fb) .et-l--header .et_pb_row{
    min-height: 78px !important;
  }
}


/* =========================================================
   RN A11Y – barrierefrei mit Tab (GLOBAL)
   ========================================================= */

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;
  box-shadow: 0 0 0 3px rgba(0,0,0,.35) !important;
}

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

/* =========================================================
   RN HEADER – HOME Sonderlösung stabil & wie Unterseiten
   ========================================================= */

/* Header-Row identisch zu Unterseiten */
body.home:not(.et-fb) .et-l--header .et_pb_row{
  max-width:1080px !important;
  width:80% !important;
  margin:0 auto !important;
  padding:0 24px !important;
  min-height:84px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
}

@media (max-width: 980px){
  body.home:not(.et-fb) .et-l--header .et_pb_row{
    width:100% !important;
    padding:0 18px !important;
    min-height:84px !important;
  }
}

/* Burger größer wie Unterseiten */
body.home .rn-burger{
  width:54px !important;
  height:44px !important;
  gap:8px !important;
}

body.home .rn-burger span{
  width:32px !important;
}

/* Burger FIXED, aber exakt an Containerkante ausgerichtet */
body.home .rn-site-header-actions{
  position: fixed !important;
  z-index: 2147483647 !important;
  padding:0 !important;
  pointer-events:auto !important;

  top: calc(env(safe-area-inset-top, 0px) + 20px) !important;
  right: calc((100vw - 1080px)/2 + 24px) !important;
}

@media (max-width: 980px){
  body.home .rn-site-header-actions{
    top: calc(env(safe-area-inset-top, 0px) + 18px) !important;
    right: 18px !important;
  }
}


/* RN FIX: Offcanvas-Menü Typo Home = Unterseiten (Size/Weight/Spacing) */
body.home #page-container #rn-offcanvas.rn-offcanvas .rn-nav a,
body.home #page-container #rn-offcanvas.rn-offcanvas .rn-subtoggle,
body.home #page-container #rn-offcanvas.rn-offcanvas .rn-sub a,
body.home #page-container #rn-offcanvas.rn-offcanvas .rn-sub-always a,
body.home #page-container #rn-offcanvas.rn-offcanvas .rn-parent-link,
body.home #page-container #rn-offcanvas.rn-offcanvas .rn-nav-list > li > a{
  font-family: "Open Sans", sans-serif !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  line-height: 1.25 !important;
}

/* Mobile/iPad Typo wie Unterseiten */
@media (max-width:980px){
  body.home #page-container #rn-offcanvas.rn-offcanvas .rn-nav a,
  body.home #page-container #rn-offcanvas.rn-offcanvas .rn-subtoggle,
  body.home #page-container #rn-offcanvas.rn-offcanvas .rn-sub a,
  body.home #page-container #rn-offcanvas.rn-offcanvas .rn-sub-always a,
  body.home #page-container #rn-offcanvas.rn-offcanvas .rn-parent-link,
  body.home #page-container #rn-offcanvas.rn-offcanvas .rn-nav-list > li > a{
    font-size: 15px !important;
    letter-spacing: .07em !important;
  }
}

/* =========================================================
   RN BURGER HOVER – UNTERSEITEN: Hellgrün wie Startseite
   (Override ganz am Ende der CSS-Datei)
   ========================================================= */

/* Burger-Linien hover/focus -> #AEEA71 */
body:not(.home) .rn-burger:hover span,
body:not(.home) .rn-burger:focus-visible span{
  background:#AEEA71 !important;
}

/* Optional: Close-Icon im Offcanvas auch hellgrün bei Hover */
body:not(.home) .rn-close:hover,
body:not(.home) .rn-close:focus-visible{
  color:#AEEA71 !important;
}

/* Menü-Links im Offcanvas (Unterseiten) bei Hover/Active hellgrün */
body:not(.home) #rn-offcanvas .rn-nav a:hover,
body:not(.home) #rn-offcanvas .rn-nav a:focus-visible,
body:not(.home) #rn-offcanvas .rn-nav a.is-active{
  color:#AEEA71 !important;
}

/* =========================================================
   RN HOME – DESKTOP LOGO ALIGN FIX (>=981px)
   Ziel: Logo wieder links auf Content-Kante, iPad/Mobile bleibt wie jetzt
   ========================================================= */

@media (min-width: 981px){

  /* 1) Deine rn-home-logo “fixed”-Sonderlösung auf Desktop neutralisieren
        (sie erzeugt/unterstützt das “springen/centern” im Zusammenspiel mit Divi) */
  body.home .rn-home-logo{
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }

  /* 2) Divi Header-Row: Content-Container wie Body */
  body.home:not(.et-fb) .et-l--header .et_pb_row{
    width: 80% !important;
    max-width: 1080px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    min-height: 84px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  /* 3) WICHTIG: Divi kann Spalten/Module im Header zentrieren → hart links ziehen */
  body.home:not(.et-fb) .et-l--header .et_pb_column,
  body.home:not(.et-fb) .et-l--header .et_pb_module{
    text-align: left !important;
  }

  /* 4) Logo-Container (egal ob Menü-Logo oder Bild-Modul) links “festnageln” */
  body.home:not(.et-fb) .et-l--header .logo_container,
  body.home:not(.et-fb) .et-l--header .et_pb_menu__logo-wrap,
  body.home:not(.et-fb) .et-l--header .et_pb_menu__logo,
  body.home:not(.et-fb) .et-l--header .et_pb_image{
    margin-left: 0 !important;
    margin-right: auto !important;
    align-self: flex-start !important;
  }

  body.home:not(.et-fb) .et-l--header #logo,
  body.home:not(.et-fb) .et-l--header .et_pb_menu__logo img,
  body.home:not(.et-fb) .et-l--header .et_pb_image img{
    display: block !important;
    margin: 0 !important;
	transform: translateX(-4px) !important;
  }
}

/* =========================================================
   RN HEADER – Unterseiten Logo optisch 4px nach links
   (Global Header, kein Divi-Menülogo)
   ========================================================= */

body:not(.home):not(.et-fb) .et-l--header .et_pb_image img{
  transform: translateX(0px);
}

/* =========================================
   RN FOOTER – Hoverfarbe für Textmodul-Links
   ========================================= */

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

/* =========================================
   NUCLEAR SE FOOTER – Listen im Footer sauber
   Fix für Live-Ansicht vs. Visual Builder
   ========================================= */

.et-l--footer .et_pb_text ul,
.et-l--footer .et_pb_column ul,
.et-l--footer .entry-content ul{
  list-style: none !important;
  margin: 0 !important;
  padding-left: 0 !important;
}

.et-l--footer .et_pb_text ul li,
.et-l--footer .et_pb_column ul li,
.et-l--footer .entry-content ul li{
  position: relative !important;
  padding-left: 22px !important;
  margin-bottom: 10px !important;
}

.et-l--footer .et_pb_text ul li::before,
.et-l--footer .et_pb_column ul li::before,
.et-l--footer .entry-content ul li::before{
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0.55em !important;
  width: 8px !important;
  height: 8px !important;
  background: #ffffff !important;   /* statt #003316 */
  transform: translateY(-50%) !important;
  opacity: 1 !important;
}

/* Link-Look im Footer stabil */
.et-l--footer .et_pb_text a,
.et-l--footer .et_pb_column a{
  text-decoration: none !important;
}

/* etwas sauberere Abstände in den Footer-Spalten */
.et-l--footer .et_pb_column .et_pb_text_inner > *:last-child{
  margin-bottom: 0 !important;
}

/* =========================================
   NUCLEAR SE FOOTER – kompaktere Listen
   ========================================= */

.et-l--footer .et_pb_text ul li,
.et-l--footer .et_pb_column ul li{
  margin-bottom: 6px !important;   /* vorher ~10px */
  line-height: 1.35 !important;    /* etwas kompakter */
}

/* letzter Punkt ohne extra Abstand */
.et-l--footer .et_pb_text ul li:last-child,
.et-l--footer .et_pb_column ul li:last-child{
  margin-bottom: 0 !important;
}

.et-l--footer .et_pb_text ul li{
  margin-bottom: 4px !important;
}

.et-l--footer .et_pb_column{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
}

.et-l--footer .et_pb_text{
  margin-bottom: 8px !important;
}

/* =========================================
   NUCLEAR SE – BLOCKQUOTE STYLE
   ========================================= */

blockquote{
  margin: 30px 0 !important;
  padding: 18px 22px !important;

  border-left: 2px solid #003316 !important;
  background: rgba(255,255,255,0.04) !important;

  font-style: italic;
  line-height: 1.6;
}

/* Text innen */
blockquote p{
  margin: 0 !important;
}

/* optional: Quelle */
blockquote cite{
  display:block;
  margin-top:10px;
  font-size:14px;
  opacity:.7;
}

/* =========================================
   RN TEXT FIX – Quote / Highlight Reset
   entfernt kursiv + falsche Schrift
   ========================================= */

/* Alle Quote-/Highlight-Container neutralisieren */
blockquote,
blockquote p,
.rn-quote,
.rn-highlight,
.et_pb_text blockquote {
  font-style: normal !important;
  font-family: inherit !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
}

/* Falls Divi zusätzliche Styles reinzieht */
.et_pb_text_inner blockquote {
  font-style: normal !important;
}

/* Optional: falls du leichte Hervorhebung willst (empfohlen) */
blockquote p {
  font-weight: 500;
}

/* =========================================
   RN HEADER HEIGHT FIX – FINAL
   ========================================= */

body:not(.home):not(.et-fb) .et-l--header .et_pb_row{
  min-height:84px !important;
}

@media (max-width:980px){
  body:not(.home):not(.et-fb) .et-l--header .et_pb_row{
    min-height:78px !important;
  }
}

