/**
 * Sektionsspezifische Stile
 * Header, Services, Map, etc.
 */

/* Modernes Hauptheader-Design - Hintergrundbild entfernt */
.main-header {
    background: var(--gradient-overlay); /* Hintergrundbild entfernt, nur Gradient behalten */
    background-size: cover;
    background-position: center;
    color: var(--neutral-light);
    padding: 250px 0 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Moderner dekorativer Kreis im Hintergrund */
.main-header::before {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color) 0%, transparent 70%);
    opacity: 0.3;
    z-index: 1;
}

/* Badge mit modernerem Look */
.header-badge {
    display: none; /* "Ihr Spezialist im Jerichower Land" Badge ausblenden */
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Hauptüberschrift mit Formatierung für korrekten Umbruch */
.main-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--neutral-light);
    letter-spacing: 1px;
    line-height: 1.2;
}

/* Fabian Siegel hervorheben mit modernerem Farbverlauf */
.main-header h1 .name-part {
    display: block; /* Erzwingt Zeilenumbruch */
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    text-shadow: none;
}

.tagline {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 400;
    min-height: 1.6em;
    contain: layout;
    isolation: isolate;
    content-visibility: visible;
    will-change: auto;
}

/* Saisonale Markierung im Header */
.seasonal-badge {
    position: absolute;
    top: -52px; /* Von 20px auf 80px erhöht, um über dem Hauptinhalt zu schweben */
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-bright));
    color: white;
    padding: 12px 24px; /* Mehr Padding für bessere Lesbarkeit */
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Verstärkter Schatten für mehr Tiefe */
    z-index: 10;
    animation: pulse-and-color-change 4s infinite;
    animation-delay: 3s; /* Verzögerter Start nach LCP */
    max-width: 350px;
    text-align: center;
    position: relative;
    overflow: hidden; /* Wichtig für den Glanz-Effekt */
}

/* Glänzender Schweif-Effekt für den saisonalen Banner */
.seasonal-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    z-index: 11;
    animation: shine-seasonal 4s infinite;
    animation-delay: 3s; /* Verzögerter Start nach LCP */
}

/* Separate Animation für den Glanz-Effekt */
@keyframes shine-seasonal {
    0%, 100% {
        left: -100%;
    }
    40%, 60% {
        left: 100%;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulse-and-color-change {
    0% {
        transform: scale(1);
        background: linear-gradient(90deg, var(--accent-color), var(--accent-bright));
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    }
    
    50% {
        transform: scale(1.05);
        background: linear-gradient(90deg, #3da641, #6ed173); /* Leicht hellere Variante */
        box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
    }
    
    100% {
        transform: scale(1);
        background: linear-gradient(90deg, var(--accent-color), var(--accent-bright));
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    }
}

/* Responsive Anpassungen für die Neu positionierte Seasonal-Badge */
@media only screen and (max-width: 768px) {
    .seasonal-badge {
        top: -30px; /* Von 100px auf -30px geändert - jetzt über dem Header */
        left: 0;
        right: 0;
        margin: 0 auto;
        max-width: 300px;
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

@media only screen and (max-width: 480px) {
    .seasonal-badge {
        top: -25px; /* Von 90px auf -25px geändert */
        max-width: 260px; /* Etwas schmaler für kleine Bildschirme */
        padding: 8px 16px;
        font-size: 0.85rem; /* Etwas kleinere Schrift für bessere Lesbarkeit */
    }
}

/* Services Section */
.services {
    background-color: var(--section-cream);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Vollbild-Bildsektion */
.full-width-image {
    width: 100%;
    box-sizing: border-box;
    background-color: var(--section-blue);
    padding: 50px 0;
    position: relative;
    z-index: 0; /* Z-Index auf 0 gesetzt, damit es die Navigation nicht überlagert */
}

.full-width-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--section-blue);
    z-index: -1;
}

.full-width-image .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
    position: relative;
}

.full-width-image .image-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 0; /* Z-Index auf 0 gesetzt für alle Elemente in diesem Container */
}

.full-width-image .feature-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 5px solid white;
    transition: transform 0.3s ease;
    margin: 0;
}

.full-width-image .feature-image:hover {
    transform: translateY(-5px);
}

/* USP Section */
.why-us {
    background-color: var(--section-cream);
    position: relative;
    z-index: 0; /* Stellt sicher, dass die Sektion keinen hohen z-index hat */
}

.why-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, var(--white), transparent);
    z-index: -2; /* Negativer z-index für den Gradient */
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: -1; /* Wichtig: Stellt sicher, dass das Grid unter der Navigation bleibt */
}

