/* 
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-orange: #f68900;
  --color-green: #1d4413;
  --color-black: #242424;
  --color-white: #fffff8;

  --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: "Epilogue-Light";
  src: url("/wp-content/themes/derjosef-child/fonts/Epilogue-Light.woff2")
      format("woff2"),
    url("/wp-content/themes/derjosef-child/fonts/Epilogue-Light.woff")
      format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

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

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

/* ==============================
   BASE STYLES
   ============================== */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
  height: fit-content;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Epilogue-Regular", sans-serif;
  background-color: var(--color-white-clear);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#main {
  margin-top: 0 !important;
}

/* Globale Selection-Effekt */
::selection {
  background-color: var(--color-orange); /* Orange Hintergrund */
  color: var(--color-green);
}

/* Firefox */
::-moz-selection {
  background-color: var(--color-orange);
  color: var(--color-green);
}

/* ==============================
   HEADINGS
   ============================== */
h1,
.h1,
h1 p {
  font-family: "Epilogue-Medium", sans-serif;
  font-size: calc(2.5rem + 1vw);
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h2,
.h2 {
  font-family: "Epilogue-Medium", sans-serif;
  font-size: calc(1.4rem + 0.8vw);
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h3,
.h3 {
  font-family: "Epilogue-Medium", sans-serif;
  font-size: calc(1.3rem + 0.4vw);
  line-height: 1.4;
  margin-bottom: 0.5em;
}

h4,
.h4 {
  font-family: "Epilogue-Medium", sans-serif;
  font-size: calc(1.2rem + 0.3vw);
  line-height: 1.5;
  margin-bottom: 0.5em;
}

h5,
.h5 {
  font-family: "Epilogue-Medium", sans-serif;
  font-size: calc(1.1rem + 0.2vw);
  line-height: 1.6;
  margin-bottom: 0.5em;
}

h6,
.h6 {
  font-family: "Epilogue-Medium", sans-serif;
  font-size: calc(1rem + 1vw);
  line-height: 1.7;
  margin-bottom: 0.5em;
}

h1 strong,
h2 strong,
h3 strong,
h4 strong,
h5 strong,
h6 strong {
  font-family: "Epilogue-Medium", sans-serif;
  font-weight: 500;
  color: var(--color-green);
}

/* ==============================
   SUBHEADLINES
   ============================== */
.subheadline {
  font-family: "Epilogue-Light", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: calc(0.9rem + 0.2vw);
}

/* ==============================
   PARAGRAPHS & LISTS
   ============================== */
p,
li {
  font-family: "Epilogue-Regular", sans-serif;
  font-size: 1rem;
  margin-bottom: 1em;
}

small {
  font-size: 0.8em;
}

strong {
  font-family: "Epilogue-Medium", sans-serif;
}

/* ==============================
   LINKS
   ============================== */
main a {
  font-family: "Epilogue-Regular", sans-serif;
  color: var(--color-black);
  text-decoration: none;
}

a:hover {
  /* Optional hover styles */
}

/* ==============================
   BUTTONS & CAPTIONS
   ============================== */
button {
  font-family: "Epilogue-Medium", sans-serif;
  font-size: 0.8em;
}

.caption {
  font-family: "Epilogue-Medium", sans-serif;
}

/* 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;
}
/* Unterstütze die ACF-Breiten Klassen */
.w-100 {
  width: 100% !important;
}

.w-90 {
  width: 90% !important;
}

.w-85 {
  width: 85% !important;
}

.w-75 {
  width: 75% !important;
}

.w-66 {
  width: 66% !important;
}

.w-50 {
  width: 50% !important;
}

.w-40 {
  width: 40% !important;
}

.w-33 {
  width: 33% !important;
}

.w-25 {
  width: 25% !important;
}

.w-auto {
  width: auto !important;
}
/* Hintergrundfarben */
.bg-orange {
  background-color: var(--color-orange) !important;
}

.bg-green {
  background-color: var(--color-green) !important;
}

.bg-black {
  background-color: var(--color-black) !important;
}

.bg-white {
  background-color: var(--color-white) !important;
}

/* Textfarben */
.text-orange {
  color: var(--color-orange) !important;
}

.text-green {
  color: var(--color-green) !important;
}

.text-black {
  color: var(--color-black) !important;
}

.text-white {
  color: var(--color-white) !important;
}
/* nav */
/* Header */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  /* immer über Overlay */
  transition: background-color 0.5s ease-in-out;
}

nav#header.bg-transparent {
  background: transparent;
}

