/* Grundlegendes Styling für swiper */
.swiper {
  padding-bottom: 40px;
}

/* Styling-Anpassung für die Swiper-Pfeile (optional) */
.swiper-button-next, .swiper-button-prev {
  color: #007aff;
}

/* prodboxen für swipe slider Start ############################################## */
.swiper-slide p { /* Passe den Selektor an dein Text-Element an */
    word-break: normal !important;
    overflow-wrap: normal !important;
    white-space: normal !important;
	hyphens: auto;
}


/* ==========================================================================
   GLOBALER BEREICH & ALLGEMEINES STYLING
   ========================================================================== */

/* ==========================================================================
   1. GLOBAL (Gilt für Desktop & große Bildschirme)
   ========================================================================== */

/* Basis-Design für deine Buttons */
.my-swiper-nav-btn {
  position: absolute !important;
  border: none !important;
  background-color: transparent !important;
  background-image: url('../images/icons_tio26/pfeil_tio_swiper_nav_pfeil.svg') !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  width: 60px !important;  
  height: 60px !important; 
  cursor: pointer !important;
  z-index: 999 !important; /* Setzt die Pfeile sicher über die Textinhalte */
  padding: 0 !important;
  top: 40% !important; /* Setzt sie exakt ins obere Drittel auf die Kartenkörper */
}

/* Der Haupt-Wrapper bleibt der Bezugspunkt */
div#swiper-section-2.swiper-custom-wrapper,
div#swiper-section-2b.swiper-custom-wrapper,
div#swiper-section-2c.swiper-custom-wrapper,
div#swiper-section-2d.swiper-custom-wrapper,

div#swiper-section-1.swiper-custom-wrapper,div#swiper-section-1b.swiper-custom-wrapper
{
  position: relative !important;
}

/* LINKER BUTTON (Desktop): 
   Wir setzen ihn auf 0, damit er exakt am linken Rand der ersten Karte bündig anliegt */
div#swiper-section-2.swiper-custom-wrapper button#section-2-prev,
div#swiper-section-2b.swiper-custom-wrapper button#section-2b-prev,
div#swiper-section-2c.swiper-custom-wrapper button#section-2c-prev,
div#swiper-section-2d.swiper-custom-wrapper button#section-2d-prev,
div#swiper-section-1.swiper-custom-wrapper button#section-1-prev,div#swiper-section-1b.swiper-custom-wrapper button#section-1b-prev {
  left: -79px !important; 
  right: auto !important;
}

/* RECHTER BUTTON (Desktop): 
   Wir setzen ihn auf 0, damit er exakt am rechten Rand der vierten Karte bündig anliegt */
div#swiper-section-2.swiper-custom-wrapper button#section-2-next,
div#swiper-section-2b.swiper-custom-wrapper button#section-2b-next,
div#swiper-section-2c.swiper-custom-wrapper button#section-2c-next,
div#swiper-section-2d.swiper-custom-wrapper button#section-2d-next,
div#swiper-section-1.swiper-custom-wrapper button#section-1-next,div#swiper-section-1b.swiper-custom-wrapper button#section-1b-next {
  right: -79px !important; 
  left: auto !important;
  transform: rotate(180deg) !important; /* Dreht das SVG um 180 Grad */
}



/* ==========================================================================
   2. MEDIA-QUERY (NUR für kleinere Bildschirme bis 990px)
   ========================================================================== */
