/* Abel-Font wird jetzt via wp_enqueue_style in functions.php geladen
   (Safari-kompatibler als @import hier).
@import url('https://fonts.googleapis.com/css2?family=Abel&display=swap');
*/

/* ── Artwork Bild-Wrapper ── */
.lhz-wrap {
  position: relative !important;
  display: inline-block !important;
  line-height: 0;
}
.lhz-wrap img {
  display: block !important;
  max-width: 100% !important;
  height: auto !important;
}

/* ── Herz-Button auf Bild — Basis ── */
.lhz-heart {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50%;
  background: rgba(30, 30, 30, 0.55) !important;
  border: 2px solid rgba(255, 255, 255, 0.85) !important;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 9999;
  padding: 0 !important;
  transition: border-color .2s, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.lhz-heart svg {
  width: 18px !important;
  height: 18px !important;
  color: rgba(255, 255, 255, 0.85);
  transition: color .2s;
  pointer-events: none;
}
.lhz-heart:hover {
  background: rgba(30, 30, 30, 0.75) !important;
  border-color: #fff !important;
}
.lhz-heart:hover svg { color: #fff; }
.lhz-heart.lhz-on {
  background: rgba(30, 30, 30, 0.55) !important;
  border-color: rgba(255, 255, 255, 0.85) !important;
}
.lhz-heart.lhz-on svg { color: #00FF00 !important; }

@media (min-width: 768px) {
  .lhz-heart { width: 55px !important; height: 55px !important; }
  .lhz-heart svg { width: 26px !important; height: 26px !important; }
}
@media (max-width: 767px) {
  .lhz-heart { width: 50px !important; height: 50px !important; }
  .lhz-heart svg { width: 24px !important; height: 24px !important; }
}

@keyframes leohaz-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.lhz-heart:active svg { animation: leohaz-pop 0.3s ease; }

@keyframes leohaz-bounce-three {
  0%   { transform: scale(1); }
  16%  { transform: scale(1.3); }
  33%  { transform: scale(1); }
  50%  { transform: scale(1.3); }
  66%  { transform: scale(1); }
  83%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.lhz-heart.lhz-bouncing svg {
  animation: leohaz-bounce-three 2s ease;
}
/* Leohaz: Bounce-Animation bereits beim Hover starten (nicht erst beim Klick) */
.lhz-heart:hover svg {
  animation: leohaz-bounce-three 2s ease;
}

/* ── Desktop Menü-Herz ── */
li#menu-item-8899.sydney-dropdown-li {
  display: inline-flex !important;
  align-items: center !important;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
/* Scroll-Hide-Modus: Herz verstecken wenn oben (JS fügt Klasse auf Nicht-Favorites-Seiten hinzu) */
body.lhz-heart-scroll-mode li#menu-item-8899.sydney-dropdown-li {
  opacity: 0;
  visibility: hidden;
}
body.lhz-heart-scroll-mode.lhz-heart-nav-visible li#menu-item-8899.sydney-dropdown-li {
  opacity: 1;
  visibility: visible;
}
li#menu-item-8899 a.sydney-dropdown-link {
  font-size: 0 !important;
  color: transparent !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  padding: 0 !important;
  margin: 0 4px !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  vertical-align: middle !important;
}
li#menu-item-8899 a.sydney-dropdown-link::before {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: url('/wordpress/wp-content/themes/sydney-child/icons/heart-green.svg') no-repeat center/contain;
  transition: filter .2s;
  pointer-events: none;
  z-index: 1;
}
li#menu-item-8899 a.sydney-dropdown-link:hover::before {
  filter: grayscale(100%) brightness(0.6);
}