/* Gallery Section with Before/After */
.gallery-section {
    background-color: var(--section-blue);
    color: var(--white);
}

/* Neu gestaltete Galerie-Sektion */
.gallery-section {
    background-color: var(--section-blue);
    color: var(--white);
    position: relative;
    padding: 80px 0;
}

/* Modernes Grid-Layout für die Galerie */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

/* Einzelne Galerie-Items mit Hover-Effekten */
.gallery-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.gallery-image-container {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.gallery-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    user-select: none;
    pointer-events: none; /* Verhindert Drag & Drop */
}

.gallery-item:hover .gallery-image-container img {
    transform: scale(1.05);
}

/* Overlay mit Icon bei Hover */
.gallery-image-container::after {
    content: '\f00e'; /* Font Awesome Zoom-Icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    background-color: rgba(76, 175, 80, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.gallery-item:hover .gallery-image-container::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.gallery-caption {
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-caption h3 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 5px;
}

.gallery-caption p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

/* Lightbox-Styles */
.lightbox-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-container.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
}

.lightbox-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    user-select: none;
    pointer-events: none; /* Verhindert Rechtsklicks auf Bild */
    border-radius: 4px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox-container.active .lightbox-image {
    opacity: 1;
    transform: scale(1);
}

.lightbox-caption {
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-nav:hover {
    background: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

/* Schutz-Hinweis */
.image-protection-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(76, 175, 80, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Responsive Anpassungen */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .lightbox-prev {
        left: -60px;
    }
    
    .lightbox-next {
        right: -60px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .gallery-image-container {
        height: 200px;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
    }
    
    .lightbox-prev {
        left: -50px;
    }
    
    .lightbox-next {
        right: -50px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .lightbox-nav {
        top: auto;
        bottom: -60px;
        transform: none;
    }
    
    .lightbox-prev {
        left: 50%;
        margin-left: -60px;
    }
    
    .lightbox-next {
        right: 50%;
        margin-right: -60px;
    }
    
    .lightbox-close {
        top: -35px;
    }
    
    .lightbox-caption {
        padding: 10px;
        margin-top: 10px;
    }
}

.before-after-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: var(--white);
    transition: var(--transition);
}

.before-after-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.before-image, .after-image {
    position: relative;
    height: 200px;
}

.before-image img, .after-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-info {
    padding: 15px;
    border-top: 1px solid var(--light-gray);
}

.project-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.project-info p {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* Anpassungen für einzelne Karten-Komponenten auf dunklem Hintergrund */
.gallery-section .before-after-container {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-section .project-info {
    background-color: rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-section .project-info h3 {
    color: white;
}

.gallery-section .project-info p {
    color: rgba(255, 255, 255, 0.8);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--section-cream);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.testimonials::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background-color: rgba(28, 61, 90, 0.05);
    border-radius: 50%;
    z-index: 0;
}

/* About Section - OPTIMIERTES DESIGN MIT BESSEREN ABSTÄNDEN */
.about-section {
    background-color: var(--section-blue);
    color: var(--white);
    position: relative;
    padding: 60px 0; /* Reduzierter Außenabstand */
    overflow: hidden;
}

/* Moderner Hintergrund-Effekt */
.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(28, 61, 90, 0.97) 0%, rgba(44, 75, 106, 0.95) 100%);
    z-index: 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px; /* Reduzierter Abstand zwischen Bild und Text */
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Verbesserte Bild-Einbettung */
.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    transition: all 0.5s ease;
    border: 3px solid rgba(255, 255, 255, 0.2); /* Weißer Rahmen um das Bild */
    height: 100%; /* Füllt die verfügbare Höhe */
}

.about-image::after {
    content: 'Ihr zuverlässiger Partner';
    position: absolute;
    bottom: 20px;
    right: -10px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-bright) 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 3;
    transition: all 0.3s ease;
}

.about-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.about-image:hover::after {
    transform: translateX(-5px);
}

.about-image img {
    width: 100%;
    height: 100%;
    display: block;
    transition: all 0.5s ease;
    transform: scale(1.02);
    object-fit: cover; /* Wichtig für sauberes Bildverhältnis */
}

.about-image:hover img {
    transform: scale(1);
}

/* Textbereich mit Hintergrund */
.about-text {
    color: var(--white);
    background: rgba(28, 61, 90, 0.7); /* Hintergrundfarbe für Textbereich */
    padding: 25px; /* Innenabstand für den Text */
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about-text h3 {
    color: var(--white);
    font-size: 1.8rem; /* Etwas kleinere Überschrift */
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.about-text p {
    font-size: 1rem; /* Kleinere Schrift für bessere Lesbarkeit */
    line-height: 1.7;
    margin-bottom: 15px; /* Weniger Abstand zwischen Absätzen */
    color: rgba(255, 255, 255, 0.9);
}

/* Highlight-Box für wichtige Informationen */
.about-highlight {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--accent-color);
    padding: 12px 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.about-highlight p {
    margin-bottom: 0;
    font-style: italic;
}

/* KOMPLETTES REDESIGN DER COUNTER-BADGES FÜR PROFESSIONELLES AUSSEHEN */
.counter-badges {
    margin-top: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.counter-badge {
    background: linear-gradient(135deg, rgba(44, 75, 106, 0.8) 0%, rgba(28, 61, 90, 0.95) 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    padding: 0;
    min-height: 100px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.counter-badge:hover {
    transform: translateY(-5px);
}

/* Icon Container für visuelle Unterstützung */
.counter-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.counter-icon i {
    font-size: 36px;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.9;
}

/* Content Container für Text und Zahlen */
.counter-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 25px;
    position: relative;
    z-index: 2;
}

/* Hauptzahldarstellung */
.counter-value {
    font-size: 2.4rem;
    font-weight: 700;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 8px;
    position: relative;
}

/* 24/7 Counter spezielle Formatierung */
.counter-badge:nth-child(2) .counter-value {
    font-size: 1.8rem;
    display: flex;
    align-items: baseline;
    justify-content: flex-start; /* Von center auf flex-start geändert für konsistentere Darstellung */
    gap: 6px; /* Erhöhter Abstand zwischen Elementen */
}

/* Einheitliche Counter-Label-Gestaltung */
.counter-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.2;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dekorative visuelle Elemente */
.counter-badge::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-bright) 100%);
}

/* Individuelle Markierung pro Counter */
.counter-badge:nth-child(1)::after {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.4) 0%, rgba(76, 175, 80, 0) 70%);
}

/* Optimierung für große Prozentangaben im letzten Counter */
.counter-badge:nth-child(3) .counter-value {
    font-size: 2.1rem; /* Etwas kleiner für Prozentangaben */
}

/* Anpassung des Trennzeichens zwischen 24 und 7 */
.counter-divider {
    font-size: 2rem; /* Größerer Schrägstrich */
    color: rgba(255, 255, 255, 1); /* 100% Opazität für maximale Sichtbarkeit */
    margin: 0 2px;
    font-weight: 400;
    display: inline-block;
    transform: none; /* Keine Rotation, für bessere Lesbarkeit */
}

/* Responsive Anpassungen */
@media screen and (min-width: 768px) {
    .counter-badges {
        display: flex;
        flex-direction: row;
        gap: 20px;
    }
    
    .counter-badge {
        flex: 1;
    }
}

/* Tablet und kleine Bildschirme */
@media screen and (max-width: 991px) {
    .counter-icon {
        width: 80px;
    }
    
    .counter-icon i {
        font-size: 28px;
    }
    
    .counter-content {
        padding: 15px 20px;
    }
    
    .counter-value {
        font-size: 2.2rem;
    }
    
    .counter-badge:nth-child(2) .counter-value {
        font-size: 1.6rem;
    }
    
    .counter-divider {
        font-size: 1.6rem;
    }

    .counter-badge:nth-child(3) .counter-value {
        font-size: 2rem;
    }
}

/* Mobil-Optimierung */
@media screen and (max-width: 767px) {
    .counter-badges {
        gap: 15px;
    }
    
    .counter-badge {
        display: flex;
        flex-direction: row;
        height: auto;
        min-height: 90px;
    }
    
    .counter-icon {
        width: 70px;
    }
    
    .counter-content {
        text-align: left;
        padding: 12px 15px;
    }
    
    .counter-value {
        font-size: 2rem;
    }
    
    .counter-badge:nth-child(2) .counter-value {
        font-size: 1.4rem;
    }
    
    .counter-divider {
        font-size: 1.4rem;
    }
    
    .counter-label {
        font-size: 0.8rem;
    }

    .counter-badge:nth-child(3) .counter-value {
        font-size: 1.8rem;
    }
}

/* Sehr kleine Bildschirme */
@media screen and (max-width: 380px) {
    .counter-icon {
        width: 60px;
    }
    
    .counter-icon i {
        font-size: 22px;
    }
    
    .counter-content {
        padding: 10px 12px;
    }
    
    .counter-value {
        font-size: 1.7rem;
        margin-bottom: 5px;
    }
    
    .counter-badge:nth-child(2) .counter-value {
        font-size: 1.2rem;
    }
    
    .counter-divider {
        font-size: 1.2rem;
    }
    
    .counter-label {
        font-size: 0.75rem;
        letter-spacing: 0.3px;
    }

    .counter-badge:nth-child(3) .counter-value {
        font-size: 1.5rem;
    }
}

/* Qualifikationsbereich */
.qualification-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.qualification-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.qualification-badge:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

.qualification-badge i {
    color: var(--accent-bright);
    font-size: 1.1rem;
}

.qualification-badge span {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Responsive Anpassungen */
@media only screen and (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        max-width: 550px;
        margin: 0 auto 40px;
        transform: perspective(1000px) rotateY(0deg);
    }
}

@media only screen and (max-width: 768px) {
    .about-text h3 {
        font-size: 1.8rem;
    }
    
    .qualification-badges {
        gap: 10px;
    }
    
    .qualification-badge {
        padding: 8px 12px;
    }
}

@media only screen and (max-width: 480px) {
    .about-text h3 {
        font-size: 1.6rem;
    }
    
    .about-highlight {
        padding: 12px 15px;
    }
}

/* Prices Section */
.prices-section {
    background-color: var(--section-cream);
}

.prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.custom-quote {
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
}

.custom-quote h3 {
    margin-bottom: 10px;
}

.custom-quote p {
    margin-bottom: 20px;
    color: var (--dark-gray);
}

/* Map Section - ÜBERARBEITETE VERSION MIT Z-INDEX-FIXES */
.map-section {
    background-color: var(--section-blue);
    color: var(--white);
    position: relative;
    z-index: 0; /* Geändert von 0 auf 1 */
    padding: 80px 0;
}

.map-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2); /* Verstärkter Schatten */
    margin-bottom: 30px;
    background-color: var(--white);
    border: 5px solid white;
    height: 400px; /* Feste Höhe */
    width: 100%; /* Volle Breite */
}