@media (max-width: 990px) {

  /* Kein blockierendes Seiten-Padding, damit die Boxen die vollen 720px nutzen */
  	div#swiper-section-2.swiper-custom-wrapper,
	div#swiper-section-2b.swiper-custom-wrapper,	
	div#swiper-section-2c.swiper-custom-wrapper,
	div#swiper-section-2d.swiper-custom-wrapper
	{
    padding-left: 0px !important;
    padding-right: 0px !important;
    box-sizing: border-box !important;
  }

  div#swiper-section-2.swiper-custom-wrapper .swiper,
	div#swiper-section-2b.swiper-custom-wrapper .swiper,
	div#swiper-section-2c.swiper-custom-wrapper .swiper,
	div#swiper-section-2d.swiper-custom-wrapper .swiper
	{
    padding-bottom: 85px !important; /* Platz für deine lila Bullets */
    overflow: hidden !important;
    width: 100% !important;
		
  }

  /* FIXED: Wir schieben die Pfeile nach LINKS und RECHTS AUSSEN in den gelben Bereich.
     Da der übergeordnete Container auf 720px begrenzt ist, rücken sie durch den 
     negativen Wert perfekt aus dem Textfeld heraus. */
  div#swiper-section-2.swiper-custom-wrapper button#section-2-prev,
	div#swiper-section-2b.swiper-custom-wrapper button#section-2b-prev,
	div#swiper-section-2c.swiper-custom-wrapper button#section-2c-prev,
	div#swiper-section-2d.swiper-custom-wrapper button#section-2d-prev
	{
    left: -38px !important; /* Wandert nach links in den freien Raum */
    right: auto !important;
  }

  div#swiper-section-2.swiper-custom-wrapper button#section-2-next,
	div#swiper-section-2b.swiper-custom-wrapper button#section-2b-next,
	div#swiper-section-2c.swiper-custom-wrapper button#section-2c-next,
	div#swiper-section-2d.swiper-custom-wrapper button#section-2d-next
	{
    right: -32px !important; /* Wandert nach rechts in den freien Raum */
    left: auto !important;
  }

  /* Die lila Punkte unten sauber zentrieren */
  div#swiper-section-2.swiper-custom-wrapper .swiper-pagination,
	div#swiper-section-2b.swiper-custom-wrapper .swiper-pagination,
	div#swiper-section-2c.swiper-custom-wrapper .swiper-pagination,
	div#swiper-section-2d.swiper-custom-wrapper .swiper-pagination
	
	{
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    position: absolute !important;
  }
}



/* ==========================================================================
   INAKTIV-STATUS (Leichte Transparenz am Anfang und Ende des Sliders)
   ========================================================================== */
.my-swiper-nav-btn.swiper-button-disabled {
  opacity: 0.35 !important;       /* Macht den inaktiven Pfeil leicht transparent (35% Sichtbarkeit) */
  cursor: default !important;     /* Ändert den Zeiger von der Klick-Hand zum normalen Pfeil */
  pointer-events: none !important; /* Deaktiviert die Klick-Funktion komplett, wenn inaktiv */
}












/* KORREKTUR: Verhindert, dass Slides links und rechts aus der Website herausragen */
.swiper-custom-wrapper .swiper {
  overflow: hidden !important;
  position: relative;
  /* 4px Platz für Schatten/Ränder schaffen */
  padding-left: 4px !important;
  padding-right: 4px !important;
  
  /* NEU: Fester Platz nach unten, damit die Punkte auf Desktop UND Mobile tiefer rutschen */
  padding-bottom: 10px !important; 
  
  /* Den Platz ausgleichen, damit es bündig mit dem Bootstrap-Layout bleibt */
  margin-left: -4px !important;
  margin-right: -4px !important;
}

/* Zwingt die Boxen, in der Reihe dieselbe Gesamthöhe anzunehmen */
.swiper-custom-wrapper .swiper-slide {
  height: auto !important;
  display: flex !important;
}

