/*
Theme Name: Enfold Child MP
Description: A <a href='http://codex.wordpress.org/Child_Themes'>Child Theme</a> for the Enfold Wordpress Theme. If you plan to do a lot of file modifications we recommend to use this Theme instead of the original Theme. Updating wil be much easier then.
Version: 1.0
Author: Kriesi
Author URI: http://www.kriesi.at
Template: enfold
*/

/*Add your own styles here:*/
/* RESET */
body {
    font-weight: 400;
}
.special_amp {
    font-family: inherit;
    font-style: inherit;
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
    color: inherit !important;
}

strong, b {
    color: inherit !important;
}

.iconlist-timeline {
    display: none !important;
}
.av_iconlist_title.iconlist_title_small {
    font-weight: 900;
}  
.main_color .iconlist_content {
    color: inherit;
}
#top .widget_nav_menu li, #top .widget_recent_entries li {
    font-size: inherit;
}

#top .widget_recent_entries li a {
    font-family: inherit;
    font-style: normal;
}

#top .avia-button.avia-color-dark {
    border-width: 2px;
}

#top .avia-button .avia_button_icon {
    -webkit-perspective: unset;
    -webkit-backface-visibility: unset;
}

.avia-button.avia-color-dark:hover {
    opacity: 1;
    color: #fff !important;
    border-color: orange !important;
    background: orange !important;
}



/* GLOBALS */
:root {
    --primary: #f39125; 
}

#top .logo img {
    padding: 10px 0;
}

#top #header .av-main-nav > li > a {
    color: #444444;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#top .av-special-heading-tag  {
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: none;
}
#top .av-special-heading-tag em {
    font-style: italic;
    color: var(--primary);
    display: block;
}
#top .av-special-heading-tag em.nobr {
    display: inline;
}
.av-subheading_above {
    text-transform: uppercase;
    color: #b8660c;
    letter-spacing: 0.16em;
    font-weight: 600;
    margin-bottom: 16px;
}
#top .av-special-heading-h1 .av-subheading_above {
    color: #6b615a;
    font-size: 14px;
}
#top h1 {
    font-size: clamp(40px, 5.2vw, 66px);
    line-height: 1.03;
    color: #000;
}
#top h2 {
    font-size: clamp(29px, 3.4vw, 40px);
    line-height: 1.12;
}
#top .avia-button {
    border-radius: 20px !important;
}

#top .top-border--orange {
    border-top: 5px solid #f39125;
}

#top .top-border--pink {
    border-top: 5px solid #e61a6c;
}

#top .top-border--lila {
    border-top: 5px solid #b43d8f;
}
#top .top-border--ud {
    border-top: 5px solid #fbf53c;
}

#top .mwp-historie .mwp-historie__card-beschreibung {
    white-space: pre-line;
  }

/* ELEMENTS */
#top .hero {
    
}

#top .hero .avia-icon-list li {
    float: left;
    clear: none;
    font-size: 14px;
    width: 33.3%;
    color: #6b615a;
}

#top .hero .avia-icon-list li:first-child .av-icon-char svg {
    fill: #ee9525;
}
#top .hero .avia-icon-list li:last-child .av-icon-char svg {
    fill: #a93c93;
}


#top .avia-button {
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
}

#top .breaker .flex_column {
    border-radius: 20px;
    padding: 40px;
    color: #fff;
}
#top .breaker .av-special-heading-tag  {
    font-size: clamp(24px, 2.8vw, 33px);
    line-height: 1.26;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-style: italic;
    color: #fff;
}
#top .breaker .av-subheading {
    font-style: normal;
}

/* PORTFOLIO GRID */
#top .grid-sort-container{ height:auto !important; }
#top .grid-sort-container > .grid-entry{
    position:relative !important;
    left:auto !important;
    top:auto !important;
}
.grid-sort-container{ margin-left:-14px; margin-right:-14px; }  
.grid-entry{ padding-left:14px; padding-right:14px; margin-bottom:28px; }  

.grid-sort-container{ display:flex; flex-wrap:wrap; align-items:stretch; }
.grid-entry{ display:flex; }               
.grid-entry > .inner-entry{ width:100%; }        

