/*
 Theme Name:  KeynoteSpeaker-Buchen.de
 Theme URI:   
 Description: Child Theme für Avada (KeynoteSpeaker-Buchen.de)
 Author:      Ehsan Bordbar
 Author URI:  https://keynote-speaker-buchen.de
 Version:     1.0.0
 Template:    Avada
 Text Domain: avada-child-7
*/


/*
 * Avada Child – WCFM Storelist Additions
 * Lädt nur auf Seiten mit [wcfm_stores] (per functions.php enqueue)
 */





/* Sidebar optisch harmonisieren (Avada) */
#wcfmmp-store-lists-sidebar.widget-area.sidebar {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0,0,0,.06);
	padding: 16px;
}


/* Select2 inner alignment */
#wcfmmp-stores-wrap ul.wcfmmp-store-wrap li a{ text-decoration:none !important; border-bottom:none !important; box-shadow:none !important; background-image:none !important }
#wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-content a,
#wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-content a *,
#wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-wrapper a{ text-decoration:none !important; border:0 !important; background-image:none !important; box-shadow:none !important }
#wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-content a img{ border:0 !important; outline:0 !important }
.kb-storelist-filters .select2-container .select2-selection__rendered{line-height:44px; color:#334155 !important; font-weight:400 !important; font-family:inherit !important}
.kb-storelist-filters .select2-container .select2-selection__arrow{height:44px}
.select2-container .select2-selection .select2-selection__arrow { width: 30px !important; }
/* zentrierte Ausrichtung entfernen */
.kb-storelist-filters{ text-align:left !important }








/* Seitliche Schattierungen/Gutters neutralisieren */
#wcfmmp-stores-lists,
#wcfmmp-stores-wrap-holder,
.wcfmmp-stores-listing,
.right_side,
.right_side_full,
.wcfmmp-store-search-form,
#wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-wrapper{box-shadow:none !important;background:transparent !important;border:0 !important}





/* Grid via Plugin (per_row=4); nur Innenabstände steuern */
#wcfmmp-stores-wrap ul.wcfmmp-store-wrap{margin-top:12px}


/* Card base elements (moved from style.css) */
.kb-card__media{position:relative;overflow:hidden}
.kb-card__media img{width:100%;height:auto;object-fit:cover;display:block}
.kb-card__logo{position:absolute;left:20px;bottom:20px;width:110px;height:110px;border-radius:50%;overflow:hidden;border:4px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.25);z-index:2}
.kb-card__logo img{width:100%;height:100%;object-fit:cover}
.kb-card__body{padding:16px 20px 20px}
.kb-card__title{margin:6px 0 4px;line-height:1.25;display:flex;align-items:center;gap:10px}
.kb-badge{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;font-size:12px;font-weight:700}
.kb-badge--verified{background:#0ea5a0;color:#fff}
.kb-card__meta{margin:0 0 10px}
.kb-card__actions{display:flex;gap:8px;margin-top:12px}
.kb-btn{display:inline-flex;align-items:center;justify-content:center;padding:9px 14px;border-radius:8px;font-weight:700;border:0;transition:color .15s ease,background-color .15s ease,filter .15s ease;text-decoration:none !important;background-image:none}
.kb-card__actions .kb-btn--primary{background:#ff8a1f;color:#fff}
.kb-card__actions .kb-btn--primary:hover{color:#011a27;filter:brightness(.95)}
.kb-card__actions .kb-btn--ghost{background:#011a27;color:#fff}
.kb-card__actions .kb-btn--ghost:hover{filter:brightness(1.05)}
.kb-card__title--large{font-size:30px !important;font-family:'Sen',sans-serif;color:#011a27}
.kb-card__media--portrait{overflow:hidden}
.kb-card__media--portrait img{width:100%;aspect-ratio:4/3;height:auto;object-fit:cover;}

/* Hide legacy WCFM avatar circle */
.wcfmmp-single-store .store-avatar{display:none !important}


/* ========= WCFM – Store Profilseite (Header, Tabs, Buttons) ========= */
/* Max-Breite an Avada angleichen */
.wcfmmp-store-wrap,
.wcfmmp-store-header,
.wcfmmp-store-page-wrap,
.wcfmmp-store-tab-wrap {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Rating im Header ausblenden */
.wcfmmp-store-header .wcfmmp-store-rating,
.wcfmmp-store-header .wcfmmp-store-rating * { display: none !important; }

/* Store-Titel und Info */
.wcfmmp-store-header .wcfmmp-store-name,
.wcfmmp-store-header .wcfmmp-store-name a {
  font-family: inherit;
  color: #011a27;
  text-decoration: none;
}

/* Action-Buttons im Header (Inquiry/Follow) */
.wcfmmp-store-header [class*="enquiry"],
.wcfmmp-store-header [class*="inquiry"],
.wcfmmp-store-header [class*="follow"],
.wcfmmp-store-header .wcfm_button,
.wcfmmp-store-header .wcfm_btn {
  border: 1px solid #e1e5ea !important;
  background: #fff !important;
  color: #011a27 !important;
  border-radius: 10px !important;
  padding: 10px 16px !important;
  box-shadow: none !important;
  line-height: 1 !important;
  font-weight: 600 !important;
}
.wcfmmp-store-header [class*="enquiry"]:hover,
.wcfmmp-store-header [class*="inquiry"]:hover,
.wcfmmp-store-header [class*="follow"]:hover,
.wcfmmp-store-header .wcfm_button:hover,
.wcfmmp-store-header .wcfm_btn:hover {
  background: #f0810f !important;
  border-color: #f0810f !important;
  color: #fff !important;
}


/* ====== Vendorseiten: Banner 100vw & Avada-Blöcke ausblenden ====== */
body.is-wcfm-store #wcfmmp-store,
body.is-wcfm-store #wcfmmp-store-content {
  max-width: none !important;
  padding: 0 !important;
}

body.is-wcfm-store #wcfmmp-store .wcfm_banner_area,
body.is-wcfm-store #wcfmmp-store .banner_area,
body.is-wcfm-store #wcfmmp-store .wcfm_slider_area,
body.is-wcfm-store #wcfmmp-store .wcfm_slideshow_container,
body.is-wcfm-store #wcfmmp-store .banner_img {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  padding: 0 !important;
}
body.is-wcfm-store #wcfmmp-store .banner_img img{
  width:100% !important; height:auto !important; display:block !important;
}

/* Nach dem Banner: Inhalt auf Site-Width zentrieren */
body.is-wcfm-store .wcfmmp-store-header,
body.is-wcfm-store .wcfmmp-store-wrap,
body.is-wcfm-store .wcfmmp-store-tab-wrap{
  max-width: 1200px !important;
  margin-left:auto !important; margin-right:auto !important;
  padding-left:20px !important; padding-right:20px !important;
}



/* WCFM Produkte ausdrücklich sichtbar lassen */
body.is-wcfm-store #wcfmmp-store .products{ display:block !important }

#wcfmmp-store .tab_area .tab_links li {
    border-radius: 4px;
}

#wcfmmp-store .bd_icon_area {
    margin: 123px 84px 24px 0 !important;
}


.width-100 .fusion-fullwidth .fusion-fullwidth, .width-100 .fusion-fullwidth .nonhundred-percent-fullwidth {
    margin-bottom: -13px;
}


.post-content{margin-bottom:-1px;}
.fontawesome-icon.fusion-text-flow:hover {color:#fff !important;}


/* Vendor-Header-Buttons: Text vor Icon, Punkte entfernen (Darstellung) */
#wcfmmp-store .bd_icon_box a,
.wcfmmp-store-header .bd_icon_box a{
  display:inline-flex !important;
  align-items:center !important;
  gap:8px !important;
}
#wcfmmp-store .bd_icon_box a span,
.wcfmmp-store-header .bd_icon_box a span{
  order:1 !important;
  margin:0 !important;
}
#wcfmmp-store .bd_icon_box a i,
.wcfmmp-store-header .bd_icon_box a i{
  order:2 !important;
  margin:0 !important;
}


/* Buttons: keine Unterstreichung / dotted border */
#wcfmmp-store .bd_icon_box a,
.wcfmmp-store-header .bd_icon_box a,
#wcfmmp-store .bd_icon_box a span,
.wcfmmp-store-header .bd_icon_box a span,
#wcfmmp-store .bd_icon_box a i,
.wcfmmp-store-header .bd_icon_box a i{
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background-image: none !important;
}



.fontawesome-icon.fusion-link:hover {
    color: #f0810f !important;
}


.fusion-button:hover {
    border: 1px solid #fff !important;               /* Kein Rand beim Hover */
	box-shadow:none !important; 
}


#wcfm-main-contentainer .wcfm_membership_box_head .wcfm_membership_price .amount {
    font-size: 20px;
}


#wcfm-main-contentainer .wcfm_membership_review_plan .wcfm_review_plan_features {
   border: 1px solid #fff;
  color: #fff;
}


