/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
  --primary-color: #2c5aa0;
  --primary-dark: #1e3c72;
  --primary-light: #7492c1;
  --secondary-color: #f39c12;
  --light-gray: #f5f5f7;
  --text-dark: #333;
  --text-gray: #6e6e73;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --gradient-1: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light)100%);
  --shadow: 0 5px 15px rgba(0,0,0,0.1);
  --max-width: 1200px;
}

html, body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

main {
    flex: 1;
    margin-top:40pt
}


/* Fixierte Navbar mit 40pt Höhe */
.nav-fixed-top {
    position: fixed;
    top: 0;
    width: 100%;
    height: 40pt;
    z-index: 1030;
    background-color: white;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    /*overflow: hidden;*/
}

/* Dropdown bei Hover öffnen und direkt unter dem Link anzeigen */
@media (min-width: 768px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0; /* wichtig: kein Abstand nach oben */
        top: 100%; /* direkt unter dem Link */
    }

    .navbar .dropdown-menu {
        top: 100%;
        left: 0;
    }
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
}

    .cta-button.primary {
        background: var(--secondary-color);
        color: var(--white);
        box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
    }

        .cta-button.primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(243,156,18,0.3);
            
        }

    .cta-button.secondary {
        background: transparent;
        color: var(--white);
        border: 2px solid var(--white);
    }

        .cta-button.secondary:hover {
            /*background: var(--primary-color);*/
            /*color: white;*/
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(243,156,18,0.3);
        }

    .cta-button.large {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
    }

    /* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 5% 80px;
    /*margin-top: 80px;*/
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    font-weight:bold;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-image {
    position: relative;
    opacity: 0;
    transform: translateX(50px);
    animation: fadeInRight 0.8s ease 0.6s forwards;
}

    .hero-image img {
        width: 100%;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    }

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {

    .hero h1 {
        font-size: 2rem;
    }

    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
}


.services {
    padding: 80px 5%;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 1.2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-buttons{
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }

.service-icon {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}

    .service-icon::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
        transform: scale(0);
        transition: transform 0.5s ease;
    }

.service-card:hover .service-icon::after {
    transform: scale(1);
}

.service-content {
    padding: 30px;
    height: 200px;
}

    .service-content h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
        color: var(--primary-color);
    }

    .service-content p {
        color: #666;
        line-height: 1.8;
    }

.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}


.service-detail {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 5% 80px;
    /*margin-top: 80px;*/
    position: relative;
    overflow: hidden;
}

.service-detail-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.service-detail h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    font-weight: bold;
}

.service-detail p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.servie-buttons {
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.service-image {
    position: relative;
    opacity: 0;
    transform: translateX(50px);
    animation: fadeInRight 0.8s ease 0.6s forwards;
}

    .service-image img {
        width: 100%;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    }

/* Contact Section */
.contact {
    padding: 5rem 2rem;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-info p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.25rem;
}

.contact-item p {
    margin: 0;
    color: var(--text-gray);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--light-gray);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

.submit-button {
    padding: 1rem 2rem;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.form-status {
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
    display: none;
    font-weight: 500;
}

.form-status.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-status.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

@media (max-width: 968px) {

    .about-content,
    .service-detail-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    

    .section-title {
        font-size: 2rem;
    }

    
}