/* ── Mobil Herz-Wrapper ── */
.lhz-hw {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Zahl im Mobil-Herz */
.lhz-hw .leohaz-menu-count {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  color: #7f7f7f !important;
  z-index: 10 !important;
  pointer-events: none !important;
  line-height: 1 !important;
  font-family: sans-serif !important;
  background: transparent !important;
  width: auto !important;
  height: auto !important;
}

/* ── Badge Header-Herz mobil ── */
.leohaz-fav-count {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  color: #7f7f7f;
  font-size: 11px;
  font-weight: 900;
  font-family: sans-serif;
  line-height: 1;
  pointer-events: none;
  z-index: 10;
  width: auto;
  height: auto;
}

.leohaz-heart-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.leohaz-heart-btn svg,
.leohaz-heart-btn img {
  width: 28px;
  height: 28px;
  color: #00FF00 !important;
  fill: #00FF00 !important;
}

@media (max-width: 767px) {
  img[src*="hamburger-green"] { width: 27px !important; height: 27px !important; }
  img[src*="heart-green"] {
    width: 34px !important;
    height: 34px !important;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }
  /* .lhz-hw = JS-Wrapper um Herz + Zahl → beide zusammen verstecken/zeigen */
  .lhz-hw {
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }
  body.lhz-heart-scroll-mode img[src*="heart-green"],
  body.lhz-heart-scroll-mode .lhz-hw {
    opacity: 0;
    visibility: hidden;
  }
  body.lhz-heart-scroll-mode.lhz-heart-nav-visible img[src*="heart-green"],
  body.lhz-heart-scroll-mode.lhz-heart-nav-visible .lhz-hw {
    opacity: 1;
    visibility: visible;
  }
}

/* ── Popup ── */
#lhz-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
}
#lhz-popup.lhz-open { display: block; }

/* Leohaz: Popup-Eingangsanimationen
   Mobile:  Panel gleitet von unten ins Bild (translateY 110% → 0)
   Desktop: Panel gleitet von unten zur Mitte (translate(-50%,100%) → (-50%,-50%))
   Overlay: Hintergrund blendet ein (opacity 0 → 1)
   cubic-bezier = sanftes Ausrollen (ease-out-Variante) */
@keyframes lhz-slide-up-mobile {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}
@keyframes lhz-slide-up-desktop {
  from { transform: translate(-50%, 100%); }
  to   { transform: translate(-50%, -50%); }
}
@keyframes lhz-overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#lhz-popup.lhz-open .lhz-inner {
  animation: lhz-slide-up-mobile 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
#lhz-popup.lhz-open .lhz-overlay {
  animation: lhz-overlay-in 0.38s ease both;
}
@media (min-width: 768px) {
  #lhz-popup.lhz-open .lhz-inner {
    animation: lhz-slide-up-desktop 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  }
}

.lhz-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}
.lhz-inner {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: #2a2a2a;
  border-radius: 16px 16px 0 0;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  z-index: 1;
  overflow: hidden;
}
@media (min-width: 768px) {
  .lhz-inner {
    top: 50%; left: 50%;
    right: auto; bottom: auto;
    transform: translate(-50%,-50%);
    width: 520px;
    max-height: 80vh;
    border-radius: 16px;
  }
}
.lhz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #444;
  flex-shrink: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}
