/*
Theme Name: EWT26
Author: EWT
Version: 5.32
*/

:root {
    --ewt-dark-grey: #1e1e1e;
    --ewt-brand-blue: #65afd8;
    --ewt-midnight: #0f172a;
    --ewt-text: #ffffff;
    --ewt-tech-white: #ffffff;
    --ewt-font-primary: 'OpenSans', sans-serif;
    --ewt-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- 1. GLOBAL RESET & TYPOGRAPHY --- */
* { 
    box-sizing: border-box; 
    font-family: 'OpenSans', sans-serif !important; 
}

body, html { 
    margin: 0; padding: 0; overflow-x: hidden; scroll-behavior: smooth; 
    background: #121212; color: var(--ewt-text); -webkit-font-smoothing: antialiased; 
}

a { text-decoration: none !important; transition: var(--ewt-transition); color: inherit; }

/* --- 2. HEADER & FAIL-SAFE MOBILE NAV --- */
.site-header { position: fixed; top: 0; left: 0; width: 100%; height: 100px; z-index: 9999; transition: var(--ewt-transition); background: transparent; }
.site-header.scrolled { background: var(--ewt-dark-grey); height: 80px; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
#nav-container { max-width: 1400px; margin: 0 auto; height: 100%; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }

#SVGLogo { height: 45px; width: auto; display: block; }
.Logo-Color-Grey { fill: #ffffff; }
.Logo-Color-Blue { fill: var(--ewt-brand-blue); }

#SVGBurgermenue { width: 30px !important; height: 24px !important; cursor: pointer; display: block; }
#close-menue-x { width: 25px !important; height: 25px !important; cursor: pointer; }

.navigation-slide-div { 
    position: fixed; top: 0; right: 0; width: 320px; height: 100vh; 
    background: var(--ewt-dark-grey); z-index: 10000; padding: 40px 25px; 
    transform: translateX(100%); visibility: hidden; 
    transition: transform 0.4s ease, visibility 0.4s;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}
.navigation-slide-div.is-active { transform: translateX(0); visibility: visible; }

@media screen and (min-width: 1025px) {
    .mobile-trigger, .navigation-slide-div { display: none !important; }
    .nav-list-modern { display: flex !important; list-style: none; gap: 35px; margin: 0; padding: 0; }
    .nav-list-modern > li { position: relative !important; padding: 10px 0; }
    .nav-list-modern a {font-weight: 700; font-size: 13px; text-transform: uppercase; }
    .nav-list-modern .sub-menu { 
        position: absolute; top: 100%; left: 0; background: #1a1a1a; 
        min-width: 220px; visibility: hidden; opacity: 0; transform: translateY(10px); 
        transition: var(--ewt-transition); padding: 15px 0; list-style-type: none;
    }
    .nav-list-modern li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav-list-modern .sub-menu li a { padding: 10px 20px; display: block; text-transform: none; font-weight: 400; font-size: 14px; }
}

/* --- 3. HERO SECTION (HOMEPAGE) --- */
.image-banner-heroimage { min-height: 87.5vh !important; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 120px 20px 60px 20px; background-color: #2a2a2a; }
.image-banner-heroimage .wp-block-cover__image-background { position: absolute !important; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.image-banner-heroimage h1.wp-block-heading, .image-banner-heroimage p, .image-banner-heroimage a { color: #ffffff !important; text-shadow: 0 2px 10px rgba(0,0,0,0.4); position: relative; z-index: 3; }
.image-banner-heroimage h1.wp-block-heading { font-weight: 700 !important; font-size: clamp(2.2rem, 5vw, 4.2rem) !important; line-height: 1.1; margin-bottom: 1.5rem !important; }
.image-banner-heroimage p { font-weight: 400 !important; font-size: clamp(1.1rem, 1.3vw, 1.3rem) !important; line-height: 1.7; max-width: 800px; margin: 0 auto !important; }

/* --- 4. SECTION DARK --- */
.section-dark { background-color: #121212 !important; padding: 120px 20px !important; width: 100%; position: relative; z-index: 5; }
.section-dark .wp-block-group__inner-container { max-width: 850px !important; margin: 0 auto !important; }
.section-dark h2, .section-dark h3, .section-dark p, .section-dark a { color: #ffffff !important; }
.section-dark h2, .section-dark h3 { font-weight: 700; font-size: clamp(1.75rem, 3.5vw, 2.5rem) !important; line-height: 1.2; margin-bottom: 2rem !important; }
.section-dark p { font-weight: 400; font-size: clamp(1.05rem, 1.3vw, 1.2rem) !important; line-height: 1.85; opacity: 0.9; }

/* --- 5. TECHNICAL 3-COLUMN LAYOUT --- */
.threecolumns { 
    max-width: 1400px !important; margin: 0 auto !important; padding: 100px 0 120px 0 !important; 
    display: flex !important; gap: 20px !important; background-color: #ffffff !important;
    position: relative; box-shadow: 0 0 0 100vmax #ffffff; clip-path: inset(0 -100vmax);
}
.threecolumns .wp-block-column { flex: 1; background-color: #ffffff !important; display: flex; flex-direction: column; transition: var(--ewt-transition); margin: 0 !important; }
.threecolumns .wp-block-image { margin: 0 !important; overflow: hidden !important; }
.threecolumns img { width: 100% !important; height: 380px !important; object-fit: cover; border-radius: 0 !important; filter: grayscale(15%); transition: transform 0.6s ease; }
.threecolumns .wp-block-column:hover img { transform: scale(1.08); filter: grayscale(0%); }
.threecolumns h3, .threecolumns h4, .threecolumns p { padding: 0 35px; color: #1a1a1a !important; }
.threecolumns h3.wp-block-heading, .threecolumns h4.wp-block-heading { margin-top: 40px !important; margin-bottom: 15px !important; font-size: 1.25rem !important; font-weight: 700 !important; text-transform: uppercase; border-left: 5px solid var(--ewt-brand-blue); padding-left: 30px !important; }
.threecolumns p { margin-bottom: 50px !important; font-size: 0.95rem !important; line-height: 1.7 !important; opacity: 0.9; }

/* --- 6. PROFESSIONAL 2-COLUMN TEXT --- */
.twocolumns { max-width: 1400px !important; margin: 80px auto 120px auto !important; padding: 0 40px; display: flex !important; gap: 80px !important; }
@media screen and (min-width: 782px) { .twocolumns .wp-block-column:last-child { border-left: 1px solid rgba(255,255,255,0.1); padding-left: 80px; } }
.twocolumns h3.wp-block-heading, .twocolumns h4.wp-block-heading { color: #ffffff !important; font-size: 1.5rem !important; font-weight: 700 !important; margin-bottom: 25px !important; text-transform: uppercase; border-bottom: 2px solid var(--ewt-brand-blue); display: inline-block; padding-bottom: 10px; }
.twocolumns p { color: #ffffff !important; font-size: 1rem !important; line-height: 1.8 !important; margin-bottom: 20px !important; }

/* --- 7. EDITORIAL BLUE BLOCK --- */
.section-dark-blue { 
    background: linear-gradient(180deg, #111827 0%, #1e293b 100%) !important; 
    padding: 140px 20px !important; width: 100%; position: relative; 
}
.section-dark-blue h3.wp-block-heading { color: var(--ewt-brand-blue) !important; font-size: clamp(2rem, 4vw, 3rem) !important; font-weight: 700; margin-bottom: 40px !important; text-align: center; }
.section-dark-blue p { color: #ffffff !important; font-size: clamp(1.1rem, 1.5vw, 1.4rem) !important; line-height: 2 !important; text-align: center; max-width: 950px; margin: 0 auto !important;}

/* --- 8. FULL-WIDTH PARALLAX TEASER --- */
.full-banner { width: 100vw !important; position: relative; left: 50%; right: 50%; margin-left: -50vw !important; margin-right: -50vw !important; min-height: 550px !important; display: flex; align-items: center; clip-path: inset(0); }
.full-banner .wp-block-cover__image-background { position: fixed !important; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1 !important; }
.full-banner h3, .full-banner h4, .full-banner p, .full-banner a, .full-banner strong { color: #ffffff !important; }
.full-banner h3.wp-block-heading, .full-banner h4.wp-block-heading { font-size: clamp(2rem, 4vw, 3.5rem) !important; font-weight: 700 !important; }

/* --- 9. APPLICATION PANELS --- */
.panelcontainer { max-width: 1400px !important; margin: 100px auto 140px auto !important; padding: 0 20px; display: flex !important; gap: 40px !important; }
.panelgroup { display: flex !important; flex-direction: column !important; gap: 40px !important; }
.panel { background-color: var(--ewt-dark-grey) !important; padding: 40px !important; border: 1px solid rgba(255,255,255,0.1) !important; transition: none !important; display: flex !important; flex-direction: column; align-items: flex-start; height: 100%; }
.SVG_Panel { width: 60px !important; height: 60px !important; margin-bottom: 30px !important; transition: none !important; }
.panel h3.wp-block-heading, .panel h4.wp-block-heading { color: #ffffff !important; margin: 0 0 15px 0 !important; font-weight: 700; font-size: 1.4rem; transition: none !important; }
.panel p { color: rgba(255,255,255,0.7) !important; line-height: 1.7; font-size: 0.95rem; }
.SVG_Panel path, .SVG_Panel line, .SVG_Panel rect { stroke: var(--ewt-brand-blue) !important; stroke-width: 4px !important; }

/* --- 10. MOBILE OVERRIDES --- */
@media screen and (max-width: 1024px) {
    .desktop-nav { display: none !important; }
    .mobile-trigger { display: block !important; color: white; cursor: pointer; }
    .threecolumns { box-shadow: none; clip-path: none; flex-direction: column !important; gap: 30px !important; padding: 60px 20px !important; }
    .twocolumns, .panelcontainer { flex-direction: column !important; gap: 30px !important; padding: 0 20px !important; background-color: transparent !important; }
    .full-banner .wp-block-cover__image-background { position: absolute !important; }
    .full-banner { clip-path: none; margin-bottom: 60px !important; }
}

/* --- 11. FOOTER --- */
.site-footer-modern { background-color: #0d0d0d !important; border-top: 1px solid rgba(255,255,255,0.05); padding: 100px 0 60px 0 !important; color: #ffffff; position: relative; z-index: 10; }
.footer-grid { max-width: 1400px !important; margin: 0 auto !important; display: grid !important; grid-template-columns: 1.5fr 1fr 1fr !important; gap: 60px; padding: 0 40px; }
.footer-column h5 { color: var(--ewt-brand-blue) !important; text-transform: uppercase; font-size: 0.85rem !important; font-weight: 700; letter-spacing: 2px; margin: 0 0 30px 0 !important; }
.footer-column p { font-size: 0.95rem; line-height: 1.8; color: rgba(255,255,255,0.5) !important; margin: 0; }
#menu-info { list-style: none; padding: 0; margin: 0; }
#menu-info li { margin-bottom: 12px; }
#menu-info li a { color: rgba(255,255,255,0.5) !important; font-size: 0.9rem; transition: var(--ewt-transition); }
#menu-info li a:hover { color: #ffffff !important; padding-left: 5px; }
.social-icons-row { display: flex; gap: 20px; align-items: center; }
.social-icons-row a img { width: 24px !important; }

/* --- 12. UNIVERSAL SUBPAGE HERO (DOT PATTERN) --- */
.page-template-subpage-php .subpage-header {
    background-color: var(--ewt-dark-grey);
    background-image: radial-gradient(rgb(255, 255, 255) 0.1px, transparent 0.65px);
    background-size: 14px 14px;
    padding: 180px 20px 100px 20px !important; text-align: center; position: relative; overflow: hidden;
}
.page-template-subpage-php .subpage-header::after {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(15, 23, 42, 0.4) 100%); pointer-events: none;
}
.page-template-subpage-php .subpage-header h1 { font-size: clamp(2.5rem, 5vw, 4rem) !important; color: #ffffff !important; font-weight: 700 !important; text-transform: uppercase; margin-bottom: 15px !important; position: relative; z-index: 2; }
.page-template-subpage-php .subpage-header p { color: var(--ewt-brand-blue) !important; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; margin: 0 !important; position: relative; z-index: 2; }

/* --- 13. ALIGNED ROUND PANEL GRID --- */
.page-template-subpage-php .benefits-subpage > .wp-block-group__inner-container {
    display: flex !important; flex-wrap: wrap !important; justify-content: center !important; 
    gap: 50px 20px; max-width: 1400px; margin: 80px auto !important; padding: 0 20px;
}
.page-template-subpage-php .employee {
    text-align: center !important; display: flex !important; flex-direction: column !important; align-items: center !important;
    width: 18% !important; min-width: 240px; margin: 0 !important; padding: 0 !important;
}
.page-template-subpage-php .employee .wp-block-image { width: 140px !important; height: 140px !important; margin: 0 auto 20px auto !important; display: block !important; }
.page-template-subpage-php .employee img { width: 140px !important; height: 140px !important; object-fit: cover !important; border-radius: 50% !important; border: 2px solid var(--ewt-brand-blue); display: block !important; }
.page-template-subpage-php .employee h3, .page-template-subpage-php .employee h4 { color: #ffffff !important; font-size: 1.05rem !important; font-weight: 700 !important; margin: 0 0 12px 0 !important; text-transform: uppercase; text-align: center !important; min-height: 2.4em; display: flex; align-items: center; justify-content: center; width: 100%; }
.page-template-subpage-php .employee p { color: rgba(255,255,255,0.7) !important; font-size: 0.85rem !important; line-height: 1.6 !important; margin: 0 !important; text-align: center !important; padding: 0 10px !important; }

/* --- 14. PHILOSOPHY SECTION --- */
.page-template-subpage-php .section-dark-subpage { background-color: #161616 !important; padding: 140px 20px !important; width: 100%; position: relative; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); text-align: center; }
.page-template-subpage-php .section-dark-subpage h3 { color: #ffffff !important; font-size: clamp(2rem, 4vw, 2.75rem) !important; font-weight: 700 !important; margin-bottom: 40px !important; text-align: center;}
.page-template-subpage-php .section-dark-subpage h3::after { content: ''; display: block; width: 60px; height: 3px; background-color: var(--ewt-brand-blue); margin: 25px auto 0; }
.page-template-subpage-php .section-dark-subpage p { color: rgba(255,255,255,0.85) !important; font-size: clamp(1.1rem, 1.3vw, 1.25rem) !important; line-height: 1.85 !important; width:80%; margin:0 auto; }

/* --- 15. TECHNICAL SEPARATOR --- */
.page-template-subpage-php .wp-block-separator { border: none !important; border-bottom: 2px solid var(--ewt-brand-blue) !important; width: 80px !important; margin: 50px auto !important; opacity: 1 !important; }

/* --- 16. BALANCED DATA CARDS (REFINED PANELS) --- */
.panel { 
    background: #1a1a1a !important; 
    border: 1px solid rgba(255, 255, 255, 0.05) !important; 
    padding: 45px 35px !important; 
    height: 100%; 
    display: flex !important; 
    flex-direction: column !important; 
    align-items: center !important; 
    text-align: center !important; 
    position: relative;
}


/* Badge for "Typ" or "ECO-a" Numbers */
.panel p:first-child, 
.panel p.has-text-align-center:nth-child(-n+4) { 
    display: inline-block !important; 
    background: rgba(101, 175, 216, 0.1) !important; 
    color: var(--ewt-brand-blue) !important; 
    padding: 6px 18px !important; 
    font-size: 0.9rem !important; 
    font-weight: 700 !important; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    margin: 0 auto 10px auto !important; 
    border: 1px solid var(--ewt-brand-blue);
    width: auto !important;
}

/* Heading Alignment */
.panel h3, .panel h4 { 
    color: #ffffff !important; 
    font-size: 1.4rem !important; 
    font-weight: 700 !important; 
    margin: 15px 0 25px 0 !important; 
    text-transform: uppercase; 
    width: 100%;
}

/* Content Alignment within Panel */
.panel p { margin-bottom: 8px !important; font-size: 1.05rem; color: #ffffff; width: 100% !important; text-align: center !important; }

/* Styling for Sub-Labels (privat / öffentlich) */
.panel p strong em, .panel p em strong { 
    display: block !important; 
    color: var(--ewt-brand-blue) !important; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-top: -5px !important; 
    margin-bottom: 20px !important; 
    font-style: normal !important; 
}

/* --- 17. TECHNICAL BENEFITS (DARK MODE & PERFECT CENTERING) --- */
.benefits-subpage {
    background-color: transparent !important; 
    padding: 100px 20px !important;
    width: 100% !important;
}

.benefits-subpage .wp-block-group__inner-container {
    max-width: 1400px !important; 
    margin: 0 auto !important;
    text-align: center;
}

.benefits-subpage h3 {
    text-align: center;
    color: #ffffff !important; 
    font-size: clamp(1.6rem, 2.5vw, 2rem) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    margin-bottom: 15px !important;
}

.benefits-subpage h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--ewt-brand-blue);
    margin: 25px auto 60px;
}

.benefits-subpage ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    display: inline-grid !important; 
    grid-template-columns: auto auto; 
    justify-content: center; 
    gap: 15px 100px; 
    text-align: left; 
}

.benefits-subpage ul li {
    position: relative;
    padding-left: 35px;
    color: #ffffff !important; 
    font-size: 1.05rem;
    line-height: 1.3;
    display: flex;
    align-items: center;
    min-height: 35px;
}

.benefits-subpage ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--ewt-brand-blue);
    font-weight: 900;
    font-size: 1.2rem;
}

.languageswitch {
    color: var(--ewt-brand-blue);
}

@media screen and (max-width: 900px) {
    .benefits-subpage ul { display: grid !important; grid-template-columns: 1fr; gap: 15px; max-width: 500px; }
}

/* --- 18. OPERATING COST CALCULATOR --- */
.container-betriebskostenrechner { 
    max-width: 800px !important; 
    margin: 60px auto !important; 
    background: #1a1a1a; 
    padding: 50px 40px !important; 
    border: 1px solid rgba(255, 255, 255, 0.05); 
    position: relative; 
}
.container-betriebskostenrechner::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--ewt-brand-blue); }
.container-betriebskostenrechner h2 { color: #ffffff !important; font-size: 1.6rem !important; font-weight: 700 !important; text-transform: uppercase; margin-bottom: 30px !important; text-align: center; }
.container-betriebskostenrechner label { display: block; color: var(--ewt-brand-blue); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 10px !important; }
.container-betriebskostenrechner select, .container-betriebskostenrechner input[type="number"] { width: 100%; background: #121212 !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; color: #ffffff !important; padding: 12px 15px !important; font-size: 1rem !important; margin-bottom: 25px !important; border-radius: 0; }
.slider-container { margin-bottom: 30px; display: flex; align-items: center; gap: 20px; }
input[type="range"] { flex-grow: 1; height: 6px; background: #333; -webkit-appearance: none; outline: none;width: 100%;margin-bottom: 30px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; background: var(--ewt-brand-blue); cursor: pointer; border-radius: 50%; }
.slider-value { color: var(--ewt-brand-blue); font-weight: 700; font-size: 1.2rem; min-width: 30px; }
.container-betriebskostenrechner button { width: 100%; background: var(--ewt-brand-blue); color: var(--ewt-midnight); border: none; padding: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: var(--ewt-transition); margin-bottom: 30px; }
.container-betriebskostenrechner button:hover { background: #ffffff; }
#ergebnisse { background: #121212; padding: 25px; border-left: 3px solid var(--ewt-brand-blue); color: #ffffff; line-height: 1.8; font-size: 1.1rem; }
.container-betriebskostenrechner .disclaimer p { margin-top: 30px !important; font-size: 11px !important; color: rgba(255,255,255,0.4) !important; text-align: center; }

/* --- 19. SPEZIFIKATIONEN TECHNICAL TABLES (DARKMODE & COMPACT) --- */
.table-container { background: #121212 !important; padding: 80px 20px !important; width: 100%; border-top: 1px solid rgba(255,255,255,0.05); }
.table-container .wp-block-group__inner-container { max-width: 900px !important; margin: 0 auto !important; }
.table-container h3 { color: #ffffff !important; text-align: center; font-weight: 700; text-transform: uppercase; margin-bottom: 40px; font-size: 1.4rem; letter-spacing: 1px; }
.wp-block-table table { border: 1px solid rgba(255,255,255,0.1) !important; border-collapse: collapse; width: 100%; }
.wp-block-table thead { background-color: var(--ewt-dark-grey); color: var(--ewt-brand-blue); }
.wp-block-table th { padding: 15px !important; text-transform: uppercase; font-size: 0.9rem; border: 1px solid rgba(255,255,255,0.2) !important; }
.wp-block-table td { padding: 12px 15px !important; background-color: #161616; border: 1px solid rgba(255,255,255,0.05) !important; color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.wp-block-table tr:nth-child(even) td { background-color: #1c1c1c; }
.wp-block-table td strong { color: #ffffff; }

/* --- 20. SPEZIFIKATIONEN ANWENDUNGSBEREICHE LISTS --- */
.page-template-subpage-php .section-dark-subpage ul { 
    list-style: none !important; padding: 0 !important; 
    display: flex; flex-wrap: wrap; justify-content: center; 
    gap: 20px 60px; max-width: 1000px; margin: 40px auto 0 !important; 
}
.page-template-subpage-php .section-dark-subpage ul li { 
    position: relative; padding-left: 35px; color: rgba(255,255,255,0.8); 
    font-size: 1.1rem; min-height: 40px; display: flex; align-items: center; text-align: left; 
}
.page-template-subpage-php .section-dark-subpage ul li::before { 
    content: '✓'; position: absolute; left: 0; color: var(--ewt-brand-blue); 
    font-weight: 900; font-size: 1.2rem; 
}

.twocolumns-subpage img { padding-left: 20px; border-radius: 0 !important; }

/* --- 21. FULLPAGE SVG SCALING --- */
.fullpage-svg { padding: 100px 0 !important; width: 100% !important; background: #181818; }
.fullpage-svg .wp-block-group__inner-container { max-width: 100% !important; display: flex !important; justify-content: center !important; }
.fullpage-svg svg { width: 40vw !important; height: auto !important; margin: 0 auto !important; display: block !important; }

/* --- 22. CHLORINE GENERATION CALCULATOR (.rechner) --- */
.rechner { max-width: 800px !important; margin: 60px auto !important; background: #1a1a1a; padding: 50px 40px !important; border: 1px solid rgba(255, 255, 255, 0.05); position: relative; text-align: left; }
.rechner::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--ewt-brand-blue); }
.rechner label { display: block; color: var(--ewt-brand-blue); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 10px !important; margin-top: 20px; }
.rechner input[type="number"], .rechner input[type="text"], .rechner select { width: 100%; background: #121212 !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; color: #ffffff !important; padding: 12px 15px !important; font-size: 1rem !important; border-radius: 0; outline: none; }
.rechner button { width: 100%; background: var(--ewt-brand-blue); color: var(--ewt-midnight); border: none; padding: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: var(--ewt-transition); margin: 30px 0; }
#chlorerzeugungsleistung { background: #0f172a !important; border: 1px solid var(--ewt-brand-blue) !important; color: var(--ewt-brand-blue) !important; font-weight: 700; font-size: 1.4rem !important; text-align: center; }

/* --- 23. CALCULATOR PRODUCT IMAGES --- */
#imageflexcontainer {
    /* Dein bestehendes Layout */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    height: auto !important;
    min-height: 400px; /* Mindesthöhe, damit das Muster auch ohne Bilder wirkt */
    overflow: visible !important;
    padding: 60px 20px; /* Wichtig, damit das Raster atmen kann */

    /* --- DARKMODE KAROPAPIER / BLUEPRINT --- */
    background-color: #161616; /* Grundfarbe (etwas heller als Deep Black) */
    background-image: 
        /* Hauptraster (alle 100px eine stärkere Linie) */
        linear-gradient(rgba(101, 175, 216, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(101, 175, 216, 0.15) 1px, transparent 1px),
        /* Feinraster (alle 20px eine sehr feine Linie) */
        linear-gradient(rgba(101, 175, 216, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(101, 175, 216, 0.05) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: center center;
}

/* --- 24. LAYOUT RESET FOR DATA BLOCKS --- */
.wp-block-columns.is-layout-flex { 
    align-items: stretch !important; 
    justify-content: center !important; /* CENTERS THE PANELS AS A GROUP */
    max-width: 1200px;
    margin: 40px auto !important;
}

/* Ensures content within panels stays centered even if columns try to float left */
.wp-block-column.is-layout-flow .panel {
    text-align: center !important;
    margin: 0 auto !important;
}

.wp-block-column:only-child .panel {
    max-width: 600px;
    margin: 0 auto !important;
}

/* --- RESPONSIVE LOGIC --- */
@media screen and (max-width: 1200px) { .twocolumns-subpage .wp-block-columns { flex-wrap: wrap !important; } }
@media screen and (max-width: 1250px) { .page-template-subpage-php .employee { width: 30% !important; } }
@media screen and (max-width: 850px) { 
    .page-template-subpage-php .employee { width: 45% !important; } 
    .benefits-subpage h3 { margin-bottom: 40px !important; } 
    .fullpage-svg svg { width: 40vw !important; }
}
@media screen and (max-width: 782px) { 
    .page-template-subpage-php .employee { width: 100% !important; } 
    .twocolumns-subpage .wp-block-column { flex: 1 1 100% !important; } 
    .wp-block-table { display: block; overflow-x: auto; }
    .rechner, .container-betriebskostenrechner { padding: 30px 20px !important; }
    .wp-block-columns { flex-direction: column !important; }
}

@media (max-width: 1024px) {

    /* Hero-Sektion Höhe anpassen */
    .wp-block-cover.image-banner-heroimage {
        min-height: 450px !important; /* Hier kannst du die gewünschte Höhe einstellen */
        padding-top: 40px;
        padding-bottom: 40px;
    }

    /* Fix für die verschobenen Spalten */
    .wp-block-columns.twocolumns {
        flex-direction: column !important;
        gap: 30px; /* Abstand zwischen den nun untereinander stehenden Blöcken */
    }

    /* Entfernt den Standard-Margin von WordPress, der das Element nach rechts schiebt */
    .wp-block-columns.twocolumns > .wp-block-column {
        border-left:0;
        padding-left:0;
    }
    
    /* Spacer-Blöcke auf Mobile reduzieren, falls sie zu groß sind */
    .wp-block-spacer {
        height: 30px !important;
    }
}

/* Mobile Drawer Styling */
#mobileDrawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%; /* Etwas Platz lassen, damit man sieht, dass es ein Overlay ist */
    max-width: 400px;
    height: 100vh;
    background-color: #ffffff;
    z-index: 10000;
    padding: 30px 25px;
    overflow-y: auto;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Close-Button (X) Styling */
#close-menue-x {
    width: 25px;
    height: 25px;
    color: #333;
    transition: transform 0.2s ease;
}

#close-menue-x:hover {
    transform: scale(1.1);
}

/* Menü-Liste */
.mobile-menu-inner ul.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-inner ul.menu > li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-inner ul.menu > li > a {
    display: block;
    padding: 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sub-Menü (Unterpunkte) Styling */
.mobile-menu-inner ul.sub-menu {
    list-style: none;
    padding-left: 20px;
    background-color: #f9f9f9;
    margin-bottom: 10px;
}

.mobile-menu-inner ul.sub-menu li a {
    display: block;
    padding: 10px 0;
    font-size: 16px;
    color: #555;
    text-decoration: none;
}

/* Aktueller Menüpunkt markieren */
.mobile-menu-inner .current-menu-item > a {
    color: #0073aa; /* Ersetze dies durch deine Markenfarbe */
}

/* Language Switcher besonders hervorheben */
.languageswitch a {
    font-weight: bold;
    color: var(--ewt-brand-blue) !important;
}

/* --- MOBILE ACCORDION LOGIC --- */

/* 1. Untermenüs im Mobile Drawer standardmäßig verstecken */
#mobileDrawer .sub-menu {
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    background-color: #f9f9f9; /* Hellerer Hintergrund für Kontrast im weißen Drawer */
}

/* 2. Zustand wenn geöffnet (Klasse .submenu-open wird via JS gesetzt) */
#mobileDrawer .menu-item-has-children.submenu-open > .sub-menu {
    max-height: 1000px; /* Großer Wert für flüssige Animation */
    visibility: visible;
    opacity: 1;
    padding: 10px 0 10px 20px !important; /* Einrückung für Unterpunkte */
}

/* 3. Indikator (Optional: Ein kleines Plus/Minus oder Pfeil) */
#mobileDrawer .menu-item-has-children > a::after {
    content: '+';
    float: right;
    font-size: 20px;
    transition: transform 0.3s ease;
    color: var(--ewt-brand-blue);
}

#mobileDrawer .menu-item-has-children.submenu-open > a::after {
    content: '−';
    transform: rotate(180deg);
}

@media screen and (max-width: 782px) {
    #imageflexcontainer {
        flex-direction: column; /* Stapelt die Bilder untereinander */
        align-items: center;    /* Zentriert die Bilder */
        gap: 40px;              /* Mehr Abstand zwischen den gestapelten Bildern */
    }

    #productimage-membran, 
    #productimage-eco {
        /* Sicherstellen, dass die Bilder auf Mobile nicht breiter als der Bildschirm sind */
        max-width: 100%; 
        display: block; /* Auf Mobile ist block oft sicherer als inline-block */
    }

    .image-banner-heroimage h1.wp-block-heading {
        font-size: clamp(1.2rem, 8vw, 2.5rem) !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }

    .page-template-subpage-php .subpage-header h1 {
        font-size: clamp(1rem, 5vw, 2.8rem) !important;
        line-height: 1.1 !important;
        padding: 0 10px; /* Adds a safety buffer on the sides */
    }

    .mobile-menu-inner ul.menu > li > a {
        font-size: 14px; /* Slightly smaller to prevent text wrapping on long menu items */
        padding: 18px 0; /* Larger vertical tap area for thumbs */
        letter-spacing: 1px;
    }

    .mobile-menu-inner ul.sub-menu li a {
        font-size: 16px;
        padding: 12px 0;
    }
}

/* Center and style the password protection container */
.post-password-form {
    max-width: 500px;
    margin: 100px auto;
    padding: 40px;
    background: #1d1d1d;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    font-family: 'OpenSans', sans-serif;
}

/* Style the input field */
.post-password-form input[type="password"] {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

/* Style the submit button to match your branding */
.post-password-form input[type="submit"] {
    background-color: var(--ewt-brand-blue);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.3s ease;
}

.post-password-form input[type="submit"]:hover {
    background-color: var(--ewt-brand-blue);
}

/* --- 25. FLAT & PROFESSIONAL VIDEO INTEGRATION --- */

/* 1. The Centered Headline (No Deco, Clean Typography) */
.tut-col h3.wp-block-heading, .tut-col h4.wp-block-heading {
    text-align: center !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff !important;
    margin-bottom: 30px !important;
    display: block;
}

/* 2. Container Sizing (The "Sweet Spot" for Pro Content) */
.wp-block-embed-youtube {
    max-width: 880px !important; /* Prevents the video from feeling like a giant 'wall' */
    margin: 60px auto !important;
    width: 100%;
}

/* 3. The Flat Professional Frame */
.wp-block-embed__wrapper {
    position: relative;
    background: #000;
    /* Ultra-thin border for a modern 'high-tech' feel */
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 4px; /* Subtle rounding is more professional than sharp or fully round */
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* 4. Force Perfect 16:9 Alignment */
.wp-block-embed__wrapper iframe {
    aspect-ratio: 16 / 9;
    width: 100% !important;
    height: auto !important;
    display: block;
    border: none;
}

/* 5. Minimalist Interaction (Flat Highlight) */
.wp-block-embed-youtube:hover .wp-block-embed__wrapper {
    /* Instead of a glow, we just highlight the frame in your brand color */
    border-color: var(--ewt-brand-blue);
    /* Very subtle elevation without looking 'gamery' */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); 
}

/* 6. Caption / Sub-text Styling */
.tut-col p.has-text-align-center {
    margin-top: 25px !important;
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
    max-width: 600px;
    margin-left: auto !important;
    margin-right: auto !important;
    line-height: 1.6;
}

/* --- MOBILE OPTIMIZATION --- */
@media screen and (max-width: 782px) {
    .wp-block-embed-youtube {
        margin: 40px auto !important;
        padding: 0 10px; /* Safety padding for mobile screens */
    }
    
    .tut-col h3.wp-block-heading, .tut-col h4.wp-block-heading {
        font-size: 1rem !important;
        letter-spacing: 1px;
    }
}