/*
Theme Name: Arbeitssicherheit Effinowicz
Theme URI: https://www.as-effinowicz.de
Author: Patrick Effinowicz
Description: Ultimate High-Performance Theme v34.10.0 (Mobile Deep Hierarchy).
Version: 34.10.0
License: Proprietary
*/

/* --- LOKALE GOOGLE FONTS (DSGVO-KONFORM) --- */

/* inter-300 - latin */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  src: url('./fonts/inter-v20-latin-300.woff2') format('woff2');
}
/* inter-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/inter-v20-latin-regular.woff2') format('woff2');
}
/* inter-500 - latin */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('./fonts/inter-v20-latin-500.woff2') format('woff2');
}
/* inter-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('./fonts/inter-v20-latin-600.woff2') format('woff2');
}
/* inter-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('./fonts/inter-v20-latin-700.woff2') format('woff2');
}

/* montserrat-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/montserrat-v31-latin-regular.woff2') format('woff2');
}
/* montserrat-500 - latin */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  src: url('./fonts/montserrat-v31-latin-500.woff2') format('woff2');
}
/* montserrat-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: url('./fonts/montserrat-v31-latin-700.woff2') format('woff2');
}
/* montserrat-800 - latin */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  src: url('./fonts/montserrat-v31-latin-800.woff2') format('woff2');
}
/* montserrat-900 - latin */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  src: url('./fonts/montserrat-v31-latin-900.woff2') format('woff2');
}

/* --- 1. CORE & RESET --- */
body, .editor-styles-wrapper { 
    background-color: #f9fafb !important; 
    color: #494948 !important; 
    font-family: 'Inter', sans-serif !important; 
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

html, body { 
    width: 100% !important; 
    max-width: 100vw !important; 
    margin: 0 !important; 
    padding: 0 !important; 
    line-height: 1.6;
    overflow-x: clip !important; 
    overflow-y: visible !important; 
}

/* SCROLL LOCK FIX */
body.menu-open {
    overflow: hidden !important;
    height: 100vh !important;
}

* { box-sizing: border-box; }

/* --- 2. DYNAMIC ISLAND NAVIGATION --- */
.nav-wrapper { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; display: flex; justify-content: center; padding-top: 2rem; transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1); pointer-events: none; }
body.admin-bar .nav-wrapper { top: 32px; }
.nav-inner { width: 100%; max-width: 1400px; height: 5.5rem; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; background: transparent; transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1); pointer-events: auto; }

.nav-wrapper.scrolled { padding-top: 1rem; }
.nav-wrapper.scrolled .nav-inner { 
    width: 95%; max-width: 1200px; height: 4.5rem; 
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); 
    border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 99px; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1); padding: 0 2rem; 
}

