/*
 * jQuery FlexSlider v2.7.2
 * https://www.woocommerce.com/flexslider/
 *
 * Copyright 2012 WooThemes
 * Free to use under the GPLv2 and later license.
 * http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Contributing author: Tyler Smith (@mbmufffin)
 *
 */
/* ====================================================================================================================
 * FONT-FACE
 * ====================================================================================================================*/
@font-face {
  font-family: 'flexslider-icon';
  src: url('fonts/flexslider-icon.eot');
  src: url('fonts/flexslider-icon.eot?#iefix') format('embedded-opentype'), url('fonts/flexslider-icon.woff') format('woff'), url('fonts/flexslider-icon.ttf') format('truetype'), url('fonts/flexslider-icon.svg#flexslider-icon') format('svg');
  font-weight: normal;
  font-style: normal;
}
/* ====================================================================================================================
 * RESETS
 * ====================================================================================================================*/
.flex-container a:hover,
.flex-slider a:hover {
  outline: none;
}
.slides,
.slides > li,
.flex-control-nav,
.flex-direction-nav {
  margin: 0;
  padding: 0;
  list-style: none;
}
.flex-pauseplay span {
  text-transform: capitalize;
}
/* ====================================================================================================================
 * BASE STYLES & DEFAULT THEME (KOMPLETT BEREINIGT UND ZUSAMMENGEFASST)
 * ====================================================================================================================*/

/* 1. Haupt-Container: Zwingt den Slider in das exakte 4:1 Querformat mit Rahmen und runden Ecken */
.flexslider {
    position: relative;
    max-width: 100%;
    width: 100% !important;
    aspect-ratio: 4 / 1 !important;    /* Garantiert die perfekten 4:1 Proportionen */
    overflow: hidden !important;
    background: #ffffff !important;
    margin: 31px 0 !important;
    border: 1px solid var(--flidablau);
    border-radius: 6px;
    -webkit-border-radius: 6px;
    zoom: 1;
}

/* 2. Die Listen-Ebenen des Sliders */
.flexslider .slides > li {
    display: none;
    -webkit-backface-visibility: hidden;
}

/* 3. Zwingt die inneren Ebenen auf die volle Sliderhöhe */
.flexslider .flex-viewport,
.flexslider .slides,
.flexslider .slides > li,
.flexslider .slides .slide-grid {
    height: 100% !important;
    box-sizing: border-box !important;
}

/* 4. Schaltet Grid & Flexbox aus – wir nutzen das stabile Block-Verhalten */
.flexslider .slides .slide-grid {
    display: block !important;
    padding: 2.5% !important;
    position: relative !important;
}

/* 5. Das Bild schwimmt links und nimmt exakt 25% Breite ein */
.flexslider .slides img {
    float: left !important;
    display: block !important;
    width: 25% !important;
    max-width: 25% !important;
    height: 90% !important;           /* Lässt etwas Luft zum Slider-Rand */
    object-fit: contain !important;    /* Verhindert Verzerrungen des Fotos */
    margin: 0 4% 0 0 !important;       /* 4% Abstand nach rechts zum Text */
    -moz-user-select: none;
}




/* ====================================================================================================================
   6. Zwingt Überschrift UND Text, sich als EINE Spalte rechts einzureihen + SAFARI-SICHERE FLÜSSIGE SCHRIFTEN
   ==================================================================================================================== */
.flexslider .slides h2,
.flexslider .slides .slide-text {
    display: block !important;
    float: none !important;            
    clear: none !important;            
    width: auto !important;            
    /* Schiebt den Text exakt am Bild vorbei (25% Bild + 4% Gap) */
}

/* Hauptüberschrift des Sliders (Skaliert flüssig zwischen 16px und maximal 25px) */
.flexslider .slides h2 { 
    font-size: 20px !important;                                    /* Fallback für ältere Browser / Safari */
    font-size: clamp(16px, calc(1.5vw + 10px), 25px) !important;   /* Flüssige Skalierung mit Safari-Korrektur */
    line-height: 1.3 !important;
    margin-top: 0 !important;
    margin-bottom: 6px !important;                                 /* Reduziert für knackigen Anschluss an h3 */
}

/* Der Beschreibungstext selbst (Skaliert flüssig zwischen 12px und 15px) */
.flexslider .slides .slide-text {
    font-size: 13px !important;                                    /* Fallback */
    font-size: clamp(12px, calc(1vw + 8px), 15px) !important;
    line-height: 1.5 !important;
}

/* Bereinigt alle Überschriften (h2 & h3) innerhalb der Beschreibungstext-Box */
.flexslider .slides .slide-text h2,
.flexslider .slides .slide-text h3 {
    font-size: 15px !important;                                    /* Fallback */
    font-size: clamp(14px, calc(1.2vw + 8px), 20px) !important;    /* Harmonische Zwischengröße maximal 20px */
    margin-top: 4px !important;                                    /* Knackiger Anschluss nach oben */
    margin-bottom: 4px !important;                                 /* Minimaler Abstand zum Text darunter */
    line-height: 1.2 !important;
}




/* 7. Die Beschreibungstext-Box mit korrigierter Höhen-Maske */
.flexslider .slides .slide-text {
    position: relative;
    margin-top: 0 !important;          
    padding-top: 0 !important;
    min-height: 0;
    overflow: hidden;
    text-overflow: ellipsis;

    /* KORREKTUR: Zwingt die Box auf die restliche Sliderhöhe, damit die Maske eine feste Basis hat */
    height: 60% !important; 
    max-height: 60% !important;

    /* Maske blendet den Text NUR am absoluten unteren Rand des Sliders aus */
    -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
}


