/*
Theme Name: WSI Installationen
Author: tamas illes
Description: Theme of WSI Installationen
Version: 1.0
*/

/*--------- CUSTOM CSS ---------*/

:root {
  --bg: #fff;
  --text: #202020;
  --accent: #f2951c;
  --accentdark: #c7760b;
  --accentlight: #f5b35d;
  --mainwidthsize: 1400px;
}

html {
  scroll-behavior: smooth;
}
html,
body {
  font-family: "Fjalla One", sans-serif;
  margin: 0;
  overflow-x: hidden;
}

@font-face {
  font-family: "FjallaOne";
  src: url("/fonts/FjallaOne-Regular.ttf") format("ttf");
  font-style: normal;
}

div#cmplz-cookiebanner-container * {
  font-family: "Fjalla One";
}

/* Navbar */
#wsi_navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  width: 100%;
  position: sticky;
  background: var(--bg);
  box-shadow:
    rgba(50, 50, 105, 0.15) 0px 2px 5px 0px,
    rgba(0, 0, 0, 0.05) 0px 1px 1px 0px;
  font-size: 19px;
  z-index: 2;
}

#wsi_navbar div.wsi_navbar_container {
  width: var(--mainwidthsize);
  height: 100%;
  display: flex;
}

#wsi_navbar ul.wsi_nav_logopart {
  margin: 0;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: start;
  padding: 0;
}

#wsi_navbar ul.wsi_nav_contentpart {
  margin: 0;
  padding: 10px 0rem;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: end;
  padding: 0;
  gap: 25px;
}

#wsi_navbar ul.wsi_nav_logopart li a.wsi_navbar_logo_link {
  height: 100%;
}

#wsi_navbar ul li a {
  display: inline-flex;
  align-items: center;
}

#wsi_navbar ul a.wsi_navbar_logo_link:hover img,
#wsi_footer a.wsi_navbar_logo_link:hover img {
  scale: 1.2;
}

#wsi_navbar ul li {
  height: 100%;
  width: auto;
  align-items: center;
  gap: 15px;
}

ul.wsi_nav_logopart li,
ul.wsi_nav_contentpart li {
  display: flex;
}

#wsi_navbar ul li::marker {
  content: "";
}

#wsi_navbar img.wsi_navbar_logo {
  width: 100%;
  height: 100%;
  transition: 1s;
  scale: 1.5;
}

#wsi_footer img {
  width: 100%;
  height: 100%;
  transition: 1s;
}

