/*
Theme Name:     KadenceChild
Theme URI:      n/a
Template:       kadence
Author:         Pro Author
Author URI:     n/a
Description:    Child Theme Description
Version:        1.0
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
*/


.site-branding {
    position: relative;
    display: inline-block;
    overflow: hidden;
    will-change: transform;
    transition: transform 0.3s ease;
  }
  
  .site-branding img {
    transition: opacity 0.8s ease;
    will-change: opacity;
    display: block;
    width: 100%;
    height: auto;
  }

  .limit-section{
    max-width: 2500px !important;
  }

.kb-form-is-dark .kb-adv-form-field select option {
    color: black;
}



.current-menu-item {
    transform: scale(1); /* Vergrößert das Element */
    font-weight: 900; /* Schrift dicker */
    will-change: transform;
    transition: transform 0.3s ease, font-weight 0.3s ease;
}

.menu-item {
    will-change: transform;
    transition: transform 0.3s ease;
}

.menu-item:hover {
    transform: scale(1); /* Vergrößert das Element beim Hover */
}

.current-menu-item:hover {
    transform: scale(1); /* Damit es sich nicht verkleinert */
}


/* Ab Tablet-Größe (bis max. 1024px) kein Scaling oder Hover */
@media (max-width: 1024px) {
    .menu-item,
    .menu-item:hover,
    .current-menu-item,
    .current-menu-item:hover {
        transform: none;
        transition: none;
    }

    .current-menu-item {
        font-size: 19px;
        font-weight: 900;
    }
}
 /*#######################################################################
#######################################################################*/
/* Background Muster */

.pattern-bg > .kt-inside-inner-col {
    position: relative;
    overflow: hidden;
    z-index: 5;
    /* Um zuu verhindern, dass  beim Hovern des svgs durch txt hindurchgeschienen wird, z-index erhöhen. evtl eigenen abschnitt mit hohem z-index */
  }
  
  .pattern-bg > .kt-inside-inner-col::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    pointer-events: none;
    z-index: 0;
    /* Masken-Eigenschaft */
    mask-image: var(--pattern-mask, radial-gradient(circle, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0) 0px));
    -webkit-mask-image: var(--pattern-mask, radial-gradient(circle, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0) 0px));
    transition: mask-image 0.5s linear;
    will-change: mask-image;
  }

/* pattern Varianten 1 bis 20 */
.pattern-bg.pattern-1  > .kt-inside-inner-col::before { background-image: url('https://zimmerei-rudolf.com/wp-content/uploads/2025/05/wood-pattern-1.svg'); }
.pattern-bg.pattern-2  > .kt-inside-inner-col::before { background-image: url('https://zimmerei-rudolf.com/wp-content/uploads/2025/05/wood-pattern-2.svg'); }




.logo-bg > .kt-inside-inner-col {
    position: relative;
    overflow: hidden;
  }
  
  .logo-bg > .kt-inside-inner-col::before {
    content: '';
    position: absolute;
    inset: 0;

    background-image: url('https://zimmerei-rudolf.com/wp-content/uploads/2025/05/icon-schwarz.svg');
    background-size: contain;
    background-position: 50% 50%;
    background-attachment: scroll;
    background-repeat: no-repeat;
    pointer-events: none;

      /* Masken-Eigenschaft */
    mask-image: var(--pattern-mask, radial-gradient(circle, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0) 0px));
    -webkit-mask-image: var(--pattern-mask, radial-gradient(circle, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0) 0px));
  
    transition: mask-image 0.5s linear;
    will-change: mask-image;
  }

 /*#######################################################################
#######################################################################*/

.icon-card {
    position: relative; /* Falls nötig, um inneres Target zu positionieren */
}

.icon-zoom {
    transition: transform 0.3s ease; /* Sanfte Übergangsanimation */
    display: inline-block; /* Kann angepasst werden je nach Layout */
    will-change: transform;
    overflow: hidden; /* Verhindert, dass das Bild über den Container hinaus wächst */
}

.icon-card:hover .icon-zoom,
.icon-card.hovered .icon-zoom {
    transform: scale(1.15) 
}
/*#######################################################################
#######################################################################*/
.zoom-container {
    transition: transform 0.3s ease; /* Sanfte Übergangsanimation */
    will-change: transform;
    overflow: hidden; /* Verhindert, dass das Bild über den Container hinaus wächst */
}

