/*
 Theme Name:   Safar Child Theme
 Theme URI:    https://themesvila.com/themes-wp/safar/
 Description:  This is safar Child Theme
 Author:       Themesvila
 Author URI:   https://www.templatemonster.com/authors/themesvila/
 Template:     safar
 Version:      1.4
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:  two-columns, right-sidebar
 Text Domain:  safar-child
*/


body{
	
	overflow-x: hidden;
}

/* Start globale Anspassungen CF7 Formular */
/* Container für das File-Feld */
.custom-file-upload {
    display: flex;
    flex-direction: column; /* Elemente untereinander anordnen */
    align-items: flex-start;
	/*  color: #dc3232;  Hier Ihre Wunschfarbe einfügen */
}

/* Den Button stylen (Datei auswählen) */
.custom-file-upload input[type="file"] {
    margin-bottom: 5px; /* Abstand zwischen Button und Text */
    width: 100%;
}

/* Optional: Das Aussehen des Buttons selbst anpassen */
.custom-file-upload input[type="file"]::file-selector-button {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}
/* Ende globale Anspassungen CF7 Formular */

/* ================================
   Custom Dropdown – Matches & Events
   Saubere, konfliktfreie Version
   ================================ */
/* Container */
.matches-dropdown {
    width: 100%;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    padding: 0; /* WICHTIG: Kein Padding, sonst rutscht der Pfeil */
}

.matches-header,
.events-header {
	font-family: "Poppins", sans-serif !important;
	font-size: 16px;
    color: #6c757d;
    padding: 15px 40px 0 12px;
    display: flex;
    position: relative;
    background: #fff;
    border-radius: 4px;
    align-items: center;      /* vertikal mittig */
    height: 42px;           /*  gleiche Höhe wie Select */
    line-height: normal;
}

/* Pfeil */
.custom-arrow {
    position: absolute;
    top: 50%;
    right: 14px;  /* vorher 12 */
    width: 6.5px;   /* vorher 8 */
    height: 6.5px;   /* vorher 8 */
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
    transition: transform 0.2s ease;
} 

/* Pfeil drehen */
.matches-dropdown.is-open .custom-arrow {
    transform: translateY(-50%) rotate(-135deg);
}

/* Panel (Liste) */
.matches-panel {
    display: none;
    max-height: 180px;
    overflow-y: auto;
    padding: 10px 12px 10px 12px;
    border-top: 1px solid #eee;
    background: #fff;
}

/* Panel sichtbar */
.matches-dropdown.is-open .matches-panel {
    display: block;
	border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
	overflow-y: auto; /* WICHTIG: sonst schneidet der Scrollbalken die Rundung ab */
	clip-path: inset(0 round 0 0 8px 8px); /* Rundung erzwingen */
}

/* Checkboxen untereinander */
.matches-panel .wpcf7-list-item {
    display: block;
    margin-bottom: 6px;
}

/* Label schöner */
.matches-panel label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.matches-error,
.events-error {
    display: block;
    font-family: "Poppins", sans-serif !important;
    font-size: 15px;
    font-weight: 400;
    line-height: 27px;
    color: rgb(220, 50, 50); /* exakt wie im Screenshot */
    text-align: left;
}

/* Fehlermeldungen */
.matches-dropdown,
.events-dropdown {
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.2s ease;
}

.matches-dropdown.has-selection,
.events-dropdown.has-selection {
    border-color: #20c997;;
}

.matches-dropdown,
.matches-header {
    border-radius: 6px !important;
}
.matches-dropdown.is-open .matches-panel {
    border-bottom-left-radius: 6px !important;
    border-bottom-right-radius: 6px !important;
}

/* Abstand unterhalb des Labels Mein Event - Meine Matches entfernen */
.form-group.col-md-12 > p {
    margin-bottom: -8px !important; /* oder 2px, wenn du es noch enger willst */
}

#period-dropdown {
    margin-top: 8px !important;
}

#period-dropdown .matches-panel {
    overflow-y: scroll !important;
}

/* Gleicher Pfeil wie beim Zeitraum für ALLE Dropdowns */
.matches-dropdown .matches-header::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 6.5px;
    height: 6.5px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
    transition: transform 0.2s ease;
}

/* Pfeil drehen beim Öffnen */
.matches-dropdown.is-open .matches-header::after {
    transform: translateY(-50%) rotate(-135deg);
}

/* ================================
   Checkbox – Hintergrund GRÜN bei Auswahl
   ================================ */

/* Matches */
.matches-panel .wpcf7-list-item input[type="checkbox"]:checked + span {
    background-color: #28a745 !important; /* Grün */
    color: #fff !important;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* Events */
.events-panel .wpcf7-list-item input[type="checkbox"]:checked + span {
    background-color: #28a745 !important; /* Grün */
    color: #fff !important;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* ================================
   Checkbox-Kästchen selbst GRÜN bei Auswahl
   ================================ */

/* Matches */
.matches-panel .wpcf7-list-item input[type="checkbox"]:checked {
    accent-color: #28a745 !important; /* grünes Kästchen */
}

/* Events */
.events-panel .wpcf7-list-item input[type="checkbox"]:checked {
    accent-color: #28a745 !important; /* grünes Kästchen */
}

.label-with-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: inherit; /* ← übernimmt die Schrift vom Theme */
}

/* ============================================
   Tooltip – Grundstruktur (Desktop & Tablet)
   ============================================ */

.label-with-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

/* Info-Icon */
.info-icon {
  background: #ffcc00;
  color: #000;
  font-weight: bold;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  flex-shrink: 0;
}

/* Tooltip */
.tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  max-width: 100%;
  width: max-content;
  background: #fec42d; /* <— neue Farbe */
  color: #000;         /* <— optional: bessere Lesbarkeit */
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: break-word;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2000;
}

/* Hover + Focus */
.label-with-info:hover .tooltip,
.label-with-info:focus-within .tooltip {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Tooltip wieder ausblenden, wenn NICHT das Icon gehovt wird */
.label-with-info:hover:not(:has(.info-icon:hover)) .tooltip {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
}

/* ============================================
   Mobile (max-width: 600px)
   ============================================ */
@media (max-width: 600px) {

  /* Tooltip auf volle Breite */
  .label-with-info .tooltip {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    top: calc(100% + 12px);
    left: 0;
    transform: none;
  }
}

.label-with-info .tooltip,
.label-with-info .tooltip * {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    font-family: 'Poppins', sans-serif !important;
}

/* .fa-star:before,
.fa-star-o:before,
.fa-star-half-o:before {
    content: "";
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    background-image: url('/wp-content/uploads/2026/04/smileyflower.png');
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    color: transparent !important;
} */

/* ============================================
   Abstand Text zum Senden-Button
   ============================================ */
.col-md-12 > p {
    margin-bottom: -6px !important;
}
