/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/

@font-face {
    font-family: 'Neue Montreal';
    src: url('./fonts/NeueMontreal-Regular.eot');
    src: local('Neue Montreal Regular'), local('NeueMontreal-Regular'),
        url('./fonts/NeueMontreal-Regular.eot?#iefix') format('embedded-opentype'),
        url('./fonts/NeueMontreal-Regular.woff2') format('woff2'),
        url('./fonts/NeueMontreal-Regular.woff') format('woff'),
        url('./fonts/NeueMontreal-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Montreal';
    src: url('./fonts/NeueMontreal-Medium.eot');
    src: local('Neue Montreal Medium'), local('NeueMontreal-Medium'),
        url('./fonts/NeueMontreal-Medium.eot?#iefix') format('embedded-opentype'),
        url('./fonts/NeueMontreal-Medium.woff2') format('woff2'),
        url('./fonts/NeueMontreal-Medium.woff') format('woff'),
        url('./fonts/NeueMontreal-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Montreal';
    src: url('./fonts/NeueMontreal-Bold.eot');
    src: local('Neue Montreal Bold'), local('NeueMontreal-Bold'),
        url('./fonts/NeueMontreal-Bold.eot?#iefix') format('embedded-opentype'),
        url('./fonts/NeueMontreal-Bold.woff2') format('woff2'),
        url('./fonts/NeueMontreal-Bold.woff') format('woff'),
        url('./fonts/NeueMontreal-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

a { font-family: 'Neue Montreal', sans-serif;}
p { font-family: 'Neue Montreal', sans-serif; }
strong { font-family: 'Neue Montreal', sans-serif; }
strong a { font-family: 'Neue Montreal', sans-serif; text-decoration: underline }
li { font-family: 'Neue Montreal', sans-serif; }
span { font-family: 'Neue Montreal', sans-serif; }
h1 { font-family: 'Neue Montreal', sans-serif; }
h2, h3, h4, h5, h6 a { font-family: 'Neue Montreal', sans-serif; }

.wp-block-search__label { font-family: 'Neue Montreal', Arial; padding-bottom: 25px; }
.wp-block-archives__label { font-family: 'Neue Montreal', Arial; font-size: 14px; padding-bottom: 25px; }

.nf-after-field .nf-error-msg { font-family: 'Neue Montreal', Arial; }
.nf-error-msg, .ninja-forms-req-symbol { font-family: 'Neue Montreal', Arial; }
.nf-after-field .nf-error-msg { font-family: 'Neue Montreal', Arial; }
body[data-form-submit=regular] .container-wrap button[type=submit], body[data-form-submit=regular] .container-wrap input[type=submit] { font-family: 'Neue Montreal', Arial; }

.nectar-badge.text-color-FFFFFF .nectar-badge__inner { font-family: 'Neue Montreal', sans-serif;  font-weight: 700;}


body .post.masonry-blog-item .post-meta .date { font-family: 'Neue Montreal', Arial; }
.excerpt { font-family: 'Neue Montreal', sans-serif; }

.headline { font-family: 'Neue Montreal', sans-serif; font-weight: 700; font-size: 24px; }

/* Link Styling nur für Content-Bereiche (nicht Header, Footer, Sidebar, Navigation) */
.text-content a,
#content-wrap .post-content a,
#content-wrap .entry-content a,
.container-wrap .post-content a,
.container-wrap .entry-content a,
.container-wrap .wpb_text_column a,
.container-wrap .wpb_wrapper a,
.single-post article .content-inner a,
.page article .content-inner a,
main .post-content a,
main .entry-content a {
  color: #2C963D;
  text-decoration: none;
  transition: color 0.3s ease;
}

.text-content a:hover,
#content-wrap .post-content a:hover,
#content-wrap .entry-content a:hover,
.container-wrap .post-content a:hover,
.container-wrap .entry-content a:hover,
.container-wrap .wpb_text_column a:hover,
.container-wrap .wpb_wrapper a:hover,
.single-post article .content-inner a:hover,
.page article .content-inner a:hover,
main .post-content a:hover,
main .entry-content a:hover {
  color: #152350;
  text-decoration: underline;
}

.text-content a:visited,
#content-wrap .post-content a:visited,
#content-wrap .entry-content a:visited,
.container-wrap .post-content a:visited,
.container-wrap .entry-content a:visited,
.container-wrap .wpb_text_column a:visited,
.container-wrap .wpb_wrapper a:visited,
.single-post article .content-inner a:visited,
.page article .content-inner a:visited,
main .post-content a:visited,
main .entry-content a:visited {
  color: #2C963D;
}

/* Ausnahmen: Diese Elemente sollen nie betroffen sein */
#header-outer a,
#header-space a,
nav a,
.menu a,
#footer-outer a,
.widget a,
#sidebar a,
.nectar-button a,
.button a,
.wpb_button a,
a.button,
a.nectar-button {
  color: inherit !important;
}

/* Blog-/Portfolio-Filter: Nur Theme-Unterstreichung (:after), kein text-decoration vom Link-CSS */
.nectar-post-grid-filters a,
.nectar-post-grid-filters a:hover,
.nectar-post-grid-filters a.active,
.nectar-post-grid-filters a:visited,
.portfolio-filters a,
.portfolio-filters-inline a {
  text-decoration: none !important;
}

#header-outer a:hover,
#header-space a:hover,
nav a:hover,
.menu a:hover,
#footer-outer a:hover,
.widget a:hover,
#sidebar a:hover,
.nectar-button a:hover,
.button a:hover,
.wpb_button a:hover,
a.button:hover,
a.nectar-button:hover {
  color: inherit !important;
  text-decoration: none !important;
}

/* Spezielle Klasse für Links auf grünem Hintergrund */
.green-bg-text a,
.text-on-green a {
  color: #fff !important;
  text-decoration: underline !important;
  transition: all 0.3s ease;
}

.green-bg-text a:hover,
.text-on-green a:hover {
  color: #f0f0f0 !important;
  text-decoration: underline !important;
  opacity: 0.9;
}

.green-bg-text a:visited,
.text-on-green a:visited {
  color: #fff !important;
}

/* Klasse um Standard-Link-Styles zu deaktivieren */
.no-custom-links a,
.no-custom-links a:hover,
.no-custom-links a:visited {
  color: inherit !important;
  text-decoration: inherit !important;
}




.post-area.masonry .post .post-content {
    padding-left: 0 !important;
    background: #f8f8f8;
    border-radius: 10px; 
   }

.masonry.material .masonry-blog-item .inner-wrap {
    background: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.masonry.material .masonry-blog-item .inner-wrap:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #e0e0e0;
}

/* Blog Post Content Styling */
.post-area.masonry .post .post-content {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.post-area.masonry .post .post-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #e0e0e0;
}

/* ===================================
   WHITEPAPER GRID STYLES
   =================================== */

.whitepaper-grid {
    display: grid;
    gap: 30px;
    padding: 20px 0 40px;
    width: 100%;
}

/* Standard: 3 Spalten */
.whitepaper-grid,
.whitepaper-grid-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* 2 Spalten */
.whitepaper-grid-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* 4 Spalten */
.whitepaper-grid-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive Anpassungen */
@media (max-width: 1200px) {
    .whitepaper-grid-columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 990px) {
    .whitepaper-grid,
    .whitepaper-grid-columns-3,
    .whitepaper-grid-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .whitepaper-grid,
    .whitepaper-grid-columns-2,
    .whitepaper-grid-columns-3,
    .whitepaper-grid-columns-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.whitepaper-card {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    position: relative;
}

.whitepaper-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #e0e0e0;
}

.whitepaper-card-icon {
    margin-bottom: 25px;
}

.whitepaper-card-icon svg {
    width: 64px;
    height: 64px;
    color: #333;
}

.whitepaper-card-label {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 25px;
    font-family: 'Neue Montreal';
}

.whitepaper-card-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 30px;
    color: #000;
}

.whitepaper-card-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    flex-grow: 1;
    font-family: 'Neue Montreal';
}

.whitepaper-card-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #000;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 50px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.whitepaper-card-button:hover {
    background: #333;
    gap: 15px;
}

.whitepaper-card-button svg {
    width: 18px;
    height: 18px;
}

/* ===================================
   EMAIL COLLECTOR RESPONSIVE FIX
   =================================== */

/* Verhindert, dass das Feld auf größeren Screens übersteht */
.email-collector-field {
    max-width: 100%;
    overflow: hidden;
}

.email-collector-input {
    max-width: 100%;
}

/* Bessere responsive Darstellung auf mobilen Geräten */
@media (max-width: 768px) {
    .email-collector-wrapper {
        max-width: 100% !important;
        padding: 0 15px;
    }
    
    .email-collector-input-row {
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    .email-collector-field {
        width: 100%;
        margin-bottom: 12px !important;
    }
    
    .email-collector-input {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Für sehr kleine Screens */
@media (max-width: 480px) {
    .email-collector-wrapper {
        padding: 0 10px;
    }
    
    .email-collector-input,
    .email-collector-button {
        font-size: 14px !important;
        padding: 12px 16px !important;
    }
}

/* ===================================
   LOAD MORE BUTTON DEUTSCH
   =================================== */

/* Versteckt den englischen "Load More" Text */
.load-more-wrap .load-more {
    font-size: 0;
    visibility: visible;
}

/* Zeigt deutschen Text "Mehr laden" an */
.load-more-wrap .load-more:after {
    content: "Mehr laden";
    font-size: 16px;
    font-family: 'Neue Montreal', sans-serif;
    visibility: visible;
}

/* Hover-Effekt: Weißer Text auf schwarzem Hintergrund */
.load-more-wrap .load-more:hover:after {
    color: #fff !important;
}

/* ===================================
   FAQ ANTWORT FORMATIERUNG
   =================================== */

/* Styling für formatierte Antworten im FAQ Element */
.faq-answer,
.faq-answer p,
.faq-answer strong,
.faq-answer b,
.faq-answer em,
.faq-answer i,
.faq-answer u,
.faq-answer li,
.faq-answer span,
.faq-answer ul,
.faq-answer ol {
    font-family: 'Neue Montreal', sans-serif !important;
    color: #000000 !important;
}

.faq-answer p {
    margin: 0 0 12px 0;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer strong,
.faq-answer b {
    font-weight: 700;
}

.faq-answer em,
.faq-answer i {
    font-style: italic;
}

.faq-answer u {
    text-decoration: underline;
}

.faq-answer ul,
.faq-answer ol {
    margin: 12px 0;
    padding-left: 24px;
}

.faq-answer li {
    margin-bottom: 8px;
}

.faq-answer li:last-child {
    margin-bottom: 0;
}

.faq-answer a {
    color: #2C963D;
    text-decoration: none;
    transition: color 0.3s ease;
}

.faq-answer a:hover {
    color: #152350;
    text-decoration: underline;
}