#top .grid-entry > .inner-entry{ display:flex; flex-direction:column; }
#top .grid-entry .grid-content{ display:flex; flex-direction:column; flex:1 1 auto; }
#top .grid-entry .grid-entry-excerpt{ display:flex; flex-direction:column; flex:1 1 auto; }
#top .grid-entry .mp-more{ margin-top:auto; } 

#top .grid-entry .inner-entry {
    border-radius: 20px;
    border: 1px solid #f0e7da;
    overflow: hidden;
    background: #fff;
}
#top .grid-content {
    text-align: left;
}
#top .grid-content .avia-arrow {
    display: none;
}
#top .grid-entry .image-overlay .image-overlay-inside:before {
    display: none !important;
}
#top .grid-entry-title {
    font-size: 23px;
    line-height: 1.22;
    font-weight: 700;
    letter-spacing: -0.02em;
}       
.grid-entry-title .mp-overline{
    display:block;
    margin-bottom:8px;
    font-size:12px;
    font-weight:600;
    letter-spacing:.14em;
    text-transform:uppercase;
    color:#B8660C;
}
.grid-entry-excerpt {
    font-size: initial;
    font-style: unset;
    color: #4b423c;
    line-height: 1.6;
}
.grid-entry-excerpt .mp-more{
    display: block;
    margin-top:14px;
    font-weight:700;
    text-decoration:none;
    color:#EE9525;
}
.grid-entry-excerpt .mp-more:hover{ color:#D9821A; }

/* Portfolio grid on mobile: flex layout only (Isotope disabled via js/portfolio-grid-mobile.js) */
@media only screen and (max-width: 767px) {
    .responsive #top .avia_sortable_active .grid-sort-container.isotope {
        transition: none !important;
    }
    #top .grid-sort-container.isotope > .grid-entry.isotope-item {
        transform: none !important;
        -webkit-transform: none !important;
    }
}

/* CONTACTBANNER */
.contactbanner {
    padding: 30px 0;
    color: #fff;
} 
.contactbanner .av-special-heading-tag {
    color: #fff;
}
.contactbanner .av_three_fifth {
    border-radius: 20px;
}
#top .contactbanner .avia-button {
    width: 90%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 8px !important;
    text-align: left;
    text-transform: none;
    font-size: 16px;
}

/* TEAM MEMBERS */

.avia-image-container.mwp-portrait {
    --color: #f39125;
    --bg-top: 14%;
    --image-y: 32%;
    --shape-opacity: 1;
  
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 1 / 1.06;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    line-height: 0;
  }
  
  /* Farbfläche und SVG liegen hinter den Enfold-Bildwrappern. */
  .avia-image-container.mwp-portrait::before,
  .avia-image-container.mwp-portrait::after {
    content: "";
    position: absolute;
    inset: var(--bg-top) 0 0;
    pointer-events: none;
  }
  
  /* Hauptfarbe mit leichtem Verlauf. */
  .avia-image-container.mwp-portrait::before {
    z-index: 0;
    background:
      radial-gradient(
        ellipse at 8% 2%,
        rgba(255, 255, 255, .22),
        transparent 68%
      ),
      linear-gradient(
        135deg,
        transparent 30%,
        rgba(0, 0, 0, .08)
      ),
      var(--color);
  }
  
  /* Organische Formen als SVG-Data-URL. */
  .avia-image-container.mwp-portrait::after {
    z-index: 1;
    background-image: var(--pattern);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    opacity: var(--shape-opacity);
  }
  
  /* Beide vorhandenen Enfold-Wrapper füllen die Portraitfläche. */
  .avia-image-container.mwp-portrait > .avia-image-container-inner,
  .avia-image-container.mwp-portrait > .avia-image-container-inner > .avia-image-overlay-wrap {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  
  /* Gesamte Bildebene vor Hintergrund und Formen setzen. */
  .avia-image-container.mwp-portrait > .avia-image-container-inner {
    z-index: 2;
  }
  
  /* Exakter Bildselektor für deine verschachtelte Struktur. */
  .avia-image-container.mwp-portrait > .avia-image-container-inner > .avia-image-overlay-wrap > img.avia_image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
    object-position: 50% var(--image-y);
  }
  
  /* Orange */
  .avia-image-container.mwp-portrait--orange {
    --color: #f39125;
    --image-y: 32%;
    --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' preserveAspectRatio='none'%3E%3Cpath fill='white' opacity='.13' d='M-45-30H180C177 61 244 96 306 154S402 242 343 282C292 319 243 293 208 245S106 177 48 165S-17 145-45 128Z'/%3E%3Cpath fill='white' opacity='.06' d='M268 433C235 372 295 332 348 330S425 285 445 247V433Z'/%3E%3C/svg%3E");
  }
  
  /* Pink */
  .avia-image-container.mwp-portrait--pink {
    --color: #e61a6c;
    --image-y: 20%;
    --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' preserveAspectRatio='none'%3E%3Cpath fill='white' opacity='.13' d='M440 161C362 61 284 51 234 113S220 231 289 244S391 281 440 320Z'/%3E%3Cpath fill='white' opacity='.09' d='M-35 191C17 166 50 185 100 211S170 277 140 322S87 365 99 431H-35Z'/%3E%3C/svg%3E");
  }
  
  /* Lila */
  .avia-image-container.mwp-portrait--lila {
    --color: #b43d8f;
    --image-y: 31%;
    --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' preserveAspectRatio='none'%3E%3Cpath fill='white' opacity='.10' d='M-35 109C34 109 90 170 111 227S202 326 292 284S383 212 435 251V440H-35Z'/%3E%3Cpath fill='white' opacity='.06' d='M213-35C293 17 298 70 365 95S414 127 440 160V-35Z'/%3E%3Cpath fill='%234d103d' opacity='.07' d='M271 438C257 373 334 324 378 300S424 303 440 323V438Z'/%3E%3C/svg%3E");
  }

