/* 1. GRUNDKONFIGURATION & RESETS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

/* 2. NAVIGATION */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 50px;
    display: block;
}

/* 3. MENÜ-LINKS */
.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #014574;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
    color: #99BF2B;
    border-bottom: 2px solid #99BF2B;
}

.nav-links .btn-contact {
     background-color: #014574;
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 4px;
    border-bottom: none !important;
}

.nav-links .btn-contact:hover {
    background-color: #99BF2B;
    transform: translateY(-2px);
}

/* 5. SEKTIONEN-LAYOUT */
.content-section {
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section.logo {
    text-align: center;
}

.content-section h1 {
    color: #014574;       /* Dein Dunkelblau */
    font-size: 1.2rem;    /* Angemessene Größe für den Firmennamen */
    font-weight: 400;
    margin: 25px auto 0;  /* 25px Abstand zum Logo oben, horizontal zentriert */
    padding-left: 20px;
    max-width: 900px;     /* Verhindert, dass der Text bei sehr breiten Bildschirmen zu lang wird */
    line-height: 1.2;
    text-transform: none; /* Behält Groß-/Kleinschreibung bei */
}

/* Responsive Anpassung für Mobilgeräte */
@media (max-width: 768px) {
    .content-section h1 {
        padding: 0 15px;
        font-size: 0.6rem; 
    }
}

h2 {
    color: #014574;
    font-size: 2.5rem;
    margin-bottom: 30px;
    margin-top: 40px;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: #99BF2B;
}


/* Responsive Anpassung für Mobilgeräte */
@media (max-width: 768px) {
    .content-section h1 {
        padding: 0 15px;
        font-size: 0.6rem; 
    }
}

.info-container {
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 40px;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

/* 6. LEISTUNGEN & KONTAKT GRID */

.services-grid, .contact-grid {
display: grid;
    /* Wir senken den min-Wert von 300px auf 220px, damit 4 Kacheln nebeneinander passen */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 20px; /* Etwas schmalerer Abstand zwischen den Kacheln */
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 0 auto;
}

.service-card, .contact-card {
    background: #fdfdfd;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(1, 69, 116, 0.05);
    border: 1px solid #eee;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover, .contact-card:hover {
    transform: translateY(-5px);
    border-color: #99BF2B;
}

.service-icon {
    font-size: 3rem;
    background: #f0f7f2;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 20px;
}

/* 7. RECHTSTEXTE STYLING */
.legal-text {
    text-align: left;
    width: 100%; /* Nutzt die volle Breite des übergeordneten Containers */
}

.legal-block {
    margin-bottom: 40px;
    width: 100%;
}

.rights-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.right-item {
    background: #f0f7f2;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    border-left: 3px solid #99BF2B;
    font-weight: 600;
}

/* 8. FOOTER */
footer {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-top: 1px solid #ddd;
}

.footer-links {
    margin-top: 20px;
}

.footer-links a {
    margin: 0 15px;
    font-weight: 600;
}

a {
    color: #014574;
    transition: color 0.3s ease;
    text-decoration: none;
}

a:hover {
    color: #99BF2B;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .container { flex-direction: column; height: auto; padding: 20px; }
    .nav-links { margin-top: 20px; gap: 10px; flex-wrap: wrap; justify-content: center; }
    h2 { font-size: 2rem; }
}

/* 9. JOBS SEKTION */
.jobs-container {
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 40px;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.job-header {
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.job-badge {
    background: #99BF2B;
    color: black;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
}

.job-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 25px;
}

.job-list {
    list-style: none;
}

.job-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.job-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #99BF2B;
    font-weight: bold;
}

.initiativ-box {
    margin-top: 40px;
    padding: 25px;
    background: #eef4f8;
    border-radius: 10px;
    border-left: 5px solid #014574;
}

.apply-banner {
    background: #014574;
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
}

.apply-banner a {
    color: #99BF2B;
    font-weight: bold;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .job-grid {
        grid-template-columns: 1fr;
    }
    .jobs-container {
        padding: 20px;
    }
}