#wcfm-main-contentainer .wcfm_membership_review_plan .wcfm_review_plan_welcome {
  color: #fff;
}


#wcfm-main-contentainer .wcfm_membership_review_pay .wcfm_review_pay_non_free .amount {
  color: green;
}






/* ==== HARD OVERRIDES – FOOTER ==== */
/* 3) Footer-Überschriften (Avada Title + h-Tags) */
.fusion-footer .fusion-title .title-heading-tag,
.fusion-footer h3, .fusion-footer h4 {
  color: #fff !important;
  font-size: 16px;
}
.fusion-body #wrapper .fusion-title h3 {
 
  font-size: 35px;
}


.awb-menu_row .menu-text {
    display: flex
;
    align-items: center;
    text-align: center;
    color: #fff;
}

.awb-menu_row .menu-text:hover {
    display: flex
;
    align-items: center;
    text-align: center;
    color: #f0810f;

}


/* == Footer-Menüs: vertikal, linksbündig, klickbar == */
#menu-footermenu1,
#menu-footermenu2,
#menu-footermenu3,
#menu-footermenu4 {
  display: flex !important;
  flex-direction: column !important;
  row-gap: 8px;
  align-items: flex-start !important;  /* linksbündig */
  text-align: left !important;         /* falls Spalte zentriert war */
}

