/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/*Menüpunkte im Frontend ausblenden (schwarze Leiste oben)*/
#wpadminbar #wp-admin-bar-plugins, #wp-admin-bar-themes, #wp-admin-bar-widgets, #wp-admin-bar-menus, #wp-admin-bar-user-info display-name {display: none !important;}

/*Barrierefreiheit*/
/*Tastatureingabe*/
@media (min-width:1025px){
*:focus:not(:focus-visible) {outline: none;}
*:focus-visible {outline: 3px !important; outline-style: solid !important; outline-color: var(--mengentext)!important; border-radius: 30px;}
.gb-sub-menu-sm08e2c7 .menu-item a:focus-visible {line-height: 1.2em!important;}
.gb-menu-toggle {-webkit-tap-highlight-color: transparent!important; outline: 0!important;}
.site-info a {padding-inline: 4px;}
}

/*Kein bläulicher Hintergrund beim antippen von links mobil*/
@media (max-width: 768px) {a, .gb-button, .gb-menu-link, .gb-menu-toggle {-webkit-tap-highlight-color: transparent!important;}}

body {overflow-x: hidden;}

/* Styling Navigation */

@media (min-width:1025px) and (max-width: 1350px) {.gb-site-header {padding-block: 10px;}
.gb-menu-toggle {
  height: 3.2rem;
  width: 3.2rem;
	}}

/* Submenu Pfeile größer */ 
@media (max-width: 767px){
.gb-submenu-toggle-icon {
        width: 1.5em !important;
        height: 1.5em !important;
}}
/* END Styling Navi */

/*Footer kein underline*/
.footer-bar .widget_nav_menu a, .site-info a {text-decoration: none;}

table, td, th {
	border: 0px!important;}

/* END Styling Footer */

/*Dinge schräg stellen*/
.rotate {transform: rotate(-25deg);}
.rotate2 {transform: rotate(43deg);}
.rotate3 {transform: rotate(-90deg);}

/* Animation Hover Buttons */

/* Grundzustand für weiche Animation */
.btn-group-wrapper .btn-icon-circle {
    transition: transform 0.3s ease;
}

/* Animation beim Hover über den gesamten Bereich */
.btn-group-wrapper:hover .btn-icon-circle {
    transform: translateX(6px); /* Verschiebt das Icon leicht nach rechts */
    /* Alternativ z. B.: transform: scale(1.1) rotate(15deg); */
}

/* END Animation Buttons */

/*Styling Links im Body*/
a:hover, .gb-text:hover {text-decoration-thickness: 0.13em; text-underline-offset: 0.1em; transition: ease-in-out; transition-duration: 0.2s;}/*END Styling Links*/
.footer-bar .widget_nav_menu a:hover {text-decoration: underline; text-decoration-thickness: 0.13em; text-underline-offset: 0.1em; transition: ease-in-out; transition-duration: 0.2s;}/*Underline Footer on hover*/

/*Back-to-top Styling*/
.generate-back-to-top {
    border-radius: 100%;
	line-height: 38px;
	width: 38px;
	z-index: 99;
	font-size: 1.2rem !important;
	padding-top:3px!important;
	line-height: 34px;
}

/*Back-to-top mobil*/
@media(max-width:768px) {.generate-back-to-top {margin-bottom: -22px; margin-right: -20px;}
	.inside-site-info {padding-left: 0px; padding-right: 26px; padding-bottom: 30px}}	
/*Back-to-top Desktop*/
@media(min-width:769px) {.generate-back-to-top {margin-bottom: -16px; margin-right: -16px;}}

/*Listenpunkte nach links*/
body ul li {margin-left: -32px;}

/* Fade-in Animationen */
/* 1. Startzustand: Alle Animationselemente initial unsichtbar */
.animate-left,
.animate-right,
.animate-up,
.animate-down,
.animate-zoom,
.stagger-container > * {
  opacity: 0;
  will-change: opacity, transform;
}

