/* Primary color: rgb(0, 125, 46) */
/* Secondary color: #F0AE07 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #fff;
    border-bottom: 3px solid rgb(0, 125, 46);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: 2px solid rgb(0, 125, 46);
    border-radius: 3px;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: rgb(0, 125, 46);
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.logo a {
    display: block;
}

.logo img {
    height: 50px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

nav a:hover {
    border-bottom-color: rgb(0, 125, 46);
}

/* Hero Section */
.hero {
    background-color: rgb(0, 125, 46);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero h1,
.hero h2 {
    font-size: clamp(24px, 5vw, 36px);
    margin-bottom: 15px;
    font-weight: normal;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: rgb(0, 125, 46);
    color: #fff;
    padding: 10px 15px;
    z-index: 1000;
    text-decoration: none;
}
.skip-link:focus {
    left: 10px;
    top: 10px;
}

.hero p {
    font-size: clamp(15px, 2.5vw, 18px);
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: #F0AE07;
    color: #333;
    padding: 12px 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #d99a06;
}

.btn-secondary {
    background-color: rgb(0, 125, 46);
    color: #fff;
}

.btn-secondary:hover {
    background-color: rgb(0, 100, 36);
}

/* Services Section */
.services {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.services h2 {
    text-align: center;
    font-size: clamp(22px, 4vw, 28px);
    color: rgb(0, 125, 46);
    margin-bottom: 40px;
    font-weight: normal;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: #fff;
    padding: 30px;
    border: 1px solid #ddd;
    border-top: 4px solid rgb(0, 125, 46);
}

.service-card h3 {
    font-size: 18px;
    color: rgb(0, 125, 46);
    margin-bottom: 15px;
    font-weight: bold;
}

.service-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card li {
    font-size: 13px;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    padding-left: 15px;
    position: relative;
}

.service-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: rgb(0, 125, 46);
}

/* About Section */
.about {
    padding: 60px 0;
}

.about h1,
.about h2 {
    text-align: center;
    font-size: clamp(22px, 4vw, 28px);
    color: rgb(0, 125, 46);
    margin-bottom: 40px;
    font-weight: normal;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-text p {
    margin-bottom: 15px;
    text-align: justify;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight {
    background-color: rgb(0, 125, 46);
    color: #fff;
    padding: 20px;
    text-align: center;
}

.highlight .number {
    font-size: 32px;
    font-weight: bold;
    display: block;
}

.highlight .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mission Section */
.mission {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.mission h2 {
    text-align: center;
    font-size: clamp(22px, 4vw, 28px);
    color: rgb(0, 125, 46);
    margin-bottom: 40px;
    font-weight: normal;
}

.mission blockquote {
    text-align: center;
    font-size: clamp(16px, 3vw, 22px);
    font-style: italic;
    color: #555;
    margin-bottom: 40px;
    padding: 20px;
    border-left: 4px solid #F0AE07;
    background-color: #fff;
}

.mission-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mission-point {
    text-align: center;
    padding: 20px;
}

.mission-point h3,
.mission-point h4 {
    color: rgb(0, 125, 46);
    margin-bottom: 10px;
    font-size: 16px;
}

.mission-point p {
    font-size: 14px;
    color: #555;
}

/* Career Section */
.career {
    padding: 60px 0;
}

.career h1,
.career h2 {
    text-align: center;
    font-size: clamp(22px, 4vw, 28px);
    color: rgb(0, 125, 46);
    margin-bottom: 40px;
    font-weight: normal;
}

.job-posting {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 40px;
}

.job-posting h2,
.job-posting h3:first-of-type {
    color: rgb(0, 125, 46);
    margin-bottom: 5px;
    font-size: 20px;
    font-weight: bold;
}

.job-posting .location {
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
}

.job-posting h3,
.job-posting h4 {
    font-size: 14px;
    color: #333;
    margin: 20px 0 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.job-posting ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.job-posting li {
    font-size: 14px;
    margin-bottom: 5px;
}

.job-posting .btn {
    margin-top: 20px;
}

/* Legal pages (Impressum, Datenschutz) */
.legal {
    padding: 60px 0;
}

.legal h1 {
    font-size: clamp(22px, 4vw, 28px);
    color: rgb(0, 125, 46);
    margin-bottom: 40px;
    font-weight: normal;
}

.legal h2 {
    font-size: 18px;
    color: #333;
    margin: 30px 0 10px;
}

.legal p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.legal a {
    color: rgb(0, 125, 46);
}

/* Contact Section */
.contact {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.contact h2 {
    text-align: center;
    font-size: clamp(22px, 4vw, 28px);
    color: rgb(0, 125, 46);
    margin-bottom: 30px;
    font-weight: normal;
}

.contact-info-flex {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-address {
    flex: 1;
}

.contact-address h3 {
    color: rgb(0, 125, 46);
    font-size: 20px;
    margin-bottom: 15px;
}

.contact-address p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 8px;
    color: #333;
}

.contact-details-box {
    background: #fff;
    border: 2px solid rgb(0, 125, 46);
    border-radius: 8px;
    padding: 25px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    flex: 1;
}

.contact-detail {
    margin-bottom: 15px;
}

.contact-detail:last-child {
    margin-bottom: 0;
}

.contact-label {
    display: block;
    font-weight: bold;
    color: rgb(0, 125, 46);
    font-size: 14px;
    margin-bottom: 5px;
}

.contact-detail a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.contact-detail a:hover {
    color: #F0AE07;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    margin-top: auto;
}

footer p {
    font-size: 13px;
    margin-bottom: 5px;
}

/* Responsive */

/* Large desktops */
@media (min-width: 1400px) {
    .container {
        max-width: 1200px;
    }
}

/* Tablets & small laptops */
@media (max-width: 1023px) {
    .nav-toggle {
        display: flex;
    }

    nav {
        display: none;
        width: 100%;
        order: 3;
    }

    nav.is-open {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 5px 0 10px;
    }

    nav a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }

    nav a:hover {
        border-bottom-color: #eee;
        color: rgb(0, 125, 46);
    }

    .service-grid,
    .mission-points {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .contact-info-flex {
        gap: 30px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .service-grid,
    .mission-points,
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-highlights {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .highlight {
        flex: 1;
        min-width: 120px;
    }

    .hero {
        padding: 50px 0;
    }

    .services,
    .about,
    .mission,
    .career,
    .legal,
    .contact {
        padding: 40px 0;
    }

    .contact-info-flex {
        flex-direction: column;
        gap: 25px;
    }

    .job-posting {
        padding: 30px 25px;
    }
}

/* Small phones */
@media (max-width: 479px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 40px 0;
    }

    .services,
    .about,
    .mission,
    .career,
    .legal,
    .contact {
        padding: 30px 0;
    }

    .service-card {
        padding: 20px;
    }

    .job-posting {
        padding: 20px 15px;
    }

    .contact-details-box {
        padding: 20px;
    }

    .about-text p {
        text-align: left;
    }

    .about-highlights {
        flex-direction: column;
    }

    .highlight {
        min-width: unset;
    }

    .btn {
        display: block;
        text-align: center;
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
}