.lhz-close {
  background: none; border: none;
  color: #aaa; font-size: 20px;
  cursor: pointer; padding: 4px 8px;
  transition: color .2s;
}
.lhz-close:hover { color: #fff; }

.lhz-body {
  overflow-y: auto;
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.lhz-empty {
  color: #888;
  text-align: center;
  padding: 32px 0;
  line-height: 1.6;
  margin: 0;
}
.lhz-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lhz-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #333;
  border-radius: 10px;
  padding: 8px 10px;
}
.lhz-thumb {
  width: 52px; height: 52px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.lhz-name {
  flex: 1;
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
}
.lhz-rm {
  background: none; border: none;
  color: #666; font-size: 16px;
  cursor: pointer; padding: 4px 6px;
  transition: color .2s; flex-shrink: 0;
}
.lhz-rm:hover { color: #ff4444; }

/* ── Formular ── */
.lhz-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid #444;
  padding-top: 14px;
}
.lhz-form input {
  background: #333;
  border: 1px solid #555 !important;
  border-radius: 8px !important;
  color: #fff;
  padding: 10px 14px;
  font-size: 16px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .2s;
  -webkit-box-shadow: 0 0 0px 1000px #333 inset !important;
  -webkit-text-fill-color: #fff !important;
}
.lhz-form input:focus { border-color: #00FF00; }
.lhz-form input::placeholder { color: #777; }

.lhz-form input:-webkit-autofill,
.lhz-form input:-webkit-autofill:hover,
.lhz-form input:-webkit-autofill:focus,
.lhz-form input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0px 1000px #333 inset !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  border-color: #555 !important;
  transition: background-color 9999s ease-in-out 0s;
}

#lhz-status {
  font-size: 13px;
  padding: 0;
  line-height: 1.4;
  min-height: 0;
}

#lhz-send {
  background: #00FF00;
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  -webkit-tap-highlight-color: transparent;
}
#lhz-send:hover { background: #00e600; }
#lhz-send:disabled { opacity: .6; cursor: default; }

/* ── Toast ── */
#lhz-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #222;
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  z-index: 999999;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none;
  border: 1px solid #444;
  min-width: 260px;
  max-width: 90vw;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
#lhz-toast.lhz-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
#lhz-toast.lhz-toast-hide {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}
.lhz-toast-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.lhz-toast-heart { color: #00FF00; font-size: 16px; flex-shrink: 0; }
.lhz-toast-heart-off { color: #888; }
.lhz-toast-msg { font-size: 13px; line-height: 1.4; color: #fff; }

.lhz-toast-btn {
  display: block;
  margin-top: 10px;
  padding: 7px 14px;
  border: 2px solid #00FF00;
  border-radius: 8px;
  color: #00FF00 !important;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}
.lhz-toast-btn:hover,
.lhz-toast-btn:active {
  background: #00FF00 !important;
  color: #000 !important;
}

@media (max-width: 640px) {
  .lhz-inner {
    width: 100% !important;
    left: 0 !important;
    transform: none !important;
  }
}

/* ── Offcanvas: Herz verstecken auf Mobil ── */
@media (max-width: 767px) {
  li#menu-item-8899 {
    display: none !important;
  }
  /* Email-Item nur auf Mobil anzeigen */
  li#leohaz-email-item {
    display: block !important;
  }
}

/* Email-Item auf Desktop verstecken */
@media (min-width: 768px) {
  li#leohaz-email-item {
    display: none !important;
  }
}

/* ── Mobile Offcanvas-Menü auf Fullwidth ── */
.sydney-offcanvas-menu.toggled {
  width: 100vw !important;
  max-width: 100vw !important;
  left: 0 !important;
}

/* ── Header-Lupe / Suchfeld überall ausblenden ── */
.header-search,
.header-search.header-item {
  display: none !important;
}

/* ── Favoriten-Seite ── */
body.leohaz-favs-active {
  background: #2a2a2a !important;
}
body.leohaz-favs-active #page,
body.leohaz-favs-active #content,
body.leohaz-favs-active .site-content,
body.leohaz-favs-active .page-content,
body.leohaz-favs-active .entry-content,
body.leohaz-favs-active .elementor,
body.leohaz-favs-active .elementor-section,
body.leohaz-favs-active .elementor-container {
  background: #2a2a2a !important;
}
body.leohaz-favs-active .elementor-widget-container {
  background: transparent !important;
}

/* Leohaz: Favorites-Seite – Inhalt blendet sanft ein.
   Container startet bei opacity:0. JS fügt .lhz-fav-visible nach double-rAF hinzu
   (nachdem alle Inhalte aufgebaut wurden) → Transition 1s ease-out startet. */
#leohaz-favorites-page {
  min-height: 60vh;
  padding: 25px 20px 60px;
  color: #fff;
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 1s ease-out;
}
#leohaz-favorites-page.lhz-fav-visible {
  opacity: 1;
}

