/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/

.awb-maintenance-heading {
	color: #F9FF0A !important;
}

p {
    margin-bottom: 0 !important;
}
.subheader p {
    margin-top: 0 !important;
}
.speaker_biografie p {
    margin-bottom: 24px !important;
}
.headline_bigger {
    color: #dde20c;
    font-size: 107px;
}
.headline_smaller {
    color: #ffffff;
    font-size: 69px;
}
.hero_banner .fusion-text,
.fusion-button-text {
    white-space: nowrap;
}
.highlight_text {
    color: #dde20c;
}
.footer_links,
.footer_icons,
.kontaktpersonen {
    margin: 0 !important;
}
.off-canvas-close.rocketeer-icon-navigation_close {
	background-color: #F9FF0A !important;
	padding: 10px;
	border-radius: 5px;
}

/*SPEAKER-KARUSSEL & SPEAKER-GRID */
.swiper-button-disabled {
    font-size: 27px !important;
}
.speaker_grid .fusion-filter {
	border: 1px solid #526173;
	border-radius: 5px;
	flex-grow: 1;
	background: #141E38;
	text-align: center;
	gap: 16px;
}
.speaker_grid .fusion-filter.fusion-active,
.speaker_grid .fusion-filter:hover {
	background: #F9FF0A;
	border-color: #F9FF0A;
}
.speaker_grid .fusion-filter:hover {
	transition-property: color,background-color,border-color;
  	transition-duration: .2s;
  	transition-timing-function: linear;
}
.speaker_grid .fusion-filter a {
	padding: 28px 18px;
}
.speaker_grid .fusion-grid-3 {
	padding-right: 30px !important;
}

/* ===== Speaker-Karten: gemeinsame Einstellungen ===== */
.fusion-post-cards.speaker_karten {
  --scale: 1.07;
  --push: calc((var(--scale) - 1) / 2 * 100%);
  --dur: .7s;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* Nur Karussell: Platz schaffen, weil Swiper überstehende Inhalte abschneidet */
.fusion-post-cards.speaker_karussell {
  --room: 40px;   /* oben/unten */
  --side: 20px;   /* links/rechts: Wachstum/Push + Box-Shadow */
  padding: var(--room) var(--side) !important;
}

@media (hover: hover) and (pointer: fine) {

  /* Animation auf allen Karten (Karussell + Grid) */
  .fusion-post-cards.speaker_karten > * > .post-card {
    position: relative;
    transition: scale var(--dur) var(--ease),
                translate var(--dur) var(--ease) !important;
    will-change: scale, translate;
  }

  /* Karte unter dem Mauszeiger: vergrößern */
  .speaker_karten > * > .post-card:hover {
    scale: var(--scale);
    z-index: 2;
  }

  /* Pfeil-Icon und Text leicht nach außen schieben */
  .speaker_karten .speaker_karte_icon,
  .speaker_karten .post-card > .fusion-column-wrapper > .fusion-builder-row-inner {
    transition: translate var(--dur) var(--ease);
  }
  .speaker_karten .post-card:hover .speaker_karte_icon {
    translate: 8px -8px;
  }
  .speaker_karten .post-card:hover > .fusion-column-wrapper > .fusion-builder-row-inner {
    translate: -4px 6px;
  }

  /* Karussell (einreihig): alle Karten links/rechts wegdrücken */
  .speaker_karussell > * > .post-card:has(~ .post-card:hover) {
    translate: calc(-1 * var(--push)) 0;
  }
  .speaker_karussell > * > .post-card:hover ~ .post-card {
    translate: var(--push) 0;
  }
}

/* Grid (mehrreihig, 3 Spalten): alle umliegenden Karten wegdrücken */
@media (hover: hover) and (pointer: fine) and (min-width: 1025px) {

  .speaker_grid > * > .post-card {
    translate: var(--tx, 0px) var(--ty, 0px);
  }

  /* --- Waagerecht: nach Spalte der gehoverten Karte --- */

  /* Spalte 1 gehovert: Spalten 2 + 3 nach rechts */
  .speaker_grid:has(> * > .post-card:nth-child(3n+1):hover) > * > .post-card:is(:nth-child(3n+2), :nth-child(3n)) {
    --tx: var(--push);
  }

  /* Spalte 2 gehovert: Spalte 1 nach links, Spalte 3 nach rechts */
  .speaker_grid:has(> * > .post-card:nth-child(3n+2):hover) > * > .post-card:nth-child(3n+1) {
    --tx: calc(-1 * var(--push));
  }
  .speaker_grid:has(> * > .post-card:nth-child(3n+2):hover) > * > .post-card:nth-child(3n) {
    --tx: var(--push);
  }

  /* Spalte 3 gehovert: Spalten 1 + 2 nach links */
  .speaker_grid:has(> * > .post-card:nth-child(3n):hover) > * > .post-card:is(:nth-child(3n+1), :nth-child(3n+2)) {
    --tx: calc(-1 * var(--push));
  }

  /* --- Senkrecht: Karten davor nach oben, danach nach unten --- */

  .speaker_grid > * > .post-card:has(~ .post-card:hover) {
    --ty: calc(-1 * var(--push));
  }
  .speaker_grid > * > .post-card:hover ~ .post-card {
    --ty: var(--push);
  }

  /* … außer in derselben Reihe: dort keine senkrechte Bewegung */
  .speaker_grid > * > .post-card:has(+ .post-card:not(:nth-child(3n+1)):hover),
  .speaker_grid > * > .post-card:has(+ .post-card + .post-card:nth-child(3n):hover),
  .speaker_grid > * > .post-card:not(:nth-child(3n)):hover + .post-card,
  .speaker_grid > * > .post-card:nth-child(3n+1):hover + .post-card + .post-card {
    --ty: 0px;
  }
}

/* MOBILE-OPTIMIERUNG */
@media screen and (max-width: 640px) {
	#content .fusion-fullwidth {
    	padding-left: 16px;
    	padding-right: 16px;
  	}
	form .fusion-fullwidth {
    	padding-left: 0 !important;
    	padding-right: 0 !important;
  	}
	.headline_bigger {
		font-size: 69px;
	}
	.headline_smaller {
    	font-size: 44px;
	}
	.header_video_datum p {
		font-size: 47px;
	}
	.header_video_subtext_1 p {
		font-size: 34px;
	}
	.header_video_subtext_2 p {
		font-size: 30px;
	}
	.header_video_ort p {
		font-size: 22px;
	}
	.fakten_kachel_titel p {
		font-size: 23px;
	}
	.fakten_kachel_text p {
		font-size: 14px;
	}
	.footer_icons {
		justify-content: center;
	}
}