/* Theme Name:   Pfefferwerk Jobs
 Theme URI:    https://generatepress.com
 Description:  GeneratePress child theme customized for Pfefferwerk Jobs
 Author:       Tom Usborne
 Author URI:   https://pfefferwerk.de
 Template:     generatepress
 Version:      0.2
*/

/*.home header.site-header {display:none}*/

body > .gb-container, 
.site-hero > .gb-container, 
body > .grid-container {
    -webkit-box-shadow:0px 0px 2px rgba(0, 0, 0, 0.2);
}


.site-hero > .gb-container {}
.site-hero > .gb-container > .wp-block-cover { padding:0}

.site-hero > .gb-container > .wp-block-cover {min-height:650px}
.site-hero > .gb-container > .wp-block-cover .wp-block-cover__inner-container {
    position: absolute;
    bottom: -40px;
    min-height:650px;
    
}

@media (max-width:768px) {
    .site-hero > .gb-container > .wp-block-cover {min-height:430px}
    .site-hero > .gb-container > .wp-block-cover .wp-block-cover__inner-container {
        position: absolute;
        bottom: 0px;
        min-height:430px;
        
    }
    
    .site-hero .tagline .wp-block-heading {
        font-size: clamp(24px, 4vw, 32px);
        
    }

}


.site-hero .tagline {
    position: absolute;
    width: 100%;
    height:100%;
    bottom: 0;
    padding: 0 2em 3em;
    text-align: right;
    
    background-image:url(/wp-content/uploads/2025/05/tagline-bg-flat.svg);
    background-position-y: bottom;
    background-repeat: no-repeat;
    
    display: flex;
    justify-content: end;
    align-items: end;
    
    pointer-events:none;
}
.site-hero .tagline .wp-block-heading {
    font-size:4em;
    font-weight:600;
    /*transform: rotate(-10deg);*/
    color:#fff;
    /*padding-bottom:1.5rem;*/
    
    pointer-events:none;
}

@media (max-width:768px) {
   
    
    .site-hero .tagline .wp-block-heading {
        font-size: clamp(24px, 4vw, 32px);
        margin-block-end:0px;
    }

}

.site-hero .hero-gallery {
    flex-wrap: nowrap !important;
}

#metaslider_1673 {
    margin-bottom:0;
}


#metaslider_1673.flexslider .slides li:nth-child(odd) {
   /*box-shadow: 12px 12px 50px rgba(0,0,0,0.4);*/
   /*box-shadow: 0px 0px 60px rgba(0, 0, 0, 0.4);*/
    z-index: 3;
}


#sticky-navigation {
    max-width: 1400px;
    margin: 0 auto;
}

#sticky-navigation .navigation-branding, 
#sticky-navigation .site-logo.mobile-header-logo {
    padding:10px;
}


#sticky-navigation .navigation-branding img, 
#sticky-navigation .site-logo.mobile-header-logo img {
    height: 80px;
    width: auto;
}

.main-navigation.navigation-stick.has-sticky-branding .inside-navigation.grid-container {
    padding-left: 90px;
    padding-right: 90px;
}

.site-branding-container {
        width: 100%;
    justify-content: space-between;
}


.inside-header {padding: 50px 20px;}
.inside-header .site-description {font-size: 36px;}

.inside-article {
   padding-left:60px;
   padding-right:60px;
}

/* Hero Section */

.logo-and-claim {
	-webkit-box-shadow:0px 2px 15px 2px #333;
	box-shadow:0px 2px 15px 2px #333;
}




/* Responsives Design für Mobile */
@media (max-width: 768px) {
   .site-branding-container {
       flex-direction:column;
   }
   
   .site-logo {
       margin:1rem;
   }
   
   .gb-container-8cea8e96 {
       display:none
   }
   
   .inside-header .site-description {
        font-size: 20px;
        text-align: center;
    }
}

/* Footer */