/* Die Karte füllt den Slide einfach voll aus */
.swiper-custom-wrapper .swiper-slide .card {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.swiper-custom-wrapper .align-grid-card {
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  width: 100% !important;
}

.swiper-custom-wrapper .content-0,
.swiper-custom-wrapper .content-1,
.swiper-custom-wrapper .content-2,
.swiper-custom-wrapper .content-3,
.swiper-custom-wrapper .content-4,
.swiper-custom-wrapper .content-5,
.swiper-custom-wrapper .content-6{
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
}

/* Blendet Pfeile und Punkte komplett aus, wenn nicht genug Slides vorhanden sind */
.swiper-button-lock, 
.swiper-pagination-lock {
  display: none !important;
}

/* Grundstyling für ALLE Punkte / Bullets (inaktiv) */
.swiper-custom-wrapper .swiper-pagination-bullet {
  width: 28px !important;            /* Breite des Kreises */
  height: 28px !important;           /* Höhe des Kreises */
  background: transparent !important; /* Innen transparent */
  border: 1.5px solid #000 !important; /* Lila Kontur/Rand */
  opacity: 1 !important;             /* Volle Deckkraft für die Kontur */
  margin: 0 6px !important;          /* Abstand zwischen den Punkten */
  transition: all 0.3s ease;
}

/* Styling für den AKTIVEN Punkt */
.swiper-custom-wrapper .swiper-pagination-bullet-active {
  background: #000 !important;    /* Komplett lila ausgefüllt */
}

/* KORREKTUR: Einheitliche, feste Positionierung für die Punkte am unteren Rand des Containers */
.swiper-custom-wrapper .swiper-pagination {
  position: absolute !important;
  bottom: 10px !important;           /* Fixiert die Punkte starr ganz unten */
  left: 50% !important;
  transform: translateX(-50%) !important;
  /*display: block !important; */
  text-align: center !important;
  width: 100% !important;
  z-index: 10 !important;
}


/* ==========================================================================
   1. DESKTOP BEREICH (ab 990px) - REVOLUTIONÄR VEREINFACHT & DYNAMISCH
   ========================================================================== */
@media (min-width: 990px) {
  /* GILT FÜR ALLE SWIPER: Begrenzt den Hauptcontainer starr auf das Bootstrap-Zentriermaß */
  .swiper-custom-wrapper .swiper {
    max-width: 1564px !important; /* Dein Wunschwert */
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: hidden !important;
  }
	.tio_produkte .tioprodukctswiper.swiper-custom-wrapper .swiper{padding-top: 24px !important} 

  /* AUTOMATISIERT FÜR ALLE FOLGENDEN SWIPER: Erlaubt das standardmäßige Gleiten linksbündig */
  .swiper-custom-wrapper .swiper-wrapper {
    display: flex !important;
    justify-content: flex-start !important; 
    width: auto !important;
    padding-top: 2px;
  }

  /* GILT FÜR ALLE SWIPER: Entfernt den Abstand nach der letzten Box für perfekte Symmetrie */
  /*
	.swiper-custom-wrapper .swiper-slide:last-child {
    margin-right: 0 !important;
  }
*/
  /* GILT FÜR ALLE STANDARD-SWIPER: Abstand für die Punkte unten einrichten */
  .swiper-custom-wrapper .swiper-pagination {
    position: relative !important;
    margin-top:60px !important;
  }

  /* GILT FÜR ALLE SWIPER: Wenn nicht genug Boxen da sind, blendet Swiper Pfeile/Punkte automatisch aus! */
  .swiper-button-lock,
  .swiper-pagination-lock {
    display: none !important;
  }

  /* AUTOMATISIERT FÜR ALLE FOLGENDEN SWIPER: Der Fokus-Schutz blendet Boxen außerhalb des Fensters aus */
  .swiper-custom-wrapper:not(#swiper-section-1) .swiper-slide,.swiper-custom-wrapper:not(#swiper-section-1b) .swiper-slide {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  /* Schaltet exakt die sichtbaren Boxen bei allen anderen dynamischen Swipern aktiv */
  .swiper-custom-wrapper:not(#swiper-section-1) .swiper-slide-visible,.swiper-custom-wrapper:not(#swiper-section-1b) .swiper-slide-visible {
    opacity: 1 !important;
    visibility: visible !important;
  }	

  /* ==========================================================================
     AUSNAHME 1: Sektion 1 (Starr eingefroren & zentriert)
     ========================================================================== */
  
  /* Zwingt den Wrapper von Sektion 1 starr in die Mitte */
  #swiper-section-1 .swiper-wrapper,#swiper-section-1b .swiper-wrapper {
    justify-content: center !important; 
    width: 100% !important;
    transform: none !important; /* Verhindert, dass Swiper die Boxen nach links wegdrückt */
  }

  /* In Sektion 1 stehen alle Boxen vollflächig, sichtbar und klickbar im Raster */
  #swiper-section-1 .swiper-slide,#swiper-section-1b .swiper-slide {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important; /* Links voll klickbar, blockiert das Wischen */
  }

  /* Blendet die Pfeile und Punkte dauerhaft und exklusiv nur für Sektion 1 aus */
  #swiper-section-1 .swiper-button-next,
  #swiper-section-1 .swiper-button-prev,
  #swiper-section-1 .swiper-pagination,
	 #swiper-section-1b .swiper-button-next,
  #swiper-section-1b .swiper-button-prev,
  #swiper-section-1b .swiper-pagination
	{
    display: none !important;
  }
}

/* ==========================================================================
   AUSNAHME 2: Feste Pixelbreite NUR für Sektion 2 (Ab 1400px aufwärts)
   ========================================================================== */
@media (min-width: 1400px) {
  /* Zwingt die 4 Boxen von Sektion 2 starr auf die feste Pixelbreite, 
     ohne das elastische Mitwachsen der Folgesektionen zu beeinflussen! */
  #swiper-section-2 .swiper-slide,
	#swiper-section-2b .swiper-slide,
	#swiper-section-2c .swiper-slide,
	#swiper-section-2d .swiper-slide
	{
    width: 369.5px !important;    /* Deine perfekte, feste 4er-Rasterbreite */
    margin-right: 24px !important; /* Behält den Abstand bei */
    flex-shrink: 0 !important;     /* Verhindert jegliches Schrumpfen */
  }

  /* Der vierte sichtbare Slide verliert seinen Abstand nach rechts für die Symmetrie */
  /*
	#swiper-section-2 .swiper-slide:nth-child(4n) {
    margin-right: 0 !important;
  }
	*/
}