/* --- 3. MEGA MENU STYLES --- */
#mega-menu-panel { box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.15); }
#mega-menu-panel::-webkit-scrollbar { width: 6px; }
#mega-menu-panel::-webkit-scrollbar-track { background: #fff; }
#mega-menu-panel::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 3px; }
.rotate-180 { transform: rotate(180deg); }
.level-3-toggle:hover i { color: #d92323; }
.mobile-login-circle { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: white; border: 1px solid #e5e7eb; color: #494948; transition: all 0.3s ease; }
.mobile-login-circle.accent { border-color: rgba(217, 35, 35, 0.3); color: #d92323; }

/* --- 4. DRAWER MENU (Deep Hierarchy Logic) --- */
#menu-trigger-btn { cursor: pointer; } 
.burger-lines { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.line-1 { width: 24px; height: 2px; background: #1a1a1a; }
.line-2 { width: 16px; height: 2px; background: #1a1a1a; transition: 0.3s; }
#menu-trigger-btn:hover .line-2 { width: 24px; }

.bell-menu-panel { 
    position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 480px; 
    background-color: #ffffff;
    z-index: 9999; 
    transform: translateX(100%); 
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    border-left: 1px solid rgba(0,0,0,0.05);
    display: flex; flex-direction: column; 
    padding: 0; 
    box-shadow: -20px 0 50px rgba(0,0,0,0.1);
}

/* FIX: Admin Bar Spacing */
body.admin-bar .bell-menu-panel { top: 32px; height: calc(100% - 32px); }
@media screen and (max-width: 782px) {
    body.admin-bar .bell-menu-panel { top: 46px; height: calc(100% - 46px); }
}

.bell-menu-panel.active { transform: translateX(0); }
.bell-menu-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.2); z-index: 9998; opacity: 0; pointer-events: none; transition: 0.6s; backdrop-filter: blur(8px); }
.bell-menu-backdrop.active { opacity: 1; pointer-events: auto; }

/* Nav List Styles */
.bell-menu-ul { list-style: none !important; margin: 0; padding: 0 24px; }
.bell-menu-ul li { position: relative; border-bottom: 1px solid #f9fafb; display: block; } 
.bell-submenu-toggle { display: none !important; }

/* Level 1 Links */
.bell-menu-ul > li > a { 
    display: block; padding: 18px 0; 
    font-family: 'Inter', sans-serif; font-weight: 800; font-size: 1.1rem; 
    color: #1a1a1a; text-decoration: none; 
    padding-right: 50px; position: relative; z-index: 1;
}

/* --- TOGGLE BUTTONS (Automated) --- */
.mobile-menu-toggle {
    position: absolute; top: 10px; right: 0;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: none; cursor: pointer;
    transition: all 0.3s ease; z-index: 10;
}

/* LEVEL 1 TOGGLE: Big & Light Red Background */
.bell-menu-ul > li > .mobile-menu-toggle {
    background: rgba(217, 35, 35, 0.05); color: #d92323; 
}
.bell-menu-ul > li > .mobile-menu-toggle:hover { background: #d92323; color: #fff; }
.bell-menu-ul > li > .mobile-menu-toggle.active { background: #d92323; color: #fff; transform: rotate(180deg); }

/* LEVEL 2 TOGGLE: Subtle & Transparent (Für Enkel-Indikator) */
.bell-menu-ul .sub-menu li > .mobile-menu-toggle {
    width: 30px; height: 30px; top: 8px; right: 0;
    background: transparent; color: #d1d5db; /* Light Gray */
    font-size: 0.8rem;
}
.bell-menu-ul .sub-menu li > .mobile-menu-toggle:hover { color: #d92323; background: rgba(0,0,0,0.02); }
.bell-menu-ul .sub-menu li > .mobile-menu-toggle.active { color: #d92323; transform: rotate(180deg); }


/* --- SUB MENUS --- */
.bell-menu-ul .sub-menu { 
    display: none; 
    list-style: none !important; padding: 0 0 15px 0; margin: 0;
    animation: slideInSub 0.3s ease;
}
.bell-menu-ul .sub-menu.open { 
    display: block; 
    margin-left: 10px;
    padding-left: 15px;
    border-left: 2px solid #d92323; 
}
@keyframes slideInSub { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* --- LEVEL 2 LINKS (Children) --- */
.bell-menu-ul .sub-menu li { border-bottom: none; }
.bell-menu-ul .sub-menu > li > a {
    font-size: 0.95rem; font-weight: 600; color: #4b5563; 
    padding: 12px 0;
    display: flex; align-items: center; /* Alignment for bullet */
    padding-right: 35px; /* Platz für den kleinen Toggle */
}
/* Bulletpoint Level 2 */
.bell-menu-ul .sub-menu > li > a::before {
    content: ''; display: block;
    width: 5px; height: 5px; border-radius: 50%;
    background-color: #d1d5db; /* Gray-300 */
    margin-right: 12px;
    transition: background-color 0.2s;
}
/* Hover State Level 2 */
.bell-menu-ul .sub-menu > li > a:hover { color: #d92323; transform: translateX(3px); transition: 0.2s; }
.bell-menu-ul .sub-menu > li > a:hover::before { background-color: #d92323; }


/* --- LEVEL 3 LINKS (Chips/Grandchildren) --- */
/* Diese werden erst sichtbar wenn Level 2 geöffnet wird (Toggle) */
.bell-menu-ul .sub-menu .sub-menu { 
    border-left: none; padding-left: 5px; margin-top: 5px; margin-bottom: 10px;
    display: none; flex-wrap: wrap; gap: 8px; /* Tag Cloud Layout */
}
.bell-menu-ul .sub-menu .sub-menu.open { display: flex; } /* Toggle Logic */

.bell-menu-ul .sub-menu .sub-menu li { display: inline-block; width: auto; }

.bell-menu-ul .sub-menu .sub-menu a {
    display: inline-flex; align-items: center;
    background-color: #f3f4f6; /* Chip BG */
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.8rem; font-weight: 600; color: #6b7280;
    text-decoration: none; transition: all 0.2s ease;
    border: 1px solid transparent;
}

/* Bullet Point im Chip (Rot) */
.bell-menu-ul .sub-menu .sub-menu a::before {
    content: ''; display: inline-block;
    width: 5px; height: 5px; background-color: #d92323;
    border-radius: 50%; margin-right: 8px; flex-shrink: 0;
}

.bell-menu-ul .sub-menu .sub-menu a:hover,
.bell-menu-ul .sub-menu .sub-menu a:active {
    background-color: #ffffff; color: #d92323;
    border-color: #e5e7eb; box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transform: translateY(-1px);
}

/* --- 5. GLOBAL SPACING LOGIC --- */
main { padding-top: clamp(160px, 20vh, 240px) !important; }
.home main, .single-post main, .single main { padding-top: 0 !important; }

/* --- 6. TYPOGRAPHY SYSTEM --- */
h1, h2, h3, h4, h5, h6, .hero-title { 
    color: #1a1a1a; font-family: 'Montserrat', sans-serif; font-weight: 900; 
    line-height: 1.1; margin-top: 0; margin-bottom: 0.5em; overflow-wrap: break-word;
    hyphens: none !important; -webkit-hyphens: none !important; text-wrap: balance; 
}
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h5 { font-size: 1.25rem; }
h6 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
p, li, .entry-content, .prose { 
    hyphens: none !important; 
    -webkit-hyphens: none !important; 
    overflow-wrap: break-word; 
    word-wrap: break-word; 
}
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 2.5em; margin-bottom: 0.75em; }
.entry-content h1:first-child, .entry-content h2:first-child { margin-top: 0; }
p, .entry-content p, .prose p { margin-top: 0; margin-bottom: 1.5rem !important; font-size: 1.1rem; font-weight: 300; line-height: 1.75; }
.bg-brand-dark h1, .bg-brand-dark h2, .bg-brand-dark h3, .bg-brand-dark h4, .bg-brand-dark h5, .bg-brand-dark h6, #process h1, #process h2, #process h3, #process h4 { color: #ffffff !important; }
/* Globale Anpassung für Fettgedrucktes */
b, strong, .prose strong, .prose b, .entry-content strong, .entry-content b {
    font-weight: 700 !important;
    color: #1a1a1a !important; /* Optional: Macht das fette Wort noch eine Nuance dunkler als den normalen Text, damit es besser heraussticht */
}
/* --- 7. LIST STYLES --- */
.entry-content ul { margin-top: 0; margin-bottom: 2.5rem !important; list-style: none !important; padding-left: 0.5rem; }
.entry-content li { position: relative; padding-left: 2rem; margin-bottom: 1rem; line-height: 1.65; font-size: 1.05rem; }
.entry-content li::before { content: '→'; position: absolute; left: 0; color: #d92323; font-weight: 900; }

/* --- 8. FRONT-PAGE, ROI & SLIDERS --- */
#process h3 { color: #d92323 !important; } 
#process .process-number { color: #ffffff; opacity: 0.1; line-height: 0.8; font-size: 8rem; font-weight: 900; pointer-events: none; }
input[type=range] { -webkit-appearance: none; background: transparent; width: 100%; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 28px; width: 28px; border-radius: 50%; background: #d92323; border: 3px solid #fff; box-shadow: 0 10px 15px rgba(0,0,0,0.1); cursor: pointer; margin-top: -12px; }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 6px; background: #e5e7eb; border-radius: 10px; }
#res-risk, #res-save { font-size: clamp(1.5rem, 5vw, 2.5rem); font-weight: 900; color: #d92323; }
#partner_slider_wrapper { width: 100%; overflow: hidden; position: relative; padding: 30px 0; background: #fff; user-select: none; cursor: grab; touch-action: pan-y; z-index: 20; }
#partner_slider_wrapper:active { cursor: grabbing; }
#partner_slider .slider-track { display: flex; align-items: center; width: max-content; will-change: transform; transform: translate3d(0, 0, 0); }
#partner_slider .logo-item { height: 80px; display: flex; align-items: center; justify-content: center; padding: 0 40px; flex-shrink: 0; -webkit-backface-visibility: hidden; box-sizing: content-box; }
#partner_slider .logo-item img { height: 100%; width: auto; object-fit: contain; display: block; pointer-events: none; filter: grayscale(100%); opacity: 0.6; transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease; }
#partner_slider_wrapper:not(:active) .logo-item:hover img { filter: grayscale(0%); opacity: 1; transform: scale(1.1); }
#partner_slider .logo-item a { display: flex; align-items: center; justify-content: center; height: 100%; width: 100%; text-decoration: none; outline: none; cursor: pointer; }
.slider-fade-left, .slider-fade-right { position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2; pointer-events: none; }
.slider-fade-left { left: 0; background: linear-gradient(to right, white, transparent); }
.slider-fade-right { right: 0; background: linear-gradient(to left, white, transparent); }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.animate-scroll { display: flex; animation: scroll 40s linear infinite; }
.text-shimmer { background: linear-gradient(90deg, #d92323 0%, #ff6b6b 50%, #d92323 100%); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 3s linear infinite; }
@keyframes shimmer { to { background-position: 200% center; } }

/* --- 10. MOBILE & FOOTER --- */
@media (max-width: 640px) {
    .max-w-7xl, .container, .entry-content { width: 100% !important; padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
    main { padding-top: 140px !important; }
    .home main, .single-post main { padding-top: 0 !important; }
}
@media (max-width: 768px) {
    #partner_slider_wrapper { padding: 20px 0; }
    #partner_slider .logo-item { height: 50px; padding: 0 20px; }
    .slider-fade-left, .slider-fade-right { width: 40px; }
}
footer h2, footer h3 { color: #ffffff !important; font-size: 1.25rem !important; text-transform: uppercase; letter-spacing: 0.1em; hyphens: none !important; }
footer a:hover { color: #d92323; transform: translateX(3px); transition: 0.3s; }
@keyframes edel-wackeln { 0% { transform: rotate(0deg); } 25% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-5deg); } 100% { transform: rotate(0deg); } }
.contact-btn-interactive:hover .contact-icon-anim { animation: edel-wackeln 0.5s ease-in-out 0.2s forwards; }
.contact-btn-success { background-color: #16a34a !important; border-color: #16a34a !important; transform: translateY(0) !important; }
.contact-btn-success .contact-icon-bg { background-color: #ffffff !important; color: #16a34a !important; transform: translateX(0) !important; }
.contact-btn-success span.font-bold { transform: translateX(0) !important; }

/* --- BULLETPROOF SILBENTRENNUNG FÜR ÜBERSCHRIFTEN --- */
h1, h2, h3, h4, h5, h6, 
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    /* 1. Erlaubt dem Browser, lange Wörter automatisch logisch zu trennen */
    -webkit-hyphens: auto !important;
    -ms-hyphens: auto !important;
    hyphens: auto !important;
    
    /* 2. Sagt dem Browser: "Wenn du das Wort nicht kennst, brich es im Notfall hart um, bevor das Layout platzt!" */
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    
    /* 3. Wichtiger Fallback für ältere iOS/Safari Versionen */
    word-break: break-word !important; 
}