/**
 * This file contains styles for the editor and frontend
 *
 * @package Variations
 *
 */

/*
* Core blocks customization.
*/
/* block: "core/navigation" */
@media (max-width: 767.5px) {
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: block;
    }

    .wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content {
        display: none;
    }

    .wp-block-navigation__responsive-container-close {
        right: 1.7rem;
        top: 2rem;
    }

    .has-modal-open .admin-bar .is-menu-open .wp-block-navigation__responsive-dialog,
    .has-modal-open .is-menu-open .wp-block-navigation__responsive-dialog {
        padding-top: clamp(1.5rem, 5vw, 2rem);
    }

    /* Sub menu */
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item.has-child {
        position: relative;
        width: 100%;
        box-sizing: border-box;
        padding: 0px 30px;
    }

    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item.has-child .wp-block-navigation__submenu-icon {
        display: block;
        top: 6px;
        position: absolute;
        right: 10px;
    }

    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item.has-child .wp-block-navigation__submenu-container {
        display: none;
    }

    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container li {
        margin-bottom: 20px;
    }

    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container li:last-child {
        margin-bottom: 0px;
    }

    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container {
        min-width: unset !important;
        padding-left: 0;
        padding-right: 0;
    }

}

@media screen and (max-width: 767.5px) and (min-width: 600px) {
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: none;
    }
}

/* Header */
.mx_clean_header_background {
    background: unset !important;
}

body header.wp-block-template-part:has(+ div .wp-block-cover:first-child) .is-style-header-fixed,
body header.wp-block-template-part:has(+ .wp-block-cover) .is-style-header-fixed,
body header.wp-block-template-part:has(+ main .wp-block-cover) .is-style-header-fixed {
    position: absolute;
    width: 100%;
    z-index: 10;
}

body header.wp-block-template-part:has(+ div .wp-block-cover:first-child) .is-position-sticky,
body header.wp-block-template-part:has(+ .wp-block-cover) .is-position-sticky,
body header.wp-block-template-part:has(+ main .wp-block-cover) .is-position-sticky {
    position: absolute;
    width: 100%;
}

@media (min-width: 767.5px) {

    body header.wp-block-template-part:has(+ div .wp-block-cover:first-child) .is-position-sticky,
    body header.wp-block-template-part:has(+ .wp-block-cover) .is-position-sticky,
    body header.wp-block-template-part:has(+ main .wp-block-cover) .is-position-sticky {
        position: fixed;
        width: 100%;
    }
}


/* Toggle Crew */

.preis-toggle-wrapper {
  display: flex;
  justify-content: center;
  margin: 2rem 0 1rem;
}

.preis-toggle-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

/* Toggle-Switch (iOS-Style) */
.preis-toggle-switch {
  position: relative;
  display: inline-block;
  width: 70px;
  height: 35px;
}

.preis-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.preis-toggle-switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ccc;
  border-radius: 34px;
  transition: 0.3s;
}

.preis-toggle-switch .slider:before {
  position: absolute;
  content: "";
  height: 28px;
  width: 28px;
  left: 3px;
  top: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

.preis-toggle-switch input:checked + .slider {
  background-color: #25378d
}

.preis-toggle-switch input:checked + .slider:before {
  transform: translateX(33px);
}

/* Preisumschaltung */
.preis-text .preis-rabatt {
  display: none;
}

/* Wenn Toggle aktiv: andere Preise zeigen */
.price-section.is-discount-active .preis-text .preis-standard {
  color: darkslategray;
  text-decoration: line-through;
}

.price-section.is-discount-active .preis-text .preis-rabatt {
  display: inline;
}


/* Sprache */

.about a span::before {
    content: var(--about);
}

.pff a span::before {
    content: var(--pff);
}

.contact a span::before {
    content: var(--contact);
}

.join a span::before {
    content: var(--join);
}

.language::before {
    content: var(--language);
}

.content::before {
    content: var(--content);
}

.pbs::before {
    content: var(--pbs);
}