/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* Content links only */
/* Content links only */
.elementor-widget-text-editor a,
.elementor-widget-text-editor a:visited,
.elementor-widget-theme-post-content a,
.elementor-widget-theme-post-content a:visited,
.elementor-widget-theme-post-excerpt a,
.elementor-widget-theme-post-excerpt a:visited,
.elementor-widget-icon-list a,
.elementor-widget-icon-list a:visited,
.entry-content a,
.entry-content a:visited,
.elementor-location-single a,
.elementor-location-single a:visited {
    color: #283271;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    transition: color 0.2s ease;
}

.elementor-widget-text-editor a:hover,
.elementor-widget-text-editor a:focus,
.elementor-widget-text-editor a:active,
.elementor-widget-theme-post-content a:hover,
.elementor-widget-theme-post-content a:focus,
.elementor-widget-theme-post-content a:active,
.elementor-widget-theme-post-excerpt a:hover,
.elementor-widget-theme-post-excerpt a:focus,
.elementor-widget-theme-post-excerpt a:active,
.elementor-widget-icon-list a:hover,
.elementor-widget-icon-list a:focus,
.elementor-widget-icon-list a:active,
.entry-content a:hover,
.entry-content a:focus,
.entry-content a:active,
.elementor-location-single a:hover,
.elementor-location-single a:focus,
.elementor-location-single a:active {
    color: #90172D;
}

.cvfs-event-cta-wrapper {
	display: flex;
	justify-content: center;
	width: 100%;
}

.cvfs-event-cta-wrapper .elementor-button-link {
	display: inline-flex;
	width: auto;
	flex: 0 0 auto;
}

/* =========================================
   Eventskalender shortcode cards
========================================= */

.cvfs-events-calendar,
.cvfs-events-month-group,
.cvfs-events-card,
.cvfs-events-filters-shell,
.cvfs-events-calendar .elementor-widget-container,
.cvfs-events-calendar .elementor-shortcode {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	display: block;
}

.cvfs-events-month-group {
	margin-bottom: 32px;
}

.cvfs-events-month-heading {
	display: block;
	width: 100%;
	margin: 0 0 16px;
	padding-bottom: 8px;
	border-bottom: 1px solid #9a9a9a;
	font-size: 28px;
	line-height: 1.2;
}

.cvfs-events-card {
	display: block;
	margin-top: 0;
	padding: 16px;
	background: transparent;
	border: 2px solid #CCBEC3;
	border-radius: 0;
	color: inherit;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
	touch-action: pan-y;
	transition:
		border-color 0.18s ease,
		box-shadow 0.18s ease,
		transform 0.18s ease;
}

/* Spacing between cards */
.cvfs-events-month-group > .cvfs-events-card + .cvfs-events-card {
	margin-top: 12px;
}

/* Special corners per month group */
.cvfs-events-month-group > .cvfs-events-card:first-of-type {
	border-radius: 15px 0 0 0;
}

.cvfs-events-month-group > .cvfs-events-card:last-of-type {
	border-radius: 0 0 15px 0;
}

.cvfs-events-month-group > .cvfs-events-card:first-of-type:last-of-type {
	border-radius: 15px 0 15px 0;
}

/* =========================================
   Event card content
========================================= */

