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

body {
    margin: 0;
    background-image: url('Bilder/hintergrund.JPG'); 
    background-size: cover;          
    background-position: center;    
    background-attachment: fixed;  
    background-repeat: no-repeat;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
    transition: background-color 0.3s ease, color 0.3s ease;
}


/* ==========================================
   2. HEADER & NAVIGATION
   ========================================== */
header {
    display: flex;
    flex-direction: column; 
    align-items: center;    
    padding: 15px 15px 30px 15px; 
    background-color: rgba(53, 85, 122, 0.95);
    color: #ffffff;
    border-bottom: 4px solid #ffcc00; 
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header-main-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 130px; 
    max-width: 1100px;
    width: 100%;
}

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

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

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

.header-image {
    background-image: url('Bilder/unser-team.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 200px;
    aspect-ratio: 16 / 9;
    max-width: 100%;
    border-radius: 4px;
    display: block;
}

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

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

.main-nav a:hover img {
    transform: scale(1.05);
}

.main-nav a {
    color: #bdc3c7; 
    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:hover {
    color: #ffffff; 
}

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

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

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

.dark-mode-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 0.95rem;
    padding: 0;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 20px;
    top: 7px;
    z-index: 999; 
    min-width: 37px;
    min-height: 37px;
}

.dark-mode-btn:hover {
    background: #ffcc00;
    color: #1a252f;
    transform: scale(1.05);
}

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


/* ==========================================
   3. HAUPTBEREICH (MAIN) & ALLGEMEINER CONTENT
   ========================================== */
main {
    width: 95%; 
    max-width: 1200px; 
    box-sizing: border-box; 
    margin: 30px auto;   
    padding: 35px 25px;
    flex: 1; 
    background-color: rgba(248, 249, 250, 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: #2c3e50;
    position: relative;
}

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


/* ==========================================
   4. RECHTLICHE TEXTE & DOWNLOADS (LEGAL)
   ========================================== */
.legal-content h2 {
    font-size: 1.6rem;
    color: #1a252f;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 2px solid #ffcc00;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

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

.legal-link {
    color: #ffcc00;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

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

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

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

.download-link {
    color: #ffcc00;
    text-decoration: underline;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

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


/* ==========================================
   5. KOMPONENTEN & SEITENÜBERGREIFENDE LAYOUTS
   ========================================== */

/* --- Scroll-Animation (Fly-In) --- */
.fly-in {
    opacity: 0;
    will-change: transform, opacity; 
}

.fly-in.down-state,
.fly-in.up-state,
.fly-in.visible {
    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;
}

/* --- Floating Review Badge --- */
.floating-review-badge {
    position: absolute;
    top: -70px; 
    left: -15px;
    z-index: 10;
    background: #ffffff;
    padding: 18px 12px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border: 2px solid #ffcc00;
    width: 170px;           
    height: auto;          
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    transform: rotate(-20deg);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.floating-review-badge:hover {
    transform: rotate(-15deg) scale(1.05);
}

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

.badge-text {
    font-style: italic;
    font-size: 0.65rem;     
    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.5rem;
    color: #7f8c8d;
    line-height: 1;
}

/* --- Startseiten-Leistungen (Services Grid) --- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px; 
    scroll-margin-top: 60px; 
}

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

.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; 
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease; 
}

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

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

.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 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: #7f8c8d;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

/* --- Standard CTA-Boxen & Buttons --- */
.cta-box {
    margin-top: 45px;
}

.cta-btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: #ffcc00;
    color: #1a252f;
    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);
}

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

/* --- Universal-Layout für Leistungs-Detailseiten --- */
.service-intro {
    text-align: center;
    margin-bottom: 35px;
}

.service-detail-title {
    border-bottom: none !important;
    margin-bottom: 15px;
    display: inline-block;
}

.service-subtitle {
    font-size: 1.3rem;
    font-style: italic;
    color: #7f8c8d;
    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: #ffcc00;
    margin-top: 35px;
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Text-Highlight Absätze */
.service-highlight {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2c3e50;
    max-width: 800px;
    margin: 25px auto;
    line-height: 1.6;
    text-align: center;
}

/* Thermographie-Link Optimierung */
.thermography-link {
    color: #2c3e50;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    display: inline-block;
    transition: color 0.2s ease-in-out;
}

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

/* Zweispaltige Anordnung: Text links, Medien rechts */
.layout-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    max-width: 950px;
    margin: 0 auto 45px auto;
    align-items: center;
    padding: 0 10px;
}

.feature-list {
    margin: 0;
    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.15rem;
    margin-bottom: 4px;
    font-weight: bold;
}

.feature-desc {
    font-weight: normal;
    font-size: 0.95rem;
    opacity: 0.75;
    display: block;
    margin-left: 10px;
}

/* Feature-Liste für ganzseitige Textdokumente (Ausbildung) */
.feature-list-fullwidth {
    max-width: 850px;
    margin: 20px auto 40px auto;
}

.feature-list-fullwidth li {
    padding: 20px;
    background-color: #f8f9fa;
    border-left: 4px solid #ffcc00;
    border-radius: 0 8px 8px 0;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: left;
}

/* Bildraster-Spalte für die Detailseiten */
.right-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 0;
}

.reference-card {
    background-color: #1e2a38;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 0 0 20px 0;
    position: relative;
    display: block;
    height: 160px;
}

.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 Sat-Anlagen und Wallbox */
.special-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas: 
        "bild1 bild3"
        "bild2 bild3";
    gap: 12px;
}

.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: 100%; }


.special-grid .reference-card {
    height: 160px;
    margin: 0;
}

.special-grid .reference-card:nth-child(3) {
    height: calc(320px + 12px);
}

@media (max-width: 560px) {
    .right-column,
    .special-grid {
        display: block !important;
    }

    .reference-card {
        height: 200px !important;
        margin-bottom: 12px !important; 
        width: 100% !important;
    }

    .special-grid .reference-card:nth-child(3) {
        height: 412px !important;
    }
    
    .right-column .reference-card:last-child,
    .special-grid .reference-card:last-child {
        margin-bottom: 0 !important;
    }
}
/* --- Spezifische Sektion: Photovoltaik Partner-Grid & Rechner --- */
.pv-layout {
    margin-bottom: 35px;
}

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

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

.partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 85px);
    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);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

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