/* 2. Keyframes */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-400px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(400px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(80px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* 3. Auslöser bei Sichtbarkeit */
.animate-left.is-visible   { animation: fadeInLeft 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-right.is-visible  { animation: fadeInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-up.is-visible     { animation: fadeInUp 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-down.is-visible   { animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-zoom.is-visible   { animation: zoomIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* Stagger-Animation für Container (standardmäßig nach oben gleitend) */
.stagger-container.is-visible > *:nth-child(1) { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.0s forwards; }
.stagger-container.is-visible > *:nth-child(2) { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards; }
.stagger-container.is-visible > *:nth-child(3) { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.30s forwards; }
.stagger-container.is-visible > *:nth-child(4) { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards; }

/* Manuelle Delay-Klassen */
.delay-1 { animation-delay: 0.2s !important; }
.delay-2 { animation-delay: 0.5s !important; }
.delay-3 { animation-delay: 0.8s !important; }

.delay-1-arrow { animation-delay: 0.35s !important; }
.delay-2-arrow { animation-delay: 0.65s !important; }
.delay-3-arrow { animation-delay: 0.95s !important; }

/* Deaktivierung via Manuellem Button (body.reduce-motion) */
body.reduce-motion .animate-left,
body.reduce-motion .animate-right,
body.reduce-motion .animate-up,
body.reduce-motion .animate-down,
body.reduce-motion .animate-zoom,
body.reduce-motion .stagger-container > * {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}


/*CSS Animationen Logo mit Schrift im Kreis*/
@media (max-width: 1024px){
.rotating-logo-wrapper {
  width: 110px;
  height: 110px!important;}
.logo-inner-img {
  width: 60px!important;
  height: 60px!important;}
}/*END Animation*/


/*CSS Animation Marquee*/
/* Äußerer Rahmen */
.marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  display: flex;
  user-select: none;
}

/* Flex-Spur für die Elemente */
.marquee-content {
  display: flex;
  gap: 0.35rem; /* Abstand zwischen den Logos auf Desktop */
  width: max-content;
  will-change: transform;
}

/* Logos vor dem Schrumpfen schützen & Größen definieren */
.marquee-item {
  flex-shrink: 0; /* WICHTIG: Verhindert, dass Logos auf Mobile schrumpfen! */
}

.marquee-item img {
  height: 50px; /* Wunschhöhe auf Desktop */
  width: auto;
  display: block;
}

/* Animationen */
.track-left {
  animation: scroll-left 35s linear infinite; /* Zeit etwas erhöht wegen mehr Logos */
}

.track-right {
  animation: scroll-right 35s linear infinite;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
  0% { transform: translateX(-50%); }
}

/* ANPASSUNGEN FÜR MOBILGERÄTE (Responsive) */
@media (max-width: 768px) {
  .marquee-content {
    gap: 0.2rem; /* Etwas kleinerer Abstand auf Handys */
  }

  .marquee-item img {
    height: 35px; /* Angenehme Höhe auf Handys */
  }
	.track-right {
  animation: scroll-right 25s linear infinite;
}  
}

.marquee-content, .track-left {margin-bottom: 10px;} /* Etwas Abstand zwischen den Reihen */


/* Barrierefreiheit & Hover */
.marquee-wrapper:hover .marquee-content {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-content {
    animation: none !important;
  }
	.rotating-text {
    animation: none !important;
  }
	
		#flieger {
    animation: none !important;
  }
}

/* Wenn der Nutzer manuell per Button auf der Website stoppt */

body.reduce-motion .marquee-content {
  animation: none !important;
}

body.reduce-motion .rotating-text {
  animation: none !important;
}

body.reduce-motion #flieger {
  animation: none !important;
}

.motion-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* Button-Styling Animationen pausieren */

.motion-toggle-btn {border-bottom-left-radius: 50px; border-top-left-radius: 50px;}

.btn-text {font-size: clamp(1.13rem, calc(1.089rem + 0.179vw), 1.38rem);}

/* Standard: Play-Icon verstecken */
.motion-toggle-btn .icon-play {
  display: none;
}

/* Wenn pausiert: Pause-Icon weg, Play-Icon anzeigen */
.motion-toggle-btn[aria-pressed="true"] .icon-pause {
  display: none;
}

.motion-toggle-btn[aria-pressed="true"] .icon-play {
  display: inline-block;
}

.icon-pause {margin-left: -12px;}
.icon-play {margin-left: -15px;}

/* END Barrierefreiheit & Hover */

/*Sanftes Ein- Ausblenden an den Seiten*/
.marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  display: flex;
  user-select: none;

  /* NEU: Weicher Fade-Out an beiden Rändern */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 0%,
    black 100%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 0%,
    black 100%,
    transparent 100%
  );
}
/*END CSS Animation Marquee*/

/*SCROLLBALKEN anpassen*/
/* width */
::-webkit-scrollbar {
  width: 10px;
}
/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey;
  border-radius: 0px;
}
/* Handle */
::-webkit-scrollbar-thumb {
  background: #fff;
  border-radius: 0px;
}
/*Scrollbar Firefox CD-Farbe*/
* {scrollbar-color: var(--tuerkis) var(--beige-hell);}
