/* LFK Stachethemes-Erweiterungen 0.3.8: kompakte, sticky Themen-Segmentnavigation. */
.lfk-stec-cal-shell{--lfk-stec-control-height:48px;--lfk-stec-sticky-top:45px;position:relative;overflow:visible;min-width:0}
.lfk-stec-themen{margin:0 0 7px;font-family:inherit;position:relative;top:auto;z-index:auto;scroll-margin-top:65px}
.lfk-stec-themen__panel{position:relative;display:block;padding:0;background:transparent;border:0;border-radius:0;overflow:visible;isolation:auto}
.lfk-stec-themen__panel:before{content:none}
.lfk-stec-themen__nav{display:grid;grid-template-columns:repeat(var(--lfk-stec-button-count,6),minmax(110px,1fr));gap:2px;align-items:stretch;min-width:0}

.lfk-stec-themen__tile{position:relative;box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-width:0;height:var(--lfk-stec-control-height);min-height:0;padding:0 5px;background:#fff!important;color:#505050!important;border:0;border-radius:0;text-decoration:none!important;box-shadow:none!important;text-align:center;transition:background-color .14s ease,color .14s ease}
.lfk-stec-themen__tile:first-child{border-radius:8px 0 0 8px}
.lfk-stec-themen__tile:last-child{border-radius:0 8px 8px 0}
.lfk-stec-themen__tile:before,.lfk-stec-themen__tile:after{content:none!important}
.lfk-stec-themen__tile:hover{background:#edf4eb!important;color:#333!important;transform:none;box-shadow:none!important}
.lfk-stec-themen__tile:focus-visible{outline:2px solid #91b946;outline-offset:-2px;z-index:2}
.lfk-stec-themen__tile[aria-current="true"]{background:#65d35b!important;color:#fff!important;border:0;box-shadow:none!important}
.lfk-stec-themen__tile[aria-current="true"]:hover{background:#58c54e!important;color:#fff!important}
.lfk-stec-themen__tile strong{display:block;margin:0;padding:0;color:inherit!important;font:inherit;line-height:1.2;font-weight:400;white-space:normal;overflow-wrap:normal;hyphens:none}
.lfk-stec-themen__tile small,.lfk-stec-themen__icon{display:none!important}
.lfk-stec-organizer-status{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:#edf5f8;color:#19394c;padding:10px 15px;border-left:5px solid #94bf3d;margin:10px 0 18px;border-radius:5px;font-size:14px}
.lfk-stec-organizer-status a{color:#164967!important;text-decoration:underline!important;font-weight:600}
@media(max-width:767px){
  /* Sechs Rasterspalten: drei normale Buttons pro Zeile. Restliche
     ein oder zwei Buttons fuellen die letzte Zeile ohne Leerflaechen. */
  .lfk-stec-themen__nav{grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;overflow:visible}
  .lfk-stec-themen__tile{grid-column:span 2;min-width:0;min-height:0;height:var(--lfk-stec-control-height);padding:0 3px;border-radius:0!important}
  .lfk-stec-themen__tile:last-child:nth-child(3n + 1){grid-column:1 / -1}
  .lfk-stec-themen__tile:nth-last-child(2):nth-child(3n + 1),
  .lfk-stec-themen__tile:nth-last-child(2):nth-child(3n + 1) ~ .lfk-stec-themen__tile:last-child{grid-column:span 3}
  .lfk-stec-themen__tile:first-child{border-top-left-radius:8px!important}
  .lfk-stec-themen__tile:nth-child(3),
  .lfk-stec-themen__tile:last-child:nth-child(-n + 2){border-top-right-radius:8px!important}
  .lfk-stec-themen__tile:last-child,
  .lfk-stec-themen__tile:last-child:nth-child(3n + 1){border-bottom-right-radius:8px!important}
  .lfk-stec-themen__tile:nth-last-child(3):nth-child(3n + 1),
  .lfk-stec-themen__tile:nth-last-child(2):nth-child(3n + 1),
  .lfk-stec-themen__tile:last-child:nth-child(3n + 1){border-bottom-left-radius:8px!important}
  .lfk-stec-themen__tile strong{font-size:inherit;overflow-wrap:anywhere}
}
@media(min-width:768px) and (max-width:1000px){.lfk-stec-themen__tile{font-size:clamp(11px,1.35vw,15px)}}
@media(prefers-reduced-motion:reduce){.lfk-stec-themen__tile{transition:none}}
/* 0.3.8: Es gibt nur ein einziges Navigationselement. Beim Scrollen
   wird es kurzzeitig nach body verschoben, nicht dupliziert. */
.lfk-stec-themen--floating{
  position:fixed!important;
  top:0;
  left:0;
  width:auto;
  z-index:1000!important;
  box-sizing:border-box;
  margin:0!important;
  padding:0!important;
  background:transparent;
  border-radius:8px;
  box-shadow:0 3px 10px rgba(0,0,0,.16);
}
.lfk-stec-themen--floating .lfk-stec-themen__nav{width:100%}
.lfk-stec-themen__slot{display:none;pointer-events:none}

/* 0.3.8: Anzahl und Reihenfolge der Buttons werden im Backend gepflegt. */
@media (min-width:768px) {
  .lfk-stec-themen__nav{overflow-x:auto}
  .lfk-stec-themen__tile{min-width:0}
}
