/* ==========================================================================
   CaviTAU Block Theme - Custom Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   GLOBAL
   -------------------------------------------------------------------------- */
body {
	font-family: "Open Sans", sans-serif;
	overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.cavitau-header {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.cavitau-header .wp-block-navigation a {
	padding: 0 20px;
	line-height: 60px;
	text-transform: uppercase;
	font-size: 16px;
	font-weight: 400;
	color: #333;
	text-decoration: none;
	transition: color 0.2s ease;
}

.cavitau-header .wp-block-navigation a:hover {
	color: #000;
}

.cavitau-lang-switch {
	font-size: 14px;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.cavitau-hero-wrapper {
	position: relative;
}

.cavitau-hero {
	position: relative;
	min-height: 100vh !important;
	display: flex;
	align-items: center;
}

.cavitau-hero-video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
	pointer-events: none;
}

.cavitau-hero .wp-block-cover__background {
	z-index: 1;
}

.cavitau-hero .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
}

.cavitau-hero-list li {
	margin-bottom: 4px;
}

.cavitau-hero-list li::marker {
	color: #58c0ed;
}

/* Wave Dividers */
.cavitau-wave-divider {
	position: relative;
	z-index: 3;
	line-height: 0;
	overflow: hidden;
}

.cavitau-wave-divider svg {
	display: block;
	width: 100%;
	height: 80px;
}

.cavitau-wave-divider--hero {
	margin-top: -80px;
}

.cavitau-wave-divider--stats-top {
	margin-bottom: -1px;
}

.cavitau-wave-divider--stats-bottom {
	margin-top: -1px;
}

/* Scroll Down Arrow */
.cavitau-scroll-down {
	position: absolute;
	bottom: 120px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
}

.cavitau-scroll-down a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	color: #fff;
	font-size: 24px;
	text-decoration: none;
	animation: cavitau-bounce 2s infinite;
}

@keyframes cavitau-bounce {
	0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
	40% { transform: translateY(-12px); }
	60% { transform: translateY(-6px); }
}

/* --------------------------------------------------------------------------
   TESTIMONIALS SLIDER
   -------------------------------------------------------------------------- */
.cavitau-testimonials-section {
	position: relative;
	z-index: 5;
}

.cavitau-testimonials-slider {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
	padding: 32px 16px;
}

.cavitau-testimonial-card {
	background: #fff;
	padding: 24px;
	min-height: 220px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.cavitau-testimonial-quote {
	color: #58c0ed;
	font-size: 32px;
	margin-bottom: 12px;
}

.cavitau-testimonial-text {
	font-size: 14px;
	line-height: 1.6;
	color: #555;
	flex-grow: 1;
	margin-bottom: 16px;
}

.cavitau-testimonial-author {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
}

.cavitau-testimonial-photo {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.cavitau-testimonial-author strong {
	font-size: 14px;
	color: #000;
	display: block;
}

.cavitau-testimonial-author span {
	font-size: 12px;
	color: #999;
}

/* Splide overrides */
.cavitau-testimonials-slider .splide__arrow {
	background: #28348a;
	width: 40px;
	height: 40px;
	opacity: 1;
}

.cavitau-testimonials-slider .splide__arrow svg {
	fill: #fff;
	width: 16px;
	height: 16px;
}

.cavitau-testimonials-slider .splide__arrow--prev {
	left: -8px;
}

.cavitau-testimonials-slider .splide__arrow--next {
	right: -8px;
}

/* --------------------------------------------------------------------------
   INFO GRID
   -------------------------------------------------------------------------- */
.cavitau-info-grid img {
	border-radius: 8px;
}

.cavitau-info-device img {
	max-width: 280px;
	margin: 0 auto;
}

/* --------------------------------------------------------------------------
   HEXAGON ADVANTAGES
   -------------------------------------------------------------------------- */
.cavitau-hexagon-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
}

.cavitau-hexagon-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	width: 205px;
	transition: transform 0.3s ease;
}

.cavitau-hexagon-card:hover {
	transform: translateY(-4px);
}

.cavitau-hexagon {
	width: 205px;
	height: 175px;
	clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
	overflow: hidden;
	background: linear-gradient(135deg, #28348a 0%, #58c0ed 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.cavitau-hexagon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cavitau-hexagon-text {
	font-size: 12px;
	line-height: 1.4;
	color: #555;
	text-align: center;
	margin-top: 12px;
	max-width: 180px;
}

/* --------------------------------------------------------------------------
   STATS COUNTER
   -------------------------------------------------------------------------- */
.cavitau-stats {
	position: relative;
	background-color: #28348a;
	background-image: url('https://cavitau.stagingsphere.de/wp-content/uploads/2021/11/CaviTAU-Geraet-1.png');
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	padding: 80px 40px;
	text-align: center;
}

.cavitau-stats-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(40, 52, 138, 0.85);
}

.cavitau-stats-content {
	position: relative;
	z-index: 2;
	max-width: 1600px;
	margin: 0 auto;
}

