/* =========================
   GRUNDEINSTELLUNGEN
========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
    overflow-x: hidden;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(90%, 1200px);
    margin: 0 auto;
}


/* =========================
   HEADER
========================= */

.header {
    background: #fff;
    position: relative;
    z-index: 10;
}

.header-inner {
    min-height: 92px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding: 16px 0;
}

.logo img {
    max-height: 60px;
    width: auto;
    display: block;
}

.main-link {
    flex-shrink: 0;
}

.main-link a {
    color: #587246;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.main-link a:hover,
.main-link a:focus-visible {
    text-decoration: underline;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 500px;
    background-image: url("images/Header.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-overlay {
    min-height: 500px;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.35);
}

.hero-content {
    color: #fff;
    padding-top: 55px;
    padding-bottom: 55px;
}

.hero h1 {
    max-width: 800px;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.15;
    margin-bottom: 25px;
}

.hero p {
    max-width: 680px;
    font-size: clamp(18px, 2.2vw, 22px);
}

.hero small {
    font-size: 0.58em;
}

.button {
    display: inline-block;
    margin-top: 35px;
    background: #587246;
    color: #fff;
    text-decoration: none;
    padding: 14px 30px;
    width: max-content;
    transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover,
.button:focus-visible {
    background: #465d38;
    transform: translateY(-2px);
}


/* =========================
   GRAFIK-KARUSSELL
========================= */

.graphics-section {
    background: #fff;
    padding: 70px 0 35px;
}

.graphics-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
}

.carousel-viewport {
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    align-items: stretch;
    gap: 25px;
    will-change: transform;
    transition: transform 0.45s ease;
}

.carousel-card {
    flex: 0 0 calc((100% - 50px) / 3);
    min-width: 0;
    background: #f5f5f3;
    border: 1px solid #ddd;
    border-radius: 2px;
    overflow: hidden;
}

.carousel-image-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.carousel-image-wrap {
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f3;
    overflow: hidden;
}

.carousel-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.image-download {
    display: block;
    padding: 12px 16px 14px;
    color: #587246;
    font-size: 14px;
    text-decoration: underline;
    background: #fff;
}

.carousel-image-link:hover .image-download,
.carousel-image-link:focus-visible .image-download {
    color: #465d38;
}


/* Pfeile */

.carousel-arrow {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 1px solid #d8d8d8;
    border-radius: 50%;
    background: #fff;
    color: #587246;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
    background: #587246;
    color: #fff;
    transform: scale(1.05);
}

.carousel-arrow:disabled {
    opacity: 0.35;
    cursor: default;
    transform: none;
}


/* Navigationspunkte */

.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    margin-top: 25px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid #587246;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.carousel-dot.active {
    background: #587246;
}


/* =========================
   ABOUT
========================= */

.about {
    background: #f5f5f3;
    padding: 80px 0;
}

.about-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 60px;
    align-items: center;
}

.about h2 {
    font-size: clamp(28px, 3.2vw, 36px);
    color: #587246;
    margin-bottom: 25px;
}

.about-text p {
    margin-bottom: 20px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-image img {
    width: 100%;
    display: block;
}


/* =========================
   STELLENANGEBOTE
========================= */

.jobs {
    padding: 80px 0;
    background: #fff;
}

.jobs h2 {
    font-size: clamp(28px, 3.2vw, 36px);
    color: #587246;
    margin-bottom: 15px;
}

.jobs-intro {
    max-width: 700px;
    margin-bottom: 45px;
    color: #555;
}

.job-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.job-card {
    min-width: 0;
    background: #f5f5f3;
    border-left: 5px solid #587246;
    padding: 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.job-card h3 {
    font-size: 23px;
    color: #333;
    margin-bottom: 12px;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 25px;
    margin-bottom: 15px;
    color: #587246;
    font-size: 15px;
    font-weight: 600;
}

.job-description {
    color: #555;
    margin: 0;
}

.job-contact {
    margin-top: 45px;
    padding: 30px;
    background: #f5f5f3;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.job-contact-text h3 {
    font-size: 20px;
    color: #587246;
    margin-bottom: 8px;
}

.job-contact-text p {
    margin: 2px 0;
    color: #555;
}

.job-button {
    display: inline-block;
    background: #587246;
    color: #fff;
    text-decoration: none;
    padding: 13px 25px;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}

.job-button:hover,
.job-button:focus-visible {
    background: #465d38;
    transform: translateY(-2px);
}

.jobs-loading,
.jobs-empty,
.jobs-error {
    padding: 20px 0;
    color: #666;
}


/* =========================
   FOOTER
========================= */

footer {
    background: #333;
    color: #fff;
    padding: 30px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #587246;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {

    .carousel-card {
        flex-basis: calc((100% - 25px) / 2);
    }

    .carousel-image-wrap {
        height: 500px;
    }
}


/* =========================
   KLEINER TABLET / SMARTPHONE
========================= */

@media (max-width: 700px) {

    .container {
        width: min(92%, 1200px);
    }

    .header-inner {
        min-height: auto;
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 15px 0;
    }

    .logo img {
        max-height: 50px;
    }

    .hero,
    .hero-overlay {
        min-height: 420px;
    }

    .hero-content {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .hero h1 {
        margin-bottom: 18px;
    }

    .hero p {
        max-width: 100%;
    }

    .graphics-section {
        padding-top: 50px;
    }

    .graphics-carousel {
        gap: 8px;
    }

    .carousel-card {
        flex-basis: 100%;
    }

    .carousel-image-wrap {
        height: auto;
        min-height: 0;
    }

    .carousel-image-wrap img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .carousel-arrow {
        width: 38px;
        height: 38px;
        font-size: 21px;
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .job-grid {
        grid-template-columns: 1fr;
    }

    .job-contact {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-button {
        width: 100%;
        text-align: center;
        white-space: normal;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        gap: 12px 20px;
    }
}


/* =========================
   KLEINE SMARTPHONES
========================= */

@media (max-width: 420px) {

    .hero,
    .hero-overlay {
        min-height: 390px;
    }

    .carousel-arrow {
        width: 34px;
        height: 34px;
        font-size: 19px;
    }

    .graphics-carousel {
        gap: 5px;
    }

    .carousel-track {
        gap: 0;
    }

    .carousel-card {
        flex-basis: 100%;
    }

    .job-card {
        padding: 20px;
    }

    .job-contact {
        padding: 20px;
    }
}


/* =========================
   REDUZIERTE BEWEGUNG
========================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .carousel-track,
    .button,
    .job-button,
    .job-card,
    .carousel-arrow {
        transition: none;
    }
}
