/* WCPF Eventdate + Calendar */
.wcpf-finder{
	display: flex;
	flex-wrap: wrap;
	gap: .75rem 1rem;
	align-items: flex-end;
	margin: 0 0 1rem 0;
}
.wcpf-finder .wcpf-field {
	display: grid;
	grid-template-rows: auto auto;
	gap: .35rem;
	min-width: 180px;
	background: var(--primary-color);
    padding: 20px;
}
.wcpf-finder .wcpf-field label {
	color: #fff;
}
.wcpf-finder input.text, .wcpf-finder input.title, .wcpf-finder input[type=email], .wcpf-finder input[type=password], .wcpf-finder input[type=tel], .wcpf-finder input[type=text], .wcpf-finder select, .wcpf-finder textarea {
    background-color: var(--primary-color);
    border: none;
    padding: 2px;
    color: #fff;
}
.wcpf-finder .wcpf-field input[type="date"],
.wcpf-finder .wcpf-field input[type="text"],
.wcpf-finder .wcpf-field select {
	width: 100%;
	font-size: 1.2rem;
    color: #fff;
}
.wcpf-finder .wcpf-field select {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 0;
  cursor: pointer;
}
select:focus {
  outline: none;
}

.wcpf-finder .wcpf-actions {
	display: flex;
	gap: .5rem;
}

.wcpf-finder .wcpf-actions button {
    border: none;
    background: #cecece;
    border-radius: 0;
    font-size: 1.2rem;
    padding: 20px;
	cursor: pointer;
	transition: background ease .5s, color ease .5s;
}

.wcpf-finder .wcpf-actions button:hover {
    background: var(--primary-color);
	color: #fff;
}

@media (max-width: 768px) {
v.wcpf-finder .wcpf-field {
		min-width: 46%;
	}
}
@media (max-width: 480px) {
	.wcpf-finder .wcpf-field {
		min-width: 100%;
	}
}

.wcpf-row{
	display:flex;
	gap:1rem;
	flex-wrap:wrap;
	margin-bottom:.5rem
}
/* Datumsbereich nebeneinander */
.wcpf-field--daterange label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.wcpf-daterange {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.wcpf-daterange input[type="date"] {
  border: none;
  background: transparent;
  color: #fff;
}
.wcpf-daterange input[type="date"] {
  position: relative;
  padding-right: 2rem; /* Platz für das Icon */
}

.wcpf-daterange input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  right: 0.5rem;
  width: 1.2rem;
  height: 1.2rem;
  cursor: pointer;
}

.wcpf-daterange input[type="date"]::after {
  content: '';
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.2rem;
  height: 1.2rem;
  background: url('data:image/svg+xml;utf8,<svg fill="%23ffffff" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 4h-1V2h-2v2H8V2H6v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 16H5V10h14v10zM7 12h5v5H7z"/></svg>') center/contain no-repeat;
  pointer-events: none;
}

.wcpf-dash {
  color: #fff;
  user-select: none;
}

/* Calendar */
.wcpf-cal{
	margin:1.5rem 0
}
.wcpf-cal__header{
	margin-bottom:.5rem
}
.wcpf-cal__grid{
	display:grid;
	grid-template-columns:repeat(7,minmax(0,1fr));
	gap:6px
}
.wcpf-cal__cell{
	border:1px solid #eee;
	border-radius:6px;
	min-height:100px;
	padding:6px;
	background:#fff
}
.wcpf-cal__cell--head{
	background:#fafafa;
	font-weight:600;
	text-align:center
}
.wcpf-cal__cell--empty{
	background:transparent;
	border:none
}
.wcpf-cal__date{
	font-size:.9rem;
	font-weight:600;
	opacity:.85;
	margin-bottom:4px
}
.wcpf-cal__events{
	list-style:none;
	margin:0;
	padding:0
}
.wcpf-cal__event{
	margin:0 0 .25rem 0
}
.wcpf-cal__price{
	opacity:.8
}
.wcpf-cal__cell.is-today{
	outline:2px solid #0073aa
}

/* === WCPF: Woo-Grid zurücksetzen & echtes CSS-Grid erzwingen === */
/* Grid-kompatibler Reset für Finder-Ergebnisse */
#wcpf-results.woocommerce ul.products::before,
#wcpf-results.woocommerce ul.products::after,
#wcpf-results.woocommerce .products ul::before,
#wcpf-results.woocommerce .products ul::after {
  content: none !important;
  display: none !important;
}

#wcpf-results.wcpf-results.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin: 12px 0 0 0;
  padding: 0;
}

/* Woo/Divi column presets killen (width/float/clear) */
#wcpf-results.wcpf-results.woocommerce ul.products li.product {
  width: auto !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
}

/* manche Themes setzen nth-child-Clears – neutralisieren */
#wcpf-results.wcpf-results.woocommerce ul.products.columns-3 li.product:nth-child(n) {
  clear: none !important;
}

/* Card-Optik (kannst du lassen, wenn du es schon drin hast) */
#wcpf-results.wcpf-results.woocommerce ul.products li.product {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
#wcpf-results.wcpf-results.woocommerce ul.products li.product:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
  border-color: #e2e2e2;
}

/* Bild sauber, 3:2 passt zu deinen 300x200 Thumbs */
#wcpf-results.wcpf-results.woocommerce ul.products li.product a.woocommerce-LoopProduct-link img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  background: #f7f7f7;
}
#wcpf-results.wcpf-results.woocommerce ul.products li.product a.woocommerce-LoopProduct-link .et_shop_image {
    padding: 0;
}
/* etwas Polishing */
#wcpf-results.wcpf-results .woocommerce-LoopProduct-link {
	padding: 10px 12px 0 12px;
	display:block;
}
#wcpf-results.wcpf-results .wc-gzd-additional-info {
	padding: 0 12px 0 12px;
}
#wcpf-results.wcpf-results .woocommerce-loop-product__title {
	font-size: 1.05rem;
	line-height: 1.35;
	margin:.35rem 0 .25rem;
}
#wcpf-results.wcpf-results .price {
	font-weight:700;
	font-size:1.05rem;
	margin:.25rem 12px 0 12px;
}
#wcpf-results.wcpf-results li.product a.button,
#wcpf-results.wcpf-results li.product .added_to_cart {
	margin:.6rem 12px 12px;
	border-radius:10px;
	text-align:center;
}

/* Responsive Tweaks */
@media (max-width: 480px) {
  #wcpf-results.wcpf-results.woocommerce ul.products {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}
@media (max-width: 380px) {
  #wcpf-results.wcpf-results.woocommerce ul.products {
    grid-template-columns: 1fr;
  }
}
