/* ============================================
   FRONT PAGE STYLES (Refined to Screenshot)
   ============================================ */

:root {
    --bg-sage-green: #e5e8d2;
    --color-blue: #76adb0;
}

body {
    background-color: var(--color-light-beige);
}

/* Base resets for headings inside the front-page */
h2 {
    color: var(--color-secondary);
}

/* Section 1: Hero */
.hero {
    padding: 80px 0 0;
    background: var(--color-light-beige);
    overflow: hidden;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    /* Center to match layout better */
    gap: 60px;
    min-height: 480px;
}

.hero-content {
    flex: 1;
    padding-bottom: 60px;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.hero-subline {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 40px;
    line-height: 1.4;
}

.btn-terracotta {
    background: var(--color-secondary);
    color: white;
    padding: 16px 32px;
    border-radius: var(--border-radius-pill);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: opacity 0.3s;
}

.btn-terracotta:hover {
    opacity: 0.9;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-main-img {
    width: 100%;
    max-width: 550px;
    object-fit: cover;
    display: block;
    border-radius: 40px;
    /* if it's rounded like in design */
}

/* Section 2: Warum wir diese Arbeit machen */
.why-section {
    padding: 140px 0;
    background: var(--color-light-beige);
}

.why-wrapper {
    display: flex;
    align-items: stretch;
    gap: 120px;
}

.why-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Vertically centered */
}

.why-content h2 {
    font-size: 2.8rem;
    font-weight: 500;
    color: var(--color-secondary);
    /* Terracotta */
    margin-bottom: 30px;
    line-height: 1.2;
}

.why-content p {
    font-size: 1.6rem;
    color: var(--color-text);
    line-height: 1.6;
}

.why-badges {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.why-badge {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    transition: transform 0.2s ease;
    min-height: 150px;
    /* thick rectangles */
}

.why-badge:hover {
    transform: translateY(-5px);
}

.why-badge-green {
    background: var(--color-accent);
}

.why-badge-white {
    background: var(--color-blue);
}

.why-badge-terracotta {
    background: var(--color-secondary);
}

.why-badge-label {
    font-weight: 700;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: white;
    margin-bottom: 12px;
}

.why-badge-text {
    font-size: 1.3rem;
    line-height: 1.2;
    color: var(--color-text);
}

/* Section 3: Unsere Arbeit (Leistungen) */
.services {
    padding: 140px 0;
    background: var(--color-light-beige);
}

.services-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 500;
    margin-bottom: 60px;
    color: var(--color-secondary);
    /* Terracotta */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    padding: 50px 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    /* very soft shadow */
    display: flex;
    flex-direction: column;
    text-align: left;
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--color-primary);
    line-height: 1.3;
}

.service-card p {
    color: #444;
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
    /* Pushes law and link down */
}

.service-law {
    display: block;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 25px;
    font-style: italic;
    font-family: var(--font-gesetze);
}

.read-more {
    font-weight: 600;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-secondary);
    /* Terracotta link */
    transition: opacity 0.2s;
    margin-top: auto;
}

.read-more:hover {
    opacity: 0.7;
}

/* Section 4: Roadmap */
.roadmap-section {
    padding: 100px 0;
    background: var(--color-light-beige);
    text-align: center;
}

.roadmap-title {
    font-size: 2.8rem;
    font-weight: 500;
    margin-bottom: 60px;
    color: var(--color-secondary);
}

.roadmap-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.roadmap-path {
    position: absolute;
    top: -130px;
    /* moved higher to reach the title */
    left: 0;
    width: 100%;
    z-index: 0;
    /* Removed opacity: 0.5 if path-transparent already has the right opacity, let's keep it for now but user might want it full */
}

.roadmap-path img {
    width: 100%;
    height: auto;
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1;
    align-items: end;
    /* align steps based on height */
    padding-top: 140px;
    /* space for the path curve (increased by 40px) */
}

.step-card {
    background: rgba(255, 255, 255, 0.4);
    /* soft semitransparent backgrounds */
    padding: 30px 20px;
    border-radius: var(--border-radius-lg);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-icon {
    margin-bottom: 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-card h3 {
    font-size: 1.7rem;
    margin-bottom: 15px;
    font-weight: 400;
    color: var(--color-primary);
}

.step-card p {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* staggered cards to match the dotted line curve roughly */
.step-1 {
    transform: translateY(80px);
}

.step-1 .step-card {
    background: #eaf0e0;
}

.step-2 {
    transform: translateY(40px);
}

.step-2 .step-card {
    background: #f2eee8;
}

.step-3 {
    transform: translateY(0);
}

.step-3 .step-card {
    background: #e6eff0;
}

.step-4 {
    transform: translateY(-40px);
}

.step-4 .step-card {
    background: #f6eee9;
}


/* Section 6: Gemeinsam etwas bewegen */
.collab-section {
    padding: 120px 0;
    background: var(--color-light-beige);
}

.collab-wrapper {
    display: flex;
    align-items: center;
    gap: 80px;
}

.collab-content {
    flex: 1;
}

.collab-content h2 {
    font-size: 2.8rem;
    font-weight: 500;
    margin-bottom: 30px;
    color: var(--color-primary);
    /* Dark title for standard contrast */
    line-height: 1.2;
}

.collab-content p {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: var(--color-text);
}

.collab-image {
    flex: 1;
}

.collab-image img {
    width: 100%;
    border-radius: 40px;
    display: block;
}

/* Section 7: CTA */
.cta-section {
    padding: 120px 0;
    background: var(--color-secondary);
    /* Terracotta */
    text-align: center;
    color: white;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 30px;
}

.cta-content p {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.cta-disclaimer {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 40px;
}

.btn-white {
    background: white;
    color: var(--color-secondary);
    padding: 16px 36px;
    border-radius: var(--border-radius-pill);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: opacity 0.3s;
}

.btn-white:hover {
    opacity: 0.9;
}


/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {

    .hero-wrapper,
    .why-wrapper,
    .collab-wrapper {
        gap: 40px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .services-grid,
    .werte-grid,
    .roadmap-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .roadmap-path {
        display: none;
    }

    .step-1,
    .step-2,
    .step-3,
    .step-4 {
        transform: none;
    }

    .roadmap-grid {
        padding-top: 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {

    .hero-wrapper,
    .why-wrapper,
    .collab-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .services-grid,
    .werte-grid,
    .roadmap-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .werte-card,
    .step-card {
        padding: 30px;
        min-height: auto;
    }

    .why-content,
    .collab-content {
        margin-bottom: 30px;
    }

    .btn-terracotta,
    .btn-white {
        width: 100%;
        box-sizing: border-box;
    }
}