/* =========================================
   1. GLOBALE STYLES & MOBILE BASE
   ========================================= */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100svh; 
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative; 
}

.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100lvh;
    z-index: -1;
    pointer-events: none;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    will-change: transform;
}

header {
    display: flex;
    flex-direction: column; 
    align-items: center;    
    padding: 15px 15px 30px 15px; 
    background-color: rgba(222, 234, 252, 0.95);
    color: #122236; 
    border-bottom: 4px solid #1a3a5f; 
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header-main-content {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 20px; 
    max-width: 1100px;
    width: 100%;
}

.header-info {
    text-align: center; 
}

.header-info h1,
.header-info h2 {
    margin: 0;
    font-size: 2.4rem;
    letter-spacing: 1px;
}

.header-info p {
    margin: 10px 0 0 0; 
    font-style: italic;
    color: #233954; 
    font-size: 1.15rem;
}

.header-image {
    width: auto;
    max-width: 100%;
    height: 200px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
    display: block;
}

.main-nav {
    display: flex;
    flex-direction: row; 
    align-items: center;    
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px; 
    margin-top: 15px;
    margin-bottom: 25px; 
    width: 100%;
    border-bottom: 1px solid rgba(26, 58, 95, 0.15); 
    padding-bottom: 12px;
}

.main-nav img {
    transition: transform 0.3s ease;
}

.main-nav a {
    color: #000000; 
    text-decoration: none;
    font-size: 1.0rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase; 
    transition: color 0.2s ease, border-color 0.2s ease;
    line-height: 1;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent; 
}

.main-nav a.active {
    color: #1a3a5f; 
    border-bottom-color: #1a3a5f; 
}

.services-dropdown:has(.services-dropdown-menu li a.active) .services-dropdown-toggle {
    color: #1a3a5f; 
    border-bottom-color: #1a3a5f;
}

.nav-logo-link,
.dark-mode-slider {
    display: none;
}

.nav-dark-mode-link {
    display: inline-block;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    padding-bottom: 5px;
    font-family: inherit;
    font-size: 1.0rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #000000; 
    line-height: 1;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease;
}

.services-dropdown {
    position: relative;
    display: inline-block;
}

.services-dropdown-toggle {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0 0 5px 0;
    font-family: inherit;
    font-size: 1.0rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #000000; 
    line-height: 1;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.services-dropdown-toggle:focus {
    outline: none;
}

.dropdown-arrow {
    font-size: 0.75rem;
    margin-left: 2px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.services-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translate3d(var(--menu-offset, 0px), 0, 0);
    background-color: rgba(222, 234, 252, 0.95); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 85vw;
    max-width: 480px;
    box-shadow: 0 10px 30px rgba(18, 34, 54, 0.15);
    border-radius: 8px;
    padding: 15px;
    margin: 12px 0 0 0;
    list-style: none;
    z-index: 1000;
    border: 1px solid rgba(18, 34, 54, 0.1);
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.services-dropdown-menu li a {
    color: #000000; 
    padding: 10px 12px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: bold; 
    text-transform: none;
    letter-spacing: 0;
    border-bottom: none;
    text-align: center;
    background-color: rgba(18, 34, 54, 0.05); 
    border-radius: 5px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.services-dropdown-menu li a.active {
    color: #1a3a5f; 
}

.services-dropdown.is-open .services-dropdown-menu {
    display: grid; 
}

.services-dropdown.is-open .dropdown-arrow {
    transform: rotate(180deg);
}

.services-dropdown.is-open .services-dropdown-toggle {
    color: #1a3a5f; 
    border-bottom-color: #1a3a5f;
}

.dark-mode .services-dropdown-menu {
    background-color: rgba(21, 32, 43, 0.9); 
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dark-mode .services-dropdown-menu li a {
    color: #ffffff; 
    background-color: rgba(255, 255, 255, 0.02);
}

.dark-mode .services-dropdown-menu li a.active {
    color: #ffcc00; 
}

main {
    width: 95%; 
    max-width: 1200px; 
    box-sizing: border-box; 
    margin: 30px auto;   
    padding: 35px 25px;
    flex: 1; 
    background-color: rgba(222, 234, 252, 0.95); 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); 
    transition: background-color 0.3s ease, color 0.3s ease;
    color: #1a252f; 
    position: relative;
}

.intro-text {
    max-width: 800px; 
    margin: 0 auto 35px auto; 
    font-size: 1.2rem;
    line-height: 1.6; 
    color: #1a252f;       
    text-align: center;
    transition: color 0.3s ease;
}

.floating-review-badge,
.floating-certificate-badge {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 350px;
    height: auto;
    margin: 0 auto 30px auto;
    transform: none;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border: 2px solid #1a3a5f; 
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.floating-review-badge {
    flex-direction: column;
    padding: 15px;
    background-color: rgba(217, 233, 255, 1);
}

.floating-certificate-badge {
    padding: 5px;
    background-color: rgba(217, 233, 255, 1);
}

.floating-certificate-badge img {
    width: 100%;
    height: auto;
    aspect-ratio: 974 / 409; 
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

.badge-stars {
    font-size: 0.8rem;
    margin-bottom: 4px;
    line-height: 1;
}

.badge-text {
    font-style: italic;
    font-size: 0.9rem;      
    line-height: 1.3;
    margin: 5px 0;          
    color: #1a252f;
    text-align: center;
    display: block;
    overflow: visible;
    -webkit-line-clamp: none;
}

.badge-author {
    font-weight: bold;
    font-size: 0.8rem;
    color: #5a6b6c; 
    line-height: 1;
}

main.legal-content {
    max-width: 1200px;
}

main.legal-content-contact {
    max-width: 1200px;
    text-align: center;
}

.legal-content-contact h1,
.legal-content h1 {
    font-size: 1.8rem;
    color: #1a252f; 
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #1a3a5f; 
    padding-bottom: 8px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.legal-content h2,
.legal-content-contact h2 {
    font-size: 1.45rem;
    color: #1a252f; 
    margin-top: 35px;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.legal-content h3,
.legal-content-contact h3 {
    font-size: 1.2rem;
    color: #1a252f; 
    margin-top: 25px;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.legal-content h4,
.legal-content-contact h4 {
    font-size: 1.05rem;
    color: #1a252f; 
    margin-top: 20px;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.legal-content p,
.legal-content-contact p {
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 15px 0;
}

.legal-content-contact p.whatsapp-hint {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #5a6b6c; 
    margin-top: 15px;
    margin-bottom: 5px;
    max-width: 600px;
}

.legal-link {
    color: #1a3a5f; 
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.download-list {
    list-style-type: none;
    padding-left: 0;
}

.download-list li {
    margin-bottom: 8px;
}

.download-link {
    color: #1a3a5f; 
    text-decoration: underline;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.divider {
    margin: 40px 0;
    border: 0;
    border-top: 2px dashed rgba(26, 58, 95, 0.4); 
    transition: border-color 0.3s ease;
}

.fly-in {
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); 
}

.fly-in.down-state {
    transform: translateY(50px);
    opacity: 0;
}

.fly-in.up-state {
    transform: translateY(-50px);
    opacity: 0;
}

.fly-in.visible {
    transform: translateY(0);
    opacity: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px; 
    scroll-margin-top: 60px; 
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); 
    text-decoration: none; 
    color: inherit; 
    background-color: rgba(217, 233, 255, 1);
}

.service-card figure {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1; 
    min-height: 0;
    height: 100%;
}

.service-card figure img {
    width: 60%;
    height: auto;
    object-fit: cover; 
    display: block;
    min-height: 0; 
}

.card-content {
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1; 
}

.card-content h2,
.card-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.15rem;
    color: #1a252f;
    transition: color 0.3s ease;
}

.card-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #5a6b6c; 
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.service-intro {
    text-align: center;
    margin-bottom: 35px;
}

.service-detail-title {
    font-size: 1.5rem;
    font-weight: bold;
    border-bottom: none !important;
    margin-bottom: 15px;
    display: inline-block;
}

.service-subtitle {
    font-size: 1.3rem;
    font-style: italic;
    color: #5a6b6c; 
    margin: 0;
}

.service-text-centered {
    max-width: 900px;
    margin: 0 auto 15px auto;
    text-align: center;
}

.service-text-centered:last-of-type {
    margin-bottom: 30px;
}

.service-section-title {
    color: #1a3a5f; 
    margin-top: 35px;
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.service-highlight {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a252f; 
    max-width: 800px;
    margin: 25px auto;
    line-height: 1.6;
    text-align: center;
}

.thermography-link {
    color: #1a252f; 
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    display: inline-block;
    transition: color 0.2s ease;
}

.thermography-link:focus {
    color: #ffcc00;
    text-decoration: underline;
}

.layout-container,
.layout-container.pv-layout {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
    gap: 25px;
    max-width: 950px;
    margin: 0 auto 45px auto;
    padding: 0 10px;
    box-sizing: border-box;
}

.feature-list {
    margin: 0 auto 30px auto;
    padding: 0;
    list-style: none;
}

.feature-list li {
    margin-bottom: 18px;
    line-height: 1.5;
}

.feature-list li:last-child {
    margin-bottom: 0;
}

.feature-title {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 4px;
    font-weight: bold;
}

.feature-desc {
    font-weight: normal;
    font-size: 1rem;
    opacity: 0.75;
    display: block;
    margin-left: 0;
}

.right-column,
.special-grid,
.right-column-pv {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0;
}

.right-column-pv {
    margin-top: 20px;
}

.reference-card {
    background-color: #1e2a38;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 0 auto 12px auto;
    position: relative;
    display: block;
    width: 100%;
    max-width: 340px;
    height: 200px;
}

.reference-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reference-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background-color: rgba(30, 42, 56, 0.8);
    text-align: center;
}

.reference-text span {
    font-weight: bold;
    font-size: 0.7rem;
    color: #ffffff;
}

.special-grid .reference-card:nth-child(3) {
    height: 400px;
}

.right-column .reference-card:last-child,
.special-grid .reference-card:last-child {
    margin-bottom: 0;
}

.pv-layout {
    margin-bottom: 35px;
}

.partner-heading {
    color: #5a6b6c; 
    font-size: 1.2rem;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 75px);
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px; 
}

.grid-card-link {
    background-color: rgba(30, 42, 56, 0.8);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 6px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.grid-card-link img {
    width: 100%;
    height: 45px;
    object-fit: contain;
    display: block;
    background-color: #ffffff;
    border-radius: 4px;
}

.grid-card-link figure {
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.grid-card-text {
    padding: 5px 3px; 
    text-align: center;
    margin-top: 4px;
}

.grid-card-text span {
    font-weight: bold;
    font-size: 0.7rem; 
    display: block;
    color: #ffffff;
    transition: color 0.3s ease;
}

.cta-box {
    margin-top: 45px;
    text-align: center;
}

.full-width-cta-card {
    display: block;
    width: 100%;
    max-width: 250px; 
    grid-column: span 1;
    margin: -15px auto 0 auto;
    background-color: #1a3a5f; 
    color: #ffffff; 
    text-align: center;
    padding: 12px 10px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.85rem;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.full-width-cta-card span {
    font-size: 0.8rem;
    color: #ffffff; 
    font-weight: bold;
    display: block;
    transition: none;
}

.cta-btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: #1a3a5f; 
    color: #ffffff !important; 
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.carousel-wrapper {
    position: relative;
    max-width: 950px;
    margin: 35px auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.carousel-track {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide figure {
    margin: 0;
    padding: 0;
    width: 100%;
    display: block;
}

.carousel-slide figure img {
    width: 100%;
    height: auto;
    aspect-ratio: 19 / 9;
    object-fit: cover;
    display: block;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    border: none;
    font-size: 1.3rem;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
    z-index: 10;
}

.carousel-control.prev { left: 15px; }
.carousel-control.next { right: 15px; }

.comparison-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 0.75; 
    overflow: hidden;
    border-radius: 8px;
    background-color: #1e2a38;
    margin: 0;
    padding: 0;
    --slider-pos: 50%;
}

.comparison-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.img-thermal {
    z-index: 2;
    clip-path: inset(0 calc(100% - var(--slider-pos)) 0 0); 
}

.slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0; 
    cursor: col-resize;
    z-index: 3;
}

.slider-line {
    position: absolute;
    top: 0;
    left: var(--slider-pos); 
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: #ffcc00;
    z-index: 4;
    pointer-events: none;
}

.slider-line::after {
    content: '↔';
    position: absolute;
    top: 50%;
    left: -9px; 
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: #ffcc00;
    color: #1a252f;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
}
        
.label-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 7px;
    background: rgba(0, 0, 0, 0.6); 
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
    margin: 0;
    z-index: 5; 
    pointer-events: none;
}

footer {
    background-color: rgba(222, 234, 252, 0.95);
    color: #122236; 
    text-align: center;
    padding: 30px 15px;
    margin-top: auto;
    border-top: 4px solid #1a3a5f; 
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-container {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-section {
    text-align: left;
}

.footer-section h3{
    margin: 0 0 10px 0;
    color: #1a3a5f; 
    font-size: 0.9rem;
    text-transform: uppercase;
}

.footer-note {
    margin-top: 10px;
    font-style: italic;
    font-size: 0.75rem !important;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.footer-links a {
    color: #000000; 
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-links a.active {
    color: #1a3a5f; 
    font-weight: bold;
    pointer-events: none;
    text-decoration: underline;
}

.footer-opening-hours {
    font-size: 0.85rem;
    color: #000000; 
}

.footer-opening-hours p {
    margin: 5px 0;
}

.contact-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 360px;
    width: 100%;
    margin-top: 20px auto 0 auto;
    align-self: center;
    justify-self: center;
}

.contact-btn {
    display: inline-block;
    padding: 12px 20px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-email {
    background-color: #1a3a5f; 
    color: #ffffff !important; 
    text-align: center;
}

.btn-phone {
    background-color: #34495e;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-whatsapp {
    background-color: #25D366;
    color: #ffffff !important;
    margin-bottom: 25px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.whatsapp-icon {
    width: 18px;
    height: 18px;
    fill: #ffffff;
    transition: fill 0.3s ease;
}

.no-bot {
    display: none !important;
}

.e404-main {
    background-color: rgba(222, 234, 252, 0.95) !important; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.e404-container {
    max-width: 850px;
    margin: 20px auto;
    padding: 0 15px;
    text-align: center;
}

.e404-banner {
    background-color: rgba(26, 58, 95, 0.02);
    padding: 35px 15px;
    border-radius: 8px;
    border: 1px solid rgba(26, 58, 95, 0.85);
    display: block;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    color: #1a252f;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.e404-title {
    font-size: 3.5rem;
    font-weight: 800;
    text-align: center;
    display: block;
    margin: 0 auto 10px auto;
    line-height: 1;
    letter-spacing: -2px;
    color: #1a3a5f; 
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: initial;
    border-bottom: none !important;
    padding-bottom: 0;
}

.e404-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a3a5f; 
    text-align: center;
    display: block;
    margin: 0 auto 15px auto;
}

.e404-text {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    max-width: 100%;
    width: 100%;
    margin: 0 auto 25px auto !important;
    color: #5a6b6c !important; 
    text-align: center !important;
    display: block;
}

.e404-cta-box {
    margin: 0 auto;
    text-align: center;
    display: block;
}

.e404-cta-box .cta-btn {
    display: inline-block;
    margin: 0 auto;
}

.e404-footer-container {
    display: flex;
    justify-content: center;
    text-align: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 1px;
}

.e404-footer-section {
    text-align: center;
    min-width: 250px;
}

.e404-opening-hours {
    margin-top: 10px;
}

.e404-footer-note {
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 10px;
    line-height: 1.4;
}

/* ==========================================================================
   TOUCH-SAFE HOVER EFFEKTE (Nur für Geräte mit echter Maus/Cursor)
   ========================================================================== */

@media (hover: hover) and (pointer: fine) {
    .main-nav a:hover img {
        transform: scale(1.05);
    }

    .main-nav a:hover {
        color: #122236; 
    }

    .nav-dark-mode-link:hover {
        color: #122236;
    }
    
    .services-dropdown-toggle:hover {
        color: #122236;
    }
    
    .services-dropdown-menu li a:hover {
        background-color: #1a3a5f; 
        color: #ffffff; 
        transform: translateY(-1px);
    }

    .legal-link:hover {
        color: #1a3a5f; 
        text-decoration: underline;
    }

    .download-link:hover {
        color: #1a3a5f; 
        text-decoration: none;
    }

    .service-card:hover {
        transform: translateY(-5px); 
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); 
    }

    .thermography-link:hover {
        color: #1a3a5f; 
        text-decoration: underline;
    }

    .grid-card-link:hover {
        transform: translateY(-3px);
        background-color: #243342;
        box-shadow: 0 6px 18px rgba(255, 204, 0, 0.25); 
    }

    .grid-card-link:hover .grid-card-text span {
        color: #ffcc00; 
    }

    .full-width-cta-card:hover {
        background-color: #122a46; 
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    }

    .cta-btn:hover {
        background-color: #122a46; 
        transform: translateY(-2px);
    }

    .carousel-control:hover {
        background-color: #1a3a5f; 
        color: #ffffff;
    }

    .footer-links a:hover {
        color: #1a3a5f; 
    }

    .contact-btn:hover {
        transform: translateY(-2px);
        text-decoration: none;
    }

    .btn-email:hover {
        background-color: #122a46; 
    }

    .btn-phone:hover {
        background-color: #2c3e50;
    }

    .btn-whatsapp:hover {
        background-color: #128C7E;
    }

    .e404-banner:hover {
        transform: translateY(-4px); 
        box-shadow: 0 12px 30px rgba(18, 34, 54, 0.1);
        background-color: rgba(26, 58, 95, 0.04);
    }

    .dark-mode .main-nav a:hover,
    .dark-mode .nav-dark-mode-link:hover,
    .dark-mode .services-dropdown-toggle:hover,
    .dark-mode .footer-links a:hover {
        color: #ffffff;
    }

    .dark-mode .services-dropdown-menu li a:hover {
        background-color: #ffcc00; 
        color: #1a252f;
    }

    .dark-mode .legal-link:hover,
    .dark-mode .download-link:hover {
        color: #ecf0f1;
    }

    .dark-mode .cta-btn:hover,
    .dark-mode .full-width-cta-card:hover { 
        background-color: #243342; 
    }

    .dark-mode .btn-email:hover {
        background-color: #243342;
    }

    .dark-mode .btn-phone:hover {
        background-color: #34495e;
    }

    .dark-mode .btn-whatsapp:hover {
        background-color: #0f6f63;
    }

    .dark-mode .thermography-link:hover {
        color: #ffcc00;
    }

    .dark-mode .carousel-control:hover {
        background-color: #ffcc00;
        color: #1a252f;
    }

    .dark-mode .e404-banner:hover {
        transform: translateY(-9px); 
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
        background: rgba(53, 85, 122, 0.95);
    }
}


/* =========================================
   2. MEDIA QUERIES (Ab Mobile XL / Small Tablet)
   ========================================= */

@media (min-width: 361px) {
    .partner-grid {
        grid-template-columns: repeat(3, 85px);
    }
    
    .full-width-cta-card {
        max-width: 280px;
    }
}

@media (min-width: 401px) {
    .full-width-cta-card {
        grid-column: auto;
    }
}


/* =========================================
   3. MEDIA QUERIES (Ab Phablet / Tablet)
   ========================================= */

@media (min-width: 560px) {
    .services-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
}


/* =========================================
   4. MEDIA QUERIES (Ab Standard Desktop/Tablet)
   ========================================= */

@media (min-width: 769px) {
    .header-main-content {
        flex-direction: row;
        justify-content: center;
        gap: 130px; 
    }
    
    .header-info {
        text-align: left; 
    }

    .main-nav {
        gap: 30px; 
        margin-top: 0;
        margin-bottom: 25px; 
    }

    .nav-logo-link {
        display: block;
        position: absolute;
        left: 20px;
        top: 7px;
        z-index: 100;
    }

    .nav-logo {
        height: 35px;
        width: auto;
    }

    .dark-mode-slider {
        position: absolute;
        right: 20px;
        top: 7px;
        z-index: 999; 
        display: flex;
        align-items: center;
        cursor: pointer;
        padding: 0;
        width: 60px;
        height: 32px;
        border-radius: 30px;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: #ffffff;
        transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .dark-mode-slider .slider-knob {
        width: 24px;
        height: 24px;
        background-color: #ffffff;
        border-radius: 50%;
        position: absolute;
        left: 3px;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        z-index: 2;
    }

    .dark-mode-slider::before {
        content: "☀️";
        position: absolute;
        right: 7px;
        font-size: 14px;
        line-height: 1;
        transition: opacity 0.2s ease;
    }

    .dark-mode-slider::after {
        content: "🌙";
        position: absolute;
        left: 7px;
        font-size: 14px;
        line-height: 1;
        opacity: 0;
        transition: opacity 0.2s ease;
    }
    
    .dark-mode .dark-mode-slider {
        background: rgba(15, 23, 42, 0.6);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .dark-mode .dark-mode-slider .slider-knob {
        transform: translateX(28px);
        background-color: #ffcc00;
    }

    .dark-mode .dark-mode-slider::before {
        opacity: 0;
    }

    .dark-mode .dark-mode-slider::after {
        opacity: 1;
    }

    .dark-mode-slider:focus-visible {
        outline: 2px solid #ffcc00;
        outline-offset: 2px;
    }

    @media (hover: hover) and (pointer: fine) {
        .dark-mode-slider:hover {
            transform: scale(1.05);
            background: rgba(255, 255, 255, 0.25);
            border-color: rgba(255, 255, 255, 0.5);
        }
    }
    
    .nav-dark-mode-link {
        display: none;
    }

    .floating-review-badge {
        position: absolute;
        top: -70px; 
        left: -15px;
        width: 170px;
        padding: 18px 12px;
        margin: 0;
        z-index: 10;
        transform: rotate(-20deg) scale(0.75);
        transform-origin: center center;
    }
    
    @media (hover: hover) and (pointer: fine) {
        .floating-review-badge:hover {
            transform: rotate(-15deg) scale(0.80);
        }
    }

    .badge-text {
        font-size: 0.7rem; 
    }

    .badge-author {
        font-size: 0.65rem;
    }

    .floating-certificate-badge {
        position: absolute;
        top: -30px; 
        left: -15px;
        width: 300px;
        margin: 0;
        z-index: 10;
        transform: rotate(-20deg) scale(0.72);
        transform-origin: center center;
    }

    @media (hover: hover) and (pointer: fine) {
        .floating-certificate-badge:hover {
            transform: rotate(-15deg) scale(0.77);
        }
    }

    main .intro-text.has-badge {
        max-width: 750px;
        padding-left: 120px;  
        padding-right: 120px; 
        box-sizing: border-box;
        margin: 0 auto 35px auto;
        text-align: center;
    }

    main .service-intro.has-badge {
        padding-left: 190px;       
        padding-right: 190px;      
        box-sizing: border-box;
    }

    main .service-intro.has-badge h1.service-detail-title,
    main .service-intro.has-badge .service-subtitle {
        text-align: center;
        display: inline-block;
    }

    .layout-container,
    .layout-container.pv-layout {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        text-align: left;
        align-items: center;
    }

    .feature-list {
        margin: 0;
    }
        
    .feature-desc {
        margin-left: 10px;
    }

    .right-column {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .special-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        grid-template-areas: 
            "bild1 bild3"
            "bild2 bild3";
        gap: 12px;
    }

    .right-column-pv {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 0;
    }

    .partner-heading {
        margin-bottom: 15px;
    }

    .reference-card {
        height: 160px;
        max-width: none;
        margin: 0;
    }

    .special-grid .reference-card:nth-child(1) { grid-area: bild1; }
    .special-grid .reference-card:nth-child(2) { grid-area: bild2; }
    .special-grid .reference-card:nth-child(3) { 
        grid-area: bild3; 
        height: calc(320px + 12px);
    }

    .e404-container {
        margin: 40px auto;
        padding: 0 20px;
    }
    
    .e404-banner {
        padding: 60px 40px;
        border-radius: 12px;
    }

    .e404-title {
        font-size: 5.5rem;
        margin: 0 0 10px 0;
    }

    .e404-subtitle {
        font-size: 1.8rem;
        margin: 0 0 20px 0;
    }

    .e404-text {
        font-size: 1.15rem !important;
        max-width: 600px !important;
        margin: 0 auto 35px auto !important;
        color: #5a6b6c !important;
        text-align: center !important;
    }
}


/* =========================================
   5. MEDIA QUERIES (Ab Medium Desktop)
   ========================================= */

@media (min-width: 1024px) {
    .services-grid { 
        grid-template-columns: repeat(4, 1fr); 
    }
}

@media (min-width: 1051px) {
    .floating-review-badge {
        transform: rotate(-20deg) scale(1);
    }

    @media (hover: hover) and (pointer: fine) {
        .floating-review-badge:hover {
            transform: rotate(-15deg) scale(1.05);
        }
    }

    main .intro-text.has-badge {
        max-width: 800px;
        padding: 0;
        margin: 0 auto 35px auto;
    }
}

@media (min-width: 1301px) {
    .floating-certificate-badge {
        transform: rotate(-20deg) scale(1);
    }

    @media (hover: hover) and (pointer: fine) {
        .floating-certificate-badge:hover {
            transform: rotate(-15deg) scale(1.05);
        }
    }

    main .service-intro.has-badge {
        padding-left: 0;       
        padding-right: 0; 
    }
}


/* =========================================
   6. DARK MODE STYLES (EXAKT DEIN ORIGINAL + ABSICHERUNGEN)
   ========================================= */
.dark-mode { background-color: #0f141c; }
.dark-mode header { background-color: rgba(21, 32, 43, 0.95); border-bottom-color: #ffcc00; color: #ffffff; }
.dark-mode footer { background-color: rgba(21, 32, 43, 0.95); border-top-color: #ffcc00; color: #ffffff; }

.dark-mode header .header-info p {
    color: #bdc3c7;
}

.dark-mode .main-nav {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15); 
}

.dark-mode .main-nav a {
    color: #bdc3c7;
}

.dark-mode .main-nav a.active {
    color: #ffcc00; 
    border-bottom-color: #ffcc00; 
}

.dark-mode .services-dropdown:has(.services-dropdown-menu li a.active) .services-dropdown-toggle {
    color: #ffcc00;  
    border-bottom-color: #ffcc00;
}

.dark-mode .nav-dark-mode-link {
    color: #bdc3c7;
}

.dark-mode .services-dropdown-toggle {
    color: #bdc3c7;
}

.dark-mode .services-dropdown.is-open .services-dropdown-toggle {
    color: #ffcc00;
    border-bottom-color: #ffcc00;
}

.dark-mode main {
    background-color: rgba(21, 32, 43, 0.95); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #ecf0f1;
}

.dark-mode .intro-text,
.dark-mode .badge-text,
.dark-mode .card-content h2,
.dark-mode .card-content h3,
.dark-mode .card-content p { 
    color: #ecf0f1; 
}

.dark-mode .service-subtitle {
    color: #7f8c8d; 
}

.dark-mode .service-section-title {
    color: #ffcc00; 
}

.dark-mode .legal-content h1,
.dark-mode .legal-content h2, 
.dark-mode .card-content h2,
.dark-mode .card-content h3,
.dark-mode .legal-content-contact h1,
.dark-mode .legal-content-contact h2 { 
    color: #ffcc00; 
    border-bottom-color: #ffcc00; 
}

.dark-mode .legal-content h3,
.dark-mode .legal-content h4,
.legal-content-contact h3,
.legal-content-contact h4 {
    color: #ecf0f1; 
}

.dark-mode .legal-link {
    color: #ffcc00; 
}

.dark-mode .download-link {
    color: #ffcc00; 
}

.dark-mode .badge-author,
.dark-mode .card-content p { 
    color: #b2bec3; 
}

.dark-mode .floating-review-badge,
.dark-mode .floating-certificate-badge {
    background: #1e2933;
    border-color: #ffcc00;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.dark-mode .service-card {
    background-color: #1e2933; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.dark-mode .service-card figure img { 
    filter: invert(1); 
}

.dark-mode .cta-btn,
.dark-mode .full-width-cta-card {
    background-color: #1a252f;
    color: #ffcc00 !important; 
    border: 1px solid #ffcc00;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.dark-mode .full-width-cta-card span { 
    color: #ffcc00; 
}

.dark-mode .service-highlight {
    color: #f5f6fa;
}

.dark-mode .partner-heading {
    color: #7f8c8d; 
}

.dark-mode .whatsapp-hint,
.dark-mode .legal-content-contact .whatsapp-hint {
    color: #b2bec3;
}

.dark-mode .btn-email {
    background-color: #1a252f;
    color: #ffcc00 !important; 
    border: 1px solid #ffcc00;
}

.dark-mode .btn-phone {
    background-color: #2c3e50;
    color: #ecf0f1 !important;
}

.dark-mode .btn-whatsapp {
    background-color: #128C7E;
    color: #ffffff !important;
}

.dark-mode .feature-list strong.feature-title {
    color: #ffffff;
}

.dark-mode .thermography-link {
    color: #f5f6fa;
}

.dark-mode .thermography-link:focus {
    color: #ffcc00;
}

.dark-mode .divider {
    border-top-color: rgba(255, 255, 255, 0.15); 
}

.dark-mode .e404-main {
    background-color: rgba(53, 85, 122, 0.95) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.dark-mode .e404-banner {
    background: rgba(53, 85, 122, 0.95);
    background-size: cover;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

.dark-mode .e404-title {
    background: linear-gradient(45deg, #ffb703, #fb8500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.dark-mode .e404-subtitle {
    color: #ffb703;
}

.dark-mode .e404-text {
    color: #cbd5e1 !important;
}

@media (min-width: 769px) {
    .dark-mode .e404-banner {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }
}

.dark-mode footer h3 {
    color: #ffcc00;
}

.dark-mode .footer-links a {
    color: #bdc3c7;
}

.dark-mode .footer-links a.active {
    color: #ffcc00;
}

.dark-mode .footer-opening-hours {
    color: #bdc3c7;
}

/* ==========================================================================
   7. INTERAKTIVES TAB-SYSTEM & KARRIERE-LAYOUT
   ========================================================================== */

.career-container {
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
}

.career-container input[type="radio"] {
    display: none;
}

.tab-navbar {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    width: 100%;
}

.tab-button {
    flex: 1;
    max-width: 250px;
    padding: 14px 20px;
    text-align: center;
    background-color: rgba(26, 58, 95, 0.08);
    color: #1a3a5f;
    font-weight: bold;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    border: 2px solid #1a3a5f;
}

.button-left {
    border-radius: 6px 0 0 6px;
    border-right: none;
}

.button-right {
    border-radius: 0 6px 6px 0;
}

.panel-content {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#tab-geselle:checked ~ .tab-navbar .button-left {
    background-color: #1a3a5f;
    color: #ffffff;
}

#tab-azubi:checked ~ .tab-navbar .button-right {
    background-color: #1a3a5f;
    color: #ffffff;
}

#tab-geselle:checked ~ .tab-panels #panel-geselle,
#tab-azubi:checked ~ .tab-panels #panel-azubi {
    opacity: 1;
    visibility: visible;
    height: auto;
    overflow: visible;
    transform: translateY(0);
}

.job-header-box, .job-header-box-alt {
    background-color: rgba(217, 233, 255, 0.6);
    border-left: 5px solid #1a3a5f;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.job-header-box h2, .job-header-box-alt h2 {
    margin: 0 0 12px 0;
    font-size: 1.4rem;
    color: #1a3a5f;
    text-align: left;
}

.job-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge {
    background-color: #1a3a5f;
    color: #ffffff;
    padding: 5px 12px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 20px;
}

.job-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.job-card-block {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 3px solid #1a3a5f;
}

.job-card-block h3 {
    margin: 0 0 15px 0;
    color: #1a3a5f;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(26, 58, 95, 0.1);
    padding-bottom: 8px;
}

.job-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.job-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 0.95rem;
    text-align: left;
}

.job-list li::before {
    content: "⚡";
    position: absolute;
    left: 0;
    top: 1px;
    color: #1a3a5f;
    font-size: 0.9rem;
}

.job-benefits-block {
    background: rgba(217, 233, 255, 0.4);
    padding: 25px;
    border-radius: 8px;
    border: 1px dashed #1a3a5f;
}

.job-benefits-block h3 {
    margin: 0 0 20px 0;
    color: #1a3a5f;
    font-size: 1.2rem;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.benefit-item {
    background: #ffffff;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: left;
    border-left: 3px solid #25D366;
}

@media (min-width: 769px) {
    .job-details-grid {
        grid-template-columns: 1fr 1fr;
    }
    .benefits-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.dark-mode .tab-button {
    background-color: rgba(255, 255, 255, 0.05);
    color: #bdc3c7;
    border-color: #ffcc00;
}

.dark-mode #tab-geselle:checked ~ .tab-navbar .button-left,
.dark-mode #tab-azubi:checked ~ .tab-navbar .button-right {
    background-color: #ffcc00;
    color: #10141c;
}

.dark-mode .job-header-box, 
.dark-mode .job-header-box-alt {
    background-color: #1e2a38;
    border-left-color: #ffcc00;
}

.dark-mode .job-header-box h2, 
.dark-mode .job-header-box-alt h2,
.dark-mode .job-card-block h3,
.dark-mode .job-benefits-block h3 {
    color: #ffcc00;
}

.dark-mode .badge {
    background-color: #ffcc00;
    color: #10141c;
}

.dark-mode .job-card-block {
    background: #1e2933;
    border-top-color: #ffcc00;
}

.dark-mode .job-card-block h3 {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .job-list li::before {
    color: #ffcc00;
}

.dark-mode .job-benefits-block {
    background: rgba(30, 42, 56, 0.5);
    border-color: #ffcc00;
}

.dark-mode .benefit-item {
    background: #1e2933;
    color: #ecf0f1;
}