/* Hover effect (dark) */
.wsi_hover_effect_dark {
  background: linear-gradient(
    to right,
    var(--accentdark),
    var(--accentdark) 50%,
    var(--text) 50%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  background-position: 100%;
  transition: background-position 500ms ease;
}

.wsi_hover_effect_dark:hover {
  background-position: 0 100%;
  border-color: var(--accentdark);
}

/* Hover effect (basecolor) */
.wsi_hover_effect {
  background: linear-gradient(
    to right,
    var(--accent),
    var(--accent) 50%,
    var(--text) 50%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  background-position: 100%;
  transition: background-position 500ms ease;
}

.wsi_hover_effect:hover {
  background-position: 0 100%;
  border-color: var(--accent);
}

/* Responsive Menu */
.wsi_menu-wrap {
  position: relative;
  top: 0;
  right: 0;
  z-index: 1;
  height: 100%;
  width: 30px;
  display: none;
}

.wsi_menu-wrap .toggler {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1001;
  cursor: pointer;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.wsi_menu-wrap .wsi_hamburger {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  height: 100%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wsi_menu-wrap .wsi_hamburger > div {
  position: relative;
  width: 100%;
  height: 2px !important;
  background-color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  padding: 0 !important;
}

.wsi_menu-wrap .wsi_hamburger > div:before,
.wsi_menu-wrap .wsi_hamburger > div:after {
  content: "";
  position: absolute;
  z-index: 1;
  top: -8px;
  width: 100%;
  height: 2px;
  background: inherit;
}

.wsi_menu-wrap .wsi_hamburger > div:after {
  top: 8px;
}

.wsi_menu-wrap .toggler:checked + .wsi_hamburger > div {
  transform: rotate(135deg);
}

.wsi_menu-wrap .toggler:checked + .wsi_hamburger > div:before,
.wsi_menu-wrap .toggler:checked + .wsi_hamburger > div:after {
  top: 0;
  transform: rotate(90deg);
}

.wsi_menu-wrap .toggler:checked:hover + .wsi_hamburger > div {
  transform: rotate(225deg);
}

.wsi_menu-wrap .toggler:checked ~ .wsi_menu_rsp {
  visibility: visible;
}
.wsi_menu-wrap .toggler:checked ~ .wsi_menu_rsp > div {
  transform: scale(1);
}

.wsi_menu-wrap .toggler:checked ~ .wsi_menu_rsp > div > div {
  opacity: 1;
  transition: opacity 0.4s ease;
}

.wsi_menu-wrap .wsi_menu_rsp {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.wsi_menu-wrap .wsi_menu_rsp > div {
  background-color: var(--bg);
  border-radius: 50%;
  width: 300vh;
  height: 300vh;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: all 0.4s ease;
}

.wsi_menu-wrap .wsi_menu_rsp > div > div {
  text-align: center;
  max-width: 90vw;
  max-height: 100vh;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.wsi_menu-wrap .wsi_menu_rsp > div > div > ul {
  padding: 0;
}

.wsi_menu-wrap .wsi_menu_rsp > div > div > ul > li {
  list-style: none;
  color: var(--text);
  font-size: 1.5rem;
  padding: 1rem;
}

.wsi_menu-wrap .wsi_menu_rsp > div > div > ul > li > a {
  color: inherit;
  text-decoration: none;
  transition: color 0.4s ease;
}

/* Footer */
footer#wsi_footer {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: auto;
  position: relative;
  background: var(--bg);
}

footer#wsi_footer:after {
  box-shadow:
    rgba(50, 50, 105, 0.15) 0px 2px 5px 0px,
    rgba(0, 0, 0, 0.05) 0px 1px 1px 0px;
  content: "";
  rotate: 180deg;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

footer#wsi_footer img.wsi_footer_logo {
  width: 100%;
  height: 350px !important;
}

div#wsi_footer_content {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: var(--mainwidthsize);
  height: 100%;
}

.wsi_footer_element {
  display: flex;
  flex-direction: column;
}

.wsi_footer_element,
p.wsi_nospace {
  color: #666666;
}

.wsi_footer_element h3,
p.wsi_nospace a {
  color: #000;
}

.wsi_footer_element p {
  margin: 0;
  padding: 0;
}

p.wsi_nospace {
  width: 170px;
  padding-bottom: 1.5rem;
}

/* Responsive Header*/
@media only screen and (max-width: 1645px) {
  #wsi_navbar div.wsi_navbar_container {
    width: 1400px;
    padding: 0px 20px;
  }
}

@media only screen and (max-width: 1195px) and (min-width: 781px) {
  .wsi_menu-wrap {
    display: block;
  }
  .wsi_nonresponsive_navbar_element {
    display: none !important;
  }
  footer#wsi_footer img.wsi_footer_logo {
    height: auto !important;
  }
}

@media only screen and (max-width: 780px) {
  footer#wsi_footer img.wsi_footer_logo {
    height: auto !important;
  }
  .wsi_menu-wrap {
    display: block;
  }
  .wsi_nonresponsive_navbar_element {
    display: none !important;
  }

  #wsi_navbar div.wsi_navbar_container {
    width: 100%;
    padding: 0 55px;
  }
}

@media only screen and (max-width: 476px) {
  ul.wsi_nav_logopart a.wsi_hover_effect_dark {
    display: none !important;
  }
}

/* Responsive footer bits (from your CSS) */
@media only screen and (max-width: 1645px) {
  div#wsi_footer_content {
    width: 100%;
  }
}

@media only screen and (max-width: 1195px) and (min-width: 781px) {
  img.wsi_footer_logo {
    width: 251px !important;
  }
  footer#wsi_footer {
    height: auto;
  }
  div#wsi_footer_content {
    flex-direction: column;
    margin: 3rem 0;
    gap: 2rem;
    align-items: center;
    text-align: center;
  }
}