/* LIs NICHT umstellen – Avada nutzt dort flex.
   Nur Ausrichtung korrigieren, damit nichts mittig wird. */
#menu-footermenu2 > li,
#menu-footermenu3 > li,
#menu-footermenu4 > li {
  justify-content: flex-start !important;
  align-items: flex-start !important;
  margin: 0;
  text-align: left !important;
}

/* Links sicher klickbar + Umbruch erlauben */
#menu-footermenu2 a,
#menu-footermenu3 a,
#menu-footermenu4 a,
#menu-footermenu2 .menu-text,
#menu-footermenu3 .menu-text,
#menu-footermenu4 .menu-text {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  display: inline;                 /* natürliche Breite */
  white-space: normal !important;  /* Zeilenumbruch */
  text-align: left !important;
}

/* Overlays, die Klicks „schlucken“, deaktivieren */
#menu-footermenu2 .awb_menu_main-background-default,
#menu-footermenu2 .awb-menu__main-background-default_fade,
#menu-footermenu2 .awb-menu__main_background-active_fade,
#menu-footermenu3 .awb_menu_main-background-default,
#menu-footermenu3 .awb-menu__main-background-default_fade,
#menu-footermenu3 .awb-menu__main_background-active_fade,
#menu-footermenu4 .awb_menu_main-background-default,
#menu-footermenu4 .awb-menu__main-background-default_fade,
#menu-footermenu4 .awb-menu__main_background-active_fade {
  pointer-events: none !important;
}