/* Leohaz: Sydney-Container NUR auf der Favoriten-Seite aufheben,
   damit die Seite die volle Viewport-Breite nutzen kann.
   body.leohaz-favs-active wird vom JS gesetzt → Safari-kompatibel (statt :has()). */
body.leohaz-favs-active .content-wrapper.container {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.leohaz-favs-active .content-wrapper .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body.leohaz-favs-active .content-wrapper .row > * {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Leohaz: Grid-Spalten robust gegen Safari-Quirks mit Content-Width.
   minmax(0, 1fr) zwingt die Spalten auf exakt 1fr (auch wenn Content größer wäre),
   damit das Formular in Spalte 3 genau so breit ist wie ein Kunstwerk in Spalte 3. */
@media (min-width: 768px) {
  .lhz-fav-head {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .lhz-fav-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .lhz-fav-head {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .lhz-fav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Leohaz: Email/Autofill-Icon (rotes Schloss in Safari/Chrome) komplett verstecken,
   auf allen Geräten, weil die Farbkorrektur auf Chrome (Windows) nicht greift. */
.lhz-fav-form input::-webkit-credentials-auto-fill-button,
.lhz-fav-form input::-webkit-contacts-auto-fill-button,
.lhz-fav-form input::-webkit-caps-lock-indicator,
.lhz-form input::-webkit-credentials-auto-fill-button,
.lhz-form input::-webkit-contacts-auto-fill-button,
.lhz-form input::-webkit-caps-lock-indicator {
  visibility: hidden !important;
  display: none !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
}

/* Leohaz: Abstand zwischen Kunstwerken nur auf Desktop/Tablet um 10px verringern.
   Mobile (≤767px) bleibt unverändert. !important überwindet die spätere Base-Regel. */
@media (min-width: 768px) {
  .lhz-fav-head { gap: 38px !important; }
  .lhz-fav-grid { gap: 38px !important; }
}

.lhz-back-wrap {
  position: sticky;
  top: 55px;
  z-index: 40;
  background: transparent;
  margin: 0 0 20px 0;
  padding: 4px 0;
}
/* Desktop: BACK im Sticky-Modus unter die Theme-Kopfleiste schieben,
   damit die Klickfläche mit dem sichtbaren Text übereinstimmt. Mobil unverändert. */
@media (min-width: 768px) {
  .lhz-back-wrap {
    top: 90px;
    z-index: 45;
  }
}
.lhz-back-btn {
  padding-left: 0 !important;
}

.lhz-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #00FF00 !important;
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 700;
  font-family: sans-serif;
  text-decoration: none !important;
  padding: 6px 0;
  cursor: pointer;
  letter-spacing: 0.05em;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .2s;
}
.lhz-back-btn:hover {
  opacity: 0.75;
  color: #00FF00 !important;
}
.lhz-back-btn svg {
  width: 22px;
  height: 22px;
  stroke: #00FF00;
  stroke-width: 3;
  fill: none;
  flex-shrink: 0;
}

.lhz-fav-head {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 70px;
  margin-left: 75px;
}
.lhz-fav-title-main {
  grid-column: 1 / 2;
  align-self: end;
  text-align: right;
  color: #b0b0b0;
  font-size: 42px;
  font-weight: 400;
  letter-spacing: 0.15em;
  font-family: 'Abel', sans-serif;
  margin: 0;
  line-height: 1;
}
@media (max-width: 1024px) {
  .lhz-fav-head {
    grid-template-columns: repeat(2, 1fr);
  }
  .lhz-fav-title-main {
    grid-column: 1 / 2;
    font-size: 36px;
  }
}
@media (max-width: 767px) {
  #leohaz-favorites-page {
    padding-top: 0;
  }
  .lhz-back-wrap {
    margin: 0 0 83px 0;
  }
  .lhz-fav-head {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 25px;
    margin-left: 0;
  }
  .lhz-fav-grid {
    margin-left: 0;
  }
  .lhz-fav-title-main {
    order: 2;
    font-size: 30px;
    text-align: right;
  }
  .lhz-fav-form {
    order: 1;
  }
}

.lhz-fav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-left: 75px;
}
@media (max-width: 1024px) {
  .lhz-fav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .lhz-fav-grid {
    grid-template-columns: 1fr;
    margin-left: 0;
  }
}

.lhz-fav-tile {
  display: flex;
  flex-direction: column;
  color: #fff;
  transition: opacity .3s;
}
.lhz-fav-tile .lhz-wrap {
  width: 100%;
  display: block;
}
.lhz-fav-tile img {
  width: 100%;
  height: auto;
  display: block;
}
.lhz-fav-title {
  font-size: 20px;
  font-weight: 600;
  margin-top: 10px;
  color: #fff;
  font-family: 'Abel', sans-serif;
  line-height: 1.3;
}
.lhz-fav-desc {
  font-size: 16px;
  color: #aaa;
  margin-top: 4px;
  font-family: 'Abel', sans-serif;
  line-height: 1.3;
}

.lhz-fav-empty {
  color: #888;
  text-align: center;
  padding: 80px 20px;
  line-height: 1.6;
  font-size: 15px;
  font-family: sans-serif;
  margin: 0;
}

.lhz-fav-form {
  grid-column: 3;
  position: static;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  justify-self: stretch;
}
@media (max-width: 1024px) {
  .lhz-fav-form {
    grid-column: 2;
  }
}
@media (max-width: 767px) {
  .lhz-fav-form {
    grid-column: 1;
  }
}
.lhz-fav-form input {
  background: #333;
  border: 1px solid #555 !important;
  border-radius: 8px !important;
  color: #fff;
  padding: 10px 14px;
  font-size: 16px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .2s;
  -webkit-box-shadow: 0 0 0px 1000px #333 inset !important;
  -webkit-text-fill-color: #fff !important;
  font-family: sans-serif;
}
.lhz-fav-form input:focus { border-color: #00FF00; }
.lhz-fav-form input::placeholder { color: #777; }
.lhz-fav-form input:-webkit-autofill,
.lhz-fav-form input:-webkit-autofill:hover,
.lhz-fav-form input:-webkit-autofill:focus,
.lhz-fav-form input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0px 1000px #333 inset !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  border-color: #555 !important;
  transition: background-color 9999s ease-in-out 0s;
}
#lhz-fav-status {
  font-size: 13px;
  line-height: 1.4;
  min-height: 0;
  font-family: sans-serif;
}
#lhz-fav-send {
  background: #00FF00;
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  font-family: sans-serif;
  -webkit-tap-highlight-color: transparent;
}
#lhz-fav-send:hover { background: #00e600; }
#lhz-fav-send:disabled { opacity: .6; cursor: default; }

/* Popup-Einträge klickbar machen (Signalwirkung) */
.lhz-item {
  cursor: pointer;
  transition: background .15s;
}
.lhz-item:hover {
  background: #3a3a3a;
}

/* ─────────────────────────────────────────────────────────────
   Leohaz: Mac-Safari-spezifische Fixes
   Greifen NUR wenn body.leohaz-is-mac gesetzt ist (vom JS nur
   auf echten Mac-Geräten, explizit nicht auf iPhone/iPad/Windows).
   Damit bleiben die funktionierenden Ansichten (iPhone Mobile,
   Windows Desktop) komplett unberührt.
   ───────────────────────────────────────────────────────────── */

/* (A) Mac Safari mit geöffneter Seitenleiste (= kleiner Viewport)
   Das Sydney-Mobile-Menü wird nicht sticky → wir machen es sticky,
   auf allen Seiten, nur auf Mac. iPhone/iPad/Windows/Android unberührt.
   z-index 10001 > .lhz-heart (9999) → Herz überdeckt Menü nie, auch bei schnellem Scrollen. */
body.leohaz-is-mac #masthead-mobile {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 10001 !important;
}