.footer-contents {
    border-top:1px solid var(--accent);
    padding:80px 100px;
    font-size: 90%;
    color: #444;
    background: linear-gradient(var(--base), #fff);
}

footer.site-info {
    background-color: #ef0003;
    padding:0 40px;
    font-size:85%;
}

.footer-bar {
	display:flex; 
	justify-content: space-between;
	align-items:center;
	color:#fff;
	width:100%;
	padding:20px;
}

.footer-bar > div {
    width:33.33333%;
}

.footer-bar .copyright-info {text-align:left}
.footer-bar .footer-bar-logo {text-align:right}

.footer-bar a, 
.footer-bar a.active, 
.footer-bar a.focus {
	color: #fff;
	text-decoration:none;
} 

.footer-bar a:hover {
    text-decoration:underline;
}

.footer-bar .footer-bar-logo img {
	max-width:120px;
} 

/* Back to top - Button */
.generate-back-to-top {
    border-radius: 2px !important;
    /*-webkit-box-shadow:0px 0px 5px rgba(0, 0, 0, 0.2) !important;*/
    /*box-shadow:0px 0px 5px rgba(0, 0, 0, 0.2) !important;*/
    right: 24px !important;
    line-height: 44px !important;
    width: 44px !important;
    height: 44px !important;
}

.generate-back-to-top .gp-icon svg {
    height: 30px;
    width: 30px;
    top: 0.3em;
    
}

/* Barrierefreiheit */

.pojo-a11y-toolbar-toggle {
        border-radius: 0px !important;
    -webkit-box-shadow:0px 0px 2px rgba(0, 0, 0, 0.2) !important;
    box-shadow:0px 0px 2px rgba(0, 0, 0, 0.2) !important;
}

.pojo-a11y-btn-reset {
    background: #f0f0f0;
    margin: 10px 15px 0;
    text-decoration:none;
    text-align:center;
    transition:all .25s ease-in-out;
    
}


.pojo-a11y-btn-reset:hover {
    background:#ddd;
}

.pojo-a11y-btn-reset svg {    
    padding: 6px;
    padding-right: 0 !important;}


.ea11y-widget-open-button__icon-border {
    border-width:0 !important;
}


/* Alle Buttons (Generatepress) */

.gb-button, button {
    border-radius:2px;
    font-weight:600;
}

.btn-accent, 
.submit-container .nf-field-element input[type="submit"]{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    border-radius: 2px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    text-decoration: none;
    background-color: #df091b !important;
    color:#fff !important;
    
    border-radius:50px;
}

.btn-accent a {
    transition: background-color 0.2s, transform 0.1s !important;
    background-color: #df091b !important;
    color:#fff !important;
    font-weight:600 !important;
    padding:0;
    
}

.button, .wp-block-button .wp-block-button__link {
    padding: 20px 30px;
    display: inline-block;
}

.btn-accent:hover,  
.btn-accent:active,
.btn-accent:focus, 
.nf-field-element input[type="submit"]:hover,  
.nf-field-element input[type="submit"]:active,
.nf-field-element input[type="submit"]:focus, 
.btn-accent:hover a,  
.btn-accent:active a,
.btn-accent:focus a, 
.btn-accent a:hover,  
.btn-accent a:active,
.btn-accent a:focus {
    background-color: #b70514 !important;
    /* transform: translateY(-1px); */
    color: #fff !important;
}



#nf-field-9-wrap > div.nf-field-element {
    display:flex;
    justify-content:center;
}


/* Kontaktformular */

#nf-form-2-cont #nf-field-8 {
    height:100px;
}


.contact-modal {
    display: none;
    position: fixed;
    z-index: 21474836451;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    
    border-radius: 2px;
    width: 90%;
    max-width: 900px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
   
}



 .modal-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    min-height: 500px;
}

.modal-form {
    padding: 80px 60px 60px;
}

.modal-image {
    background-color: #f5f5f5;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.close-modal {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
}

 /* Ninja Forms Modern Styling */
.nf-form-wrap {
    font-size: 16px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
}

.nf-field-container {
    margin-bottom: 24px !important;
}

/* Sternchen und Pflichtfeld-Hinweis ausblenden */
.ninja-forms-req-symbol,
.nf-form-fields-required {
    display: none !important;
}