.cvfs-events-card-top {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.cvfs-events-card-image-wrap {
	flex: 0 0 100px;
}

.cvfs-events-card-image {
	display: block;
	width: 100%;
	height: 95px;
	object-fit: cover;
	border-radius: 0 0 12px 0;
}

.cvfs-events-card-meta {
	flex: 1;
	min-width: 0;
	font-size: 14px;
	line-height: 1.45;
}

.cvfs-events-card-meta > div {
	margin-bottom: 6px;
}

.cvfs-events-card-bottom {
	margin-top: 14px;
}

.cvfs-events-card-title {
	margin: 0 0 10px;
	font-size: 20px;
	line-height: 1.2;
	color: #283271;
	text-decoration: none;
}

.cvfs-events-card-excerpt {
	margin-bottom: 10px;
	font-size: 16px;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cvfs-events-card-type {
	font-size: 16px;
	line-height: 1.3;
}

/* Meta rows with icons */
.cvfs-events-card-date,
.cvfs-events-card-time,
.cvfs-events-card-location {
	position: relative;
	padding-left: 28px;
	color: #283271;
}

.cvfs-events-card-date::before,
.cvfs-events-card-time::before,
.cvfs-events-card-location::before {
	content: "";
	position: absolute;
	left: 0;
	top: 3px;
	width: 16px;
	height: 16px;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
}

.cvfs-events-card-date::before {
	background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23283271" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Crect x="3" y="4" width="18" height="18" rx="2" ry="2"/%3E%3Cline x1="16" y1="2" x2="16" y2="6"/%3E%3Cline x1="8" y1="2" x2="8" y2="6"/%3E%3Cline x1="3" y1="10" x2="21" y2="10"/%3E%3C/svg%3E');
}

.cvfs-events-card-time::before {
	background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23283271" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Ccircle cx="12" cy="12" r="9"/%3E%3Cpolyline points="12,7 12,12 16,14"/%3E%3C/svg%3E');
}

.cvfs-events-card-location::before {
	top: 4px;
	background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23283271" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M21 10c0 7-9 12-9 12S3 17 3 10a9 9 0 1 1 18 0Z"/%3E%3Ccircle cx="12" cy="10" r="3"/%3E%3C/svg%3E');
}

/* =========================================
   Kill global content-link styling on event cards
   (important: this block should come after global link CSS)
========================================= */

.cvfs-events-calendar a.cvfs-events-card,
.cvfs-events-calendar a.cvfs-events-card:link,
.cvfs-events-calendar a.cvfs-events-card:visited,
.cvfs-events-calendar a.cvfs-events-card:hover,
.cvfs-events-calendar a.cvfs-events-card:focus,
.cvfs-events-calendar a.cvfs-events-card:focus-visible,
.cvfs-events-calendar a.cvfs-events-card:active {
	color: inherit !important;
	text-decoration: none !important;
	text-underline-offset: 0 !important;
	text-decoration-thickness: 0 !important;
	outline: none;
}

/* Remove underline on inner text without forcing all colors to inherit */
.cvfs-events-calendar a.cvfs-events-card *,
.cvfs-events-calendar a.cvfs-events-card *:link,
.cvfs-events-calendar a.cvfs-events-card *:visited,
.cvfs-events-calendar a.cvfs-events-card *:hover,
.cvfs-events-calendar a.cvfs-events-card *:focus,
.cvfs-events-calendar a.cvfs-events-card *:focus-visible,
.cvfs-events-calendar a.cvfs-events-card *:active {
	text-decoration: none !important;
	text-underline-offset: 0 !important;
	text-decoration-thickness: 0 !important;
}

/* Preserve intended colors */
.cvfs-events-calendar a.cvfs-events-card .cvfs-events-card-title,
.cvfs-events-calendar a.cvfs-events-card .cvfs-events-card-title:link,
.cvfs-events-calendar a.cvfs-events-card .cvfs-events-card-title:visited,
.cvfs-events-calendar a.cvfs-events-card .cvfs-events-card-title:hover,
.cvfs-events-calendar a.cvfs-events-card .cvfs-events-card-title:focus,
.cvfs-events-calendar a.cvfs-events-card .cvfs-events-card-title:focus-visible,
.cvfs-events-calendar a.cvfs-events-card .cvfs-events-card-title:active {
	color: #283271 !important;
	text-decoration: none !important;
}

.cvfs-events-calendar a.cvfs-events-card .cvfs-events-card-date,
.cvfs-events-calendar a.cvfs-events-card .cvfs-events-card-time,
.cvfs-events-calendar a.cvfs-events-card .cvfs-events-card-location {
	color: #283271 !important;
}

/* Touch devices: don't flash hover/active underline/red while scrolling */
@media (hover: none) and (pointer: coarse) {
	.cvfs-events-calendar a.cvfs-events-card,
	.cvfs-events-calendar a.cvfs-events-card:link,
	.cvfs-events-calendar a.cvfs-events-card:visited,
	.cvfs-events-calendar a.cvfs-events-card:hover,
	.cvfs-events-calendar a.cvfs-events-card:focus,
	.cvfs-events-calendar a.cvfs-events-card:focus-visible,
	.cvfs-events-calendar a.cvfs-events-card:active,
	.cvfs-events-calendar a.cvfs-events-card *,
	.cvfs-events-calendar a.cvfs-events-card *:hover,
	.cvfs-events-calendar a.cvfs-events-card *:focus,
	.cvfs-events-calendar a.cvfs-events-card *:focus-visible,
	.cvfs-events-calendar a.cvfs-events-card *:active {
		text-decoration: none !important;
	}
}

/* =========================================
   Shared card hover effect - desktop only
========================================= */

@media (hover: hover) and (pointer: fine) {
	.cvfs-events-card,
	.cvfs-hover-card,
	.cvfs-events-card:hover,
	.cvfs-hover-card:hover,
	.cvfs-events-card:focus,
	.cvfs-hover-card:focus,
	.cvfs-events-card:active,
	.cvfs-hover-card:active {
		color: inherit;
		text-decoration: none;
	}

	.cvfs-events-card:hover,
	.cvfs-events-card:focus-visible,
	.cvfs-hover-card:hover,
	.cvfs-hover-card:focus-visible {
		border-color: #2F3E8F;
		box-shadow: 0 8px 18px rgba(47, 62, 143, 0.10);
		transform: translateY(-2px);
	}

	.cvfs-events-card:hover .cvfs-events-card-excerpt,
	.cvfs-events-card:focus-visible .cvfs-events-card-excerpt,
	.cvfs-events-card:hover .cvfs-events-card-type,
	.cvfs-events-card:focus-visible .cvfs-events-card-type,
	.cvfs-events-card:hover .cvfs-events-card-meta,
	.cvfs-events-card:focus-visible .cvfs-events-card-meta,
	.cvfs-hover-card:hover h1,
	.cvfs-hover-card:hover h2,
	.cvfs-hover-card:hover h3,
	.cvfs-hover-card:hover h4,
	.cvfs-hover-card:hover h5,
	.cvfs-hover-card:hover h6,
	.cvfs-hover-card:hover p,
	.cvfs-hover-card:hover span,
	.cvfs-hover-card:hover a,
	.cvfs-hover-card:focus-visible h1,
	.cvfs-hover-card:focus-visible h2,
	.cvfs-hover-card:focus-visible h3,
	.cvfs-hover-card:focus-visible h4,
	.cvfs-hover-card:focus-visible h5,
	.cvfs-hover-card:focus-visible h6,
	.cvfs-hover-card:focus-visible p,
	.cvfs-hover-card:focus-visible span,
	.cvfs-hover-card:focus-visible a {
		color: inherit;
	}
}

/* =========================================
   Filters
========================================= */

.cvfs-events-filters {
	margin-bottom: 24px;
}

.cvfs-events-filters-shell {
	position: relative;
	display: inline-block;
	margin-bottom: 24px;
}

.cvfs-events-filters-overlay[hidden] {
	display: none !important;
}

.cvfs-events-filters-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: transparent;
	border: 0;
	padding: 0;
	cursor: pointer;
	font: inherit;
	color: #2F2A2A;
	font-size: 18px;
	line-height: 1.2;
}

.cvfs-events-filters-toggle::after {
	content: "";
	width: 22px;
	height: 22px;
	display: inline-block;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232F2A2A" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpolygon points="22 3 2 3 10 12 10 19 14 21 14 12 22 3"/%3E%3C/svg%3E');
}

.cvfs-events-filters-toggle,
.cvfs-events-filters-toggle:hover,
.cvfs-events-filters-toggle:focus,
.cvfs-events-filters-toggle:active {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	padding: 0 !important;
}

.cvfs-events-filters-toggle,
.cvfs-events-filters-toggle span,
.cvfs-events-filters-toggle:hover,
.cvfs-events-filters-toggle:hover span,
.cvfs-events-filters-toggle:focus,
.cvfs-events-filters-toggle:focus span,
.cvfs-events-filters-toggle:active,
.cvfs-events-filters-toggle:active span {
	color: #2F2A2A !important;
	text-decoration: none !important;
	opacity: 1 !important;
}

.cvfs-events-filters-overlay {
	position: absolute;
	top: calc(100% + 12px);
	left: 0;
	z-index: 999;
	width: min(100vw - 32px, 320px);
	padding: 0;
	background: transparent;
}

.cvfs-events-filters-panel {
	width: 100%;
	max-height: min(70vh, 545px);
	overflow-y: auto;
	background: #f3f3f3;
	padding: 14px 16px 18px;
	box-sizing: border-box;
	border-radius: 0 15px 15px 15px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	border: 1px solid #CCBEC3;
}

.cvfs-events-filters-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.cvfs-events-filters-title {
	font-size: 13px;
	line-height: 1.2;
}

.cvfs-events-filters-close,
.cvfs-events-filters-close:hover,
.cvfs-events-filters-close:focus,
.cvfs-events-filters-close:active {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	padding: 0 !important;
	cursor: pointer;
	font-size: 24px;
	line-height: 1;
	color: #2F2A2A !important;
	text-decoration: none !important;
}

.cvfs-events-filters-row {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: stretch;
}

.cvfs-events-filter-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
}