/* (A2) Sydney-Pro-Sticky-Bar (.bottom-header-row.sticky-header) blendet sich
   bei schmalen Viewports auf Mac Safari leer ein und überdeckt #masthead-mobile
   (Hamburger + Herz erscheinen "verschwunden"). Auf Mac + schmaler Breite
   ausblenden. iPhone/Windows/Desktop unberührt, weil Regel nur auf Mac greift. */
@media (max-width: 1024px) {
  body.leohaz-is-mac .bottom-header-row.sticky-header {
    display: none !important;
  }
}

/* (C) Mac Safari: Favorites-Seite — grauer Balken hinter Menü/Logo entfernen.
   Doppelte Bedingung: leohaz-is-mac + leohaz-favs-active = NUR Mac + NUR Favorites.
   Alle anderen Seiten und alle anderen Browser/Geräte sind komplett unberührt. */
body.leohaz-is-mac.leohaz-favs-active #masthead,
body.leohaz-is-mac.leohaz-favs-active #masthead-mobile,
body.leohaz-is-mac.leohaz-favs-active .site-header {
  background: transparent !important;
  background-color: transparent !important;
}
body.leohaz-is-mac.leohaz-favs-active .bottom-header-row.sticky-header,
body.leohaz-is-mac.leohaz-favs-active .bottom-header-row.sticky-header::before {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

/* (B) Mac Safari mit geöffnetem Toggle-Menü (offcanvas):
   Das Herz-Menü-Item und die Anzahl-Anzeige sollen dort nicht erscheinen.
   iPhone-Offcanvas bleibt unverändert, weil die Regel nur auf Mac greift. */
body.leohaz-is-mac .sydney-offcanvas-menu li#menu-item-8899,
body.leohaz-is-mac .sydney-offcanvas-menu .leohaz-fav-count,
body.leohaz-is-mac .sydney-offcanvas-menu .leohaz-menu-count,
body.leohaz-is-mac .sydney-offcanvas-menu .lhz-hw,
body.leohaz-is-mac .sydney-offcanvas-menu #leohaz-fav-btn,
body.leohaz-is-mac .sydney-offcanvas-menu #leohaz-fav-count {
  display: none !important;
  visibility: hidden !important;
}

