/* Base */
body{font-family:Arial,sans-serif;margin:0;padding:0;line-height:1.5;color:#333;background:#f5f5f5}
.slider-section{margin:0 auto;padding:0}

/* Tabs */
.tab-list{display:flex;flex-wrap:nowrap;justify-content:flex-start;margin-bottom:5px;gap:5px;overflow-x:auto;-ms-overflow-style:none;scrollbar-width:none;position:relative}
.tab-list::-webkit-scrollbar{display:none}
.tab{background:#fff;border:1px solid #ddd;border-radius:0;padding:16px 16px;cursor:pointer;font-size:14px;transition:background-color .2s,color .2s;flex:0 0 auto}
.tab.active{background:#ebebeb;color:#2b2b2b;border-color:#7e7e7e}

/* Slider Container */
.slider-container{display:none;position:relative;align-items:center}
.slider-container.active{display:flex}

/* Slider track */
.slider{display:flex;overflow-x:auto;scroll-behavior:smooth;-ms-overflow-style:none;scrollbar-width:none;width:100%;padding:0;box-sizing:border-box;will-change:transform;contain:content}
.slider::-webkit-scrollbar{display:none}

/* Pfeile */
.slider-container .prev,
.slider-container .next{position:absolute;top:0;bottom:0;width:auto;border:none;padding:0;background:none;color:#FCA23F;font-size:60px;cursor:pointer;opacity:1;pointer-events:none;display:flex;align-items:center;justify-content:center;transition:opacity .3s;z-index:10}
.slider-container .prev{left:0;background:linear-gradient(to right,rgba(245,245,245,.064),rgba(245,245,245,0));border-radius:0 8px 8px 0}
.slider-container .next{right:0;background:linear-gradient(to left,rgba(245,245,245,.064),rgba(245,245,245,0));border-radius:8px 0 0 8px}
.slider-container .prev:hover{background:linear-gradient(to right,rgba(230, 230, 230, 0.267),rgba(230,230,230,0))}
.slider-container .next:hover{background:linear-gradient(to left,rgba(230, 230, 230, 0.267),rgba(230,230,230,0))}

/* ===== Quadratisches Mosaik ===== */
.slide-group{flex:0 0 100%;display:flex;flex-direction:column;width:100%;margin-right:0;padding-bottom:5px;box-sizing:border-box}

/* Eine Zeile besteht aus: links 1 großes Quadrat, rechts 2x2 kleine Quadrate */
.mosaic-row{display:flex;gap:10px;width:100%}

/* links: großes Quadrat */
.mosaic-row .big-tile{flex:0 0 50%;position:relative;overflow:hidden;border-radius:0;box-shadow:0 2px 4px rgba(0,0,0,.1)}
.mosaic-row .big-tile img{width:100%;height:auto;display:block;aspect-ratio:1/1;object-fit:cover;opacity:1;transition:opacity .25s ease}

/* rechts: Grid aus 2x2 Quadraten */
.mosaic-row .small-tiles{flex:1;display:grid;grid-template-columns:repeat(2,1fr);grid-auto-rows:1fr;gap:10px}
.mosaic-row .small-tile{position:relative;overflow:hidden;border-radius:0;box-shadow:0 2px 4px rgba(0,0,0,.1)}
.mosaic-row .small-tile img{width:102%;height:auto;display:block;aspect-ratio:1/1;object-fit:cover;opacity:1;transition:opacity .25s ease}

img.is-loaded{opacity:1}

/* Captions */
.slide-group .caption{position:absolute;left:0;right:0;bottom:0px;padding:6px 8px;font-size:16px;color:#fff;background:#79a84a}
.caption-main{position:absolute;left:0;right:auto;bottom:0px;padding:6px 8px;font-size:16px;color:#fff;background:#79a84a}
.big-tile .caption,.small-tile .caption{pointer-events:none}

/* Text unterhalb */
.slide-group .text-content{margin-top:10px;background:#fff;padding:16px;border-radius:0;box-shadow:0 2px 4px rgba(0,0,0,.05);text-align: center;}
.slide-group .text-content h3{margin:0 0 8px;font-size:20px;color:#333}
.slide-group .text-content p{margin:0 0 8px;font-size:14px;color:#555;line-height:1.4}

.seo-toggle {
        visibility: hidden;
}

/* Hover */
.tile-link{display:block;text-decoration:none;color:inherit}
.big-tile,.small-tile,a.big-tile,a.small-tile{cursor:pointer;transition:transform .3s,box-shadow .3s}
@media (hover:hover){
  .mosaic-row .big-tile:hover,.mosaic-row .small-tile:hover{transform:scale(1.03);box-shadow:0 4px 8px rgba(0,0,0,.2)}
}

/* Mobile: untereinander, weiter quadratisch */
@media (max-width:600px){
  .mosaic-row{flex-direction:column}
  .mosaic-row .big-tile{flex-basis:auto}
  .mosaic-row .small-tiles{grid-template-columns:repeat(2,1fr)}
  .slider-container .prev,.slider-container .next{top:45%;bottom:45%}
}

/* Tabs: Pfeile + Fade */
.tab-nav{position:relative}
.tab-nav .tab-list{padding:0 0px}
.tab-arrow{position:absolute;top:0;bottom:0;width:28px;border:0;background:transparent;cursor:pointer;display:none;align-items:center;justify-content:center;z-index:3;padding:0}
.tab-arrow:before{content:"❯";font-size:16px;line-height:1;color:#FCA23F}
.tab-arrow.left{left:0}.tab-arrow.left:before{content:"❮"}
.tab-arrow.right{right:0}
.tab-fade{position:absolute;top:0;bottom:0;width:28px;pointer-events:none;z-index:2;display:none}
.tab-fade.left{left:0;background:linear-gradient(to right,rgba(245,245,245,.95),rgba(245,245,245,0))}
.tab-fade.right{right:0;background:linear-gradient(to left,rgba(245,245,245,.95),rgba(245,245,245,0))}
.tab-nav.show-left .tab-arrow.left,.tab-nav.show-left .tab-fade.left{display:flex}
.tab-nav.show-right .tab-arrow.right,.tab-nav.show-right .tab-fade.right{display:flex}

@media (max-width:600px){
  .tab-arrow,.tab-fade{width:24px}
  .tab-nav .tab-list{padding:0 5px}
}

/* Motion respect */
@media (prefers-reduced-motion:reduce){
  .slider{scroll-behavior:auto}
}

/* Legacy/unused */
.mobile-layout{display:none}

.mosaic-row .big-tile img.is-loaded,
.mosaic-row .small-tile img.is-loaded { opacity: 1; }
/* Slider-Bühne für Kategorie-Übergänge */
.sliders {
  position: relative;
  overflow: hidden;
}

/* Animation für Kategorien-Wechsel */
.slider-container.is-animating {
  transition: transform 0.4s ease;
}
/* Pfeile auf die Kachelhöhe begrenzen */
.slider-container .prev,
.slider-container .next {
  top: 50%;          /* Basis: Mitte – wird gleich von JS überschrieben */
  bottom: auto;      /* nicht mehr von oben bis unten strecken */
  height: auto;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}


@media (max-width:600px){
/* Container */
.seo-text {
  position: relative;
  padding-bottom: 20px;
}

/* Ausgeblendeter Zustand */
.seo-text-inner.collapsed {
  max-height: 90px;
  overflow: hidden;
}

/* Button */
.seo-toggle {
  visibility:visible;
  background: none;           /* kein Hintergrund */
  border: none;               /* kein Rahmen */
  color: #000;                /* Textfarbe */
  font-size: 16px;
  cursor: pointer;

  /* Rechts ausrichten */
  display: inline-block;
  float: right;

  /* Große Klickfläche für SEO/WCAG */
  padding: 12px 20px;         /* vergrößert den Touch-Bereich */
  margin-top: 6px;

  /* Optional: Unterstreichung wie Link */
  text-decoration: underline;
}

/* Optional: schöner Hover */
.seo-toggle:hover {
  text-decoration: none;
}
}