/* 
Theme Name: Württemberger Medien
Theme URI: https://github.com/elementor/hello-theme/
Description: Württemberger Medien Elementor Child Theme
Author: Württemberger Medien
Author URI: https://w-medien.de/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elemento
r-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*
    Add your custom styles here
*/
:root {  

    --space-4xs: clamp(0.52rem, calc(-0.03vw + 0.54rem), 0.49rem); 
    --space-3xs: clamp(0.66rem, calc(0.04vw + 0.63rem), 0.7rem); 
    --space-2xs: clamp(0.82rem, calc(0.17vw + 0.74rem), 0.99rem); 
    --space-xs: clamp(1.02rem, calc(0.37vw + 0.85rem), 1.4rem); 
    --space-s: clamp(1.28rem, calc(0.69vw + 0.95rem), 1.98rem); 
    --space-m: clamp(1.6rem, calc(1.17vw + 1.04rem), 2.8rem); 
    --space-l: clamp(2rem, calc(1.92vw + 1.08rem), 3.96rem); 
    --space-xl: clamp(2.5rem, calc(3.03vw + 1.05rem), 5.6rem); 
    --space-2xl: clamp(3.13rem, calc(4.69vw + 0.88rem), 7.92rem); 
    --space-3xl: clamp(3.91rem, calc(7.13vw + 0.5rem), 11.19rem); 
    --space-4xl: clamp(4.88rem, calc(10.71vw + -0.24rem), 15.83rem); 
	
    --text-xs: clamp(1.42rem, calc(-0.03vw + 1.44rem), 1.39rem); 
    --text-s: clamp(1.6rem, calc(0.07vw + 1.57rem), 1.67rem); 
    --text-m: clamp(1.8rem, calc(0.2vw + 1.71rem), 2rem); 
    --text-l: clamp(2.02rem, calc(0.37vw + 1.85rem), 2.4rem); 
    --text-xl: clamp(2.28rem, calc(0.59vw + 2rem), 2.88rem); 
    --text-2xl: clamp(2.56rem, calc(0.87vw + 2.15rem), 3.46rem); 
    --text-3xl: clamp(2.88rem, calc(1.24vw + 2.29rem), 4.15rem); 
    --text-4xl: clamp(3.24rem, calc(1.7vw + 2.43rem), 4.98rem); 

    --radius-xs: clamp(0.4rem, calc(0vw + 0.4rem), 0.4rem); 
    --radius-s: clamp(0.6rem, calc(-0.2vw + 0.89rem), 0.8rem); 
    --radius-m: clamp(1rem, calc(-0.2vw + 1.29rem), 1.2rem); 
    --radius-l: clamp(1.6rem, calc(-0.39vw + 2.19rem), 2rem); 
    --radius-xl: clamp(2.6rem, calc(-0.59vw + 3.48rem), 3.2rem); 
    --radius-full: 999rem; 

    --shadow-primary: hsla(0, 0%, 0%, 0.15); 
    --shadow-xs: 0 1px 2px var(--shadow-primary); 
    --shadow-s: 0 1.5px 3px var(--shadow-primary); 
    --shadow-m: 0 2px 6px var(--shadow-primary); 
    --shadow-l: 0 3px 12px var(--shadow-primary); 
    --shadow-xl: 0 6px 48px var(--shadow-primary); 

}

/*-----------Header-----------------*/

.header {
  position: fixed;
  background-color: white;
  top: 0;
  left: 0;
  right: 0;
  transition: transform 0.4s ease-in-out;
}

.hide-header {
  transform: translateY(-100%);
}

.kontaktbutton {
	background-color: var(--e-global-color-secondary);
		border-radius: 500px;
}
.kontaktbutton:hover {
	background-color: var(--e-global-color-primary);
		border-radius: 500px;
}
.kontaktbutton .elementor-item:before,
.kontaktbutton .elementor-item:after {
	display: none;
}
.kontaktbutton a {
	color: white !important;
	font-weight: 600 !important;
		border-radius: 500px;
}

/*------------Sticky To-Top-Icon-------------*/
#iconUp {
	display: none;
	cursor: pointer;
}

/*------------Headline Balance Umbruch-------------*/
h1, h2, h3{
	text-wrap: balance;
	hyphens: auto!important;
}

/*------------Ungewünschter Abstand bei Texten raus-------------*/
p {
  margin-block-end: 0.0rem;!important /* oder ein kleiner Wert wie 5px */
	text-wrap: pretty;
}


