/* ---------------------------------------------------------------------
   0. Theme Info
------------------------------------------------------------------------ */
/*
Theme Name: Kadence Child
Template: kadence
Version: 1.0
*/



/* ==========================================================================
   1. GLOBAL VARIABLES & TOKENS
========================================================================== */

/* Root-Level CSS Custom Properties (Colors, Spacing, etc.) */
:root {
  /* Brand Colors */
  --color-primary: #eb6100;
  --color-secondary: #ec174c;
  --color-accent: #ff4f81;
  /* System Colors */
  --color-success: #28a745;
  --color-danger: #dc3545;
  --color-warning: #f5ad33;
  --color-info: #4A5568;
  /* Text Colors */  
  --color-text-headings: #000;
  --color-text-body: #333;
  /* Background Colors */
  --color-bg-light: #F8F8F8;
  --color-bg-medium: #ECECEC;
  --color-bg-dark: #4A5568;

  /* Typography */
  --font-base: 'Open Sans', sans-serif;

  /* Button Styles */
  --btn-radius: 999px;
  --btn-padding: 0.75em 3em;
  --btn-font-weight: 500;

  /* Other */
  --animation-fast: 0.3s ease;
  --animation-slow: 0.8s ease;
}


/* ==========================================================================
   2. TYPOGRAPHY
========================================================================== */

/* Base font size and font import */
html {
  font-size: 18px;
}

@font-face {
  font-family: 'Open Sans';
  src: url('assets/fonts/OpenSans.woff2') format('woff2'),
       url('assets/fonts/OpenSans.woff') format('woff');
  font-weight: 100 900;
  font-display: swap;
}

body, button, input, select, textarea {
  font-family: var(--font-base);
}

p {
  margin: 0 !important;
  padding: 0 !important;
}



/* ==========================================================================
   3. HEADLINES
========================================================================== */