/* ─────────────────────────────────────────────────────────────
   Leohaz: Sydney Preloader – Hintergrund dunkelgrau
   (Kreise bleiben unverändert. Unser Overlay darüber übernimmt den Fade.)
   ───────────────────────────────────────────────────────────── */
.preloader {
  background: #2a2a2a !important;
}

/* ─────────────────────────────────────────────────────────────
   Leohaz: Eigenes Seiten-Overlay für sanften Lade-Übergang.
   z-index 99999 = über Sydney's Preloader (9999) und allem anderen.
   Fade-Timing komplett per nativem JS gesteuert (functions.php).
   pointer-events:none = blockiert nie Klicks/Touch.
   ───────────────────────────────────────────────────────────── */
#leohaz-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #2a2a2a;
  z-index: 99999;
  pointer-events: none;
}

/* ─────────────────────────────────────────────────────────────
   Leohaz: Sticky Menu Hover — Balken + Zacken als eine Einheit.
   Nur Desktop (ab 1025px). Mobile unberührt (Mac-Fix bleibt aktiv).
   ::before deckt Balken-Höhe + 8px darunter ab und enthält beide
   Elemente (grauer Fill + Zacken-SVG). clip-path animiert beides
   gemeinsam von oben → keine sichtbare Trennung möglich.
   ───────────────────────────────────────────────────────────── */
