/*
 Theme Name:   Divi Child
 Theme URI:    https://deine-website.at
 Description:  Erweiterte Child Theme Vorlage für Divi
 Author:       Dein Name
 Author URI:   https://deine-website.at
 Template:     Divi
 Version:      1.0.0
*/

/* =========================
   Eigene CSS-Anpassungen
   ========================= */
:root {
  --green: #524e35;
  --beige: #ebe4d8;
  --brown-light: #e6decf;
  --organe: #fc812b;
  --white: #fff;
  --black: #000;
  --bg-light: #efeeed;
}

.header__mobile__wrapper,
.mobile-logo {
  display: none;
}

.spacer {
  margin-right: 140px;
}

.menu li:hover .sub-menu {
  visibility: visible;
  opacity: 1;
}

.sub-menu {
  position: absolute;
  padding: 0;
  background: var(--bg-light);
  z-index: 111;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  visibility: hidden;
  opacity: 0;
}

.sub-menu li:not(:last-child) {
  border-bottom: 1px solid var(--green);
  padding-bottom: 5px;
}

@media (max-width: 1024px) {
  .spacer {
    margin-right: 0;
  }
}

@media (max-width: 1024px) {
  .mobile-logo {
    display: flex;
  }
  .hide-on-mobile {
    display: none;
  }
  .header__mobile__wrapper {
    flex: 50%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    grid-column: 12 / span 1;
  }

  .sub-menu {
    visibility: visible;
    opacity: 1;
    position: relative;
    background: transparent;
    margin-top: 10px;
  }

  .menu-item-leistungen {
    display: flex;
    flex-direction: column;
  }

  .nav {
    height: 100vh;
    width: 100%;
    background-color: var(--green);
    position: fixed;
    left: 0;
    margin-left: -100%;
    top: 0;
    z-index: 111;
    padding: 50px;
    display: flex;
    text-align: center;
    transition: all 0.5s;
    align-items: center;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
  }

  div.nav.is-open {
    margin-left: 0;
    visibility: visible;
    opacity: 1;
  }

  #menu-mainmenu a {
    font-size: 36px;
    line-height: 1.6em;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--white);
  }
  #menu-mainmenu ul.sub-menu {
    padding: 0;
  }
  #menu-mainmenu ul.sub-menu li a {
    font-size: 16px;
  }

  .menu-mainmenu-container {
    width: 100%;
  }

  #menu-mainmenu {
    width: 100%;
    padding: 0;
    margin: 0;
    justify-content: center;
    display: flex;
    flex-direction: column;
  }

  #menu-mainmenu li {
    list-style-type: none;
  }

  .nav__wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .modal-open {
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: all 0.5s;
  }

  .modal-open-body {
    overflow: hidden;
  }

  .nav__logo {
    max-width: 250px;
    margin: 0 auto;
    display: block;
  }

  /*css menü */
  .menu-icon {
    position: relative;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 111;
  }
  .menu-icon .menu-icon__cheeckbox {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    z-index: 2;
    -webkit-touch-callout: none;
    position: absolute;
    opacity: 0;
  }
  .menu-icon div {
    margin: auto;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 22px;
    height: 12px;
  }
  .menu-icon span {
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--green);
    border-radius: 1px;
    transition: all 0.2s cubic-bezier(0.1, 0.82, 0.76, 0.965);
  }

  .menu-icon.active span {
    background-color: var(--bg-light);
  }

  .menu-icon__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap; /* Prevent text from wrapping */
    border: 0;
  }

  .menu-icon span:first-of-type {
    top: 0;
  }
  .menu-icon span:last-of-type {
    bottom: 0;
  }
  .menu-icon.active span:first-of-type,
  .menu-icon .menu-icon__cheeckbox:checked + div span:first-of-type {
    transform: rotate(45deg);
    top: 5px;
  }
  .menu-icon.active span:last-of-type,
  .menu-icon .menu-icon__cheeckbox:checked + div span:last-of-type {
    transform: rotate(-45deg);
    bottom: 5px;
  }
  .menu-icon.active:hover span:first-of-type,
  .menu-icon.active:hover span:last-of-type,
  .menu-icon:hover .menu-icon__cheeckbox:checked + div span:first-of-type,
  .menu-icon:hover .menu-icon__cheeckbox:checked + div span:last-of-type {
    width: 22px;
  }

  .nav {
    padding: 24px;
  }
  #menu-mainmenu a {
    font-size: 28px;
  }
}

/*Navi desktop*/
header {
  width: 100%;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 11;
	padding: 0 5vw;
}

.page-id-33 header,
.page-id-35 header,
.page-id-118 header
{
	background-color: var(--bg-light);
}

/* Sticky Header Scroll */
/* Sticky Header Scroll */
/* Sticky Header Scroll - Desktop only */

header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-light); /* weißer Hintergrund */
  z-index: 9999;
  transition: background-color 0.3s, padding 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* optional Schatten */
}

/* Standard-Zustand */
.hide-on-mobile span {
  display: none;
}

.hide-on-mobile {
  width: 280px;
  height: 140px; /* Höhe des Logos */
  background-image: url("/wp-content/uploads/2025/12/Mareike-gr-Darrelmann_Logo-Primaer-_schwarz_RGB-1.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.5s;
}

/* Sticky Zustand */
header.sticky .hide-on-mobile {
  width: 150px;
  height: 70px;
  background-image: url("/wp-content/uploads/2025/12/Mareike-gr-Darrelmann_Logo-Primaer-_ohne_schwarz_RGB.svg"); /* neues Logo */
}

/* Sticky-Zustand */
header.sticky .hide-on-mobile {
  width: 150px; /* neue Breite beim Sticky */
}

.business-header {
  padding: 10px 15px;
}

.header-wrapper {
  margin: 0 auto;
  max-width: var(--big-screen-size);
  display: flex;
  gap: 10px; /* Adjust spacing between columns */
  align-items: center;
}

.nav {
  display: flex;
  justify-content: center;
  width: 100%;
}

.menu-mainmenu-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  font-size: 24px;
}

.logo a span {
  text-transform: uppercase;
}

.menu {
  display: flex;
  gap: 35px;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  align-items: center;
  width: 100%;
  max-width: 1641px;
padding: 0;
}

.menu li {
  list-style-type: none;
}

.menu li a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "Roboto Condensed";
  font-size: 18px;
  letter-spacing: 0.05em;
  width: 100%;
  height: 100%;
}

.menu li a:hover {
  color: var(--organe);
}

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

/* Underline für alle außer letzter Menüpunkt */
.menu li:not(:last-child) a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

/* Hover für alle außer letzter */
.menu li:not(:last-child) a:hover::after {
  transform: scaleX(1);
}

/* Aktiver Menüpunkt – außer letzter */
.menu li:not(:last-child).current_page_item a::after,
.menu li:not(:last-child).current-menu-item a::after {
  transform: scaleX(1);
}

/* Fokus sichtbar (Keyboard) */
.menu li:not(:last-child) a:focus::after {
  transform: scaleX(1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .menu li:not(:last-child) a::after {
    transition: none;
  }
}

@media (max-width: 1280px) {
  .hide-on-mobile {
    width: 210px;
  }
}

@media (max-width: 1024px) {
  .current_page_item a {
    color: var(--brown-light) !important;
  }
  .menu li a {
    font-size: 16px;
  }
  .menu {
    gap: 20px;
  }
  .logo a {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .logo {
    grid-column: span 8;
    display: flex;
  }

  header {
    margin-bottom: 0;
    align-items: flex-start;
  }
}
