/* 
Theme Name:    Derjosef-Child
Theme URI:     http://childtheme-generator.com/
Description:   Derjosef-Child is a child theme of DerJosef
Author:       Josef Gerhardter
Author URI:    https://derjosef.com
Template:      derjosef
Version:      1.0.0
Text Domain:   derjosef-child
*/

/*
    Add your custom styles here
*/

:root {
  --color-blue: #0165b2;
  --color-black: #0b0b0b;
  --color-main-blue: #00184e;
  --color-gray: #f7f7f7;

  --font-size-base: 14px;
  --font-size-h1: 3.96vw;
  --font-size-h2: 3.3vw;
  --font-size-h3: 3.3vw;
  --font-size-h4: 2.5vw;
  --font-size-h5: 1.71vw;
  --font-size-h6: 3.3vw;
  --line-height: 1.6;

  --spacing-small: 8px;
  --spacing-medium: 16px;
  --spacing-large: 32px;
  --spacing-xlarge: 150px;

  --corner-size-small: 25px;
  --corner-size-big: 50px;
}

/* Fonts */

@font-face {
  font-family: "Lato-Thin";
  src: url("/wp-content/themes/derjosef-child/fonts/Lato/Lato-Thin.woff2")
      format("woff2"),
    url("/wp-content/themes/derjosef-child/fonts/Lato/Lato-Thin.woff")
      format("woff");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lato-Regular";
  src: url("/wp-content/themes/derjosef-child/fonts/Lato/Lato-Regular.woff2")
      format("woff2"),
    url("/wp-content/themes/derjosef-child/fonts/Lato/Lato-Regular.woff")
      format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lato-Light";
  src: url("/wp-content/themes/derjosef-child/fonts/Lato/Lato-Light.woff2")
      format("woff2"),
    url("/wp-content/themes/derjosef-child/fonts/Lato/Lato-Light.woff")
      format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lato-Bold";
  src: url("/wp-content/themes/derjosef-child/fonts/Lato/Lato-Bold.woff2")
      format("woff2"),
    url("/wp-content/themes/derjosef-child/fonts/Lato/Lato-Bold.woff")
      format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lato-black";
  src: url("/wp-content/themes/derjosef-child/fonts/Lato/Lato-Black.woff2")
      format("woff2"),
    url("/wp-content/themes/derjosef-child/fonts/Lato/Lato-Black.woff")
      format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Fonts */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
  height: fit-content;
  overflow-x: hidden;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
body {
  margin: 0;
  font-family: "Lato-Regular" !important;
  background-color: var(--color-white-clear) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
#main {
  margin-top: 0rem !important;
  margin: 0px;
  padding: 0px;
}
.single #comments-title,
.single .entry-content,
.single .post-navigation {
  margin: 0px !important;
}
.container-fluid {
  padding: 0px 3vw !important;
}

h1,
.h1,
h1 p {
  font-size: calc(1.5rem + 1vw) !important;
  line-height: 1.2;
  font-family: "Lato-Regular";
  margin-bottom: 0.5em;
  color: var(--color-main-blue) !important;
  text-transform: uppercase;
}

h2,
.h2 {
  font-size: calc(1.4rem + 0.8vw) !important;
  line-height: 1.3;
  font-family: "Lato-Regular";
  margin-bottom: 0.5em;
  color: var(--color-main-blue) !important;
  text-transform: uppercase;
}

h3,
.h3 {
  font-size: calc(1.3rem + 0.4vw) !important;
  line-height: 1.4;
  font-family: "Lato-Regular";
  margin-bottom: 0.5em;
  color: var(--color-main-blue) !important;
  text-transform: uppercase;
}

h4,
.h4 {
  font-size: calc(1.2rem + 0.3vw) !important;
  line-height: 1.5;
  font-family: "Lato-Regular";
  margin-bottom: 0.5em;
  color: var(--color-main-blue) !important;
  text-transform: uppercase;
}

h5,
.h5 {
  font-size: calc(1.1rem + 0.2vw) !important;
  line-height: 1.6;
  font-family: "Lato-Regular";
  margin-bottom: 0.5em;
  color: var(--color-main-blue) !important;
  text-transform: uppercase;
}

h6,
.h6 {
  font-size: calc(1rem + 1vw) !important;
  line-height: 1.7;
  font-family: "Lato-Regular";
  margin-bottom: 0.5em;
  color: var(--color-main-blue) !important;
  text-transform: uppercase;
}
h1 strong,
h2 strong,
h3 strong,
h4 strong,
h5 strong,
h6 strong {
  color: var(--color-green);
  font-family: "Lato-Regular" !important;
  font-weight: normal !important;
  color: var(--color-main-blue) !important;
}
.subheadline {
  font-family: "Lato-Regular" !important;
  text-transform: uppercase;
  letter-spacing: 0.1;
  font-size: calc(0.9rem + 0.2vw) !important;
  color: var(--color-main-blue) !important;
}

.h1-xl {
  font-size: calc(2rem + 1vw) !important;
  font-family: "Lato-Regular";
  font-weight: 600;
  margin-bottom: 0em;
  color: var(--color-main-blue) !important;
}
.h2-xl {
  font-family: "Lato-Light";
  font-size: calc(2rem + 1vw) !important;
}
p,
li {
  margin-bottom: 1em;
  font-family: "Lato-Regular" !important;
  font-size: 1rem !important;
}

main a {
  font-family: "Lato-Regular" !important;
  color: var(--color-black) !important;
}
a:hover {
}
small {
  font-size: 0.8em !important;
}
strong {
  font-family: "Lato-Regular" !important;
}
button {
  font-family: "Lato-Regular" !important;
  font-size: 0.8em !important;
}
.caption {
  font-family: "Lato-Regular" !important;
}

/* Spacer */

.spacer-none {
  margin: 0px 0px;
}
.spacer-small {
  margin: 32px 0px;
}
.spacer-middle {
  margin: 64px 0px;
}
.spacer-big {
  margin: 128px 0px;
}
.spacer-biggest {
  margin: 200px 0px;
}

/* width */
.w-50 {
  width: 50% !important;
}
.w-60 {
  width: 60% !important;
}
.w-70 {
  width: 70% !important;
}
.w-80 {
  width: 80% !important;
}
.w-90 {
  width: 90% !important;
}
.w-100 {
  width: 100% !important;
}

/* color  */
.text-gray {
  color: var(--color-gray) !important;
}
.text-blue {
  color: var(--color-blue) !important;
}
.text-main-blue {
  color: var(--color-main-blue) !important;
}
.bc-color-gray {
  background-color: var(--color-gray) !important;
}
.bc-color-blue {
  background-color: var(--color-blue) !important;
}
.bc-color-main-blue {
  background-color: var(--color-main-blue) !important;
}

/* Button */

.btn-outline-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border-radius: 50px;
}

