/*
Theme Name: Timan Child
Theme URI: https://ipp.cmyankali.com
Description: Child Theme for the Timan Theme
Author: cmyankali
Author URI: https://ipp.cmyankali.com
Template: timan
Version: 1.0
*/


/* ========================================
   MOBILE MENU
======================================== */

@media (max-width: 1024px) {

  .main-navigation {
    background-color: #4b9fe3 !important;
    color: #fff !important;
  }

  .main-navigation a {
    color: #fff !important;
  }

  .main-navigation a:hover {
    color: rgba(255, 255, 255, 0.85) !important;
  }

  .menu-mobile-close i {
    color: #fff !important;
  }

  .btn-mobile {
    background-color: #35b18b !important;
    color: #fff !important;
    border: none !important;
  }

  .btn-mobile:hover {
    background-color: #4b9fe3 !important;
  }

}


/* ========================================
   SEARCH AUSBLENDEN
======================================== */

.header-mobile-search {
  display: none !important;
}

.header-search,
.search-toggle,
.search-trigger,
.search-form {
  display: none !important;
}


/* ========================================
   MOBILE SLIDER POSITION
======================================== */

@media (max-width: 991.98px) and (orientation: portrait) {

  .page-id-857 {
    --sticky-offset: 120px;
  }

  .page-id-857 sr7-module[data-alias="IPP-2027"],
  .page-id-857 #SR7_7_1 {
    display: block;
    position: relative;
    top: calc(var(--sticky-offset) * -1);
    margin-bottom: calc(var(--sticky-offset) * -1);
  }

}


/* ========================================
   BUTTON HOVER
======================================== */

.btn,
.button,
a.btn,
a.button,
input[type="submit"],
input[type="button"] {
  transition: all 0.3s ease !important;
}

.btn-primary,
.button-primary {
  background-color: #4B9FE3 !important;
  color: #fff !important;
  border: none !important;
}

.btn-primary:hover,
.button-primary:hover {
  background-color: #35B18B !important;
  color: #fff !important;
}

.btn-secondary,
.button-secondary {
  background-color: #35B18B !important;
  color: #fff !important;
  border: none !important;
}

.btn-secondary:hover,
.button-secondary:hover {
  background-color: #4B9FE3 !important;
  color: #fff !important;
}


/* ========================================
   MOBILE HAMBURGER ICON
======================================== */

#main-menu-mobile .btn-nav-mobile span,
#main-menu-mobile .btn-nav-mobile::before,
#main-menu-mobile .btn-nav-mobile::after {
  background-color: #fff !important;
  transition: background-color 0.3s ease !important;
}

#main-menu-mobile .btn-nav-mobile.opened span,
#main-menu-mobile .btn-nav-mobile.opened::before,
#main-menu-mobile .btn-nav-mobile.opened::after {
  background-color: rgba(255, 255, 255, 0.85) !important;
}


/* ========================================
   IPP FIXED SPONSOR BAR
======================================== */

:root {
  --ipp-sponsorbar-h: 140px;
  --ipp-sponsor-logo-maxw: 300px;
  --ipp-sponsor-logo-maxh: 90px;
}


/* ----------------------------------------
   ÄUSSERER FIXIERTER CONTAINER
---------------------------------------- */

.ipp-sponsor-bar {
  position: fixed !important;

  left: 0;
  right: 0;
  bottom: 0;

  z-index: 2147483647;

  width: 100%;

  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);

  display: none !important;

  padding-bottom: env(safe-area-inset-bottom, 0px);

  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;

  box-sizing: border-box;
}


/* ----------------------------------------
   DESKTOP ANZEIGEN
---------------------------------------- */

@media (min-width: 1025px) {

  .ipp-sponsor-bar {
    display: block !important;
  }

  body {
    padding-bottom: var(--ipp-sponsorbar-h);
  }

  .site-footer,
  #colophon,
  footer {
    padding-bottom: calc(var(--ipp-sponsorbar-h) + 12px);
  }

}


/* ----------------------------------------
   TABLET PORTRAIT ANZEIGEN
---------------------------------------- */

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {

  .ipp-sponsor-bar {
    display: block !important;
  }

  body {
    padding-bottom: var(--ipp-sponsorbar-h);
  }

  .site-footer,
  #colophon,
  footer {
    padding-bottom: calc(var(--ipp-sponsorbar-h) + 12px);
  }

}


/* ----------------------------------------
   MOBILE AUSBLENDEN
---------------------------------------- */

@media (max-width: 767.98px) {

  .ipp-sponsor-bar {
    display: none !important;
  }

  body {
    padding-bottom: 0 !important;
  }

  .site-footer,
  #colophon,
  footer {
    padding-bottom: 0 !important;
  }

}


