/* =====================================================
   FARBPALETTE
===================================================== */

:root {
    --farbe1: #1e1e1e;   /* Text dunkel */
    --farbe2: #ffffff;   /* Weiß */
    --farbe3: #014394;   /* Primär Blau */
    --farbe4: #f4f4f4;   /* Hintergrund hell */
    --farbe5: #cccccc;   /* Linien / Border */
    --farbe6: #e00031;   /* Akzent Rot */
}

/* =====================================================
   RESET & BASIS
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--farbe1);
    background: var(--farbe2);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    margin: 20px 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--farbe3);
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =====================================================
   NAVIGATION
===================================================== */

.navigation {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--farbe2);
    border-bottom: 1px solid var(--farbe5);
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: auto;
}

.nav-logo img {
    height: 50px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--farbe1);
    font-weight: 500;
    position: relative;
    transition: 0.3s ease;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 0;
    background: var(--farbe6);
    transition: 0.3s ease;
}

.nav-menu a:hover {
    color: var(--farbe3);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Mobile Toggle */

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--farbe1);
    transition: 0.3s ease;
}

/* =====================================================
   PROGRESSBAR
===================================================== */

.progressbox {
    width: 100%;
    height: 4px;
    background: var(--farbe4);
}

.progressbar {
    height: 4px;
    width: 0%;
    background: var(--farbe6);
    transition: width 0.1s linear;
}

/* =====================================================
   HERO
===================================================== */

.hero {
    position: relative;
    text-align: center;
    color: var(--farbe2);
}

.hero-image img {
    width: 100%;
    height: 75vh;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 70%;
    left: 0%;
    transform: translate(0%, 0%);
    background: linear-gradient(
        135deg,
        rgba(1, 67, 148, 0.9),
        rgba(224, 0, 49, 0.85)
    );
    padding: 20px 3rem;
    width: 100%;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero h3 {
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.hero p {
    line-height: 1.6;
}

/* =====================================================
   AKTUELLES / NEWS
===================================================== */

/* =====================================================
   AKTUELLES GRID
===================================================== */

.news {
    padding: 6rem 0;
    background: var(--farbe4);
    margin-top: 100px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--farbe3);
    position: relative;
}

.section-title::after {
    content: "";
    width: 60px;
    height: 3px;
    background: var(--farbe6);
    display: block;
    margin: 1rem auto 0;
}

/* GRID LAYOUT */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* CARD DESIGN */

.news-item {
    background: var(--farbe2);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--farbe5);
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.news-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
    flex: 1;
}

.news-content h3 {
    margin-bottom: 1rem;
    color: var(--farbe3);
}

.news-content p {
    color: var(--farbe1);
    line-height: 1.6;
}

/* =====================================================
   LEISTUNGEN
===================================================== */

.services {
    padding: 6rem 0 0 0;
    background: var(--farbe2);
}

/* Header */

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--farbe3);
    margin-bottom: 1rem;
}

.section-subline {
    font-size: 1.1rem;
    color: var(--farbe1);
}

/* Intro */

.services-intro {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
}

.services-intro-cta {
    text-align: center;
    background: var(--farbe4);
    padding: 2rem;
    border-radius: 10px;
}

.btn-primary {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.8rem;
    background: var(--farbe6);
    color: var(--farbe2);
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s ease;
}

.btn-primary:hover {
    background: var(--farbe3);
}

/* Service Blocks */

.service-block {
    padding: 5rem 0;
}

.service-block.light {
    background: var(--farbe4);
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-grid.reverse {
    direction: rtl;
}

.service-grid.reverse .service-content,
.service-grid.reverse .service-image {
    direction: ltr;
}

.service-image img {
    width: 100%;
    border-radius: 12px;
}

.service-content h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--farbe3);
}

.service-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.2rem;
}

.service-content li {
    margin-bottom: 0.4rem;
}

.service-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 992px) {

    .services-intro {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-grid.reverse {
        direction: ltr;
    }
}

/* =====================================================
   REFERENZEN
===================================================== */

.references {
    padding: 6rem 0;
    background: var(--farbe2);
}

/* GRID */

.references-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* CARD */

.reference-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.reference-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

/* Overlay */

.reference-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(1, 67, 148, 0.85),
        rgba(1, 67, 148, 0.2)
    );
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: 0.4s ease;
}

.reference-overlay h3 {
    color: var(--farbe2);
    font-size: 1.1rem;
}