@media (min-width: 1025px) {
  /* Element selbst: kein eigener Hintergrund mehr (kommt via ::before) */
  .bottom-header-row.sticky-header {
    background-image: none !important;
    background-size: auto !important;
    background-position: initial !important;
    background-repeat: initial !important;
    transition: none !important;
    z-index: 10000 !important;
    overflow: visible !important;
  }
  /* Alten background-size Hover-Trigger neutralisieren */
  body.leohaz-past-header .bottom-header-row.sticky-header:hover {
    background-size: auto !important;
  }

  /* ::before = grauer Balken (calc(100%)) + Zacken (8px) als eine Fläche.
     clip-path enthüllt beides synchron von oben nach unten — nie getrennt. */
  .bottom-header-row.sticky-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -8px;              /* 8px unter dem Balken = Zackenbereich */
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='8'%3E%3Cpolygon points='43,0 57,0 50,8' fill='%23f6f6f6'/%3E%3C/svg%3E"),
      linear-gradient(rgba(246,246,246,0.97), rgba(246,246,246,0.97));
    background-size: 100px 8px, 100% calc(100% - 8px);
    background-position: bottom, top;
    background-repeat: repeat-x, no-repeat;
    clip-path: inset(0 0 100% 0);   /* initial: komplett versteckt */
    transition: clip-path 0.35s ease-out;
    pointer-events: none;
  }
  /* Balken + Zacken gemeinsam einfahren (hover, nur wenn Logo aus Sicht) */
  body.leohaz-past-header .bottom-header-row.sticky-header:hover::before {
    clip-path: inset(0 0 0% 0);
  }

  /* ::after wird nicht mehr benötigt */
  .bottom-header-row.sticky-header::after {
    display: none !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   Leohaz: Site-Logo — immer transparenter Hintergrund.
   Gilt für Desktop-Header, Mobile-Header, alle Browser/Geräte.
   Falls das SVG selbst einen weißen Hintergrund hat, mix-blend-mode
   multiply entfernt ihn visuell auf weißem Untergrund. Auf dunklem
   Untergrund ist multiply nicht nötig (transparent reicht).
   ───────────────────────────────────────────────────────────── */
.site-logo,
a .site-logo,
#masthead .site-logo,
#masthead-mobile .site-logo,
.header-wrap .site-logo,
.site-header .site-logo {
  background: transparent !important;
  background-color: transparent !important;
  -webkit-background-clip: initial;
  background-clip: initial;
}

/* ─────────────────────────────────────────────────────────────
   Leohaz: Nav-Herz Puls nach erstem Scroll (einmalig, kein Text)
   ───────────────────────────────────────────────────────────── */
@keyframes lhz-nav-heart-pulse {
  0%   { transform: scale(1);    }
  20%  { transform: scale(1.45); }
  40%  { transform: scale(1);    }
  60%  { transform: scale(1.35); }
  80%  { transform: scale(1);    }
  100% { transform: scale(1);    }
}

/* Desktop: ::before enthält das SVG-Herz */
li#menu-item-8899 a.sydney-dropdown-link.lhz-nav-pulse::before {
  animation: lhz-nav-heart-pulse 0.65s ease-in-out 3;
}

/* Mobile: Herz-PNG direkt pulsieren */
img[src*="heart-green"].lhz-nav-pulse {
  animation: lhz-nav-heart-pulse 0.65s ease-in-out 3;
}

/* ─────────────────────────────────────────────────────────────
   Leohaz: Pop-in Hint — "Tap on a ♥ to add to favorites"
   Erscheint einmalig: Desktop beim ersten Artwork-Hover,
   Mobile nach erstem Scroll.
   ───────────────────────────────────────────────────────────── */
#lhz-fav-hint {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.88);
  background: rgba(20, 20, 20, 0.92);
  color: #fff;
  padding: 15px 30px;
  border-radius: 22px;
  font-size: 21px;
  font-family: sans-serif;
  font-variant-emoji: text;   /* erzwingt Text-Rendering — kein rotes Emoji-Herz */
  z-index: 999998;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.55);
}
#lhz-fav-hint.lhz-fav-hint-show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