.zoom-container:hover
{
    transform: scale(1.03); /* Vergrößert den Container um 2% */
}


.zoom-container-block {
    display: block;
    transition: transform 0.3s ease; /* Sanfte Übergangsanimation */
    will-change: transform;
    overflow: hidden; /* Verhindert, dass das Bild über den Container hinaus wächst */
}

.zoom-container-block:hover
{
    transform: scale(1.03); /* Vergrößert den Container um 2% */
}

 /*#######################################################################
#######################################################################*/

/* Hintergrundbild */
.zoom-background {
    position: relative;
    overflow: hidden;
}

.zoom-background > .kt-inside-inner-col {
    position: relative;
    z-index: 1;
}

/* Hintergrundbild */
.zoom-background > .kt-inside-inner-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-image: inherit;
    transition: transform 0.3s ease;
    z-index: -2;
}

/* Overlay */
.zoom-background > .kt-inside-inner-col::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3); /* Start: leicht abgedunkelt */
    transition: background 0.5s ease;
    z-index: -1;
}

/* Text, der sichtbar wird */


/* Wenn das übergeordnete Element gehoved wird, wird der Text sichtbar */
.card-visible-header {
  position: absolute;
  bottom: -15px; /* fixer Abstand vom Kartenboden, passe nach Wunsch an */
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.5s ease;
  hyphens: auto;
  min-height: 80px !important; 
  /* Damit der Text bei Bedarf getrennt wird */
}

.card-visible {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  hyphens: auto;
  min-height: 60px !important; 
  /* Textumbruch mit Silbentrennung */
  position: relative; /* falls noch nicht gesetzt */
}

/* Hover auf Eltern-Element (z.B. .zoom-background) */
.zoom-background:hover .card-visible-header,
.zoom-background.hovered .card-visible-header {
  transform: translateY(-70px); /* Fährt 100px nach oben */
}

.zoom-background:hover .card-visible,
.zoom-background.hovered .card-visible {
  opacity: 1;
  transform: translateY(-50px); /* Fahrt ebenfalls nach oben, hier 50px als Beispiel */
}

/* Hover-Effekt für das Hintergrundbild und Text */
.zoom-background:hover > .kt-inside-inner-col::before {
    transform: scale(1.4);
    will-change: transform;
}

.zoom-background:hover > .kt-inside-inner-col::after,
.zoom-background.hovered > .kt-inside-inner-col::after  {
    background: rgba(0, 0, 0, 0.0); /* Dunkleres Overlay beim Hover */
}



/*für mobil modus drüberscrolleffekt Gleiche Effekte wie bei :hover, aber für die .hovered Klasse */
.zoom-background.hovered > .kt-inside-inner-col::before {
    transform: scale(1.15);
    will-change: transform;
}



 /*#######################################################################
#######################################################################*/

.animated-underline {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
  }
  
  .animated-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 6px;
    background-color: var(--global-palette5, #000);
    transition: width 0.4s ease;
    will-change: width;
    display: block; /* wichtig für Fallbacks */
  }
  
/* animated underline bei Hover oder JS-Hover */
.animated-underline:hover::after,
.animated-underline.hovered::after,
.card-focused:hover .animated-underline::after {
  width: 275px;
}


/*#######################################################################
#######################################################################*/

/*glow lines for borders   glow line is drawn and can disappear */
   
