/*
 Theme Name:   Hello Elementor Child
 Theme URI:    https://male-dein-unikat.de
 Description:  Child Theme für male-dein-unikat.de mit angepasstem Blog-Design
 Author:       male-dein-unikat.de
 Template:     hello-elementor
 Version:      1.0.0
 Text Domain:  hello-elementor-child
*/

/* ========================================
   Blog Archive & Single Post Styles
   Farbpalette:
   - Hintergrund: #FCFAF5 (warmes Creme)
   - Karten: #FFFFFF
   - Primärtext: #363636
   - Sekundärtext: #5E5A49
   - Akzent: #CA533A (Terracotta)
   - Gold: #B29146
   - Hover/CTA: #EA8B17 (Orange)
   - Hellgrau: #F2EFE7
   - Fonts: "Catamaran" (Body), "Imperial Script" (Deko)
   ======================================== */

/* --- Page Background --- */
body.blog,
body.archive,
body.single-post {
    background-color: #FCFAF5;
}

/* ========================================
   Blog Archive
   ======================================== */

.blog-archive-wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 50px 20px 80px;
}

.blog-archive-wrap .page-header {
    text-align: center;
    margin-bottom: 45px;
    padding-bottom: 25px;
}

.blog-archive-wrap .page-header .entry-title {
    font-family: "Imperial Script", cursive;
    font-size: 3rem;
    font-weight: 400;
    color: #CA533A;
    margin: 0 0 8px;
}

.blog-archive-wrap .archive-description {
    font-family: "Catamaran", sans-serif;
    color: #5E5A49;
    font-size: 1rem;
    margin-top: 8px;
    line-height: 1.6;
}

/* --- Post Grid --- */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

/* --- Post Card --- */
.blog-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(54, 54, 54, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: 0 4px 20px rgba(54, 54, 54, 0.1);
    transform: translateY(-2px);
}

/* Thumbnail */
.blog-card__thumbnail {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #F2EFE7;
}

.blog-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__thumbnail img {
    transform: scale(1.03);
}

/* Card Body */
.blog-card__body {
    padding: 22px 26px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Meta (Date, Category) */
.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Catamaran", sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: #B29146;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.blog-card__meta .separator {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #B29146;
    display: inline-block;
}

/* Title */
.blog-card__title {
    font-family: "Catamaran", sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 10px;
    color: #363636;
}

.blog-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card__title a:hover {
    color: #CA533A;
}

/* Excerpt */
.blog-card__excerpt {
    font-family: "Catamaran", sans-serif;
    font-size: 0.92rem;
    line-height: 1.65;
    color: #5E5A49;
    margin: 0 0 18px;
    flex: 1;
}

.blog-card__excerpt p {
    margin: 0;
}

/* Read More */
.blog-card__readmore {
    font-family: "Catamaran", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #CA533A;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease, color 0.2s ease;
}

.blog-card__readmore:hover {
    gap: 10px;
    color: #EA8B17;
}

.blog-card__readmore svg {
    width: 14px;
    height: 14px;
}

/* --- Pagination --- */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #F2EFE7;
}

.blog-pagination a,
.blog-pagination span {
    font-family: "Catamaran", sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-pagination a {
    color: #5E5A49;
    background: transparent;
}

.blog-pagination a:hover {
    color: #CA533A;
    background: rgba(202, 83, 58, 0.06);
}

.blog-pagination span.current {
    color: #ffffff;
    background: #CA533A;
}

/* ========================================
   Single Post
   ======================================== */

.single-post-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 45px 20px 80px;
}

.single-post-wrap .page-header {
    text-align: center;
    margin-bottom: 35px;
}

.single-post-wrap .post-meta-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-family: "Catamaran", sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #B29146;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}

.single-post-wrap .post-meta-top .separator {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #B29146;
    display: inline-block;
}

.single-post-wrap .page-header .entry-title {
    font-family: "Catamaran", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #363636;
    line-height: 1.3;
    margin: 0;
}