#osm-map {
    width: 100% !important;
    height: 100% !important;
    z-index: 10 !important; /* Höherer z-index */
    position: relative;
}

/* Wichtige Map-Korrekturen - ALLES MIT !important */
.leaflet-container {
    z-index: 10 !important;
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
}

.leaflet-map-pane {
    z-index: 10 !important;
    position: relative !important;
}

.leaflet-tile-pane {
    z-index: 10 !important;
}

.leaflet-overlay-pane,
.leaflet-shadow-pane,
.leaflet-marker-pane,
.leaflet-popup-pane {
    z-index: 11 !important;
}

.leaflet-control {
    z-index: 12 !important;
}

.leaflet-top, 
.leaflet-bottom {
    z-index: 13 !important;
}

/* Map-Zoom-Info */
.map-zoom-info {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 20 !important; /* Höherer z-index */
    transition: opacity 0.5s ease;
    pointer-events: none;
    opacity: 0.9; /* Etwas transparenter */
}

.map-zoom-info.fade-out {
    opacity: 0;
}

/* Ergänzung für Map Section - Routenplaner-Button */
.route-planner-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 5; /* Höherer z-index als die Karte */
}

/* Servicebereiche unter der Karte */
.service-areas {
    text-align: center;
    margin-top: 40px;
    padding: 25px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.service-areas h3 {
    margin-bottom: 20px;
    color: var(--white);
    font-size: 1.4rem;
}

.service-areas-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.area {
    background-color: var(--white);
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.95rem;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.area:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    background-color: var(--accent-color);
    color: white;
}

.area i {
    color: var(--accent-color);
    margin-right: 5px;
}

.area:hover i {
    color: white;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .service-areas {
        padding: 20px 15px;
    }
    
    .area {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .service-areas-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .area {
        width: 100%;
    }
}

/* FAQ Section */
.faq-section {
    background-color: var(--section-cream);
}

/* Contact Section - Hintergrundbild entfernt */
.contact-section {
    background: var(--primary-light); /* Hintergrundbild entfernt, einfache Farbe verwenden */
    color: var(--white);
    padding: 80px 0;
}

.contact-section .section-header h2 {
    color: var(--white);
}

.contact-section .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Neu gestaltete Kontakt-Sektion mit verbesserten Kontaktfeldern */
.contact-info {
    background-color: white;
    padding: 30px;
    border-radius: 6px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--accent-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    color: var(--primary-color);
}

/* Die einzelnen Kontaktboxen mit verbesserter Struktur */
.contact-item {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
    position: relative;
    z-index: 0; /* Z-Index auf 0 gesetzt, wie gewünscht */
    background-color: rgba(44, 75, 106, 0.5);
    padding: 25px; /* Mehr Platz */
    border-radius: 6px;
    transition: all 0.3s ease;
    color: var(--primary-dark); /* Dunkelblau, wie gewünscht */
}

/* Hover-Effekt für die Kontaktfelder */
.contact-item:hover {
    transform: translateY(-5px);
    background-color: rgba(44, 75, 106, 0.6);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    font-size: 22px; /* Etwas größer */
    color: white;
    background: var(--accent-color);
    min-width: 50px; /* Größer für mehr Abstand */
    height: 50px; /* Größer für mehr Abstand */
    border-radius: 6px;
    margin-right: 20px; /* Mehr Abstand zum Text */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(76, 175, 80, 0.2);
}

.contact-item div {
    flex: 1;
}

/* Überschriftenfarbe auf dunkelblau */
.contact-item h3 {
    color: white;
    margin-bottom: 15px; /* Mehr Abstand zum Text darunter */
    font-size: 1.2rem;
    font-weight: 600;
}

/* Textfarbe anpassen */
.contact-item p {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    margin: 0 0 15px 0; /* Mehr Abstand nach unten */
}

/* Link-Farbe anpassen */
.contact-item a {
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-bright);
}

/* WhatsApp-Button optimieren */
.whatsapp-button {
    display: inline-flex;
    align-items: center;
    background-color: #25D366;
    color: white !important;
    padding: 12px 20px; /* Mehr Polsterung */
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(37, 211, 102, 0.3);
    margin-top: 10px; /* Mehr Abstand zum Text darüber */
}

.whatsapp-button:hover {
    background-color: #20ba59;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(37, 211, 102, 0.4);
}

.whatsapp-button i {
    margin-right: 10px;
    background: transparent !important;
    box-shadow: none !important;
    min-width: auto !important;
    height: auto !important;
    font-size: 18px !important;
    color: white !important;
    position: static !important;
}

/* Verbesserte interaktive Kontakt-Buttons */
.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Gemeinsame Stil-Basis für alle Kontakt-Buttons */
.phone-button,
.route-button,
.whatsapp-button {
    background-color: #2c4b6a;
    color: white;
    position: relative; /* Wichtig für den Glanzeffekt mit ::after */
    overflow: hidden; /* Wichtig um den Glanzeffekt zu beschränken */
}

.phone-button:hover,
.route-button:hover,
.whatsapp-button:hover {
    background-color: #1c3d5a;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(44, 75, 106, 0.4);
    color: white;
}

/* Silberner Glanzeffekt für alle Buttons */
.phone-button::after,
.route-button::after,
.whatsapp-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.phone-button:hover::after,
.route-button:hover::after,
.whatsapp-button:hover::after {
    transform: translateX(100%);
}

.phone-button i,
.route-button i,
.whatsapp-button i {
    margin-right: 10px;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .contact-button, .whatsapp-button, .route-button, .phone-button {
        width: 100%;
        justify-content: center;
    }
}

/* Verbesserte interaktive Kontakt-Buttons */
.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Telefon-Button */
.phone-button {
    background-color: #2c4b6a; /* Von #007bff auf #2c4b6a geändert, um dem route-button zu entsprechen */
    color: white;
}

.phone-button:hover {
    background-color: #1c3d5a; /* Von #0069d9 auf #1c3d5a geändert */
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(44, 75, 106, 0.4); /* Box-Shadow an route-button angepasst */
    color: white;
}

.phone-button i {
    margin-right: 10px;
}

/* Routenplaner-Button */
.route-button {
    background-color: #2c4b6a;
    color: white;
}

.route-button:hover {
    background-color: #1c3d5a;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(44, 75, 106, 0.4);
    color: white;
}

/* WhatsApp-Button - Farben und Hover-Effekte anpassen, aber Icon-Stil beibehalten */
.whatsapp-button {
    display: inline-flex;
    align-items: center;
    background-color: #2c4b6a; /* Wie route-button statt grün */
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
}

.whatsapp-button:hover {
    background-color: #1c3d5a; /* Wie route-button statt grün */
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(44, 75, 106, 0.4);
    color: white;
}

/* Icon-Stile beibehalten */
.whatsapp-button i {
    margin-right: 10px;
}

.phone-button i {
    margin-right: 10px;
}

.route-button i {
    margin-right: 10px;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .contact-button, .whatsapp-button, .route-button, .phone-button {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive Anpassungen */
@media only screen and (max-width: 992px) {
    .contact-info {
        margin-bottom: 30px;
    }
}

@media only screen and (max-width: 480px) {
    .contact-item {
        padding: 12px;
    }
    
    .contact-item i {
        min-width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* CTA Section - Farbe aktualisiert auf cremefarbenen Hintergrund */
.cta-section {
    background-color: var(--section-cream);
    padding: 80px 0;
    text-align: center;
    color: var(--primary-color); /* Textfarbe auf primary-color geändert für besseren Kontrast */
}

.cta-content h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var (--dark-gray);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Neue Partner-Sektion */
.partners-section {
    background-color: var(--section-blue);
    padding: 80px 0;
    position: relative;
    color: var(--white);
}

.partners-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(28, 61, 90, 0.03) 2px, transparent 2px);
    background-size: 20px 20px;
    z-index: 0;
    opacity: 0.6;
}

/* Weißer Text für Überschrift und Untertitel */
.partners-header h2,
.partners-header p {
    color: var(--white) !important;
}

/* Verbesserte Partner-Karten-Ausrichtung */
.partners-grid {
    display: flex;
    justify-content: space-between; /* Gleichmäßig verteilen */
    margin: 50px auto;
    max-width: 1000px; /* Begrenzt die maximale Breite */
    position: relative;
    z-index: 1;
}

.partner-card {
    flex: 0 0 30%; /* Feste Breite von 30% */
    max-width: 300px; /* Maximale Breite begrenzen */
    background-color: rgba(255, 255, 255, 0.5); /* 50% transparenter Hintergrund */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    text-align: center;
    margin: 0 10px; /* Zusätzlicher seitlicher Abstand */
}

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

.partner-logo {
    height: 160px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(80%);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.partner-logo svg {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.partner-card:hover .partner-logo img {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-info {
    padding: 20px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.partner-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0;
    color: var(--primary-color);
    text-align: center;
}

/* Verbesserter pulsierender CTA-Button mit schönerem Schatten und weißem Pulseffekt */
.pulse-button {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-bright) 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4), 0 0 0 0 rgba(255, 250, 240, 0.8);
    animation: pulse-enhanced 3s infinite;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.pulse-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.5);
    color: white;
    animation: none;
}

/* Glänzender Schweif-Effekt beim Pulse-Button */
.pulse-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20%, 100% {
        left: 100%;
    }
}

@keyframes pulse-enhanced {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4), 0 0 0 0 rgba(255, 250, 240, 0.8);
    }
    
    50% {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4), 0 0 0 20px rgba(255, 250, 240, 0);
    }
    
    100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4), 0 0 0 0 rgba(255, 250, 240, 0);
    }
}

