/* 
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 */

/* Default = Paar 1, gilt auch im Editor */
:root {
  --bb-accent: #00ffde;
  --bb-on-accent: #232323;
  --bb-button: #f2ff00;
  --bb-on-button: #232323;
}

html[data-bb-pair="2"] {
  --bb-accent: #f2ff00;
  --bb-on-accent: #232323;
  --bb-button: #00ffde;
  --bb-on-button: #232323;
}

html[data-bb-pair="3"] {
  --bb-accent: #00DDFF;
  --bb-on-accent: #232323;
  --bb-button: #FF00DA;
  --bb-on-button: #232323;
}

/* weiteres Paar: html[data-bb-pair="3"] { ... } */

.bb-bg-accent,
.bb-bg-accent.e-con,
.bb-bg-accent > .e-con-inner,
.bb-bg-accent > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-color: var(--bb-accent) !important;
  color: var(--bb-on-accent);
}

.bb-btn .elementor-button {
  background-color: var(--bb-button) !important;
  color: var(--bb-on-button) !important;
  border-color: var(--bb-button) !important;
}

.bb-btn .elementor-button:hover {
  background-color: var(--bb-on-button) !important;
  color: var(--bb-button) !important;
}

.bb-icon .elementor-icon svg,
.bb-icon .elementor-icon-list-icon svg {
  fill: currentColor !important;
  color: var(--bb-accent);
}

.bb-icon .elementor-icon-list-item:hover svg {
  fill: currentColor !important;
  color: var(--bb-accent);
}

.bb-logo {
	color: var(--bb-button);
	line-height: 0;
}

.bb-logo svg {
	fill: currentColor;
	width: 150px;
	height: auto;
	display: block;
}

footer .elementor-widget-text-editor p a:hover {
	color: var(--bb-button) !important;
}


