* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-blue: #223344;
    --vibrant-red: #c84c4c;
    --light-bg: #f0f4f8;    
    --white: #ffffff;
}

body {
    line-height: 1.6;
    color: var(--dark-text);
    background-color: #fff;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */

/* --- CLEANED & FIXED NAVBAR --- */
/* --- CLEANED NAVBAR --- */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.3rem 2rem; /* Slightly tighter for a sleeker look */
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}
.nav-container a{
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 500;
}
.nav-links a:hover{
    color: var(--vibrant-red);
}

/* Dropdown Logic */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-header {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 300px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    top: 100%;
    left: 0; /* Aligned to the left of the parent text */
    padding: 0.5rem 0;
    border-radius: 4px;
    list-style: none;
    z-index: 1001;
}

.dropdown-content li a {
    padding: 12px 20px;
    display: block;
    text-decoration: none;
    color: var(--primary-blue);
    font-size: 0.95rem;
    transition: background 0.2s;
}

.dropdown-content li a:hover {
    background-color: var(--light-bg);
    color: var(--vibrant-red);
}
.btn-cta {
    background-color: var(--vibrant-red);
    color: var(--white) !important; /* Forces text to stay white */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: transform 0.2s ease, background-color 0.3s ease !important;
}

.btn-cta:hover {
    background-color: #a63d3d !important; /* A slightly darker shade of your vibrant red */
    transform: translateY(-2px); /* Makes the button "lift" when hovered */
    color: var(--white) !important;
}

/* Desktop Interaction */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-content {
        display: block;
    }
    .burger-menu { display: none; }
    
    .dropdown-toggle {
        margin-left: 8px;
        font-size: 0.7rem;
        pointer-events: none; /* Let the hover work on the whole header */
    }
}

/* Mobile Interaction */
@media (max-width: 768px) {
    .experience-badge{
        bottom: 40px!important;
        left: 0px!important;
        position: relative!important;
    }
    .services{
        padding: 60px 10px!important;
    }
    .about-section{
        padding: 60px 10px!important;
    }
    .work-section{
        padding: 60px 10px!important;
    }
    .expertise-section{
        padding: 60px 10px!important;
    }
    .trust-section{
        padding: 60px 10px!important;
    }
    .burger-menu {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }
    .work-card{
        padding: 25px!important;
    }
    .burger-menu span {
        width: 25px;
        height: 3px;
        background-color: var(--primary-blue);
    }

    .nav-links {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 1rem 0;
        gap: 20px;

        max-height: calc(100vh - 100%); 
        overflow-y: auto; 
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }

    .nav-links.active { 
        display: flex; 
        align-items: flex-start;
        padding-left: 16px;
    }

    .dropdown-header {
        justify-content: space-between;
        width: 100%;
    }

    .dropdown-toggle {
        font-size: 0.8rem;
        padding: 0 12px; /* Bigger tap area */
        cursor: pointer;
    }

    .dropdown-toggle.rotate {
        transform: rotate(180deg);
    }

    .dropdown-content {
        position: static;
        width: 100%;
        background-color: var(--light-bg);
        box-shadow: none;
        border-radius: 0;
        padding: 0;
    }
    .dropdown-content li a {
        padding: 10px 2rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .dropdown-content.show { display: block; }
}
/* Hero Section */
.hero {
    background: linear-gradient(rgba(26, 54, 93, 0.8), rgba(26, 54, 100, 0.8)), 
                url('https://images.unsplash.com/photo-1584622650111-993a426fbf0a?auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-btns {
    margin-top: 30px;
}

.btn-main, .btn-secondary {
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    margin: 0 10px;
    display: inline-block;
}

.btn-main {
    background: var(--vibrant-red);
    color: #fff;
    border: 2px solid var(--vibrant-red);
    transition: transform 0.2s ease, background-color 0.3s ease, border 0.3s ease !important;
}
.btn-main:hover{
    background-color: #a63d3d !important; /* A slightly darker shade of your vibrant red */
    transform: translateY(-2px); /* Makes the button "lift" when hovered */
    color: var(--white) !important;
    border: 2px solid #a63d3d;
}

.btn-secondary {
    border: 2px solid #fff;
    color: #fff;
    transition: transform 0.2s ease, background-color 0.3s ease, border 0.3s ease !important;
}
.btn-secondary:hover{
    background-color: var(--vibrant-red);
    transform: translateY(-2px);
    border: 2px solid var(--vibrant-red);
}

/* Services */
.services {
    padding: 80px 0;
    background: var(--light-gray);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--primary-blue);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border: 1px solid var(--vibrant-red);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--vibrant-red);
    margin-bottom: 15px;
}
.service-card h4{
    color: var(--primary-blue);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    .hero-content h2 {
        font-size: 1.8rem;
    }
    .hero{
        padding: 0px 10px;
    }
    .btn-main{
        margin-bottom: 16px;
    }
}