/* Pulsierender CTA-Button */
.partners-cta {
    text-align: center;
    margin-top: 40px;
}

.pulse-button {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-bright) 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
    animation: pulse-animation 2s infinite;
    position: relative;
    overflow: hidden;
}

.pulse-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    color: white;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Responsive Anpassungen */
@media only screen and (max-width: 992px) {
    .partners-grid {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }
    
    .partner-card {
        flex: 0 0 45%;
        margin: 0;
    }
}

@media only screen and (max-width: 768px) {
    .partners-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .partner-card {
        flex: 0 0 100%;
        width: 100%;
        max-width: 350px;
        margin: 0 0 30px 0;
    }
    
    .partner-card:last-child {
        margin-bottom: 0;
    }

    .partner-logo {
        height: 140px;
    }
}

@media only screen and (max-width: 576px) {
    .partner-logo {
        height: 100px;
        padding: 15px;
    }
    
    .partner-card:nth-child(2) .partner-logo svg {
        max-height: 80px;
        width: auto;
    }
}

/* Neue Subunternehmer-Box in der Partnersektion */
.subcontractor-box {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 35px;
    margin: 50px auto 40px;
    max-width: 1000px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.subcontractor-box h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--accent-bright);
    text-align: center;
}

.subcontractor-intro {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.benefit-item i {
    font-size: 24px;
    color: var(--accent-bright);
    background-color: rgba(76, 175, 80, 0.15);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.benefit-item div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.benefit-item strong {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
}

.benefit-item span {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.subcontractor-cta {
    font-size: 1.15rem;
    margin-top: 25px;
    text-align: center;
    font-weight: 600;
    color: var(--white);
}

.subcontractor-contact {
    text-align: center;
    margin-top: 10px;
    font-size: 1.05rem;
    color: var(--accent-bright);
}

/* Responsive Anpassungen für Subunternehmer-Box */
@media only screen and (max-width: 992px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .subcontractor-box {
        padding: 30px 25px;
    }
}

@media only screen and (max-width: 768px) {
    .subcontractor-box h3 {
        font-size: 1.4rem;
    }
    
    .subcontractor-intro {
        font-size: 1rem;
    }
    
    .benefit-item {
        padding: 15px;
    }
    
    .benefit-item i {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media only screen and (max-width: 480px) {
    .subcontractor-box {
        padding: 25px 20px;
    }
    
    .subcontractor-box h3 {
        font-size: 1.2rem;
    }
    
    .subcontractor-cta,
    .subcontractor-contact {
        font-size: 1rem;
    }
}

/* Service Area Section - Neue Styles */
.service-area-section {
    background-color: var(--section-blue);
    color: var(--white);
    position: relative;
    z-index: 0;
    padding: 80px 0;
}

.service-area-section .section-header h2,
.service-area-section .section-header p {
    color: var(--white);
}

.service-area-section .section-header h2::after {
    background-color: var(--white);
}

/* VERBESSERTE RESPONSIVE ABOUT-SECTION - iPad Fix */
@media only screen and (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        max-width: 550px;
        margin: 0 auto 20px;
        height: auto !important; /* Wichtig: Verhindert Verzerrung */
        transform: perspective(1000px) rotateY(0deg);
    }
    
    .about-image img {
        width: 100%;
        height: auto !important; /* Wichtig: Behält Seitenverhältnis */
        max-height: 450px; /* Begrenzt maximale Höhe */
        object-fit: contain; /* Ändert auf contain für iPad-Ansicht */
    }
}

/* Spezifischer iPad Pro Fix */
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .about-image {
        max-width: 100%;
        height: 400px !important;
    }
    
    .about-image img {
        object-fit: cover;
    }
}