.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.6rem; 
    display: block;
    color: #ffffff;
    transition: color 0.3s ease;
}

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

.full-width-cta-card {
    display: block;
    width: 100%;
    max-width: 280px; 
    background-color: #ffcc00;
    color: #1a252f;
    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);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

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

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

/* Staggered Delays für Grid-Cards */
.grid-card-link.visible:nth-child(1) { transition-delay: 0ms; }
.grid-card-link.visible:nth-child(2) { transition-delay: 40ms; }
.grid-card-link.visible:nth-child(3) { transition-delay: 80ms; }
.grid-card-link.visible:nth-child(4) { transition-delay: 60ms; }
.grid-card-link.visible:nth-child(5) { transition-delay: 100ms; }
.grid-card-link.visible:nth-child(6) { transition-delay: 140ms; }
.grid-card-link.visible:nth-child(7) { transition-delay: 120ms; }
.grid-card-link.visible:nth-child(8) { transition-delay: 160ms; }
.grid-card-link.visible:nth-child(9) { transition-delay: 200ms; }
.grid-card-link.visible:nth-child(10) { transition-delay: 240ms; }

/* --- Bilderkarussell (Carousel) --- */
.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: 450px;
    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:hover {
    background: #ffcc00;
    color: #1a252f;
}

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

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dot.active {
    background: #ffcc00;
    width: 24px;
    border-radius: 6px;
}

/* --- Vorher-Nachher Thermo-Slider --- */
.comparison-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 0.75; 
    overflow: hidden;
    border-radius: 8px;
    background-color: #1e2a38;
    margin: 0;
    padding: 0;
}

.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 50% 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: 50%;
    width: 2px;
    height: 100%;
    background-color: #ffcc00;
    z-index: 4;
    pointer-events: none;
}

.slider-line::after {
    content: '↔';
    position: absolute;
    top: 50%;
    left: -8px;
    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: 10px;
    background: rgba(0, 0, 0, 0.6); 
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
    margin: 0;
    z-index: 5; 
    pointer-events: none;
}

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