/* ==========================================================================
   STUFENWEISE BREITEN-ANPASSUNG (KORREKTUR: JETZT EXKLUSIV NUR FÜR SEKTION 1)
   ========================================================================== */

/* STUFE A: MITTLERER BEREICH / LAPTOPS (Exakt von 992px bis 1199.98px) */
@media (min-width: 768px) and (max-width: 989.99px) {
	.tio_produkte.container{max-width: 722px}
  .tiotvswiper .swiper-slide {
    width: 335.5px !important;       
    margin-right: 15px !important; 
    margin-left: 0 !important;
    flex-shrink: 0 !important;     
  }
	.tioprodukctswiper .swiper-slide {
    width: 334px !important;       
		/*
    margin-right: 16.5px !important; 
    margin-left: 0 !important;
		*/
    flex-shrink: 0 !important;     
  }
	/*
	.mehrboxswiper .swiper-slide {
    width: 340px !important;       
    margin-right: 0px !important; 
    margin-left: 0 !important;
    flex-shrink: 0 !important;     
  }
	*/
	
	
}

@media (min-width: 990px) and (max-width: 1199.99px) {
	.my-swiper-nav-btn{height: 36px !important; width: 36px !important}
	 div#swiper-section-2.swiper-custom-wrapper button#section-2-prev,
	div#swiper-section-2b.swiper-custom-wrapper button#section-2b-prev,
	div#swiper-section-2c.swiper-custom-wrapper button#section-2c-prev,
	div#swiper-section-2d.swiper-custom-wrapper button#section-2d-prev
	{
    left: -23px !important; /* Wandert nach links in den freien Raum */
    right: auto !important;
  }

  div#swiper-section-2.swiper-custom-wrapper button#section-2-next,
	div#swiper-section-2b.swiper-custom-wrapper button#section-2b-next,
	div#swiper-section-2c.swiper-custom-wrapper button#section-2c-next,
	div#swiper-section-2d.swiper-custom-wrapper button#section-2d-next
	{
    right: -23px !important; /* Wandert nach rechts in den freien Raum */
    left: auto !important;
  }
	
  .tiotvswiper .swiper-slide {
    width: 299px !important;      
    margin-right: 7px !important; 
    margin-left: 0px !important;
    flex-shrink: 0 !important;
  }
	.tioprodukctswiper .swiper-slide {
    width: 312px !important;       
		/*
    margin-right: 6px !important; 
    margin-left: 3px !important;
		*/
    flex-shrink: 0 !important;
  }
	/*
	.standardswiper .swiper-slide {
    width: 304.1px !important;       
    margin-right: 10px !important; 
    margin-left: 0px !important;
    flex-shrink: 0 !important;
  }
	*/
}
@media (min-width: 1200px) and (max-width: 1399.99px) {
	.tiotvswiper .swiper-slide {
    width: 370.4px !important;
    margin-right: 5px !important; 
    margin-left: 5px !important;
    flex-shrink: 0 !important;     
  }
	.tioprodukctswiper .swiper-slide {
    width: 370.4px !important;
    margin-right: 10px !important; 
    margin-left: 5px !important;
    flex-shrink: 0 !important;     
  }
}
/* STUFE A: MITTLERER BEREICH / LAPTOPS (Exakt von 1200px bis 1399.98px) */
@media (min-width: 1400px) and (max-width: 1549.99px) {
  .tiotvswiper .swiper-slide {
    width: 363.5px !important;       
    margin-right: 5px !important; 
    margin-left: 5px !important;
    flex-shrink: 0 !important;     
  }
}

/* STUFE B: GROSSE MONITORE (Ab 1400px aufwärts) */
@media (min-width: 1550px) {
  .tiotvswiper .swiper-slide {
    width: 370px !important;       
    margin-right: 25px !important; 
    margin-left: 0px !important; 
    flex-shrink: 0 !important;     
  }
	.tiotvswiper .swiper-slide:last-of-type{margin-right: 0px !important;}
}

/* ==========================================================================
   NEU: STARRE PIXEL-DECKELUNG FÜR SEKTION 2 (Ab 1400px aufwärts)
   ========================================================================== */
