/*
Theme Name: Neve Child
Theme URI: https://deine-domain.ch
Description: Child Theme für Neve
Author: Dein Name
Template: neve
Version: 1.0.0
*/

/* Hier kommt dein Custom CSS */

/* GRID */
.wp-block-latest-posts__list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    padding: 0;
    list-style: none;
    margin-top: 40px;
}

/* KARTE */
.wp-block-latest-posts__list li {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 20px rgba(0,0,0,0.06),
        0 1px 3px rgba(0,0,0,0.04);

    display: flex;
    flex-direction: column;
    height: 100%;
}

/* HOVER */
.wp-block-latest-posts__list li:hover {
    transform: translateY(-6px);
    box-shadow:
        0 12px 35px rgba(0,0,0,0.12),
        0 4px 10px rgba(0,0,0,0.08);
}

/* BILD */
.wp-block-latest-posts__featured-image {
    overflow: hidden;
}

.wp-block-latest-posts__featured-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* ZOOM BEI HOVER */
.wp-block-latest-posts__list li:hover img {
    transform: scale(1.05);
}

/* TITEL */
.wp-block-latest-posts__post-title {
    display: block;
    padding: 24px 24px 10px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #111;
    text-decoration: none;
}

/* DATUM */
.wp-block-latest-posts__post-date {
    padding: 0 24px 14px;
    font-size: 14px;
    color: #888;
}

/* TEXT */
.wp-block-latest-posts__post-excerpt {
    padding: 0 24px 24px;
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    flex-grow: 1;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .wp-block-latest-posts__list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .wp-block-latest-posts__list {
        grid-template-columns: 1fr;
    }

    .wp-block-latest-posts__featured-image img {
        height: auto !important;
		width: 100%;
    }
}


/* Responsive Bilder */
.wp-block-latest-posts__featured-image {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.wp-block-latest-posts__featured-image img {
    width: 100%;
    height: clamp(180px, 22vw, 260px);
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* Hover Zoom */
.wp-block-latest-posts__list li:hover img {
    transform: scale(1.05);
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    .wp-block-latest-posts__featured-image img {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .wp-block-latest-posts__featured-image img {
        height: 180px;
    }
}

/* BLOG SEITE */

/* BLOG GRID */
.nv-index-posts {
    display: grid !important;
    gap: 35px;
}

/* BLOG KARTE */
.nv-index-posts .article-content-col {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 20px rgba(0,0,0,0.06),
        0 1px 3px rgba(0,0,0,0.04);

    height: 100%;
}

/* HOVER */
.nv-index-posts .article-content-col:hover {
    transform: translateY(-6px);
    box-shadow:
        0 12px 35px rgba(0,0,0,0.12),
        0 4px 10px rgba(0,0,0,0.08);
}

/* BILD */
.nv-post-thumbnail-wrap img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* ZOOM */
.article-content-col:hover .nv-post-thumbnail-wrap img {
    transform: scale(1.05);
}

/* OVERFLOW */
.nv-post-thumbnail-wrap {
    overflow: hidden;
}

/* CONTENT SPACING */
.blog-entry-content {
    padding: 24px;
}

/* TITEL */
.blog-entry-title,
.entry-title {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
}

/* EXCERPT */
.blog-entry-summary,
.excerpt-wrap {
    line-height: 1.7;
    color: #555;
}


@media (max-width: 768px) {

    .nv-post-thumbnail-wrap img {
        height: 220px;
    }
}

/* BLOG GRID */
.nv-index-posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 35px;
    margin-top: 40px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .nv-index-posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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



/* TEXT LINKS AUSRICHTEN */
.sib-email-area,
.sib-FIRSTNAME-area,
.sib-LASTNAME-area,
.sib-email-area label,
.sib-FIRSTNAME-area label,
.sib-LASTNAME-area label {
    text-align: left !important;
    display: block;
    color: #ddd;
    font-size: 13px;
    margin-bottom: 6px;
}

/* INPUT FELDER */
.sib-email-area input,
.sib-FIRSTNAME-area input,
.sib-LASTNAME-area input {
    width: 100%;
    padding: 12px 14px;

    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);

    background: #ffffff !important; /* wichtig: NICHT dunkel */
    color: #111 !important;

    font-size: 14px;

    outline: none;
    transition: 0.25s ease;
}

/* AUTOFILL FIX (Chrome macht oft dunkel) */
.sib-email-area input:-webkit-autofill,
.sib-FIRSTNAME-area input:-webkit-autofill,
.sib-LASTNAME-area input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #111 !important;
}

/* FOCUS */
.sib-email-area input:focus,
.sib-FIRSTNAME-area input:focus,
.sib-LASTNAME-area input:focus {
    border-color: #999;
    background: #fff !important;
}

/* BUTTON */
.sib-default-btn {
    width: 100%;
    padding: 12px;

    border-radius: 12px;
    border: none;

    background: #111;
    color: #fff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    transition: 0.25s ease;
}

/* BUTTON HOVER */
.sib-default-btn:hover {
    background: #000;
    transform: translateY(-2px);
}