/*------------Höhenanpassung Image Reveal Unlimited Elements-------------*/
/* Image Reveal Widget */
.uc_image_reveal {
    height: 100% !important;
    display: flex;
}
 
.uc_image_reveal_box img {
    height: 100% !important;
    object-fit: cover;
}
 
/* Strip Panel */
.ug-strip-panel {
    width: 90% !important;
}
 
/* ==============================
   Image Accordion – Schutz
   vor globalen img-Regeln
   ============================== */
 
/*
   HINWEIS: Gib dem äußersten Container des
   Image-Accordion-Widgets in Elementor
   die CSS-Klasse: accordion-protected
*/
 
.accordion-protected img,
.accordion-protected [style*="background-image"],
.accordion-protected .uc_image_accodion_holder {
    clip-path: none !important;
    transform: none !important;
    animation-play-state: running !important;
    opacity: 1 !important;
}
 
/* Die eigene Einblend-Animation des Widgets erhalten */
.accordion-protected .uc_image_accodion_holder {
    opacity: 0; /* Widget-JS setzt es auf 1 via .uc-entrance-animate */
}
 
.accordion-protected .uc_image_accodion_holder.uc-entrance-animate {
    opacity: 1 !important;
}
 
 
/* ==============================
   Grundelement – img-right / img-left
   ============================== */
 
.img-right,
.img-left,
.img-left-hero {
    position: relative;
    overflow: visible;
}
 
.img-right img,
.img-left img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: auto;
}
 
 
/* ==============================
   Grüne Hintergrundfläche
   (nur Desktop ≥ 1025px)
   ============================== */
 
@media screen and (min-width: 1025px) {
 
    .img-right:before,
    .img-left:before{
        content: "";
        position: absolute;
        width: 90%;
        height: calc(100% + (var(--space-2xl) * 2));
        top: calc(var(--space-2xl) * -1);
        background-color: var(--e-global-color-0f06fb6);
        z-index: 1;
        pointer-events: none;
    }
 
    .img-right.hb0:before,
    .img-left.hb0:before,
	.img-left-hero.hb0:before{
        height: calc(100% + (var(--space-2xl) * 2));
        top: calc(var(--space-2xl) * -2);
    }
 
}

	.img-left-hero:before {
        content: "";
        position: absolute;
        width: 90%;
        height: calc(100% + (var(--space-2xl) * 2));
        top: calc(var(--space-2xl) * -1);
        background-color: rgba(30, 30, 30, 0.8);
        z-index: 1;
        pointer-events: none;
    }
 
 
/* ==============================
   Grüne Fläche – Tablet/Mobile
   (≤ 1024px)
   ============================== */
 
@media only screen and (max-width: 1024px) {
 
    .img-right:before,
    .img-left:before,
	.img-left-hero:before{
        width: 80%;
        height: calc(100% + (var(--space-l) * 2));
        top: calc(var(--space-l) * -1);
    }
 
    .img-right.hb0:before,
    .img-left.hb0:before,
	.img-left-hero.hb0:before{
        width: 80%;
        height: calc(100% + (var(--space-l) * 2));
        top: calc(var(--space-l) * -1);
    }
 
    .img-left:before {
        right: 10%;
        left: 10%;
    }
 
    .img-right:before {
        left: 10%;
        right: 10%;
    }
	
 .img-left-hero:before {
        right: 10%;
        left: 10%;
    }
}
 
 
/* ==============================
   IMG RIGHT – Fläche & Bild
   ============================== */
 
.img-right:before {
    left: 10%;
    transform-origin: left;
    transform: scaleX(0);
    animation: bgRightBox 1.2s ease forwards;
}
 
.img-right img {
    transform: translateX(80px);
    clip-path: inset(0 0 0 100%);
    animation: imgRightReveal 1.2s ease 250ms forwards;
}
 
@keyframes bgRightBox {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}
 
@keyframes imgRightReveal {
    from {
        transform: translateX(80px);
        clip-path: inset(0 0 0 100%);
    }
    to {
        transform: translateX(0);
        clip-path: inset(0 0 0 0);
    }
}
 
 
/* ==============================
   IMG LEFT – Fläche & Bild
   ============================== */
 
.img-left:before {
    right: 10%;
    left: auto;
    transform-origin: right;
    transform: scaleX(0);
    animation: bgLeftBox 1.2s ease forwards;
}
 
.img-left img {
    transform: translateX(-80px);
    clip-path: inset(0 100% 0 0);
    animation: imgLeftReveal 1.2s ease 250ms forwards;
}