/* Portfolio - Kacheln */
#top .kacheln [data-av_svg_icon="schritt-1"] svg g {
    fill: #f38f253f;
    stroke: #f39125;
}
#top .kacheln [data-av_svg_icon="schritt-2"] svg g {
    fill: #e61a6c48;
    stroke: #e61a6c;
}
#top .kacheln [data-av_svg_icon="schritt-3"] svg g {
    fill: #b43d8e4d;
    stroke: #b43d8f;
}

/* FOOTER */
#footer {
    font-size: 14px;
}
#footer .flex_column.first {
    font-size: 14px;
    line-height: 1.4;
}

#footer #menu-kontakt li a:before {
    font-family: 'entypo-fontello';
    padding: 0 10px 0 0;
}

#footer #menu-kontakt li.mail a:before {
    content: '\E805';
}

#footer #menu-kontakt li.tel a:before {
    content: '\E854';
}

#footer #menu-kontakt li.xing a:before {
    content: '\E923';
}

#footer #menu-kontakt li.linked a:before {
    content: '\E8fc';
}

#socket {
    font-size: 14px;
}

#footer #menu-portfolio li a:before {
    font-family: 'entypo-fontello';
    padding: 0 5px 0 0;
    content: '\E879';
}

#top .container_wrap {
    border: none !important;
}


/* MOBILE */
@media only screen and (max-width: 990px) {
    
    #top #wrap_all .av_header_transparency, .av_header_transparency #advanced_menu_toggle {
    background: transparent !important;
    position: absolute !important;
    }
    
    /*
    #top .scroll-down-link {
        display: none;
    }
        */
    #top #workshop-banner .container:before {
        display: none;
    }
    #top .hero .av-section-color-overlay {
        opacity: 1;
    }
    #top.home .hero .av-subheading {
        visibility: hidden;
    }

    #top .hero {
        background-image: none;
    }
    #top .hero h1 {
        filter: drop-shadow(2px 3px 4px #fff);
    }
    #top .hero .av-subheading_above p {
        background: #f39125;
    display: inline-block;
    color: #fff;
    padding: 2px 6px;
    font-weight: 700;
    border-radius: 5px;
    }
}

#top .hero-mobile {
    width: 120% !important;
    left: -10%;
    position: relative;
    margin: 0 !important;
    top: -50px;
    margin-bottom: -50% !important;
    z-index: 0;
}

#top .hero-mobile:before {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    visibility: visible;
}


/* Sticky header on mobile */
@media only screen and (max-width: 767px) {
    .responsive #top #main {
      /* Margin top value should be equal to header height*/
      margin-top: 80px;
    }
    .responsive #top #wrap_all #header {
      position: fixed;
    }
  }


/* DESKTOP ONLY RULES */
@media only screen and (min-width: 991px) {
    #top .hero-mobile {
        display: none;
    }
    #top .two-col ul {
        columns: 2;
    }
}