/*------------------------------------------/
/   Firmen preview floater                  /
/----------------------------------------- */

:root {
    --firmen-floater-top: 250px;
}

.firmen-preview-floater.is-js-sticky {
    position: absolute !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    will-change: transform;
}

.firmen-preview-floater-spacer {
    width: 100%;
}

@media (max-width: 900px) {
    .firmen-preview-floater.is-js-sticky {
        position: static !important;
        transform: none !important;
    }
    .firmen-preview-floater-spacer {
        display: none !important;
    }
}

@media (max-width: 1200px) {
    :root {
        --firmen-floater-top: 80px;
    }
}

@media (max-width: 900px) {
    :root {
        --firmen-floater-top: 64px;
    }
}

/*------------------------------------------/
/   Text-bild slide in animation            /
/----------------------------------------- */

/* Base animation state */
.slide-in-left,
.slide-in-right {
    opacity: 0;
    transform: translateX(0);
    transition:
            transform 1s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.7s ease-out;
    will-change: transform, opacity;
}

/* Off-screen positions – farther out */
.slide-in-left {
    transform: translateX(-120px);
}

.slide-in-right {
    transform: translateX(120px);
}

/* Active / visible */
.slide-in-left.is-visible,
.slide-in-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
    .slide-in-left,
    .slide-in-right {
        transition: none;
        transform: none;
        opacity: 1;
    }
}

/*------------------------------------------/
/   Testimonial bg scroll animation         /
/----------------------------------------- */

:root {
    --testimonial-target-bg: #8ABDFF;
    --testimonial-fade-range: 0.45;
}

/* Ensure positioning */
.testimonial-bg {
    position: relative;
    overflow: hidden;
}

/* Injected overlay element */
.testimonial-bg .testimonial-bg-overlay {
    position: absolute;
    inset: 0;
    background: var(--testimonial-target-bg);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transition: opacity 120ms linear;
	min-width: 100vw;
}

/* Ensure all content is above overlay */
.testimonial-bg > * {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .testimonial-bg .testimonial-bg-overlay {
        transition: none;
    }
}

/*------------------------------------------/
/   Auswahl logo scroll animation   	    /
/----------------------------------------- */

.auswahl-logo-outer {
	display: flex;
    flex-direction: row;
    justify-content: center;
}

.auswahl-logo-container {
	position: relative;
	isolation: isolate;
	aspect-ratio: 1 / 1 !important;
	height: var(--rotator-size);
	overflow: visible;

	/* JS will overwrite this value while scrolling */
	--auswahl-rotate-deg: 325deg;

	/* ✅ Rotator: so groß wie möglich, aber max 1600px */
	--rotator-size: min(1600px, 1800px);

	/* ✅ Inner circle: kleiner als der Rotator (so sieht man ihn dahinter) */
	--circle-scale: 0.35; /* Desktop Look: anpassen nach Geschmack */
	--circle-size: calc(var(--rotator-size) * var(--circle-scale));

	/* optional: zusätzliche Rotator-Skalierung (dein bisheriges Verhalten) */
	--auswahl-rotator-scale: 1.00;
}

/* Rotating background behind the circle */
.auswahl-logo-container::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;

	/* ✅ Bind to rotator max 1600px */
	width: var(--rotator-size);
	height: var(--rotator-size);

	background-image: url('https://schoenweitz.dvlp.studio-horn.de/wp-content/uploads/2026/01/Dreh-Section.png');
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	aspect-ratio: 1 / 1 !important;

	transform:
		translate(-50%, -50%)
		scale(var(--auswahl-rotator-scale))
		rotate(var(--auswahl-rotate-deg));
	transform-origin: 50% 50%;
	will-change: transform;

	z-index: 0;
	pointer-events: none;
}

/* Ensure all real content stays above the rotator */
.auswahl-logo-container > * {
	position: relative;
	z-index: 1;
}

.auswahl-logo-inner {
	z-index: 1;
	aspect-ratio: 1 / 1 !important;
}

.auswahl-logo-text {
	position: absolute;
	z-index: 2;
	left: 50%;
    top: 50%;
    transform: translate(-50%, -490px);
}

/* ✅ Inner circle uses circle-size (not rotator-size) */
.auswahl-circle {
	z-index: 1;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	margin-block-start: 0;

	width: var(--circle-size);
	height: var(--circle-size);

	max-width: 100%;
	max-height: 100%;
	aspect-ratio: 1 / 1 !important;

	border-radius: 50%;
	overflow: hidden;
}

.auswahl-circle-cols {
	width: 100%;
	height: 100%;
	max-width: none;
	margin-left: 0 !important;
	margin-right: 0 !important;

	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
}

.auswahl-circle-cols > .wp-block-column {
	flex: 0 0 50%;
	max-width: 50%;
	width: 50%;
	height: 100%;
	display: flex;
}

.auswahl-circle .wp-block-cover {
	width: 100%;
	height: 100%;
	min-height: 0 !important;
}