.cavitau-stats-heading {
	font-family: "Open Sans", sans-serif;
	font-size: 2rem;
	font-weight: 400;
	letter-spacing: -0.05em;
	color: #fff;
	margin-bottom: 48px;
}

.cavitau-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
}

.cavitau-stat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.cavitau-counter {
	font-family: "Open Sans", sans-serif;
	font-size: 80px;
	font-weight: 700;
	color: #fff;
	line-height: 1;
	margin-bottom: 8px;
}

.cavitau-stat-label {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.8);
	text-align: center;
}

/* --------------------------------------------------------------------------
   FEATURE SECTIONS
   -------------------------------------------------------------------------- */
.cavitau-feature-image img {
	border-radius: 8px;
}

/* --------------------------------------------------------------------------
   ACCORDION
   -------------------------------------------------------------------------- */
.cavitau-accordion-item {
	background: transparent;
}

.cavitau-accordion-item summary {
	font-family: "Open Sans", sans-serif;
	font-size: 16px;
	font-weight: 400;
	color: #000;
	cursor: pointer;
	list-style: none;
	padding: 8px 0;
	transition: color 0.2s ease;
}

.cavitau-accordion-item summary::-webkit-details-marker {
	display: none;
}

.cavitau-accordion-item summary::before {
	content: "+";
	display: inline-block;
	width: 24px;
	font-weight: 700;
	font-size: 18px;
	color: #28348a;
	margin-right: 8px;
}

.cavitau-accordion-item[open] summary::before {
	content: "−";
}

.cavitau-accordion-item summary:hover {
	color: #28348a;
}

/* --------------------------------------------------------------------------
   TABS (Training Section)
   -------------------------------------------------------------------------- */
.cavitau-tabs-nav {
	display: flex;
	border-bottom: 2px solid #e0e0e0;
	margin-bottom: 24px;
}

.cavitau-tab-btn {
	font-family: "Open Sans", sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: #555;
	background: none;
	border: none;
	padding: 12px 24px;
	cursor: pointer;
	position: relative;
	transition: color 0.2s ease;
}

.cavitau-tab-btn:hover {
	color: #28348a;
}

.cavitau-tab-btn.active {
	color: #28348a;
}

.cavitau-tab-btn.active::after {
	content: "";
	position: absolute;
	bottom: -2px;
	left: 0;
	right: 0;
	height: 3px;
	background: #28348a;
}

.cavitau-tab-content {
	display: none;
	padding: 16px 0;
}

.cavitau-tab-content.active {
	display: block;
}

.cavitau-tab-content h4 {
	font-family: "Open Sans", sans-serif;
	font-size: 1.4rem;
	font-weight: 400;
	color: #000;
	margin-bottom: 16px;
}

.cavitau-tab-content p {
	font-size: 16px;
	line-height: 1.75;
	color: #555;
	margin-bottom: 12px;
}

.cavitau-tab-content a {
	color: #009ee2;
	text-decoration: none;
}

.cavitau-tab-content a:hover {
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   CTA BAR
   -------------------------------------------------------------------------- */
.cavitau-cta-bar {
	border-top: 1px solid #333;
}

.cavitau-cta-list li::marker {
	color: #999;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.cavitau-footer-links {
	list-style: none;
}

.cavitau-footer-links li a {
	color: #f3f3f3;
	text-decoration: none;
	transition: color 0.2s ease;
}

.cavitau-footer-links li a:hover {
	color: #009ee2;
}

.cavitau-footer a {
	color: #f3f3f3;
	transition: color 0.2s ease;
}

.cavitau-footer a:hover {
	color: #009ee2;
}

.cavitau-subfooter a {
	color: #fff;
	text-decoration: none;
	transition: color 0.2s ease;
}

.cavitau-subfooter a:hover {
	color: #009ee2;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.cavitau-stats-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 40px;
	}

	.cavitau-counter {
		font-size: 56px;
	}
}

@media (max-width: 768px) {
	.cavitau-hero .wp-block-cover__inner-container h1 {
		font-size: 32px !important;
		letter-spacing: -1.5px !important;
	}

	.cavitau-hero .wp-block-cover__inner-container h2 {
		font-size: 18px !important;
	}

	.cavitau-stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.cavitau-counter {
		font-size: 48px;
	}

	.cavitau-stats {
		background-attachment: scroll;
		padding: 48px 20px;
	}

	.cavitau-tabs-nav {
		flex-direction: column;
	}

	.cavitau-tab-btn {
		text-align: left;
		border-bottom: 1px solid #e0e0e0;
	}

	.cavitau-tab-btn.active::after {
		display: none;
	}

	.cavitau-tab-btn.active {
		background: #f3f3f3;
	}
}

@media (max-width: 480px) {
	.cavitau-stats-grid {
		grid-template-columns: 1fr;
	}

	.cavitau-counter {
		font-size: 40px;
	}

	.cavitau-hexagon-grid {
		gap: 16px;
	}
}