/* Primary gradient headline */
.u-adv-headline > .elementor-widget-container > :is(h1, h2, h3, h4, h5, h6, span) {
  display: inline-block;
  background: linear-gradient(90deg, var(--global-palette1), var(--color-accent));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700 !important;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Secondary */
.u-adv-headline--secondary > .elementor-widget-container > :is(h1, h2, h3, h4, h5, h6, span) {
  background: linear-gradient(90deg, #7f3eff, #00ffe7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
}

/* Inline span variant */
span.u-adv-headline {
  background: linear-gradient(90deg, var(--global-palette1), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
}


/* ==========================================================================
   4. QUOTES
========================================================================== */
/* Basis-Quote-Styles fuer Osstem Theme - ueberschreiben der Kadence Styles */
blockquote {
  position: relative;
  border-left: 4px solid var(--global-palette1);
  padding-left: 2rem;
  margin: 1em;
  line-height: 1.6;
}


/* ==========================================================================
   5. BUTTONS
========================================================================== */

/* General style for all buttons except types */
body .elementor-button:not(.ignore-custom-style) {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  font-weight: var(--btn-font-weight);
  padding: var(--btn-padding);
  border-radius: var(--btn-radius);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s ease;
  color: #fff;
  background-image: linear-gradient(45deg, var(--global-palette1), var(--color-secondary));
  background-size: 100% 100%;
  background-position: 0% 10%;
}

/* Hover animation (only for default button) */
.elementor-button.elementor-size-sm:not(.elementor-button-info):not(.elementor-button-success):not(.elementor-button-danger):not(.elementor-button-warning):hover {
  background-image: linear-gradient(45deg, var(--color-accent), var(--global-palette1));
  background-position: 100% 50%;
  transform: scale(1.05);
  color: #fff;
  border: none;
}

/* --- INFO Button --- */
.elementor-button-info .elementor-button {
  background: var(--color-info) !important;
  color: #fff !important;
}

.elementor-button-info .elementor-button:hover {
  background-color: #838383 !important;
  color: #fff !important;
  transform: scale(1.05) !important;
}

/* --- SUCCESS Button --- */
.elementor-button-success .elementor-button {
  background: var(--color-success) !important;
  color: #fff !important;
}

.elementor-button-success .elementor-button:hover {
  filter: brightness(0.9) !important;
  transform: scale(1.05) !important;
}

/* --- WARNING Button --- */
.elementor-button-warning .elementor-button {
  background: var(--color-warning) !important;
  color: #fff !important;
}

.elementor-button-warning .elementor-button:hover {
  filter: brightness(0.9) !important;
  transform: scale(1.05) !important;
}

/* --- DANGER Button --- */
.elementor-button-danger .elementor-button {
  background: var(--color-danger) !important;
  color: #fff !important;
}

.elementor-button-danger .elementor-button:hover {
  filter: brightness(0.9) !important;
  transform: scale(1.05) !important;
}





/* ==========================================================================
   6. BULLETPOINTS
========================================================================== */

/* Bulletpoints Osstem Icon */
.oslist ul {
  list-style: none;
  padding-left: 1.5em;
  margin: 0;
}

.oslist li {
  margin-bottom: 0.5em;
  position: relative;
}

.oslist li::before {
  content: "";
  position: absolute;
  left: -1.5em;
  top: 0.25em;
  height: 0.8em;
  width: 0.8em;
  background: url(https://osstem.at/wp-content/uploads/2023/11/Osstem_Logo_Symbol.svg) center/75% no-repeat;
  transition: background-size 0.2s ease;
}

.oslist li:hover::before {
  background-size: 100%;
}



/* ==========================================================================
   7. SCROLL DOWN BUTTON (PRODUCT PAGES)
========================================================================== */

/* === Scroll Down Button: Fixiert, transparent, nur Pfeil sichtbar === */
.u-scroll-down-fixed {
  position: fixed;
  bottom: 32px !important;
  left: 50% !important;
  transform: translateX(-50%);
  background: transparent !important;
  border: none;
  font-size: 3rem !important;
  color: var(--e-global-color-kadence5) !important;
  cursor: pointer;
  z-index: 99;
  animation: u-bounce-down 2s infinite;
  transition: opacity 0.3s ease;
}

.u-scroll-down-fixed.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.u-scroll-down-fixed:hover {
  color: var(--e-global-color-kadence1) !important;
  opacity: 1;
  box-shadow: none !important;       /* Falls Elementor box-shadow setzt */
  text-shadow: none !important;      /* Falls Elementor text-shadow setzt */
  filter: none !important;            /* Falls Elementor Filter nutzt */
}

/* Nur auf Desktop zeigen */
@media (max-width: 768px) {
  .u-scroll-down-fixed {
    display: none;
  }
}

/* === Bounce-Animation für den Pfeil === */
@keyframes u-bounce-down {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(8px);
  }
  60% {
    transform: translateX(-50%) translateY(4px);
  }
}




/* ---------------------------------------------------------------------
   FOOTER TYPOGRAPHY
------------------------------------------------------------------------ */

.u-footer-subline {
  font-size: var(--e-global-typography-41978cf-font-size, 1.1rem);
  line-height: 1.3; /* optional */
  font-weight: bold; /* falls gewünscht */
}




/* === Footer sticky === */
/* 
  Footer als sticky und hinter dem Content
  .site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: -1;
    margin-top: -24px;
  }

  Optional: Footer durchsichtig machen
  .site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    z-index: -1;
  }

  Abstand zum Footer bei Content berücksichtigen
  body::after {
    content: '';
    display: block;
    height: var(--footer-height, 800px);
  }

  Damit der Content nicht vom Footer überdeckt wird und dieser im Design "unten durchscheint"
  #page, .site-main {
    position: relative;
    z-index: 1;
    background: white;
  }

  Sticky-Design auf Mobile deaktivieren
  @media (max-width: 768px) {
    .site-footer {
      position: static !important;
      z-index: auto !important;
      pointer-events: auto !important;
    }

    body::after {
      display: none;
    }
  }
*/