* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-black: #000000;
    --color-blue: #0A84FF;
    --color-blue-dark: #0066CC;
    --color-blue-light: #66B3FF;
    --color-text: #000000;
    --color-bg: #ffffff;
    --shadow-blue: rgba(10, 132, 255, 0.3);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}

ul, ol {
    padding-left: 1.5rem;
    margin-left: 0;
}

.link {
    color: var(--color-blue);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-blue);
}

/* Ensure nav links without class use new palette */
.nav-menu a {
    text-decoration: none;
    color: var(--color-black);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--color-blue);
}

.mobile-menu-toggle {
    display: none;
}

.nav-menu.active {
    left: 0;
    display: flex;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background: #25D366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-blue) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    color: #fff;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.gradient-text {
    background: linear-gradient(45deg, #fff, var(--color-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-buttons2 {
    display: flex;
    gap: 24px; /* Increased spacing between buttons */
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.cta-buttons {
     display: flex;
     flex-wrap: wrap;
     gap: 15px;
     justify-content: flex-start;
 }

.cta-button {
    margin-top: 10px;
    padding: 12px 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    text-align: center;
}

.cta-button.whatsapp {
    background-color: #25D366;
    color: #fff;
}

.cta-button.whatsapp:hover {
    background-color: #1ebe57;
}

.cta-button.secondary {
    background-color: var(--color-blue);
    color: #fff;
}

.cta-button.secondary:hover {
    background-color: var(--color-blue-dark);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: var(--color-blue);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button:hover {
    background: var(--color-blue);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--shadow-blue);
}

.hero-visual {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
}

.floating-card2 {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    width: 120px;
    height: 120px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.floating-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.floating-card i {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.floating-card span {
    font-weight: 600;
    font-size: 1rem;
}

.floating-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}


.card-1 {
    width: 200px;
    height: 120px;
    top: 50px;
    right: 100px;
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    width: 150px;
    height: 100px;
    top: 200px;
    right: 50px;
    animation: float 6s ease-in-out infinite 2s;
}

.card-3 {
    width: 180px;
    height: 110px;
    top: 350px;
    right: 120px;
    animation: float 6s ease-in-out infinite 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

.textpage {
    padding: 100px 0;
    background: #fff;
}

.textpage-content {
    gap: 4rem;
    margin-bottom: 3rem;
}

/* Services Section */
.services {
    padding: 30px 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-blue);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.service-block {
    margin-bottom: 100px;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 3rem;
}

.service-block.reverse .service-content {
    direction: rtl;
}

.service-block.reverse .service-text {
    direction: ltr;
}

.service-text h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-blue);
    margin-bottom: 1rem;
}

.service-text h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-blue);
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.service-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

.service-image {
    position: relative;
}

.service-image img {
    width: 100%;
    /* height: 300px; */
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-cards {
    display: flex;
    overflow-x: auto;
    overflow-y: visible; /* <- wichtig, verhindert Abschneiden oben/unten */
    padding-top: 30px;    /* optional für Luft */
    padding-bottom: 30px; /* optional etwas mehr Raum für Hover */
    scroll-behavior: smooth;
    position: relative;
}

.card-slider {
    display: flex;
    gap: 2rem;
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    margin-top: 20px;
}


.card-slider-old {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
    gap: 2rem;
    margin-bottom: 30px;
    animation: slide 20s linear infinite;
}

.card-slider::-webkit-scrollbar {
    display: none;
}

.service-card-old {
    min-width: 280px;
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(99, 53, 156, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
    min-height: 360px; /* ensure equal baseline height so CTA aligns */
}


.service-card:hover {
    border-color: var(--color-blue);
    transform: translateY(-15px);
    box-shadow: 0 12px 32px rgba(10, 132, 255, 0.15);
}

.service-card i {
    font-size: 3rem;
    color: var(--color-blue);
    display: block;
    margin: 0 auto 1rem auto;
}

.service-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 1rem;
    min-height: 2.6em; /* reserve up to ~2 lines for headings */
}

.service-card p {
    color: #666;
    line-height: 1.6;
    min-height: 4.8em; /* ~3 lines to normalize description height */
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* About Section */
.about {
    padding: 50px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-blue);
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background: var(--color-black);
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #ffffff;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {

    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .service-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-block.reverse .service-content {
        direction: ltr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .card-slider-old {
        animation: slide 20s linear infinite;
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2rem;
        padding-top: 20px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .service-text h3 {
        font-size: 1.5rem;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
}





/* Card CTA alignment and small button styling */
.service-card .cta-button {
    margin-top: auto;         /* push to bottom of equal-height card */
    margin-bottom: 16px;      /* harmonious gap to the bottom */
}

.cta-button.small {
    background: var(--color-blue);
    color: #fff;
    border: none;
    box-shadow: 0 6px 18px rgba(10, 132, 255, 0.2);
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 16px;         /* harmonious gap above the button */
    justify-content: center; /* center the text horizontally */
}

.cta-button.small:hover {
    background: var(--color-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(10, 132, 255, 0.25);
}

/* Modal styles */
.modal {
    position: fixed;
    inset: 0;
    display: none; /* hidden by default */
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    padding: 20px;
    z-index: 2000;
}

.modal.active {
    display: flex; /* show when active */
}

.modal-dialog {
    background: #fff;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: #333;
    cursor: pointer;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
    padding: 30px;
}

.modal-media img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
}

/* Modal content tweaks: always-visible CTA button and larger spacing for section headings */
.modal .cta-button {
    border: 2px solid var(--color-blue);
    background: #fff; /* visible on white modal via border */
    color: var(--color-blue);
    box-shadow: 0 6px 18px rgba(10, 132, 255, 0.12);
}

.modal .cta-button:hover {
    background: var(--color-blue);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(10, 132, 255, 0.25);
}

/* Increase spacing for strong-paragraph section titles inside modal */
.modal-content p strong {
    display: block;
    margin-top: 16px;   /* larger gap above each section title */
    margin-bottom: 8px; /* a bit of space to the following list */
}

/* Prevent body scroll when modal open */
body.no-scroll {
    overflow: hidden;
}


/* Round corners of hero images */
.hero-visual img {
    border-radius: 16px;
    display: block;
}


/* Responsive: relax fixed heights on very small screens */
@media (max-width: 480px) {
    .service-card { min-height: unset; }
    .service-card h4 { min-height: unset; }
    .service-card p { min-height: unset; }
}


/* Mobile: center hero CTA buttons */
@media (max-width: 768px) {
    .cta-buttons {
        justify-content: center;
    }
}