/* ----------------------------------------
   TABLET LANDSCAPE AUSBLENDEN
---------------------------------------- */

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {

  .ipp-sponsor-bar {
    display: none !important;
  }

  body {
    padding-bottom: 0 !important;
  }

  .site-footer,
  #colophon,
  footer {
    padding-bottom: 0 !important;
  }

}


/* ========================================
   SPONSOR BAR INNER CONTAINER
======================================== */

.ipp-sponsor-bar .ipp-sponsor-bar__inner {
  display: flex !important;
  flex-wrap: wrap !important;

  align-items: center;
  align-content: center;
  justify-content: center;

  width: 100%;
  max-width: 100%;

  min-height: var(--ipp-sponsorbar-h);

  margin: 0 auto;
  padding: 12px 20px;

  column-gap: 12px;
  row-gap: 8px;

  box-sizing: border-box;
}


/* ========================================
   WORDPRESS WIDGET WRAPPER
======================================== */

.ipp-sponsor-bar .ipp-sponsor-bar__widget {
  display: flex !important;
  flex-wrap: wrap !important;

  align-items: center;
  align-content: center;
  justify-content: center;

  width: 100%;
  max-width: 100%;
  min-width: 0;

  margin: 0 auto;

  column-gap: 12px;
  row-gap: 8px;

  box-sizing: border-box;
}


/* ========================================
   WIDGET CONTENT
======================================== */

.ipp-sponsor-bar .ipp-sponsor-bar__widget > * {
  min-width: 0;
  max-width: 100%;
}


/* ========================================
   SPONSOR LINKS
======================================== */

.ipp-sponsor-bar a {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  padding: 6px 10px;
}


/* ========================================
   SPONSOR LOGOS
======================================== */

.ipp-sponsor-bar img {
  display: block;

  width: auto;
  height: auto;

  max-width: var(--ipp-sponsor-logo-maxw);
  max-height: var(--ipp-sponsor-logo-maxh);

  object-fit: contain;
}


/* ========================================
   RESPONSIVE SPONSOR BAR
   1025px – 1800px
======================================== */

@media (min-width: 1025px) and (max-width: 1800px) {

  :root {
    --ipp-sponsorbar-h: 180px;
  }

  .ipp-sponsor-bar {
    height: auto !important;
    min-height: var(--ipp-sponsorbar-h);
  }

  .ipp-sponsor-bar .ipp-sponsor-bar__inner {
    width: 100%;
    max-width: 1200px;

    min-height: var(--ipp-sponsorbar-h);
    height: auto !important;

    margin-left: auto;
    margin-right: auto;

    padding: 12px 20px;

    column-gap: 12px;
    row-gap: 8px;
  }

  .ipp-sponsor-bar .ipp-sponsor-bar__widget {
    width: 100%;
    max-width: 100%;

    height: auto !important;

    flex-wrap: wrap !important;

    column-gap: 12px;
    row-gap: 8px;
  }

}


/* ========================================
   HEADER DESKTOP
======================================== */

@media (min-width: 1025px) {

  .header-main,
  #masthead,
  .site-header {
    width: 100% !important;
  }

  .header-main .container,
  #masthead .container,
  .site-header .container,
  .header-main .content-container,
  #masthead .content-container,
  .site-header .content-container {
    max-width: 1500px !important;

    margin-left: auto !important;
    margin-right: auto !important;

    width: 100% !important;

    padding-left: 48px !important;
    padding-right: 48px !important;
  }

  .header-main .row,
  #masthead .row,
  .site-header .row {
    flex-wrap: nowrap !important;
  }

  .header-main .primary-menu,
  #masthead .primary-menu,
  .site-header .primary-menu,
  .header-main .primary-menu > li,
  #masthead .primary-menu > li,
  .site-header .primary-menu > li {
    white-space: nowrap !important;
  }

  .header-main .primary-menu > li > a,
  #masthead .primary-menu > li > a,
  .site-header .primary-menu > li > a {
    font-size: clamp(12px, 0.88vw, 15px) !important;

    padding-left: 10px !important;
    padding-right: 10px !important;
  }

}

/* ========================================

   BACK TO TOP BUTTON – TIMAN

   Oberhalb der fixierten Sponsorleiste

======================================== */

/* Desktop über 1800px */

@media (min-width: 1801px) {

  a.ct-scroll-top {

    bottom: 160px !important;

  }

}

/* Desktop 1025px bis 1800px */

@media (min-width: 1025px) and (max-width: 1800px) {

  a.ct-scroll-top {

    bottom: 200px !important;

  }

}

/* Tablet Hochformat */

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {

  a.ct-scroll-top {

    bottom: 160px !important;

  }

}