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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Quote Styles */
.quote {
    font-style: italic;
    font-size: 1.1rem;
    color: #666;
    border-left: 4px solid #007bff;
    padding-left: 1rem;
    margin: 1rem 0;
    background: #e3f2fd;
    padding: 1rem;
    border-radius: 4px;
}

/* Quote in About/Profil Section - rechter Strich */
.about-text .quote {
    border-left: none;
    border-right: 4px solid #007bff;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Services intro text */
.services-intro {
    margin: 1rem 0 2rem 0;
    font-size: 1.1rem;
    color: #555;
}

.services-list ul {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0 0 0;
}

.services-list li {
    color: #007bff;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-left: 2.5rem;
    position: relative;
}

.services-list li:before {
    content: "▶";
    color: #007bff;
    position: absolute;
    left: 1rem;
    font-size: 0.8rem;
    top: 0.1rem;
}

/* About content layout */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}

.about-text {
    display: flex;
    flex-direction: column;
}

/* References scrolling layout */
.references-intro {
    margin: 1rem 0 2rem 0;
    font-size: 1.1rem;
    color: #555;
}

.references-scroll-container {
    overflow: hidden;
    background: #f8f9fa;
    padding: 1rem 0;
    border-radius: 8px;
    margin: 2rem 0;
}

.references-scroll {
    display: flex;
    animation: scroll-left 10s linear infinite;
    gap: 1rem;
}

.reference-box {
    background: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    font-size: 0.95rem;
    color: #333;
    border: 1px solid #e0e0e0;
    flex-shrink: 0;
}

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

.references-scroll:hover {
    animation-play-state: paused;
}

/* Jobs Section */
.jobs {
    background: white;
    padding: 4rem 0;
}

.jobs-content p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Contact Section */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-details h4 {
    color: #007bff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.contact-details p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.contact-right {
    /* margin-top: 2rem; */
}

.contact-form {
    margin-bottom: 2rem;
}

.contact-management {
    padding-top: 1.5rem;
}

.contact-management h5 {
    color: #007bff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.contact-management p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.contact-management strong {
    color: #333;
}

/* Footer */
.footer-impressum {
    margin-bottom: 2rem;
}

.footer-impressum > h5 {
    color: #007bff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: left;
}

.impressum-content {
    max-width: 100%;
    margin: 0;
}


.impressum-liability h5 {
    color: #007bff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.impressum-liability p {
    line-height: 1.7;
    text-align: justify;
}

.footer-copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #444;
    font-size: 0.9rem;
}

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

.footer-copyright a:hover {
    color: #fff;
    text-decoration: underline;
}


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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

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

.nav-logo .logo {
    height: 40px;
    width: auto;
}

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

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

.nav-link:hover {
    color: #007bff;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.lang-btn:hover,
.lang-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 123, 255, 0.8), rgba(0, 86, 179, 0.8)), url('images/used/leistungen.jpg') center/cover no-repeat;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff08" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

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

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

.cta-button {
    background: white;
    color: #007bff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: #f8f9fa;
}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
}

.about-image {
    flex: 0 0 300px;
    max-width: 300px;
    order: 1;
    margin-top: 35px;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
    min-width: 400px;
    order: 2;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    .about-image, .about-text {
        order: unset;
        flex: unset;
        max-width: 100%;
        min-width: unset;
    }
}


/* Services Section */
.services {
    padding: 5rem 0;
}

.services-header {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.services-text {
    flex: 1;
    min-width: 400px;
    order: 1;
}

.services-image {
    flex: 0 0 300px;
    max-width: 300px;
    order: 2;
    margin-top: 25px;
}

.services-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .services-header {
        flex-direction: column;
    }
    .services-text, .services-image {
        order: unset;
        flex: unset;
        max-width: 100%;
        min-width: unset;
    }
}

.service-image {
    margin-bottom: 1.5rem;
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-image {
    flex: 0 0 120px;
    margin-bottom: 0;
}

.service-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.service-content {
    flex: 1;
    text-align: left;
}

.service-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #007bff;
}

.service-content p {
    color: #007bff;
    margin: 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .service-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .service-image {
        flex: unset;
    }
    .service-content {
        text-align: center;
    }
}

/* References Section */
.references {
    padding: 5rem 0;
    background: #f8f9fa;
}

.reference-image {
    margin-bottom: 1.5rem;
}

.reference-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

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

.reference-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.reference-item h4 {
    color: #007bff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.reference-item p {
    color: #666;
}

/* Projects Section */
.projects {
    padding: 5rem 0;
}

.project-image {
    margin-bottom: 1.5rem;
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

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

.project-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-3px);
}

.project-card h4 {
    color: #007bff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-card p {
    color: #666;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: #f8f9fa;
}

.contact-image {
    margin-bottom: 1.5rem;
}

.contact-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h4 {
    color: #007bff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info p {
    color: #666;
    margin-bottom: 1rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #007bff;
}

.contact-form button {
    background: #007bff;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.contact-form button:hover {
    background: #0056b3;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

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

/* AGB Page Styles */
.agb-page {
    padding-top: 100px;
    min-height: calc(100vh - 200px);
    background: #f8f9fa;
}

.agb-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.agb-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.back-link {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 2px solid #3498db;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: #3498db;
    color: white;
}

.agb-content {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.agb-content h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.agb-content h3:first-child {
    margin-top: 0;
}

.agb-content p {
    color: #555;
    margin-bottom: 1rem;
    text-align: justify;
}

.agb-footer {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.agb-footer p {
    color: #666;
    font-style: italic;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    /* AGB Page Mobile */
    .agb-page {
        padding-top: 80px;
    }

    .agb-header h1 {
        font-size: 2rem;
    }

    .agb-content {
        padding: 2rem 1rem;
    }

    .agb-content h3 {
        font-size: 1.3rem;
    }

    .about-content p {
        font-size: 1.1rem;
        color: #666;
    }

    .services-grid,
    .references-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
}