/* Fehlerstatus für Pflichtfelder - Roter Rahmen */
.field-wrap.nf-fail.nf-error .nf-field-element input,
.field-wrap.nf-fail.nf-error .nf-field-element textarea {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220,53,69,0.1) !important;
}


/* Input Fields */
.nf-field-element input,
.nf-field-element textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    border: 1px solid #e1e1e1 !important;
    border-radius: 2px !important;
    background-color: #ffffff !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
}

.nf-field-element input:focus,
.nf-field-element textarea:focus {
    border-color: #666 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1) !important;
}

/* Placeholder Styling */
.nf-field-element input::placeholder,
.nf-field-element textarea::placeholder {
    color: #666 !important;
    font-size: 15px !important;
}

/* Textarea specific */
.nf-field-element textarea {
    min-height: 120px !important;
    resize: vertical !important;
}

/* Submit Button */
.submit-container .nf-field-element input[type="submit"] {
    background-color: #666;
    color: #ffffff !important;
    border: none !important;
    padding: 14px 32px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    width: auto !important;
    margin-top: 10px !important;
}

.submit-container .nf-field-element input[type="submit"]:hover {
    background-color: #333;
}
#nf-field-4-wrap > div.nf-field-element {
    display:flex;
    justify-content:end;
}
.submit-container .nf-field-element input[type="submit"]:active {
    transform: translateY(1px);
}

/* Error Messages */
/* Fehlermeldungen ausblenden */
.nf-error-msg,
.nf-error-wrap.nf-error,
#nf-form-errors-1,
.nf-form-errors {
    display: none !important;
}

/* Response Messages */
.nf-response-msg {
    padding: 16px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    font-size: 15px !important;
}

/* Success Message */
.nf-response-msg.success-msg {
    background-color: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
}

/* Mobile Optimierung */
@media screen and (max-width: 768px) {
    .modal-content {
        margin: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    .modal-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .modal-image {
        height: 200px;
        order: -1;
    }
    
    .modal-form {
        padding: 20px;
    }
    
    .nf-field-element input,
    .nf-field-element textarea {
        font-size: 16px !important; /* Verhindert Zoom auf iOS */
    }
}

@media screen and (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
}
/* Meta Slider */

.metaslider.ms-theme-clarity .flexslider .slides li:focus-within
 {
    outline: 0px !important;
    outline-offset: 0;
}

/* Testimonial Videos Slider */

#metaslider-id-1759 .flexslider .caption-wrap {
    background: transparent !important;
    border: none !important;
    box-sizing: border-box;
    color: #fff !important;
    display: flex;
    flex: 1;
    line-height: 1.4em;
    margin: 0;
    position: relative;
    opacity: 1;
    width: 100%;
}


#metaslider-id-1759 .flexslider .slides li {
    overflow:hidden;
    border-radius:8px;
} 
#metaslider-id-1759 .flexslider .caption {    
    position: absolute;
    height: 50px;
    bottom: 10px;
    font-size: 26px;
    color: #fff;
    padding: 20px;
}

#metaslider-id-1759 .flexslider .caption .testimonial-caption {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    text-align:right;
}

/* Video Slider Modal CSS */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(3px);
}

/* Play-Button Overlay Styles */
.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none; /* Klicks durchlassen */
    z-index: 10;
    transition: all 0.3s ease;
}

.play-icon {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    transition: all 0.3s ease;
}

/* Hover-Effekte */
.metaslider_image_link:hover .video-play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
}

.metaslider_image_link:hover .play-icon {
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4));
}

.metaslider_image_link:hover .play-icon circle {
    fill: rgba(0,0,0,0.8);
    stroke: rgba(255,255,255,1);
}

.metaslider_image_link:hover .play-icon polygon {
    fill: #ffffff;
}

/* Responsive Anpassungen für Play-Button */
@media (max-width: 768px) {
    .play-icon {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .play-icon {
        width: 50px;
        height: 50px;
    }
}

/* Video Modal Styles */
/* Play-Button Overlay Styles */
.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none; /* Klicks durchlassen */
    z-index: 10;
    transition: all 0.3s ease;
}

