/*
 Theme Name:   Digi Oeko Regio Child Theme
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* Arrow Image with Solid White Shadow */
.arrow-shadow {
    filter:  
            drop-shadow(-2px 1px 0px white) 
            drop-shadow(-2px 2px 0px white)
}

/* Hero title  */
.hero-title h1{
    background-color: #ffffff; /* Replace with your desired background color */
    display: inline; /* Ensures the background only wraps the text content */
}

/* Hero title with indent  */
.hero-title-indent h1 {
    line-height: 1;
}

.hero-title-indent h1 .line {
    background-color: #ffffff;
    padding: 4px 8px;
    display: inline-block;
    margin: 0px 0; /* Small gap between lines */
	z-index: 0;
}

.hero-title-indent h1 .line:first-child {
    margin-left: -25px; /* Extra padding for first line with arrow */
}


/* Heading with Arrow (Orange - your existing code) */
.arrow-heading {
    position: relative;
    margin-left: 0px;
    text-indent: 40px;
}
.arrow-heading::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 26px;
    width: 36px;
    height: 36px;
    background-image: url('https://digioekoregio.dev.sixhop.net/wp-content/uploads/2025/12/DOR_Element_Pfeile.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* White Arrow Modifier */
.arrow-heading.arrow-white::before {
    filter: brightness(0) invert(1);
}

/* Arrow on top of section */
.arrow-top {
	position: relative;
}

.arrow-top::before {
	
	 content: '';
    position: absolute;
    left: 50%;
    top: -20px;
	transform: translateX(-50%);
    width: 40px;
    height: 40px;
	z-index: 10;
    background-image: url('https://digioekoregio.dev.sixhop.net/wp-content/uploads/2025/12/DOR_Element_Pfeil_unten.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

                      
}

/* Import Caveat Font */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&display=swap');

/* =============================================
   News Section FacetWP - Fixed
   ============================================= */

/* Equal height rows */
.fwpl-layout .fwpl-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
}
.fwpl-layout .fwpl-col {
    align-self: stretch !important;
}

/* Card */
.fwpl-col {
    background: #fff !important;
    border: 3px solid #EA7101 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
}
.fwpl-col:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 30px rgba(234, 113, 1, 0.25) !important;
}
.fwpl-item {
    border: none !important;
    background: transparent !important;
}

/* Featured Image */
.news-featured-img {
    position: relative !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    height: 240px !important;
    overflow: hidden !important;
    background: #d1d5db !important;
}
.news-featured-img img {
    width: 100% !important;
    height: 240px !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
}
.news-featured-img::after {
    content: '' !important;
    position: absolute !important;
    top: 18px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 42px !important;
    height: 42px !important;
    background: #fff url('https://digioekoregio.dev.sixhop.net/wp-content/uploads/2025/12/DOR_Element_Pfeil_unten.svg') center/24px no-repeat !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    z-index: 10 !important;
}

/* Title — 2 lines, fixed height */
.news-post-title {
    padding: 22px 25px 10px !important;
    flex-shrink: 0 !important;
    height: 5.2em !important;
    overflow: hidden !important;
}
.news-post-title h3 {
    font-size: 19px !important;
    font-weight: 700 !important;
    font-family: 'Open Sans', sans-serif !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    text-align: center !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}
.news-post-title h3 a { color: #333 !important; text-decoration: none !important; }
.news-post-title h3 a:hover { color: #EA7101 !important; }

/* Excerpt — 4 lines with natural fade at bottom */
.news-post-excerpt {
    padding: 0 25px !important;
    flex-shrink: 0 !important;
    position: relative !important;
    height: 7em !important;
    overflow: hidden !important;
}
/* Fade out effect instead of hard cut */
.news-post-excerpt::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 2em !important;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1)) !important;
    pointer-events: none !important;
}
.news-post-excerpt p {
    font-size: 14px !important;
    line-height: 1.65 !important;
    color: #666 !important;
    margin: 0 !important;
    text-align: left !important;
}
/* Hide built-in WordPress Weiterlesen link */
.news-post-excerpt a {
    display: none !important;
}

/* Button — pinned to bottom */
.news-read-more {
    flex-shrink: 0 !important;
    margin-top: auto !important;
    padding: 16px 25px 25px !important;
    text-align: center !important;
    display: block !important;
}
.news-read-more a {
    display: inline-block !important;
    background: #808080 !important;
    color: #fff !important;
    padding: 8px 30px !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    font-size: 24px !important;
    font-family: 'Caveat', cursive !important;
    font-weight: 400 !important;
    margin: 0 auto !important;
    transition: all 0.3s ease !important;
}
.news-read-more a:hover {
    background: #666 !important;
    color: #fff !important;
    transform: scale(1.05) !important;
}

/* Filter Buttons */
.news-filters {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-bottom: 50px !important;
}
.news-filters .facetwp-facet {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
}
.news-filters .facetwp-radio {
    background: #fff !important;
    border: 2px solid #EA7101 !important;
    padding: 10px 24px !important;
    border-radius: 20px !important;
    color: #333 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}
.news-filters .facetwp-radio:hover { background: #FFF5EE !important; }
.news-filters .facetwp-radio.checked { background: #EA7101 !important; color: #fff !important; }

/* Pagination */
.facetwp-pager {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 40px !important;
}
.facetwp-page {
    padding: 10px 18px !important;
    background: #fff !important;
    border: 2px solid #EA7101 !important;
    color: #EA7101 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}
.facetwp-page.active,
.facetwp-page:hover { background: #EA7101 !important; color: #fff !important; }

@media (max-width: 768px) {
    .news-filters { flex-direction: column !important; }
}


/* ── Button fallback: hide empty button, style via JS workaround ── */
/* When FacetWP button is empty, hide the empty space */
.fwpl-item.is-empty.news-read-more {
    display: none !important;
}

/* Make entire card clickable as fallback via the title link */
.fwpl-col {
    position: relative !important;
}
.news-post-title h3 a::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
}
/* Keep other links above the overlay */
.news-read-more {
    position: relative !important;
    z-index: 2 !important;
}