/*
 Theme Name:     Divi Child-Theme
 Theme URI:      http://www.elegantthemes.com
 Description:    Divi Child-Theme
 Author:         Max Saalmann
 Template:       Divi
 Version:        1.0.0
*/
 
/* CSS-Anpassungen
------------------------------------------------------- */


/* ==========================================================================
   GENERELLE ANPASSUNGEN
   ========================================================================== */
/* MADMENU - Position Close-Button Mobilmenu */
button.dvmm_popup_close {
  margin-top: 25px !important; 
  margin-right: 15px !important;
}

/*Recaptcha für Newletter ausblenden*/
.grecaptcha-badge {
    visibility: hidden !important;
}

/* Verhindert, dass Divi Sticky-Spalten auf festen Pixelbreiten einfriert */
.et_pb_column.et_pb_sticky {
  width: 100% !important;
  max-width: 100% !important;
}

/* ==========================================================================
   MADMENU BUTTON FIX (SAFARI + BREAKPOINTS)
   ========================================================================== */

/* 1. LAYOUT & SAFARI KLICK-STABILISIERUNG */
.dvmm_buttons_header_element,
.dvmm_button_one_wrapper,
.dvmm_button_two_wrapper {
    min-height: 40px; 
    align-items: center;
    -webkit-tap-highlight-color: transparent;
}
.dvmm_header_element_buttons {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* Verhindert Zusammenziehen & sichert Verlinkung in Safari */
a.dvmm_button_one,
a.dvmm_button_two {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    width: auto !important;
    min-width: fit-content !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    -webkit-tap-highlight-color: transparent !important;
    transform: translate3d(0,0,0) !important;
    transition: background-color 0.2s ease, opacity 0.2s ease !important;
}

/* Verhindert Größensprünge beim Klick (:active State) */
a.dvmm_button_one:active,
a.dvmm_button_two:active,
.dvmm_button_one_wrapper:active,
.dvmm_button_two_wrapper:active {
    transform: none !important;
    scale: 1 !important;
    flex-shrink: 0 !important;
}

/* Leitet Klicks von inneren Elementen direkt an den Link weiter */
a.dvmm_button_one *,
a.dvmm_button_two * {
    pointer-events: none !important;
    transform: none !important;
}


/* 2. RESPONSIVE BREAKPOINTS (Strikte Sichtbarkeit) */

/* --- AB 1120px (Desktop): Nur Button 1 AN, Button 2 AUS --- */
@media screen and (min-width: 1120px) {
    html body a.dvmm_button_one,
    html body .dvmm_button_one_wrapper {
        display: inline-flex !important;
    }
    
    html body a.dvmm_button_two,
    html body .dvmm_button_two_wrapper {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* --- ZWISCHEN 981px UND 1119px (Kleiner Desktop / Tablet): BEIDE BUTTONS AN --- */
@media screen and (min-width: 981px) and (max-width: 1119px) {
    html body a.dvmm_button_one,
    html body .dvmm_button_one_wrapper,
    html body a.dvmm_button_two,
    html body .dvmm_button_two_wrapper {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

/* --- BIS 980px (Mobil / Small Tablet): Nur Button 2 AN, Button 1 AUS --- */
@media screen and (max-width: 980px) {
    html body a.dvmm_button_one,
    html body .dvmm_button_one_wrapper {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    html body a.dvmm_button_two,
    html body .dvmm_button_two_wrapper {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

/* Styling für die Divi Newsletter-Fehlermeldung */
.et_pb_newsletter_result.et_pb_newsletter_error {
    color: #e30613 !important;                          /* Textfarbe */
    font-family: 'Manrope', sans-serif !important;		/* Schriftart Manrope */
    font-size: 12px !important;                         /* Schriftgröße */
	line-height: 1.6em !important;                      /* Zeilenhöhe (z.B. 1.5 oder 21px) */
	margin-bottom: 10px !important;
}