/* =========================
   Layout / Container
========================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/*
.content-area {
    background: #f9fafb;
}
*/

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

.post-hero {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    /* Text am unteren Rand */
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
    border-radius: 12px;
    /* Bild selbst kann abgerundet bleiben */
}

.post-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    /* Bild selbst kann abgerundet bleiben */
}

.post-title-wrapper {
    position: relative;
    width: 100%;
    text-align: center;
    margin-bottom: 0;
    display: inline-block;
    /* passt sich Textbreite an */
}

.post-title-background {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    /* Höhe dynamisch, abhängig vom Text */
    top: 0;
    /* für volle Flexibilität */
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;

    /* 👇 das ist die Lösung */
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.post-title-wrapper h1 {
    position: relative;
    z-index: 2;
    font-size: 2.2rem;
    color: #fff;
    padding: 10px 20px;
    margin: 0;
}



/* =========================
   Single Post
========================= */
.single-post {
    margin-bottom: 60px;
}

.post-title {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.7;
}

.post-content p {
    margin-bottom: 1.2em;
}

/* =========================
   Featured Image (falls noch img genutzt wird)
========================= */
.post-image {
    margin-bottom: 25px;
}

.post-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* =========================
   Section Title
========================= */
.section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
}

/* =========================
   Services Grid
========================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* =========================
   Service Card
========================= */
.service-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    /* transform: translateY(-6px); */
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
}

/* =========================
   Card Image
========================= */

.service-card,
.service-card * {
    box-sizing: border-box;
}

.service-card .card-image {
    width: 100%;
    height: 120px;
    /* feste Höhe für alle Cards */
    overflow: hidden;
    /* falls Bild größer ist */
}

.service-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Bild füllt Container, wird zugeschnitten */
    display: block;
}

/* =========================
   Card Content
========================= */
.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
    /* nur unten Abstand */
    word-break: break-word;
    /* bricht lange Wörter */
}

.card-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}

/* =========================
   Button (CTA)
========================= */
.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: #0073aa;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn:hover {
    background: #005f8d;
    /* transform: translateY(-2px); */
}

/* =========================
   Responsive
========================= */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .post-title-wrapper {
        display: block;
        /* 🔥 wichtig: kein inline-block mehr */
        width: 100%;
        padding: 0 10px;
        /* etwas Luft links/rechts */
    }

    .post-title-wrapper h1 {
        font-size: 1.4rem;
        /* kleiner auf Handy */
        line-height: 1.2;
        word-break: break-word;
        /* 🔥 zwingt Umbruch */
        overflow-wrap: break-word;
    }

    .container {
        padding: 20px 10px;
    }

    .post-hero {
        height: 180px;

    }

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

}