.single-post-wrap .post-featured-image {
    margin-bottom: 35px;
    border-radius: 8px;
    overflow: hidden;
}

.single-post-wrap .post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content */
.single-post-wrap .page-content {
    font-family: "Catamaran", sans-serif;
    font-size: 1.02rem;
    line-height: 1.8;
    color: #363636;
}

.single-post-wrap .page-content p {
    margin-bottom: 1.3em;
}

.single-post-wrap .page-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #363636;
    margin-top: 1.8em;
    margin-bottom: 0.7em;
}

.single-post-wrap .page-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #363636;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.single-post-wrap .page-content a {
    color: #CA533A;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.single-post-wrap .page-content a:hover {
    color: #EA8B17;
}

.single-post-wrap .page-content blockquote {
    border-left: 3px solid #B29146;
    margin: 1.8em 0;
    padding: 0.8em 1.4em;
    background: #F2EFE7;
    font-style: italic;
    color: #5E5A49;
    border-radius: 0 6px 6px 0;
}

.single-post-wrap .page-content img {
    border-radius: 6px;
    max-width: 100%;
    height: auto;
}

/* Tags */
.single-post-wrap .post-tags {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid #F2EFE7;
}

.single-post-wrap .post-tags .tag-links a {
    display: inline-block;
    padding: 4px 12px;
    margin: 3px 3px 3px 0;
    background: #F2EFE7;
    color: #5E5A49;
    border-radius: 3px;
    text-decoration: none;
    font-family: "Catamaran", sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.single-post-wrap .post-tags .tag-links a:hover {
    background: #CA533A;
    color: #ffffff;
}

/* Post Navigation */
.single-post-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px solid #F2EFE7;
}

.single-post-nav a {
    font-family: "Catamaran", sans-serif;
    font-size: 0.88rem;
    color: #5E5A49;
    text-decoration: none;
    transition: color 0.2s ease;
    max-width: 45%;
}

.single-post-nav a:hover {
    color: #CA533A;
}

.single-post-nav .nav-label {
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #B29146;
    margin-bottom: 4px;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .blog-archive-wrap {
        padding: 35px 16px 50px;
    }

    .blog-archive-wrap .page-header .entry-title {
        font-size: 2.2rem;
    }

    .single-post-wrap .page-header .entry-title {
        font-size: 1.5rem;
    }

    .single-post-wrap {
        padding: 25px 16px 50px;
    }

    .single-post-nav {
        flex-direction: column;
    }

    .single-post-nav a {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .blog-card__body {
        padding: 16px 18px 20px;
    }

    .blog-card__title {
        font-size: 1.05rem;
    }
}

/* ========================================
   Elementor Single Posts - Centering & Spacing
   (for posts built with Elementor editor)
   ======================================== */

body.single-post .elementor[data-elementor-post-type="post"] {
    max-width: 800px;
    margin: 40px auto 60px;
    padding: 0 20px;
}

body.single-post .elementor[data-elementor-post-type="post"] .e-con-full {
    --padding-left: 0px;
    --padding-right: 0px;
}

/* Improve typography for Elementor post content */
body.single-post .elementor[data-elementor-post-type="post"] .elementor-widget-text-editor {
    font-family: "Catamaran", sans-serif;
    font-size: 1.02rem;
    line-height: 1.8;
    color: #363636;
}

body.single-post .elementor[data-elementor-post-type="post"] h1,
body.single-post .elementor[data-elementor-post-type="post"] h2,
body.single-post .elementor[data-elementor-post-type="post"] h3,
body.single-post .elementor[data-elementor-post-type="post"] h4 {
    color: #363636;
    font-family: "Catamaran", sans-serif;
}

@media (max-width: 768px) {
    body.single-post .elementor[data-elementor-post-type="post"] {
        max-width: 100%;
        margin: 25px auto 40px;
        padding: 0 16px;
    }
}