/* Footer Bottom Bar */
.fusion-footer .footer-bottom {
  padding: 14px 0;
  font-size: 13px;
  color: #fff;
  background-color: #011A27;
  display: flex;
  justify-content: space-between; /* Text links, Mini-Menü rechts */
  align-items: center;
  gap: 12px;
}

.footer-bottom-container{
  border-top: 1px solid rgba(255,255,255,.12) !important;

}

.fusion-footer .footer-bottom a { color: #a7bac2; text-decoration: none; }
.fusion-footer .footer-bottom a:hover { color: #f0810f; }
@media (max-width: 768px){
  .fusion-footer .footer-bottom { flex-direction: column; align-items: flex-start; }
}


/* RESPONSIVE*/


/* Vorteile-Block: alles zentrieren (Icon, Titel, Absatz) */
.home-benefits .fusion-content-boxes .content-container,
.home-benefits .fusion-content-boxes .fusion-content-boxes-content,
.home-benefits .fusion-content-boxes .fusion-content-boxes-content p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Vorteile: Absatz-Text je Device ausrichten, Inline-Styles überstimmen */
@media (max-width: 1100px) {
  .home-benefits .fusion-text,
  .home-benefits .fusion-text p,
  .home-benefits .fusion-column-wrapper {
    text-align: center !important;   /* überschreibt style="text-align:left" */
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1101px) {
  .home-benefits .fusion-text p {
    text-align: left !important;     /* Desktop bleibt linksbündig */
  }
}



/* Utility: explicit no-gutter container (opt-in) */
.no-gutter .fusion-row,
.no-gutter > .fusion-builder-row { padding-left:0 !important; padding-right:0 !important; }


/* Nur Header/Footer einrücken – responsive, ohne globale Nebenwirkungen */
.header-pad .fusion-builder-row,
.footer-pad .fusion-builder-row {
  padding-left: 7%;
  padding-right: 7%;
}

@media (max-width: 1100px) {
  .header-pad .fusion-builder-row,
  .footer-pad .fusion-builder-row {
    padding-left: 5%;
    padding-right: 5%;
  }
}

@media (max-width: 800px) {
  .header-pad .fusion-builder-row,
  .footer-pad .fusion-builder-row {
    padding-left: 16px;
    padding-right: 16px;
  }
}




/* Copyright: nur im Container mit Klasse `copyright-pad` */
@media (max-width: 800px) {
  /* seitlicher Abstand wie bei Header/Footer */
  .copyright-pad .fusion-builder-row {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Textzentrierung sicherstellen – egal ob p / a / span */
  .copyright-pad,
  .copyright-pad .fusion-text,
  .copyright-pad .fusion-text * {
    text-align: center !important;
  }

  /* falls Flex-Ausrichtung "links" erzwungen wird */
  .copyright-pad .fusion-builder-row,
  .copyright-pad .fusion-layout-column,
  .copyright-pad .fusion-column-wrapper {
    justify-content: center !important;
    align-items: center !important;
  }

  /* Avada-Hilfsklassen, die links ausrichten, neutralisieren */
  .copyright-pad .fusion-justify-content-flex-start { justify-content: center !important; }
  .copyright-pad .fusion-flex-align-items-flex-start { align-items: center !important; }
}







@media (max-width: 800px) {
  body.page:not(.home):not(.woocommerce):not(.cart):not(.checkout):not(.account)
  #main .post-content .fusion-text.fusion-text-1 {
    padding: 5% !important;
  }
}

/* Shop-Bereich: Content-Container auf Mobile mit Rand einrücken */
@media (max-width: 800px) {
  .shop-pad .fusion-builder-row,
  .shop-pad .fusion-layout-column,
  .shop-pad .fusion-text {
    padding: 5% !important;
    
  }
}

/* Normale Seiten: Tablet-Padding für Content (ohne Shop/Checkout …) */
@media (min-width: 801px) and (max-width: 1024px) {
  body.page:not(.home):not(.woocommerce):not(.cart):not(.checkout):not(.account)
  #main .post-content .fusion-text,
  body.page:not(.home):not(.woocommerce):not(.cart):not(.checkout):not(.account)
  #main .post-content .fusion-title {
    padding: 5% !important;
   
  }
}

/* Shop-Bereich (falls gewünscht) – nur Inhalte, nicht die Container-Backgrounds */
@media (min-width: 801px) and (max-width: 1024px) {
  .shop-pad .fusion-text,
  .shop-pad .fusion-title {
    padding: 5% !important;
 
  }
}








/* An deinen "Kleine Screens"-Breakpoint anpassen (z. B. 800px) */
@media (max-width: 800px) {

  /* 1) Keine extra-Abstände am Ende des Inhaltsbereichs */
  #main #content > .fusion-row:last-child,
  #main .fusion-builder-row:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    --awb-margin-bottom: 0 !important; /* Avada-Variable */
  }

  /* 2) Leere Abschluss-Reihen & Clearfix-Elemente ausblenden */
  #main #content > .fusion-row:last-child:empty,
  #main #content > .fusion-row:last-child:before,
  #main #content > .fusion-row:last-child:after {
    display: none !important;
    height: 0 !important;
  }

  /* 3) Footer-Trenner/Borders deaktivieren */
  .fusion-footer .fusion-footer-widget-area:before,
  .fusion-footer .fusion-footer-widget-area:after,
  .fusion-footer .fusion-footer-copyright-area:before,
  .fusion-footer .fusion-footer-copyright-area:after {
    content: none !important;
    display: none !important;
  }

  /* 4) Häufige Separator-Elemente am Ende neutralisieren */
  #main #content .fusion-separator:last-child {
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
}
@media only screen and (max-width: 800px) {
  .fusion-row {
    margin-bottom: 0 !important;
  }
  .fusion-builder-row {
    margin-bottom: 0 !important;
  }
}