.play-icon {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    transition: all 0.3s ease;
}

/* Hover-Effekte */
.metaslider_image_link:hover .video-play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
}

.metaslider_image_link:hover .play-icon {
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4));
}

.metaslider_image_link:hover .play-icon circle {
    fill: rgba(0,0,0,0.8);
    stroke: rgba(255,255,255,1);
}

.metaslider_image_link:hover .play-icon polygon {
    fill: #ffffff;
}

/* Responsive Anpassungen für Play-Button */
@media (max-width: 768px) {
    .play-icon {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .play-icon {
        width: 50px;
        height: 50px;
    }
}

/* Aspect Ratio für 9:16 Videos */
.metaslider_image_link {
    aspect-ratio: 9 / 16;
    display: block;
    overflow: hidden;
}

.metaslider_image_link img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Bild füllt Container aus */
}

/* Video Modal Styles */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(3px);
}

.video-modal.active {
    display: flex;
}

.video-modal .modal-content {
    position: relative;
    aspect-ratio: 9 / 16; /* Gleiche Proportionen für Modal */
    max-width: min(90vw, 60vh); /* Begrenzt auf 90% Breite oder 60% Viewport-Höhe */
    max-height: 94vh;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

.video-modal .modal-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* Video füllt Container perfekt aus */
}

.video-modal .modal-close {
    padding: 10px !important;
    line-height: 1;
    font-size: 40px;
    font-weight: 400;
    background: transparent;
    color: #fff;
    text-shadow: 1px 2px rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 10px;
    right: 15px;
    border: none;
    cursor: pointer;
    z-index: 21474836451;
    transition: all 0.3s ease;
}

.video-modal .modal-close:hover {
    transform: scale(1.1);
}

/* Responsive Anpassungen für Modal */
@media (max-width: 768px) {
    .video-modal .modal-content {
        max-width: 95vw;
        max-height: 80vh;
    }
    
    .video-modal .modal-close {
        top: 5px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

/* Responsive */

@media (max-width: 500px) {
    .site-hero {}
    .site-hero .wp-block-cover {}
    .site-hero .wp-block-cover > img {height: 120%; top:-10px}
    
    .site-hero .tagline {
        padding: 1em;
        background-size: 170%;
        background-position-x: -24px;
    }
    
}

@media (max-width:767px) {
    
    .separate-containers .inside-article, .separate-containers .comments-area, .separate-containers .page-header, .separate-containers .paging-navigation, .one-container .site-content, .inside-page-header {
        padding: 30px 0px;
    }
    .wp-block-buttons>.wp-block-button.wp-block-button__width-50 {
        width: 100%;
    }

   
}

@media (max-width: 768px) {
    
     h2 {
        font-size:clamp(24px, 4vw, 32px);
    }
     h3 {
        font-size:clamp(20px, 3.333vw, 28px);
    }
    
    .main-navigation.navigation-stick.has-sticky-branding .inside-navigation.grid-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .inside-header {padding: 20px 20px;}

    .inside-article {
       padding-left:10px;
       padding-right:10px;
    }
    
    
    footer.site-info {
        
        padding:0 0px;
       
    }
    
    .inside-site-info {
        padding-right: 20px;
        padding-left: 20px;
    }

    .footer-contents {
        border-top:1px solid #e3000f;
        padding:80px 40px;
    }
    
    .footer-bar {
        flex-direction:column;
        gap:30px;
    }
    .footer-bar .copyright-info {text-align:center}
    .footer-bar .footer-bar-logo {text-align:center}
    
    .footer-bar > div {
        width:100%;
    }
    
    .site-hero {}
    
  
  
    .site-hero .hero-logo {
        width:100%;
        
    }
    
    .site-hero .hero-tagline{}
    .site-hero .hero-tagline h2 {
        font-size:clamp(24px, 4vw, 32px);
    }
    
    
}

@media (min-width: 769px) and (max-width:1024px) {
   
}

@media (min-width: 1025px) {
    
}