@media (min-width:990px) and (max-width: 1199.99px) {
	.tioproduktswiper .swiper-slide { width: 220px !important; 
	 margin-right: 15px !important; /* Behält den perfekten Abstand bei */
    flex-shrink: 0 !important;     /* Verhindert jegliches Stauchen oder Schrumpfen */
	}
}
@media (min-width: 1200px) and (max-width: 1399.99px) {
	.tioproduktswiper .swiper-slide { width: 264.5px !important; 
	 margin-right: 15px !important; /* Behält den perfekten Abstand bei */
    flex-shrink: 0 !important;     /* Verhindert jegliches Stauchen oder Schrumpfen */
	}
}
@media (min-width: 1400px) and (max-width: 1549.99px) {
	.tioproduktswiper .swiper-slide { width: 323.5px !important; 
	 margin-right: 15px !important; /* Behält den perfekten Abstand bei */
    flex-shrink: 0 !important;     /* Verhindert jegliches Stauchen oder Schrumpfen */
	}
}
@media (min-width: 1550px) {
  /* Wir hebeln Swipers elastische Prozentberechnung aus und nageln die 4 
     Boxen auf die exakte Pixelbreite fest, die sie im 1550px-Container haben. */
  .tioproduktswiper .swiper-slide {
    width: 366px !important;    /* Exakte, starre 4er-Rasterbreite */
    margin-right: 25px !important; /* Behält den perfekten Abstand bei */
    flex-shrink: 0 !important;     /* Verhindert jegliches Stauchen oder Schrumpfen */
  }

  /* Der letzte sichtbare Slide verliert seinen Abstand nach rechts für die Symmetrie */
  .tioproduktswiper .swiper-slide:nth-child(4n) {
   /* margin-right: 0 !important; */
  }
}

/* ==========================================================================
   2. MOBILE BEREICH (Smartphones unter 768px) - FINALE HARMONISIERUNG
   ========================================================================== */
@media (max-width: 767px) {
	.swiper-custom-wrapper .swiper-pagination-bullet{width: 20px !important; height: 20px !important}
  /* Blendet die Navigationspfeile auf Mobilgeräten aus */
  .swiper-custom-wrapper .swiper-button-next,
  .swiper-custom-wrapper .swiper-button-prev {
    display: none !important;
  }

  html, body {
    max-width: 100% !important;
    overflow-x: clip !important; 
  }

  .swiper-custom-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
  }

  /* KORREKTUR: Kein Padding mehr auf dem Swiper! Das hat die JS-Mathe zerstört. */
  .swiper-custom-wrapper .swiper,
  .swiper-custom-wrapper .featureSwiper,
  .swiper {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin-bottom: 20px !important;
    padding-left: 0 !important; 
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden !important; 
    box-sizing: border-box !important;
  }

  .swiper-custom-wrapper .swiper-wrapper,
  .swiper-wrapper {
    align-items: flex-start !important;
    display: flex !important;
  }

  /* KORREKTUR: Die Slides überlassen die Breitenberechnung jetzt wieder zu 100% dem JS,
     damit slidesPerView: 'auto' und die Punkte perfekt aufgehen! */
  .swiper-custom-wrapper .swiper-slide,
  .swiper-slide {
    height: auto !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    touch-action: pan-y !important; 
	padding-left: 5px !important;
  padding-right: 5px !important;
  }

  /* Stellt die originale Flex-Struktur im Inneren der Tarife wieder her */
  .swiper-custom-wrapper .swiper-slide .card {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;        
    min-height: 0 !important;  
	   
  }

  .swiper-custom-wrapper .align-grid-card {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    /*padding-bottom: 0.5rem !important; */
  }

  /* Die Punkte hängen sich über das Flex-Layout nun dynamisch an das Ende */
  .swiper-custom-wrapper .swiper-pagination {
    position: relative !important; 
    order: 2 !important;           
    bottom: auto !important;       
    left: auto !important;
    transform: none !important;
    margin-top: 25px !important;   
    padding-bottom: 10px !important;
    display: block !important;
    text-align: center !important;
    width: 100% !important;
  }

  .swiper-custom-wrapper .content-0,
  .swiper-custom-wrapper .content-1,
  .swiper-custom-wrapper .content-2,
  .swiper-custom-wrapper .content-3,
  .swiper-custom-wrapper .content-4,
  .swiper-custom-wrapper .content-5,
	.swiper-custom-wrapper .content-6
	{
    height: auto !important;
    flex-grow: 0 !important;
    flex-shrink: 1 !important;
  }
	
	
	.my-swiper-nav-btn{display: none !important}
}


.swiper-button-next::after, .swiper-button-prev::after{content: '' !important}
.swiper-button-prev{
	background-image: url('../images/icons_tio26/pfeil_tio_swiper_nav_pfeil.svg') !important;
	width: 44px !important;height: 44px !important;left: 1px !important
}
.swiper-button-next{
	background-image: url('../images/icons_tio26/pfeil_tio_swiper_nav_pfeil_rechts.svg') !important;
	width: 44px !important;height: 44px !important; right: 1px
}