.btn-outline-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--color-blue);
  transition: all 0.4s ease;
  z-index: -1;
}
.btn-outline-primary {
  border: 1px solid var(--color-blue) !important;
}
.btn-outline-primary:hover::before {
  left: 0;
}

.btn-outline-primary:hover {
  color: var(--color-gray) !important;
  background-color: var(--color-blue) !important;
  border-color: var(--color-blue) !important;
}

.btn-inverted {
  color: var(--color-gray) !important;
  border: 1px solid var(--color-gray) !important;
}
.btn-inverted:hover {
  color: var(--color-main-blue) !important;
  background-color: var(--color-gray) !important;
  border: 1px solid var(--color-gray) !important;
}
/* Nav  */
.navbar-expand-md .navbar-collapse {
  justify-content: flex-end !important;
}
a.nav-link {
  text-transform: uppercase;
  font-family: "Lato-Bold" !important;
  color: var(--color-main-blue) !important;
}

.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1020;
}

.navbar-brand img {
  height: 60px;
}

/* Grundstil für die Menüpunkte */
.navbar-nav > li > a {
  position: relative;
  display: inline-block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Der animierte Strich (Pseudoelement) */
.navbar-nav > li > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

/* On hover: Strich animieren */
.navbar-nav > li > a:hover::after {
  width: 100%;
}

/* Aktiver Menüpunkt: Strich bleibt stehen */
.navbar-nav > li.current-menu-item > a::after,
.navbar-nav > li.current_page_item > a::after,
.navbar-nav > li.current-menu-ancestor > a::after {
  width: 100%;
}
/* mobile nav */
/* Basis CSS für das Overlay-Menü */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 1050;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.mobile-menu li {
  margin: 1rem 0;
}

.mobile-menu li a {
  font-size: 1.5rem;
  color: var(--color-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-menu li a:hover {
  color: #ccc;
}

.mobile-close {
  position: absolute;
  top: 0px;
  right: 0px;
  font-size: 3rem !important;
  color: var(--color-gray);
  background: none;
  border: none;
  cursor: pointer;
}

article {
  border-bottom: 1px solid black;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-nav {
  flex-direction: row;
}

.navbar-nav li {
  margin-left: 1rem;
}

#header {
  width: 100%;
  transition: all 0.3s ease;
}

@media (max-width: 767.98px) {
  #navbar.collapse {
    display: none !important;
  }
}

/* Footer */

footer img {
  max-width: 140px;
}
.footer-img-secondary {
  max-width: 80px;
  margin-top: 40px;
}
footer a {
  color: var(--color-main-blue) !important;
}

/* Mobile */
@media (max-width: 767.98px) {
  /* nav */

  #mobile-overlay a {
    color: var(--color-gray) !important;
  }
  .h1-xl,
  .h2-xl {
    font-size: calc(2rem + 1vw) !important;
  }
  /* Layout */
  .w-50,
  .w-55,
  .w-60,
  .w-65,
  .w-70,
  .w-75,
  .w-80,
  .w-85,
  .w-90,
  .w-95,
  .w-100 {
    width: 100% !important;
  }

  /* Header */
  .header-section-slider .slider-item img {
    height: 500px !important;
  }
  .header-section-slider .slider-item {
    height: auto !important;
  }

  /* Rezensionen */
  .rezension-section-block .slick-next {
    right: -5px !important;
  }
  .rezension-section-block .slick-prev {
    left: -5px !important;
  }
  /* text-section-block */
  .text-section-block .w-50 {
    width: 100% !important;
  }
  /* Projekt filter */
  form#projekt-filter-form {
    display: flex;
    flex-wrap: wrap;
  }
  /* gutenberg fix */
  figure.wp-block-media-text__media {
    margin-bottom: 40px !important;
  }

  /* Footer */
  footer .container-fluid {
    text-align: center;
  }
}
