/* ZARUBA Theme Parts – ersetzt die Styles der früheren Elementor-Pro-Widgets. */

/* ---------- Warenkorb-Symbol im Kopf ---------- */
.zar-cart { display: inline-flex; }
.zar-cart__toggle {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 10.5px 22.5px; min-height: 41px; box-sizing: border-box;
	background: #fff; color: #60bce9;
	border: 1px solid #60bce9; border-radius: 4px;
	line-height: 1; text-decoration: none;
	transition: background-color .2s, color .2s;
}
.zar-cart__toggle:hover, .zar-cart__toggle:focus-visible { background: #60bce9; color: #fff; }
.zar-cart__icon { position: relative; display: flex; width: 18px; height: 18px; }
.zar-cart__svg { width: 18px; height: 18px; display: block; }
.zar-cart__qty {
	position: absolute; top: -9px; right: -9px;
	min-width: 16px; height: 16px; padding: 0 3px; box-sizing: border-box;
	border-radius: 16px; background: #d9534f; color: #fff;
	font: 600 10px/16px Roboto, Arial, sans-serif; text-align: center;
}

@media (max-width: 767px) {
	/* wie die bisherige Mobil-Regel für den Warenkorb-Knopf: 44 × 44 px Tippfläche */
	.zar-cart__toggle { width: 44px; height: 44px; min-width: 44px; padding: 0; border-radius: 10px; }
}

/* ---------- Warenkorb-Seitenleiste ---------- */
.zar-cart-panel { position: fixed; inset: 0; z-index: 99998; visibility: hidden; pointer-events: none; }
.zar-cart-panel.is-open { visibility: visible; pointer-events: auto; }
.zar-cart-panel__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .25); opacity: 0; transition: opacity .25s; }
.zar-cart-panel.is-open .zar-cart-panel__overlay { opacity: 1; }
.zar-cart-panel__main {
	position: absolute; top: 0; right: 0; bottom: 0;
	width: 424px; max-width: 100%; box-sizing: border-box;
	padding: 20px 30px; overflow-y: auto;
	background: #fff; color: #333; box-shadow: 0 0 20px rgba(0, 0, 0, .2);
	transform: translateX(100%); transition: transform .25s ease;
	font-family: Roboto, Arial, sans-serif; font-size: 14px; text-align: left;
}
.zar-cart-panel.is-open .zar-cart-panel__main { transform: none; }
.zar-cart-panel__close {
	position: absolute; top: 10px; right: 14px; width: 36px; height: 36px; padding: 0;
	background: none; border: 0; color: #818a91; font-size: 28px; line-height: 1; cursor: pointer;
}
.zar-cart-panel__close:hover, .zar-cart-panel__close:focus { background: none; color: #333; }
.zar-cart-panel__title { margin: 4px 40px 16px 0; font-size: 18px; font-weight: 600; color: #333; }
.zar-cart-panel ul.woocommerce-mini-cart { list-style: none; margin: 0 0 16px; padding: 0; }
.zar-cart-panel li.woocommerce-mini-cart-item {
	position: relative; display: block; min-height: 64px; margin: 0;
	padding: 12px 28px 12px 76px !important; border-bottom: 1px solid #d5d8dc; list-style: none;
}
.zar-cart-panel li.woocommerce-mini-cart-item a:not(.remove) { display: block; color: #333; font-weight: 600; text-decoration: none; line-height: 1.3; }
.zar-cart-panel li.woocommerce-mini-cart-item img { position: absolute; left: 0; top: 12px; width: 60px !important; height: 60px !important; max-width: none; object-fit: contain; margin: 0 !important; float: none !important; }
.zar-cart-panel li.woocommerce-mini-cart-item .quantity { display: block; margin-top: 4px; color: #69727d; font-size: 13px; }
.zar-cart-panel li.woocommerce-mini-cart-item a.remove {
	position: absolute; right: 0; top: 12px; width: 22px; height: 22px;
	border: 1px solid #d5d8dc; border-radius: 50%; color: #69727d !important; background: none;
	font-size: 16px; line-height: 20px; text-align: center; text-decoration: none;
}
.zar-cart-panel li.woocommerce-mini-cart-item a.remove:hover { color: #d9534f !important; border-color: #d9534f; background: none; }
.zar-cart-panel .woocommerce-mini-cart__total { display: flex; justify-content: space-between; margin: 0 0 16px; padding: 12px 0; border-bottom: 1px solid #d5d8dc; font-size: 15px; }
.zar-cart-panel .woocommerce-mini-cart__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.zar-cart-panel .woocommerce-mini-cart__buttons a.button {
	display: block; margin: 0; padding: 13px 10px; border: 0; border-radius: 4px;
	background: #69727d; color: #fff; font-size: 14px; font-weight: 600; text-align: center; text-decoration: none;
}
.zar-cart-panel .woocommerce-mini-cart__buttons a.button.checkout { background: #60bce9; }
.zar-cart-panel .woocommerce-mini-cart__buttons a.button:hover { filter: brightness(.93); }
.zar-cart-panel .woocommerce-mini-cart__empty-message { margin: 24px 0; color: #69727d; }
html.zar-cart-open { overflow: hidden; }
@media (max-width: 480px) {
	.zar-cart-panel__main { padding: 18px 18px; }
	.zar-cart-panel .woocommerce-mini-cart__buttons { grid-template-columns: 1fr; }
}

/* ---------- Kontaktformular (Contact Form 7) ---------- */
.elementor-widget-shortcode:has(.zar-form), .elementor-widget-shortcode:has(.zar-posts) { width: 100%; }
.zar-form, .zar-form .wpcf7 { width: 100%; }
.zar-form .wpcf7-form { margin: 0; }
.zar-form .wpcf7-form p { margin: 0 0 10px; }
.zar-form label { display: block; color: #333; font-size: 16px; line-height: 1; }
.zar-form .wpcf7-form-control-wrap { display: block; margin-top: 2px; }
.zar-form input[type="text"], .zar-form input[type="email"], .zar-form textarea {
	width: 100%; box-sizing: border-box; min-height: 40px; padding: 8px 16px;
	background: #fff; color: #4a4a4a; border: 1px solid #d0d5da; border-radius: 3px;
	font-size: 15px; line-height: 1.4;
}
.zar-form textarea { padding: 5px 14px; min-height: 138px; resize: vertical; }
.zar-form input:focus, .zar-form textarea:focus { border-color: #60bce9; outline: 2px solid rgba(96, 188, 233, .3); outline-offset: 0; }
.zar-form input[type="submit"] {
	width: 100%; min-height: 40px; padding: 0 24px; border: 0; border-radius: 4px;
	background: #343a40; color: #fff; font-size: 15px; font-weight: 500; cursor: pointer;
}
.zar-form input[type="submit"]:hover, .zar-form input[type="submit"]:focus { background: #23272b; color: #fff; }
.zar-form .zar-form__req { color: #d9534f; }
.zar-form .wpcf7-not-valid-tip { margin-top: 4px; font-size: 13px; }
.zar-form .wpcf7-response-output { margin: 12px 0 0 !important; padding: 10px 14px !important; font-size: 14px; border-radius: 3px; }
.zar-form .wpcf7-spinner { display: block; margin: 8px auto 0; }
.zar-form .zar-form__hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }

/* ---------- Beitragsliste (Seite Trends) ---------- */
.zar-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px 30px; text-align: left; }
.zar-posts__title { margin: 0 0 25px; font-size: 18px; line-height: 1.3; }
.zar-posts__title a { color: inherit; text-decoration: none; }
.zar-posts__meta { margin-bottom: 13px; color: #adadad; font-size: 12px; line-height: 1.3; }
.zar-posts__meta span + span::before { content: "•"; margin: 0 5px; }
.zar-posts__excerpt p { margin: 0 0 25px; color: #777; font-size: 14px; line-height: 1.5; }
.zar-posts__more { display: inline-block; color: #60bce9; font-size: 12px; font-weight: 700; text-decoration: none; }
@media (max-width: 1024px) { .zar-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .zar-posts { grid-template-columns: 1fr; } }