/* <= 800px: wirklich jede Lücke zwischen Inhalt & Footer killen */
@media (max-width:800px){

  /* 0) Content/Wrapper: kein Rest-Padding unten */
  #wrapper,
  #main,
  #content{
    margin-bottom:0 !important;
    padding-bottom:0 !important;
  }

  /* 1) Letzte Builder-Reihe absolut ohne Abstand */
  #main #content > .fusion-fullwidth:last-child,
  #main #content > .fusion-builder-row:last-child,
  #main #content > .fusion-row:last-child{
    margin:0 !important;
    padding:0 !important;
  }

  /* 2) Häufiger Übeltäter: Footer oben Border & Padding */
  .fusion-footer,
  .fusion-footer .fusion-row{
    margin-top:0 !important;
  }
  .fusion-footer .fusion-footer-widget-area,
  .fusion-footer .fusion-footer-copyright-area{
    border-top:0 !important;     /* <— weißer Strich */
    padding-top:0 !important;    /* <— „Luft“ überm Footer */
  }

  /* 3) Avada-Separator ganz am Ende neutralisieren */
  #main #content .fusion-separator:last-child{
    margin:0 !important;
    padding:0 !important;
    height:0 !important;
    border:0 !important;
    background:transparent !important;
  }

  /* 4) Eventuelle Clearfix-/Pseudo-Elemente am Schluss */
  #main #content > .fusion-row:last-child::before,
  #main #content > .fusion-row:last-child::after{
    content:none !important;
    display:none !important;
  }
}


.speaker-werden-button {
    padding: 13px 17px!important;

}