.cvfs-events-filter-field label,
.cvfs-events-filter-legend {
	font-size: 13px;
	line-height: 1.2;
	margin: 0;
}

.cvfs-events-filter-field input,
.cvfs-events-filter-field select {
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	min-height: 44px;
}

.cvfs-events-type-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	overflow-x: hidden;
}

.cvfs-events-type-option {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	width: 100%;
}

.cvfs-events-type-option span {
	flex: 1;
	min-width: 0;
	line-height: 1.3;
}

.cvfs-events-type-option input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 22px !important;
	height: 22px !important;
	min-height: 22px !important;
	flex: 0 0 22px;
	margin: 0;
	border: 2px solid #4A3A74;
	border-radius: 2px;
	background: transparent;
	display: inline-grid;
	place-content: center;
	cursor: pointer;
}

.cvfs-events-type-option input[type="checkbox"]::before {
	content: "";
	width: 10px;
	height: 10px;
	transform: scale(0);
	transition: transform 0.12s ease-in-out;
	background: #4A3A74;
}

.cvfs-events-type-option input[type="checkbox"]:checked::before {
	transform: scale(1);
}

.cvfs-events-type-option input[type="checkbox"]:focus {
	outline: none;
	box-shadow: none;
}

.cvfs-events-filters-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.cvfs-events-filters-reset,
.cvfs-events-filters-reset:hover,
.cvfs-events-filters-reset:focus,
.cvfs-events-filters-reset:active {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	padding: 0 !important;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	line-height: 1.2;
	color: #2F2A2A !important;
	text-decoration: none !important;
	opacity: 1 !important;
}

