/* Allgemeine Stile */
:root {
    --primary-color: #059669; /* Smaragdgrün */
    --text-color: #333;
    --light-gray: #f4f4f4;
    --dark-gray: #666;
    --white: #fff;
    --font-family-sans: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-sans);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    margin-bottom: 0.8em;
    line-height: 1.2;
}

h1 {
    font-size: 2.5em;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.5em;
}

p {
    margin-bottom: 1em;
}

ul {
    list-style: none;
    margin-bottom: 1em;
}

ul li {
    margin-bottom: 0.5em;
}

.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.button:hover {
    background-color: #047857; /* Dunkleres Smaragdgrün */
    text-decoration: none;
}

.button.secondary {
    background-color: var(--light-gray);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.button.secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.text-center {
    text-align: center;
}

/* Header */
.header {
    background-color: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo span {
    margin-right: 8px;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 4px 0;
    transition: 0.4s;
}

/* Hero Section */
.hero {
    background-color: var(--light-gray);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 0.5em;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 1.5em;
    color: var(--dark-gray);
}

/* Sections */
.section {
    padding: 60px 0;
    border-bottom: 1px solid var(--light-gray);
}

.section:last-of-type {
    border-bottom: none;
}

.section h2 {
    text-align: center;
    margin-bottom: 1.5em;
    font-size: 2.2em;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

/* Advantages */
.advantage-item {
    text-align: center;
    padding: 20px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

.advantage-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

/* Services Overview */
.services-overview .service-item {
    padding: 30px;
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    text-align: center;
}

.services-overview .service-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

/* CTA Banner */
.cta-banner {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}

.cta-banner h2 {
    color: var(--white);
    margin-bottom: 0.5em;
}

.cta-banner p {
    font-size: 1.2em;
    margin-bottom: 1.5em;
}

.cta-banner .button.primary {
    background-color: var(--white);
    color: var(--primary-color);
}

.cta-banner .button.primary:hover {
    background-color: var(--light-gray);
}

.cta-banner.small {
    padding: 30px 0;
    background-color: var(--light-gray);
    color: var(--text-color);
    border-top: 1px solid var(--primary-color);
}

.cta-banner.small h2 {
    color: var(--primary-color);
}

.cta-banner.small .button.primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.cta-banner.small .button.primary:hover {
    background-color: #047857;
}

/* Leistungsseite */
.service-detail-grid .service-detail-item {
    padding: 20px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
}

.service-detail-grid .service-detail-item h2 {
    text-align: left;
    color: var(--primary-color);
    margin-bottom: 0.8em;
}

.service-detail-grid .service-detail-item ul {
    margin-left: 20px;
    list-style: disc;
}

/* Referenzen */
.reference-grid .reference-item {
    padding: 20px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
}

.reference-grid .reference-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

.reference-grid .reference-item blockquote {
    font-style: italic;
    margin-top: 15px;
    padding-left: 15px;
    border-left: 3px solid var(--primary-color);
    color: var(--dark-gray);
}

/* Karriere */
.job-listings .job-item {
    padding: 20px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    margin-bottom: 20px;
}

.job-listings .job-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

.job-listings .job-item ul {
    margin-left: 20px;
    list-style: disc;
}

/* Über uns */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.team-member {
    text-align: center;
    padding: 20px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
}

.team-member h3 {
    color: var(--primary-color);
    margin-bottom: 0.3em;
}

.team-member p strong {
    display: block;
    margin-bottom: 0.5em;
    color: var(--dark-gray);
}

/* Kontakt */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-family: var(--font-family-sans);
    font-size: 1em;
}

.contact-form textarea {
    resize: vertical;
}

.form-feedback {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

.form-feedback.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.form-feedback.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.contact-info p {
    margin-bottom: 0.5em;
}

.contact-info h2 {
    margin-bottom: 1em;
    color: var(--primary-color);
}

/* Impressum, Datenschutz, AGB */
.section h1 {
    margin-bottom: 1em;
}

.section h2 {
    text-align: left;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    color: var(--primary-color);
}

.section h3 {
    margin-top: 1em;
    margin-bottom: 0.5em;
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 40px 0;
    font-size: 0.9em;
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1em;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8em;
}

.footer-section ul li a {
    color: var(--white);
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--dark-gray);
    padding-top: 20px;
    margin-top: 20px;
    width: 100%;
}

/* 404 Seite */
.error-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-404 h1 {
    font-size: 4em;
    color: var(--primary-color);
}

.error-404 p {
    font-size: 1.2em;
    margin-bottom: 2em;
}

/* Responsive Design (Mobile-first) */
@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }

    .main-nav {
        order: 3;
        flex-basis: 100%;
        display: none;
        text-align: center;
        margin-top: 15px;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 10px 0;
        border-top: 1px solid var(--light-gray);
    }

    .main-nav ul li {
        margin: 10px 0;
    }

    .hamburger-menu {
        display: flex;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 2.2em;
    }

    .hero p {
        font-size: 1em;
    }

    .section {
        padding: 40px 0;
    }

    .section h2 {
        font-size: 1.8em;
    }

    .grid-2, .grid-3, .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer .container {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        text-align: center;
        margin-bottom: 30px;
    }

    .footer-section:last-child {
        margin-bottom: 0;
    }

    .error-404 h1 {
        font-size: 3em;
    }
}