nav#header.bg-green {
  background: var(--color-green);
}

/* Desktop Navbar */
.navbar-nav {
  display: flex;
  gap: 1rem;
}

.navbar-brand {
  flex-shrink: 0;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
  color: var(--color-white) !important;
}
.navbar-nav li a {
  color: var(--color-white) !important;
  text-transform: uppercase !important;
}
.navbar-nav li.text-orange a {
  color: var(--color-orange) !important;
}
.navbar-nav li {
  margin-bottom: 0px !important;
  padding-bottom: 0px !important  ;
}
/* mobile */

/* Mobile Overlay unter Navbar */
.mobile-menu-overlay {
  position: fixed;
  /* Höhe Navbar */
  left: 0;
  width: 100%;
  height: 100%;
  /* Rest des Screens */
  background: var(--color-orange);
  z-index: 999;
  /* unter Navbar */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

/* Mobile Menu Items fade-in */
.mobile-menu-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.mobile-menu-nav li {
  margin: 20px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu-nav li {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-nav a {
  font-size: 2rem;
  color: var(--color-white);
  text-decoration: none;
}

/* Burger Button */
.menu-btn {
  position: relative;
  width: 30px;
  height: 22px;
  cursor: pointer;
  border: none;
  background: none;
  z-index: 1001;
  /* über Overlay */
}

.menu-btn span {
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--color-white);
  border-radius: 2px;
  left: 0;
  transition: all 0.4s ease-in-out;
}

.menu-btn span:nth-child(1) {
  top: 0;
}

.menu-btn span:nth-child(2) {
  top: 9px;
}

.menu-btn span:nth-child(3) {
  top: 18px;
}

/* Burger → X Animation */
.menu-btn.open span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
  background: var(--color-white);
}

.menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.menu-btn.open span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
  background: var(--color-white);
}

/* Hide mobile menu on desktop */
@media (min-width: 768px) {
  .menu-btn {
    display: none;
  }

  .mobile-menu-overlay {
    display: none !important;
  }
}

/* Standard: groß */
#header {
  height: 100px; /* Anfangshöhe */
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
}

#header .navbar-brand img {
  height: 70px; /* Logo groß */
  transition: all 0.4s ease;
}

/* Shrink State: kleiner */
#header.shrink {
  height: 60px; /* kleinere Höhe */
}

#header.shrink .navbar-brand img {
  height: 40px; /* Logo klein */
}

/* nav animation */
/* Grund-Style für Navigation */
#menu-main-menu {
  display: flex;
  gap: 2rem; /* Abstand zwischen den Menüpunkten */
  list-style: none;
  padding: 0;
  margin: 0;
}

#menu-main-menu .nav-link {
  position: relative;
  display: inline-block;
  padding: 0.25rem 0;
  color: white;
  font-size: 1.1rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Farbwechsel beim Hover */
#menu-main-menu .nav-link:hover {
  color: var(--color-orange); /* beliebig ändern */
}

/* animierte Unterlinie */
#menu-main-menu .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background-color: var(--color-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

/* Hover-Effekt: Linie fährt aus */
#menu-main-menu .nav-link:hover::after {
  transform: scaleX(1);
}
/* nav end */

/* button */
/* Buttons */
.main-btn {
  background: var(--color-green) !important;
  border: 2px solid var(--color-orange) !important;
  border-radius: 50px !important;
  color: var(--color-orange) !important;
  text-align: center !important;
  padding: 0.5rem 1.5rem !important;
  transition: background 0.3s ease !important;
  width: fit-content;
}

.main-btn:hover {
  background: var(--color-orange) !important;
  color: var(--color-white) !important;
  border: 2px solid var(--color-orange);
}
/* Buttons end */

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .textsection-big {
    font-size: clamp(1.25rem, 4vw, 2rem);
  }

  .textsection-small {
    font-size: clamp(0.9rem, 3vw, 1rem);
  }

  /* Breiten auf mobilen Geräten anpassen, falls nötig */
  .w-90,
  .w-85,
  .w-75,
  .w-66,
  .w-50,
  .w-40,
  .w-33,
  .w-25 {
    width: 100% !important;
  }
}

