/* Reset und Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.slide-in-left.appear {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.slide-in-right.appear {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease-out;
}

.scale-in.appear {
    opacity: 1;
    transform: scale(1);
}

.stagger-delay {
    transition-delay: 0.2s;
}

.stagger-delay-2 {
    transition-delay: 0.4s;
}

.stagger-delay-3 {
    transition-delay: 0.6s;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

/* Performance Optimierungen */
.service__img, .project__img, .about__img, .author-avatar {
    will-change: transform;
}

/* Bessere Hover-Effekte */
.service, .project, .testimonial__item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Parallax-Container für Hero */
.hero {
    overflow: hidden;
}

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

/* Header und Navigation */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.nav__brand h1 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav__link {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav__link:hover {
    color: #3498db;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn--primary {
    background: #3498db;
    color: white;
}

.btn--primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 80px;
}

.hero__content {
    text-align: center;
    margin-bottom: 60px;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero__services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
}

.service-card p {
    opacity: 0.9;
}

/* About Section */
.about {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.about__text h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about__text p {
    font-size: 1.1rem;
    color: #565a5e;
    margin-bottom: 2rem;
}

.stats {
    display: flex;
    gap: 3rem;
}

.stat h3 {
    font-size: 3rem;
    color: #21272e;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #565a5e;
    font-weight: 500;
}

.about__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about__img {
    width: 100%;
    max-width: 500px;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.image-placeholder {
    width: 300px;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #eff2f9;
}

.services__header {
    text-align: center;
    margin-bottom: 4rem;
}

.services__header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.services__header p {
    font-size: 1.1rem;
    color: #565a5e;
    max-width: 600px;
    margin: 0 auto;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.service__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.service__icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service h3 {
    font-size: 1.4rem;
    color: #0d141a;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service p {
    color: #565a5e;
    line-height: 1.6;
}

/* Testimonial Section */
.testimonial {
    padding: 80px 0;
    background: #21272e;
    color: white;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial__item {
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.stars {
    font-size: 1.5rem;
    color: #f39c12;
    margin-bottom: 1.5rem;
}

.testimonial__item blockquote {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial__author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3498db;
}

.testimonial__author cite {
    text-align: left;
    font-style: normal;
    font-weight: 600;
}

.testimonial__author cite span {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: normal;
}

/* Projects Section */
.projects {
    padding: 80px 0;
    background: white;
}

.projects__header {
    text-align: center;
    margin-bottom: 4rem;
}

.projects__header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.projects__header p {
    font-size: 1.1rem;
    color: #565a5e;
    max-width: 600px;
    margin: 0 auto;
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.project {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.project:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.project__img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project:hover .project__img {
    transform: scale(1.05);
}

.project__content {
    padding: 2rem;
    text-align: left;
}

.project__content h3 {
    font-size: 1.4rem;
    color: #0d141a;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.project__content p {
    color: #565a5e;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.project__features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.project__icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: #617da1;
    color: white;
    padding: 60px 0 20px;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer__section h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer__section p {
    opacity: 0.9;
    line-height: 1.6;
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .projects__grid {
        gap: 2rem;
        max-width: 900px;
    }
    
    .project__content {
        padding: 1.5rem;
    }
    
    .project__content h3 {
        font-size: 1.2rem;
    }
    
    .project__content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__subtitle {
        font-size: 1.1rem;
    }
    
    .about__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about__img {
        max-width: 100%;
        height: 250px;
    }
    
    .stats {
        justify-content: center;
    }
    
    .nav__menu {
        display: none;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .testimonials__grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial__author {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .testimonial__author cite {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__services {
        grid-template-columns: 1fr;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    .projects__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