.bar {
    position: absolute;
    height: var(--bar-thickness, 4px);
    background: linear-gradient(
        90deg,
        var(--bar-color-1, #d0f0dd), /* Fallback default */
        var(--bar-color-2, #d0f0dd)  /* Fallback default */
    );
    border-radius: 0px;
    animation-timing-function: cubic-bezier(0.3, 0.4, 0.3, 1);
    animation-duration: var(--bar-speed, 2s);
    animation-fill-mode: forwards;
    animation-iteration-count: var(--iteration-count, 1);
    opacity: 0; /* Initially hide the element */
    animation-play-state: paused; /* Initially pause the animation */
    will-change: transform, opacity;
    transform-origin: left; /* Set the origin for scaling */
    width: 100%;
    transform: scaleX(0); /* Start scaled down */
}

.top {
    top: 0;
    left: 0;
}

.bottom {
    bottom: 0;
    left: 0;
}

@keyframes top-animation {
    0%   { transform: scaleX(0); opacity: 1; }
    50%  { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(0); opacity: 1; }
}

@keyframes bottom-animation {
    0%   { transform: scaleX(0); opacity: 1; }
    50%  { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(0); opacity: 1; }
}

@keyframes expand {
    0%   { transform: scaleX(0); opacity: 1; }
    100% { transform: scaleX(1); opacity: 1; }
}



/*#######################################################################
#######################################################################*/
 
.bigger-z {
    position: relative;  /* Damit der z-index wirkt */
    z-index: 10;         /* Höherer z-index als das Hintergrund-SVG */
  }

/*#######################################################################
#######################################################################*/

 /*#######################################################################
#######################################################################*/

/* Container für das Bild mit rotem Rand */
.zoom-in-red-border {
    position: relative;
    will-change: transform;
    overflow: hidden;
    border-radius: 50px 0 50px 0;
    border: 20px solid #F2295B;
  }


  
  /* Container für das Bild mit grauem Rand */
  .zoom-in-grey-border {
    position: relative;
    will-change: transform;
    overflow: hidden;
    border-radius: 50px 0 50px 0;
    border: 20px solid #1E2633;
  }
  
  
  /* Auf Tablets und Mobilgeräten Randstärke halbieren */
  @media (max-width: 1024px) { /* Tablet und kleiner */
    .zoom-in-red-border,
    .zoom-in-grey-border {
      border-width: 10px;
    }
  }
  
  /* Container für das Bild ohne Rand */
  .zoom-in-no-border {
    position: relative;
    will-change: transform;
    overflow: hidden;
    border: none;
  }

  /* Container für das Bild ohne Rand */
  .zoom-in {
    position: relative;
    will-change: transform;
    overflow: hidden;
    border: none;
  }
  
  /* Pseudo-Element für den Overlay */
  .zoom-in-red-border::before,
  .zoom-in-grey-border::before,
  .zoom-in-no-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
  }

  /* Pseudo-Element für den Overlay */

.zoom-in::before
 {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
  }
  
  /* Bild-Styling */
  .zoom-in-red-border img,
  .zoom-in-grey-border img,
	.zoom-in img,
  .zoom-in-no-border img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
    z-index: 0;
  }
  
/* Zoom-Effekt beim Hover oder JS-Hover */
.zoom-in-red-border:hover img,
.zoom-in-red-border.hovered img,
.zoom-in-grey-border:hover img,
.zoom-in-grey-border.hovered img,
.zoom-in:hover img,
.zoom-in.hovered img,
.zoom-in-no-border:hover img,
.zoom-in-no-border.hovered img,
.card-focused:hover .zoom-in-red-border img,
.card-focused:hover .zoom-in-grey-border img,
.card-focused:hover .zoom-in-no-border img {
  transform: scale(1.15);
}

/* Overlay entfernen bei Hover oder JS-Hover */
.zoom-in-red-border:hover::before,
.zoom-in-red-border.hovered::before,
.zoom-in-grey-border:hover::before,
.zoom-in-grey-border.hovered::before,
.zoom-in:hover::before,
.zoom-in.hovered::before,
.zoom-in-no-border:hover::before,
.zoom-in-no-border.hovered::before
{
  opacity: 0;
}

   /*#######################################################################
#######################################################################*/
  /* verändert ein square image, zu 2:1 in Mobil-Mode */
/* Verändert quadratische und landscape-Bilder zu 2:1 im Mobilmodus */
@media screen and (max-width: 1024px) {
    .wp-block-kadence-image.mobile-wide .kb-image-ratio-square,
    .wp-block-kadence-image.mobile-wide .kb-is-ratio-image,
    .wp-block-kadence-image.mobile-wide .kb-image-ratio-land43,
    .wp-block-kadence-image.mobile-wide .kb-image-ratio-land32 {
      padding-bottom: 50%; /* 2:1 Verhältnis */
    }
  }
  /*#######################################################################
#######################################################################*/
/* Link Styles*/

  .link-zoom {
    position: relative;
    align-items: center;
    text-decoration: none; /* Kein Unterstrich */
    will-change: transform;
    transition: transform 0.3s ease; /* Sanfte Zoom-Animation */
}