.floating-certificate-badge {
    position: absolute;
    top: -30px; 
    left: -15px;
    z-index: 10;
    background: #ffffff;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border: 2px solid #ffcc00;
    width: 300px;
    height: auto;          
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    transform: rotate(-20deg);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.floating-certificate-badge:hover {
    transform: rotate(-15deg) scale(1.05);
}

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

/* ==========================================
   6. FOOTER
   ========================================== */
footer {
    background-color: rgba(53, 85, 122, 0.95);
    color: #ffffff;
    text-align: center;
    padding: 30px 15px;
    margin-top: auto;
    border-top: 4px solid #ffcc00;
    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 h4 {
    margin: 0 0 10px 0;
    color: #ffcc00; 
    font-size: 0.9rem;
    text-transform: uppercase;
}

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

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

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

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

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

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

.contact-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 360px;
    margin-top: 20px;
}

.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);
}

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

.btn-email {
    background-color: #ffcc00;
    color: #1a252f !important;
}
.btn-email:hover {
    background-color: #e6b800;
}

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

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

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


/* ==========================================
   7. RESPONSIVE MEDIA QUERIES (MAX-WIDTH: 768px)
   ========================================== */
@media (max-width: 768px) {
    .nav-logo-link,
    .dark-mode-btn {
        display: none !important;
    }

    .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: #bdc3c7;
        line-height: 1;
        border-bottom: 2px solid transparent;
        transition: color 0.2s ease;
    }
    
    .nav-dark-mode-link:hover {
        color: #ffffff;
    }

    .header-main-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 20px;
    }
    
    .header-info {
        text-align: center;
    }
    
    .main-nav {
        gap: 15px;
        margin-top: 15px; 
    }

    .floating-review-badge {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        margin: 0 auto 30px auto;
        transform: none;
        box-sizing: border-box;
        padding: 15px;
    }
    
    .floating-review-badge:hover {
        transform: none;
    }
    
    .badge-text {
        font-size: 0.9rem;
        -webkit-line-clamp: none;
    }
    
    .badge-author {
        font-size: 0.8rem;
    }

    .carousel-slide figure img { 
        height: 280px;
    }
	
	.floating-certificate-badge {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 280px;
        margin: 0 auto 30px auto;
        transform: none;
    }
    
    .floating-certificate-badge:hover {
        transform: none;
    }
}

@media (max-width: 400px) {
    .full-width-cta-card { 
        grid-column: span 1; 
    }
}

@media (max-width: 360px) {
    .partner-grid {
        grid-template-columns: repeat(3, 75px);
    }
    .full-width-cta-card {
        max-width: 250px;
    }
}


/* ==========================================
   8. DARK-MODE RESPONSIVE MODIFIKATIONEN
   ========================================== */
body.dark-mode { background-color: #0f141c; }
body.dark-mode header { background-color: rgba(21, 32, 43, 0.95); }
body.dark-mode footer { background-color: rgba(15, 20, 28, 0.95); }

body.dark-mode main {
    background-color: rgba(26, 36, 47, 0.95); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #ecf0f1;
}

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

body.dark-mode .legal-content h2,
body.dark-mode .card-content h3 { 
    color: #ffcc00; 
}

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

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

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

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

body.dark-mode img[src*="elektroinstallation.png"] { 
    filter: invert(1); 
}

body.dark-mode img[src*="photovoltaik.png"] { 
    filter: invert(1); 
}

body.dark-mode img[src*="blitzschutz.png"] { 
    filter: invert(1); 
}

body.dark-mode img[src*="wallbox.png"] { 
    filter: invert(1); 
}

body.dark-mode img[src*="antennenanlagen.png"] { 
    filter: invert(1); 
}

body.dark-mode img[src*="thermographie.png"] { 
    filter: invert(1); 
}

body.dark-mode img[src*="pruefungen.png"] { 
    filter: invert(1); 
}

body.dark-mode img[src*="ausbildung.png"] { 
    filter: invert(1); 
}

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

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

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

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

body.dark-mode .whatsapp-hint {
    color: #b2bec3;
}

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

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

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

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

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

body.dark-mode .feature-list-fullwidth li {
    background-color: #1e2a38;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

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

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

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