.auswahl-circle .wp-block-cover__image-background {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

.auswahl-circle .wp-block-cover__inner-container {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.auswahl-circle {
	.wp-block-button__link:hover {
		background-color: var(--wp--preset--color--sg-darkblue) !important;
		color: #fff!important;
		img {
			display: none;
		}
	}
}

@media (max-width: 767.98px) {
	.auswahl-logo-container {
		height: 950px;
		--circle-scale: 0.3;
		
		background-image: url('https://schoenweitz.dvlp.studio-horn.de/wp-content/uploads/2026/02/wheel-bg-white.svg');
		background-size: 947px;
		background-position: center;
		background-repeat: no-repeat;
	}
	
	.auswahl-logo-container::after  {
		display: none;
	}
	
	.auswahl-logo-text {
		transform: translate(-50%, -440px);
	}
	
	.auswahl-circle {
		overflow: visible;
	}
	
	.auswahl-circle-cols {
		flex-direction: column !important;
		flex-wrap: nowrap !important;
		align-items: stretch !important;
		justify-content: stretch !important;
		height: 100% !important;
	}

	.auswahl-circle-cols > .wp-block-column {
		flex: 0 0 50% !important;
		max-width: 100% !important;
		width: 100% !important;
		height: 50% !important;
		flex-basis: 50%!important;
		
		margin: 0 !important;
	}

	.auswahl-circle .wp-block-cover {
		height: 100% !important;
		min-height: 0 !important;
		aspect-ratio: unset !important;
		overflow: visible
	}
	
	.auswahl-circle .wp-block-cover img {
		display: none;
	}
	
	.auswahl-circle .circle-col-1 {
		background-image: url('https://schoenweitz.dvlp.studio-horn.de/wp-content/uploads/2026/02/circle-mobile-top.png');
		background-position: center;
		background-size: contain;
		background-repeat: no-repeat;
	}
	
	.auswahl-circle .circle-col-2 {
		background-image: url('https://schoenweitz.dvlp.studio-horn.de/wp-content/uploads/2026/02/circle-mobile-bottom.png');
		background-position: center;
		background-size: contain;
		background-repeat: no-repeat;
		overflow: visible;
	}
	
	.auswahl-circle .wp-block-button {
		margin-bottom: -170px!important;
		z-index: 2;
	}
	
	.auswahl-circle .circle-col-2 .wp-block-button {
		margin-bottom: -245px !important;
	}
	
	.auswahl-circle .wp-block-button__link {
		padding: 11px 16px;
	}
	
	.auswahl-circle .wp-block-cover__image-background {
		width: 100% !important;
		height: 100% !important;
		object-fit: cover !important;
	}

	.auswahl-circle .wp-block-cover__inner-container {
		height: 100% !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
}

@media (max-width: 575.98px) {
	.auswahl-logo-container {
		--circle-scale: 0.2;
		
		height: 750px;
        background-image: url(https://schoenweitz.dvlp.studio-horn.de/wp-content/uploads/2026/02/wheel-bg-white.svg);
        background-size: 750px;
	}
	.auswahl-logo-text {
        transform: translate(-50%, -389px);
		padding-left: 2rem;
    	padding-right: 2rem;
    }
	
	.auswahl-circle .wp-block-button {
		margin-bottom: -100px !important;
		z-index: 2;
	}
	
	.auswahl-circle .circle-col-2 .wp-block-button {
		margin-bottom: -150px !important;
	}
}

/* -----------------------------
   Responsive tuning
------------------------------ */
/*
@media (max-width: 1024px) {
	.auswahl-logo-container {
		--circle-scale: 0.92;
		--auswahl-rotator-scale: 1.00;
	}
}

@media (max-width: 782px) {
	.auswahl-logo-container {
		--circle-scale: 0.95;
		--auswahl-rotator-scale: 1.00;
	}
}

@media (min-width: 1600px) {
	.auswahl-logo-container {
		--circle-scale: 0.86;
	}
}
*/


/* -----------------------------
   Map styling
------------------------------ */
.sh-map {
  width: 100%;
}

.sh-map__stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
}

.sh-map__image {
  display: block;
  width: 100%;
  height: auto;
}

/* Marker */
.sh-map__marker {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 3;

  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;

  width: 95px;
  height: 40px;
  border-radius: 999px;

  display: grid;
  place-items: center;

}
/*
.sh-map__marker::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  background: rgba(255,255,255,0.70);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: -1;
}
*/

.sh-map__marker:hover {
  transform: translate(-50%, -50%) scale(1.03);
}

.sh-map__marker:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

.sh-map__marker-logo {
  width: 95px;
  height: 40px;
  object-fit: contain;
  display: block;
}

/* Overlay + Card */
.sh-map__overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.sh-map__overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Card centered on image */
.sh-map__card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60%;
  transform: translate(-50%, -50%);

  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.25);
  overflow: hidden;
}

.sh-map__close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;

  border: 0;
  background: rgba(255,255,255,0.9);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.sh-map__card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
}

.sh-map__card-media {
  position: relative;
  background: #f3f3f3;
  border-radius: 18px;
}

.sh-map__card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sh-map__card-content {
  padding: 28px 26px;
}

.sh-map__card-brand {
  margin-bottom: 12px;
}

.sh-map__card-logo {
  height: auto;
  width: 120px;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.sh-map__card-title {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.1;
  display: none;
}

.sh-map__card-subtitle {
  margin: 0 0 18px;
  font-size: 25px;
  line-height: 1.25;
}

.sh-map__card-meta {
  margin: 0 0 18px;
  font-size: 15px;
}

.sh-map__card-line {
  margin: 0 0 8px;
}

.sh-map__card-actions {
  margin: 0;
}

.sh-map__card-link {
  display: none;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  background: var(--);
  color: #fff;
}

.sh-map__card-link:hover {
  filter: brightness(1.05);
}

/* Responsive */
@media (max-width: 800px) {
  .sh-map__marker {
    width: 54px;
    height: 54px;
  }
  .sh-map__marker-logo {
    width: 40px;
    height: 40px;
  }

  .sh-map__card-grid {
    grid-template-columns: 1fr;
  }

  .sh-map__card-media {
    height: 220px;
  }

  .sh-map__card-title {
    font-size: 24px;
  }
}

@media (max-width: 575.98px) {
	.section-padding-remover {
		padding-left: 0!important;
		padding-right: 0!important;
	}
}