/* Entfernt die Unterstreichung auch für das <a>-Element im Inneren */
.link-zoom a {
    text-decoration: none;
}

/* Hover-Effekt mit Zoom und Verschiebung nach rechts */
.link-zoom:hover {
    transform: scale(1.03) translateX(7px); /* Vergrößerung um 3% und 5px nach rechts */
}


.link-no-underline a {
    text-decoration: none;
}


/* Basisstil für den Link */
.link-with-arrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

/* Pfeil als SVG-Hintergrund */
.link-with-arrow::after {
    content: "";
    display: inline-block;
    width: 30px; /* Standardbreite */
    height: 20px; /* Standardhöhe */
	/* stroke und fillfarbe angeben bspw weiß: %23FFFFFF */
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="69" height="26" viewBox="0 0 69 26" fill="none"><path d="M55 14H5C4 14 3 13 3 12.5C3 12 4 11 5 11H55L48 4C47 3 47 2 48 1C49 0 50 0 51 1L61 11C61.5 11.5 62 12 62 12.5C62 13 61.5 13.5 61 14L51 24C50 25 49 25 48 24C47 23 47 22 48 21L55 14Z" fill="%231B3358" stroke="%231B3358" stroke-width="3"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    margin-left: 14px; /* Weiter nach rechts */
    margin-top: 10px; /* Weiter nach unten */
    transition: transform 0.3s ease-out, width 0.3s ease-out;
}

/* Hover-Effekt */
.link-with-arrow:hover::after {
    transform: translateX(25px);
}


/* Basisstil für den weißen Link */
.link-with-arrow.white {
    color: #fff; /* Weiß für den Text */
}

/* Weißer Pfeil als SVG-Hintergrund */
.link-with-arrow.white::after {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="69" height="26" viewBox="0 0 69 26" fill="none"><path d="M55 14H5C4 14 3 13 3 12.5C3 12 4 11 5 11H55L48 4C47 3 47 2 48 1C49 0 50 0 51 1L61 11C61.5 11.5 62 12 62 12.5C62 13 61.5 13.5 61 14L51 24C50 25 49 25 48 24C47 23 47 22 48 21L55 14Z" fill="%23FFFFFF" stroke="%23FFFFFF" stroke-width="3"/></svg>');
}



 /*#######################################################################
 Row Layout Expand
#######################################################################*/


@media (min-width: 1024px) {
  .kb-hover-flex-expand > .kt-row-column-wrap {
    display: flex !important;
    flex-wrap: wrap; /* WICHTIG: lässt die Spalten umbrechen */
    gap: var(--global-kb-gap-none, 0rem);
  }

  .kb-hover-flex-expand > .kt-row-column-wrap > .wp-block-kadence-column {
    flex: 1 1 0;
    transition: flex-grow 0.3s ease, transform 0.3s ease;
    will-change: flex-grow, transform;
    margin-left: -0.5px;
    margin-right: -0.5px;
  }

  .kb-hover-flex-expand > .kt-row-column-wrap > .wp-block-kadence-column:hover {
    flex-grow: 2.5; /* 33% größer als die anderen */
    z-index: 1;
    margin-left: -0.5px;
    margin-right: -0.5px;
  }
}

 /*#######################################################################
#######################################################################*/



  /*#######################################################################################
    Gallery
  /*#######################################################################################*/
.kadence-blocks-gallery-item {
  overflow: hidden;
  position: relative;
}

.kadence-blocks-gallery-item img {
  will-change: transform, filter, opacity;
  transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out, opacity 0.3s ease-in-out;
  opacity: 1;
  filter: blur(0px);
  /* Standardmäßig unscharf */
  z-index: 1;
}

.kadence-blocks-gallery-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  /*background-color: rgba(0, 0, 0, 0.05);*/
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
  z-index: 2;
}

.kadence-blocks-gallery-item:hover img {
  transform: scale(1.15);
  opacity: 1;
  filter: blur(0px);
  /* Schärfer beim Hover */
}

.kadence-blocks-gallery-item:hover::before {
  opacity: 0;
}
  /*#######################################################################################*/
/*#######################################################################################*/


.site-branding {
    position: relative;
    display: inline-block;
    overflow: hidden;
    will-change: transform;
    transition: transform 0.3s ease;
    top: -4px;
}