.cvfs-events-filters-reset::before {
	content: "";
	width: 14px;
	height: 14px;
	display: inline-block;
	flex: 0 0 14px;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232F2A2A" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M3 12a9 9 0 1 0 3-6.7"/%3E%3Cpath d="M3 3v6h6"/%3E%3C/svg%3E');
}

.cvfs-events-no-results {
	margin: 0 0 24px;
	padding: 14px 16px;
	border: 2px solid #CCBEC3;
	border-radius: 15px 0 15px 0;
	font-size: 16px;
	line-height: 1.4;
}

/* Kept in place to preserve current cascade behavior */
@media (min-width: 768px) {
	.cvfs-events-filters-row {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: end;
	}

	.cvfs-events-filter-search {
		flex: 1 1 100%;
	}
}

/* Responsive settings */

@media (max-width: 767px) {
	.cvfs-events-card-top {
		flex-direction: row;
		align-items: flex-start;
	}

	.cvfs-events-card-image-wrap {
		flex: 0 0 100px;
	}

	.cvfs-events-card-meta {
		flex: 1;
		min-width: 0;
	}
}

@media (min-width: 768px) {
	.cvfs-events-card {
		padding: 20px;
	}

	.cvfs-events-card-top {
		gap: 18px;
	}

	.cvfs-events-card-image-wrap {
		flex: 0 0 140px;
	}

	.cvfs-events-card-image {
		height: 110px;
	}

	.cvfs-events-card-title {
		font-size: 24px;
	}

	.cvfs-events-card-meta {
		font-size: 16px;
	}
}

@media (min-width: 1025px) {
	.cvfs-events-card {
		padding: 24px;
	}

	.cvfs-events-card-top {
		gap: 20px;
	}

	.cvfs-events-card-image-wrap {
		flex: 0 0 180px;
	}

	.cvfs-events-card-image {
		height: 130px;
	}

	.cvfs-events-card-meta {
		font-size: 17px;
		line-height: 1.5;
	}

	.cvfs-events-card-title {
		font-size: 28px;
	}

	.cvfs-events-card-excerpt,
	.cvfs-events-card-type {
		font-size: 18px;
	}
}


/* Logout styling for mitgliedbereich */

.cvfs-logout-link {
    color: #fff;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    text-align: center;
    font-weight: 700;
}


/* Blog featured article wrapper style to hid it when paage is paginated */

body[class*="paged"] .cvfs-featured-latest {
    display: none;
}