/* Nur Tablet: Row wirklich zentrieren, auch wenn Avada 'flex-start' setzt */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .fusion-body .force-center-tablet.fusion-flex-container,
  .fusion-body .force-center-tablet.fusion-flex-container.fusion-flex-justify-content-flex-start {
    justify-content: center !important;   /* überstimmt die Avada-Klasse */
    align-items: center !important;
  }

  /* Spalte + Inhalt mittig halten */
  .fusion-body .force-center-tablet .fusion-layout-column,
  .fusion-body .force-center-tablet .fusion-column-wrapper {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    max-width: 100% !important;
  }
}


/* WCFM Button Profilseite */

#wcfmmp-store .bd_icon_box .wcfm_store_enquiry:hover{border: 1px solid #fff !important;}
#wcfmmp-store .bd_icon_box .wcfm_store_enquiry{border: 1px solid #f0810f !important;}
#wcfmmp-store .bd_icon_box .follow:hover{border: 1px solid #fff !important;}
#wcfmmp-store .bd_icon_box .follow{border: 1px solid #f0810f !important;}

/* WCFM Tabs Profilseite */
#wcfmmp-store .tab_area .tab_links {
    font-weight: 600;
}


.awb-menu_row .awb-menu__has-description .menu-text {
    color: #011a27;
}


.awb-menu_row .awb-menu__has-description .menu-text:hover {
    color: #f0810f;	
}

/* === WCFM Storelist – FINAL: Nur Kategorie & Land, 44px, ohne Doppelrand === */
#wcfmmp-stores-lists .kb-storelist-filters .kb-filter-item.kb-filter-category .select2,
#wcfmmp-stores-lists .kb-storelist-filters .kb-filter-item.kb-filter-country  .select2,
#wcfmmp-stores-lists .kb-storelist-filters .kb-filter-item.kb-filter-category .select2-container,
#wcfmmp-stores-lists .kb-storelist-filters .kb-filter-item.kb-filter-country  .select2-container,
#wcfmmp-stores-lists .kb-storelist-filters .kb-filter-item.kb-filter-category .select2-container .selection,
#wcfmmp-stores-lists .kb-storelist-filters .kb-filter-item.kb-filter-country  .select2-container .selection {
  /* äußerer Container randfrei -> kein Doppelrahmen */
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  width: 100% !important;
  min-width: 0 !important;
}

#wcfmmp-stores-lists .kb-storelist-filters .kb-filter-item.kb-filter-category .select2-container--default .select2-selection--single,
#wcfmmp-stores-lists .kb-storelist-filters .kb-filter-item.kb-filter-country  .select2-container--default .select2-selection--single {
  height: 45px !important;
  min-height: 45px !important;
  line-height: 45px !important;
  border: 1px solid #e1e5ea !important; /* identisch zu Ort/Stadt */
  border-radius: 8px !important;
  background: #fff !important;
  padding: 0 12px !important;
  box-shadow: none !important;
}

#wcfmmp-stores-lists .kb-storelist-filters .kb-filter-item.kb-filter-category .select2-selection__rendered,
#wcfmmp-stores-lists .kb-storelist-filters .kb-filter-item.kb-filter-country  .select2-selection__rendered {
  line-height: 45px !important;   /* Text vertikal mittig */
  padding-left: 0 !important;     /* kein doppeltes Padding */
  color: #334155 !important;
}

#wcfmmp-stores-lists .kb-storelist-filters .kb-filter-item.kb-filter-category .select2-selection__arrow,
#wcfmmp-stores-lists .kb-storelist-filters .kb-filter-item.kb-filter-country  .select2-selection__arrow {
  height: 45px !important;        /* Pfeil mittig */
  border-left: 0 !important;      /* ggf. Divider entfernen */
}

/* Fallback: falls Select2 mal nicht aktiv ist */
#wcfmmp-stores-lists .kb-storelist-filters .kb-filter-item.kb-filter-category select,
#wcfmmp-stores-lists .kb-storelist-filters .kb-filter-item.kb-filter-country  select {
  height: 45px !important;
  line-height: 45px !important;
}