/* 8. Die Beschreibungstext-Box mit intelligenter Ausblend-Maske */
.flexslider .slides .slide-text {
    position: relative;
    margin-top: 0 !important;          
    padding-top: 0 !important;
    height: auto !important;     
    min-height: 0;
    overflow: hidden;
    text-overflow: ellipsis;

    /* Maske blendet den Text NUR aus, wenn er den unteren Rand berührt */
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* Bereinigt die Überschriften im Beschreibungstext */
.flexslider .slides .slide-text h2,
.flexslider .slides .slide-text .slide-text h3 {
    margin-top: 0 !important;
    margin-bottom: 4px !important;
}

/* Spezifischer Einzug für Listen NUR innerhalb des Sliders */
.flexslider .slides .slide-text ul {
    list-style-type: disc !important; 
    list-style-position: inside !important; /* Holt die Punkte ins sichtbare Feld */
    padding-left: 2rem !important;  
    margin: 5px 0 0 0 !important;      
}

.flexslider .slides .slide-text ul li {
    display: list-item !important;
    margin-bottom: 4px !important;
}

/* 9. Verhindert Layout-Fehler beim Wechsel der Slider-Bilder */
.flexslider .slides .slide-grid::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}

/* ==========================================================================
   ALTE SYSTEM-HACKS (Nur behalten, falls uralte Browser unterstützt werden müssen)
   ========================================================================== */
html[xmlns] .flexslider .slides { display: block; }
* html .flexslider .slides { height: 1%; }
.no-js .flexslider .slides > li:first-child { display: block; }
.flexslider .slides .slide-aspect-ratio-container:before {
  float: left;
  position: relative;
  overflow: hidden;
  padding-bottom: 50%;
}
.flexslider .slides dl { vertical-align: middle; }








.flex-viewport {
  max-height: 2000px;
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -ms-transition: all 1s ease;
  -o-transition: all 1s ease;
  transition: all 1s ease;
}
.loading .flex-viewport {
  max-height: 300px;
}
@-moz-document url-prefix() {
  .loading .flex-viewport {
    max-height: none;
  }
}
.carousel li {
  margin-right: 5px;
}
.flex-direction-nav {
  *height: 0;
}
.flex-direction-nav a {
  text-decoration: none;
  display: block;
  width: 40px;
  height: 40px;
  margin: -20px 0 0;
  position: absolute;
  top: 50%;
  z-index: 10;
  overflow: hidden;
  opacity: 0;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.8);
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.flex-direction-nav a:before {
  font-family: "flexslider-icon";
  font-size: 40px;
  display: inline-block;
  content: '\f001';
  color: rgba(0, 0, 0, 0.8);
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
  margin-top: 10px;
}
.flex-direction-nav a.flex-next:before {
  content: '\f002';
}
.flex-direction-nav .flex-prev {
  left: -50px;
}
.flex-direction-nav .flex-next {
  right: -50px;
  text-align: right;
}
.flexslider:hover .flex-direction-nav .flex-prev {
  opacity: 0.7;
  left: 10px;
}
.flexslider:hover .flex-direction-nav .flex-prev:hover {
  opacity: 1;
}
.flexslider:hover .flex-direction-nav .flex-next {
  opacity: 0.7;
  right: 10px;
}
.flexslider:hover .flex-direction-nav .flex-next:hover {
  opacity: 1;
}
.flex-direction-nav .flex-disabled {
  opacity: 0!important;
  filter: alpha(opacity=0);
  cursor: default;
  z-index: -1;
}
.flex-pauseplay a {
  display: block;
  width: 20px;
  height: 20px;
  position: absolute;
  bottom: 5px;
  left: 10px;
  opacity: 0.8;
  z-index: 10;
  overflow: hidden;
  cursor: pointer;
  color: #000;
}
.flex-pauseplay a:before {
  font-family: "flexslider-icon";
  font-size: 20px;
  display: inline-block;
  content: '\f004';
}
.flex-pauseplay a:hover {
  opacity: 1;
}
.flex-pauseplay a.flex-play:before {
  content: '\f003';
}
.flex-control-nav {
  width: 100%;
  position: absolute;
  bottom: -40px;
  text-align: center;
}
.flex-control-nav li {
  margin: 0 6px;
  display: inline-block;
  zoom: 1;
  *display: inline;
}
.flex-control-paging li a {
  width: 11px;
  height: 11px;
  display: block;
  background: #666;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  text-indent: -9999px;
  -webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
  -moz-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
  -o-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  border-radius: 20px;
}
.flex-control-paging li a:hover {
  background: #333;
  background: rgba(0, 0, 0, 0.7);
}
.flex-control-paging li a.flex-active {
  background: #000;
  background: rgba(0, 0, 0, 0.9);
  cursor: default;
}
.flex-control-thumbs {
  margin: 5px 0 0;
  position: static;
  overflow: hidden;
}
.flex-control-thumbs li {
  width: 25%;
  float: left;
  margin: 0;
}
.flex-control-thumbs img {
  width: 100%;
  height: auto;
  display: block;
  opacity: .7;
  cursor: pointer;
  -moz-user-select: none;
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -ms-transition: all 1s ease;
  -o-transition: all 1s ease;
  transition: all 1s ease;
}
.flex-control-thumbs img:hover {
  opacity: 1;
}
.flex-control-thumbs .flex-active {
  opacity: 1;
  cursor: default;
}
/* ====================================================================================================================
 * RESPONSIVE
 * ====================================================================================================================*/
@media screen and (max-width: 860px) {
  .flex-direction-nav .flex-prev {
    opacity: 1;
    left: 10px;
  }
  .flex-direction-nav .flex-next {
    opacity: 1;
    right: 10px;
  }
}
