/* Globale Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #333333;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Logo */
#logo-section {
    text-align: center;
    padding: 40px 20px 30px;
    background: #f8f9fa;
}

.logo-img {
    max-width: 400px;
    height: auto;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Über mich */
.about-section {
    background: #ffffff;
    padding: 80px 20px;
    color: #333333;
    max-width: 1200px;
    margin: 0 auto;
}

.about-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #0066cc;
    text-align: center;
}

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

.about-text {
    flex: 1;
    text-align: center;
}

#typing-effect {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555555;
    font-weight: 400;
    max-width: 900px;
    margin: 0 auto;
}

/* Swap-In Animation (Abwechselnd links/rechts) */
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Dienstleistungen */
.services-section {
    background: #f8f9fa;
    padding: 80px 20px;
    text-align: center;
}

.services-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: #0066cc;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-item {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    cursor: pointer;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 102, 204, 0.15);
    border-color: #0066cc;
}

.service-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 24px 0 16px;
    color: #0066cc;
}

.service-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666666;
    margin: 0;
}

/* Animation abwechselnd von links und rechts */
.service-item.animate-left {
    animation: slideInLeft 1s forwards ease-in-out;
}

.service-item.animate-right {
    animation: slideInRight 1s forwards ease-in-out;
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.service-item:hover .service-image {
    transform: scale(1.05);
}

/* Kontakt */
.contact-section {
    background: #ffffff;
    color: #333333;
    padding: 80px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #0066cc;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 2px solid #e0e0e0;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #333333;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999999;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
    font-size: 1rem;
}

.contact-form button {
    background: #0066cc;
    color: #ffffff;
    border: none;
    padding: 16px 50px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-form button:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

.contact-form button:active {
    transform: translateY(0);
}

/* WhatsApp Button und E-Mail Button */
.contact-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.whatsapp-button, .email-button {
    background: #25D366;
    color: white;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.email-button {
    background: #0066cc;
}

.whatsapp-button i, .email-button i {
    font-size: 24px;
}

.whatsapp-button:hover {
    background: #20ba5a;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

.email-button:hover {
    background: #0052a3;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.3);
}

.whatsapp-button:active, .email-button:active {
    transform: translateY(-1px);
}

/* Standort */
.location-section {
    background: #f8f9fa;
    color: #333333;
    padding: 80px 20px;
    text-align: center;
}

.location-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #0066cc;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

/* Impressum */
.impressum-section {
    background: #ffffff;
    color: #333333;
    padding: 60px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.impressum-section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #0066cc;
}

.impressum-section p {
    line-height: 1.8;
    color: #555555;
    font-size: 1rem;
    max-width: 800px;
    margin: 10px auto;
}

footer {
    background: #f8f9fa;
    color: #666666;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

footer p {
    margin: 0;
    font-size: 0.95rem;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .logo-img {
        max-width: 350px; /* Kleinere Größe für Mobilgeräte */
    }

    .about-section {
        padding: 40px 20px;
    }

    .services-section h2, .about-section h2 {
        font-size: 1.8rem;
    }

    .service-item {
        animation-duration: 2.5s; /* Langsamere Animation in mobiler Ansicht */
    }
}