/* Leistungen-Karten (2x2, Hover wie Figma/Cominvi ohne Bildwechsel) */
.bb-service-card {
	background-color: #ffffff !important;
	transition: background-color 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.bb-service-card > .elementor-widget-heading,
.bb-service-card > .elementor-element.elementor-widget-heading {
	margin-top: auto;
}

.bb-service-card:hover,
.bb-service-card:focus-within {
	background-color: var(--bb-button) !important;
}

.bb-service-card .elementor-widget-text-editor {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	margin: 0 !important;
	transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
}

.bb-service-card:hover .elementor-widget-text-editor,
.bb-service-card:focus-within .elementor-widget-text-editor {
	max-height: 12em;
	opacity: 1;
	margin-top: 24px !important;
}

.bb-service-card__icon {
	line-height: 0;
	color: #232323;
}

.bb-service-card__icon svg {
	display: block;
}

@media (max-width: 767px) {
	.bb-service-card {
		min-height: 0 !important;
	}

	.bb-service-card .elementor-widget-text-editor {
		max-height: none;
		font-size: 18px !important;
		line-height: 1.2 !important;
		margin-top: 16px !important;
	}
}

@media (max-width: 1024px) {
  .bb-logo svg {
    width: 110px;
  }
}

@media (max-width: 767px) {
  .bb-logo svg {
    width: 80px;
  }
}

.elementor-widget-n-accordion .e-n-accordion-item[open]>.e-n-accordion-item-title,
.elementor-widget-n-accordion .e-n-accordion-item:not([open]):hover>.e-n-accordion-item-title {
  color: var(--bb-button) !important;
}

.elementor-widget-n-accordion .e-n-accordion-item[open]>.e-n-accordion-item-title .e-n-accordion-item-title-icon span>svg,
.elementor-widget-n-accordion .e-n-accordion-item:not([open]):hover>.e-n-accordion-item-title .e-n-accordion-item-title-icon span>svg {
  fill: var(--bb-button) !important;
}

/* Responsive Fonts */
h1.elementor-heading-title {
	font-size: clamp(2.5rem, 1rem + 4vw, 5rem) !important;
	line-height: 1.05 !important;
}

h2.elementor-heading-title {
	font-size: clamp(2.5rem, 1rem + 4vw, 5rem) !important;
	line-height: 1.05 !important;
}

.datenschutz h2.elementor-heading-title,
.impressum h2.elementor-heading-title {
	font-size: clamp(2.563rem, calc(2.000rem + 1.5vw), 3.500rem) !important;
	line-height: 1.05 !important;
	hyphens: auto;
}

h3.elementor-heading-title {
	font-size: clamp(1.25rem, 0.65rem + 1.6vw, 2.25rem) !important;
	line-height: 1.05 !important;
}

p.elementor-blockquote__content {
	font-size: clamp(1.25rem, 0.65rem + 1.6vw, 2.25rem) !important;
	line-height: 1.05 !important;	
}

.elementor-widget-text-editor p {
	font-size: clamp(1.13rem, 0.9rem + 0.6vw, 1.5rem);
	line-height: 1.3 !important;	
}

.bb-btn span.elementor-button-text {
	font-size: clamp(1.125rem, calc(0.900rem + 0.6vw), 1.500rem);
	line-height: 1.2 !important;	
}

footer h2 a {
	font-size: clamp(1.250rem, calc(-1.000rem + 6vw), 5.000rem) !important;
	line-height: 1.05 !important;
}

.bb-subline {
	font-size: clamp(2.188rem, calc(1.550rem + 1.7vw), 3.250rem) !important;
	line-height: 1.05 !important;
}


.elementor-element-ca28916 {
	display: none !important;
}

/* Nested Carousel: Peek nur Desktop. Offset-Seiten ist nicht responsive. */
@media (max-width: 767px) {
	.elementor-widget-n-carousel {
		--e-n-carousel-swiper-offset-size: 0px !important;
	}
	.elementor-widget-n-carousel .e-n-carousel.offset-right,
	.elementor-widget-n-carousel .e-n-carousel.offset-left,
	.elementor-widget-n-carousel .e-n-carousel.offset-both {
		padding-inline-start: 0 !important;
		padding-inline-end: 0 !important;
	}
	.elementor-element-ca28916 {
		margin-inline-end: 0 !important;
	}
}

/* Nested Carousel: Peek nur Desktop. Offset-Seiten ist nicht responsive. */
@media (max-width: 767px) {
	.elementor-widget-n-carousel {
		--e-n-carousel-swiper-offset-size: 0px !important;
	}

	.elementor-widget-n-carousel .e-n-carousel.offset-right,
	.elementor-widget-n-carousel .e-n-carousel.offset-left,
	.elementor-widget-n-carousel .e-n-carousel.offset-both {
		padding-inline-start: 0 !important;
		padding-inline-end: 0 !important;
	}

	.elementor-element-ca28916 {
		margin-inline-end: 0 !important;
	}
}

/* -------------------------------------------------------------------------
   Custom Cursor
   Werte: --bb-cursor-size, --bb-cursor-color, --bb-cursor-hover-scale, --bb-cursor-hover-ms
   Komplett aus: html.bb-cursor-off  ODER  define('BB_CUSTOM_CURSOR', false) in functions.php
   ------------------------------------------------------------------------- */
:root {
	--bb-cursor-size: 12px;
	--bb-cursor-color: #ffffff;
	--bb-cursor-hover-scale: 3;
	--bb-cursor-hover-ms: 500ms;
}

html.bb-custom-cursor,
html.bb-custom-cursor * {
	cursor: none !important;
}

html.bb-custom-cursor input,
html.bb-custom-cursor textarea,
html.bb-custom-cursor select,
html.bb-custom-cursor [contenteditable="true"] {
	cursor: text !important;
}

.bb-cursor {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 2147483646;
	pointer-events: none;
	mix-blend-mode: difference;
	opacity: 0;
	will-change: transform;
}

.bb-cursor.is-visible {
	opacity: 1;
}

.bb-cursor__dot {
	width: var(--bb-cursor-size);
	height: var(--bb-cursor-size);
	background: var(--bb-cursor-color);
	border-radius: 50%;
	mix-blend-mode: difference;
	transform: translate(-50%, -50%) scale(1);
	transition: transform var(--bb-cursor-hover-ms) cubic-bezier(0.23, 1, 0.32, 1);
}

.bb-cursor.is-hover .bb-cursor__dot {
	transform: translate(-50%, -50%) scale(var(--bb-cursor-hover-scale));
}

html.bb-cursor-off .bb-cursor,
body.bb-cursor-off .bb-cursor {
	display: none !important;
}

html.bb-cursor-off,
html.bb-cursor-off *,
body.bb-cursor-off,
body.bb-cursor-off * {
	cursor: auto !important;
}

@media (max-width: 991px) {
	.bb-cursor {
		display: none !important;
	}

	html.bb-custom-cursor,
	html.bb-custom-cursor * {
		cursor: auto !important;
	}
}

/* -------------------------------------------------------------------------
   Text-Markierung (Marino): Klasse bb-text-reveal am Container,
   Wörter in Elementor fett setzen (strong/b).
   Farbe: --bb-button
   ------------------------------------------------------------------------- */
.bb-text-reveal {
	position: relative;
	z-index: 0;
}

.bb-text-reveal strong,
.bb-text-reveal b {
	display: inline;
	font-weight: inherit;
	color: inherit;
	padding: 0 0.3em 0.12em;
	margin: 0 -0.3em;
	border-radius: 999px;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
	background-image: linear-gradient(var(--bb-button), var(--bb-button));
	background-repeat: no-repeat;
	background-position: left center;
	background-size: 0% 100%;
	transition: background-size 1.2s cubic-bezier(0.4, 0, 0.2, 1);
	transition-delay: var(--reveal-delay, 0s);
	
	position: relative;
	z-index: -1;
}

.bb-text-reveal p {
    font-size: clamp(1.25rem, 0.65rem + 1.6vw, 2.25rem) !important;
    line-height: 1.2 !important;
    font-weight: 500;
}

.bb-text-reveal.is-onscreen strong,
.bb-text-reveal.is-onscreen b {
	background-size: 100% 100%;
}

@media (prefers-reduced-motion: reduce) {
	.bb-text-reveal strong,
	.bb-text-reveal b {
		transition: none;
		background-size: 100% 100%;
	}
}


/* Unterseiten: Nav Pfeile entfernen */
.bb-case-slider__nav {
	display: none;
}