/* full-width-image-section */
.full-width-image-block {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.full-width-image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Optional: Mobile-Anpassungen */
@media (max-width: 768px) {
  .full-width-image-wrapper img {
    width: 100%;
    height: auto;
  }
}
/* END full-width-image-section */
/* Headerslider-section */
.headerslider-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.header-bg-image,
.header-bg-video {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.headerslider-overlay {
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

/* Grid Layout: Headline | Play | Social */
.overlay-content.grid-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  margin-bottom: 40px;
  pointer-events: auto;
}

.overlay-headline {
  justify-self: start;
}

.overlay-play {
  justify-self: center;
}

.overlay-social {
  justify-self: end;
}

.headerslider-headline {
  font-size: clamp(1rem, 2.5vw, 2rem);
  color: var(--color-white);
}

.overlay-social .social-icon {
  height: 52px;
  width: auto;
}

.audio-toggle-btn {
  background: rgba(0, 0, 0, 0.4);
  border: none;
  border-radius: 50%;
  color: var(--color-white);
  pointer-events: auto;
}

.audio-toggle-btn img {
  display: block;
}

.audio-toggle-btn:hover img {
  opacity: 0.8;
}

.headerslider-logo {
  max-width: 100%;
  height: auto;
  pointer-events: auto;
}

.header-bg-image,
.header-bg-video {
  height: 100vh !important;
}

/* Pulsierende Animation */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.15);
    opacity: 0.7;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.audio-toggle-btn {
  background: rgba(0, 0, 0, 0.4);
  border: none;
  border-radius: 50%;
  color: var(--color-white);
  pointer-events: auto;

  /* Pulsieren hinzufügen */
  animation: pulse 1.5s infinite ease-in-out;
}

.audio-toggle-btn.active {
  animation: none;
  /* Stoppt das Pulsieren, wenn aktiv */
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
  .headerslider-headline {
    font-size: clamp(0.9rem, 4vw, 1.5rem);
  }

  .overlay-social .social-icon {
    height: 40px;
  }

  .audio-toggle-btn img {
    width: 40px;
    height: 40px;
  }
}
/* END Headerslider-section */

/* footer */
.footer-logo-col {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-right: 3rem; /* Abstand nach rechts zu den Menüs */
}
footer a {
  color: var(--color-white);
  position: relative; /* für ::after */
  text-decoration: none; /* Standard-Unterstreichung entfernen */
  transition: color 0.3s ease;
}

footer a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px; /* Abstand zur Schrift */
  width: 100%;
  height: 2px; /* Dicke der Unterstreichung */
  background-color: var(--color-white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

footer a:hover::after {
  transform: scaleX(1);
}
/* Footer Logo responsive */
.footer-logo-col img {
  max-width: 250px; /* Bild wird nie größer als der Container */
  height: auto; /* Höhe passt sich proportional an */
  display: block; /* Vermeidet kleine Abstände unter dem Bild */
  width: 100%;
}

.footer-menu-title {
  margin-bottom: 0.5rem;
}

.footer-menu-links {
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .footer-logo-col {
    padding-right: 0;
    justify-content: center;
    margin-bottom: 2rem;
  }
}
@media (max-width: 767px) {
  .footer-logo-col {
    text-align: center; /* Logo zentrieren */
  }
  .footer-logo-col img {
    max-width: 200px;
  }
}

/* mobile */
@media (max-width: 768px) {
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  h1,
  .h1,
  h1 p {
    font-size: calc(2.1rem + 1vw) !important;
    line-height: 1.2;
    margin-bottom: 0.5em;
  }
  /* main */
  .spacing-big {
    height: 50px !important;
  }

  /* headerslider */
  .overlay-content.grid-container.mb-0.p-3 {
    padding: 0px !important;
  }
  .overlay-social.text-end {
    display: flex;
    flex-direction: column;
  }
  .overlay-content.grid-container {
    align-items: end;
    margin-bottom: 10px !important;
  }
  /* END headerslider */
  /* footer */
  #footer .footer-menu-links,
  #footer .footer-menu-title {
    text-align: center;
  }

  /* Optional: Footer-Kacheln ebenfalls zentrieren */
  #footer .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  /* END footer */
}

.dropdown-item{
    white-space: normal!important;
}
