@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Playfair+Display:wght@700;800&display=swap');

:root {
    --primary-green: #064e3b;
    --background-cream: #fffbeb;
    --text-slate-grey: #334155;
    --border-grey: #e2e8f0;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-slate-grey);
    background-color: #ffffff;
    line-height: 1.7;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-green);
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #047857;
}

.section-padding {
    padding: 80px 0;
}

.section-bg-cream {
    background-color: var(--background-cream);
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
}

.line-separator {
    width: 80px;
    height: 3px;
    background-color: var(--primary-green);
    margin: 0 auto 4rem auto;
    border: none;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-green);
    color: #fff;
    border: 2px solid var(--primary-green);
}

.btn-primary:hover {
    background-color: #047857;
    border-color: #047857;
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
    background-color: var(--primary-green);
    color: #fff;
}

/* --- HEADER --- */
#main-header {
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.top-bar {
    background-color: var(--primary-green);
    color: #fff;
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.top-bar a {
    color: #fff;
    font-weight: 500;
}
.top-bar a:hover {
    text-decoration: underline;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-green);
}

.logo span {
    display: block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--text-slate-grey);
    margin-top: -5px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav ul a {
    font-weight: 500;
    color: var(--text-slate-grey);
    padding: 5px 0;
    position: relative;
}

.main-nav ul a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-green);
    transition: width 0.3s ease;
}

.main-nav ul a:hover::after {
    width: 100%;
}

.nav-button {
    border: 2px solid var(--primary-green);
    padding: 8px 16px !important;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background-color: var(--primary-green);
    color: #fff;
}
.nav-button:hover::after {
    display: none;
}

/* --- HERO SECTION --- */
#hero {
    height: 80vh;
    background: linear-gradient(rgba(6, 78, 59, 0.6), rgba(6, 78, 59, 0.6)), url('images/hero-bg.webp') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    color: #fff;
    margin-bottom: 1rem;
}

.hero-content .subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255, 251, 235, 0.9);
}

#hero .btn-primary {
    background-color: var(--background-cream);
    color: var(--primary-green);
    border-color: var(--background-cream);
    font-size: 1.1rem;
}
#hero .btn-primary:hover {
    background-color: transparent;
    color: var(--background-cream);
}


/* --- GRID & CARDS --- */
.grid-container-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background-color: #fff;
    padding: 30px;
    border: 1px solid var(--border-grey);
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
}

/* --- BRANCHENFOKUS --- */
.grid-container-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.branchen-item .icon-placeholder {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.branchen-item h4 {
    margin-bottom: 0.5rem;
}

/* --- ÜBER UNS --- */
.about-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.team-member img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--background-cream);
}

.team-member h4 {
    color: var(--text-slate-grey);
    margin-bottom: 0.2rem;
}

.team-member p {
    font-size: 0.9rem;
    color: #64748b;
}

/* --- BLOG --- */
.blog-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.blog-post {
    border-left: 3px solid var(--primary-green);
    padding-left: 25px;
}

/* --- KARRIERE --- */
.job-opening {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--background-cream);
    padding: 40px;
    border-radius: 5px;
    border: 1px solid var(--border-grey);
}

.job-opening h3 {
    margin-bottom: 0.5rem;
}

.job-opening ul {
    list-style: '✓ ';
    padding-left: 20px;
    text-align: left;
    margin: 2rem auto;
    max-width: 400px;
}
.job-opening ul li {
    margin-bottom: 0.5rem;
}

/* --- KONTAKT & FORMULAR --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info h3 {
    margin-bottom: 2rem;
}

.contact-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 5px;
    border: 1px solid var(--border-grey);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-grey);
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.form-group-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.form-group-checkbox input[type="checkbox"] {
    margin-top: 5px;
    width: auto;
}

.form-group-checkbox label {
    font-size: 0.85rem;
    line-height: 1.5;
}

.form-error-message {
    color: #dc2626;
    margin-top: 1rem;
    display: none;
}

.contact-form button {
    width: 100%;
    font-size: 1.1rem;
}

.map-container {
    margin-top: 50px;
}

/* --- FOOTER --- */
#main-footer {
    background-color: var(--text-slate-grey);
    color: #cbd5e1;
    padding: 50px 0 20px 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
}

.footer-bottom {
    border-top: 1px solid #475569;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

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

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }

    .about-us-content {
        grid-template-columns: 1fr;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav .container {
        flex-direction: column;
        gap: 15px;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    #hero {
        height: 60vh;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}