/* Über Uns Section Layout */
.about-section {
    padding: 100px 0;
    overflow: hidden;
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--vibrant-red);
    color: white;
    padding: 20px;
    border-radius: 15px;
    font-weight: bold;
    box-shadow: 0 10px 20px rgba(215, 85, 85, 0.3);
}

.about-text {
    flex: 1.2;
}

.subtitle {
    color: var(--vibrant-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight {
    color: var(--vibrant-red);
}

.about-text p {
    margin-bottom: 15px;
    color: #555;
}

.trust-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.point {
    font-weight: bold;
    color: var(--primary-blue);
}

.point i {
    color: var(--vibrant-red);
    margin-right: 8px;
}

/* --- ANIMATION LOGIC --- */

/* 1. Initial State (Hidden) */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

/* 2. Active State (Visible) */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- ANIMATION LOGIC: OPPOSITE SLIDES --- */

/* Initial State: Image hides to the left */
.about-image.reveal {
    opacity: 0;
    transform: translateX(-100px); /* Starts 100px to the left */
    transition: all 1.0s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Initial State: Text hides to the right */
.about-text.reveal {
    opacity: 0;
    transform: translateX(100px); /* Starts 100px to the right */
    transition: all 1.0s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Active State: Both meet in the middle */
.reveal.active {
    opacity: 1;
    transform: translateX(0);
}

/* Small delay for the text to make it feel more fluid */
.about-text.reveal.active {
    transition-delay: 0.1s;
}
@media (max-width: 768px) {
    .about-image.reveal, .about-text.reveal {
        transform: translateY(30px) !important;
        transition: all 0.6s ease;
    }
}
/* Responsive */
@media (max-width: 768px) {
    .about-flex {
        flex-direction: column;
        gap: 16px;
    }
    .about-image {
        margin-bottom: 16px;
    }
}

/* Was Wir Machen Section */
.work-section {
    padding: 100px 0;
    background-color: #fcfcfc; /* Very light gray to distinguish from white sections */
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.work-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    border-bottom: 4px solid transparent;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
}

/* Hover Effect */
.work-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--vibrant-red);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(214, 99, 99, 0.1); /* Light Orange tint */
    color: var(--vibrant-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border-radius: 12px;
    margin-bottom: 20px;
}

.work-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.work-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-link {
    text-decoration: none;
    color: var(--vibrant-red);
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: auto;
    transition: margin-left 0.3s ease;
}

.work-card:hover .card-link {
    margin-left: 5px;
}

/* --- ANIMATION: STAGGERED FADE UP --- */
.reveal-card {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-card.active {
    opacity: 1;
    transform: translateY(0);
}

/* Delay each card slightly (Stagger effect) */
.work-grid .work-card:nth-child(1) { transition-delay: 0.1s; }
.work-grid .work-card:nth-child(2) { transition-delay: 0.2s; }
.work-grid .work-card:nth-child(3) { transition-delay: 0.3s; }
.work-grid .work-card:nth-child(4) { transition-delay: 0.4s; }
.work-grid .work-card:nth-child(5) { transition-delay: 0.5s; }
.work-grid .work-card:nth-child(6) { transition-delay: 0.6s; }

.reveal-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}
/* Mehr Sehen Button Style */
.btn-more {
    text-decoration: none;
    color: var(--vibrant-red);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    margin-top: auto; /* Pushes button to the bottom of the card */
    padding-top: 15px;
    transition: all 0.3s ease;
}

.btn-more i {
    margin-left: 8px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

/* Hover Effect: The Arrow Slips */
.work-card:hover .btn-more {
    color: var(--primary-blue)!important;
}

.work-card:hover .btn-more i {
    transform: translateX(5px); /* Arrow moves slightly to the right */
}

/* Special case for the Blue Highlight Card */
.highlight-card .btn-more {
    color: var(--vibrant-red);
}

.highlight-card:hover .btn-more {
    color: #fff;
}

/* Trust Section Styling */
.trust-section {
    padding: 100px 0;
    background: #fff;
}

.trust-content {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.trust-text {
    flex: 1;
    /* min-width: 300px; */
}

.benefit-list {
    margin: 30px 0;
}

.benefit-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.benefit-item i {
    color: #27ae60;
    font-size: 1.2rem;
    margin-top: 5px;
}

.benefit-item strong {
    display: block;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.cta-button {
    display: inline-block;
    padding: 18px 35px;
    background: var(--vibrant-red);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.cta-button:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

/* Stats Box on the Right */
.trust-box {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    min-width: 300px;
}

.stat-card {
    background: var(--light-gray);
    padding: 40px 20px;
    text-align: center;
    border-radius: 15px;
    border: 1px solid var(--vibrant-red);
    transition: background 0.3s ease;
}

.stat-card:hover {
    background: var(--primary-blue);
}

.stat-card:hover .stat-number, 
.stat-card:hover .stat-label {
    color: #fff;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--vibrant-red);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
}

/* Make one card span two columns for design balance */
.stat-card:last-child {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .trust-content {
        flex-direction: column;
    }
    .trust-points{
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* --- DIRECTIONAL ANIMATIONS --- */

/* Left Side Initial State */
.reveal-left {
    opacity: 0;
    transform: translateX(-80px); /* Start slightly to the left */
    transition: all 1.0s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Right Side Initial State */
.reveal-right {
    opacity: 0;
    transform: translateX(80px); /* Start slightly to the right */
    transition: all 1.0s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Active State for both */
.reveal-left.active, 
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Delay the right side slightly for a more "organic" feel */
.reveal-right.active {
    transition-delay: 0.15s;
}

/* Mobile Fix: Slide up instead of sideways to prevent horizontal scroll bugs */
@media (max-width: 768px) {
    .reveal-left, .reveal-right {
        transform: translateY(30px) !important;
    }
}
@media (max-width: 480px) {
    .trust-box {
        grid-template-columns: 1fr; /* Stack stats vertically on tiny screens */
    }
    
    .stat-card:last-child {
        grid-column: span 1; /* Reset the span for single column */
    }

    .benefit-item {
        text-align: left; /* Keep the list items left-aligned for the icons */
    }
    .stat-card{
        border: 1px solid var(--vibrant-red);
    }
    .trust-content{
        align-content: center;
    }
}






/* Expertise Section Styling */
.expertise-section {
    padding: 100px 0;
    background: #fff;
}

.expertise-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

.expertise-list {
    flex: 1;
}

.exp-item {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.exp-icon {
    width: 60px;
    height: 60px;
    background: var(--light-gray);
    color: var(--vibrant-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: 0.3s;
}

.exp-item:hover .exp-icon {
    background: var(--vibrant-red);
    color: white;
}

.exp-info h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

/* The Result Box (The Beautiful part) */
.result-box {
    flex: 1;
    background: var(--primary-blue);
    padding: 60px;
    border-radius: 30px;
    color: white;
    position: relative;
    box-shadow: 0 20px 40px rgba(26, 54, 93, 0.2);
}

.result-content i.fa-award {
    font-size: 3rem;
    color: var(--vibrant-red);
    margin-bottom: 20px;
}

.result-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.result-content p {
    font-style: italic;
    opacity: 0.9;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.guarantee-tag {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--vibrant-red);
    border-radius: 50px;
    font-weight: bold;
    color: var(--vibrant-red);
}

@media (max-width: 992px) {
    .expertise-flex {
        flex-direction: column;
    }
}

/*FOOTER*/
/* --- FOOTER STYLES --- */
.main-footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 60px 0 0 0; /* No padding on bottom because of footer-bottom bar */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h3.footer-logo {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

/* Red underline for headings */
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--vibrant-red);
}

.footer-desc {
    color: #bdc3c7; /* Light grayish text for readability */
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--vibrant-red);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: #bdc3c7;
}

.contact-item i {
    color: var(--vibrant-red);
    font-size: 1.1rem;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--vibrant-red);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: #1a2938; /* Slightly darker than primary-blue */
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #7f8c8d;
    border-top: 1px solid rgba(255,255,255,0.05);
}

@media (max-width: 768px) {
    footer .fables-logo{
        width: 80%;
    }

    .result-box{
        padding: 30px;
    }
}
/*End of footer*/




/*Dienstleistungen*/
.service-hero {
    background: linear-gradient(rgba(34, 51, 68, 0.85), rgba(34, 51, 68, 0.7)), 
                url('../images/dienstleistungen1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.service-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-hero .highlight {
    color: var(--vibrant-red); /* Using your red for the keywords */
}
/*End of header*/

/*Card section*/
.svc-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.svc-header {
    text-align: center;
    margin-bottom: 50px;
}

.svc-header h3 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.svc-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Grid Layout */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Card Design */
.svc-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.svc-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Image Area */
.svc-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.svc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.svc-card:hover .svc-image img {
    transform: scale(1.1);
}


/* Content Area */
.svc-content {
    padding: 30px 25px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.svc-content h4 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.svc-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Card Button */
.svc-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    border: 2px solid var(--vibrant-red);
    color: var(--vibrant-red);
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
}

.svc-btn:hover {
    background-color: var(--vibrant-red);
    color: var(--white);
}

.svc-reveal-up, .svc-reveal-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.svc-reveal-up.active, .svc-reveal-card.active {
    opacity: 1;
    transform: translateY(0);
}

.svc-reveal-card:nth-child(2) { transition-delay: 0.1s; }
.svc-reveal-card:nth-child(3) { transition-delay: 0.2s; }
.svc-reveal-card:nth-child(4) { transition-delay: 0.3s; }
.svc-reveal-card:nth-child(5) { transition-delay: 0.4s; }
.svc-reveal-card:nth-child(6) { transition-delay: 0.5s; }
.svc-reveal-card:nth-child(7) { transition-delay: 0.6s; }
.svc-reveal-card:nth-child(8) { transition-delay: 0.7s; }
.svc-reveal-card:nth-child(9) { transition-delay: 0.8s; }
.svc-reveal-card:nth-child(10) { transition-delay: 0.9s; }
.svc-reveal-card:nth-child(11) { transition-delay: 1s; }

/*End of card section*/

/*Go to action section*/

.svc-cta-wrapper {
    padding: 60px 0;
    display: flex;
    justify-content: center;
    background-color: #ffffff; 
}


.svc-cta-container {
    width: 80%;
    max-width: 1200px;
    background: var(--primary-blue); 
    color: #ffffff;
    padding: 80px 40px;
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    overflow: hidden;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin: 15px 0;
}

.cta-content p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.cta-subtitle {
    color: var(--vibrant-red); 
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.cta-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn-primary {
    background-color: var(--vibrant-red);
    color: white;
    padding: 16px 32px;
    border-radius: 50px; 
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.cta-btn-secondary {
    background-color: transparent;
    color: white;
    padding: 16px 32px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-btn-primary:hover, .cta-btn-secondary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}


/*End of go to action section*/

/* Mobile Fix for Scrolling 11 Services */
@media (max-width: 768px) {
    .nav-links {
        max-height: 80vh; 
        overflow-y: auto; 
        -webkit-overflow-scrolling: touch;
    }
    
    .dropdown-content.show {
        display: block;
        padding-left: 1rem;
    }

    .service-hero h1 {
        font-size: 1.7rem;
    }
    .about-flex h2{
        font-size: 1.7rem;
    }
    .svc-section h3{
        font-size: 1.7rem;
    }
    .svc-section{
        padding: 60px 10px!important;
    }
    .svc-header h3 { 
        font-size: 2rem; 
    }
    .svc-grid { 
        grid-template-columns: 1fr; 
    }

    /*Go to action section*/
    .svc-cta-container {
        width: 92%;
        padding: 50px 20px;
        border-radius: 30px; 
    }
    .cta-actions {
        flex-direction: column;
    }
    .explanation-section{
        padding: 60px 10px!important;
    }
}

/* Ensure reveal animations from home page are active */
.explanation-section {
    padding: 80px 0;
    background: var(--white);
}




/*End of dienstelungen*/



/*UBER UNS*/
.about-hero {
    padding: 100px 0 60px;
    background-color: #ffffff;
    overflow: hidden;
}

.about-hero-flex {
    display: flex;
    align-items: center;
    gap: 50px;
    width: 85%; /* Slightly wider than the CTA for a hierarchy look */
    max-width: 1300px;
    margin: 0 auto;
}

.about-hero-text {
    flex: 1;
}

.about-badge {
    color: var(--vibrant-red);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
}

.about-hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.1;
    color: var(--primary-blue); 
    margin-bottom: 25px;
}

.about-hero-text .highlight {
    color: var(--vibrant-red);
}

.about-hero-text p {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 35px;
}

/* Stats Row */
.about-hero-stats {
    display: flex;
    gap: 30px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.stat-label {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
}

/* Image Section */
.about-hero-image {
    flex: 1;
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 40px; 
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

.image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: var(--vibrant-red);
    color: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
}

.experience-badge span {
    font-weight: 800;
    font-size: 1.2rem;
    display: block;
}

.experience-badge p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.9);
}

/* Animation Base States */
.svc-reveal-left, .svc-reveal-right {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.svc-reveal-left {
    transform: translateX(-50px);
}

.svc-reveal-right {
    transform: translateX(50px);
}

/* Active State (When visible) */
.svc-reveal-active {
    opacity: 1 !important;
    transform: translateX(0) !important;
}
/*End of header*/

/*Seciton 1*/

.about-details-section {
    padding: 80px 0;
    background-color: #fcfcfc;
    display: flex;
    justify-content: center;
}

.about-details-container {
    width: 80%;
    max-width: 1200px;
    background: #ffffff;
    padding: 60px;
    border-radius: 40px; /* Harmony with other sections */
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.details-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.details-tag {
    color: var(--vibrant-red);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
}

.details-content h2 {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin: 15px 0 25px;
}

.details-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Warning box for the chemical cleaning text */
.warning-box {
    background-color: #fff5f4;
    border-left: 4px solid var(--vibrant-red);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.warning-box i {
    color: var(--vibrant-red);
    font-size: 1.2rem;
    margin-top: 5px;
}

.warning-box p {
    margin: 0;
    font-size: 0.95rem;
    color: #444;
}

/* Feature Cards */
.details-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 25px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateX(10px);
    background: #f1f1f1;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.feature-card h4 {
    margin: 0 0 5px;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.feature-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #777;
    line-height: 1.4;
}
@media (max-width: 992px) {
        .about-details-container {
        width: 100%!important;
        padding: 20px 8px!important;
        display: flex;
        align-content: center;
        justify-content: center;
    }

    .details-grid {
        grid-template-columns: 1fr; /* Stack the text and features */
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .about-details-section {
        padding: 60px 10px;
    }
    
    .details-content h2 {
        font-size: 1.6rem; /* Shrink title so it doesn't wrap awkwardly */
    }

    .feature-card {
        flex-direction: column; /* Stack icon above text in small cards */
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .feature-card:hover {
        transform: translateY(-5px); /* Move up instead of right on mobile */
    }

    /* Prevent animation overflow */
    .svc-reveal-left, .svc-reveal-right {
        transform: translateY(20px) !important;
    }
}
/*End of section 1*/
@media (max-width: 768px){
    .about-hero{
        padding: 60px 10px;
    }
    .container{
        padding: 0;
    }
    .image-wrapper{
        box-shadow: none;
    }
    .about-hero-flex{
        gap: 50px;
        
    }
}
/* Mobile Responsiveness */
@media (max-width: 992px) {
    /*Header*/
    .about-hero-flex {
        flex-direction: column;
        width: 92%;
        text-align: center;
    }
    .about-hero-stats {
        justify-content: center;
    }
    .image-wrapper img {
        height: auto;
        width: 100%;
    }
    /*Header*/

    /*Section 1*/
     .about-details-container {
        width: 92%;
        padding: 0px 30px;
    }
    .details-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    /*End of section 1*/
}
/*END OF UBER UNS*/

/*Contact*/
/*Header*/
.contact-hero {
    padding: 80px 0 40px;
    background-color: #f9f9f9; /* Same as your site background */
    display: flex;
    justify-content: center;
}

.contact-hero-container {
    width: 80%;
    max-width: 1200px;
    background: var(--primary-blue); /* Dark blue gradient like the CTA */
    padding: 80px 40px;
    border-radius: 40px; /* Harmony with other pages */
    text-align: center;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern for professional look */
.contact-hero-container::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 30px 30px;
}

.contact-hero-content {
    position: relative;
    z-index: 1;
}

.contact-badge {
    background: rgba(231, 76, 60, 0.2);
    color: var(--vibrant-red);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

.contact-hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
}

.contact-hero-content .highlight {
    color: var(--vibrant-red);
}

.contact-hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
    line-height: 1.6;
}

/* Quick contact info inside header */
.contact-hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* The Red Phone Button */
.btn-contact-main {
    background-color: var(--vibrant-red);
    color: #ffffff;
    padding: 18px 35px;
    border-radius: 5px; 
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
     transition: transform 0.2s ease, background-color 0.3s ease !important;
}

.btn-contact-main:hover {
    background-color: #a63d3d !important; 
    transform: translateY(-2px); 
    color: var(--white) !important;
}

/* The White Outline Email Button */
.btn-contact-outline {
    background-color: transparent;
    color: #ffffff;
    padding: 18px 35px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.btn-contact-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-3px);
    color: #fff;
}

/* Mobile: Stack them so they are full width */
@media (max-width: 600px) {
    .contact-hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .btn-contact-main, .btn-contact-outline {
        width: 100%;
        justify-content: center;
    }
}


/*End of header*/

/*Section 1*/
.contact-main-section {
    padding: 40px 0 100px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.contact-grid-container {
    width: 80%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

/* Info Box (Left) */
.contact-info-box {
    background: #ffffff;
    padding: 50px;
    border-radius: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.info-header h2 {
    color: #1a2a6c;
    margin-bottom: 15px;
}

.info-items {
    margin: 40px 0;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.info-icon i {
    font-size: 1.5rem;
    color: #e74c3c;
    background: #fff5f4;
    padding: 15px;
    border-radius: 15px;
}

.info-text h4 {
    margin: 0 0 5px 0;
    color: #1a2a6c;
    font-size: 1.1rem;
}
.contact-info-box a{
    text-decoration: none;
    color: #666;
}
.contact-info-box p{
    color: #666;
}


.legal-info-box {
    border-top: 1px solid #eee;
    padding-top: 25px;
}

.legal-info-box h5 {
    color: #1a2a6c;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Form Box (Right) */
/* Fix for the icon dimensions */
.info-icon.icon-fixed {
    width: 55px;  /* Fixed width */
    height: 55px; /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff5f4;
    border-radius: 15px;
    flex-shrink: 0; /* Prevents the box from squeezing */
}

.info-icon.icon-fixed i {
    font-size: 1.3rem;
    color: #e74c3c;
    margin: 0; /* Reset margins */
}

/* Map Wrapper Styling */
.contact-map-wrapper {
    height: 100%;
    min-height: 450px; /* Ensures it looks good on desktop */
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    background: #eee;
}

.contact-map-wrapper iframe {
    display: block;
    filter: grayscale(0.2) contrast(1.1); /* Subtle professional filter */
}

/* Maintain Grid structure */
.contact-grid-container {
    width: 80%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: stretch; /* Makes map and info box same height */
}

/* Mobile Fixes */
@media (max-width: 992px) {
    .contact-grid-container {
        grid-template-columns: 1fr;
    }
    .contact-map-wrapper {
        height: 400px; /* Fixed height for mobile */
        order: 2;
    }
}

@media (max-width: 480px) {
    .contact-info-box {
        padding: 30px 20px; /* Much smaller padding so text doesn't squeeze */
        border-radius: 25px;
    }

    .info-header h2 {
        font-size: 1.8rem;
    }

    .info-item {
        gap: 15px; /* Tighter gap for small screens */
    }

    .info-icon.icon-fixed {
        width: 45px; /* Scale down icons slightly */
        height: 45px;
    }

    .info-icon.icon-fixed i {
        font-size: 1.1rem;
    }

    /* Animation Fix: Force vertical reveal to prevent side-scrolling */
    .svc-reveal-left, .svc-reveal-right {
        transform: translateY(30px) !important;
        opacity: 0;
        transition: all 0.8s ease;
    }

    .svc-reveal-left.active, .svc-reveal-right.active {
        transform: translateY(0) !important;
        opacity: 1;
    }
}


/* Responsive */
@media (max-width: 768px) {
    .contact-hero{
        padding: 40px 0 10px 0!important;
    }
    .contact-main-section{
        padding: 40px 10px;
        margin-bottom: 40px;
    }
    .contact-grid-container{
        width: 100%;
    }
    .contact-hero-container {
        width: 92%;
        padding: 60px 20px;
        border-radius: 30px;
    }
    .contact-quick-links {
        flex-direction: column;
        gap: 15px;
    }
}
/*End of contact*/