.img-left-hero:before {
    right: 10%;
    left: auto;
    transform-origin: right;
    transform: scaleX(0);
    animation: bgLeftBox 1.2s ease forwards;
}
 
.img-left-hero img {
    transform: translateX(-80px);
    clip-path: inset(0 100% 0 0);
    animation: imgLeftReveal 1.2s ease 250ms forwards;
}
 
@keyframes bgLeftBox {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}
 
@keyframes imgLeftReveal {
    from {
        transform: translateX(-80px);
        clip-path: inset(0 100% 0 0);
    }
    to {
        transform: translateX(0);
        clip-path: inset(0 0 0 0);
    }
}
 
 
/* ==============================
   Animationen pausieren bis
   IntersectionObserver feuert
   (nur im Frontend, nicht im Editor)
   ============================== */
 
body:not(.elementor-editor-active) .img-right:before,
body:not(.elementor-editor-active) .img-left:before,
body:not(.elementor-editor-active) .img-right img,
body:not(.elementor-editor-active) .img-left img {
    animation-play-state: paused;
}
 
body:not(.elementor-editor-active) .img-right.animate:before,
body:not(.elementor-editor-active) .img-left.animate:before,
body:not(.elementor-editor-active) .img-right.animate img,
body:not(.elementor-editor-active) .img-left.animate img {
    animation-play-state: running;
}


/* ==============================Sticky Sitebar ============================== */
.sitebar-info a {
    color: #fff !important;
}
.sitebar-info a, .sitebar-info >div  {
    transition: all ease 0.4s !important;
    right:0;
}
.sitebar-info >div:hover {
    right: 326px!important;
}
.sitebar-info >div.s:hover, .sitebar-info a.s:hover {
    right: 130px!important;
}
.sitebar-info >div:hover, .sitebar-info a:hover {
    right: 180px!important;
}
.sitebar-info >div.m:hover, .sitebar-info a.m:hover {
    right: 280px!important;
}
.sitebar-info >div.l:hover, .sitebar-info a.l:hover  {
    right: 320px!important;
}
.sitebar-info .elementor-widget-text-editor  {
    color: var(--e-global-color-690b9d9);
}
/* */

/* ============================== Jobs for WordPress Styling ============================== */

 /* Override Plugin-CSS: Job-Kategorien */
body .jobs-section .job-listing-categories .job-category {
  padding: 12px 18px !important;
  border-radius: 35px !important;
  background-color: #ffffff !important;
  border: 2px solid #b5b5b5 !important;
  color: #000000 !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Hover nur bei inaktiven Kategorien */
body .jobs-section .job-listing-categories .job-category:not(.active):hover {
  background-color: #ffffff !important;
  border-color: #000000 !important;
  color: #000000 !important;
}

/* Aktive Kategorie: rot ohne schwarzen Rand */
body .jobs-section .job-listing-categories .job-category.active,
body .jobs-section .job-listing-categories .job-category.active:hover {
  background-color: #da2828 !important;
  border-color: #da2828 !important;
  color: #ffffff !important;
  box-shadow: none !important;
  outline: none !important;
}

.job-post{
	margin-top: 12vh!important;
}

.jp-apply-button{
	color: white!important;
	font-family: var(--e-global-typography-text-font-family), Sans-serif!important;
	font-size: var(--e-global-typography-text-font-size)!important;
	    text-transform: none!important;
}

/*------------Umbruch erst ab Tablet-Format abwärts ------------*/
/*------------ <br class="break-small-screen"> ------------*/

.break-small-screen{
  display: block;
}

@media (min-width: 1024px) {
  .break-small-screen {
    display: none;
  }
}

/*------------Umbruch erst ab Desktop-Format aufwärts------------*/
/*------------ <br class="break-big-screen"> ------------*/

.break-big-screen {
  display: none;
}

@media (min-width: 1024px) {
  .break-big-screen {
    display: block;
  }
}

/*------------ Formatierung bei Rechtstexten/-seiten------------*/

.rechtstexte a {
    display: inline-block !important;
    max-width: 100% !important;
    word-break: break-word !important;
	color: #356C8E !important;
}

.rechtstexte a:hover{
	    color: #F89B05;
}

.rechtstexte p {
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    font-size: var(--e-global-typography-text-font-size) !important;
    font-family: var(--e-global-typography-text-font-family), Sans-serif !important;
}

.rechtstexte li {
    font-size: var(--e-global-typography-text-font-size)!important;
    font-family: var(--e-global-typography-text-font-family), Sans-serif !important;
}
