/* Farbbasis */
:root{
  --unf-text: #1E3245;
  --unf-accent: #F18520;
  --unf-tile: #F5EEE9;
}

/* Widget-Wrapper */
.unf-wrap{
  --cols: 6;
  --cols-tab: 4;
  --cols-mob: 2;
  --gap: 20px;
  --radius: 18px;
  --fade: 600ms; /* wird von Widget überschrieben */
}

/* Viewport hält die Höhe, Stages liegen übereinander */
.unf-viewport{
  position: relative;
  overflow: hidden;
}

/* Stage-Grids (aktuelles / nächstes Set) */
.unf-stage{
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--fade) ease;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0,1fr));
  gap: var(--gap);
}
@media (max-width: 1024px){
  .unf-stage{ grid-template-columns: repeat(var(--cols-tab), minmax(0,1fr)); }
}
@media (max-width: 640px){
  .unf-stage{ grid-template-columns: repeat(var(--cols-mob), minmax(0,1fr)); }
}

/* Sichtbarkeitsschichten */
.unf-stage.is-active{ opacity: 1; z-index: 2; }
.unf-stage.is-back  { opacity: 0; z-index: 1; }

/* Einzelelement */
.unf-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.unf-card{
  width: 100%;
  background: var(--unf-tile);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 24px rgba(0,0,0,.06);
}
.unf-logo{
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: calc(var(--radius) - 8px);
}
.unf-logo img{
  width: 80%;
  height: 80%;
  object-fit: contain;
  display: block;
}
.unf-name{
  text-align: center;
  color: var(--unf-text);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  min-height: 2.6em;        /* opt. 2 Zeilen Platz, verhindert „Springen“ */
}

/* wenn Namen ausgeblendet werden */
.unf-wrap[data-show-names="0"] .unf-name{ display: none; min-height: 0; }