@media only screen and (max-width: 780px) {
  footer#wsi_footer {
    height: auto;
  }
  .wsi_footer_element {
    align-items: center;
  }
  div#wsi_footer_content {
    flex-direction: column;
    margin: 3rem 0;
    gap: 2rem;
    align-items: center;
    text-align: center;
  }
  img.wsi_footer_logo {
    width: 62% !important;
  }
}

/* ===== Global link reset ===== */
a {
  text-decoration: none;
}

.wsi_black { color: #000; }
.wsi_link  { text-decoration: none; }

/* ===== Shared buttons ===== */
.wsi_btn,
.wsi_btn_outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  padding: 14px 28px;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  transition: 0.25s;
  text-decoration: none;
  border: 2px solid var(--accent);
}

.wsi_btn {
  background: var(--accent);
  color: #fff;
}
.wsi_btn:hover {
  background: var(--accentdark);
  border-color: var(--accentdark);
}

.wsi_btn_outline {
  background: transparent;
  color: var(--accent);
}
.wsi_btn_outline:hover {
  background: var(--accent);
  color: #fff;
}

/* ===== Shared layout ===== */
.wsi_section_wrap {
  width: var(--mainwidthsize);
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section heading with left orange accent bar */
.wsi_section_title {
  font-size: 34px;
  margin: 0 0 16px;
  position: relative;
  padding-left: 18px;
}
.wsi_section_title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 5px;
  background: var(--accent);
  border-radius: 4px;
}

/* Centered variant – no left bar */
.wsi_section_title.wsi_centered {
  padding-left: 0;
  text-align: center;
}
.wsi_section_title.wsi_centered::before {
  display: none;
}

.wsi_section_sub {
  text-align: center;
  color: rgba(0, 0, 0, 0.6);
  font-size: 18px;
  margin: 0 0 40px;
}

/* Large page-level h1 */
.wsi_page_title {
  font-size: 46px;
  margin: 0 0 16px;
}

.wsi_page_intro {
  font-size: 18px;
  color: rgba(0, 0, 0, 0.65);
  line-height: 1.65;
  max-width: 800px;
  margin: 0 0 60px;
}

/* Cookie policy page (Complianz) */
body.cmplz-document .entry-content {
  display: flex;
  justify-content: center;
  padding: 60px 20px;
}

/* hide the default WP page title on Complianz document pages */
body.cmplz-document .entry-header,
body.cmplz-document .entry-title {
  display: none !important;
}

body.cmplz-document .entry-content > #cmplz-document {
  width: var(--mainwidthsize);
  max-width: 100%;
  background: #fff;
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow:
    rgba(50, 50, 105, 0.12) 0 8px 24px,
    rgba(0, 0, 0, 0.05) 0 2px 6px;
  line-height: 1.65;
  font-size: 18px;
}

body.cmplz-document .entry-content #cmplz-document h2 {
  margin: 22px 0 10px;
}

/* optional: link hover like your theme */
body.cmplz-document .entry-content #cmplz-document a {
  text-decoration: none;
}

/*--------- SCROLL REVEAL ---------*/
/* Elements are only hidden once wsi-reveal.js has confirmed it is running
   (it sets .wsi_reveal_ready on <html>). If the script fails to load or the
   visitor prefers reduced motion, everything stays visible as normal. */

.wsi_reveal_ready .wsi_reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.wsi_reveal_ready .wsi_reveal--left  { transform: translate3d(-38px, 0, 0); }
.wsi_reveal_ready .wsi_reveal--right { transform: translate3d(38px, 0, 0); }
.wsi_reveal_ready .wsi_reveal--zoom  { transform: scale(0.94); }

.wsi_reveal_ready .wsi_reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Images get a slightly longer, softer move than text. */
.wsi_reveal_ready .wsi_reveal--img {
  transition:
    opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .wsi_reveal_ready .wsi_reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* The Leistungen cards alternate with direction:rtl, so on reversed cards
   the image sits on the right - slide it in from the right instead. */
.wsi_reveal_ready .wsi_leistung_card--reverse .wsi_leistung_img.wsi_reveal--left {
  transform: translate3d(38px, 0, 0);
}

.wsi_reveal_ready .wsi_leistung_card--reverse .wsi_leistung_body.wsi_reveal--right {
  transform: translate3d(-38px, 0, 0);
}

.wsi_reveal_ready .wsi_leistung_card--reverse .wsi_reveal.is-visible {
  transform: none;
}