/* Hover */

.reference-item:hover img {
    transform: scale(1.08);
}

.reference-item:hover .reference-overlay {
    opacity: 1;
}


/* =====================================================
   Über uns
===================================================== */

.section-about {
    padding: 60px 20px;
    background-color: var(--farbe4);
    color: var(--farbe1);
    font-family: Arial, sans-serif;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.03);
}

.about-text h1 {
    color: var(--farbe3);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: var(--farbe1);
}

/* =====================================================
   Timeline
===================================================== */

/* Grundlayout */
.section-timeline {
    background-color: var(--farbe2);
    color: var(--farbe3);
    padding: 60px 20px;
    text-align: center;
}

.section-timeline h2 {
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--farbe3);
}

/* Timeline Container */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--farbe3);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Timeline Items */
.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

/* Punkte auf der Linie */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #f5f5f5;
    border-radius: 50%;
    top: 20px;
}

.timeline-item.right::after {
    left: -10px;
}

.timeline-item.left::after {
    right: -10px;
}

/* Content Boxen */
.timeline-content {
    background-color: var(--farbe2);
    color: var(--farbe1);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--farbe3);; /* Highlight-Farbe für Jahre */
}


/* =====================================================
   Stellenanbegote
===================================================== */

.section-lightblue {
    background-color: #e6f0fa;
    padding: 60px 20px;
    font-family: Arial, sans-serif;
    color: #1a1a1a;
}

.section-lightblue .container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-lightblue .section-header h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #003366;
}

.section-lightblue .content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #003366;
}

.section-lightblue .content p,
.section-lightblue .content ul,
.section-lightblue .content address {
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 1rem;
}

.section-lightblue ul {
    padding-left: 20px;
    list-style-type: disc;
}

.section-lightblue ul li {
    margin-bottom: 10px;
}

.section-lightblue a.btn-apply {
    display: inline-block;
    background-color: #003366;
    color: #fff;
    padding: 10px 25px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.section-lightblue a.btn-apply:hover {
    background-color: #0055a5;
}

.section-lightblue address {
    font-style: normal;
    line-height: 1.5;
}


/* =====================================================
   Kontakt
===================================================== */

.section-contact {
    background-color: #f8f8f8;
    padding: 60px 20px;
    font-family: Arial, sans-serif;
    color: #1a1a1a;
}

.section-contact .container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-contact .section-header h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #003366;
}

.section-contact .section-header h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: #0055a5;
}

.contact-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.contact-column {
    flex: 1 1 300px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.contact-column h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #003366;
}

.contact-column h5 {
    font-size: 1.1rem;
    margin-top: 15px;
    margin-bottom: 10px;
    color: #0055a5;
}

.contact-column p {
    line-height: 1.6;
    margin-bottom: 10px;
}

.contact-column a {
    color: #0055a5;
    text-decoration: none;
}

.contact-column a:hover {
    text-decoration: underline;
}


/* =====================================================
   FOOTER
===================================================== */

.footer {
    background-color: #003366;
    color: #ffffff;
    padding: 30px 20px;
    font-family: Arial, sans-serif;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    display: block;
    margin: 0 auto;
}

.footer-copy {
    font-size: 0.9rem;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-agency img {
    margin-top: 10px;
    max-width: 150px;
    height: auto;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 10px;
    }
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1200px) {
    .references-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--farbe2);
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 2rem 0;
        display: none;
        border-top: 1px solid var(--farbe5);
    }

    .nav-menu.active {
        display: flex;
    }

    .hero-image img {
        height: 60vh;
    }

    .hero-content {
        padding: 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-intro {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-grid.reverse {
        direction: ltr;
    }

    .references-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    .about-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-text h1 {
        font-size: 1.8rem;
    }

    .timeline-item {
        width: 100%;
        padding-left: 30px;
        padding-right: 30px;
        text-align: left;
        margin-bottom: 40px;
    }

    .timeline-item.left, .timeline-item.right {
        left: 0;
    }

    .timeline-item::after {
        left: 0;
        top: -10px;
    }

    .timeline-container::after {
        left: 20px;
    }

    .contact-columns {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .hero-content {
        position: relative;
        border-radius: 0px;
    }

    .news {
        margin-top: 0px;
    }

    .references-grid {
        grid-template-columns: 1fr;
    }

    .reference-item img {
        height: 220px;
    }
}
